MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 1 callersMethodenqueue_call
Enqueues a call for execution by sending it to the background task.
crates/ethrpc/src/alloy/buffering.rs:157
↓ 1 callersFunctionensure_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 callersMethodensure_settle_queue_capacity
(&self)
crates/driver/src/domain/competition/mod.rs:943
↓ 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:641
↓ 1 callersMethodenumerated
Enumerates all solutions. The index is used as solution UID.
crates/autopilot/src/domain/competition/winner_selection.rs:251
↓ 1 callersMethodeq
(&self, other: &Self)
crates/ethrpc/src/block_stream.rs:52
↓ 1 callersMethodeq
(&self, other: &Self)
crates/autopilot/src/domain/auction/mod.rs:35
↓ 1 callersFunctionerror_label
(error: &Error)
crates/solana-driver/src/domain/competition.rs:1223
↓ 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:207
↓ 1 callersFunctionestimate
(gas: u64)
crates/shared/src/order_quoting.rs:2634
↓ 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:174
↓ 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:235
↓ 1 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/eip4626.rs:236
↓ 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 callersFunctionethereum
(web3: Web3)
crates/e2e/tests/e2e/state_override.rs:32
↓ 1 callersMethodethflow_addresses
(&self)
crates/refunder/src/infra/chain.rs:47
↓ 1 callersFunctionethrpc
(args: &cli::Args, timeout: Duration)
crates/driver/src/run.rs:180
↓ 1 callersMethodethrpc
(&self)
crates/shared/src/web3.rs:58
↓ 1 callersMethodevaluate
( &self, order: &boundary::Order, in_market: bool, now: DateTime<Utc>, )
crates/autopilot/src/fee_engine.rs:73
↓ 1 callersMethodevaluate_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 callersMethodevaluate_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 callersMethodevent_block_range
(&self)
crates/event-indexing/src/event_handler.rs:267
↓ 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 callersFunctionevm_uid
(digest: u8, owner: u8)
crates/protocol-fees/src/tests.rs:27
↓ 1 callersMethodexec_alloy_tx
(&self, to: Address, value: U256, calldata: Bytes)
crates/e2e/src/setup/onchain_components/safe.rs:117
↓ 1 callersMethodexecute
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 callersMethodexecute_and_analyze
Runs the `swap_call` simulation, decodes the returned data, and analyzes it.
crates/price-estimation/src/trade_verifier.rs:241
↓ 1 callersMethodexecute_fast_path_settle
( &self, attempt: FastPathSettleAttempt, creation_date: DateTime<Utc>, )
crates/autopilot/src/fast_path.rs:296
↓ 1 callersFunctionexecuted
( solver: &Solver, auction_id: auction::Id, solution_id: &solution::Id, res: &Result<eth::TxId
crates/driver/src/infra/notify/mod.rs:112
↓ 1 callersMethodexecuted
Returns the trade execution as an asset (token address and amount).
crates/solvers/src/domain/solution.rs:352
↓ 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:544
↓ 1 callersMethodexecuted_buy
(&self)
crates/driver/src/domain/competition/solution/trade.rs:305
↓ 1 callersMethodexecuted_sell
(&self)
crates/driver/src/domain/competition/solution/trade.rs:321
↓ 1 callersFunctionexecution_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 callersMethodexists
(&self, address: &Pubkey)
crates/solana-driver/src/infra/blockchain/accounts.rs:38
↓ 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:392
↓ 1 callersFunctionexpire_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 callersMethodexpire_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 callersFunctionexpire_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 callersFunctionexpire_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 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:457
↓ 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 callersMethodfactor
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 callersMethodfactory_bootstrapped
(&self)
crates/pool-indexer/src/run.rs:114
↓ 1 callersFunctionfailed
()
crates/solana-driver/src/domain/buy_token_accounts.rs:74
↓ 1 callersFunctionfailure
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 callersMethodfast_path_enabled
Whether this solver supports fast-path (out-of-competition) execution.
crates/driver/src/infra/solver/mod.rs:350
↓ 1 callersMethodfast_path_enabled
(mut self)
crates/driver/src/tests/setup/mod.rs:426
↓ 1 callersMethodfast_path_fees
The protocol, then the capped partner, volume fees of a fast-path order.
crates/orderbook/src/fee_engine.rs:84
↓ 1 callersFunctionfast_path_order_into_model
(order: &PendingFastPathOrderDb)
crates/shared/src/db_order_conversions.rs:142
↓ 1 callersFunctionfast_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 callersMethodfast_path_volume_fees
( &self, order: &Order, _: &Quote, app_data: &ValidatedAppData, )
crates/shared/src/fee.rs:341
↓ 1 callersMethodfast_path_volume_fees
( &self, order: &Order, quote: &Quote, app_data: &ValidatedAppData, )
crates/orderbook/src/fee_engine.rs:193
↓ 1 callersMethodfast_price_estimator
( &mut self, solvers: &[ExternalSolver], fast_price_estimation_results_required: NonZe
crates/price-estimation/src/factory.rs:422
↓ 1 callersMethodfast_results_required
Drivers a `fast` quote waits for before it answers.
crates/solana-orderbook/src/infra/api/mod.rs:286
↓ 1 callersFunctionfee
( surplus: eth::SurplusTokenAmount, factor: f64, )
crates/driver/src/domain/competition/solution/scoring.rs:530
↓ 1 callersMethodfee
The fee expression as written.
crates/fee-engine/src/rules.rs:234
↓ 1 callersMethodfee
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 callersFunctionfee_from_surplus
( fulfillment: &Fulfillment, sell_amount: eth::U256, buy_amount: eth::U256
crates/driver/src/domain/competition/solution/fee.rs:477
↓ 1 callersMethodfee_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 callersFunctionfee_in_buy_token
(order: &Order, quote: &OrderQuote)
crates/e2e/tests/e2e/protocol_fee.rs:696
↓ 1 callersMethodfee_in_ether
Total fee taken for the trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:61
↓ 1 callersMethodfee_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 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:104
↓ 1 callersFunctionfee_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 callersMethodfee_policy
(self, fee_policy: Vec<fee::Policy>)
crates/driver/src/tests/setup/mod.rs:222
↓ 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:350
↓ 1 callersFunctionfee_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 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:400
↓ 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
()
crates/orderbook/src/ipfs_app_data.rs:161
↓ 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)
crates/order-validation/src/banned/cached.rs:253
↓ 1 callersMethodfetch
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 callersMethodfetch_at_block
The block at which liquidity for `/solve` requests gets fetched.
crates/driver/src/infra/liquidity/fetcher.rs:52
↓ 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:99
↓ 1 callersFunctionfetch_auction_ids_by_order_uid
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/auction.rs:123
↓ 1 callersFunctionfetch_auction_participants
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:206
↓ 1 callersMethodfetch_balances
Fetches the tradable balance for every order owner.
crates/driver/src/domain/competition/pre_processing.rs:260
↓ 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:386
↓ 1 callersFunctionfetch_block_and_process
( provider: &AlloyProvider, previous_block: &mut BlockInfo, sender: &watch::Sender<BlockInfo>, )
crates/ethrpc/src/block_stream.rs:221
↓ 1 callersMethodfetch_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 callersMethodfetch_debug_report
(&self, uid: &OrderUid)
crates/orderbook/src/database/debug_report.rs:35
↓ 1 callersMethodfetch_gas_price
(&self)
crates/gas-price-estimation/src/driver.rs:44
↓ 1 callersMethodfetch_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 callersMethodfetch_json
(self)
contracts/src/vendor.rs:278
↓ 1 callersMethodfetch_latest_prices
(&self)
crates/autopilot/src/database/auction.rs:140
↓ 1 callersMethodfetch_latest_prices
(&self)
crates/orderbook/src/database/auctions.rs:38
← previousnext →2,701–2,800 of 10,747, ranked by callers