Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,776 in github.com/cowprotocol/services
⨍
Functions
10,776
◇
Types & classes
3,479
↓ 1 callers
Method
try_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 callers
Function
try_backend
( client: &reqwest::Client, parts: &axum::http::request::Parts, body: Vec<u8>, backend: &Url,
crates/e2e/src/setup/proxy.rs:180
↓ 1 callers
Method
try_build_settle_request
( &self, pending: FastPathOrder, exclusivity_period_blocks: u64, )
crates/autopilot/src/fast_path.rs:211
↓ 1 callers
Method
try_fetch
(&self, token: Address, timeout: Duration)
crates/price-estimation/src/native/forwarder.rs:32
↓ 1 callers
Function
try_into_domain
( policy: FeePolicy, quote: Option<&domain::quote::Quote>, )
crates/autopilot/src/infra/persistence/dto/fee_policy.rs:60
↓ 1 callers
Method
try_mul_div_floor
(self, mul: Self, div: Self)
crates/chain-types/src/solana.rs:155
↓ 1 callers
Method
try_solve
Sends `/solve` request to the driver and forwards errors to the caller.
crates/autopilot/src/run_loop.rs:780
↓ 1 callers
Method
try_solve
( &self, order: &Order, dex_order: &dex::Order, tokens: &auction::Tokens,
crates/solvers/src/domain/solver/dex/mod.rs:113
↓ 1 callers
Method
try_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 callers
Function
two_orders
(db: &mut PgTransaction<'_>)
crates/database/src/orders.rs:2438
↓ 1 callers
Function
tx
(input: Bytes)
crates/driver/src/domain/mempools.rs:670
↓ 1 callers
Method
tx_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 callers
Function
u160_to_big_decimal
(u160: &U160)
crates/number/src/conversions.rs:83
↓ 1 callers
Method
uid
(&self, domain: ð::DomainSeparator)
crates/driver/src/infra/solver/dto/solution.rs:370
↓ 1 callers
Method
uid
(&self)
crates/driver/src/tests/boundary.rs:31
↓ 1 callers
Function
unbuffered_ethrpc
Creates unbuffered Web3 transport.
crates/autopilot/src/run.rs:98
↓ 1 callers
Function
unbuffered_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 callers
Function
unbuffered_web3
Builds a web3 client that sends requests one by one.
crates/driver/src/boundary/mod.rs:39
↓ 1 callers
Method
uncached_detect
( &self, token: Address, owner: Address, spender: Address, )
crates/balance-overrides/src/approval/mod.rs:275
↓ 1 callers
Method
uncached_detect
( &self, token: Address, holder: Address, )
crates/balance-overrides/src/balance/mod.rs:371
↓ 1 callers
Function
under_limit
Whether the settlement contract rejects the fill at these prices.
crates/driver/src/domain/competition/solution/fee.rs:729
↓ 1 callers
Method
unfunded
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 callers
Function
uniswap_v2_router_for_chain
Resolve a router with the canonical UniswapV2 ABI for the current chain.
crates/e2e/src/setup/deploy.rs:282
↓ 1 callers
Function
unknown_address_returns_empty_ticks
()
crates/e2e/tests/e2e/pool_indexer.rs:576
↓ 1 callers
Function
unlock_override
(contract: Address)
crates/e2e/tests/e2e/state_override.rs:23
↓ 1 callers
Function
unreasonable_estimates_error
()
crates/price-estimation/src/competition/quote.rs:221
↓ 1 callers
Function
unsettled
Records metrics for the matched but unsettled orders.
crates/autopilot/src/run_loop.rs:1265
↓ 1 callers
Method
unverified_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 callers
Method
unverified_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 callers
Function
unwrap
(amount: eth::TokenAmount, weth: &WETH9::Instance)
crates/driver/src/domain/competition/solution/encoding.rs:340
↓ 1 callers
Method
unwrap_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 callers
Method
unwrap_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 callers
Function
update
( ex: &mut PgConnection, auction_id: AuctionId, solver: Address, solution_uid: i64, end_ti
crates/database/src/settlement_executions.rs:50
↓ 1 callers
Method
update_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 callers
Function
update_balances
(inner: Arc<Inner>)
crates/driver/src/infra/tokens.rs:101
↓ 1 callers
Function
update_block_metrics
(previous_block: &BlockInfo, new_block: &BlockInfo)
crates/ethrpc/src/block_stream.rs:353
↓ 1 callers
Method
update_caches
(&self, auction_block: BlockInfo, is_leader: bool)
crates/autopilot/src/run_loop.rs:359
↓ 1 callers
Method
update_database_metrics
(&self)
crates/autopilot/src/database/mod.rs:78
↓ 1 callers
Method
update_events_from_latest_blocks
( &mut self, latest_blocks: &[BlockNumberHash], is_reorg: bool, )
crates/event-indexing/src/event_handler.rs:482
↓ 1 callers
Method
update_events_from_old_blocks
(&mut self, range: RangeInclusive<u64>)
crates/event-indexing/src/event_handler.rs:407
↓ 1 callers
Method
update_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 callers
Function
update_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 callers
Method
update_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 callers
Function
update_of
(update: UpdateOneof)
crates/solana-indexer/src/indexer/ingester/tests.rs:85
↓ 1 callers
Method
update_prices_in_background
( &self, client: Client, base_url: Url, api_key: Option<String>, chain
crates/price-estimation/src/native/oneinch.rs:56
↓ 1 callers
Function
update_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 callers
Method
upload_auction_to_s3
Spawns a background task that uploads the already serialized auction to S3.
crates/autopilot/src/infra/persistence/mod.rs:160
↓ 1 callers
Function
upsert_pool_states
( tx: &mut Transaction<'_, Postgres>, factory: &Address, states: &[PoolStateData], )
crates/pool-indexer/src/db/uniswap_v3.rs:134
↓ 1 callers
Method
url
(&self)
crates/driver/src/tests/setup/blockchain.rs:968
↓ 1 callers
Method
url
Returns a reference to the underlying RPC URL.
crates/autopilot/src/infra/blockchain/mod.rs:58
↓ 1 callers
Method
usd_reference_token
(&self)
crates/autopilot/src/domain/penalty_cap.rs:75
↓ 1 callers
Function
user_orders_with_quote
( ex: &mut PgConnection, min_valid_to: i64, owner: &Address, )
crates/database/src/orders.rs:1091
↓ 1 callers
Function
users_to_check
(order: &Order)
crates/autopilot/src/solvable_orders.rs:517
↓ 1 callers
Function
v1_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 callers
Method
valid_to
(&self)
crates/database/src/orders.rs:594
↓ 1 callers
Method
valid_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 callers
Function
validate
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 callers
Function
validate
The checks an order must pass before it is worth quoting.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:986
↓ 1 callers
Method
validate
Cross-field invariants that cannot be expressed in the serde schema.
crates/configs/src/shared.rs:111
↓ 1 callers
Function
validate_orders
Reject mismatched PDAs, expired orders, and fills that violate the solution's clearing prices.
crates/solana-driver/src/domain/settlement.rs:662
↓ 1 callers
Method
validate_period
Validates an order's timestamp based on additional data.
crates/shared/src/order_validation.rs:1180
↓ 1 callers
Function
validate_same_sell_and_buy_token
( policy: &SameTokensPolicy, order: &PreOrderData, native_token: &Address, )
crates/shared/src/order_validation.rs:413
↓ 1 callers
Method
validate_signature_and_get_additional_gas
( &self, check: SignatureCheck, )
crates/signature-validator/src/simulation.rs:180
↓ 1 callers
Method
validation
The `validTo` bounds as the API consumes them.
crates/solana-orderbook/src/infra/config.rs:120
↓ 1 callers
Method
variant_fee_apply
( &self, order: &boundary::Order, quote: &domain::Quote, policy: &policy::Poli
crates/autopilot/src/domain/fee/mod.rs:272
↓ 1 callers
Function
vault
(pool: &WeightedProductOrder)
crates/driver/src/boundary/liquidity/balancer/v2/weighted.rs:53
↓ 1 callers
Function
vault
(pool: &StablePoolOrder)
crates/driver/src/boundary/liquidity/balancer/v2/stable.rs:49
↓ 1 callers
Method
vault_relayer
(&self)
crates/driver/src/infra/blockchain/contracts.rs:130
↓ 1 callers
Method
verified
(&self, verifier: &Arc<dyn TradeVerifying>)
crates/price-estimation/src/factory.rs:590
↓ 1 callers
Method
verifier
Settles quotes in simulation, absent when every quote is unverified.
crates/solana-orderbook/src/infra/api/mod.rs:306
↓ 1 callers
Method
verify
( &self, query: &PriceQuery, verification: &Verification, trade: TradeKind,
crates/price-estimation/src/trade_verifier.rs:601
↓ 1 callers
Method
verify_approval_strategy
( &self, token: Address, owner: Address, spender: Address, strategy: &
crates/balance-overrides/src/approval/mod.rs:353
↓ 1 callers
Function
verify_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 callers
Method
verify_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 callers
Method
verify_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 callers
Method
verify_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 callers
Method
version
(data: &[u8])
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:3637
↓ 1 callers
Function
volume_fee
Calculate volume fee as a cut of trade volume.
crates/protocol-fees/src/lib.rs:515
↓ 1 callers
Function
volume_fee
(trade: &Trade, factor: f64)
crates/driver/src/domain/competition/solution/scoring.rs:541
↓ 1 callers
Function
volume_fee
(trade: &Trade, factor: f64)
crates/autopilot/src/domain/settlement/trade/math.rs:554
↓ 1 callers
Method
volume_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 callers
Function
volume_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 callers
Function
wait_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 callers
Function
wait_for
(log: &Log, n: usize)
crates/autopilot-svm/src/infra/listen.rs:138
↓ 1 callers
Function
wait_for_block
Waits for the block height to be at least the specified value.
crates/driver/src/tests/setup/blockchain.rs:1005
↓ 1 callers
Function
wait_for_order_indexed
Waits for an order to be indexed by the orderbook service.
crates/e2e/tests/e2e/refunder.rs:45
↓ 1 callers
Function
wait_for_order_settlement
Waits for an order to be settled and indexed in the database.
crates/e2e/tests/e2e/refunder.rs:60
↓ 1 callers
Method
wait_for_settlement_transaction
( &self, auction_id: i64, solver: eth::Address, submission_deadline_latest_blo
crates/autopilot/src/settle_call.rs:202
↓ 1 callers
Method
wait_inner
(&self, target: SyncTarget)
crates/autopilot/src/maintenance.rs:68
↓ 1 callers
Function
wait_until
(condition: impl Fn() -> bool)
crates/leader-lock/src/leader_pg_lock.rs:267
↓ 1 callers
Method
wait_until_auction_start
(&self, prev_block: &Option<B256>)
crates/autopilot/src/run_loop.rs:340
↓ 1 callers
Method
wait_until_autopilot_ready
(&self)
crates/e2e/src/setup/services.rs:442
↓ 1 callers
Method
wait_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 callers
Method
was_successful
(&self)
crates/e2e/src/setup/mod.rs:67
↓ 1 callers
Method
web3
Returns a reference to the underlying web3 client.
crates/autopilot/src/infra/blockchain/mod.rs:53
↓ 1 callers
Function
web3_client
Builds a web3 client based on the ethrpc args config.
crates/autopilot/src/boundary/mod.rs:32
↓ 1 callers
Function
weight_to_decimal
(weight: liquidity::balancer::v2::weighted::Weight)
crates/driver/src/infra/solver/dto/auction.rs:354
↓ 1 callers
Method
when
The condition as written.
crates/fee-engine/src/rules.rs:229
↓ 1 callers
Method
winner
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 callers
Function
winner_voided
Observe that the winning settlement started failing upon arrival of a new block
crates/driver/src/infra/observe/mod.rs:178
← previous
next →
3,901–4,000 of 10,776, ranked by callers