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
maintenance_tasks
(&self)
crates/cow-amm/src/registry.rs:85
↓ 1 callers
Function
make_span
Trace context propagation: associate the current span with the OTel trace of the given request, if any and valid.
crates/observe/src/tracing/distributed/axum.rs:22
↓ 1 callers
Method
manual
(&self, name: &str, reason: &str)
contracts/src/vendor.rs:311
↓ 1 callers
Method
many_orders
(&self, uids: &[OrderUid])
crates/orderbook/src/database/orders.rs:318
↓ 1 callers
Method
mark_winners
Picks winners and sorts all solutions where winners come before non-winners and higher scores come before lower scores.
crates/winner-selection/src/arbitrator.rs:111
↓ 1 callers
Method
max_gas_limit
(&self)
crates/simulator/src/simulation_builder.rs:84
↓ 1 callers
Method
max_pools_per_tick_query
(&self)
crates/liquidity-sources/src/subgraph.rs:141
↓ 1 callers
Function
max_settlement_age
How old (in terms of blocks) a settlement should be, to be considered as a settlement from another environment. Currently set to ~6h
crates/autopilot/src/domain/settlement/mod.rs:282
↓ 1 callers
Method
max_solutions_to_propose
(mut self, n: usize)
crates/driver/src/tests/setup/mod.rs:443
↓ 1 callers
Method
may_revert
Whether the settlement contains interactions that could possibly revert on chain
crates/driver/src/domain/competition/solution/settlement.rs:233
↓ 1 callers
Method
measure
(self, label: &str)
crates/observe/src/future.rs:12
↓ 1 callers
Method
measure_auction_overhead
(&self, start: Instant, component: &str, phase: &str)
crates/observe/src/metrics.rs:200
↓ 1 callers
Function
mempool_log
Log a single mempool submission attempt. Called inline from the racing task so that errors from mempools that later get superseded are still visible i
crates/driver/src/infra/observe/mod.rs:383
↓ 1 callers
Function
mempool_submission_result
Emit per-mempool race counters with the final, reclassified label (`Success` / `Revert` / `Expired` / `Other` / `Superseded` / `Disabled`). Called onc
crates/driver/src/infra/observe/mod.rs:411
↓ 1 callers
Method
mempools
(mut self, mempools: Vec<Mempool>)
crates/driver/src/tests/setup/mod.rs:876
↓ 1 callers
Function
merge
Creates a vector with all possible combinations of the given solutions. The result is sorted descending by score.
crates/driver/src/domain/competition/mod.rs:989
↓ 1 callers
Function
merge_account_override
Merges `new` into `existing` field by field. Returns [`MergeConflict`] if both overrides write the same field. Non-conflicting `state_diff` entries a
crates/simulator/src/encoding.rs:665
↓ 1 callers
Function
merge_tables
Recursively merge two TOML tables
crates/e2e/src/setup/colocation/utils/toml.rs:32
↓ 1 callers
Function
merged
Observe that two solutions were merged.
crates/driver/src/infra/observe/mod.rs:152
↓ 1 callers
Method
metric_label
(self)
crates/driver/src/domain/mempools.rs:473
↓ 1 callers
Function
metrics
()
crates/price-estimation/src/competition/mod.rs:249
↓ 1 callers
Method
mint_block
(&self)
crates/e2e/src/setup/services.rs:890
↓ 1 callers
Function
mint_burn_pool_addresses
Unique addresses with a `Mint` or `Burn` in the chunk. We pre-load their `(tick, liquidity)` so the post-event liquidity can be derived from the in-ev
crates/pool-indexer/src/indexer/uniswap_v3.rs:397
↓ 1 callers
Method
most_recent_auction
(&self)
crates/orderbook/src/database/auctions.rs:7
↓ 1 callers
Function
mounting_solver
Observe that the API routes for a solver are being mounted.
crates/driver/src/infra/observe/mod.rs:331
↓ 1 callers
Method
move_checkpoint_to_future
Moves the checkpoint to the block `latest_block - MAX_REORG_BLOCK_COUNT`
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:367
↓ 1 callers
Method
mul
(self, rhs: f64)
crates/eth-domain-types/src/gas.rs:77
↓ 1 callers
Method
mul_ceil
Multiplies this fee by the given floating point number, rounding up.
crates/eth-domain-types/src/gas.rs:95
↓ 1 callers
Function
mul_ratio_ceil
Computes `x * q / d` rounding up. Returns `None` if `d` is `0` or if the result overflows a 256-bit integer.
crates/driver/src/util/math.rs:24
↓ 1 callers
Method
multiply_amount
Multiply the sell amount of this order by the given factor.
crates/driver/src/tests/setup/mod.rs:170
↓ 1 callers
Method
native_price_request
(&self, order: &Order)
crates/solvers/src/domain/solver/baseline.rs:312
↓ 1 callers
Method
native_token_price_estimation_amount
(&self)
crates/price-estimation/src/factory.rs:152
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1350
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/counter/src/lib.rs:755
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1374
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/mockerc4626wrapper/src/lib.rs:2464
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/baoswaprouter/src/lib.rs:1350
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/honeyswaprouter/src/lib.rs:1350
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/solver/src/lib.rs:702
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowammuniswapv2priceoracle/src/lib.rs:54
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gashog/src/lib.rs:590
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1350
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/anyoneauthenticator/src/lib.rs:345
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/sushiswaprouter/src/lib.rs:1350
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafeproxy/src/lib.rs:130
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/spardose/src/lib.rs:368
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/nonstandarderc20balances/src/lib.rs:1413
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/remoteerc20balances/src/lib.rs:1658
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/solver7702delegate/src/lib.rs:358
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafecompatibilityfallbackhandler/src/lib.rs:1191
↓ 1 callers
Function
new_block
(number: u64)
crates/ethrpc/src/block_stream.rs:374
↓ 1 callers
Method
next_action
(&self)
crates/price-estimation/src/native/fallback.rs:148
↓ 1 callers
Method
next_auction
(&mut self)
crates/autopilot/src/shadow.rs:100
↓ 1 callers
Method
next_auction
( &self, start_block: BlockInfo, prev_auction: &mut Option<domain::Auction>, p
crates/autopilot/src/run_loop.rs:280
↓ 1 callers
Function
next_free_interaction_indices
( db: &mut PgConnection, order: OrderUid, )
crates/database/src/orders.rs:1060
↓ 1 callers
Function
non_empty
The symbol backfill writes `""` as a "tried and failed" sentinel. Surface that as missing instead of as an empty string.
crates/pool-indexer/src/api/uniswap_v3/mod.rs:133
↓ 1 callers
Function
non_vault_cache_size
(size: usize)
crates/price-estimation/src/native/eip4626.rs:247
↓ 1 callers
Method
non_winners
All solutions that were not filtered out but also did not win.
crates/autopilot/src/domain/competition/winner_selection.rs:262
↓ 1 callers
Method
nonces
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4859
↓ 1 callers
Method
normalize_price
Applies the normalization factor to a price.
crates/price-estimation/src/native_price_cache.rs:55
↓ 1 callers
Function
now_truncated_to_microseconds
In the DB we use `timestampz` which doesn't store nanoseconds, so we truncate them to make the comparison work.
crates/database/src/settlement_executions.rs:282
↓ 1 callers
Method
npm
(path: &str)
contracts/src/vendor.rs:262
↓ 1 callers
Method
on_request_start
(&self, label: &str, method: &str)
crates/ethrpc/src/alloy/instrumentation.rs:229
↓ 1 callers
Function
order_class_into
(class: &OrderClass)
crates/shared/src/db_order_conversions.rs:199
↓ 1 callers
Function
order_event_ids_before
(pool: &PgPool)
crates/autopilot/src/periodic_db_cleanup.rs:163
↓ 1 callers
Function
order_events_matching_fuzzy
(actual: &[OrderEvent], expected: &[OrderEventLabel])
crates/e2e/tests/e2e/univ2.rs:152
↓ 1 callers
Function
order_flags
(order: &OrderData, signature: &Signature)
crates/simulator/src/encoding.rs:176
↓ 1 callers
Method
order_is_actively_bid_on
(&self, order_uid: OrderUid)
crates/orderbook/src/orderbook.rs:480
↓ 1 callers
Function
order_quote_into_model
( quote: &database::orders::Quote, status: model::order::OrderStatus, )
crates/shared/src/db_order_conversions.rs:131
↓ 1 callers
Method
orders
The orders for the auction.
crates/driver/src/domain/competition/auction.rs:88
↓ 1 callers
Method
orders_for_tx
(&self, tx_hash: &B256)
crates/orderbook/src/database/orders.rs:362
↓ 1 callers
Method
other
Returns the token in the pair which is not the one passed in, or None if token passed in is not part of the pair
crates/model/src/lib.rs:45
↓ 1 callers
Method
out_given_in
Use the Uniswap constant AMM formula to calculate the output amount based on the input.
crates/driver/src/tests/setup/blockchain.rs:86
↓ 1 callers
Method
output
(&self)
crates/solvers/src/domain/solver/baseline.rs:394
↓ 1 callers
Method
owner
Extract the owner address from the order UID.
crates/winner-selection/src/primitives.rs:46
↓ 1 callers
Method
page_limit
(&self)
crates/pool-indexer/src/api/uniswap_v3/pools_list.rs:33
↓ 1 callers
Function
pair_address
Calculates deterministic Uniswapv3 pool address. https://github.com/Uniswap/v3-periphery/blob/main/contracts/libraries/PoolAddress.sol
crates/liquidity-sources/src/uniswap_v3_pair_provider.rs:9
↓ 1 callers
Function
parse_field_paths
Parses dot-separated field paths into a set of paths.
crates/testlib/src/json_matching.rs:98
↓ 1 callers
Function
parse_general_onchain_order_placement_data
( quoter: &'_ dyn OrderQuoting, order_placement_events_and_quotes_zipped: I, domain_separator: Dom
crates/autopilot/src/database/onchain_order_events/mod.rs:450
↓ 1 callers
Function
parse_order_cancellation_error
Parse OrderCancellationError from HTTP response Flow: JSON -> orderbook::api::Error -> OrderCancellationError Note: Returns None for unknown error typ
crates/e2e/tests/e2e/replace_order.rs:43
↓ 1 callers
Function
parse_order_replacement_error
Parse OrderReplacementError from HTTP response Flow: JSON -> orderbook::api::Error -> OrderReplacementError Note: Returns None for unknown error types
crates/e2e/tests/e2e/replace_order.rs:23
↓ 1 callers
Method
parse_request
Parses the JSON body of the `/solve` request during the unified auction pre-processing since eagerly deserializing these requests is surprisingly cost
crates/driver/src/domain/competition/pre_processing.rs:230
↓ 1 callers
Function
parse_seeded_pool
( pool: &SubgraphPool, snapshot_block: u64, )
crates/pool-indexer/src/subgraph_seeder.rs:415
↓ 1 callers
Function
parse_seeded_pool_state
( pool: &SubgraphPool, address: Address, snapshot_block: u64, )
crates/pool-indexer/src/subgraph_seeder.rs:442
↓ 1 callers
Function
partial_access_list_for
Returns the partial access list for a single trade, or `None` if the trade does not buy native ETH or its receiver has no on-chain code.
crates/driver/src/domain/competition/solution/settlement.rs:344
↓ 1 callers
Method
partial_cmp
(&self, other: &Self)
crates/driver/src/domain/competition/sorting.rs:64
↓ 1 callers
Method
participate
( &self, driver: Arc<infra::Driver>, request: solve::Request, auction_id: i64,
crates/autopilot/src/shadow.rs:206
↓ 1 callers
Method
partition_unfair_solutions
( &self, solutions: Vec<Solution<Unscored>>, context: &AuctionContext, )
crates/winner-selection/src/arbitrator.rs:61
↓ 1 callers
Method
past_events_by_block_number_range
( &self, block_range: &RangeInclusive<u64>, )
crates/event-indexing/src/event_handler.rs:546
↓ 1 callers
Function
path_candidates
( sell_token: Address, buy_token: Address, base_tokens: &HashSet<Address>, max_hops: usize, )
crates/liquidity-sources/src/base_tokens.rs:81
↓ 1 callers
Function
path_candidates
( sell_token: Address, buy_token: Address, base_tokens: &HashSet<Address>, max_hops: usize, )
crates/solvers/src/boundary/routing.rs:185
↓ 1 callers
Method
path_candidates_with_hops
Returns possible path candidates with the specified number of maximum hops.
crates/liquidity-sources/src/base_tokens.rs:71
↓ 1 callers
Method
pays_to_contract
Does this order pay to a smart contract?
crates/driver/src/domain/competition/order/mod.rs:148
↓ 1 callers
Method
pending_chunks
(&self, last_indexed_block: u64, finalized_block: u64)
crates/pool-indexer/src/indexer/uniswap_v3.rs:225
↓ 1 callers
Method
permit
(&self, owner: &TestAccount, spender: Address, value: U256)
crates/e2e/src/setup/onchain_components/mod.rs:137
↓ 1 callers
Method
persist_chunk
(&self, chunk: ChunkRange, changes: ChunkChanges)
crates/pool-indexer/src/indexer/uniswap_v3.rs:345
↓ 1 callers
Method
persist_last_indexed_block
(&mut self, _last_block: u64)
crates/event-indexing/src/event_handler.rs:737
↓ 1 callers
Method
persist_pool_page
(&self, page: &[SubgraphPool])
crates/pool-indexer/src/subgraph_seeder.rs:351
↓ 1 callers
Method
pick_solve_deadline
(&self)
crates/autopilot/src/run_loop.rs:225
↓ 1 callers
Method
ping
(&mut self)
crates/database/src/leader_pg_lock.rs:12
← previous
next →
2,201–2,300 of 8,522, ranked by callers