MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 1 callersFunctiontest_account_query
( queried_account: &Address, client: &Client, order: &ExtendedEthFlowOrder, owner: &Address,
crates/e2e/tests/e2e/ethflow.rs:777
↓ 1 callersFunctiontest_balance_override
( web3: &Web3, token: Address, test_account: Address, test_balance: U256,
crates/e2e/tests/e2e/quote_verification.rs:495
↓ 1 callersFunctiontest_exp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:229
↓ 1 callersFunctiontest_orders_query
( services: &Services<'_>, order: &ExtendedEthFlowOrder, owner: &Address, contracts: &Contract
crates/e2e/tests/e2e/ethflow.rs:763
↓ 1 callersFunctiontest_prices
Native prices for the seeded order's pair, at the denominator so scores stay raw surplus.
crates/autopilot-svm/src/tests.rs:168
↓ 1 callersFunctiontest_trade_availability_in_api
( client: &Client, order: &ExtendedEthFlowOrder, owner: &Address, contracts: &Contracts, e
crates/e2e/tests/e2e/ethflow.rs:718
↓ 1 callersFunctiontest_trade_query
( query_type: &TradeQuery, client: &Client, contracts: &Contracts, ethflow_contract: &CoWSwapE
crates/e2e/tests/e2e/ethflow.rs:804
↓ 1 callersFunctiontesting_alloy_node_error
()
crates/ethrpc/src/alloy/errors.rs:107
↓ 1 callersFunctiontext
(value: String)
crates/fee-engine/src/order_view/mod.rs:91
↓ 1 callersMethodtime_until_deadline
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:128
↓ 1 callersMethodtimes_rate_limited
Returns number of times we got rate limited in a row if we are currently allowing requests.
crates/rate-limit/src/lib.rs:91
↓ 1 callersFunctiontimestamp_after_duration
Adds a `std::time::Duration` to a `u32` timestamp. This function uses saturating semantics and can't panic.
crates/model/src/time.rs:19
↓ 1 callersMethodtip
The poller's tip, for components that wait on slots outside the cycle.
crates/autopilot-svm/src/infra/trigger.rs:65
↓ 1 callersFunctionto_boundary_base_tokens
( weth: &eth::WethAddress, base_tokens: &HashSet<eth::TokenAddress>, )
crates/solvers/src/boundary/baseline.rs:322
↓ 1 callersFunctionto_boundary_liquidity
( liquidity: &[liquidity::Liquidity], uni_v3_quoter_v2: Option<Arc<contracts::UniswapV3QuoterV2::Insta
crates/solvers/src/boundary/baseline.rs:158
↓ 1 callersFunctionto_boundary_pool
Converts a domain pool into a [`shared`] Balancer V2 stable pool. Returns `None` if the domain pool cannot be represented as a boundary pool.
crates/solvers/src/boundary/liquidity/stable.rs:13
↓ 1 callersMethodto_boundary_scheme
(&self)
crates/driver/src/domain/competition/order/signature.rs:48
↓ 1 callersMethodto_boundary_signature
(&self)
crates/driver/src/domain/competition/order/signature.rs:13
↓ 1 callersFunctionto_boundary_token_pair
(pair: &liquidity::TokenPair)
crates/solvers/src/boundary/baseline.rs:330
↓ 1 callersMethodto_bps_str
Converts the fee factor to basis points (BPS). Supports fractional BPS values (e.g., 0.00003 -> "0.3") Rounds to 2 decimal places to avoid floating po
crates/configs/src/fee_factor.rs:26
↓ 1 callersFunctionto_domain
(id: liquidity::Id, pool: ConstantProductOrder)
crates/driver/src/boundary/liquidity/swapr.rs:23
↓ 1 callersFunctionto_domain
(pool: &ConstantProductPool)
crates/solvers/src/api/routes/solve/dto/auction.rs:101
↓ 1 callersMethodto_domain
(&self, order_uid: OrderUid)
crates/autopilot/src/infra/persistence/dto/order.rs:383
↓ 1 callersMethodto_domain_separator
(&self)
crates/e2e/src/api/zeroex.rs:183
↓ 1 callersFunctionto_e15
(value: u128)
crates/autopilot/src/domain/competition/winner_selection.rs:1275
↓ 1 callersFunctionto_fixed_point
Converts a rational to a Balancer fixed point number.
crates/solvers/src/boundary/liquidity/stable.rs:53
↓ 1 callersFunctionto_fixed_point
Converts a rational to a Balancer fixed point number.
crates/solvers/src/boundary/liquidity/weighted_product.rs:57
↓ 1 callersMethodto_interaction
( &self, input: &liquidity::MaxInput, )
crates/driver/src/domain/liquidity/zeroex.rs:50
↓ 1 callersMethodto_interaction_data
(&self)
crates/price-estimation/src/trade_finding/mod.rs:238
↓ 1 callersMethodto_metrics_label
(&self)
crates/database/src/onchain_broadcasted_orders.rs:23
↓ 1 callersFunctionto_rust_ident
Convert a crate name (kebab-case) to a Rust identifier (underscore_case).
contracts/src/codegen.rs:62
↓ 1 callersFunctionto_sdk_pubkey
Bridge a `settlement_interface` pubkey to the indexer's `solana_sdk` pubkey. The two crates pin different `solana-pubkey` majors, so the types differ
crates/solana-indexer/src/indexer/decoder.rs:725
↓ 1 callersMethodto_temp_path
(&self)
crates/configs/src/autopilot/mod.rs:308
↓ 1 callersMethodto_temp_path
(&self)
crates/configs/src/orderbook/mod.rs:196
↓ 1 callersFunctionto_winsel_order
(uid: domain::OrderUid, order: &TradedOrder)
crates/autopilot/src/domain/competition/winner_selection.rs:161
↓ 1 callersFunctiontoken_2022_mint_account
An initialized Token-2022 mint with the `MintCloseAuthority` extension, so its data is longer than an SPL Token mint's.
crates/solana-driver/src/infra/blockchain/accounts.rs:358
↓ 1 callersFunctiontoken_account_json
A canned `getMultipleAccounts` entry: an initialized account of the classic SPL token program holding `mint`.
crates/autopilot-svm/src/tests.rs:109
↓ 1 callersMethodtoken_account_needs_creation
Whether the token account at `address` must be created before it can hold tokens, see [`Self::token_account_state`].
crates/solana-driver/src/infra/blockchain/accounts.rs:113
↓ 1 callersMethodtoken_largest_accounts
The addresses of `mint`'s largest token accounts, up to 20, largest first. Needs a node with the `spl-token-mint` account index.
crates/cow-solana-rpc/src/lib.rs:373
↓ 1 callersMethodtoken_liquidity
Returns the token pairs to fetch liquidity for.
crates/driver/src/domain/quote.rs:348
↓ 1 callersMethodtoken_metadata
(&self, token: &Address)
crates/orderbook/src/database/orders.rs:466
↓ 1 callersFunctiontoken_mints
The token mints an order moves: the sell mint, and the buy mint unless the order buys native SOL.
crates/autopilot-svm/src/infra/provider.rs:463
↓ 1 callersFunctiontoken_pair
()
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:601
↓ 1 callersMethodtoken_pairs
Returns an iterator over the tokens pairs handled by the pool reserves.
crates/solvers/src/domain/liquidity/stable.rs:46
↓ 1 callersMethodtokens
Returns an iterator over the reserve tokens.
crates/driver/src/domain/liquidity/balancer/v2/weighted.rs:75
↓ 1 callersMethodtokens
Returns an iterator over the reserve tokens.
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:71
↓ 1 callersMethodtotal_surplus
(&self, user: &alloy::primitives::Address)
crates/orderbook/src/database/total_surplus.rs:116
↓ 1 callersMethodtrack_auction_update
(&self, result: &str)
crates/autopilot/src/solvable_orders.rs:475
↓ 1 callersFunctiontrack_block_range
(range: &str)
crates/event-indexing/src/event_handler.rs:683
↓ 1 callersFunctiontrack_refunding_loop_result
(result: LoopResult)
crates/refunder/src/metrics.rs:52
↓ 1 callersMethodtradable_balance_simple
( &self, query: &Query, token: &ERC20::Instance, )
crates/account-balances/src/simulation.rs:60
↓ 1 callersMethodtradable_balance_simulated
(&self, query: &Query)
crates/account-balances/src/simulation.rs:36
↓ 1 callersFunctiontrade
(uid: u8, executed_sell: u64, executed_buy: u64)
crates/solana-driver/src/domain/protocol_fee.rs:142
↓ 1 callersMethodtrade_matches
Find for a JIT order, given specific token pair and buy/sell amount, return true if the JIT order was found
crates/driver/src/tests/setup/mod.rs:1429
↓ 1 callersFunctiontrade_to_key
(trade: &EncodedTrade)
crates/autopilot/src/domain/settlement/mod.rs:244
↓ 1 callersMethodtrades
(&self, filter: &TradeFilter)
crates/orderbook/src/database/trades.rs:40
↓ 1 callersMethodtrades_paginated
(&self, filter: &PaginatedTradeFilter)
crates/orderbook/src/database/trades.rs:100
↓ 1 callersMethodtrampoline
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:138
↓ 1 callersMethodtraverse_path
( &self, path: &[&OnchainLiquidity], mut sell_token: Address, mut sell_amount:
crates/solvers/src/boundary/baseline.rs:117
↓ 1 callersMethodtrust
Set up the protocol to consider the specified token as trusted. The token is identified by its symbol.
crates/driver/src/tests/setup/mod.rs:833
↓ 1 callersMethodtry_acquire
Tries to acquire the leader lock if it's enabled If not, does nothing Should be called at the beginning of every run loop iteration
crates/autopilot/src/leader_lock_tracker.rs:40
↓ 1 callersMethodtry_acquire
Takes the lock, or checks that the held one is still alive. Called at the start of every cycle.
crates/autopilot-svm/src/leader_lock_tracker.rs:34
↓ 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:717
↓ 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 callersMethodunlock
(mut self)
crates/database/src/leader_pg_lock.rs:18
↓ 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:1181
↓ 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:409
↓ 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:314
← previousnext →3,801–3,900 of 10,747, ranked by callers