MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 1 callersFunctiondriver
Sell a fixed amount of wSOL for each token on the driver. The probe is denominated in the native token so its economic size is the same for every toke
crates/autopilot-svm/src/infra/prices.rs:754
↓ 1 callersFunctiondummy_contracts
()
crates/solver/src/liquidity/balancer_v2.rs:191
↓ 1 callersFunctionduplicated_solution_id
( solver: &Solver, auction_id: Option<auction::Id>, solution_id: &solution::Id, )
crates/driver/src/infra/notify/mod.rs:133
↓ 1 callersFunctioned25519_spki_pubkey
The raw 32-byte key inside an Ed25519 SubjectPublicKeyInfo, the DER shape KMS answers public keys in.
crates/cow-solana-signer/src/lib.rs:158
↓ 1 callersMethodeffective_gas_price
(&self)
crates/gas-price-estimation/src/gas_price.rs:45
↓ 1 callersMethodeffective_out_amount
Uses the native sell token price to compute a quote's effective out amount that takes the quote's gas cost into account. sell orders: buy token they r
crates/price-estimation/src/competition/quote.rs:303
↓ 1 callersMethodeip1271_gas_cost
(&self, target: &Address)
crates/simulator/src/report.rs:23
↓ 1 callersFunctionemit_native_price_estimate_event
( estimator_name: &str, token: Address, elapsed: Duration, result: &NativePriceEstimateResult,
crates/price-estimation/src/competition/native.rs:87
↓ 1 callersFunctionemit_quote_event
( estimator_name: &str, query: &Query, result: &PriceEstimateResult, elapsed: Duration, )
crates/price-estimation/src/competition/quote.rs:362
↓ 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:343
↓ 1 callersFunctionemit_winning_native_price_estimate_event
(estimator_name: &str, token: Address)
crates/price-estimation/src/competition/native.rs:104
↓ 1 callersFunctionemit_winning_price_estimate_event
(estimator_name: &str, query: &Query, winner: &Estimate)
crates/price-estimation/src/competition/quote.rs:353
↓ 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/simulator/src/encoding.rs:233
↓ 1 callersFunctionencode_address
(addr: Address)
crates/balance-overrides/src/balance/aave.rs:203
↓ 1 callersFunctionencode_base_tokens
(tokens: impl IntoIterator<Item = Address>)
crates/e2e/src/setup/colocation.rs:140
↓ 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:263
↓ 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: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 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: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: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: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: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:163
↓ 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: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
← previousnext →2,701–2,800 of 10,776, ranked by callers