MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 4 callersMethodreference_price
(&self, token: &eth::TokenAddress)
crates/solvers/src/domain/auction.rs:30
↓ 4 callersFunctionrefundable_orders
( ex: &mut PgConnection, since_valid_to: i64, min_validity_duration: i64, min_price_deviation:
crates/database/src/ethflow_orders.rs:130
↓ 4 callersMethodrequest
Prepares a request builder which already has additional headers set.
crates/solvers/src/infra/dex/mod.rs:75
↓ 4 callersMethodround
Rounds the slippage to the specified number of decimal places.
crates/solvers/src/domain/dex/slippage.rs:90
↓ 4 callersMethodrun_maintenance_for_blocks
( mut self, blocks: impl Stream<Item = BlockInfo>, )
crates/event-indexing/src/maintenance.rs:26
↓ 4 callersFunctionsave
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:248
↓ 4 callersFunctionsell_token_source_into
(source: SellTokenSource)
crates/shared/src/db_order_conversions.rs:244
↓ 4 callersFunctionserve
(listen_addr: SocketAddr, backends: Vec<Url>, state: ProxyState)
crates/e2e/src/setup/proxy.rs:119
↓ 4 callersFunctionsetup_native_price_mock
( native_price_estimator: &mut MockNativePriceEstimating, sell_token: Address, buy_tok
crates/shared/src/order_quoting.rs:2040
↓ 4 callersFunctionsetup_registry
Configure global metrics registry. This function allows specifying common prefix that will be added to all metric names, as well as common labels. T
crates/observe/src/metrics.rs:42
↓ 4 callersFunctionsigning_scheme_into
(scheme: SigningScheme)
crates/shared/src/db_order_conversions.rs:274
↓ 4 callersMethodsolve_with_solver
(&self, solver: &str)
crates/driver/src/tests/setup/mod.rs:1096
↓ 4 callersFunctionstart
The driver entry-point. This function exists in order to be able to run the driver from multiple binaries.
crates/driver/src/run.rs:29
↓ 4 callersFunctionstart_driver_with_config_override
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, quote_using
crates/e2e/src/setup/colocation.rs:150
↓ 4 callersMethodstream
( &self, http_url: Url, alloy_provider: AlloyProvider, )
crates/shared/src/current_block.rs:42
↓ 4 callersMethodsurplus
Returns the dynamic component for the fee.
crates/solvers/src/domain/solution.rs:412
↓ 4 callersMethodsurplus_capturing_jit_order_owners
( mut self, surplus_capturing_jit_order_owners: Vec<Address>, )
crates/driver/src/tests/setup/mod.rs:886
↓ 4 callersMethodsurplus_fee
(&self)
crates/driver/src/tests/setup/mod.rs:297
↓ 4 callersFunctiontest_order_was_settled
(ethflow_order: &ExtendedEthFlowOrder, onchain: &OnchainComponents)
crates/e2e/tests/e2e/ethflow.rs:730
↓ 4 callersFunctionto_interaction
( pool: &liquidity::uniswap::v2::Pool, input: &liquidity::MaxInput, output: &liquidity::ExactOutpu
crates/driver/src/boundary/liquidity/uniswap/v2.rs:84
↓ 4 callersMethodtransaction
The calldata for this settlement.
crates/driver/src/domain/competition/solution/settlement.rs:224
↓ 4 callersFunctiontx_info
Build a transaction-update fixture: static account keys, ALT-loaded writable and readonly addresses, top-level instructions, and inner-instruction gro
crates/solana-indexer/src/indexer/decoder/tests.rs:58
↓ 4 callersFunctiontx_update
(slot: u64, sig: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:46
↓ 4 callersFunctionu256_to_big_rational
(input: &U256)
crates/number/src/conversions.rs:74
↓ 4 callersMethoduid
(&self, domain: &DomainSeparator, owner: Address)
crates/model/src/order.rs:263
↓ 4 callersMethodupdate_events
(&mut self)
crates/event-indexing/src/event_handler.rs:388
↓ 4 callersMethodupdate_orders
Updates the orders that participated in settlements by incrementing their attempt count. `failure` indicates whether the settlement was successful or
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:99
↓ 4 callersMethodupdate_tokens_and_fetch_prices
Replaces the full set of tokens that should be maintained by the background task and fetches their current prices.
crates/price-estimation/src/native_price_cache.rs:473
↓ 4 callersFunctionuser_orders
( ex: &'a mut PgConnection, owner: &'a Address, offset: i64, limit: Option<i64>, )
crates/database/src/order_history.rs:9
↓ 4 callersMethodvalidate
(&self)
crates/driver/src/infra/solver/mod.rs:225
↓ 4 callersFunctionwait_for_indexer
Polls `/pools` until the indexer has reached `head` and surfaced at least `min_pools` pools. `min_pools = 0` means "any state is fine, just check bloc
crates/e2e/tests/e2e/pool_indexer.rs:254
↓ 4 callersFunctionweth_pool
A pool between "A" and "WETH".
crates/driver/src/tests/setup/mod.rs:763
↓ 4 callersFunctionwith_pool_indexer_at
Runs `body` with a freshly-started pool-indexer. The indexer is spawned before the closure runs, then `abort`ed and `await`ed after — so the port is f
crates/e2e/tests/e2e/pool_indexer.rs:239
↓ 4 callersMethodwithdraw
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2401
↓ 4 callersMethodwrite
(&mut self, data: &[u8])
crates/driver/src/infra/solver/streaming/mod.rs:124
↓ 3 callersFunctionab_adjusted_pool
(quote: LiquidityQuote)
crates/driver/src/tests/setup/mod.rs:663
↓ 3 callersFunctionab_liquidity_quote
()
crates/driver/src/tests/setup/mod.rs:678
↓ 3 callersFunctionad_order
An example order which sells token "A" for token "D".
crates/driver/src/tests/setup/mod.rs:699
↓ 3 callersFunctionad_pool
A pool between tokens "A" and "D".
crates/driver/src/tests/setup/mod.rs:710
↓ 3 callersFunctionad_solution
A solution solving the [`ad_order`].
crates/driver/src/tests/setup/mod.rs:720
↓ 3 callersFunctionadd_settlement
Testing Trades with settlements
crates/database/src/trades.rs:528
↓ 3 callersFunctionadd_trade
( ex: &mut PgTransaction<'_>, owner: Address, order_uid: OrderUid, event_index
crates/database/src/trades.rs:221
↓ 3 callersMethodaddress
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:59
↓ 3 callersMethodaddress
Returns the address of the Safe.
crates/e2e/src/setup/onchain_components/safe.rs:145
↓ 3 callersFunctionamm_to_pool
(amm: &ConstantProductOrder)
crates/solver/src/solver.rs:63
↓ 3 callersFunctionamm_to_weighted_pool
(amm: &WeightedProductOrder)
crates/solver/src/solver.rs:72
↓ 3 callersFunctionapp_code
Extracts the `appCode` from a full app-data document, if present. `appCode` sits at the document root, next to (not inside) the protocol `metadata`,
crates/app-data/src/app_data.rs:308
↓ 3 callersMethodapp_data
(self, app_data: AppData)
crates/driver/src/tests/setup/mod.rs:293
↓ 3 callersMethodappend_events
(&mut self, events: Vec<(T, alloy_rpc_types::Log)>)
crates/event-indexing/src/event_handler.rs:724
↓ 3 callersMethodapproval_override
( &self, request: ApprovalOverrideRequest, )
crates/balance-overrides/src/lib.rs:84
↓ 3 callersMethodas_raw
Returns the fee as a raw [`eth::U256`] value as it is represented on-chain.
crates/driver/src/domain/liquidity/balancer/v2/mod.rs:41
↓ 3 callersMethodas_str
(self)
crates/database/src/order_events.rs:52
↓ 3 callersFunctionassemble_quote_data
Assembles a `QuoteData` from a completed price estimate and its inputs. `expiration` must be computed by the caller (it depends on `&self` state in `
crates/shared/src/order_quoting.rs:754
↓ 3 callersFunctionassert_rate_close
Asserts `computed_rate` is within a `tolerance` of `expected_rate`.
crates/price-estimation/src/native/eip4626.rs:266
↓ 3 callersMethodatom
(self)
crates/number/src/units.rs:24
↓ 3 callersMethodavailable
Returns the order's available amounts to be passed to a solver engine. See [`Available`] for more details.
crates/driver/src/domain/competition/order/mod.rs:168
↓ 3 callersMethodbalance
(self, balance: eth::U256)
crates/driver/src/tests/setup/mod.rs:422
↓ 3 callersFunctionbig_uint_to_u256
(input: &BigUint)
crates/number/src/conversions.rs:42
↓ 3 callersFunctionblock_with_base_fee
(base_fee: u64)
crates/gas-price-estimation/src/configurable_alloy.rs:151
↓ 3 callersMethodblocks
(&self, range: RangeInclusive<u64>)
crates/event-indexing/src/block_retriever.rs:49
↓ 3 callersMethodboundary
( &self, blockchain: &Blockchain, signer: PrivateKeySigner, )
crates/driver/src/tests/setup/blockchain.rs:196
↓ 3 callersMethodbsub
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/math.rs:20
↓ 3 callersMethodbuild
(&self)
crates/driver/src/tests/boundary.rs:38
↓ 3 callersMethodbuy
The asset being bought, or [`eth::U256::one`] if this is a sell, to facilitate surplus.
crates/driver/src/domain/quote.rs:241
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1659
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/counter/src/lib.rs:902
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv3/src/lib.rs:1369
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/cowammlegacyhelper/src/lib.rs:357
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv3/src/lib.rs:1409
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv5/src/lib.rs:1409
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv4/src/lib.rs:1409
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactory/src/lib.rs:1409
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv4/src/lib.rs:1369
↓ 3 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv6/src/lib.rs:1409
↓ 3 callersFunctioncancel_order
Applies the needed DB modification to cancel a single order.
crates/orderbook/src/database/orders.rs:97
↓ 3 callersFunctioncheck_batching_many
Function to check batching of many tokens
crates/price-estimation/src/buffered.rs:385
↓ 3 callersMethodclearing_price
Clearing price for the given token.
crates/driver/src/domain/competition/solution/mod.rs:551
↓ 3 callersMethodclearing_prices
Token prices settled by this solution, expressed using an arbitrary reference unit chosen by the solver. These values are only meaningful in relation
crates/driver/src/domain/competition/solution/mod.rs:514
↓ 3 callersFunctioncompetition_error
(err: &competition::Error)
crates/driver/src/infra/observe/mod.rs:435
↓ 3 callersMethodcomplement
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:188
↓ 3 callersFunctioncompute_absolute_tolerance
Computes the absolute tolerance amount from a relative factor.
crates/solvers/src/domain/dex/shared.rs:15
↓ 3 callersFunctionconfig
()
crates/driver/src/infra/solver/mod.rs:587
↓ 3 callersMethodconfig
Load the specified config file. Otherwise, a temporary config file will be created with reasonable values.
crates/driver/src/tests/setup/mod.rs:842
↓ 3 callersFunctionconstant_a_18
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:91
↓ 3 callersFunctionconstant_a_20
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:75
↓ 3 callersFunctionconstant_x_18
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:67
↓ 3 callersFunctionconstant_x_20
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:51
↓ 3 callersFunctionconvert_onchain_order_placement
( order_placement: &ContractOrderPlacement, event_timestamp: i64, quote: Result<Quote, OnchainOrde
crates/autopilot/src/database/onchain_order_events/mod.rs:583
↓ 3 callersFunctioncreate_stable_pool_with
( tokens: Vec<Address>, balances: Vec<U256>, amplification_parameter: AmplificationPar
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:481
↓ 3 callersMethodcustom_prices
( &self, prices: &ClearingPrices, )
crates/driver/src/domain/competition/solution/trade.rs:92
↓ 3 callersFunctiondecimal_to_ether
Converts a `BigDecimal` amount in Ether units to wei.
crates/solvers/src/util/conv.rs:21
↓ 3 callersFunctiondefault_config
()
crates/gas-price-estimation/src/configurable_alloy.rs:144
↓ 3 callersFunctiondefault_past_blocks
()
crates/configs/src/gas_price_estimation.rs:9
↓ 3 callersFunctiondefault_reward_percentile
()
crates/configs/src/gas_price_estimation.rs:13
↓ 3 callersFunctiondefault_streaming_params
()
crates/shared/src/order_quoting.rs:2024
↓ 3 callersMethoddeploy_cow_weth_pool
( &self, cow_supply: U256, cow_amount: U256, weth_amount: U256, )
crates/e2e/src/setup/onchain_components/mod.rs:551
↓ 3 callersFunctiondeploy_with_solver_and_trader
Deploys onchain components with a solver and a trader, each funded with 100 ETH.
crates/e2e/tests/e2e/protocol_fee.rs:1259
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1739
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/izeroex/src/lib.rs:8281
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1743
← previousnext →601–700 of 8,522, ranked by callers