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
↓ 6 callers
Method
name
(&self)
crates/driver/src/infra/solver/mod.rs:294
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:260
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/permit2/src/lib.rs:516
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:479
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:1545
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:408
↓ 6 callers
Method
new_simulation_builder
(&self)
crates/simulator/src/simulation_builder.rs:120
↓ 6 callers
Method
nonce
(&self, web3: &Web3)
crates/e2e/src/setup/onchain_components/mod.rs:56
↓ 6 callers
Function
order
(kind: OrderKind, sell: (Address, u128), buy: (Address, u128))
crates/autopilot/src/domain/penalty_cap.rs:202
↓ 6 callers
Function
order_kind_into
(kind: OrderKind)
crates/shared/src/db_order_conversions.rs:190
↓ 6 callers
Method
out_amount
(&self, query: &PriceQuery)
crates/price-estimation/src/trade_finding/mod.rs:97
↓ 6 callers
Method
parameters_from_app_data
Parses the app data JSON and configures the builder accordingly: - Pre/post hooks are encoded as interactions via the [`HooksTrampoline`] - Flashloan/
crates/simulator/src/simulation_builder.rs:221
↓ 6 callers
Function
pubkey
(byte: u8)
crates/solana-driver/src/infra/solver/dto/solution.rs:241
↓ 6 callers
Function
publish_event
Enqueues the event to be sent to the event bus in a background task. For ad-hoc events, use [`publish`] instead.
crates/observe/src/event_bus/mod.rs:163
↓ 6 callers
Method
query
Performs the specified GraphQL query on the current subgraph.
crates/liquidity-sources/src/subgraph.rs:43
↓ 6 callers
Function
quote_request
A `/quote` request body for the given side.
crates/solana-driver/tests/api.rs:420
↓ 6 callers
Method
remaining
Returns the amount of time remaining to solve, or `None` if time's up.
crates/solvers/src/domain/auction.rs:93
↓ 6 callers
Method
round
Rounds the slippage to the specified number of decimal places.
crates/solvers/src/domain/dex/slippage.rs:90
↓ 6 callers
Method
shared_or_else
Returns an existing in flight future or creates and uses a new future from the specified closure.
crates/request-sharing/src/lib.rs:126
↓ 6 callers
Function
signature
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:310
↓ 6 callers
Method
simulate
( &self, tx: T, block: BlockNo, overrides: Option<StateOverride>, gene
crates/simulator/src/tenderly/mod.rs:67
↓ 6 callers
Method
solution
The solution encoded in this settlement.
crates/driver/src/domain/competition/solution/settlement.rs:253
↓ 6 callers
Method
solver
(&self)
crates/autopilot/src/domain/settlement/mod.rs:72
↓ 6 callers
Function
spawn_pamm_stream
Spawns a new background task that streams state override updates into the return [`SimulationOverrides`] instance. `blocks` is read to learn the time
crates/simulator/src/state_override_stream.rs:262
↓ 6 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:339
↓ 6 callers
Function
tracing_headers
()
crates/observe/src/tracing/distributed/headers.rs:9
↓ 6 callers
Function
trades
( ex: &'a mut PgConnection, owner_filter: Option<&'a Address>, order_uid_filter: Option<&'a OrderU
crates/database/src/trades.rs:31
↓ 6 callers
Function
u256_to_big_int
(input: &U256)
crates/number/src/conversions.rs:70
↓ 6 callers
Function
u256_to_big_uint
(input: &U256)
crates/number/src/conversions.rs:66
↓ 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:356
↓ 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:421
↓ 5 callers
Method
as_pool_ref
(&self)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:367
↓ 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:3214
↓ 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:600
↓ 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:765
↓ 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. `in_amount` is the qu
crates/price-estimation/src/competition/quote.rs:406
↓ 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:38
↓ 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:229
↓ 5 callers
Function
from_domain
Takes the order by reference so callers that still need the domain order afterwards don't have to deep-clone it just to convert it.
crates/autopilot/src/infra/persistence/dto/order.rs:54
↓ 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:71
↓ 5 callers
Method
get_applicable_volume_fee_factor
Determines the applicable volume fee factor for a token pair, considering same-token trade configuration, token bucket overrides and default fee facto
crates/shared/src/fee.rs:91
↓ 5 callers
Function
get_block_at_id
(provider: &AlloyProvider, id: BlockId)
crates/ethrpc/src/block_stream.rs:279
↓ 5 callers
Method
get_native_price
( &self, token: &Address, )
crates/e2e/src/setup/services.rs:588
↓ 5 callers
Method
get_token
Returns the address of the token with the given symbol.
crates/driver/src/tests/setup/blockchain.rs:863
↓ 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:84
↓ 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_inner
The height as a plain number.
crates/cow-solana-rpc/src/lib.rs:148
↓ 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:3190
↓ 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
← previous
next →
401–500 of 9,022, ranked by callers