MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 1 callersFunctiondisplay_option
( f: &mut Formatter<'_>, name: &str, option: &Option<impl Display>, )
crates/shared/src/arguments.rs:101
↓ 1 callersMethoddomain_separator
Returns the domain separator for the Safe.
crates/e2e/src/setup/onchain_components/safe.rs:234
↓ 1 callersMethoddomain_separator
(&self)
crates/simulator/src/simulation_builder.rs:125
↓ 1 callersMethoddriver
Remaining time until the deadline for driver to return solution to autopilot is reached.
crates/driver/src/domain/time.rs:41
↓ 1 callersMethoddrop_unnecessary_tokens_and_prices
(&mut self)
crates/solver/src/settlement/settlement_encoder.rs:432
↓ 1 callersFunctionduplicated_solution_id
( solver: &Solver, auction_id: Option<auction::Id>, solution_id: &solution::Id, )
crates/driver/src/infra/notify/mod.rs:127
↓ 1 callersMethodeffective_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 callersMethodeffective_gas_price
(&self)
crates/gas-price-estimation/src/gas_price.rs:45
↓ 1 callersMethodeip1271_gas_cost
(&self, target: &Address)
crates/simulator/src/report.rs:23
↓ 1 callersMethodeip712_encode_data
(&self)
contracts/generated/contracts-generated/cowamm/src/lib.rs:205
↓ 1 callersFunctionemit_quote_event
( estimator_name: &str, query: &Query, result: &PriceEstimateResult, elapsed: Duration, )
crates/price-estimation/src/competition/quote.rs:215
↓ 1 callersFunctionemit_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 callersFunctionemit_winning_price_estimate_event
(estimator_name: &str, query: &Query)
crates/price-estimation/src/competition/quote.rs:208
↓ 1 callersFunctionempty_solution
(solver: &Solver, auction_id: Option<auction::Id>, solution: solution::Id)
crates/driver/src/infra/notify/mod.rs:16
↓ 1 callersMethodencode
(&self)
crates/solver/src/interactions/uniswap_v2.rs:21
↓ 1 callersMethodencode
(&self)
crates/solver/src/interactions/weth.rs:34
↓ 1 callersMethodencode
( &self, execution: LimitOrderExecution, encoder: &mut SettlementEncoder, )
crates/solver/src/liquidity/zeroex.rs:199
↓ 1 callersMethodencode
(&self)
crates/solver/src/settlement/settlement_encoder.rs:1000
↓ 1 callersMethodencode
(&self)
crates/simulator/src/encoding.rs:230
↓ 1 callersFunctionencode_address
(addr: Address)
crates/balance-overrides/src/balance/aave.rs:202
↓ 1 callersFunctionencode_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 callersMethodencode_for_settlement
(&self, owner: Address)
crates/model/src/signature.rs:154
↓ 1 callersMethodencode_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 callersFunctionencode_interactions
( interactions: impl IntoIterator<Item = &'a I>, )
crates/simulator/src/encoding.rs:259
↓ 1 callersFunctionencode_jit_orders
( trade: &TradeKind, domain_separator: &DomainSeparator, )
crates/price-estimation/src/trade_verifier.rs:835
↓ 1 callersFunctionencode_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 callersMethodencode_swap
(&self)
crates/solver/src/interactions/balancer_v2.rs:30
↓ 1 callersFunctionencode_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 callersFunctionencoding
Observe that a solution is about to be encoded into a settlement.
crates/driver/src/infra/observe/mod.rs:121
↓ 1 callersFunctionencoding_failed
( solver: &Solver, auction_id: Option<auction::Id>, solution_id: &solution::Id, err: &solution
crates/driver/src/infra/notify/mod.rs:49
↓ 1 callersMethodencoding_failed
Updates the tokens quality metric for failures.
crates/driver/src/domain/competition/risk_detector/mod.rs:159
↓ 1 callersMethodencoding_succeeded
Updates the tokens quality metric for successful operation.
crates/driver/src/domain/competition/risk_detector/mod.rs:152
↓ 1 callersMethodenqueue_call
Enqueues a call for execution by sending it to the background task.
crates/ethrpc/src/alloy/buffering.rs:135
↓ 1 callersFunctionensure_e2e_readonly_user
()
crates/e2e/src/setup/services.rs:924
↓ 1 callersMethodensure_settle_queue_capacity
(&self)
crates/driver/src/domain/competition/mod.rs:867
↓ 1 callersMethodensure_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 callersFunctionensure_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 callersFunctionerror_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 callersMethodestimate
( &self, query: Arc<Query>, )
crates/price-estimation/src/instrumented.rs:68
↓ 1 callersMethodestimate
( &self, query: Arc<Query>, )
crates/price-estimation/src/sanitized.rs:168
↓ 1 callersMethodestimate
(&self)
crates/gas-price-estimation/src/fake.rs:22
↓ 1 callersMethodestimate
(&self)
crates/gas-price-estimation/src/gas_price.rs:36
↓ 1 callersMethodestimate_gas
Estimate gas used by a transaction.
crates/driver/src/infra/blockchain/mod.rs:233
↓ 1 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/eip4626.rs:208
↓ 1 callersFunctionestimate_rows_in_table
(ex: &mut PgConnection, table: &str)
crates/autopilot/src/database/mod.rs:114
↓ 1 callersMethodestimate_with_primary
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/fallback.rs:162
↓ 1 callersMethodestimate_with_probe
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/fallback.rs:175
↓ 1 callersMethodethflow_addresses
(&self)
crates/refunder/src/infra/chain.rs:47
↓ 1 callersFunctionethrpc
(args: &cli::Args)
crates/driver/src/run.rs:186
↓ 1 callersMethodethrpc
(&self)
crates/shared/src/web3.rs:52
↓ 1 callersMethodevent_block_range
(&self)
crates/event-indexing/src/event_handler.rs:267
↓ 1 callersMethodevict_outdated_entries
(&self)
crates/driver/src/domain/competition/risk_detector/bad_tokens/cache.rs:62
↓ 1 callersMethodevm_set_block_gas_limit
( &self, gas_limit: u64, )
crates/ethrpc/src/alloy/evm_ext.rs:62
↓ 1 callersMethodevm_set_interval_mining
( &self, interval_ms: u64, )
crates/ethrpc/src/alloy/evm_ext.rs:54
↓ 1 callersMethodevm_set_next_block_timestamp
( &self, timestamp: BlockTimestamp, )
crates/ethrpc/src/alloy/evm_ext.rs:46
↓ 1 callersMethodexec_alloy_tx
(&self, to: Address, value: U256, calldata: Bytes)
crates/e2e/src/setup/onchain_components/safe.rs:117
↓ 1 callersMethodexecute_and_analyze
Runs the `swap_call` simulation, decodes the returned data, and analyzes it.
crates/price-estimation/src/trade_verifier.rs:227
↓ 1 callersFunctionexecuted
( solver: &Solver, auction_id: auction::Id, solution_id: &solution::Id, res: &Result<eth::TxId
crates/driver/src/infra/notify/mod.rs:106
↓ 1 callersMethodexecuted
Returns the trade execution as an asset (token address and amount).
crates/solvers/src/domain/solution.rs:374
↓ 1 callersFunctionexecuted_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 callersMethodexecuted_buy
(&self)
crates/driver/src/domain/competition/solution/trade.rs:465
↓ 1 callersMethodexecuted_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 callersMethodexecuted_sell
(&self)
crates/driver/src/domain/competition/solution/trade.rs:481
↓ 1 callersFunctionexp
(mut x: I256)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:135
↓ 1 callersFunctionexpect_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 callersMethodexpired
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 callersFunctionextract_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 callersFunctionextract_invalidated_order_uids
( invalidations: Vec<(EventIndex, OrderInvalidation)>, )
crates/autopilot/src/database/onchain_order_events/mod.rs:425
↓ 1 callersFunctionextract_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 callersFunctionextract_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 callersMethodfactory_bootstrapped
(&self)
crates/pool-indexer/src/run.rs:114
↓ 1 callersMethodfake_auction
( &self, eth: &Ethereum, tokens: &infra::tokens::Fetcher, quote_using_limit_or
crates/driver/src/domain/quote.rs:166
↓ 1 callersMethodfast_price_estimator
( &mut self, solvers: &[ExternalSolver], fast_price_estimation_results_required: NonZe
crates/price-estimation/src/factory.rs:388
↓ 1 callersMethodfee
Protocol fee as a cut of surplus.
crates/driver/src/domain/competition/solution/scoring.rs:312
↓ 1 callersMethodfee_breakdown
All fees broke down into protocol fees per policy and total fee.
crates/autopilot/src/domain/settlement/trade/mod.rs:66
↓ 1 callersMethodfee_from_surplus
Computes the surplus fee in the surplus token.
crates/driver/src/domain/competition/solution/fee.rs:169
↓ 1 callersFunctionfee_in_buy_token
(order: &Order, quote: &OrderQuote)
crates/e2e/tests/e2e/protocol_fee.rs:673
↓ 1 callersMethodfee_in_ether
Total fee taken for the trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:61
↓ 1 callersMethodfee_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 callersMethodfee_into_sell_token
Converts given surplus fee into sell token fee.
crates/autopilot/src/domain/settlement/trade/math.rs:109
↓ 1 callersMethodfee_policy
(self, fee_policy: Vec<fee::Policy>)
crates/driver/src/tests/setup/mod.rs:235
↓ 1 callersFunctionfee_policy_from
( db_fee_policy: database::fee_policies::FeePolicy, quote: Option<&database::orders::Quote>, order
crates/orderbook/src/database/fee_policies.rs:92
↓ 1 callersFunctionfee_to_decimal
(fee: liquidity::balancer::v2::Fee)
crates/driver/src/infra/solver/dto/auction.rs:389
↓ 1 callersMethodfees
Protocol fees are defined by fee policies attached to the order.
crates/driver/src/domain/competition/solution/scoring.rs:172
↓ 1 callersFunctionfetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/reference_scores.rs:38
↓ 1 callersFunctionfetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:398
↓ 1 callersFunctionfetch
( ex: &mut PgConnection, contract_app_data: &AppId, )
crates/database/src/app_data.rs:36
↓ 1 callersFunctionfetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/settlement_executions.rs:271
↓ 1 callersFunctionfetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/auction_prices.rs:45
↓ 1 callersFunctionfetch
()
crates/orderbook/src/ipfs_app_data.rs:160
↓ 1 callersMethodfetch
( &self, token_pairs: HashSet<TokenPair>, at_block: Block, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:286
↓ 1 callersMethodfetch
(&self, address: Address)
crates/order-validation/src/banned/hermod.rs:94
↓ 1 callersMethodfetch_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 callersMethodfetch_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 callersFunctionfetch_auction_ids_by_order_uid
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/auction.rs:113
↓ 1 callersFunctionfetch_auction_participants
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:205
↓ 1 callersMethodfetch_balances
Fetches the tradable balance for every order owner.
crates/driver/src/domain/competition/pre_processing.rs:272
↓ 1 callersMethodfetch_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 callersFunctionfetch_by_order_uid
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/fee_policies.rs:97
↓ 1 callersMethodfetch_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
← previousnext →1,801–1,900 of 8,522, ranked by callers