MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 1 callersMethodmaintenance_tasks
(&self)
crates/cow-amm/src/registry.rs:85
↓ 1 callersFunctionmake_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 callersMethodmanual
(&self, name: &str, reason: &str)
contracts/src/vendor.rs:311
↓ 1 callersMethodmany_orders
(&self, uids: &[OrderUid])
crates/orderbook/src/database/orders.rs:318
↓ 1 callersMethodmark_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 callersMethodmax_gas_limit
(&self)
crates/simulator/src/simulation_builder.rs:84
↓ 1 callersMethodmax_pools_per_tick_query
(&self)
crates/liquidity-sources/src/subgraph.rs:141
↓ 1 callersFunctionmax_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 callersMethodmax_solutions_to_propose
(mut self, n: usize)
crates/driver/src/tests/setup/mod.rs:443
↓ 1 callersMethodmay_revert
Whether the settlement contains interactions that could possibly revert on chain
crates/driver/src/domain/competition/solution/settlement.rs:233
↓ 1 callersMethodmeasure
(self, label: &str)
crates/observe/src/future.rs:12
↓ 1 callersMethodmeasure_auction_overhead
(&self, start: Instant, component: &str, phase: &str)
crates/observe/src/metrics.rs:200
↓ 1 callersFunctionmempool_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 callersFunctionmempool_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 callersMethodmempools
(mut self, mempools: Vec<Mempool>)
crates/driver/src/tests/setup/mod.rs:876
↓ 1 callersFunctionmerge
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 callersFunctionmerge_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 callersFunctionmerge_tables
Recursively merge two TOML tables
crates/e2e/src/setup/colocation/utils/toml.rs:32
↓ 1 callersFunctionmerged
Observe that two solutions were merged.
crates/driver/src/infra/observe/mod.rs:152
↓ 1 callersMethodmetric_label
(self)
crates/driver/src/domain/mempools.rs:473
↓ 1 callersFunctionmetrics
()
crates/price-estimation/src/competition/mod.rs:249
↓ 1 callersMethodmint_block
(&self)
crates/e2e/src/setup/services.rs:890
↓ 1 callersFunctionmint_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 callersMethodmost_recent_auction
(&self)
crates/orderbook/src/database/auctions.rs:7
↓ 1 callersFunctionmounting_solver
Observe that the API routes for a solver are being mounted.
crates/driver/src/infra/observe/mod.rs:331
↓ 1 callersMethodmove_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 callersMethodmul
(self, rhs: f64)
crates/eth-domain-types/src/gas.rs:77
↓ 1 callersMethodmul_ceil
Multiplies this fee by the given floating point number, rounding up.
crates/eth-domain-types/src/gas.rs:95
↓ 1 callersFunctionmul_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 callersMethodmultiply_amount
Multiply the sell amount of this order by the given factor.
crates/driver/src/tests/setup/mod.rs:170
↓ 1 callersMethodnative_price_request
(&self, order: &Order)
crates/solvers/src/domain/solver/baseline.rs:312
↓ 1 callersMethodnative_token_price_estimation_amount
(&self)
crates/price-estimation/src/factory.rs:152
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1350
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/counter/src/lib.rs:755
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1374
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/mockerc4626wrapper/src/lib.rs:2464
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/baoswaprouter/src/lib.rs:1350
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/honeyswaprouter/src/lib.rs:1350
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/solver/src/lib.rs:702
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowammuniswapv2priceoracle/src/lib.rs:54
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gashog/src/lib.rs:590
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1350
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/anyoneauthenticator/src/lib.rs:345
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/sushiswaprouter/src/lib.rs:1350
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafeproxy/src/lib.rs:130
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/spardose/src/lib.rs:368
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/nonstandarderc20balances/src/lib.rs:1413
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/remoteerc20balances/src/lib.rs:1658
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/solver7702delegate/src/lib.rs:358
↓ 1 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafecompatibilityfallbackhandler/src/lib.rs:1191
↓ 1 callersFunctionnew_block
(number: u64)
crates/ethrpc/src/block_stream.rs:374
↓ 1 callersMethodnext_action
(&self)
crates/price-estimation/src/native/fallback.rs:148
↓ 1 callersMethodnext_auction
(&mut self)
crates/autopilot/src/shadow.rs:100
↓ 1 callersMethodnext_auction
( &self, start_block: BlockInfo, prev_auction: &mut Option<domain::Auction>, p
crates/autopilot/src/run_loop.rs:280
↓ 1 callersFunctionnext_free_interaction_indices
( db: &mut PgConnection, order: OrderUid, )
crates/database/src/orders.rs:1060
↓ 1 callersFunctionnon_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 callersFunctionnon_vault_cache_size
(size: usize)
crates/price-estimation/src/native/eip4626.rs:247
↓ 1 callersMethodnon_winners
All solutions that were not filtered out but also did not win.
crates/autopilot/src/domain/competition/winner_selection.rs:262
↓ 1 callersMethodnonces
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4859
↓ 1 callersMethodnormalize_price
Applies the normalization factor to a price.
crates/price-estimation/src/native_price_cache.rs:55
↓ 1 callersFunctionnow_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 callersMethodnpm
(path: &str)
contracts/src/vendor.rs:262
↓ 1 callersMethodon_request_start
(&self, label: &str, method: &str)
crates/ethrpc/src/alloy/instrumentation.rs:229
↓ 1 callersFunctionorder_class_into
(class: &OrderClass)
crates/shared/src/db_order_conversions.rs:199
↓ 1 callersFunctionorder_event_ids_before
(pool: &PgPool)
crates/autopilot/src/periodic_db_cleanup.rs:163
↓ 1 callersFunctionorder_events_matching_fuzzy
(actual: &[OrderEvent], expected: &[OrderEventLabel])
crates/e2e/tests/e2e/univ2.rs:152
↓ 1 callersFunctionorder_flags
(order: &OrderData, signature: &Signature)
crates/simulator/src/encoding.rs:176
↓ 1 callersMethodorder_is_actively_bid_on
(&self, order_uid: OrderUid)
crates/orderbook/src/orderbook.rs:480
↓ 1 callersFunctionorder_quote_into_model
( quote: &database::orders::Quote, status: model::order::OrderStatus, )
crates/shared/src/db_order_conversions.rs:131
↓ 1 callersMethodorders
The orders for the auction.
crates/driver/src/domain/competition/auction.rs:88
↓ 1 callersMethodorders_for_tx
(&self, tx_hash: &B256)
crates/orderbook/src/database/orders.rs:362
↓ 1 callersMethodother
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 callersMethodout_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 callersMethodoutput
(&self)
crates/solvers/src/domain/solver/baseline.rs:394
↓ 1 callersMethodowner
Extract the owner address from the order UID.
crates/winner-selection/src/primitives.rs:46
↓ 1 callersMethodpage_limit
(&self)
crates/pool-indexer/src/api/uniswap_v3/pools_list.rs:33
↓ 1 callersFunctionpair_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 callersFunctionparse_field_paths
Parses dot-separated field paths into a set of paths.
crates/testlib/src/json_matching.rs:98
↓ 1 callersFunctionparse_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 callersFunctionparse_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 callersFunctionparse_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 callersMethodparse_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 callersFunctionparse_seeded_pool
( pool: &SubgraphPool, snapshot_block: u64, )
crates/pool-indexer/src/subgraph_seeder.rs:415
↓ 1 callersFunctionparse_seeded_pool_state
( pool: &SubgraphPool, address: Address, snapshot_block: u64, )
crates/pool-indexer/src/subgraph_seeder.rs:442
↓ 1 callersFunctionpartial_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 callersMethodpartial_cmp
(&self, other: &Self)
crates/driver/src/domain/competition/sorting.rs:64
↓ 1 callersMethodparticipate
( &self, driver: Arc<infra::Driver>, request: solve::Request, auction_id: i64,
crates/autopilot/src/shadow.rs:206
↓ 1 callersMethodpartition_unfair_solutions
( &self, solutions: Vec<Solution<Unscored>>, context: &AuctionContext, )
crates/winner-selection/src/arbitrator.rs:61
↓ 1 callersMethodpast_events_by_block_number_range
( &self, block_range: &RangeInclusive<u64>, )
crates/event-indexing/src/event_handler.rs:546
↓ 1 callersFunctionpath_candidates
( sell_token: Address, buy_token: Address, base_tokens: &HashSet<Address>, max_hops: usize, )
crates/liquidity-sources/src/base_tokens.rs:81
↓ 1 callersFunctionpath_candidates
( sell_token: Address, buy_token: Address, base_tokens: &HashSet<Address>, max_hops: usize, )
crates/solvers/src/boundary/routing.rs:185
↓ 1 callersMethodpath_candidates_with_hops
Returns possible path candidates with the specified number of maximum hops.
crates/liquidity-sources/src/base_tokens.rs:71
↓ 1 callersMethodpays_to_contract
Does this order pay to a smart contract?
crates/driver/src/domain/competition/order/mod.rs:148
↓ 1 callersMethodpending_chunks
(&self, last_indexed_block: u64, finalized_block: u64)
crates/pool-indexer/src/indexer/uniswap_v3.rs:225
↓ 1 callersMethodpermit
(&self, owner: &TestAccount, spender: Address, value: U256)
crates/e2e/src/setup/onchain_components/mod.rs:137
↓ 1 callersMethodpersist_chunk
(&self, chunk: ChunkRange, changes: ChunkChanges)
crates/pool-indexer/src/indexer/uniswap_v3.rs:345
↓ 1 callersMethodpersist_last_indexed_block
(&mut self, _last_block: u64)
crates/event-indexing/src/event_handler.rs:737
↓ 1 callersMethodpersist_pool_page
(&self, page: &[SubgraphPool])
crates/pool-indexer/src/subgraph_seeder.rs:351
↓ 1 callersMethodpick_solve_deadline
(&self)
crates/autopilot/src/run_loop.rs:225
↓ 1 callersMethodping
(&mut self)
crates/database/src/leader_pg_lock.rs:12
← previousnext →2,201–2,300 of 8,522, ranked by callers