MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions9,022 in github.com/cowprotocol/services

↓ 4 callersFunctionstore_order_events
( ex: &mut PgConnection, order_uids: impl IntoIterator<Item = domain::OrderUid>, label: OrderEvent
crates/autopilot/src/database/order_events.rs:32
↓ 4 callersMethodstream
( &self, http_url: Url, alloy_provider: AlloyProvider, )
crates/shared/src/current_block.rs:42
↓ 4 callersMethodsupports_fast_path
(&self)
crates/price-estimation/src/trade_finding/mod.rs:79
↓ 4 callersMethodsurplus_capturing_jit_order_owners
( mut self, surplus_capturing_jit_order_owners: Vec<Address>, )
crates/driver/src/tests/setup/mod.rs:897
↓ 4 callersMethodsurplus_fee
(&self)
crates/driver/src/tests/setup/mod.rs:297
↓ 4 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
↓ 4 callersFunctionswap
()
crates/solana-solvers/src/dto/solution.rs:169
↓ 4 callersMethodtarget
The buy amount for [`Side::Buy`] orders, or the sell amount for [`Side::Sell`] orders.
crates/driver/src/domain/competition/order/mod.rs:136
↓ 4 callersFunctiontest_order_was_settled
(ethflow_order: &ExtendedEthFlowOrder, onchain: &OnchainComponents)
crates/e2e/tests/e2e/ethflow.rs:733
↓ 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:229
↓ 4 callersMethodtry_add
`self + rhs`, `Overflow` when it does not fit.
crates/chain-types/src/lib.rs:61
↓ 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 callersFunctionupdate
( ex: &mut PgConnection, contract: &str, last_indexed_block: i64, )
crates/database/src/last_indexed_blocks.rs:7
↓ 4 callersMethodupdate_events
(&mut self)
crates/event-indexing/src/event_handler.rs:390
↓ 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:100
↓ 4 callersFunctionupdate_settlement_solver_and_gas
( ex: &mut PgConnection, block_number: i64, log_index: i64, solver: Address, solution_uid:
crates/database/src/settlements.rs:71
↓ 4 callersFunctionuser_orders
( ex: &'a mut PgConnection, owner: &'a Address, offset: i64, limit: Option<i64>, )
crates/database/src/order_history.rs:9
↓ 4 callersFunctionweth_pool
A pool between "A" and "WETH".
crates/driver/src/tests/setup/mod.rs:774
↓ 4 callersMethodwith_verification
Configures if verified price estimates should be ranked higher than unverified ones even if the price is worse. Per default verified quotes do not get
crates/price-estimation/src/competition/mod.rs:59
↓ 4 callersMethodwithdraw
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2401
↓ 3 callersFunctionab_adjusted_pool
(quote: LiquidityQuote)
crates/driver/src/tests/setup/mod.rs:674
↓ 3 callersFunctionab_liquidity_quote
()
crates/driver/src/tests/setup/mod.rs:689
↓ 3 callersFunctionad_order
An example order which sells token "A" for token "D".
crates/driver/src/tests/setup/mod.rs:710
↓ 3 callersFunctionad_pool
A pool between tokens "A" and "D".
crates/driver/src/tests/setup/mod.rs:721
↓ 3 callersFunctionad_solution
A solution solving the [`ad_order`].
crates/driver/src/tests/setup/mod.rs:731
↓ 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 callersFunctionaggregate3_response
The `eth_call` response of an `aggregate3` whose sub-calls came back as given, in the order the reader asked for them.
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:607
↓ 3 callersMethodall
All solutions including the ones that got filtered out.
crates/autopilot/src/domain/competition/winner_selection.rs:247
↓ 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:316
↓ 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:734
↓ 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 callersMethodas_str
(&self)
crates/simulator/src/state_override_stream.rs:494
↓ 3 callersFunctionassemble_quote_data
Assembles a `QuoteCompetition` from every ranked estimate plus the competition-level context (native prices, gas price, expiration). Fails with [`Calc
crates/shared/src/order_quoting.rs:926
↓ 3 callersFunctionassert_rate_close
Asserts `computed_rate` is within a `tolerance` of `expected_rate`.
crates/price-estimation/src/native/eip4626.rs:293
↓ 3 callersMethodatom
(self)
crates/number/src/units.rs:24
↓ 3 callersMethodauction_id
Set specific auction ID which will be used during test. Setting auction ID can be used to test various scenarios when handling competing solutions in
crates/driver/src/tests/setup/mod.rs:911
↓ 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:172
↓ 3 callersMethodbanned
Returns the subset of `addresses` that are banned. Cache misses hit the configured remote sources.
crates/order-validation/src/banned/mod.rs:63
↓ 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:153
↓ 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:197
↓ 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:268
↓ 3 callersFunctioncached_balance
Reads an entry without marking it as requested, so polling for a background update does not keep the entry alive.
crates/account-balances/src/cached.rs:243
↓ 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/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 callersFunctioncall_solve
POST the standard solve request and return the parsed response body.
crates/solana-driver/tests/api.rs:168
↓ 3 callersMethodcancel
Cancel a pending settlement by sending a transaction to self with a slightly higher gas price than the existing one.
crates/driver/src/domain/mempools.rs:360
↓ 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:387
↓ 3 callersMethodchecked_mul_ratio_ceil
(&self, mul: &Self, div: &Self)
crates/number/src/u256_ext.rs:87
↓ 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:614
↓ 3 callersMethodcompetition
The competition that runs auctions for this solver engine.
crates/solana-driver/src/infra/api/mod.rs:103
↓ 3 callersFunctioncompetition_error
(err: &competition::Error)
crates/driver/src/infra/observe/mod.rs:438
↓ 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
(enable_buy_orders: bool)
crates/solana-solvers/src/dex/jupiter/mod.rs:174
↓ 3 callersFunctionconfig
()
crates/driver/src/infra/solver/mod.rs:588
↓ 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:853
↓ 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:584
↓ 3 callersFunctioncreate_order_tx
Verifies the run loop drains buffered updates and returns Ok when the sender drops. Event content is not asserted here: the persistence bodies are no-
crates/solana-indexer/src/indexer/decoder/tests.rs:345
↓ 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 callersFunctioncurrent_block_ws_stream
Creates a cloneable stream that yields the current block whenever it changes. Uses websocket subscriptions for real-time block updates. The stream is
crates/ethrpc/src/block_stream.rs:105
↓ 3 callersMethodcustom_prices
( &self, prices: &ClearingPrices, )
crates/driver/src/domain/competition/solution/trade.rs:92
↓ 3 callersFunctiondead_solver
A solver client pointing at a dead endpoint (no listener).
crates/solana-driver/tests/api.rs:108
↓ 3 callersFunctiondecimal_to_ether
Converts a `BigDecimal` amount in Ether units to wei.
crates/solvers/src/util/conv.rs:21
↓ 3 callersMethoddecode
( &self, tx: SubscribeUpdateTransactionInfo, slot: Slot, signature: Signature,
crates/solana-indexer/src/indexer/decoder.rs:205
↓ 3 callersFunctiondefault_config
()
crates/gas-price-estimation/src/configurable_alloy.rs:146
↓ 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:2300
↓ 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:1260
↓ 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
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1545
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/signatures/src/lib.rs:1094
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:1000
← previousnext →701–800 of 9,022, ranked by callers