Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,486 in github.com/cowprotocol/services
⨍
Functions
8,486
◇
Types & classes
3,061
↓ 5 callers
Method
calculate_quote_stream
( &self, parameters: QuoteParameters, )
crates/shared/src/order_quoting.rs:724
↓ 5 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/uniswapv2router02/src/lib.rs:1641
↓ 5 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/pancakerouter/src/lib.rs:1447
↓ 5 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/testnetuniswapv2router02/src/lib.rs:1471
↓ 5 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/iuniswaplikerouter/src/lib.rs:1455
↓ 5 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/baoswaprouter/src/lib.rs:1447
↓ 5 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/honeyswaprouter/src/lib.rs:1447
↓ 5 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/permit2/src/lib.rs:613
↓ 5 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/balancerv3batchrouter/src/lib.rs:883
↓ 5 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/swaprrouter/src/lib.rs:1447
↓ 5 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/sushiswaprouter/src/lib.rs:1447
↓ 5 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/gnosissafe/src/lib.rs:260
↓ 5 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/gnosissafecompatibilityfallbackhandler/src/lib.rs:1345
↓ 5 callers
Function
clear_pool_indexer_tables
Truncates the indexer's tables between tests. The schema itself is provisioned by flyway (`migrations-pool-indexer`), so this just clears rows.
crates/e2e/tests/e2e/pool_indexer.rs:170
↓ 5 callers
Method
common
(&self)
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:32
↓ 5 callers
Function
competition_results
Runs all provided estimators and returns all ranked quotes best-first, or the highest-priority error if every estimator failed.
crates/price-estimation/src/competition/quote.rs:398
↓ 5 callers
Method
contains
(&self, address: &Address)
crates/shared/src/token_list.rs:100
↓ 5 callers
Function
create_limit_order
(maker_amount: U256, taker_amount: U256, fee_amount: U256)
crates/solvers/src/boundary/liquidity/limit_order.rs:58
↓ 5 callers
Method
created
(self, created: u32)
crates/driver/src/tests/setup/mod.rs:273
↓ 5 callers
Method
data
(&self)
crates/e2e/src/setup/solver/solution.rs:25
↓ 5 callers
Method
estimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/buffered.rs:87
↓ 5 callers
Method
estimates
( &self, mut query: Arc<Query>, )
crates/price-estimation/src/competition/quote.rs:35
↓ 5 callers
Function
exp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:30
↓ 5 callers
Method
fee
(&self)
crates/shared/src/fee.rs:37
↓ 5 callers
Method
fee_handler
(mut self, fee_handler: FeeHandler)
crates/driver/src/tests/setup/mod.rs:429
↓ 5 callers
Method
fetch_native_prices
( &'_ self, tokens: HashSet<Token>, timeout: Duration, )
crates/price-estimation/src/native/coingecko.rs:227
↓ 5 callers
Method
filter
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:26
↓ 5 callers
Method
filter
(&self)
crates/autopilot/src/boundary/events/settlement.rs:30
↓ 5 callers
Method
get
()
crates/solver/src/liquidity_collector.rs:139
↓ 5 callers
Method
get
()
crates/request-sharing/src/lib.rs:177
↓ 5 callers
Method
get
()
crates/orderbook/src/orderbook.rs:72
↓ 5 callers
Method
get_auction
Fetches the current auction. Don't use this as a synchronization mechanism in tests because that is prone to race conditions which would make tests fl
crates/e2e/src/setup/services.rs:448
↓ 5 callers
Function
get_block_at_id
(provider: &AlloyProvider, id: BlockId)
crates/ethrpc/src/block_stream.rs:275
↓ 5 callers
Method
get_native_price
( &self, token: &Address, )
crates/e2e/src/setup/services.rs:587
↓ 5 callers
Method
get_token
Returns the address of the token with the given symbol.
crates/driver/src/tests/setup/blockchain.rs:852
↓ 5 callers
Function
get_useful_orders
Get the `orders_per_type` best priced and biggest volume orders.
crates/solver/src/liquidity/zeroex.rs:152
↓ 5 callers
Function
git_version
()
crates/observe/src/version.rs:3
↓ 5 callers
Function
group_by_token_pair
( orders: impl Iterator<Item = OrderRecord>, )
crates/solver/src/liquidity/zeroex.rs:136
↓ 5 callers
Method
id
[`None`] if this auction applies to a quote. See [`crate::domain::quote`].
crates/driver/src/domain/competition/auction.rs:83
↓ 5 callers
Function
insert_onchain_invalidation
( ex: &mut PgConnection, index: &EventIndex, order_uid: &OrderUid, )
crates/database/src/onchain_invalidations.rs:56
↓ 5 callers
Function
insert_or_overwrite_orders
( ex: &mut PgTransaction<'_>, events: &[EthOrderPlacement], )
crates/database/src/ethflow_orders.rs:15
↓ 5 callers
Function
insert_refund_tx_hash
( ex: &mut PgTransaction<'_>, refund: &Refund, )
crates/database/src/ethflow_orders.rs:110
↓ 5 callers
Function
insert_settlement
( ex: &mut PgConnection, index: &EventIndex, event: &Settlement, )
crates/database/src/events.rs:134
↓ 5 callers
Method
interactions
(&self)
crates/price-estimation/src/trade_finding/mod.rs:112
↓ 5 callers
Method
into_vec
(self)
crates/price-estimation/src/lib.rs:261
↓ 5 callers
Method
is_empty
(&self)
crates/ethrpc/src/alloy/buffering.rs:291
↓ 5 callers
Method
is_node_error
(&self)
crates/ethrpc/src/alloy/errors.rs:32
↓ 5 callers
Method
limit_prices_json
The fast-path limit prices for the single quoted order.
crates/driver/src/tests/setup/mod.rs:1220
↓ 5 callers
Function
make_1271_order_creation
()
crates/shared/src/order_validation.rs:3172
↓ 5 callers
Method
matom
Converts this value from Mwei to wei (multiplies by 1e6).
crates/number/src/units.rs:8
↓ 5 callers
Method
metadata
(&self)
crates/liquidity-sources/src/zeroex.rs:213
↓ 5 callers
Method
mul_down
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:149
↓ 5 callers
Method
mul_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:155
↓ 5 callers
Method
name
(&self)
crates/order-validation/src/banned/hermod.rs:98
↓ 5 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/izeroex/src/lib.rs:606
↓ 5 callers
Function
next_block
Awaits and returns the next block that will be pushed into the stream.
crates/ethrpc/src/block_stream.rs:365
↓ 5 callers
Method
order
Get a reference to the traded order.
crates/solvers/src/domain/solution.rs:369
↓ 5 callers
Method
order_json
The /solve-shaped JSON for the single quoted order.
crates/driver/src/tests/setup/mod.rs:1200
↓ 5 callers
Method
pre_interactions
(&self)
crates/price-estimation/src/trade_finding/mod.rs:119
↓ 5 callers
Method
prices_json
Native prices for the single quoted order's tokens.
crates/driver/src/tests/setup/mod.rs:1210
↓ 5 callers
Method
processing_stage_timer
(&self, stage: &str)
crates/driver/src/infra/observe/metrics.rs:73
↓ 5 callers
Method
provide_sufficient_buy_tokens
Instructs the builder to override the settlement contract's buy-token balances so it can pay out every order. The exact amounts are derived from the c
crates/simulator/src/simulation_builder.rs:290
↓ 5 callers
Method
provider
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:208
↓ 5 callers
Method
provider
(&self)
crates/simulator/src/simulation_builder.rs:91
↓ 5 callers
Function
quote_metadata
Returns quote.
crates/e2e/tests/e2e/database.rs:24
↓ 5 callers
Function
read_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:224
↓ 5 callers
Function
read_quote
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:442
↓ 5 callers
Method
reduce
Returns a new deadline with the specified duration subtracted.
crates/solvers/src/domain/auction.rs:101
↓ 5 callers
Function
report_with_revert
(events: Vec<Event>)
crates/shared/src/order_creation_simulation.rs:325
↓ 5 callers
Function
run
(test_case: TestCase)
crates/driver/src/tests/cases/haircut_pre_processing.rs:61
↓ 5 callers
Function
seed_checkpoint
(db: &PgPool, factory: Address, block: u64)
crates/e2e/tests/e2e/pool_indexer.rs:180
↓ 5 callers
Method
sell_amount
(self, sell_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:94
↓ 5 callers
Function
serve_metrics
Serves metrics on a dedicated server at the given address. Spawns a background task and returns its handle.
crates/observe/src/metrics.rs:100
↓ 5 callers
Method
settle_with_order
Call /settle with the fast-path bundle: the real `order`, its `limit_prices`, and native `prices`.
crates/driver/src/tests/setup/mod.rs:1230
↓ 5 callers
Method
settlement_address
Ensure that the settlement contract is deployed to a specific address.
crates/driver/src/tests/setup/mod.rs:870
↓ 5 callers
Function
share_common_pool_state
An internal utility method for sharing the success value for an `anyhow::Result`. Typically, this is pretty trivial using `FutureExt::shared`. Howeve
crates/liquidity-sources/src/balancer_v2/pools/common.rs:326
↓ 5 callers
Function
signature
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:316
↓ 5 callers
Method
solutions
(&self)
crates/driver/src/tests/setup/mod.rs:1366
↓ 5 callers
Method
solver
(&self)
crates/driver/src/infra/api/mod.rs:195
↓ 5 callers
Method
solver
(self, solver: eth::Address)
crates/driver/src/tests/setup/mod.rs:1769
↓ 5 callers
Method
solver
(&self)
crates/price-estimation/src/trade_finding/mod.rs:72
↓ 5 callers
Method
solver
(&self)
crates/autopilot/src/domain/settlement/mod.rs:72
↓ 5 callers
Function
spawn_heap_dump_handler
Spawns a new async task that listens for connections to a UNIX socket at "/tmp/heap_dump_<process_name>.sock". When "dump" command is sent, it generat
crates/observe/src/heap_dump_handler.rs:32
↓ 5 callers
Function
split_range
Splits range into two disjuctive consecutive ranges, second one containing last (up to) MAX_BLOCKS_QUERIED elements, first one containing the rest (if
crates/event-indexing/src/event_handler.rs:620
↓ 5 callers
Method
store_quote
(&self, competition: QuoteCompetition)
crates/shared/src/order_quoting.rs:651
↓ 5 callers
Method
sub
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:145
↓ 5 callers
Function
submit_order
( ethflow_order: &ExtendedEthFlowOrder, user: Address, contracts: &Contracts, ethflow_contract
crates/e2e/tests/e2e/ethflow.rs:652
↓ 5 callers
Function
test_keys
(keys: impl IntoIterator<Item = usize>)
crates/liquidity-sources/src/recent_block_cache.rs:538
↓ 5 callers
Method
to_final_quote
Produces the final `Quote` for this competition. Applies additional-cost adjustments, and scales sell/buy amounts when the caller asked for a `SellAmo
crates/shared/src/order_quoting.rs:310
↓ 5 callers
Method
to_quote_data
Flattens the winning quote and metadata from the competition in a `QuoteData`.
crates/shared/src/order_quoting.rs:284
↓ 5 callers
Method
to_signature
(self, scheme: EcdsaSigningScheme)
crates/model/src/signature.rs:300
↓ 5 callers
Method
trades
Trades settled by this solution.
crates/driver/src/domain/competition/solution/mod.rs:245
↓ 5 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:109
↓ 5 callers
Method
uid
UID of the order that was settled in this trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:28
↓ 5 callers
Method
upscale
Scales the input token amount to the value that is used by the Balancer contract to execute math operations.
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:53
↓ 5 callers
Method
web3
Returns a reference to the underlying web3 client.
crates/driver/src/infra/blockchain/mod.rs:71
↓ 5 callers
Method
web3
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:636
↓ 5 callers
Method
with_class
(mut self, class: OrderClass)
crates/model/src/order.rs:184
↓ 5 callers
Method
with_early_return
Enables the estimator to return after it got the configured number of successful results instead of having to wait for all estimators to return a resu
crates/price-estimation/src/competition/mod.rs:69
↓ 5 callers
Method
with_env_filter
(mut self, env_filter: &str)
crates/observe/src/config.rs:37
← previous
next →
401–500 of 8,486, ranked by callers