Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,522 in github.com/cowprotocol/services
⨍
Functions
8,522
◇
Types & classes
3,082
↓ 1 callers
Method
assemble_wrappers
(&self, auction: &Auction)
crates/driver/src/infra/solver/mod.rs:514
↓ 1 callers
Function
assert_allows_failed_transfer
( create_error: impl Fn() -> TransferSimulationError + Send + 'static, is_expected_err
crates/shared/src/order_validation.rs:2474
↓ 1 callers
Function
assert_bad_request_message
(err: PriceEstimationError, expected_message: &str)
crates/autopilot/src/infra/api.rs:135
↓ 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_settle_success
( settle_result: Result<reqwest::Result<reqwest::Response>, tokio::task::JoinError>, auction_id: &str,
crates/e2e/tests/e2e/parallel_settlement.rs:345
↓ 1 callers
Function
assert_solver_delegates_to_expected_contract
( web3: &Web3, solver: Address, callers: [Address; 2], )
crates/e2e/tests/e2e/parallel_settlement.rs:231
↓ 1 callers
Function
asset
(amount: eth::U256)
crates/driver/src/infra/solver/dto/auction.rs:459
↓ 1 callers
Method
attach_label
(&self, req: &mut SerializedRequest)
crates/ethrpc/src/alloy/instrumentation.rs:52
↓ 1 callers
Function
auction
Observe a received auction.
crates/driver/src/infra/observe/mod.rs:47
↓ 1 callers
Method
auction_id
Set specific auction ID which will be used during test. Setting auction ID can be used to test various scenarios when handling competing solutions in
crates/driver/src/tests/setup/mod.rs:900
↓ 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:40
↓ 1 callers
Function
auction_prices
( ex: &mut PgConnection, auction_id: i64, )
crates/e2e/tests/e2e/database.rs:52
↓ 1 callers
Function
auction_start_block
( ex: &mut PgConnection, id: AuctionId, )
crates/database/src/solver_competition.rs:40
↓ 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:530
↓ 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:442
↓ 1 callers
Method
bad_order_detection
(&self)
crates/driver/src/infra/solver/mod.rs:284
↓ 1 callers
Method
balance_helper
(&self)
crates/driver/src/infra/blockchain/contracts.rs:140
↓ 1 callers
Method
balance_simulator
(&self)
crates/driver/src/infra/blockchain/mod.rs:162
↓ 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:865
↓ 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:119
↓ 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:224
↓ 1 callers
Function
batch_seed_ticks
Set `liquidity_net` directly (no delta accumulation). Used by the seeder where the subgraph value is already the net.
crates/pool-indexer/src/db/uniswap_v3.rs:340
↓ 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:604
↓ 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:643
↓ 1 callers
Function
batch_size
(size: usize)
crates/price-estimation/src/native/coingecko.rs:310
↓ 1 callers
Function
batch_update_pool_liquidity
( tx: &mut Transaction<'_, Postgres>, factory: &Address, updates: &[LiquidityUpdateData], )
crates/pool-indexer/src/db/uniswap_v3.rs:164
↓ 1 callers
Function
batch_update_ticks
( tx: &mut Transaction<'_, Postgres>, factory: &Address, deltas: &[TickDeltaData], )
crates/pool-indexer/src/db/uniswap_v3.rs:274
↓ 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:211
↓ 1 callers
Method
bdiv_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/math.rs:31
↓ 1 callers
Function
bids
(bids: &[domain::competition::Bid<Unscored>])
crates/autopilot/src/run_loop.rs:1178
↓ 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:110
↓ 1 callers
Function
binary_name
()
crates/observe/src/tracing/reload_handler.rs:47
↓ 1 callers
Function
bisecting_get_logs
Fetches logs for `[from, to]` filtered by the given contract addresses and `topic0` event signatures, sequentially bisecting the block range on "too l
crates/pool-indexer/src/indexer/uniswap_v3.rs:678
↓ 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:688
↓ 1 callers
Method
block_gas_limit
(&self)
crates/driver/src/infra/blockchain/mod.rs:207
↓ 1 callers
Method
block_time_in_ms
Returns the block time in milliseconds
crates/chain/src/lib.rs:93
↓ 1 callers
Function
block_with_timestamp
(unix_timestamp: u64)
crates/autopilot/src/run_loop.rs:1217
↓ 1 callers
Method
blocks_in
Returns the number of blocks that fits into the given time (in milliseconds)
crates/chain/src/lib.rs:113
↓ 1 callers
Method
body_size
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:123
↓ 1 callers
Method
bps
Returns the fee in basis points.
crates/driver/src/domain/liquidity/swapr.rs:51
↓ 1 callers
Function
build_account_keys
The transaction's full account list that instruction indices resolve against: static keys, then ALT-loaded writable addresses, then readonly, in that
crates/solana-indexer/src/indexer/decoder.rs:102
↓ 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:478
↓ 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:551
↓ 1 callers
Function
build_module
()
contracts/src/main.rs:92
↓ 1 callers
Function
build_naturally_failing_replay_simulation
( rpc_url: &str, full_app_data: &str, )
crates/simulator/tests/aave_replay.rs:241
↓ 1 callers
Function
build_order_quote_response
( request: &OrderQuoteRequest, quote: &Quote, adjusted: &AdjustedQuoteData, id: Option<model::
crates/orderbook/src/quoter.rs:344
↓ 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:139
↓ 1 callers
Function
build_pool_data_source
Picks the V3 pool data source based on the configured pool source variant.
crates/driver/src/boundary/liquidity/uniswap/v3.rs:144
↓ 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:269
↓ 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:175
↓ 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:146
↓ 1 callers
Function
buy
()
crates/solvers/src/tests/bitget/market_order.rs:159
↓ 1 callers
Method
buy_amount
The buy amount with the surplus factor.
crates/driver/src/tests/setup/blockchain.rs:160
↓ 1 callers
Function
buy_token_destination_from_domain
( value: BuyTokenDestination, )
crates/driver/src/infra/solver/dto/auction.rs:380
↓ 1 callers
Method
cache_approval_address
Helper to cache approval addresses.
crates/solvers/src/infra/dex/okx/mod.rs:344
↓ 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
caching_native_price_estimator
Creates a [`CachingNativePriceEstimator`] that wraps a native price estimator with an in-memory cache. If `eip4626` is true, it will wrap the estimat
crates/price-estimation/src/factory.rs:432
↓ 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:228
↓ 1 callers
Method
calculate_custom_prices
Derive new custom prices (given the current custom prices) to exclude the protocol fee from the trade. Note how the custom prices are expressed over
crates/driver/src/domain/competition/solution/scoring.rs:226
↓ 1 callers
Method
calculate_custom_prices
Derive new custom prices (given the current custom prices) to exclude the protocol fee from the trade. Note how the custom prices are expressed over
crates/autopilot/src/domain/settlement/trade/math.rs:224
↓ 1 callers
Method
calculate_custom_prices
Calculate custom clearing prices excluding protocol fees. This adjusts prices to reflect the trade without the accumulated fees.
crates/winner-selection/src/arbitrator.rs:515
↓ 1 callers
Method
calculate_custom_prices_from_executed
Calculate custom clearing prices from executed amounts. Custom prices are derived from what was actually executed.
crates/winner-selection/src/arbitrator.rs:505
↓ 1 callers
Method
calculate_fee
Computes protocol fee compared to the given limit amounts taken from the order or a quote. The protocol fee is computed in surplus token.
crates/driver/src/domain/competition/solution/fee.rs:144
↓ 1 callers
Method
calculate_quote
( &self, request: &OrderQuoteRequest, )
crates/orderbook/src/quoter.rs:118
↓ 1 callers
Method
calculate_quote_stream
( &self, request: &OrderQuoteRequest, )
crates/orderbook/src/quoter.rs:164
↓ 1 callers
Function
calculate_status
(order: &FullOrder)
crates/orderbook/src/database/orders.rs:536
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/signatures/src/lib.rs:1043
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:456
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2noprotocolfeeliquiditybootstrappingpoolfactory/src/lib.rs:847
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpoolfactory/src/lib.rs:831
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/cowammfactorygetter/src/lib.rs:412
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/anyoneauthenticator/src/lib.rs:495
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/gnosissafeproxyfactory/src/lib.rs:741
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2weightedpool2tokensfactory/src/lib.rs:904
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2weightedpoolfactory/src/lib.rs:883
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/spardose/src/lib.rs:515
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balances/src/lib.rs:1148
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/erc1271signaturevalidator/src/lib.rs:463
↓ 1 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/icowwrapper/src/lib.rs:433
↓ 1 callers
Method
can_be_applied_to_any_holder
Returns whether the strategy can cheaply compute the necessary state override for any given holder or if it only works for the original holder it was
crates/balance-overrides/src/balance/mod.rs:221
↓ 1 callers
Method
can_receive_eth
(&self, address: Address)
crates/refunder/src/infra/chain.rs:39
↓ 1 callers
Method
can_transfer
( &self, query: &Query, amount: U256, )
crates/account-balances/src/simulation.rs:98
↓ 1 callers
Method
can_transfer
( &self, query: &Query, amount: U256, )
crates/account-balances/src/cached.rs:190
↓ 1 callers
Method
cancel
Cancel a pending settlement by sending a transaction to self with a slightly higher gas price than the existing one.
crates/driver/src/domain/mempools.rs:355
↓ 1 callers
Method
cancel_order
(&self, order_uid: &OrderUid, now: DateTime<Utc>)
crates/orderbook/src/database/orders.rs:249
↓ 1 callers
Method
cancel_order_single
Cancel a single order (deprecated endpoint)
crates/e2e/src/setup/services.rs:832
↓ 1 callers
Method
catch_up
Brings a freshly-seeded factory up to the current finalized block and returns. Loops in case more blocks finalize during a long catch-up. Call exactly
crates/pool-indexer/src/indexer/uniswap_v3.rs:151
↓ 1 callers
Method
cd_order_executed
Ensure that the onchain balances changed in accordance with the [`cd_order`].
crates/driver/src/tests/setup/mod.rs:1763
← previous
next →
1,501–1,600 of 8,522, ranked by callers