MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 1 callersMethodtry_admit
Try to reserve an admission permit without blocking. Returns `None` if the maximum number of in-flight settle requests has been reached.
crates/driver/src/domain/competition/mod.rs:185
↓ 1 callersFunctiontry_backend
( client: &reqwest::Client, parts: &axum::http::request::Parts, body: Vec<u8>, backend: &Url,
crates/e2e/src/setup/proxy.rs:180
↓ 1 callersMethodtry_build_settle_request
( &self, pending: FastPathOrder, exclusivity_period_blocks: u64, )
crates/autopilot/src/fast_path.rs:211
↓ 1 callersMethodtry_fetch
(&self, token: Address, timeout: Duration)
crates/price-estimation/src/native/forwarder.rs:32
↓ 1 callersFunctiontry_into_domain
( policy: FeePolicy, quote: Option<&domain::quote::Quote>, )
crates/autopilot/src/infra/persistence/dto/fee_policy.rs:60
↓ 1 callersMethodtry_mul_div_floor
(self, mul: Self, div: Self)
crates/chain-types/src/solana.rs:155
↓ 1 callersMethodtry_solve
Sends `/solve` request to the driver and forwards errors to the caller.
crates/autopilot/src/run_loop.rs:780
↓ 1 callersMethodtry_solve
( &self, order: &Order, dex_order: &dex::Order, tokens: &auction::Tokens,
crates/solvers/src/domain/solver/dex/mod.rs:113
↓ 1 callersMethodtry_trivial_estimate
Handles the deny-list check and the trivial 1:1 cases shared by `estimate` and `estimate_stream`. Returns `Some(result)` when the query can be answere
crates/price-estimation/src/sanitized.rs:114
↓ 1 callersFunctiontwo_orders
(db: &mut PgTransaction<'_>)
crates/database/src/orders.rs:2438
↓ 1 callersFunctiontx
(input: Bytes)
crates/driver/src/domain/mempools.rs:670
↓ 1 callersMethodtx_gas_limit
Per-transaction gas limit configured for this driver. Operators set this per chain (e.g. EIP-7825's 16,777,215 cap on Fusaka chains).
crates/driver/src/infra/blockchain/mod.rs:215
↓ 1 callersFunctionu160_to_big_decimal
(u160: &U160)
crates/number/src/conversions.rs:83
↓ 1 callersMethoduid
(&self, domain: &eth::DomainSeparator)
crates/driver/src/infra/solver/dto/solution.rs:370
↓ 1 callersMethoduid
(&self)
crates/driver/src/tests/boundary.rs:31
↓ 1 callersFunctionunbuffered_ethrpc
Creates unbuffered Web3 transport.
crates/autopilot/src/run.rs:98
↓ 1 callersFunctionunbuffered_rpc
Creates an unbuffered [`RpcClient`] from the given URL with [`LabelingLayer`] and [`InstrumentationLayer`] but WITHOUT [`BatchCallLayer`]. This is us
crates/ethrpc/src/alloy/mod.rs:57
↓ 1 callersFunctionunbuffered_web3
Builds a web3 client that sends requests one by one.
crates/driver/src/boundary/mod.rs:39
↓ 1 callersMethoduncached_detect
( &self, token: Address, owner: Address, spender: Address, )
crates/balance-overrides/src/approval/mod.rs:275
↓ 1 callersMethoduncached_detect
( &self, token: Address, holder: Address, )
crates/balance-overrides/src/balance/mod.rs:371
↓ 1 callersFunctionunder_limit
Whether the settlement contract rejects the fill at these prices.
crates/driver/src/domain/competition/solution/fee.rs:729
↓ 1 callersMethodunfunded
Mark that the trader should not be funded with tokens that are needed to place this order.
crates/driver/src/tests/setup/mod.rs:215
↓ 1 callersFunctionuniswap_v2_router_for_chain
Resolve a router with the canonical UniswapV2 ABI for the current chain.
crates/e2e/src/setup/deploy.rs:282
↓ 1 callersFunctionunknown_address_returns_empty_ticks
()
crates/e2e/tests/e2e/pool_indexer.rs:576
↓ 1 callersFunctionunlock_override
(contract: Address)
crates/e2e/tests/e2e/state_override.rs:23
↓ 1 callersFunctionunreasonable_estimates_error
()
crates/price-estimation/src/competition/quote.rs:221
↓ 1 callersFunctionunsettled
Records metrics for the matched but unsettled orders.
crates/autopilot/src/run_loop.rs:1265
↓ 1 callersMethodunverified_estimate
Builds an unverified estimate from the trade's own gas estimate and promised output amount. Returns an error if the trade provides no gas estimate, si
crates/price-estimation/src/trade_verifier.rs:117
↓ 1 callersMethodunverified_price_estimator
Like [`Self::price_estimator`] but without quote verification: all estimators are queried and the best quote wins ranked purely by the promised price,
crates/price-estimation/src/factory.rs:410
↓ 1 callersFunctionunwrap
(amount: eth::TokenAmount, weth: &WETH9::Instance)
crates/driver/src/domain/competition/solution/encoding.rs:340
↓ 1 callersMethodunwrap_all_layers
Follows the vault chain (e.g. vault → vault → asset) until reaching a non-vault token, returning the terminal token and the cumulative shares-to-asset
crates/price-estimation/src/native/eip4626.rs:109
↓ 1 callersMethodunwrap_vault_layer
Returns: - `Ok(Some((asset, rate)))` when `token` is a vault. - `Ok(None)` when it's a plain ERC-20. - `Err` on RPC/computation failures that don't le
crates/price-estimation/src/native/eip4626.rs:127
↓ 1 callersFunctionupdate
( ex: &mut PgConnection, auction_id: AuctionId, solver: Address, solution_uid: i64, end_ti
crates/database/src/settlement_executions.rs:50
↓ 1 callersMethodupdate_balance
Only updates existing balances. This should always be used in the background task. Has no write-ordering guard, so it relies on refreshes staying seri
crates/account-balances/src/cached.rs:37
↓ 1 callersFunctionupdate_balances
(inner: Arc<Inner>)
crates/driver/src/infra/tokens.rs:101
↓ 1 callersFunctionupdate_block_metrics
(previous_block: &BlockInfo, new_block: &BlockInfo)
crates/ethrpc/src/block_stream.rs:353
↓ 1 callersMethodupdate_caches
(&self, auction_block: BlockInfo, is_leader: bool)
crates/autopilot/src/run_loop.rs:359
↓ 1 callersMethodupdate_database_metrics
(&self)
crates/autopilot/src/database/mod.rs:78
↓ 1 callersMethodupdate_events_from_latest_blocks
( &mut self, latest_blocks: &[BlockNumberHash], is_reorg: bool, )
crates/event-indexing/src/event_handler.rs:482
↓ 1 callersMethodupdate_events_from_old_blocks
(&mut self, range: RangeInclusive<u64>)
crates/event-indexing/src/event_handler.rs:407
↓ 1 callersMethodupdate_filtered_orders
Stores the orders filtered in the current auction and logs how they differ from the previous auction.
crates/driver/src/domain/competition/mod.rs:851
↓ 1 callersFunctionupdate_liquidity_net
Applies a signed `delta` to a tick's net liquidity, dropping the entry when it cancels out to zero. The accumulated value mirrors the pool's on-chain
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:571
↓ 1 callersMethodupdate_metrics
Update per-mempool metrics based on submission outcomes. When a winner exists, `Failed` outcomes are reclassified as `Superseded` since errors are ty
crates/driver/src/domain/mempools.rs:390
↓ 1 callersFunctionupdate_of
(update: UpdateOneof)
crates/solana-indexer/src/indexer/ingester/tests.rs:85
↓ 1 callersMethodupdate_prices_in_background
( &self, client: Client, base_url: Url, api_key: Option<String>, chain
crates/price-estimation/src/native/oneinch.rs:56
↓ 1 callersFunctionupdate_task
Runs a single cache update cycle whenever a new block arrives until the fetcher is dropped.
crates/driver/src/infra/tokens.rs:85
↓ 1 callersMethodupload_auction_to_s3
Spawns a background task that uploads the already serialized auction to S3.
crates/autopilot/src/infra/persistence/mod.rs:160
↓ 1 callersFunctionupsert_pool_states
( tx: &mut Transaction<'_, Postgres>, factory: &Address, states: &[PoolStateData], )
crates/pool-indexer/src/db/uniswap_v3.rs:134
↓ 1 callersMethodurl
(&self)
crates/driver/src/tests/setup/blockchain.rs:968
↓ 1 callersMethodurl
Returns a reference to the underlying RPC URL.
crates/autopilot/src/infra/blockchain/mod.rs:58
↓ 1 callersMethodusd_reference_token
(&self)
crates/autopilot/src/domain/penalty_cap.rs:75
↓ 1 callersFunctionuser_orders_with_quote
( ex: &mut PgConnection, min_valid_to: i64, owner: &Address, )
crates/database/src/orders.rs:1091
↓ 1 callersFunctionusers_to_check
(order: &Order)
crates/autopilot/src/solvable_orders.rs:517
↓ 1 callersFunctionv1_creation_tx
The sponsored creation as a v1 message: its 5 SOL priority fee sits in the message config, where no compute-budget instruction shows it.
crates/solana-orderbook/tests/api.rs:2235
↓ 1 callersMethodvalid_to
(&self)
crates/database/src/orders.rs:594
↓ 1 callersMethodvalid_to
Returns a UNIX timestamp after which the settlement contract will not allow the order to be settled anymore.
crates/driver/src/domain/competition/order/mod.rs:260
↓ 1 callersFunctionvalidate
Check the transaction is exactly the sponsored-creation shape and derive the order from it, returning also the `(mint, token program)` pairs the prepa
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:373
↓ 1 callersFunctionvalidate
The checks an order must pass before it is worth quoting.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:986
↓ 1 callersMethodvalidate
Cross-field invariants that cannot be expressed in the serde schema.
crates/configs/src/shared.rs:111
↓ 1 callersFunctionvalidate_orders
Reject mismatched PDAs, expired orders, and fills that violate the solution's clearing prices.
crates/solana-driver/src/domain/settlement.rs:662
↓ 1 callersMethodvalidate_period
Validates an order's timestamp based on additional data.
crates/shared/src/order_validation.rs:1180
↓ 1 callersFunctionvalidate_same_sell_and_buy_token
( policy: &SameTokensPolicy, order: &PreOrderData, native_token: &Address, )
crates/shared/src/order_validation.rs:413
↓ 1 callersMethodvalidate_signature_and_get_additional_gas
( &self, check: SignatureCheck, )
crates/signature-validator/src/simulation.rs:180
↓ 1 callersMethodvalidation
The `validTo` bounds as the API consumes them.
crates/solana-orderbook/src/infra/config.rs:120
↓ 1 callersMethodvariant_fee_apply
( &self, order: &boundary::Order, quote: &domain::Quote, policy: &policy::Poli
crates/autopilot/src/domain/fee/mod.rs:272
↓ 1 callersFunctionvault
(pool: &WeightedProductOrder)
crates/driver/src/boundary/liquidity/balancer/v2/weighted.rs:53
↓ 1 callersFunctionvault
(pool: &StablePoolOrder)
crates/driver/src/boundary/liquidity/balancer/v2/stable.rs:49
↓ 1 callersMethodvault_relayer
(&self)
crates/driver/src/infra/blockchain/contracts.rs:130
↓ 1 callersMethodverified
(&self, verifier: &Arc<dyn TradeVerifying>)
crates/price-estimation/src/factory.rs:590
↓ 1 callersMethodverifier
Settles quotes in simulation, absent when every quote is unverified.
crates/solana-orderbook/src/infra/api/mod.rs:306
↓ 1 callersMethodverify
( &self, query: &PriceQuery, verification: &Verification, trade: TradeKind,
crates/price-estimation/src/trade_verifier.rs:601
↓ 1 callersMethodverify_approval_strategy
( &self, token: Address, owner: Address, spender: Address, strategy: &
crates/balance-overrides/src/approval/mod.rs:353
↓ 1 callersFunctionverify_deployed_contract_constants
Check that important constants such as the EIP 712 Domain Separator and Order Type Hash used in this binary match the ones on the deployed contract in
crates/orderbook/src/run.rs:612
↓ 1 callersMethodverify_one
Settle `quote`'s transaction behind the creation of the quoted order and read the fill the program records on the order and what the settlement did to
crates/solana-orderbook/src/infra/verifier.rs:283
↓ 1 callersMethodverify_owner
Recovers the owner address for the specified domain, and then verifies it matches the expected addresses. Expected addresses can come from two source
crates/model/src/order.rs:382
↓ 1 callersMethodverify_strategy
Verifies that a strategy controls the balance by writing a sentinel to its slot and reading `balanceOf` back, returning the confirmed strategy. Gener
crates/balance-overrides/src/balance/mod.rs:504
↓ 1 callersMethodversion
(data: &[u8])
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:3637
↓ 1 callersFunctionvolume_fee
Calculate volume fee as a cut of trade volume.
crates/protocol-fees/src/lib.rs:515
↓ 1 callersFunctionvolume_fee
(trade: &Trade, factor: f64)
crates/driver/src/domain/competition/solution/scoring.rs:541
↓ 1 callersFunctionvolume_fee
(trade: &Trade, factor: f64)
crates/autopilot/src/domain/settlement/trade/math.rs:554
↓ 1 callersMethodvolume_fee
The volume protocol fee factor in force at `now`, `None` when no protocol fee is charged.
crates/solana-orderbook/src/infra/api/mod.rs:292
↓ 1 callersFunctionvolume_limit
The boundary leg under one volume `factor`, iterated on the fee itself so it matches [`fee_before_settlement`] to the atom. Sell: the least leg whose
crates/protocol-fees/src/lib.rs:336
↓ 1 callersFunctionwait_for
Execute an asynchronous operation, then wait for the next block to be mined before proceeding. [Dev mode geth](https://geth.ethereum.org/docs/develop
crates/driver/src/tests/setup/blockchain.rs:997
↓ 1 callersFunctionwait_for
(log: &Log, n: usize)
crates/autopilot-svm/src/infra/listen.rs:138
↓ 1 callersFunctionwait_for_block
Waits for the block height to be at least the specified value.
crates/driver/src/tests/setup/blockchain.rs:1005
↓ 1 callersFunctionwait_for_order_indexed
Waits for an order to be indexed by the orderbook service.
crates/e2e/tests/e2e/refunder.rs:45
↓ 1 callersFunctionwait_for_order_settlement
Waits for an order to be settled and indexed in the database.
crates/e2e/tests/e2e/refunder.rs:60
↓ 1 callersMethodwait_for_settlement_transaction
( &self, auction_id: i64, solver: eth::Address, submission_deadline_latest_blo
crates/autopilot/src/settle_call.rs:202
↓ 1 callersMethodwait_inner
(&self, target: SyncTarget)
crates/autopilot/src/maintenance.rs:68
↓ 1 callersFunctionwait_until
(condition: impl Fn() -> bool)
crates/leader-lock/src/leader_pg_lock.rs:267
↓ 1 callersMethodwait_until_auction_start
(&self, prev_block: &Option<B256>)
crates/autopilot/src/run_loop.rs:340
↓ 1 callersMethodwait_until_autopilot_ready
(&self)
crates/e2e/src/setup/services.rs:442
↓ 1 callersMethodwait_until_mined
Watches each new block until the settlement is mined or the deadline passes. The stream must start before the bundles go out, so that no block is miss
crates/driver/src/infra/builders.rs:209
↓ 1 callersMethodwas_successful
(&self)
crates/e2e/src/setup/mod.rs:67
↓ 1 callersMethodweb3
Returns a reference to the underlying web3 client.
crates/autopilot/src/infra/blockchain/mod.rs:53
↓ 1 callersFunctionweb3_client
Builds a web3 client based on the ethrpc args config.
crates/autopilot/src/boundary/mod.rs:32
↓ 1 callersFunctionweight_to_decimal
(weight: liquidity::balancer::v2::weighted::Weight)
crates/driver/src/infra/solver/dto/auction.rs:354
↓ 1 callersMethodwhen
The condition as written.
crates/fee-engine/src/rules.rs:229
↓ 1 callersMethodwinner
The winning solution. Non-empty by construction of `save_quote_competition`, which bails out when no quotes were produced.
crates/autopilot/src/infra/persistence/mod.rs:1235
↓ 1 callersFunctionwinner_voided
Observe that the winning settlement started failing upon arrival of a new block
crates/driver/src/infra/observe/mod.rs:178
← previousnext →3,901–4,000 of 10,776, ranked by callers