MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 3 callersMethodinteractions
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 callersMethodinto_iter
(self)
crates/eth-domain-types/src/access_list.rs:37
↓ 3 callersMethodinto_response
(self)
crates/pool-indexer/src/api/mod.rs:42
↓ 3 callersMethodinto_response
(self)
crates/orderbook/src/api/cancel_order.rs:32
↓ 3 callersMethodinto_response
(self)
crates/orderbook/src/api/post_quote.rs:32
↓ 3 callersFunctionjoin
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 callersFunctionjoin_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 callersMethodkey
( &self, order: &order::Order, tokens: &Tokens, _solver: &eth::Address,
crates/driver/src/domain/competition/sorting.rs:34
↓ 3 callersMethodlimit
Make this a limit order.
crates/driver/src/tests/setup/mod.rs:210
↓ 3 callersFunctionload_by_id
( mut ex: &mut PgConnection, id: AuctionId, after_block: Option<i64>, )
crates/database/src/solver_competition_v2.rs:118
↓ 3 callersFunctionload_by_id
( ex: &mut PgConnection, id: AuctionId, after_block: Option<i64>, )
crates/database/src/solver_competition.rs:50
↓ 3 callersFunctionload_by_tx_hash
( ex: &mut PgConnection, tx_hash: &TransactionHash, after_block: Option<i64>, )
crates/database/src/solver_competition.rs:104
↓ 3 callersFunctionload_latest_competition
( ex: &mut PgConnection, after_block: Option<i64>, )
crates/database/src/solver_competition.rs:95
↓ 3 callersFunctionmap_custom_solver_error
(custom_err: &solvers_dto::solution::SolverError)
crates/driver/src/infra/api/error.rs:83
↓ 3 callersFunctionmark_as_reorged
( ex: &mut PgTransaction<'_>, mark_from_block_number: i64, )
crates/database/src/onchain_broadcasted_orders.rs:56
↓ 3 callersMethodmax_age
(&self)
crates/price-estimation/src/native_price_cache.rs:192
↓ 3 callersMethodmerge
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 callersMethodmerge
( &self, other: &Self, max_orders_per_merged_solution: usize, )
crates/driver/src/domain/competition/solution/mod.rs:361
↓ 3 callersFunctionmock_provider
(asserter: Asserter)
crates/gas-price-estimation/src/configurable_alloy.rs:138
↓ 3 callersMethodnative_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 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1562
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:359
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv3quoterv2/src/lib.rs:594
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv3/src/lib.rs:1272
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iuniswapv3factory/src/lib.rs:1140
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv3/src/lib.rs:1309
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv5/src/lib.rs:1309
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv4/src/lib.rs:1309
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2stablepoolfactoryv2/src/lib.rs:1018
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2noprotocolfeeliquiditybootstrappingpoolfactory/src/lib.rs:739
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpoolfactory/src/lib.rs:729
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/erc20mintable/src/lib.rs:2117
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerqueries/src/lib.rs:707
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafeproxyfactory/src/lib.rs:591
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactory/src/lib.rs:1309
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/swapper/src/lib.rs:1353
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv4/src/lib.rs:1272
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv6/src/lib.rs:1309
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2authorizer/src/lib.rs:1236
↓ 3 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:165
↓ 3 callersMethodnow
(&self)
crates/shared/src/order_quoting.rs:375
↓ 3 callersMethodorder_ids
(&self)
crates/autopilot/src/domain/competition/mod.rs:45
↓ 3 callersFunctionorder_kind_from
(kind: DbOrderKind)
crates/shared/src/db_order_conversions.rs:192
↓ 3 callersFunctionorders_with_balance
( mut orders: Vec<&'a Order>, balances: &Balances, settlement_contract: Address, filter_bypass
crates/autopilot/src/solvable_orders.rs:577
↓ 3 callersMethodowner
(&self)
crates/autopilot/src/domain/auction/order.rs:37
↓ 3 callersFunctionpack_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 callersMethodpair_address
(&self, pair: &TokenPair)
crates/liquidity-sources/src/uniswap_v2/pair_provider.rs:13
↓ 3 callersMethodpartial
(self, already_executed: eth::U256)
crates/driver/src/tests/setup/mod.rs:260
↓ 3 callersMethodpartial_validate
(&self, order: PreOrderData)
crates/shared/src/order_validation.rs:656
↓ 3 callersMethodparts
Splits an order UID into its parts.
crates/autopilot/src/domain/auction/order.rs:42
↓ 3 callersFunctionpool_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 callersFunctionprice
(out_amount: u128, gas: u64)
crates/price-estimation/src/competition/quote.rs:254
↓ 3 callersFunctionprobe_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 callersFunctionprotocol_app_data_into_validated
(protocol: ProtocolAppData)
crates/driver/src/tests/cases/flashloan_hints.rs:134
↓ 3 callersFunctionprovider
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 callersFunctionpush_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 callersMethodput_app_data
( &self, app_data: Option<AppDataHash>, full_app_data: &str, )
crates/e2e/src/setup/services.rs:742
↓ 3 callersMethodquery
TODO explain why we use BUY order type (shallow liquidity)
crates/price-estimation/src/native/mod.rs:90
↓ 3 callersMethodranked
All solutions that passed the filtering step.
crates/autopilot/src/domain/competition/winner_selection.rs:272
↓ 3 callersFunctionread_onchain_invalidation
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/onchain_invalidations.rs:75
↓ 3 callersFunctionread_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/onchain_broadcasted_orders.rs:104
↓ 3 callersMethodreceiver
(self, receiver: Option<eth::Address>)
crates/driver/src/tests/setup/mod.rs:304
↓ 3 callersFunctionrecord_dropped
(reason: DropReason)
crates/observe/src/event_bus/mod.rs:233
↓ 3 callersMethodrecover_owner
Opposite of `encode_for_settlement`. Given the encoded signature returns the owner.
crates/model/src/signature.rs:164
↓ 3 callersMethodreduce_score
Reduce the solution score by adding additional meaningless calldata.
crates/driver/src/tests/setup/mod.rs:589
↓ 3 callersMethodreference_scores
Reference scores for each winning solver, used to compute rewards.
crates/autopilot/src/domain/competition/winner_selection.rs:267
↓ 3 callersMethodrelative
Returns the slippage for the specified token amount.
crates/solvers/src/domain/dex/slippage.rs:30
↓ 3 callersMethodrelevant_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 callersMethodremove_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 callersMethodremove_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 callersFunctionremove_expired_quotes
( ex: &mut PgConnection, max_expiry: DateTime<Utc>, )
crates/database/src/quotes.rs:148
↓ 3 callersFunctionrequest_id
(headers: &HeaderMap<HeaderValue>)
crates/observe/src/tracing/distributed/request_id.rs:36
↓ 3 callersFunctionrevert_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 callersMethodreverts_can_get_mined
(&self)
crates/driver/src/infra/mempool/mod.rs:218
↓ 3 callersMethodrpc_args
(mut self, rpc_args: Vec<String>)
crates/driver/src/tests/setup/mod.rs:881
↓ 3 callersMethodrun
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 callersMethodrun
Starts the server and returns the assigned port number.
crates/e2e/src/api/zeroex.rs:36
↓ 3 callersMethodscore
(&self)
crates/winner-selection/src/state.rs:112
↓ 3 callersMethodsell
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 callersMethodsell_amount
The effective amount that left the user's wallet including all fees.
crates/driver/src/domain/competition/solution/trade.rs:69
↓ 3 callersFunctionsell_order_from_quote
(quote: &OrderQuoteResponse)
crates/e2e/tests/e2e/protocol_fee.rs:677
↓ 3 callersMethodsetup
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3478
↓ 3 callersMethodshutdown
Send shutdown signal to the associated Control
crates/autopilot/src/shutdown_controller.rs:65
↓ 3 callersMethodsign_message
Returns the ERC-1271 signature bytes for the specified message.
crates/e2e/src/setup/onchain_components/safe.rs:201
↓ 3 callersMethodsign_typed_data
( &self, domain_separator: &DomainSeparator, struct_hash: &[u8; 32], )
crates/e2e/src/setup/onchain_components/mod.rs:43
↓ 3 callersFunctionsignature
(n: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:38
↓ 3 callersMethodsimulation_solver_address
(&self)
crates/price-estimation/src/trade_finding/mod.rs:84
↓ 3 callersMethodsolver
The solver which generated this solution.
crates/driver/src/domain/competition/solution/mod.rs:239
↓ 3 callersMethodsolver
Get the solver address.
crates/winner-selection/src/solution.rs:43
↓ 3 callersMethodsolver_determines_fee
Returns `true` if the order expects a solver-computed fee.
crates/solvers/src/domain/order.rs:25
↓ 3 callersMethodspawn_background_task
Spawns task that refreshes the cached balances on every new block.
crates/account-balances/src/cached.rs:115
↓ 3 callersMethodstart
(&self)
crates/event-indexing/src/block_retriever.rs:141
↓ 3 callersMethodstart_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 callersFunctionstart_baseline_solver
( name: String, account: TestAccount, weth: Address, base_tokens: Vec<Address>, max_hops:
crates/e2e/src/setup/colocation.rs:24
↓ 3 callersMethodstart_protocol_with_args_and_haircut
( &self, autopilot_config: configs::autopilot::Configuration, orderbook_config: config
crates/e2e/src/setup/services.rs:254
↓ 3 callersFunctionstart_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 callersFunctionstream_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 callersMethodsum
(iter: I)
crates/eth-domain-types/src/ether.rs:63
↓ 3 callersMethodsurplus_capturing_jit_order_owners
(&self)
crates/driver/src/domain/competition/auction.rs:131
↓ 3 callersMethodsurplus_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
← previousnext →801–900 of 8,522, ranked by callers