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
Function
display_option
( f: &mut Formatter<'_>, name: &str, option: &Option<impl Display>, )
crates/shared/src/arguments.rs:101
↓ 1 callers
Method
domain_separator
Returns the domain separator for the Safe.
crates/e2e/src/setup/onchain_components/safe.rs:234
↓ 1 callers
Method
domain_separator
(&self)
crates/simulator/src/simulation_builder.rs:125
↓ 1 callers
Method
driver
Remaining time until the deadline for driver to return solution to autopilot is reached.
crates/driver/src/domain/time.rs:41
↓ 1 callers
Method
drop_unnecessary_tokens_and_prices
(&mut self)
crates/solver/src/settlement/settlement_encoder.rs:432
↓ 1 callers
Function
duplicated_solution_id
( solver: &Solver, auction_id: Option<auction::Id>, solution_id: &solution::Id, )
crates/driver/src/infra/notify/mod.rs:127
↓ 1 callers
Method
effective_eth_out
Computes the actual received value from this estimate that takes `gas` into account. If an extremely complex trade route would only result in slightly
crates/price-estimation/src/competition/quote.rs:174
↓ 1 callers
Method
effective_gas_price
(&self)
crates/gas-price-estimation/src/gas_price.rs:45
↓ 1 callers
Method
eip1271_gas_cost
(&self, target: &Address)
crates/simulator/src/report.rs:23
↓ 1 callers
Method
eip712_encode_data
(&self)
contracts/generated/contracts-generated/cowamm/src/lib.rs:205
↓ 1 callers
Function
emit_quote_event
( estimator_name: &str, query: &Query, result: &PriceEstimateResult, elapsed: Duration, )
crates/price-estimation/src/competition/quote.rs:215
↓ 1 callers
Function
emit_quote_requested_event
Publishes a "calculating quote" event on the event bus so downstream analytics can correlate quote requests with their price estimates via the envelop
crates/orderbook/src/quoter.rs:310
↓ 1 callers
Function
emit_winning_price_estimate_event
(estimator_name: &str, query: &Query)
crates/price-estimation/src/competition/quote.rs:208
↓ 1 callers
Function
empty_solution
(solver: &Solver, auction_id: Option<auction::Id>, solution: solution::Id)
crates/driver/src/infra/notify/mod.rs:16
↓ 1 callers
Method
encode
(&self)
crates/solver/src/interactions/uniswap_v2.rs:21
↓ 1 callers
Method
encode
(&self)
crates/solver/src/interactions/weth.rs:34
↓ 1 callers
Method
encode
( &self, execution: LimitOrderExecution, encoder: &mut SettlementEncoder, )
crates/solver/src/liquidity/zeroex.rs:199
↓ 1 callers
Method
encode
(&self)
crates/solver/src/settlement/settlement_encoder.rs:1000
↓ 1 callers
Method
encode
(&self)
crates/simulator/src/encoding.rs:230
↓ 1 callers
Function
encode_address
(addr: Address)
crates/balance-overrides/src/balance/aave.rs:202
↓ 1 callers
Function
encode_flashloan_settlement
Encodes a settlement transaction that uses flashloans. Takes the base settlement calldata and wraps it in a flashLoanAndSettle call to the flashloan
crates/driver/src/domain/competition/solution/encoding.rs:256
↓ 1 callers
Method
encode_for_settlement
(&self, owner: Address)
crates/model/src/signature.rs:154
↓ 1 callers
Method
encode_hooks
Generates 1 interaction executing the given hooks via the trampoline contract since executing hooks directly from the settlement contract context woul
crates/simulator/src/simulation_builder.rs:253
↓ 1 callers
Function
encode_interactions
( interactions: impl IntoIterator<Item = &'a I>, )
crates/simulator/src/encoding.rs:259
↓ 1 callers
Function
encode_jit_orders
( trade: &TradeKind, domain_separator: &DomainSeparator, )
crates/price-estimation/src/trade_verifier.rs:835
↓ 1 callers
Function
encode_reserve_data
Encodes a `ReserveData` struct as the ABI return payload the pool would produce. All fields other than `aTokenAddress` are zero — we only care about t
crates/balance-overrides/src/balance/aave.rs:209
↓ 1 callers
Method
encode_swap
(&self)
crates/solver/src/interactions/balancer_v2.rs:30
↓ 1 callers
Function
encode_wrapper_data
Encodes wrapper metadata for wrapper settlement calls. As wrappers are called, each wrapper reads from wrapper calldata and consumes only their needed
crates/simulator/src/encoding.rs:327
↓ 1 callers
Function
encoding
Observe that a solution is about to be encoded into a settlement.
crates/driver/src/infra/observe/mod.rs:121
↓ 1 callers
Function
encoding_failed
( solver: &Solver, auction_id: Option<auction::Id>, solution_id: &solution::Id, err: &solution
crates/driver/src/infra/notify/mod.rs:49
↓ 1 callers
Method
encoding_failed
Updates the tokens quality metric for failures.
crates/driver/src/domain/competition/risk_detector/mod.rs:159
↓ 1 callers
Method
encoding_succeeded
Updates the tokens quality metric for successful operation.
crates/driver/src/domain/competition/risk_detector/mod.rs:152
↓ 1 callers
Method
enqueue_call
Enqueues a call for execution by sending it to the background task.
crates/ethrpc/src/alloy/buffering.rs:135
↓ 1 callers
Function
ensure_e2e_readonly_user
()
crates/e2e/src/setup/services.rs:924
↓ 1 callers
Method
ensure_settle_queue_capacity
(&self)
crates/driver/src/domain/competition/mod.rs:867
↓ 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:559
↓ 1 callers
Function
ensure_transaction_ok_and_get_gas
The outer result signals communication failure with the node. The inner result is Ok(gas_price) or Err if the transaction failed.
crates/bad-tokens/src/trace_call.rs:303
↓ 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:217
↓ 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:168
↓ 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:233
↓ 1 callers
Method
estimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/eip4626.rs:208
↓ 1 callers
Function
estimate_rows_in_table
(ex: &mut PgConnection, table: &str)
crates/autopilot/src/database/mod.rs:114
↓ 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
Method
ethflow_addresses
(&self)
crates/refunder/src/infra/chain.rs:47
↓ 1 callers
Function
ethrpc
(args: &cli::Args)
crates/driver/src/run.rs:186
↓ 1 callers
Method
ethrpc
(&self)
crates/shared/src/web3.rs:52
↓ 1 callers
Method
event_block_range
(&self)
crates/event-indexing/src/event_handler.rs:267
↓ 1 callers
Method
evict_outdated_entries
(&self)
crates/driver/src/domain/competition/risk_detector/bad_tokens/cache.rs:62
↓ 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
Method
exec_alloy_tx
(&self, to: Address, value: U256, calldata: Bytes)
crates/e2e/src/setup/onchain_components/safe.rs:117
↓ 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:227
↓ 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:106
↓ 1 callers
Method
executed
Returns the trade execution as an asset (token address and amount).
crates/solvers/src/domain/solution.rs:374
↓ 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:517
↓ 1 callers
Method
executed_buy
(&self)
crates/driver/src/domain/competition/solution/trade.rs:465
↓ 1 callers
Method
executed_fee
Returns the executed fee amount (prorated of executed amount) cf. https://github.com/cowprotocol/contracts/blob/v1.1.2/src/contracts/GPv2Settlement.so
crates/solver/src/settlement/mod.rs:35
↓ 1 callers
Method
executed_sell
(&self)
crates/driver/src/domain/competition/solution/trade.rs:481
↓ 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:391
↓ 1 callers
Method
expired
Collects cache entries close enough to expiry that the next maintenance tick may miss the window.
crates/order-validation/src/banned/cached.rs:120
↓ 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:425
↓ 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
factory_bootstrapped
(&self)
crates/pool-indexer/src/run.rs:114
↓ 1 callers
Method
fake_auction
( &self, eth: &Ethereum, tokens: &infra::tokens::Fetcher, quote_using_limit_or
crates/driver/src/domain/quote.rs:166
↓ 1 callers
Method
fast_price_estimator
( &mut self, solvers: &[ExternalSolver], fast_price_estimation_results_required: NonZe
crates/price-estimation/src/factory.rs:388
↓ 1 callers
Method
fee
Protocol fee as a cut of surplus.
crates/driver/src/domain/competition/solution/scoring.rs:312
↓ 1 callers
Method
fee_breakdown
All fees broke down into protocol fees per policy and total fee.
crates/autopilot/src/domain/settlement/trade/mod.rs:66
↓ 1 callers
Method
fee_from_surplus
Computes the surplus fee in the surplus token.
crates/driver/src/domain/competition/solution/fee.rs:169
↓ 1 callers
Function
fee_in_buy_token
(order: &Order, quote: &OrderQuote)
crates/e2e/tests/e2e/protocol_fee.rs:673
↓ 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
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:127
↓ 1 callers
Method
fee_into_sell_token
Converts given surplus fee into sell token fee.
crates/autopilot/src/domain/settlement/trade/math.rs:109
↓ 1 callers
Method
fee_policy
(self, fee_policy: Vec<fee::Policy>)
crates/driver/src/tests/setup/mod.rs:235
↓ 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:389
↓ 1 callers
Method
fees
Protocol fees are defined by fee policies attached to the order.
crates/driver/src/domain/competition/solution/scoring.rs:172
↓ 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:398
↓ 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
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/auction_prices.rs:45
↓ 1 callers
Function
fetch
()
crates/orderbook/src/ipfs_app_data.rs:160
↓ 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: Address)
crates/order-validation/src/banned/hermod.rs:94
↓ 1 callers
Method
fetch_amm_factory_address
Fetches the factory address for the given AMM by calling the `FACTORY` function.
crates/driver/src/domain/cow_amm.rs:126
↓ 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:95
↓ 1 callers
Function
fetch_auction_ids_by_order_uid
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/auction.rs:113
↓ 1 callers
Function
fetch_auction_participants
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:205
↓ 1 callers
Method
fetch_balances
Fetches the tradable balance for every order owner.
crates/driver/src/domain/competition/pre_processing.rs:272
↓ 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:388
↓ 1 callers
Function
fetch_by_order_uid
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/fee_policies.rs:97
↓ 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.
crates/price-estimation/src/native/eip4626.rs:181
← previous
next →
1,801–1,900 of 8,522, ranked by callers