Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
9,022 in github.com/cowprotocol/services
⨍
Functions
9,022
◇
Types & classes
3,241
↓ 4 callers
Function
store_order_events
( ex: &mut PgConnection, order_uids: impl IntoIterator<Item = domain::OrderUid>, label: OrderEvent
crates/autopilot/src/database/order_events.rs:32
↓ 4 callers
Method
stream
( &self, http_url: Url, alloy_provider: AlloyProvider, )
crates/shared/src/current_block.rs:42
↓ 4 callers
Method
supports_fast_path
(&self)
crates/price-estimation/src/trade_finding/mod.rs:79
↓ 4 callers
Method
surplus_capturing_jit_order_owners
( mut self, surplus_capturing_jit_order_owners: Vec<Address>, )
crates/driver/src/tests/setup/mod.rs:897
↓ 4 callers
Method
surplus_fee
(&self)
crates/driver/src/tests/setup/mod.rs:297
↓ 4 callers
Method
surplus_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 callers
Function
swap
()
crates/solana-solvers/src/dto/solution.rs:169
↓ 4 callers
Method
target
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 callers
Function
test_order_was_settled
(ethflow_order: &ExtendedEthFlowOrder, onchain: &OnchainComponents)
crates/e2e/tests/e2e/ethflow.rs:733
↓ 4 callers
Function
to_interaction
( pool: &liquidity::uniswap::v2::Pool, input: &liquidity::MaxInput, output: &liquidity::ExactOutpu
crates/driver/src/boundary/liquidity/uniswap/v2.rs:84
↓ 4 callers
Method
transaction
The calldata for this settlement.
crates/driver/src/domain/competition/solution/settlement.rs:229
↓ 4 callers
Method
try_add
`self + rhs`, `Overflow` when it does not fit.
crates/chain-types/src/lib.rs:61
↓ 4 callers
Function
tx_update
(slot: u64, sig: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:46
↓ 4 callers
Function
u256_to_big_rational
(input: &U256)
crates/number/src/conversions.rs:74
↓ 4 callers
Function
update
( ex: &mut PgConnection, contract: &str, last_indexed_block: i64, )
crates/database/src/last_indexed_blocks.rs:7
↓ 4 callers
Method
update_events
(&mut self)
crates/event-indexing/src/event_handler.rs:390
↓ 4 callers
Method
update_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 callers
Function
update_settlement_solver_and_gas
( ex: &mut PgConnection, block_number: i64, log_index: i64, solver: Address, solution_uid:
crates/database/src/settlements.rs:71
↓ 4 callers
Function
user_orders
( ex: &'a mut PgConnection, owner: &'a Address, offset: i64, limit: Option<i64>, )
crates/database/src/order_history.rs:9
↓ 4 callers
Function
weth_pool
A pool between "A" and "WETH".
crates/driver/src/tests/setup/mod.rs:774
↓ 4 callers
Method
with_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 callers
Method
withdraw
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2401
↓ 3 callers
Function
ab_adjusted_pool
(quote: LiquidityQuote)
crates/driver/src/tests/setup/mod.rs:674
↓ 3 callers
Function
ab_liquidity_quote
()
crates/driver/src/tests/setup/mod.rs:689
↓ 3 callers
Function
ad_order
An example order which sells token "A" for token "D".
crates/driver/src/tests/setup/mod.rs:710
↓ 3 callers
Function
ad_pool
A pool between tokens "A" and "D".
crates/driver/src/tests/setup/mod.rs:721
↓ 3 callers
Function
ad_solution
A solution solving the [`ad_order`].
crates/driver/src/tests/setup/mod.rs:731
↓ 3 callers
Method
address
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:59
↓ 3 callers
Method
address
Returns the address of the Safe.
crates/e2e/src/setup/onchain_components/safe.rs:145
↓ 3 callers
Function
aggregate3_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 callers
Method
all
All solutions including the ones that got filtered out.
crates/autopilot/src/domain/competition/winner_selection.rs:247
↓ 3 callers
Function
amm_to_pool
(amm: &ConstantProductOrder)
crates/solver/src/solver.rs:63
↓ 3 callers
Function
amm_to_weighted_pool
(amm: &WeightedProductOrder)
crates/solver/src/solver.rs:72
↓ 3 callers
Function
app_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 callers
Method
app_data
(self, app_data: AppData)
crates/driver/src/tests/setup/mod.rs:293
↓ 3 callers
Method
append_events
(&mut self, events: Vec<(T, alloy_rpc_types::Log)>)
crates/event-indexing/src/event_handler.rs:734
↓ 3 callers
Method
approval_override
( &self, request: ApprovalOverrideRequest, )
crates/balance-overrides/src/lib.rs:84
↓ 3 callers
Method
as_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 callers
Method
as_str
(self)
crates/database/src/order_events.rs:52
↓ 3 callers
Method
as_str
(&self)
crates/simulator/src/state_override_stream.rs:494
↓ 3 callers
Function
assemble_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 callers
Function
assert_rate_close
Asserts `computed_rate` is within a `tolerance` of `expected_rate`.
crates/price-estimation/src/native/eip4626.rs:293
↓ 3 callers
Method
atom
(self)
crates/number/src/units.rs:24
↓ 3 callers
Method
auction_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 callers
Method
available
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 callers
Method
banned
Returns the subset of `addresses` that are banned. Cache misses hit the configured remote sources.
crates/order-validation/src/banned/mod.rs:63
↓ 3 callers
Function
big_uint_to_u256
(input: &BigUint)
crates/number/src/conversions.rs:42
↓ 3 callers
Function
block_with_base_fee
(base_fee: u64)
crates/gas-price-estimation/src/configurable_alloy.rs:153
↓ 3 callers
Method
blocks
(&self, range: RangeInclusive<u64>)
crates/event-indexing/src/block_retriever.rs:49
↓ 3 callers
Method
boundary
( &self, blockchain: &Blockchain, signer: PrivateKeySigner, )
crates/driver/src/tests/setup/blockchain.rs:197
↓ 3 callers
Method
bsub
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/math.rs:20
↓ 3 callers
Method
build
(&self)
crates/driver/src/tests/boundary.rs:38
↓ 3 callers
Method
buy
The asset being bought, or [`eth::U256::one`] if this is a sell, to facilitate surplus.
crates/driver/src/domain/quote.rs:268
↓ 3 callers
Function
cached_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 callers
Method
call_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 callers
Method
call_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 callers
Method
call_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 callers
Method
call_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 callers
Method
call_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 callers
Method
call_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 callers
Method
call_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 callers
Method
call_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 callers
Method
call_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 callers
Function
call_solve
POST the standard solve request and return the parsed response body.
crates/solana-driver/tests/api.rs:168
↓ 3 callers
Method
cancel
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 callers
Function
cancel_order
Applies the needed DB modification to cancel a single order.
crates/orderbook/src/database/orders.rs:97
↓ 3 callers
Function
check_batching_many
Function to check batching of many tokens
crates/price-estimation/src/buffered.rs:387
↓ 3 callers
Method
checked_mul_ratio_ceil
(&self, mul: &Self, div: &Self)
crates/number/src/u256_ext.rs:87
↓ 3 callers
Method
clearing_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 callers
Method
competition
The competition that runs auctions for this solver engine.
crates/solana-driver/src/infra/api/mod.rs:103
↓ 3 callers
Function
competition_error
(err: &competition::Error)
crates/driver/src/infra/observe/mod.rs:438
↓ 3 callers
Method
complement
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:188
↓ 3 callers
Function
compute_absolute_tolerance
Computes the absolute tolerance amount from a relative factor.
crates/solvers/src/domain/dex/shared.rs:15
↓ 3 callers
Function
config
(enable_buy_orders: bool)
crates/solana-solvers/src/dex/jupiter/mod.rs:174
↓ 3 callers
Function
config
()
crates/driver/src/infra/solver/mod.rs:588
↓ 3 callers
Method
config
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 callers
Function
constant_a_18
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:91
↓ 3 callers
Function
constant_a_20
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:75
↓ 3 callers
Function
constant_x_18
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:67
↓ 3 callers
Function
constant_x_20
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:51
↓ 3 callers
Function
convert_onchain_order_placement
( order_placement: &ContractOrderPlacement, event_timestamp: i64, quote: Result<Quote, OnchainOrde
crates/autopilot/src/database/onchain_order_events/mod.rs:584
↓ 3 callers
Function
create_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 callers
Function
create_stable_pool_with
( tokens: Vec<Address>, balances: Vec<U256>, amplification_parameter: AmplificationPar
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:481
↓ 3 callers
Function
current_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 callers
Method
custom_prices
( &self, prices: &ClearingPrices, )
crates/driver/src/domain/competition/solution/trade.rs:92
↓ 3 callers
Function
dead_solver
A solver client pointing at a dead endpoint (no listener).
crates/solana-driver/tests/api.rs:108
↓ 3 callers
Function
decimal_to_ether
Converts a `BigDecimal` amount in Ether units to wei.
crates/solvers/src/util/conv.rs:21
↓ 3 callers
Method
decode
( &self, tx: SubscribeUpdateTransactionInfo, slot: Slot, signature: Signature,
crates/solana-indexer/src/indexer/decoder.rs:205
↓ 3 callers
Function
default_config
()
crates/gas-price-estimation/src/configurable_alloy.rs:146
↓ 3 callers
Function
default_past_blocks
()
crates/configs/src/gas_price_estimation.rs:9
↓ 3 callers
Function
default_reward_percentile
()
crates/configs/src/gas_price_estimation.rs:13
↓ 3 callers
Function
default_streaming_params
()
crates/shared/src/order_quoting.rs:2300
↓ 3 callers
Method
deploy_cow_weth_pool
( &self, cow_supply: U256, cow_amount: U256, weth_amount: U256, )
crates/e2e/src/setup/onchain_components/mod.rs:551
↓ 3 callers
Function
deploy_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 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1739
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/izeroex/src/lib.rs:8281
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1743
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1545
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/signatures/src/lib.rs:1094
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:1000
← previous
next →
701–800 of 9,022, ranked by callers