Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,522 in github.com/cowprotocol/services
⨍
Functions
8,522
◇
Types & classes
3,082
↓ 1 callers
Method
get_app_data_document
( &self, app_data: AppDataHash, )
crates/e2e/src/setup/services.rs:693
↓ 1 callers
Method
get_auctions
Returns all the auctions received by the solver
crates/e2e/src/setup/solver/mock.rs:70
↓ 1 callers
Method
get_back_off_duration_if_limited
(&self)
crates/rate-limit/src/lib.rs:197
↓ 1 callers
Function
get_block_numbers_of_events
( web3: &Web3, events: &[(ContractEvent, Log)], )
crates/autopilot/src/database/onchain_order_events/mod.rs:378
↓ 1 callers
Function
get_by_tx
( ex: &mut PgConnection, tx_hash: &TransactionHash, )
crates/database/src/jit_orders.rs:68
↓ 1 callers
Method
get_cached
Returns all values that are currently cached.
crates/driver/src/domain/competition/order/app_data.rs:47
↓ 1 callers
Method
get_cached_balance
Retrieves cached balance and updates the `requested_at` field.
crates/account-balances/src/cached.rs:30
↓ 1 callers
Method
get_cached_balances
(&self, queries: &[Query])
crates/account-balances/src/cached.rs:98
↓ 1 callers
Method
get_cached_or_fetch
Retrieves the full app-data for the given `app_data` hash, if it exists. HTTP requests needed to fetch the data are spawned in background tasks such t
crates/driver/src/domain/competition/order/app_data.rs:59
↓ 1 callers
Method
get_cached_prices
Only returns prices that are currently cached.
crates/price-estimation/src/native_price_cache.rs:233
↓ 1 callers
Method
get_current_backend
Returns the current active backend URL.
crates/e2e/src/setup/proxy.rs:45
↓ 1 callers
Method
get_ethflow_order_data
(&self, uid: &OrderUid)
crates/refunder/src/infra/database.rs:52
↓ 1 callers
Method
get_events_by_block_hash
(&self, block_hash: B256)
crates/event-indexing/src/event_handler.rs:107
↓ 1 callers
Method
get_events_by_block_range
Unfortunately, alloy's `watch_logs` does not support pagination yet, so it is implemented manually here
crates/event-indexing/src/event_handler.rs:126
↓ 1 callers
Function
get_invalidation_events
( events: Vec<(ContractEvent, Log)>, )
crates/autopilot/src/database/onchain_order_events/mod.rs:405
↓ 1 callers
Function
get_latest_indexed_block
(pool: &PgPool)
crates/pool-indexer/src/db/uniswap_v3.rs:680
↓ 1 callers
Method
get_liquidity
( &self, pairs: HashSet<TokenPair>, _block: Block, )
crates/solver/src/liquidity/zeroex.rs:119
↓ 1 callers
Function
get_native_prices
( tokens: HashSet<Address>, native_price_estimator: &NativePriceUpdater, timeout: Duration, )
crates/autopilot/src/solvable_orders.rs:543
↓ 1 callers
Method
get_next_auction_id
(&self)
crates/autopilot/src/database/auction.rs:105
↓ 1 callers
Method
get_nonce
Fetches the transaction count (nonce) for the given address at the specified block number. If no block number is provided in the config, uses the allo
crates/driver/src/infra/mempool/mod.rs:102
↓ 1 callers
Method
get_or_create_amms
Gets or creates AMM instances for the given surplus capturing JIT order owners.
crates/driver/src/domain/cow_amm.rs:49
↓ 1 callers
Function
get_or_create_quote
( quoter: &dyn OrderQuoting, quote_search_parameters: &QuoteSearchParameters, quote_id: Option<i64
crates/shared/src/order_validation.rs:1122
↓ 1 callers
Method
get_order_status
( &self, ethflow_address: Address, order_hash: alloy::primitives::B256, )
crates/refunder/src/infra/chain.rs:51
↓ 1 callers
Method
get_order_status
( &self, uid: &OrderUid, )
crates/orderbook/src/orderbook.rs:534
↓ 1 callers
Function
get_order_uids
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/auction.rs:101
↓ 1 callers
Method
get_orders
( &self, query: &OrdersQuery, )
crates/liquidity-sources/src/zeroex.rs:369
↓ 1 callers
Method
get_orders
(&self, uids: &[OrderUid])
crates/orderbook/src/orderbook.rs:503
↓ 1 callers
Method
get_orders_for_owner
( &self, owner: &Address, offset: u64, limit: u64, )
crates/e2e/src/setup/services.rs:668
↓ 1 callers
Method
get_orders_for_tx
( &self, tx_hash: &B256, )
crates/e2e/src/setup/services.rs:648
↓ 1 callers
Method
get_orders_for_tx
(&self, hash: &B256)
crates/orderbook/src/orderbook.rs:507
↓ 1 callers
Method
get_quality
(&self, order: &Uid, now: Instant)
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:64
↓ 1 callers
Function
get_quote
( quoter: &dyn OrderQuoting, order_data: OrderData, signing_scheme: SigningScheme, quote_id: &
crates/autopilot/src/database/onchain_order_events/mod.rs:532
↓ 1 callers
Method
get_quote
(&self, query: &Query)
crates/price-estimation/src/trade_finding/external.rs:331
↓ 1 callers
Method
get_refundable_ethflow_orders_from_db
Fetches expired EthFlow orders that haven't been refunded, invalidated, or filled.
crates/refunder/src/refund_service.rs:183
↓ 1 callers
Method
get_refundable_orders
( &self, block_time: i64, min_validity_duration: i64, min_price_deviation: f64
crates/refunder/src/infra/database.rs:34
↓ 1 callers
Method
get_registered_pools
( &self, _target_block: BlockTarget, )
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:825
↓ 1 callers
Method
get_registered_pools
Retrieves the list of registered pools from the subgraph.
crates/liquidity-sources/src/balancer_v2/graph_api.rs:47
↓ 1 callers
Method
get_replaced_order
Using the provided app data, finds the order to be replaced. Validates the provided app data before searching for the order to be replaced.
crates/orderbook/src/orderbook.rs:406
↓ 1 callers
Function
get_request
(router: Router, path: &str)
crates/orderbook/src/api.rs:658
↓ 1 callers
Method
get_safe_block
Retrieves a recent block number for which it is safe to assume no reorgs will happen.
crates/liquidity-sources/src/uniswap_v3/graph_api.rs:156
↓ 1 callers
Method
get_safe_block
Retrieves a recent block number for which it is safe to assume no reorgs will happen.
crates/liquidity-sources/src/balancer_v2/graph_api.rs:91
↓ 1 callers
Method
get_settlements_without_auction
Returns the oldest settlement event for which the accociated auction is not yet populated in the database.
crates/autopilot/src/infra/persistence/mod.rs:675
↓ 1 callers
Method
get_sol_input
(&self)
contracts/src/codegen.rs:442
↓ 1 callers
Method
get_solvable_orders
Returns currently solvable orders.
crates/autopilot/src/solvable_orders.rs:415
↓ 1 callers
Method
get_state
(&self)
crates/e2e/src/api/liquorice/server.rs:53
↓ 1 callers
Method
get_submission_nonce
(&self)
crates/refunder/src/submitter.rs:91
↓ 1 callers
Method
get_token_quality
(&self, token: eth::TokenAddress, now: Instant)
crates/driver/src/domain/competition/risk_detector/mod.rs:165
↓ 1 callers
Function
get_tokens_missing_decimals
All distinct token addresses with no `decimals` recorded.
crates/pool-indexer/src/db/uniswap_v3.rs:579
↓ 1 callers
Function
get_tokens_missing_symbols
All distinct token addresses with no `symbol` recorded.
crates/pool-indexer/src/db/uniswap_v3.rs:561
↓ 1 callers
Function
get_trades_for_settlement
( ex: &mut PgConnection, settlement: EventIndex, )
crates/database/src/trades.rs:130
↓ 1 callers
Method
get_trades_for_settlement
Returns the trade events that are associated with the settlement event
crates/autopilot/src/infra/persistence/mod.rs:702
↓ 1 callers
Method
get_trades_v2
Get trades with pagination (v2 endpoint)
crates/e2e/src/setup/services.rs:757
↓ 1 callers
Method
get_user_orders
( &self, owner: &Address, offset: u64, limit: u64, )
crates/orderbook/src/orderbook.rs:522
↓ 1 callers
Method
get_user_total_surplus
Get total surplus for a user (unstable endpoint)
crates/e2e/src/setup/services.rs:855
↓ 1 callers
Method
get_verified_price_estimate
Executes the simulation and checks quote accuracy.
crates/price-estimation/src/trade_verifier.rs:143
↓ 1 callers
Function
get_zeroex_order_amounts
( zeroex: &IZeroex::Instance, zeroex_order: &zeroex::OrderRecord, )
crates/e2e/tests/e2e/liquidity.rs:373
↓ 1 callers
Method
github
(path: &str)
contracts/src/vendor.rs:266
↓ 1 callers
Function
gnosis_safe_prevalidated_signature
Generate a Safe "pre-validated" signature. This is a special "marker" signature that can be used if the account that is executing the transaction is
crates/e2e/src/setup/onchain_components/safe.rs:276
↓ 1 callers
Method
grantRoles
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2authorizer/src/lib.rs:1018
↓ 1 callers
Function
grant_required_roles
( authorizer: &BalancerV2Authorizer::Instance, vault: Address, vault_relayer: Address, )
crates/e2e/src/setup/deploy.rs:295
↓ 1 callers
Method
group_by_factory
Groups registered pools by factory addresses.
crates/liquidity-sources/src/balancer_v2/graph_api.rs:128
↓ 1 callers
Function
group_ticks_by_pool
(rows: Vec<db::PoolTickRow>)
crates/pool-indexer/src/api/uniswap_v3/bulk_ticks.rs:58
↓ 1 callers
Method
haircut_bps
Quote haircut in basis points (0-10000) for conservative bidding.
crates/driver/src/infra/solver/mod.rs:347
↓ 1 callers
Method
haircut_in_sell_token
Computes the haircut amount in sell token. Used for buy orders to add haircut to the sell amount.
crates/driver/src/domain/competition/solution/trade.rs:272
↓ 1 callers
Function
handle_all_routes
( database_write: Postgres, database_read: Postgres, orderbook: Arc<Orderbook>, quotes: QuoteH
crates/orderbook/src/api.rs:156
↓ 1 callers
Method
handle_api_requests
Routes API requests based on order side. - Sell orders: Parallel execution of /swap and /approve-transaction - Buy orders: Sequential execution (swap
crates/solvers/src/infra/dex/okx/mod.rs:235
↓ 1 callers
Method
handle_burn
`handle_mint` with the sign flipped.
crates/pool-indexer/src/indexer/uniswap_v3.rs:886
↓ 1 callers
Method
handle_buy_order
Handle buy orders via the reverse-quote endpoint. Bitget computes the required input amount server-side using a recursive search on top of sell quote
crates/solvers/src/infra/dex/bitget/mod.rs:249
↓ 1 callers
Method
handle_buy_order
Handle buy orders with sequential API requests. Since the approval amount depends on the swap response (`from_token_amount`), we must execute `/swap`
crates/solvers/src/infra/dex/okx/mod.rs:297
↓ 1 callers
Function
handle_connection
( listener: &UnixListener, initial_filter: &str, reload_handle: &reload::Handle<EnvFilter, T>, )
crates/observe/src/tracing/reload_handler.rs:57
↓ 1 callers
Function
handle_connection_with_socket
(mut socket: UnixStream)
crates/observe/src/heap_dump_handler.rs:120
↓ 1 callers
Method
handle_deny_listed_tokens
Checks if the traded tokens are supported by the protocol.
crates/price-estimation/src/sanitized.rs:53
↓ 1 callers
Method
handle_initialize
Records initial price and tick from an `Initialize` event. Preserves any liquidity already seen for the pool in this chunk.
crates/pool-indexer/src/indexer/uniswap_v3.rs:803
↓ 1 callers
Method
handle_mint
Applies a `Mint`: positive tick deltas at the range bounds, plus a pool-liquidity bump if the active tick is in range (see [`Self::apply_position_delt
crates/pool-indexer/src/indexer/uniswap_v3.rs:860
↓ 1 callers
Method
handle_pool_created
Records a new pool, filling decimals from the prefetch cache. Symbols are left `None`: a hung `symbol()` call must not block pool inserts, and the asy
crates/pool-indexer/src/indexer/uniswap_v3.rs:770
↓ 1 callers
Function
handle_request
( client: reqwest::Client, state: ProxyState, req: Request<Body>, )
crates/e2e/src/setup/proxy.rs:135
↓ 1 callers
Function
handle_results
( pool: Result<Option<Pool>>, fee: Result<u32, alloy::contract::Error>, )
crates/liquidity-sources/src/swapr.rs:40
↓ 1 callers
Function
handle_results
(fetched_pool: FetchedPool, address: Address)
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:313
↓ 1 callers
Method
handle_sell_order
Handle sell orders with a single enriched swap API call. Uses `requestMod = "rich"` so `/swap` returns the quote (output amount, gas) and the swap ca
crates/solvers/src/infra/dex/bitget/mod.rs:185
↓ 1 callers
Method
handle_sell_order
Handle sell orders with parallel API requests. Since the approval amount is known upfront from `order.amount`, we can execute `/swap` and `/approve-t
crates/solvers/src/infra/dex/okx/mod.rs:251
↓ 1 callers
Method
handle_swap
Records full pool state (price, liquidity, tick) from a `Swap`.
crates/pool-indexer/src/indexer/uniswap_v3.rs:833
↓ 1 callers
Function
handler
(Path(_uid): Path<OrderUid>)
crates/orderbook/src/api.rs:668
↓ 1 callers
Method
has_execution_plan
Returns whether the solution contains anything that could actually produce the promised buy tokens.
crates/price-estimation/src/trade_finding/mod.rs:97
↓ 1 callers
Method
has_tokens
Returns `true` if the reserves correspond to the specified tokens.
crates/driver/src/domain/liquidity/uniswap/v2.rs:63
↓ 1 callers
Method
has_tokens
Returns `true` if the reserves correspond to the specified tokens.
crates/driver/src/domain/liquidity/balancer/v2/weighted.rs:70
↓ 1 callers
Method
has_tokens
Returns `true` if the reserves correspond to the specified tokens.
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:66
↓ 1 callers
Method
has_wrappers
Returns `true` if order appData contains non-empty wrappers
crates/app-data/src/app_data.rs:398
↓ 1 callers
Method
has_zero_balance
Checks if the given AMM has a zero token balance.
crates/cow-amm/src/maintainers.rs:25
↓ 1 callers
Function
hash
Used to generate deterministic identifiers (e.g., UIDs, addresses) from string descriptions.
crates/autopilot/src/domain/competition/winner_selection.rs:1277
↓ 1 callers
Method
hashSingleOrder
( data: &[u8], )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:7675
↓ 1 callers
Function
hashed_ethsign_message
(domain_separator: &DomainSeparator, struct_hash: &[u8; 32])
crates/model/src/signature.rs:280
↓ 1 callers
Function
header_value
(s: &str)
crates/ethrpc/src/alloy/rpc_headers.rs:170
↓ 1 callers
Function
healthz
(app: axum::Router<()>)
crates/driver/src/infra/api/routes/healthz.rs:7
↓ 1 callers
Function
hook_for_transaction
(tx: CallBuilder<&AlloyProvider, D>)
crates/e2e/src/setup/onchain_components/alloy.rs:7
↓ 1 callers
Function
i256_exp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:15
↓ 1 callers
Function
i512_to_big_int
(i512: &I512)
crates/number/src/conversions.rs:101
↓ 1 callers
Function
i512_to_u256
TODO: Figure out a nicer way to convert I512 to U256, as a follow-up task
crates/number/src/conversions.rs:116
↓ 1 callers
Method
in_given_out
Use the Uniswap constant AMM formula to calculate the input amount based on the output.
crates/driver/src/tests/setup/blockchain.rs:98
↓ 1 callers
Method
includes_delegation
(self)
crates/driver/src/infra/solver/eip7702.rs:225
↓ 1 callers
Method
increase_next_try
Adjusts the next fill amount that should be tried. Doubles the amount to try. This is useful in case the onchain liquidity changed and now allows for
crates/solvers/src/domain/solver/dex/fills.rs:150
← previous
next →
2,001–2,100 of 8,522, ranked by callers