Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,522 in github.com/cowprotocol/services
⨍
Functions
8,522
◇
Types & classes
3,082
↓ 4 callers
Method
reference_price
(&self, token: ð::TokenAddress)
crates/solvers/src/domain/auction.rs:30
↓ 4 callers
Function
refundable_orders
( ex: &mut PgConnection, since_valid_to: i64, min_validity_duration: i64, min_price_deviation:
crates/database/src/ethflow_orders.rs:130
↓ 4 callers
Method
request
Prepares a request builder which already has additional headers set.
crates/solvers/src/infra/dex/mod.rs:75
↓ 4 callers
Method
round
Rounds the slippage to the specified number of decimal places.
crates/solvers/src/domain/dex/slippage.rs:90
↓ 4 callers
Method
run_maintenance_for_blocks
( mut self, blocks: impl Stream<Item = BlockInfo>, )
crates/event-indexing/src/maintenance.rs:26
↓ 4 callers
Function
save
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:248
↓ 4 callers
Function
sell_token_source_into
(source: SellTokenSource)
crates/shared/src/db_order_conversions.rs:244
↓ 4 callers
Function
serve
(listen_addr: SocketAddr, backends: Vec<Url>, state: ProxyState)
crates/e2e/src/setup/proxy.rs:119
↓ 4 callers
Function
setup_native_price_mock
( native_price_estimator: &mut MockNativePriceEstimating, sell_token: Address, buy_tok
crates/shared/src/order_quoting.rs:2040
↓ 4 callers
Function
setup_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 callers
Function
signing_scheme_into
(scheme: SigningScheme)
crates/shared/src/db_order_conversions.rs:274
↓ 4 callers
Method
solve_with_solver
(&self, solver: &str)
crates/driver/src/tests/setup/mod.rs:1096
↓ 4 callers
Function
start
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 callers
Function
start_driver_with_config_override
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, quote_using
crates/e2e/src/setup/colocation.rs:150
↓ 4 callers
Method
stream
( &self, http_url: Url, alloy_provider: AlloyProvider, )
crates/shared/src/current_block.rs:42
↓ 4 callers
Method
surplus
Returns the dynamic component for the fee.
crates/solvers/src/domain/solution.rs:412
↓ 4 callers
Method
surplus_capturing_jit_order_owners
( mut self, surplus_capturing_jit_order_owners: Vec<Address>, )
crates/driver/src/tests/setup/mod.rs:886
↓ 4 callers
Method
surplus_fee
(&self)
crates/driver/src/tests/setup/mod.rs:297
↓ 4 callers
Function
test_order_was_settled
(ethflow_order: &ExtendedEthFlowOrder, onchain: &OnchainComponents)
crates/e2e/tests/e2e/ethflow.rs:730
↓ 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:224
↓ 4 callers
Function
tx_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 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
Method
uid
(&self, domain: &DomainSeparator, owner: Address)
crates/model/src/order.rs:263
↓ 4 callers
Method
update_events
(&mut self)
crates/event-indexing/src/event_handler.rs:388
↓ 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:99
↓ 4 callers
Method
update_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 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
Method
validate
(&self)
crates/driver/src/infra/solver/mod.rs:225
↓ 4 callers
Function
wait_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 callers
Function
weth_pool
A pool between "A" and "WETH".
crates/driver/src/tests/setup/mod.rs:763
↓ 4 callers
Function
with_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 callers
Method
withdraw
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2401
↓ 4 callers
Method
write
(&mut self, data: &[u8])
crates/driver/src/infra/solver/streaming/mod.rs:124
↓ 3 callers
Function
ab_adjusted_pool
(quote: LiquidityQuote)
crates/driver/src/tests/setup/mod.rs:663
↓ 3 callers
Function
ab_liquidity_quote
()
crates/driver/src/tests/setup/mod.rs:678
↓ 3 callers
Function
ad_order
An example order which sells token "A" for token "D".
crates/driver/src/tests/setup/mod.rs:699
↓ 3 callers
Function
ad_pool
A pool between tokens "A" and "D".
crates/driver/src/tests/setup/mod.rs:710
↓ 3 callers
Function
ad_solution
A solution solving the [`ad_order`].
crates/driver/src/tests/setup/mod.rs:720
↓ 3 callers
Function
add_settlement
Testing Trades with settlements
crates/database/src/trades.rs:528
↓ 3 callers
Function
add_trade
( ex: &mut PgTransaction<'_>, owner: Address, order_uid: OrderUid, event_index
crates/database/src/trades.rs:221
↓ 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
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:308
↓ 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:724
↓ 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
Function
assemble_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 callers
Function
assert_rate_close
Asserts `computed_rate` is within a `tolerance` of `expected_rate`.
crates/price-estimation/src/native/eip4626.rs:266
↓ 3 callers
Method
atom
(self)
crates/number/src/units.rs:24
↓ 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:168
↓ 3 callers
Method
balance
(self, balance: eth::U256)
crates/driver/src/tests/setup/mod.rs:422
↓ 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:151
↓ 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:196
↓ 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:241
↓ 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/cowammlegacyhelper/src/lib.rs:357
↓ 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
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:385
↓ 3 callers
Method
clearing_price
Clearing price for the given token.
crates/driver/src/domain/competition/solution/mod.rs:551
↓ 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:514
↓ 3 callers
Function
competition_error
(err: &competition::Error)
crates/driver/src/infra/observe/mod.rs:435
↓ 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
()
crates/driver/src/infra/solver/mod.rs:587
↓ 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:842
↓ 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:583
↓ 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
Method
custom_prices
( &self, prices: &ClearingPrices, )
crates/driver/src/domain/competition/solution/trade.rs:92
↓ 3 callers
Function
decimal_to_ether
Converts a `BigDecimal` amount in Ether units to wei.
crates/solvers/src/util/conv.rs:21
↓ 3 callers
Function
default_config
()
crates/gas-price-estimation/src/configurable_alloy.rs:144
↓ 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:2024
↓ 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:1259
↓ 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
← previous
next →
601–700 of 8,522, ranked by callers