Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,747 in github.com/cowprotocol/services
⨍
Functions
10,747
◇
Types & classes
3,488
↓ 1 callers
Function
assert_allows_failed_transfer
( create_error: impl Fn() -> TransferSimulationError + Send + 'static, is_expected_err
crates/shared/src/order_validation.rs:2689
↓ 1 callers
Function
assert_bad_request_message
(err: PriceEstimationError, expected_message: &str)
crates/autopilot/src/infra/api.rs:138
↓ 1 callers
Method
assert_credentials_are_usable
Uploads a small test file to verify that the credentials loaded from the environment allow uploads to S3.
crates/s3/src/lib.rs:127
↓ 1 callers
Function
assert_matches_api
Fails unless `view` equals `api` up to the view's two conversions: decimal strings become doubles and hex strings become lowercase.
crates/fee-engine/src/order_view/mod.rs:273
↓ 1 callers
Function
assert_settle_success
( settle_result: Result<reqwest::Result<reqwest::Response>, tokio::task::JoinError>, auction_id: &str,
crates/e2e/tests/e2e/parallel_settlement.rs:344
↓ 1 callers
Function
assert_solver_delegates_to_expected_contract
( web3: &Web3, solver: Address, callers: [Address; 2], )
crates/e2e/tests/e2e/parallel_settlement.rs:230
↓ 1 callers
Function
ata_rent
The rent-exempt minimum under `rent`, in lamports, of a new associated token account of the mint at `mint`, see [`ata_len`].
crates/solana-token/src/lib.rs:235
↓ 1 callers
Method
attach_label
(&self, req: &mut SerializedRequest)
crates/ethrpc/src/alloy/instrumentation.rs:52
↓ 1 callers
Function
auction
(id: Id)
crates/solvers-dto/src/auction.rs:429
↓ 1 callers
Method
auction
Records an auction, or a cut that found no order for one.
crates/autopilot-svm/src/run.rs:59
↓ 1 callers
Method
auction_id
(&self)
crates/autopilot/src/settle_call.rs:40
↓ 1 callers
Method
auction_id
(&self)
crates/autopilot/src/domain/settlement/mod.rs:68
↓ 1 callers
Function
auction_participants
( ex: &mut PgConnection, auction_id: i64, )
crates/e2e/tests/e2e/database.rs:81
↓ 1 callers
Function
auction_prices
( ex: &mut PgConnection, auction_id: i64, )
crates/e2e/tests/e2e/database.rs:93
↓ 1 callers
Function
auction_snapshot
The stored auction body: the solver-facing content without the deadline, which is only known at dispatch.
crates/autopilot-svm/src/infra/provider.rs:381
↓ 1 callers
Method
available
What a solver may fill: `remaining` scaled down to `sell_balance` for a partially fillable order. A fill-or-kill order keeps its remainder. The cut ju
crates/autopilot-svm/src/domain/auction.rs:91
↓ 1 callers
Function
await_acks
Awaits JetStream publish acks concurrently and logs any failures. Runs until the publisher task drops its sender and all in-flight acks have resolved,
crates/observe/src/event_bus/mod.rs:133
↓ 1 callers
Function
backend
()
crates/order-validation/src/banned/hermod.rs:107
↓ 1 callers
Method
backend_count
Returns the total number of backends configured. Used to determine how many retry attempts to make before giving up.
crates/e2e/src/setup/proxy.rs:66
↓ 1 callers
Function
backfill_decimals
Decimals counterpart of [`backfill_symbols`]. Uses `-1` as the "tried and failed" sentinel.
crates/pool-indexer/src/indexer/uniswap_v3.rs:562
↓ 1 callers
Method
backfill_inner
(&self)
crates/solana-indexer/src/indexer/decoder/backfill.rs:67
↓ 1 callers
Function
backfill_symbols
Periodically fills `token{0,1}_symbol` on newly-indexed pools. Tokens whose `symbol()` call fails (revert / decode / empty) are stored as `""` so the
crates/pool-indexer/src/indexer/uniswap_v3.rs:474
↓ 1 callers
Method
bad_order_detection
(&self)
crates/driver/src/infra/solver/mod.rs:301
↓ 1 callers
Function
balance
An account's balance in `unit`, zero for a missing account or one that is no token or order account.
crates/solana-orderbook/src/infra/verifier.rs:609
↓ 1 callers
Method
balance_helper
(&self)
crates/driver/src/infra/blockchain/contracts.rs:150
↓ 1 callers
Method
balance_simulator
(&self)
crates/driver/src/infra/blockchain/mod.rs:164
↓ 1 callers
Method
balances
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:130
↓ 1 callers
Method
balances_address
Ensure that the Balances contract is deployed to a specific address
crates/driver/src/tests/setup/mod.rs:863
↓ 1 callers
Method
base_fee
(&self)
crates/gas-price-estimation/src/fake.rs:26
↓ 1 callers
Method
base_fee
(&self)
crates/gas-price-estimation/src/configurable_alloy.rs:121
↓ 1 callers
Method
base_fee
(&self)
crates/gas-price-estimation/src/gas_price.rs:40
↓ 1 callers
Function
base_pool_factory
( contract_instance: &BalancerFactoryInstance, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/registry.rs:135
↓ 1 callers
Function
base_token_pairs
All token pairs between base tokens.
crates/solvers/src/boundary/routing.rs:225
↓ 1 callers
Function
batch_order
The swap to quote for `orders`, orders of one side on one pair: their mints, destination and side, over their totals. `None` for no orders or when the
crates/solana-solvers/src/domain/solver/mod.rs:360
↓ 1 callers
Function
batch_set_token_decimals
Sets `token0_decimals` / `token1_decimals` for every pool containing one of the input tokens. Pass `-1` for "tried, failed" so the next backfill's `IS
crates/pool-indexer/src/db/uniswap_v3.rs:563
↓ 1 callers
Function
batch_set_token_symbols
Symbol-side counterpart of [`batch_set_token_decimals`]. Pass `""` for "tried, failed".
crates/pool-indexer/src/db/uniswap_v3.rs:602
↓ 1 callers
Function
batch_size
(size: usize)
crates/price-estimation/src/native/coingecko.rs:313
↓ 1 callers
Function
batch_update_pool_liquidity
( tx: &mut Transaction<'_, Postgres>, factory: &Address, updates: &[LiquidityUpdateData], )
crates/pool-indexer/src/db/uniswap_v3.rs:189
↓ 1 callers
Function
batch_update_ticks
( tx: &mut Transaction<'_, Postgres>, factory: &Address, deltas: &[TickDeltaData], )
crates/pool-indexer/src/db/uniswap_v3.rs:299
↓ 1 callers
Function
batched_for_each
Batches a stream into chunks. This is very similar to `futures::stream::StreamExt::ready_chunks` with the difference that it allows configuring a min
crates/price-estimation/src/buffered.rs:212
↓ 1 callers
Method
batches
The batches to quote: the orders of each side, directed mint pair and swap destination, most permissive first, in runs of up to `max_batch_size` whose
crates/solana-solvers/src/domain/solver/mod.rs:146
↓ 1 callers
Method
bdiv_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/math.rs:31
↓ 1 callers
Function
begin_settle
The `BeginSettle` instruction pulling each order's sell tokens. The program only records `auction_id`, zero for a quote's simulated settlement.
crates/solana-driver/src/domain/settlement.rs:894
↓ 1 callers
Method
best
The best estimate.
crates/price-estimation/src/lib.rs:263
↓ 1 callers
Function
bids
(bids: &[domain::competition::Bid<Unscored>])
crates/autopilot/src/run_loop.rs:1166
↓ 1 callers
Function
big_uint_to_u160
(input: &BigUint)
crates/number/src/conversions.rs:93
↓ 1 callers
Function
binary_name
()
crates/observe/src/heap_dump_handler.rs:112
↓ 1 callers
Function
binary_name
()
crates/observe/src/tracing/reload_handler.rs:47
↓ 1 callers
Function
bisecting_get_logs_with_depth
( provider: &AlloyProvider, from: u64, to: u64, addresses: Vec<Address>, topics: Vec<B256>
crates/pool-indexer/src/indexer/uniswap_v3.rs:728
↓ 1 callers
Function
block_below
The slot of the block `age` blocks below the one at `latest`, given the ascending slots of the blocks up to `latest`.
crates/solana-driver/src/infra/blockchain/mod.rs:282
↓ 1 callers
Method
block_gas_limit
(&self)
crates/driver/src/infra/blockchain/mod.rs:209
↓ 1 callers
Function
block_timestamp_drift
Seconds between a block's own timestamp and when we observed it. Negative if the block claims a timestamp in the future. Includes any local clock skew
crates/ethrpc/src/block_stream.rs:383
↓ 1 callers
Function
block_with_timestamp
(unix_timestamp: u64)
crates/autopilot/src/run_loop.rs:1205
↓ 1 callers
Method
blockhash_below
The hash of the block `age` blocks below the latest one, `None` when the search finds no block at that height. Blocks sit at distinct slots, so the `2
crates/solana-driver/src/infra/blockchain/mod.rs:124
↓ 1 callers
Method
blocks
The slots of the confirmed blocks from `start` to `end`, both included, in ascending order.
crates/cow-solana-rpc/src/lib.rs:188
↓ 1 callers
Method
blocks_in
Returns the number of blocks that fits into the given time (in milliseconds)
crates/chain/src/lib.rs:118
↓ 1 callers
Method
body_size
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:116
↓ 1 callers
Function
bps
Factors in basis points, as `protocolFeeBps` shows them.
crates/orderbook/src/fee_engine.rs:267
↓ 1 callers
Method
bps
Returns the fee in basis points.
crates/driver/src/domain/liquidity/swapr.rs:51
↓ 1 callers
Function
bucket
(tokens: &[Address])
crates/orderbook/src/fee_engine.rs:316
↓ 1 callers
Function
build_api_state
(db: &PgPool, network: &NetworkConfig)
crates/pool-indexer/src/run.rs:152
↓ 1 callers
Method
build_approximation_tokens
Builds the approximation tokens mapping with normalization factors based on decimal differences between token pairs.
crates/price-estimation/src/factory.rs:514
↓ 1 callers
Method
build_auction_requests
Builds the auction requests, if no drivers have opted-in to delta-auctions or if a checkpoint is due, the second request will effectively be a copy of
crates/autopilot/src/run_loop.rs:581
↓ 1 callers
Function
build_auctions
( db_auctions: Vec<DbAuction>, db_solutions: Vec<DbProposedSolution>, db_executions: Vec<DbOrderEx
crates/orderbook/src/database/debug_report.rs:97
↓ 1 callers
Function
build_final_state_overrides
Resolves all [`AccountOverrideRequest`]s concurrently on a best-effort basis. Returns the fully resolved state overrides and [`AccountOverrideRequest`
crates/simulator/src/encoding.rs:578
↓ 1 callers
Function
build_module
()
contracts/src/main.rs:92
↓ 1 callers
Function
build_native_prices
(data: &QuoteCompetition)
crates/shared/src/quote_storage.rs:165
↓ 1 callers
Function
build_naturally_failing_replay_simulation
( rpc_url: &str, full_app_data: &str, )
crates/simulator/tests/aave_replay.rs:242
↓ 1 callers
Function
build_order
Assemble the order row from the validated intent.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:1034
↓ 1 callers
Function
build_order_quote_response
( request: &OrderQuoteRequest, quote: &Quote, adjusted: &AdjustedQuoteData, id: Option<model::
crates/orderbook/src/quoter.rs:378
↓ 1 callers
Function
build_override
Builds a state override that makes `balanceOf(holder)` on the aToken report approximately `amount`. Writes into the canonical `_userState` slot (`USER
crates/balance-overrides/src/balance/aave.rs:140
↓ 1 callers
Function
build_penalty_cap_calculator
Builds the penalty cap calculator by fetching the USD reference token's decimals and initial native price. Panics when either fetch fails.
crates/autopilot/src/run.rs:835
↓ 1 callers
Function
build_provider
(network: &NetworkConfig)
crates/pool-indexer/src/run.rs:274
↓ 1 callers
Method
build_settle_call
Generates the calldata for the underlying `settle()` call as well as all the required state overrides (user approval, sell_token balance, order signat
crates/price-estimation/src/trade_verifier.rs:283
↓ 1 callers
Method
build_simulation_call
Passes the prepared `settle_call` to the simulation machinery which makes sure all the pre-conditions are met and collects additional information thro
crates/price-estimation/src/trade_verifier.rs:183
↓ 1 callers
Function
builder_response_time
Observe how long a block builder took to answer a settlement bundle.
crates/driver/src/infra/observe/mod.rs:433
↓ 1 callers
Function
builders_submission_result
Log the submission of a settlement to the block builders.
crates/driver/src/infra/observe/mod.rs:402
↓ 1 callers
Method
bulk_fetch_denominated_in_token
Fetches the prices of the given tokens denominated in the given token.
crates/price-estimation/src/native/coingecko.rs:148
↓ 1 callers
Method
bundle_blocks
The blocks targeted by the bundles, in ascending order.
crates/driver/src/tests/setup/builder.rs:54
↓ 1 callers
Function
bundle_submission
Observe how far the settlement bundle for `block` got with a block builder.
crates/driver/src/infra/observe/mod.rs:441
↓ 1 callers
Function
buy
(uid: u8, buy_amount: u64, sell_limit: u64)
crates/solana-solvers/src/domain/solver/mod.rs:902
↓ 1 callers
Function
buy_account_rent
The rent of the quoted order's buy token account, zero when the payout lands in an existing one. An existing account that cannot take the payout is re
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:701
↓ 1 callers
Method
buy_amount
The effective amount the user received after all fees. Note how the `executed` amount is used to build actual traded amounts. Settlement contract us
crates/driver/src/domain/competition/solution/scoring.rs:188
↓ 1 callers
Method
buy_amount
The buy amount with the surplus factor.
crates/driver/src/tests/setup/blockchain.rs:162
↓ 1 callers
Function
buy_token_account
()
crates/solana-driver/tests/api.rs:84
↓ 1 callers
Function
buy_token_account_candidates
(request: &dto::Request, program: TokenProgram)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:797
↓ 1 callers
Function
buy_token_destination_from_domain
( value: BuyTokenDestination, )
crates/driver/src/infra/solver/dto/auction.rs:341
↓ 1 callers
Function
by_permissiveness
Orders the orders of one side by their limit price, the least buy per unit sold first: the lowest minimum out for a sell, the highest maximum in for a
crates/solana-solvers/src/domain/solver/mod.rs:299
↓ 1 callers
Method
cache_approval_address
Helper to cache approval addresses.
crates/solvers/src/infra/dex/okx/mod.rs:344
↓ 1 callers
Function
cache_config
The default pool caching configuration to use.
crates/driver/src/boundary/liquidity/mod.rs:29
↓ 1 callers
Method
cache_missing_tokens
Ensures that all the missing tokens are in the cache afterwards while taking into account that the function might be called multiple times for the sam
crates/driver/src/infra/tokens.rs:198
↓ 1 callers
Method
cache_quote_solution
Cache a fast-path quote's solution under this solver's account, to be settled later via [`Competition::reencode_quote_solution`].
crates/driver/src/domain/competition/mod.rs:549
↓ 1 callers
Method
caching_native_price_estimator
Creates a [`CachingNativePriceEstimator`] that wraps a native price estimator with an in-memory cache. If `eip4626` is enabled, the estimator is wrap
crates/price-estimation/src/factory.rs:464
↓ 1 callers
Function
calculate_analytic_invariant_two_tokens
interpreted from https://github.com/balancer-labs/balancer-v2-monorepo/blob/stable-deployment/pvt/helpers/src/models/pools/stable/math.ts#L53
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:230
↓ 1 callers
Function
calculate_custom_prices
Calculate custom clearing prices excluding protocol fees. This adjusts prices to reflect the trade without the accumulated fees.
crates/protocol-fees/src/lib.rs:552
↓ 1 callers
Function
calculate_custom_prices
( trade: &Trade, protocol_fee: eth::SurplusTokenAmount, )
crates/driver/src/domain/competition/solution/scoring.rs:446
↓ 1 callers
Function
calculate_custom_prices
( trade: &Trade, protocol_fee: eth::SurplusTokenAmount, )
crates/autopilot/src/domain/settlement/trade/math.rs:460
↓ 1 callers
Function
calculate_fee
( fulfillment: &Fulfillment, price_limits: PriceLimits, prices: ClearingPr
crates/driver/src/domain/competition/solution/fee.rs:459
↓ 1 callers
Method
calculate_quote
( &self, request: &OrderQuoteRequest, )
crates/orderbook/src/quoter.rs:133
↓ 1 callers
Method
calculate_quote_stream
( &self, request: &OrderQuoteRequest, )
crates/orderbook/src/quoter.rs:185
← previous
next →
2,301–2,400 of 10,747, ranked by callers