MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,736 in github.com/cowprotocol/services

↓ 1 callersMethodswap
Build the swap for `quote` that the settlement signer `user` executes, at the quote's amounts. The route spends its input from the sell-mint ATA of t
crates/solana-solvers/src/dex/mod.rs:156
↓ 1 callersMethodswap
Build the swap for `quote` from the route it kept.
crates/solana-solvers/src/dex/bitget/mod.rs:90
↓ 1 callersMethodswap
( &self, quote: &dex::Quote, taker: &Pubkey, )
crates/solana-solvers/src/domain/solver/mod.rs:45
↓ 1 callersMethodswapFee
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4815
↓ 1 callersMethodswap_instructions
`POST /swap/v1/swap-instructions` for the given quote.
crates/solana-solvers/src/dex/jupiter/mod.rs:101
↓ 1 callersMethodsync
Waits for the next tip and brings the order caches up to it.
crates/autopilot-svm/src/run_loop.rs:244
↓ 1 callersMethodsync_to_tip
(&self, _tip: &u64)
crates/autopilot-svm/src/run_loop.rs:397
↓ 1 callersFunctionsystem_account
(lamports: u64, data_len: usize)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:1102
↓ 1 callersMethodtake_errors
Returns how many heartbeats failed since the last call, and resets the count.
crates/leader-lock/src/leader_pg_lock.rs:89
↓ 1 callersFunctiontakes_a_cut
Whether a fee schedule takes anything from a transfer: a rate in basis points under a positive cap.
crates/solana-token/src/lib.rs:140
↓ 1 callersMethodtarget_amount
(&self)
crates/solana-driver/src/infra/solver/dto/auction.rs:105
↓ 1 callersMethodtenderly
( config: &configs::simulator::TenderlyConfig, eth: Ethereum, http_factory: &HttpClien
crates/simulator/src/lib.rs:35
↓ 1 callersFunctiontest
Test that quoting works as expected, specifically, that we can quote for a token pair and additional gas from ERC-1271 and hooks are included in the q
crates/e2e/tests/e2e/quoting.rs:86
↓ 1 callersFunctiontest_account_query
( queried_account: &Address, client: &Client, order: &ExtendedEthFlowOrder, owner: &Address,
crates/e2e/tests/e2e/ethflow.rs:771
↓ 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:757
↓ 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:712
↓ 1 callersFunctiontest_trade_query
( query_type: &TradeQuery, client: &Client, contracts: &Contracts, ethflow_contract: &CoWSwapE
crates/e2e/tests/e2e/ethflow.rs:798
↓ 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_high_precision
Converts the fee factor to a high precision scaled integer. For example, 0.00003 -> 30 (with scale of 1_000_000) This allows sub-basis-point precision
crates/configs/src/fee_factor.rs:34
↓ 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:304
↓ 1 callersMethodto_temp_path
(&self)
crates/configs/src/orderbook/mod.rs:194
↓ 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:393
↓ 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:472
↓ 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:131
↓ 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_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:212
↓ 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
← previousnext →3,801–3,900 of 10,736, ranked by callers