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
↓ 2 callers
Function
log_auction_delta
( previous: &Option<domain::Auction>, current: &domain::Auction, start_block: &BlockIn
crates/autopilot/src/run_loop.rs:1145
↓ 2 callers
Function
logexpmath_contract_constants
Compare computed constants with smart contract code.
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:239
↓ 2 callers
Function
make_query
()
crates/price-estimation/src/competition/mod.rs:623
↓ 2 callers
Function
make_test_json
()
crates/autopilot/src/infra/solvers/dto/solve.rs:301
↓ 2 callers
Method
manager
(data: &[u8])
contracts/generated/contracts-generated/cowamm/src/lib.rs:3482
↓ 2 callers
Function
map_rows_to_solutions
(rows: Vec<SolutionRow>)
crates/database/src/solver_competition_v2.rs:425
↓ 2 callers
Method
matches
Returns true if the search parameter instance matches the specified quote data.
crates/shared/src/order_quoting.rs:324
↓ 2 callers
Method
max
Returns the maximum valid timestamp for the specified order.
crates/shared/src/order_validation.rs:1076
↓ 2 callers
Method
max_batch_size
(&self)
crates/price-estimation/src/native/coingecko.rs:237
↓ 2 callers
Method
mine_order_creation
( &self, owner: Address, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:949
↓ 2 callers
Method
mine_order_invalidation
( &self, sender: Address, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:966
↓ 2 callers
Method
minimum_replacement_gas_price
( &self, mempool: &infra::Mempool, signer: eth::Address, next_nonce: u64,
crates/driver/src/domain/mempools.rs:405
↓ 2 callers
Method
mint_token_to_weth_uni_v2_pool
Mints `amount` tokens to its `token`-WETH Uniswap V2 pool. This can be used to modify the pool reserves during a test.
crates/e2e/src/setup/onchain_components/mod.rs:493
↓ 2 callers
Function
mul_ratio
Computes `x * q / d` rounding down. Returns `None` if `d` is `0` or if the result overflows a 256-bit integer.
crates/driver/src/util/math.rs:6
↓ 2 callers
Method
name
(&self)
crates/event-indexing/src/event_handler.rs:645
↓ 2 callers
Method
native_price_estimator
Creates a native price estimator from the given sources. When `eip4626` is true the resulting estimator is wrapped in an [`native::Eip4626`] layer tha
crates/price-estimation/src/factory.rs:405
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1473
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:5414
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpool/src/lib.rs:4881
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpool/src/lib.rs:4106
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2basepool/src/lib.rs:3682
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5667
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2stablepool/src/lib.rs:4456
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2basepoolfactory/src/lib.rs:247
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iuniswaplikepair/src/lib.rs:5240
↓ 2 callers
Function
new_app_data_cid
(contract_app_data: &AppDataHash)
crates/orderbook/src/ipfs_app_data.rs:123
↓ 2 callers
Function
old_app_data_cid
(contract_app_data: &AppDataHash)
crates/orderbook/src/ipfs_app_data.rs:128
↓ 2 callers
Function
onchain_order_placement_error_from
( order: &FullOrderDb, )
crates/shared/src/db_order_conversions.rs:207
↓ 2 callers
Function
open_orders_by_time_or_uids
( ex: &'a mut PgConnection, uids: &'a [OrderUid], after_timestamp: DateTime<Utc>, )
crates/database/src/orders.rs:851
↓ 2 callers
Method
order
(&self)
crates/liquidity-sources/src/zeroex.rs:217
↓ 2 callers
Function
order_class_from
(order: &FullOrderDb)
crates/shared/src/db_order_conversions.rs:236
↓ 2 callers
Method
order_eip1271_signature
( &self, order: &OrderCreation, onchain: &OnchainComponents, )
crates/e2e/src/setup/onchain_components/safe.rs:222
↓ 2 callers
Function
order_uid
Recover order uid from order data and signature
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:13
↓ 2 callers
Method
order_uid
The UID of the order.
crates/driver/src/tests/setup/blockchain.rs:176
↓ 2 callers
Function
order_with_tokens
(token_a: Address, token_b: Address)
crates/solver/src/liquidity/zeroex.rs:233
↓ 2 callers
Method
orders
Get the orders.
crates/winner-selection/src/solution.rs:48
↓ 2 callers
Method
owner
Returns the owner address of the order extracted from the UID.
crates/solvers/src/domain/order.rs:30
↓ 2 callers
Method
paginated_query
Performs the specified GraphQL query on the current subgraph. This function should be called for queries that return very long(paginated) result.
crates/liquidity-sources/src/subgraph.rs:104
↓ 2 callers
Method
parse_custom_event_data
( &self, contract_events: &[(ContractEvent, Log)], )
crates/autopilot/src/database/onchain_order_events/ethflow_events.rs:51
↓ 2 callers
Method
partially_fillable
Returns the signed partially fillable property of the order. You can't set this field in the API so it's enforced to be fill-or-kill. This function on
crates/driver/src/domain/competition/order/mod.rs:434
↓ 2 callers
Method
partially_fillable
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:68
↓ 2 callers
Method
parts
Splits an order UID into its parts.
crates/model/src/order.rs:763
↓ 2 callers
Method
parts
Splits an order UID into its parts.
crates/driver/src/domain/competition/order/mod.rs:260
↓ 2 callers
Method
past_events_by_block_hashes
( &self, blocks: &[BlockNumberHash], )
crates/event-indexing/src/event_handler.rs:513
↓ 2 callers
Method
path_candidates_with_hops
Returns possible path candidates with the specified number of maximum hops.
crates/solvers/src/boundary/routing.rs:175
↓ 2 callers
Function
pick_solve_deadline_impl
Picks a `/solve` deadline that ends shortly before a block gets mined to maximize the chance that solutions get mined instantly. If the auction needs
crates/autopilot/src/run_loop.rs:911
↓ 2 callers
Method
pick_winners
Returns indices of winning solutions. Assumes that `solutions` is sorted by score descendingly. This logic was moved into a helper function to avoid a
crates/winner-selection/src/arbitrator.rs:570
↓ 2 callers
Method
poll_interval
(&self)
crates/pool-indexer/src/config.rs:113
↓ 2 callers
Method
pool_id
(&self)
crates/solver/src/liquidity/balancer_v2.rs:135
↓ 2 callers
Function
pool_indexer_config
(factory: Address, metrics_port: u16)
crates/e2e/tests/e2e/pool_indexer.rs:193
↓ 2 callers
Function
pool_with_ticks
(id: Address, token0: Address, token1: Address)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:857
↓ 2 callers
Method
pools_by_id
Returns all pool infos by their IDs.
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:111
↓ 2 callers
Function
pools_response
Shared `PoolsResponse` builder for the listing endpoints.
crates/pool-indexer/src/api/uniswap_v3/mod.rs:138
↓ 2 callers
Function
pow
(x: Ufixed256x18, y: Ufixed256x18)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:101
↓ 2 callers
Method
pow_up
(self, exp: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:196
↓ 2 callers
Method
pow_up_v3
(self, exp: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:203
↓ 2 callers
Method
pre_interactions
(&self)
crates/driver/src/domain/competition/solution/mod.rs:230
↓ 2 callers
Method
precision
(&self)
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:130
↓ 2 callers
Function
prepare_request
( chain_id: String, tx: &TransactionRequest, overrides: StateOverride, block: BlockNo, )
crates/simulator/src/tenderly/mod.rs:214
↓ 2 callers
Function
prepare_submission
In EIP-7702 mode, reroute the tx through the solver EOA's delegate. Its fallback expects the 20-byte target address followed by target calldata. `from
crates/driver/src/domain/mempools.rs:549
↓ 2 callers
Method
presign_orders
For every order with signature scheme presign the simulation will contains state overrides to provide the signatures. This is useful when you have to
crates/simulator/src/simulation_builder.rs:287
↓ 2 callers
Method
price_estimator
( &mut self, solvers: &[ExternalSolver], native: Arc<dyn NativePriceEstimating>,
crates/price-estimation/src/factory.rs:375
↓ 2 callers
Method
prioritize
(&'a self, operation: T)
crates/gas-price-estimation/src/priority.rs:39
↓ 2 callers
Method
produce_results
Produce results for the given `input` until the caller does not expect any more results or we produced all the results we can.
crates/price-estimation/src/competition/mod.rs:84
↓ 2 callers
Function
protocol_fee_test_case
(test_case: TestCase)
crates/driver/src/tests/cases/jit_orders.rs:57
↓ 2 callers
Method
quality_based_on_stats
(&self, stats: &OrderStatistics)
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:85
↓ 2 callers
Function
query_fields
(query: &Query)
crates/price-estimation/src/competition/quote.rs:196
↓ 2 callers
Function
quote
(router: axum::Router<State>)
crates/driver/src/infra/api/routes/quote/mod.rs:13
↓ 2 callers
Function
quote_kind_from_signing_scheme
(scheme: &QuoteSigningScheme)
crates/shared/src/order_quoting.rs:737
↓ 2 callers
Function
ratio_to_u32
Highly corelated to Uniswap V3 only. Converts: 1% fee to 10000 0.3% fee to 3000 0.05% to 500 0.01% to 100
crates/solver/src/liquidity/uniswap_v3.rs:52
↓ 2 callers
Function
rational_to_big_decimal
(value: &Ratio<T>)
crates/number/src/conversions.rs:18
↓ 2 callers
Method
raw_order_data
(&self)
crates/driver/src/infra/solver/dto/solution.rs:311
↓ 2 callers
Function
read_order_interactions
( ex: &mut PgConnection, id: &OrderUid, execution: ExecutionTime, )
crates/database/src/orders.rs:1100
↓ 2 callers
Method
read_quotes
Get quotes for all orders in the auction. Doesn't guarantee that all orders have quotes.
crates/autopilot/src/database/quotes.rs:28
↓ 2 callers
Method
record_auction_overhead
Like [`Self::measure_auction_overhead`] but for a duration that was timed elsewhere (e.g. serialization cost isolated from transmission).
crates/observe/src/metrics.rs:206
↓ 2 callers
Method
record_tick_range_delta
( &mut self, pool: Address, lower_tick: i32, upper_tick: i32, liquidit
crates/pool-indexer/src/indexer/uniswap_v3.rs:911
↓ 2 callers
Function
refund
(order_uid: OrderUid)
crates/database/src/ethflow_orders.rs:231
↓ 2 callers
Method
register
Registers an app-data document matching the specified app-data hash to the registry, ensuring that there exists an entry linking the specified app dat
crates/orderbook/src/app_data.rs:42
↓ 2 callers
Method
remaining
(self)
crates/driver/src/domain/time.rs:64
↓ 2 callers
Method
remove_pools_newer_than_block
Removes all pool creations from the specified block.
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:145
↓ 2 callers
Method
replace_events
( &mut self, events: Vec<(T, alloy_rpc_types::Log)>, range: RangeInclusive
crates/event-indexing/src/event_handler.rs:713
↓ 2 callers
Method
replace_order
( &self, old_order: &model::order::OrderUid, new_order: &model::order::Order, )
crates/orderbook/src/database/orders.rs:260
↓ 2 callers
Method
report_winner
( &self, query: &Q, kind: OrderKind, (index, result): ResultWithIndex<R>,
crates/price-estimation/src/competition/mod.rs:158
↓ 2 callers
Function
request
(method: &'static str, id: u64)
crates/ethrpc/src/alloy/rpc_headers.rs:181
↓ 2 callers
Method
request_response
( &self, path: &str, payload: Request, )
crates/autopilot/src/infra/solvers/mod.rs:112
↓ 2 callers
Method
resolve_block
The subgraph queries by concrete block, so `Latest` resolves to the safe head.
crates/liquidity-sources/src/uniswap_v3/graph_api.rs:173
↓ 2 callers
Function
retain_valid_orders
(orders: &mut Vec<OrderRecord>)
crates/liquidity-sources/src/zeroex.rs:401
↓ 2 callers
Function
retry_with_sleep_if
Retry only when `should_retry(&err)` returns true.
crates/shared/src/retry.rs:18
↓ 2 callers
Function
rich_error
( error_type: &'static str, description: impl AsRef<str>, data: impl Serialize, )
crates/orderbook/src/api.rs:422
↓ 2 callers
Function
router
(pool: &ConstantProductOrder)
crates/driver/src/boundary/liquidity/uniswap/v2.rs:46
↓ 2 callers
Function
rpc
Creates a node RPC instance.
crates/solvers/src/infra/blockchain.rs:2
↓ 2 callers
Method
run_forever
(mut self)
crates/autopilot/src/shadow.rs:78
↓ 2 callers
Method
run_once
(&self)
crates/pool-indexer/src/indexer/uniswap_v3.rs:176
↓ 2 callers
Function
run_with
Run the driver. This function exists to avoid multiple monomorphizations of the `run` code, which bloats the binaries and increases compile times.
crates/driver/src/run.rs:50
↓ 2 callers
Function
run_with
(args: cli::Args, bind: Option<oneshot::Sender<SocketAddr>>)
crates/solvers/src/run.rs:28
↓ 2 callers
Method
sanitized_competition
Builds a [`CompetitionEstimator`] over the given estimators, with each one wrapped in its own sanitizer. This per-estimator shape lets the single comp
crates/price-estimation/src/factory.rs:358
↓ 2 callers
Method
saturating_add
(self, v: Self)
crates/autopilot/src/domain/competition/mod.rs:93
↓ 2 callers
Function
save_solutions
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:265
↓ 2 callers
Function
save_trade_executions
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:293
↓ 2 callers
Method
scalar_mul
(&self, scalar: U256)
crates/number/src/ratio_ext.rs:24
← previous
next →
1,201–1,300 of 8,522, ranked by callers