MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,736 in github.com/cowprotocol/services

↓ 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:271
↓ 1 callersFunctionencode_interactions
( interactions: impl IntoIterator<Item = &'a I>, )
crates/simulator/src/encoding.rs:262
↓ 1 callersFunctionencode_jit_orders
( trade: &TradeKind, domain_separator: &DomainSeparator, )
crates/price-estimation/src/trade_verifier.rs:884
↓ 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:210
↓ 1 callersMethodencode_swap
(&self)
crates/solver/src/interactions/balancer_v2.rs:30
↓ 1 callersFunctionencode_trade
Creates the data which the smart contract's `decodeTrade` expects.
crates/simulator/src/encoding.rs:154
↓ 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:330
↓ 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:119
↓ 1 callersMethodencoding_succeeded
Updates the tokens quality metric for successful operation.
crates/driver/src/domain/competition/risk_detector/mod.rs:112
↓ 1 callersFunctionengine_charging
The engine with one rule that charges `fee` on every order.
crates/shared/src/fee_engine.rs:246
↓ 1 callersMethodenqueue
Enqueues request and adds caller to the round-robin queue if necessary.
crates/ethrpc/src/alloy/buffering.rs:276
↓ 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:931
↓ 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 callersFunctionerror_label
(error: &Error)
crates/solana-driver/src/domain/competition.rs:1261
↓ 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:69
↓ 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:45
↓ 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:292
↓ 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:1023
↓ 1 callersMethodexecution_cost
The quoted order's execution cost in the token it does not fix: the network fee and the buy token account rent.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:235
↓ 1 callersMethodexists
(&self, address: &Pubkey)
crates/solana-driver/src/infra/blockchain/accounts.rs:38
↓ 1 callersFunctionexit_if_installed
Exits the process if [`install`] ran. A panic hook that replaced the one `install` set calls this to keep the exit.
crates/observe/src/panic_hook.rs:34
↓ 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:223
↓ 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:403
↓ 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:430
↓ 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 answer that is no quote: `QuotingFailed` means no route, 429 rate limiting, anything else a driver fault.
crates/solana-orderbook/src/infra/quoter.rs:299
↓ 1 callersMethodfall_back_to_local_cache
Addresses in `batch` that Hermod reported in the last [`BANNED_FALLBACK_TTL`].
crates/order-validation/src/banned/hermod.rs:167
↓ 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 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:80
↓ 1 callersMethodfast_price_estimator
( &mut self, solvers: &[ExternalSolver], fast_price_estimation_results_required: NonZe
crates/price-estimation/src/factory.rs:423
↓ 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_before_settlement
The fee `policy` takes from the fill `order` describes: the lesser of its [`FeeShares`].
crates/protocol-fees/src/lib.rs:232
↓ 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:688
↓ 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:659
↓ 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_row
A fee of 5 in `[0x22; 32]` that a sell order of 1000 paid in auction 7, the order linked to a route quote `(sell, buy, execution cost)`.
crates/solana-orderbook/src/infra/api/routes/trades/dto.rs:174
↓ 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
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:598
↓ 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
← previousnext →2,701–2,800 of 10,736, ranked by callers