Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,486 in github.com/cowprotocol/services
⨍
Functions
8,486
◇
Types & classes
3,061
↓ 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:600
↓ 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:151
↓ 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:892
↓ 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
sell
The asset being sold, or a very large value if this is a buy, to facilitate surplus.
crates/driver/src/domain/quote.rs:281
↓ 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
Function
shutdown_signal
()
crates/observe/src/shutdown.rs:6
↓ 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_gas_price
(&self)
crates/simulator/src/ethereum/mod.rs:54
↓ 3 callers
Method
simulation_solver_address
(&self)
crates/price-estimation/src/trade_finding/mod.rs:93
↓ 3 callers
Function
sol_uid
(n: u8)
crates/winner-selection/src/tests.rs:25
↓ 3 callers
Function
solvable_orders
( ex: &mut PgConnection, min_valid_to: i64, now: i64, )
crates/database/src/orders.rs:750
↓ 3 callers
Method
solver
The solver which generated this solution.
crates/driver/src/domain/competition/solution/mod.rs:280
↓ 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
Function
start_driver_with_config_override
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, quote_using
crates/e2e/src/setup/colocation.rs:150
↓ 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_limit_price
Uses custom prices to calculate the surplus after the protocol fee and network fee are applied.
crates/autopilot/src/domain/settlement/trade/math.rs:272
↓ 3 callers
Method
surplus_token
(&self)
crates/autopilot/src/domain/settlement/trade/math.rs:387
↓ 3 callers
Method
swap
Quote `order` for the settlement signer `taker` and return the swap to run inside the settlement transaction.
crates/solana-solvers/src/dex/jupiter/mod.rs:55
↓ 3 callers
Method
swap
Encodes a pool swap as an interaction. Returns `Err` if the swap parameters are invalid for the pool, specifically if the input and output tokens don'
crates/driver/src/domain/liquidity/swapr.rs:27
↓ 3 callers
Method
symbol
Fetch the ERC20 token symbol. Returns `None` if the token does not implement this optional method. See the symbol method in EIP-20. https://eips.ethe
crates/driver/src/infra/blockchain/token.rs:60
↓ 3 callers
Function
test_baseline_source
( web3: &Web3, version: &str, source: BaselineSource, token0: Address,
crates/liquidity-sources/src/uniswap_v2/mod.rs:199
↓ 3 callers
Function
test_order_availability_in_api
( services: &Services<'_>, order: &ExtendedEthFlowOrder, owner: &Address, contracts: &Contract
crates/e2e/tests/e2e/ethflow.rs:673
↓ 3 callers
Method
timed_future
Runs the future and collects runtime metrics.
crates/autopilot/src/solvable_orders.rs:472
↓ 3 callers
Method
to_big_rational
(&self)
crates/number/src/u256_ext.rs:137
↓ 3 callers
Function
to_db_slot
Slots stay far below `i64::MAX`, the conversion to the database's `bigint` is lossless.
crates/solana-indexer/src/persistence.rs:16
↓ 3 callers
Function
to_normalized_price
Convert from floating point price to normalized price
crates/price-estimation/src/native/mod.rs:47
↓ 3 callers
Method
to_quote_request
How a user trade intent is converted into a quote request by the frontend
crates/e2e/tests/e2e/ethflow.rs:1030
↓ 3 callers
Function
trade_from
( row: TradesQueryRow, executed_protocol_fees: Vec<ExecutedProtocolFee>, )
crates/orderbook/src/database/trades.rs:152
↓ 3 callers
Method
trader
(&self)
crates/driver/src/domain/competition/order/mod.rs:140
↓ 3 callers
Method
try_mul_div_floor
(self, mul: Self, div: Self)
crates/chain-types/src/evm.rs:63
↓ 3 callers
Method
try_sub
`self - rhs`, `Negative` when the result would go below zero.
crates/chain-types/src/lib.rs:66
↓ 3 callers
Method
try_to_ecdsa_scheme
(&self)
crates/model/src/signature.rs:243
↓ 3 callers
Method
try_to_model_order_quote
Converts this Quote to model OrderQuote.
crates/shared/src/order_quoting.rs:165
↓ 3 callers
Method
update_cache_at_block
(&self, new_block: u64)
crates/liquidity-sources/src/recent_block_cache.rs:231
↓ 3 callers
Method
upscale_balances_with_token_indices
( &self, in_token: &Address, out_token: &Address, )
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:193
↓ 3 callers
Method
upscaled_balance
Converts the stored balance into its internal representation as a Balancer fixed point number.
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:47
↓ 3 callers
Method
url
Returns a reference to the underlying RPC URL.
crates/autopilot/src/infra/blockchain/mod.rs:58
↓ 3 callers
Method
validate_app_data
Validates the provided app data, returning an [`OrderAppData`] if valid. The validation entails verifying that the app data is well formed and its si
crates/shared/src/order_validation.rs:717
↓ 3 callers
Method
winners
All solutions that won the right to get executed.
crates/autopilot/src/domain/competition/winner_selection.rs:257
↓ 3 callers
Method
with_block_timestamp
(&mut self, timestamp: u32)
crates/refunder/src/traits.rs:99
↓ 3 callers
Method
with_id
Returns `self` with a new id.
crates/solvers/src/domain/solution.rs:32
↓ 3 callers
Method
with_rank
(self, rank_type: RankType)
crates/winner-selection/src/state.rs:116
↓ 3 callers
Method
with_refundable_orders
(&mut self, orders: Vec<EthOrderPlacement>)
crates/refunder/src/traits.rs:136
↓ 3 callers
Method
with_slippage_bps
Set slippage in basis points (e.g., 500 = 5%).
crates/e2e/tests/e2e/refunder.rs:146
↓ 3 callers
Method
wrappers
(&self)
crates/driver/src/domain/competition/order/app_data.rs:134
↓ 3 callers
Method
write
(&mut self, data: &[u8])
crates/driver/src/infra/solver/streaming/mod.rs:124
↓ 3 callers
Function
write_last_block_to_db
(db: &PgPool, last_block: u64, contract: &str)
crates/autopilot/src/boundary/events/mod.rs:8
↓ 2 callers
Function
absolute_slippage_amount
(relative: &BigRational, amount: &BigInt)
crates/solver/src/liquidity/slippage.rs:191
↓ 2 callers
Function
absolute_to_relative
Converts an absolute slippage value to a relative slippage value based on the amount and asset's price.
crates/solvers/src/domain/dex/shared.rs:28
↓ 2 callers
Method
add_order
( &self, payload: OrderCreation, )
crates/orderbook/src/orderbook.rs:275
↓ 2 callers
Function
add_swap_fee_amount
(amount: U256, swap_fee: Bfp)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:30
↓ 2 callers
Method
address
(&self)
crates/event-indexing/src/event_handler.rs:174
↓ 2 callers
Function
adjustments
(mempools: &[mempool::Config])
crates/driver/src/infra/blockchain/gas.rs:126
↓ 2 callers
Method
advance
Returns the auction to diff `auction` against, and stores `auction` to be diffed against in the next cycle. A delta is always relative to the auction
crates/autopilot/src/run_loop.rs:137
↓ 2 callers
Function
all_order_events
(ex: &mut PgConnection)
crates/database/src/order_events.rs:254
↓ 2 callers
Method
all_trades
(&self)
crates/solver/src/settlement/settlement_encoder.rs:129
↓ 2 callers
Method
amount
Check that the quote returns the expected amount of tokens. This is based on the state of the blockchain and the test setup.
crates/driver/src/tests/setup/mod.rs:1635
↓ 2 callers
Method
amplification_parameter_u256
(&self)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:217
↓ 2 callers
Function
append
( ex: &mut PgTransaction<'_>, events: &[(EventIndex, OnchainOrderPlacement)], )
crates/database/src/onchain_broadcasted_orders.rs:68
↓ 2 callers
Method
append_events
(&mut self, events: Vec<(AlloyUniswapV3PoolEvents, Log)>)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:105
↓ 2 callers
Method
append_to_execution_plan
(&mut self, interaction: Arc<dyn Interaction>)
crates/solver/src/settlement/settlement_encoder.rs:350
↓ 2 callers
Method
apply
Converts an order from the boundary layer to the domain layer, applying protocol fees if necessary.
crates/autopilot/src/domain/fee/mod.rs:244
↓ 2 callers
Method
apply_position_delta_to_pool_liq
Applies a position-liquidity delta to the pool's *active liquidity. Uniswap V3 only moves `pool.liquidity` when the current `tick` falls within `[lowe
crates/pool-indexer/src/indexer/uniswap_v3.rs:937
↓ 2 callers
Function
approve
(allowance: &Allowance)
crates/driver/src/domain/competition/solution/encoding.rs:314
↓ 2 callers
Method
as_encoded
(&self)
crates/solver/src/interactions/erc20.rs:20
↓ 2 callers
Method
as_str
(self)
crates/solana-solvers/src/dex/jupiter/mod.rs:25
↓ 2 callers
Method
as_transaction_request
(&self)
crates/simulator/src/simulation_builder.rs:457
↓ 2 callers
Function
assert_and_propagate_panics
Runs the given closure and updates a flag if it panics.
crates/solvers/src/tests/mock/http.rs:200
↓ 2 callers
Function
assert_volume_fee
( trade: &model::trade::Trade, expected_fee_token: ::alloy::primitives::Address, expected_factor:
crates/e2e/tests/e2e/protocol_fee.rs:1613
↓ 2 callers
Method
asset
(data: &[u8])
contracts/generated/contracts-generated/ierc4626/src/lib.rs:435
↓ 2 callers
Function
auction
Observe a received auction.
crates/driver/src/infra/observe/mod.rs:47
↓ 2 callers
Method
auction
(auction_id: domain::auction::Id)
crates/autopilot/src/run_loop.rs:1193
← previous
next →
901–1,000 of 8,486, ranked by callers