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
↓ 3 callers
Method
interactions
Check that the quote returns the expected interactions. This is based on the state of the blockchain and the test setup.
crates/driver/src/tests/setup/mod.rs:1580
↓ 3 callers
Method
into_iter
(self)
crates/eth-domain-types/src/access_list.rs:37
↓ 3 callers
Method
into_response
(self)
crates/pool-indexer/src/api/mod.rs:42
↓ 3 callers
Method
into_response
(self)
crates/orderbook/src/api/cancel_order.rs:32
↓ 3 callers
Method
into_response
(self)
crates/orderbook/src/api/post_quote.rs:32
↓ 3 callers
Function
join
Joins a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with on
crates/autopilot/src/util/mod.rs:5
↓ 3 callers
Function
join_url
Join a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with one
crates/price-estimation/src/utils/mod.rs:13
↓ 3 callers
Method
key
( &self, order: &order::Order, tokens: &Tokens, _solver: ð::Address,
crates/driver/src/domain/competition/sorting.rs:34
↓ 3 callers
Method
limit
Make this a limit order.
crates/driver/src/tests/setup/mod.rs:210
↓ 3 callers
Function
load_by_id
( mut ex: &mut PgConnection, id: AuctionId, after_block: Option<i64>, )
crates/database/src/solver_competition_v2.rs:118
↓ 3 callers
Function
load_by_id
( ex: &mut PgConnection, id: AuctionId, after_block: Option<i64>, )
crates/database/src/solver_competition.rs:50
↓ 3 callers
Function
load_by_tx_hash
( ex: &mut PgConnection, tx_hash: &TransactionHash, after_block: Option<i64>, )
crates/database/src/solver_competition.rs:104
↓ 3 callers
Function
load_latest_competition
( ex: &mut PgConnection, after_block: Option<i64>, )
crates/database/src/solver_competition.rs:95
↓ 3 callers
Function
map_custom_solver_error
(custom_err: &solvers_dto::solution::SolverError)
crates/driver/src/infra/api/error.rs:83
↓ 3 callers
Function
mark_as_reorged
( ex: &mut PgTransaction<'_>, mark_from_block_number: i64, )
crates/database/src/onchain_broadcasted_orders.rs:56
↓ 3 callers
Method
max_age
(&self)
crates/price-estimation/src/native_price_cache.rs:192
↓ 3 callers
Method
merge
Tries to merge the specified unwrap with the current one, returning `true` if the merge was successful, and `false` otherwise. Returns an error on ar
crates/solver/src/interactions/weth.rs:19
↓ 3 callers
Method
merge
( &self, other: &Self, max_orders_per_merged_solution: usize, )
crates/driver/src/domain/competition/solution/mod.rs:361
↓ 3 callers
Function
mock_provider
(asserter: Asserter)
crates/gas-price-estimation/src/configurable_alloy.rs:138
↓ 3 callers
Method
native_prices
Prices used to convert token amounts to an equivalent amount of the native asset (e.g. ETH on ethereum, or xdai on gnosis chain).
crates/driver/src/domain/competition/auction.rs:119
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1562
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:359
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv3quoterv2/src/lib.rs:594
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv3/src/lib.rs:1272
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iuniswapv3factory/src/lib.rs:1140
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv3/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv5/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv4/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2stablepoolfactoryv2/src/lib.rs:1018
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2noprotocolfeeliquiditybootstrappingpoolfactory/src/lib.rs:739
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpoolfactory/src/lib.rs:729
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/erc20mintable/src/lib.rs:2117
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerqueries/src/lib.rs:707
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafeproxyfactory/src/lib.rs:591
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactory/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/swapper/src/lib.rs:1353
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv4/src/lib.rs:1272
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv6/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2authorizer/src/lib.rs:1236
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:165
↓ 3 callers
Method
now
(&self)
crates/shared/src/order_quoting.rs:375
↓ 3 callers
Method
order_ids
(&self)
crates/autopilot/src/domain/competition/mod.rs:45
↓ 3 callers
Function
order_kind_from
(kind: DbOrderKind)
crates/shared/src/db_order_conversions.rs:192
↓ 3 callers
Function
orders_with_balance
( mut orders: Vec<&'a Order>, balances: &Balances, settlement_contract: Address, filter_bypass
crates/autopilot/src/solvable_orders.rs:577
↓ 3 callers
Method
owner
(&self)
crates/autopilot/src/domain/auction/order.rs:37
↓ 3 callers
Function
pack_user_state
Packs a `UserState { uint128 balance; uint128 additionalData }` into a 32-byte word. The balance occupies the lower 128 bits; `additional_data` sits i
crates/balance-overrides/src/balance/aave.rs:112
↓ 3 callers
Method
pair_address
(&self, pair: &TokenPair)
crates/liquidity-sources/src/uniswap_v2/pair_provider.rs:13
↓ 3 callers
Method
partial
(self, already_executed: eth::U256)
crates/driver/src/tests/setup/mod.rs:260
↓ 3 callers
Method
partial_validate
(&self, order: PreOrderData)
crates/shared/src/order_validation.rs:656
↓ 3 callers
Method
parts
Splits an order UID into its parts.
crates/autopilot/src/domain/auction/order.rs:42
↓ 3 callers
Function
pool_init_data
This can be made cleaner by making the start and end be u8's but the B256 doesn't support for a from(u8) so this needs to be reviewed upon migration
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:249
↓ 3 callers
Function
price
(out_amount: u128, gas: u64)
crates/price-estimation/src/competition/quote.rs:254
↓ 3 callers
Function
probe_asserter
Builds an `Asserter` primed with the three responses the probe expects, in order: `UNDERLYING_ASSET_ADDRESS()`, `POOL()`, and `getReserveData(underlyi
crates/balance-overrides/src/balance/aave.rs:234
↓ 3 callers
Function
protocol_app_data_into_validated
(protocol: ProtocolAppData)
crates/driver/src/tests/cases/flashloan_hints.rs:134
↓ 3 callers
Function
provider
Creates a provider with the provided URL and an empty [`MutWallet`]. Returns a copy of the [`MutWallet`] so the caller can modify it later.
crates/ethrpc/src/alloy/mod.rs:77
↓ 3 callers
Function
push_fee_history
Pushes a fee_history JSON response where `latest_block_base_fee()` returns `base_fee` and the reward is `tip`. The resulting estimate will be: max_pri
crates/gas-price-estimation/src/configurable_alloy.rs:162
↓ 3 callers
Method
put_app_data
( &self, app_data: Option<AppDataHash>, full_app_data: &str, )
crates/e2e/src/setup/services.rs:742
↓ 3 callers
Method
query
TODO explain why we use BUY order type (shallow liquidity)
crates/price-estimation/src/native/mod.rs:90
↓ 3 callers
Method
ranked
All solutions that passed the filtering step.
crates/autopilot/src/domain/competition/winner_selection.rs:272
↓ 3 callers
Function
read_onchain_invalidation
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/onchain_invalidations.rs:75
↓ 3 callers
Function
read_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/onchain_broadcasted_orders.rs:104
↓ 3 callers
Method
receiver
(self, receiver: Option<eth::Address>)
crates/driver/src/tests/setup/mod.rs:304
↓ 3 callers
Function
record_dropped
(reason: DropReason)
crates/observe/src/event_bus/mod.rs:233
↓ 3 callers
Method
recover_owner
Opposite of `encode_for_settlement`. Given the encoded signature returns the owner.
crates/model/src/signature.rs:164
↓ 3 callers
Method
reduce_score
Reduce the solution score by adding additional meaningless calldata.
crates/driver/src/tests/setup/mod.rs:589
↓ 3 callers
Method
reference_scores
Reference scores for each winning solver, used to compute rewards.
crates/autopilot/src/domain/competition/winner_selection.rs:267
↓ 3 callers
Method
relative
Returns the slippage for the specified token amount.
crates/solvers/src/domain/dex/slippage.rs:30
↓ 3 callers
Method
relevant_pairs
All pool token pairs that could be used along a path candidate for these token pairs.
crates/solvers/src/boundary/routing.rs:141
↓ 3 callers
Method
remove_events_newer_than_block
Removes all events from the specified block, including specified block.
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:78
↓ 3 callers
Method
remove_events_older_than_block
Removes all events up to the specified block, excluding the specified block.
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:73
↓ 3 callers
Function
remove_expired_quotes
( ex: &mut PgConnection, max_expiry: DateTime<Utc>, )
crates/database/src/quotes.rs:148
↓ 3 callers
Function
request_id
(headers: &HeaderMap<HeaderValue>)
crates/observe/src/tracing/distributed/request_id.rs:36
↓ 3 callers
Function
revert_message
Extracts the most relevant revert message from the call by preferring `revert_reason` (failed SC assertion) over `error` (EVM error).
crates/simulator/src/report.rs:205
↓ 3 callers
Method
reverts_can_get_mined
(&self)
crates/driver/src/infra/mempool/mod.rs:218
↓ 3 callers
Method
rpc_args
(mut self, rpc_args: Vec<String>)
crates/driver/src/tests/setup/mod.rs:881
↓ 3 callers
Method
run
Per-factory live-indexing loop. Backfill tasks live at the network level (see `run_network_indexer`).
crates/pool-indexer/src/indexer/uniswap_v3.rs:124
↓ 3 callers
Method
run
Starts the server and returns the assigned port number.
crates/e2e/src/api/zeroex.rs:36
↓ 3 callers
Method
score
(&self)
crates/winner-selection/src/state.rs:112
↓ 3 callers
Method
sell
The asset being sold, or a very large value if this is a buy, to facilitate surplus.
crates/driver/src/domain/quote.rs:256
↓ 3 callers
Method
sell_amount
The effective amount that left the user's wallet including all fees.
crates/driver/src/domain/competition/solution/trade.rs:69
↓ 3 callers
Function
sell_order_from_quote
(quote: &OrderQuoteResponse)
crates/e2e/tests/e2e/protocol_fee.rs:677
↓ 3 callers
Method
setup
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3478
↓ 3 callers
Method
shutdown
Send shutdown signal to the associated Control
crates/autopilot/src/shutdown_controller.rs:65
↓ 3 callers
Method
sign_message
Returns the ERC-1271 signature bytes for the specified message.
crates/e2e/src/setup/onchain_components/safe.rs:201
↓ 3 callers
Method
sign_typed_data
( &self, domain_separator: &DomainSeparator, struct_hash: &[u8; 32], )
crates/e2e/src/setup/onchain_components/mod.rs:43
↓ 3 callers
Function
signature
(n: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:38
↓ 3 callers
Method
simulation_solver_address
(&self)
crates/price-estimation/src/trade_finding/mod.rs:84
↓ 3 callers
Method
solver
The solver which generated this solution.
crates/driver/src/domain/competition/solution/mod.rs:239
↓ 3 callers
Method
solver
Get the solver address.
crates/winner-selection/src/solution.rs:43
↓ 3 callers
Method
solver_determines_fee
Returns `true` if the order expects a solver-computed fee.
crates/solvers/src/domain/order.rs:25
↓ 3 callers
Method
spawn_background_task
Spawns task that refreshes the cached balances on every new block.
crates/account-balances/src/cached.rs:115
↓ 3 callers
Method
start
(&self)
crates/event-indexing/src/block_retriever.rs:141
↓ 3 callers
Method
start_autopilot_with_shutdown_controller
Start the autopilot service in a background task. Optionally specify a solve deadline to use instead of the default 2s. (note: specifying a larger sol
crates/e2e/src/setup/services.rs:162
↓ 3 callers
Function
start_baseline_solver
( name: String, account: TestAccount, weth: Address, base_tokens: Vec<Address>, max_hops:
crates/e2e/src/setup/colocation.rs:24
↓ 3 callers
Method
start_protocol_with_args_and_haircut
( &self, autopilot_config: configs::autopilot::Configuration, orderbook_config: config
crates/e2e/src/setup/services.rs:254
↓ 3 callers
Function
start_volume_fee_protocol
Wraps 50 ETH for `trader` (approved to the vault relayer) and starts the protocol with a 1% volume fee (effective immediately) and `SameTokensPolicy::
crates/e2e/tests/e2e/protocol_fee.rs:1273
↓ 3 callers
Function
stream_body_and_gzip
Like [`stream_body`], but also gzips the same serialization in one pass. The first receiver yields the compressed bytes once serialization finishes.
crates/driver/src/infra/solver/streaming/mod.rs:50
↓ 3 callers
Method
sum
(iter: I)
crates/eth-domain-types/src/ether.rs:63
↓ 3 callers
Method
surplus_capturing_jit_order_owners
(&self)
crates/driver/src/domain/competition/auction.rs:131
↓ 3 callers
Method
surplus_over
A general surplus function. Can return different types of surplus based on the input parameters.
crates/autopilot/src/domain/settlement/trade/math.rs:34
← previous
next →
801–900 of 8,522, ranked by callers