Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,747 in github.com/cowprotocol/services
⨍
Functions
10,747
◇
Types & classes
3,488
↓ 1 callers
Method
enqueue_call
Enqueues a call for execution by sending it to the background task.
crates/ethrpc/src/alloy/buffering.rs:157
↓ 1 callers
Function
ensure_readonly_role
Ensures the `readonly` role exists in the database, creating it with the expected privileges if missing.
crates/e2e/src/setup/services.rs:939
↓ 1 callers
Method
ensure_settle_queue_capacity
(&self)
crates/driver/src/domain/competition/mod.rs:943
↓ 1 callers
Method
ensure_token_is_transferable
Verifies that tokens can actually be transferred from the user account to the settlement contract (takes pre-hooks into account).
crates/shared/src/order_validation.rs:641
↓ 1 callers
Method
enumerated
Enumerates all solutions. The index is used as solution UID.
crates/autopilot/src/domain/competition/winner_selection.rs:251
↓ 1 callers
Method
eq
(&self, other: &Self)
crates/ethrpc/src/block_stream.rs:52
↓ 1 callers
Method
eq
(&self, other: &Self)
crates/autopilot/src/domain/auction/mod.rs:35
↓ 1 callers
Function
error_label
(error: &Error)
crates/solana-driver/src/domain/competition.rs:1223
↓ 1 callers
Function
error_to_integer_priority
Errors are sorted by recoverability. E.g. a rate-limited estimation may succeed if tried again, whereas unsupported order types can never recover unle
crates/price-estimation/src/competition/mod.rs:207
↓ 1 callers
Function
estimate
(gas: u64)
crates/shared/src/order_quoting.rs:2634
↓ 1 callers
Method
estimate
( &self, query: Arc<Query>, )
crates/price-estimation/src/instrumented.rs:68
↓ 1 callers
Method
estimate
( &self, query: Arc<Query>, )
crates/price-estimation/src/sanitized.rs:174
↓ 1 callers
Method
estimate
(&self)
crates/gas-price-estimation/src/fake.rs:22
↓ 1 callers
Method
estimate
(&self)
crates/gas-price-estimation/src/gas_price.rs:36
↓ 1 callers
Method
estimate_gas
Estimate gas used by a transaction.
crates/driver/src/infra/blockchain/mod.rs:235
↓ 1 callers
Method
estimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/eip4626.rs:236
↓ 1 callers
Method
estimate_with_primary
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/fallback.rs:162
↓ 1 callers
Method
estimate_with_probe
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/fallback.rs:175
↓ 1 callers
Function
ethereum
(web3: Web3)
crates/e2e/tests/e2e/state_override.rs:32
↓ 1 callers
Method
ethflow_addresses
(&self)
crates/refunder/src/infra/chain.rs:47
↓ 1 callers
Function
ethrpc
(args: &cli::Args, timeout: Duration)
crates/driver/src/run.rs:180
↓ 1 callers
Method
ethrpc
(&self)
crates/shared/src/web3.rs:58
↓ 1 callers
Method
evaluate
( &self, order: &boundary::Order, in_market: bool, now: DateTime<Utc>, )
crates/autopilot/src/fee_engine.rs:73
↓ 1 callers
Method
evaluate_all_expressions
Runs both expressions of every rule against `order`, whatever `when` says, and reports every one that fails, in rule order.
crates/fee-engine/src/evaluator.rs:108
↓ 1 callers
Method
evaluate_constant_fee
Evaluates the `fee` now if it names no variable. One that fails stays unevaluated, so that it is reported like any other.
crates/fee-engine/src/rules.rs:214
↓ 1 callers
Method
event_block_range
(&self)
crates/event-indexing/src/event_handler.rs:267
↓ 1 callers
Method
evm_set_block_gas_limit
( &self, gas_limit: u64, )
crates/ethrpc/src/alloy/evm_ext.rs:62
↓ 1 callers
Method
evm_set_interval_mining
( &self, interval_ms: u64, )
crates/ethrpc/src/alloy/evm_ext.rs:54
↓ 1 callers
Method
evm_set_next_block_timestamp
( &self, timestamp: BlockTimestamp, )
crates/ethrpc/src/alloy/evm_ext.rs:46
↓ 1 callers
Function
evm_uid
(digest: u8, owner: u8)
crates/protocol-fees/src/tests.rs:27
↓ 1 callers
Method
exec_alloy_tx
(&self, to: Address, value: U256, calldata: Bytes)
crates/e2e/src/setup/onchain_components/safe.rs:117
↓ 1 callers
Method
execute
Race the mempools concurrently; first success wins. Pending submission futures are dropped at that point and every other mempool is recorded as `Super
crates/driver/src/domain/mempools.rs:414
↓ 1 callers
Method
execute_and_analyze
Runs the `swap_call` simulation, decodes the returned data, and analyzes it.
crates/price-estimation/src/trade_verifier.rs:241
↓ 1 callers
Method
execute_fast_path_settle
( &self, attempt: FastPathSettleAttempt, creation_date: DateTime<Utc>, )
crates/autopilot/src/fast_path.rs:296
↓ 1 callers
Function
executed
( solver: &Solver, auction_id: auction::Id, solution_id: &solution::Id, res: &Result<eth::TxId
crates/driver/src/infra/notify/mod.rs:112
↓ 1 callers
Method
executed
Returns the trade execution as an asset (token address and amount).
crates/solvers/src/domain/solution.rs:352
↓ 1 callers
Function
executed_amount
Computes the exact amount the order should be filled with based on the configured [`ExecutionAmount`]. If `Remaining` is configured we look up how muc
crates/simulator/src/encoding.rs:544
↓ 1 callers
Method
executed_buy
(&self)
crates/driver/src/domain/competition/solution/trade.rs:305
↓ 1 callers
Method
executed_sell
(&self)
crates/driver/src/domain/competition/solution/trade.rs:321
↓ 1 callers
Function
execution_cost
The lamports settling the standard solve request costs a driver that charges them: the rent of the order's missing 165-byte buy token account at the S
crates/solana-driver/tests/api.rs:1022
↓ 1 callers
Method
exists
(&self, address: &Pubkey)
crates/solana-driver/src/infra/blockchain/accounts.rs:38
↓ 1 callers
Function
exp
(mut x: I256)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:135
↓ 1 callers
Function
expect_more_results_after_handling_response
Append data of response to results and return whether another page should be fetched.
crates/liquidity-sources/src/zeroex.rs:392
↓ 1 callers
Function
expire_creation
Lower a pending sponsored creation's stored deadline to `height`, a height its blockhash is known dead at. Never raises it.
crates/autopilot-svm/src/infra/db.rs:220
↓ 1 callers
Method
expire_once_processed
Time the window out once the indexer has processed its deadline at the tip. Answers whether the window is resolved: timed out here, or closed before.
crates/autopilot-svm/src/infra/observation.rs:192
↓ 1 callers
Function
expire_settlement_window
Close one open window whose deadline is at or before the slot as timed out. Answers whether it did.
crates/autopilot-svm/src/infra/db.rs:400
↓ 1 callers
Function
expire_settlement_windows
Close every open window whose deadline is at or before the slot as timed out, returning their auction ids.
crates/autopilot-svm/src/infra/db.rs:427
↓ 1 callers
Function
extract_buy_amount
Extracts the buy amount from a quote response using clearing prices. For a sell order, calculates: `sell_amount * sell_price / buy_price` Since the s
crates/driver/src/tests/cases/quote.rs:19
↓ 1 callers
Function
extract_invalidated_order_uids
( invalidations: Vec<(EventIndex, OrderInvalidation)>, )
crates/autopilot/src/database/onchain_order_events/mod.rs:457
↓ 1 callers
Function
extract_known_ethflow_address
Extracts the EthFlow contract address from an order if it's in the allowlist. Returns `None` (with a warning log) if the contract is not enabled for
crates/refunder/src/refund_service.rs:27
↓ 1 callers
Function
extract_rfq_ids_from_settlement
Extracts Liquorice maker RFQ IDs from the settlement interactions. <https://liquorice.gitbook.io/liquorice-docs/for-market-makers/basic-market-making-
crates/driver/src/infra/notify/liquidity_sources/liquorice/notifier.rs:98
↓ 1 callers
Method
factor
Determines the applicable volume factor for a token pair. The first matching override wins, so more specific buckets should be listed before broader o
crates/autopilot/src/domain/penalty_cap.rs:121
↓ 1 callers
Method
factory_bootstrapped
(&self)
crates/pool-indexer/src/run.rs:114
↓ 1 callers
Function
failed
()
crates/solana-driver/src/domain/buy_token_accounts.rs:74
↓ 1 callers
Function
failure
The `price_estimates` result of a driver's error reply: `QuotingFailed` means no route, 429 rate limiting, anything else a driver fault.
crates/solana-orderbook/src/infra/quoter.rs:273
↓ 1 callers
Method
fast_path_enabled
Whether this solver supports fast-path (out-of-competition) execution.
crates/driver/src/infra/solver/mod.rs:350
↓ 1 callers
Method
fast_path_enabled
(mut self)
crates/driver/src/tests/setup/mod.rs:426
↓ 1 callers
Method
fast_path_fees
The protocol, then the capped partner, volume fees of a fast-path order.
crates/orderbook/src/fee_engine.rs:84
↓ 1 callers
Function
fast_path_order_into_model
(order: &PendingFastPathOrderDb)
crates/shared/src/db_order_conversions.rs:142
↓ 1 callers
Function
fast_path_partner_fees
The partner fees a fast-path order pays. It settles at the quote, so only partner volume fees charge anything; the others must not take the cap's room
crates/shared/src/fee_engine.rs:73
↓ 1 callers
Method
fast_path_volume_fees
( &self, order: &Order, _: &Quote, app_data: &ValidatedAppData, )
crates/shared/src/fee.rs:341
↓ 1 callers
Method
fast_path_volume_fees
( &self, order: &Order, quote: &Quote, app_data: &ValidatedAppData, )
crates/orderbook/src/fee_engine.rs:193
↓ 1 callers
Method
fast_price_estimator
( &mut self, solvers: &[ExternalSolver], fast_price_estimation_results_required: NonZe
crates/price-estimation/src/factory.rs:422
↓ 1 callers
Method
fast_results_required
Drivers a `fast` quote waits for before it answers.
crates/solana-orderbook/src/infra/api/mod.rs:286
↓ 1 callers
Function
fee
( surplus: eth::SurplusTokenAmount, factor: f64, )
crates/driver/src/domain/competition/solution/scoring.rs:530
↓ 1 callers
Method
fee
The fee expression as written.
crates/fee-engine/src/rules.rs:234
↓ 1 callers
Method
fee
Returns the solver computed fee that was charged to the order as an asset (token address and amount). The fee is always charged in the order's sell to
crates/solvers/src/domain/solution.rs:367
↓ 1 callers
Function
fee_from_surplus
( fulfillment: &Fulfillment, sell_amount: eth::U256, buy_amount: eth::U256
crates/driver/src/domain/competition/solution/fee.rs:477
↓ 1 callers
Method
fee_from_volume
The fee on one executed leg, `executed * f` rounded up in the fee's favour. The leg is the engine's pre-fee figure, so the same factor applies on both
crates/solana-driver/src/domain/solver_fee.rs:90
↓ 1 callers
Function
fee_in_buy_token
(order: &Order, quote: &OrderQuote)
crates/e2e/tests/e2e/protocol_fee.rs:696
↓ 1 callers
Method
fee_in_ether
Total fee taken for the trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:61
↓ 1 callers
Method
fee_in_sell_token
Converts a fee in the surplus token into the sell token at `prices`.
crates/driver/src/domain/competition/solution/fee.rs:139
↓ 1 callers
Method
fee_in_sell_token
Total fee (protocol fee + network fee). Equal to a surplus difference before and after applying the fees.
crates/autopilot/src/domain/settlement/trade/math.rs:104
↓ 1 callers
Function
fee_on_top
`costs` with the protocol fee of an order that buys `buy_amount` whole: the fee at `factor` on the least leg that still leaves `buy_amount` once the d
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:530
↓ 1 callers
Method
fee_policy
(self, fee_policy: Vec<fee::Policy>)
crates/driver/src/tests/setup/mod.rs:222
↓ 1 callers
Function
fee_policy_from
( db_fee_policy: database::fee_policies::FeePolicy, quote: Option<&database::orders::Quote>, order
crates/orderbook/src/database/fee_policies.rs:92
↓ 1 callers
Function
fee_to_decimal
(fee: liquidity::balancer::v2::Fee)
crates/driver/src/infra/solver/dto/auction.rs:350
↓ 1 callers
Function
fee_value
The CEL value a fee function returns: a map tagged with the fee `kind` plus one entry per argument. Fee functions return plain CEL data; typing and ra
crates/fee-engine/src/fee.rs:174
↓ 1 callers
Function
fetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/reference_scores.rs:38
↓ 1 callers
Function
fetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:400
↓ 1 callers
Function
fetch
( ex: &mut PgConnection, contract_app_data: &AppId, )
crates/database/src/app_data.rs:36
↓ 1 callers
Function
fetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/settlement_executions.rs:271
↓ 1 callers
Function
fetch
()
crates/orderbook/src/ipfs_app_data.rs:161
↓ 1 callers
Method
fetch
( &self, token_pairs: HashSet<TokenPair>, at_block: Block, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:286
↓ 1 callers
Method
fetch
(&self, _: Address)
crates/order-validation/src/banned/cached.rs:253
↓ 1 callers
Method
fetch
The scaled prices of the tokens this source can price, recording one `price_estimates` result and duration per token. Tokens it cannot price are absen
crates/autopilot-svm/src/infra/prices.rs:574
↓ 1 callers
Method
fetch_at_block
The block at which liquidity for `/solve` requests gets fetched.
crates/driver/src/infra/liquidity/fetcher.rs:52
↓ 1 callers
Method
fetch_auction_data_for_transaction
Inspects the calldata of the transaction, decodes the arguments, and finds off-chain data associated with it based on the attached auction_id bytes.
crates/autopilot/src/domain/settlement/observer.rs:99
↓ 1 callers
Function
fetch_auction_ids_by_order_uid
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/auction.rs:123
↓ 1 callers
Function
fetch_auction_participants
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:206
↓ 1 callers
Method
fetch_balances
Fetches the tradable balance for every order owner.
crates/driver/src/domain/competition/pre_processing.rs:260
↓ 1 callers
Method
fetch_batch_consistent
Fetches pools + ticks for `ids` at a single indexer block. The two HTTP endpoints can drift if a chunk commits between them; we retry on mismatch up t
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:386
↓ 1 callers
Function
fetch_block_and_process
( provider: &AlloyProvider, previous_block: &mut BlockInfo, sender: &watch::Sender<BlockInfo>, )
crates/ethrpc/src/block_stream.rs:221
↓ 1 callers
Method
fetch_conversion_data
Fetches `convertToAssets(10^vault_decimals)` — how many atomic units of the underlying asset correspond to one full vault token. Returns: - `Ok(Some(
crates/price-estimation/src/native/eip4626.rs:211
↓ 1 callers
Method
fetch_debug_report
(&self, uid: &OrderUid)
crates/orderbook/src/database/debug_report.rs:35
↓ 1 callers
Method
fetch_gas_price
(&self)
crates/gas-price-estimation/src/driver.rs:44
↓ 1 callers
Method
fetch_inner
Sometimes nodes requests error when we try to get state from what we think is the current block when the node has been load balanced out to one that h
crates/liquidity-sources/src/recent_block_cache.rs:307
↓ 1 callers
Method
fetch_json
(self)
contracts/src/vendor.rs:278
↓ 1 callers
Method
fetch_latest_prices
(&self)
crates/autopilot/src/database/auction.rs:140
↓ 1 callers
Method
fetch_latest_prices
(&self)
crates/orderbook/src/database/auctions.rs:38
← previous
next →
2,701–2,800 of 10,747, ranked by callers