Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,749 in github.com/cowprotocol/services
⨍
Functions
8,749
◇
Types & classes
3,170
↓ 6 callers
Function
u256_to_big_uint
(input: &U256)
crates/number/src/conversions.rs:66
↓ 6 callers
Method
uid
(&self, domain: &DomainSeparator, owner: Address)
crates/model/src/order.rs:263
↓ 6 callers
Function
update_settlement_auction
( ex: &mut PgConnection, block_number: i64, log_index: i64, auction_id: i64, )
crates/database/src/settlements.rs:50
↓ 6 callers
Function
v3_api
Builds a URL against the pool-indexer's Uniswap V3 API (all test fixtures index `mainnet`), so call sites don't repeat the route prefix by hand.
crates/e2e/tests/e2e/pool_indexer.rs:135
↓ 6 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:265
↓ 6 callers
Method
winners
All solutions that won the right to get executed.
crates/autopilot/src/domain/competition/winner_selection.rs:257
↓ 6 callers
Method
with_default_ethflow_order_data
(&mut self)
crates/refunder/src/traits.rs:130
↓ 6 callers
Method
with_order_status
(&mut self, status: RefundStatus)
crates/refunder/src/traits.rs:111
↓ 6 callers
Method
with_orders
(mut self, orders: impl IntoIterator<Item = Order>)
crates/simulator/src/simulation_builder.rs:169
↓ 5 callers
Method
addSolver
( data: &[u8], )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1522
↓ 5 callers
Method
address
Returns the [`eth::TokenAddress`] of the ERC20.
crates/driver/src/infra/blockchain/token.rs:22
↓ 5 callers
Method
append_to_execution_plan_internalizable
( &mut self, interaction: Arc<dyn Interaction>, internalizable: bool, )
crates/solver/src/settlement/settlement_encoder.rs:354
↓ 5 callers
Function
apply_haircut
The driver applies a haircut to the solver's solution after it is returned (see `Solutions::into_domain`). This reduces the user's effective buy amoun
crates/driver/src/infra/solver/dto/auction.rs:418
↓ 5 callers
Method
as_pool_ref
(&self)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:367
↓ 5 callers
Method
as_str
(self)
crates/solana-solvers/src/dex/jupiter/mod.rs:25
↓ 5 callers
Method
as_u8
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:56
↓ 5 callers
Method
at_block
(mut self, block: Block)
crates/simulator/src/simulation_builder.rs:213
↓ 5 callers
Function
big_int_to_u256
(input: &BigInt)
crates/number/src/conversions.rs:48
↓ 5 callers
Function
big_rational_to_u256
(ratio: &BigRational)
crates/number/src/conversions.rs:61
↓ 5 callers
Function
build_1271_validator
( signature_validator: MockSignatureValidating, order_simulator: Option<OrderSimulator>,
crates/shared/src/order_validation.rs:3196
↓ 5 callers
Function
build_account_keys
The transaction's full account list that instruction indices resolve against: static keys, then ALT-loaded writable addresses, then readonly, in that
crates/solana-indexer/src/indexer/decoder.rs:673
↓ 5 callers
Function
build_event
((block_number, log_index): (u64, usize))
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:140
↓ 5 callers
Method
buy_amount
The effective amount the user received after all fees. Settlement contract uses `ceil` division for buy amount calculation.
crates/driver/src/domain/competition/solution/trade.rs:82
↓ 5 callers
Function
bytes_to_order_uid
(bytes: &[u8])
crates/autopilot/src/database/events.rs:122
↓ 5 callers
Function
calculate_invariant
https://github.com/balancer-labs/balancer-v2-monorepo/blob/9eb7e44a4e9ebbadfe3c6242a086118298cadc9f/pkg/pool-stable-phantom/contracts/StableMath.sol#L
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:15
↓ 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
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
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
Function
deploy_builder
( __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2794
↓ 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
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:856
↓ 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
group_by_token_pair
( orders: impl Iterator<Item = OrderRecord>, )
crates/solver/src/liquidity/zeroex.rs:136
↓ 5 callers
Function
handle_for
Handle over a snapshot built by folding `frames` in order, as if every frame were quoting for `QUOTED_BLOCK`. Frames whose words carry no `QUOTED_AT`
crates/simulator/src/state_override_stream.rs:703
↓ 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
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
Function
pool
()
crates/solana-indexer/src/test_db.rs:5
↓ 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
Method
sell_amount
(self, sell_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:94
↓ 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
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
spawn
Spawns the listen loop as a task. It reconnects with capped exponential backoff and runs until the returned handle is aborted.
crates/autopilot-svm/src/infra/listen.rs:41
← previous
next →
401–500 of 8,749, ranked by callers