Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,749 in github.com/cowprotocol/services
⨍
Functions
10,749
◇
Types & classes
3,488
↓ 7 callers
Function
spawn_server_with_policy
( solvers: Vec<Solver>, mocks: impl Into<MocksMap>, priority_fee: PriorityFeePolicy, )
crates/solana-driver/tests/api.rs:158
↓ 7 callers
Method
split_sell_balances
Hand each sell token account's balance out to its owner's orders selling from it, in auction order, and drop the orders it runs out on. Each solver's
crates/solana-driver/src/domain/auction.rs:213
↓ 7 callers
Function
sponsor
A sponsor over `mocks` with the given displaced creation cap. Each of `failures` fails one request with its transaction error first.
crates/autopilot-svm/src/infra/sponsor.rs:431
↓ 7 callers
Method
start
Start a new proxy server with automatic failover between backends # Panics Panics if `backends` is empty. At least one backend URL is required.
crates/e2e/src/setup/proxy.rs:76
↓ 7 callers
Method
state_override
( &self, holder: &Address, amount: &U256, )
crates/balance-overrides/src/balance/mod.rs:141
↓ 7 callers
Method
to_f64_lossy
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:102
↓ 7 callers
Function
trades_by_owner
Trades filtered by `owner`. "Owner" is spread across three tables depending on the order type, so we gather candidate `(block_number, log_index)` pai
crates/database/src/trades.rs:116
↓ 7 callers
Method
try_add
`self + rhs`, `Overflow` when it does not fit.
crates/chain-types/src/lib.rs:61
↓ 7 callers
Method
with_metric_label
Clones self and returns an instance that captures metrics extended with the provided label.
crates/driver/src/infra/blockchain/mod.rs:174
↓ 7 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:250
↓ 7 callers
Method
with_signature
(mut self, owner: Address, signature: Signature)
crates/simulator/src/simulation_builder.rs:667
↓ 7 callers
Function
wrapped_native_token
(chain: Chain)
crates/autopilot/src/domain/settlement/mod.rs:392
↓ 6 callers
Method
add
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:140
↓ 6 callers
Method
address
Returns the [`eth::TokenAddress`] of the ERC20.
crates/driver/src/infra/blockchain/token.rs:22
↓ 6 callers
Function
adjust_quote_to_order_limits
(order: Order, quote: Quote)
crates/driver/src/domain/competition/solution/fee.rs:198
↓ 6 callers
Function
app_data
(document: &str)
crates/orderbook/src/fee_engine.rs:424
↓ 6 callers
Function
append_events
For a given checkpoint, append events to get a new checkpoint
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:499
↓ 6 callers
Function
apply_volume_fee
Applies a single volume fee to `(sell, buy)` for the given order kind using the amount on the "volume side" of the trade as the fee base: - Sell orde
crates/shared/src/fee.rs:161
↓ 6 callers
Function
approve
(allowance: &Allowance)
crates/driver/src/domain/competition/solution/encoding.rs:321
↓ 6 callers
Function
assert_orders_by_contract
( result: &HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, contract: Address, expected_
crates/refunder/src/refund_service.rs:312
↓ 6 callers
Function
ata
The owner's associated token account for `mint` under the SPL Token program.
crates/solana-orderbook/tests/api.rs:1851
↓ 6 callers
Method
auction_fees
The fee policies of an order in an auction.
crates/autopilot/src/fee_engine.rs:106
↓ 6 callers
Method
balance_override
( &self, request: BalanceOverrideRequest, )
crates/balance-overrides/src/lib.rs:68
↓ 6 callers
Function
big_decimal_to_big_rational
(value: &BigDecimal)
crates/number/src/conversions.rs:28
↓ 6 callers
Function
blockchain
Answers the settlement's two `getMultipleAccounts` lookups in order: `mints` for the mint accounts, then `accounts` for the buffer PDAs, payer ATAs an
crates/solana-driver/src/domain/settlement.rs:1186
↓ 6 callers
Function
build_1271_validator
( signature_validator: MockSignatureValidating, order_simulator: Option<OrderSimulator>,
crates/shared/src/order_validation.rs:3302
↓ 6 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:733
↓ 6 callers
Function
bundle_json
A bundle answer whose creation leg passes and whose settlement leg is `settlement`.
crates/solana-orderbook/tests/api.rs:869
↓ 6 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
↓ 6 callers
Function
bytes_to_addr
(b: Vec<u8>)
crates/pool-indexer/src/db/uniswap_v3.rs:12
↓ 6 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/uniswapv3quoterv2/src/lib.rs:691
↓ 6 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/gpv2allowlistauthentication/src/lib.rs:1974
↓ 6 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/erc20mintable/src/lib.rs:2263
↓ 6 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/nonstandarderc20balances/src/lib.rs:1563
↓ 6 callers
Method
canonicalize_token_support
Resolves the configured token support into addresses, expanding every key that names a `[token-groups]` entry. Errors on a key that is neither an addr
crates/driver/src/infra/config/file/mod.rs:1036
↓ 6 callers
Function
deploy_univ3
Deploy mock V3 contracts and set up a pool with liquidity.
crates/e2e/tests/e2e/pool_indexer.rs:354
↓ 6 callers
Method
detect
Returns the cached detection result for `(token, holder)`, running detection if not yet cached.
crates/balance-overrides/src/balance/mod.rs:329
↓ 6 callers
Method
div_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:175
↓ 6 callers
Method
encode
Encode the solution into a [`Settlement`], which can be used to execute the solution onchain.
crates/driver/src/domain/competition/solution/mod.rs:550
↓ 6 callers
Method
estimate
The priority fee for a transaction given the fees recently paid over its writable accounts and its compute unit limit, or the fee it would pay when th
crates/solana-driver/src/domain/priority_fee.rs:110
↓ 6 callers
Method
extensions
(&self)
crates/autopilot/src/run_loop.rs:630
↓ 6 callers
Method
fee
(&self)
crates/shared/src/fee.rs:50
↓ 6 callers
Function
fee_trade
A trade filling the order with the given uid and taking `protocol_fee`.
crates/solana-driver/src/domain/settlement.rs:1131
↓ 6 callers
Method
fetch
Fetches liquidity for the specified auction.
crates/driver/src/boundary/liquidity/mod.rs:133
↓ 6 callers
Method
from_solver
(mut self, solver: Solver)
crates/simulator/src/simulation_builder.rs:208
↓ 6 callers
Method
get
()
crates/price-estimation/src/native/coingecko.rs:308
↓ 6 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:103
↓ 6 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:461
↓ 6 callers
Function
get_confirmed_transaction
( account: Address, web3: &Web3, block_hash_stream: PollerStream<Vec<B256>>, )
crates/e2e/tests/e2e/submission.rs:1006
↓ 6 callers
Method
get_latest_solver_competition
( &self, )
crates/e2e/src/setup/services.rs:499
↓ 6 callers
Function
get_pending_tx
(account: Address, web3: &Web3)
crates/e2e/tests/e2e/submission.rs:997
↓ 6 callers
Function
get_quote
( services: &Services<'_>, sell_token: Address, buy_token: Address, kind: OrderKind, amoun
crates/e2e/tests/e2e/protocol_fee.rs:668
↓ 6 callers
Method
hash
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:993
↓ 6 callers
Function
init_tracing
(env_filter: &str)
crates/observe/src/tracing/distributed/request_id.rs:128
↓ 6 callers
Function
insert_or_overwrite_ethflow_order
( ex: &mut PgTransaction<'_>, event: &EthOrderPlacement, )
crates/database/src/ethflow_orders.rs:26
↓ 6 callers
Method
is_empty
(&self)
crates/ethrpc/src/alloy/buffering.rs:312
↓ 6 callers
Method
is_empty
(&self)
crates/driver/src/domain/competition/mod.rs:1077
↓ 6 callers
Function
is_order_outside_market_price
Checks whether or not an order's limit price is outside the market price specified by the quote.
crates/shared/src/order_validation.rs:1300
↓ 6 callers
Method
limit_prices_json
The fast-path limit prices for the single quoted order.
crates/driver/src/tests/setup/mod.rs:1215
↓ 6 callers
Function
make_log
(address: Address, block: u64, event: impl SolEvent)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1147
↓ 6 callers
Function
mapping_slot_hash
`keccak256(pad32(holder) ++ map_slot)` — the storage slot of `mapping(address => _)` entries in Solidity.
crates/balance-overrides/src/detector.rs:91
↓ 6 callers
Function
metrics
()
crates/autopilot-svm/src/infra/prices.rs:855
↓ 6 callers
Method
name
The human-readable name of this solver, for logs and metrics.
crates/solana-driver/src/infra/solver/mod.rs:43
↓ 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:125
↓ 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
The order a quote for `sell -> buy` describes.
crates/orderbook/src/fee_engine.rs:431
↓ 6 callers
Method
order_json
The /solve-shaped JSON for the single quoted order.
crates/driver/src/tests/setup/mod.rs:1205
↓ 6 callers
Function
order_simulator
(sim: MockOrderSimulating)
crates/shared/src/order_validation.rs:3294
↓ 6 callers
Method
out_amount
(&self, query: &PriceQuery)
crates/price-estimation/src/trade_finding/mod.rs:117
↓ 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:226
↓ 6 callers
Function
policy
(percentile: u8)
crates/solana-driver/src/domain/priority_fee.rs:188
↓ 6 callers
Method
post
(&self, url: Url, body: &Request)
crates/autopilot-svm/src/infra/driver/mod.rs:145
↓ 6 callers
Method
provider
(&self)
crates/simulator/src/simulation_builder.rs:91
↓ 6 callers
Function
pubkey
(byte: u8)
crates/solana-driver/src/domain/execution_cost.rs:221
↓ 6 callers
Function
pubkey
(byte: u8)
crates/solana-driver/tests/api.rs:45
↓ 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
put_app_data
( &self, app_data: Option<AppDataHash>, full_app_data: &str, )
crates/e2e/src/setup/services.rs:755
↓ 6 callers
Method
query
Performs the specified GraphQL query on the current subgraph.
crates/liquidity-sources/src/subgraph.rs:43
↓ 6 callers
Function
read_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:217
↓ 6 callers
Function
read_quotes
( ex: &mut sqlx::PgConnection, order_ids: &[OrderUid], )
crates/database/src/orders.rs:496
↓ 6 callers
Method
round
Rounds the slippage to the specified number of decimal places.
crates/solvers/src/domain/dex/slippage.rs:90
↓ 6 callers
Function
sample_app_data
App data with every field set, for the full sample order.
crates/fee-engine/src/rules.rs:409
↓ 6 callers
Function
sample_auction_dto
()
crates/solana-driver/src/infra/solver/dto/solution.rs:263
↓ 6 callers
Function
scripted_loop
A loop that runs the scripted cycles. Its liveness probe fails until the loop records an auction, and its startup probe fails until the first successf
crates/autopilot-svm/src/run_loop.rs:475
↓ 6 callers
Function
seed
(pool: &PgPool, uid: [u8; 32], cancelled: bool)
crates/solana-orderbook/src/infra/db.rs:677
↓ 6 callers
Method
send_transaction
Send a versioned transaction without waiting for it to land.
crates/cow-solana-rpc/src/lib.rs:430
↓ 6 callers
Method
settle_with_order
Call `/settle_fast_path` for the cached quote, with the real `order` and its `limit_prices`.
crates/driver/src/tests/setup/mod.rs:1225
↓ 6 callers
Function
settled_json
A passing settlement leg: the watched accounts are the order, recording the buy amount received, the sell buffer and the buy buffer, at `pre` before a
crates/solana-orderbook/tests/api.rs:900
↓ 6 callers
Function
settling_driver_answer
A driver answer for the `quote_body` sell, settling it for `buy_amount` with the unsigned settlement transaction `signers` sign, the first as the fee
crates/solana-orderbook/tests/api.rs:808
↓ 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
Method
simulate
( &self, tx: T, block: BlockNo, overrides: Option<StateOverride>, gene
crates/simulator/src/tenderly/mod.rs:67
↓ 6 callers
Method
solver
(&self)
crates/driver/src/infra/api/mod.rs:217
↓ 6 callers
Function
spawn
(prices: NativePrices)
crates/autopilot-svm/src/infra/api.rs:97
↓ 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:318
← previous
next →
501–600 of 10,749, ranked by callers