Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,747 in github.com/cowprotocol/services
⨍
Functions
10,747
◇
Types & classes
3,488
↓ 3 callers
Function
receivable_or_creatable
Whether the settlement's payout of `mint` lands in the token account at `account`, read from the chain as `found`: the account receives the mint, or t
crates/solana-token/src/lib.rs:277
↓ 3 callers
Function
receivable_token_account
Whether the settlement's plain `Transfer` of `mint` lands in the token account at `account`: initialized, unfrozen, holding `mint`, and not set to ref
crates/solana-token/src/lib.rs:260
↓ 3 callers
Method
receiver
(self, receiver: eth::Receiver)
crates/driver/src/tests/setup/mod.rs:288
↓ 3 callers
Method
recent_prioritization_fees
The prioritization fees recently paid by transactions locking `addresses` as writable, one entry per recent slot.
crates/solana-driver/src/infra/blockchain/mod.rs:164
↓ 3 callers
Function
record_dropped
(reason: DropReason)
crates/observe/src/event_bus/mod.rs:233
↓ 3 callers
Method
recover_owner
Opposite of `encode_for_settlement`. Given the encoded signature returns the owner.
crates/model/src/signature.rs:164
↓ 3 callers
Method
reduce
Returns a new deadline with the specified duration subtracted.
crates/solvers/src/domain/auction.rs:93
↓ 3 callers
Method
reduce_score
Reduce the solution score by adding additional meaningless calldata.
crates/driver/src/tests/setup/mod.rs:571
↓ 3 callers
Method
reference_scores
Reference scores for each winning solver, used to compute rewards.
crates/autopilot/src/domain/competition/winner_selection.rs:266
↓ 3 callers
Method
relative
Returns the slippage for the specified token amount.
crates/solvers/src/domain/dex/slippage.rs:30
↓ 3 callers
Method
relevant_pairs
All pool token pairs that could be used along a path candidate for these token pairs.
crates/solvers/src/boundary/routing.rs:142
↓ 3 callers
Method
remaining
The amounts still open to fill: the order-side target less `executed`, the other leg scaled in proportion. TODO: duplicate of the driver's `Order::re
crates/autopilot-svm/src/domain/auction.rs:81
↓ 3 callers
Method
remove_events_newer_than_block
Removes all events from the specified block, including specified block.
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:78
↓ 3 callers
Method
remove_events_older_than_block
Removes all events up to the specified block, excluding the specified block.
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:73
↓ 3 callers
Method
rent
(&self, order: &Order)
crates/solana-driver/src/domain/execution_cost.rs:161
↓ 3 callers
Method
replay
One replay pass: retry the parked dead letters. Work that fails again stays parked for the next pass.
crates/solana-indexer/src/indexer/decoder/replay.rs:20
↓ 3 callers
Function
replayer
A decoder without a stream over the given mocks.
crates/solana-indexer/src/indexer/decoder/tests.rs:1273
↓ 3 callers
Function
reply
Build an error response.
crates/solana-orderbook/src/infra/api/error.rs:20
↓ 3 callers
Function
report_comparison
Counts one comparison of `check`. A disagreement is also logged, grouped with the others of its kind once a second.
crates/fee-engine/src/report.rs:149
↓ 3 callers
Function
request_id
(headers: &HeaderMap<HeaderValue>)
crates/observe/src/tracing/distributed/request_id.rs:36
↓ 3 callers
Function
request_with_policies
(policies: serde_json::Value)
crates/solana-driver/src/infra/api/routes/solve/dto/solve_request.rs:304
↓ 3 callers
Function
reset_comparison_counters
Publishes the comparison counters of `checks` at zero, so that the first mismatch of a check shows as an increase.
crates/fee-engine/src/report.rs:136
↓ 3 callers
Function
resolve
The document an `app_data` form names, checked the EVM orderbook's way: a document must hash to the `appDataHash` named with it, a hash alone must hav
crates/solana-orderbook/src/infra/api/routes/app_data/mod.rs:119
↓ 3 callers
Function
restamp
Moves the lanes quoted for `stamp` into the simulated block by rewriting their stamp to `timestamp`. Only words carrying `stamp` are rewritten. A lan
crates/simulator/src/state_override_stream.rs:219
↓ 3 callers
Function
restamp_word
Rewrites every field of `word` holding `stamp` to `timestamp`, in the unit and at the offset the venue keeps it. Words not carrying `stamp` are left u
crates/simulator/src/state_override_stream.rs:122
↓ 3 callers
Function
revert_message
Extracts the most relevant revert message from the call by preferring `revert_reason` (failed SC assertion) over `error` (EVM error).
crates/simulator/src/report.rs:207
↓ 3 callers
Method
rpc_args
(mut self, rpc_args: Vec<String>)
crates/driver/src/tests/setup/mod.rs:879
↓ 3 callers
Method
run
Per-factory live-indexing loop. Backfill tasks live at the network level (see `run_network_indexer`).
crates/pool-indexer/src/indexer/uniswap_v3.rs:129
↓ 3 callers
Method
run
Starts the server and returns the assigned port number.
crates/e2e/src/api/zeroex.rs:36
↓ 3 callers
Method
run_forever
Runs cycles until `shutdown` is cancelled, then releases the leader lock. The cycle in flight when the signal arrives runs to its end. With a lock, a
crates/autopilot-svm/src/run_loop.rs:211
↓ 3 callers
Function
sample_intent
The intent behind [`create_order_parts`] and the cancellation test.
crates/solana-indexer/src/indexer/decoder/tests.rs:397
↓ 3 callers
Method
sanitized_competition
Builds a [`CompetitionEstimator`] over the given estimators, with each one wrapped in its own sanitizer. This per-estimator shape lets the single comp
crates/price-estimation/src/factory.rs:375
↓ 3 callers
Method
saturating_add
(self, v: Self)
crates/autopilot/src/domain/competition/mod.rs:93
↓ 3 callers
Method
score
Score defined as (surplus + protocol fees) first converted to buy amounts and then converted to the native token. [CIP-38](https://forum.cow.fi/t/cip
crates/driver/src/domain/competition/solution/scoring.rs:79
↓ 3 callers
Function
scripted_loop_with
A [`scripted_loop`] whose cycles `trigger` fires.
crates/autopilot-svm/src/run_loop.rs:486
↓ 3 callers
Function
sell
(uid: u8)
crates/solana-solvers/src/domain/solver/mod.rs:462
↓ 3 callers
Function
sell
(amount: u64)
crates/driver/src/domain/competition/solution/fee.rs:572
↓ 3 callers
Method
sell
The asset being sold, or a very large value if this is a buy, to facilitate surplus.
crates/driver/src/domain/quote.rs:322
↓ 3 callers
Function
sell_order_from_quote
(quote: &OrderQuoteResponse)
crates/e2e/tests/e2e/protocol_fee.rs:700
↓ 3 callers
Function
sell_token_source_from
(source: DbSellTokenSource)
crates/shared/src/db_order_conversions.rs:283
↓ 3 callers
Method
send_and_confirm_transaction
Send a signed transaction and wait for confirmation, sending the same bytes again every [`RESEND_INTERVAL`] until it lands. The copies skip the prefli
crates/solana-driver/src/infra/blockchain/mod.rs:206
↓ 3 callers
Method
send_displaced
Send the creatable ones among the pending creations, in order, up to the cap and at most one per owner, so a single user cannot take the whole cap. A
crates/autopilot-svm/src/infra/sponsor.rs:163
↓ 3 callers
Method
send_wei
(&self, to: Address, amount: U256)
crates/e2e/src/setup/onchain_components/mod.rs:609
↓ 3 callers
Method
serialize
(&self, serializer: S)
crates/model/src/order.rs:570
↓ 3 callers
Method
serialize
(&self, serializer: S)
crates/solana-solvers/src/dto/order.rs:24
↓ 3 callers
Function
set_indexed_slot
(pool: &PgPool, slot: i64)
crates/autopilot-svm/src/infra/observation.rs:271
↓ 3 callers
Function
set_price
(micro_lamports: u64)
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:1118
↓ 3 callers
Method
setup
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3477
↓ 3 callers
Method
setup_accounts
The buffer PDAs and payer ATAs the settlement needs: a buffer per token buy mint and per sell mint a buy order pays a protocol fee in, a payer ATA per
crates/solana-driver/src/domain/settlement.rs:215
↓ 3 callers
Method
shutdown
Send shutdown signal to the associated Control
crates/autopilot/src/shutdown_controller.rs:65
↓ 3 callers
Method
sign
Signs the current [`OrderCreation`]'s data ([`OrderData`]) using ECDSA, returning a signed [`OrderCreation`]. Re-signs the order data with ECDSA and
crates/model/src/order.rs:361
↓ 3 callers
Method
sign_message
Returns the ERC-1271 signature bytes for the specified message.
crates/e2e/src/setup/onchain_components/safe.rs:201
↓ 3 callers
Method
sign_typed_data
( &self, domain_separator: &DomainSeparator, struct_hash: &[u8; 32], )
crates/e2e/src/setup/onchain_components/mod.rs:43
↓ 3 callers
Function
signature
(n: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:39
↓ 3 callers
Method
signature
(&self)
crates/driver/src/tests/boundary.rs:35
↓ 3 callers
Function
signing_scheme_from
(scheme: DbSigningScheme)
crates/shared/src/db_order_conversions.rs:314
↓ 3 callers
Method
simulation_gas_price
(&self)
crates/simulator/src/ethereum/mod.rs:55
↓ 3 callers
Function
simulation_mocks
Mocks pricing every unit at 10_000 micro-lamports and passing the bundle simulation at `units`.
crates/solana-driver/tests/api.rs:131
↓ 3 callers
Function
simulation_passes
()
crates/shared/src/order_validation.rs:3572
↓ 3 callers
Function
simulation_reverts
()
crates/shared/src/order_validation.rs:3578
↓ 3 callers
Method
simulation_solver_address
(&self)
crates/price-estimation/src/trade_finding/mod.rs:113
↓ 3 callers
Function
sized_settlement
A settlement of the test order, with `interaction_bytes` of solver interaction data.
crates/solana-driver/src/domain/settlement.rs:1370
↓ 3 callers
Method
slot
The node's current slot at the client's commitment level.
crates/solana-driver/src/infra/blockchain/mod.rs:142
↓ 3 callers
Function
slot_update
(slot: u64, status: SlotStatus)
crates/solana-indexer/src/indexer/ingester/tests.rs:74
↓ 3 callers
Function
snapshot_pool_state
Samples `(pool_count, sqrt_price_x96, tick, liquidity)` for a single pool.
crates/e2e/tests/e2e/pool_indexer.rs:276
↓ 3 callers
Function
solution
(trades: Vec<Trade>)
crates/solana-driver/src/domain/settlement.rs:1146
↓ 3 callers
Function
solutions
Observe the solutions returned by the solver.
crates/driver/src/infra/observe/mod.rs:79
↓ 3 callers
Function
solvable_orders
( ex: &mut PgConnection, min_valid_to: i64, now: i64, )
crates/database/src/orders.rs:801
↓ 3 callers
Function
solve_request_with_policies
The standard solve request with `policies` on its order.
crates/solana-driver/tests/api.rs:1184
↓ 3 callers
Method
solver
Get the solver address.
crates/winner-selection/src/solution.rs:45
↓ 3 callers
Function
spawn_mock_autopilot
A tiny axum server that answers `/native_price/{mint}` with `price(mint)`, or 404 without one. It stands in for the autopilot.
crates/solana-orderbook/tests/api.rs:75
↓ 3 callers
Method
sponsoring
Sponsored placement dependencies, absent when the feature is off.
crates/solana-orderbook/src/infra/api/mod.rs:301
↓ 3 callers
Method
start
(&self)
crates/event-indexing/src/block_retriever.rs:141
↓ 3 callers
Method
start_autopilot_with_shutdown_controller
Start the autopilot service in a background task. Uses [`Self::min_solve_deadline`] as the per-auction solve deadline. Allows to externally control th
crates/e2e/src/setup/services.rs:171
↓ 3 callers
Function
start_driver_with_config_override
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, config_over
crates/e2e/src/setup/colocation.rs:112
↓ 3 callers
Function
start_volume_fee_protocol
Wraps 50 ETH for `trader` (approved to the vault relayer) and starts the protocol with a 1% volume fee (effective immediately) and `SameTokensPolicy::
crates/e2e/tests/e2e/protocol_fee.rs:1296
↓ 3 callers
Function
storage_allocating_quote_id_generator
Storage mock that only hands out quote ids, for tests that never get as far as storing a quote.
crates/shared/src/order_quoting.rs:2767
↓ 3 callers
Method
store
Caches `verdict`, reporting a ban the cache did not already know about. Returns how the number of banned entries changed.
crates/order-validation/src/banned/cached.rs:125
↓ 3 callers
Function
stream_body_and_gzip
Like [`stream_body`], but also gzips the same serialization in one pass. The first receiver yields the compressed bytes once serialization finishes.
crates/driver/src/infra/solver/streaming/mod.rs:50
↓ 3 callers
Method
surplus_capturing_jit_order_owners
(&self)
crates/driver/src/domain/competition/auction.rs:169
↓ 3 callers
Function
surplus_over
( trade: &Trade, prices: &ClearingPrices, price_limits: PriceLimits,
crates/autopilot/src/domain/settlement/trade/math.rs:354
↓ 3 callers
Method
surplus_over_limit_price
Uses custom prices to calculate the surplus after the protocol fee and network fee are applied.
crates/autopilot/src/domain/settlement/trade/math.rs:168
↓ 3 callers
Method
surplus_over_limit_price_before_fee
Uses uniform prices to calculate the surplus as if the protocol fee and network fee are not applied.
crates/autopilot/src/domain/settlement/trade/math.rs:175
↓ 3 callers
Function
swap
Bitget pays the taker's buy-mint ATA, so a transfer of `minAmount` moves the output on to the quote's destination and positive slippage stays with the
crates/solana-solvers/src/dex/bitget/dto.rs:135
↓ 3 callers
Method
swap
Encodes a pool swap as an interaction. Returns `Err` if the swap parameters are invalid for the pool, specifically if the input and output tokens don'
crates/driver/src/domain/liquidity/swapr.rs:27
↓ 3 callers
Method
symbol
Fetch the ERC20 token symbol. Returns `None` if the token does not implement this optional method. See the symbol method in EIP-20. https://eips.ethe
crates/driver/src/infra/blockchain/token.rs:60
↓ 3 callers
Function
test_baseline_source
( web3: &Web3, version: &str, source: BaselineSource, token0: Address,
crates/liquidity-sources/src/uniswap_v2/mod.rs:199
↓ 3 callers
Function
test_order_availability_in_api
( services: &Services<'_>, order: &ExtendedEthFlowOrder, owner: &Address, contracts: &Contract
crates/e2e/tests/e2e/ethflow.rs:689
↓ 3 callers
Function
test_order_intent
Order intent used by the literal `/solve` request and the settle test. The buy token account is the owner's associated token account, the one the sett
crates/solana-driver/tests/api.rs:52
↓ 3 callers
Method
tighten_limit
The limit leg the engine has to beat for its fill to still respect the signed limit once the fee is applied: a sell order's minimum buy rises to `buy
crates/solana-driver/src/domain/solver_fee.rs:76
↓ 3 callers
Method
timed_future
Runs the future and collects runtime metrics.
crates/autopilot/src/solvable_orders.rs:483
↓ 3 callers
Method
to_big_rational
(&self)
crates/number/src/u256_ext.rs:137
↓ 3 callers
Method
to_high_precision
Converts the fee factor to a high precision scaled integer. For example, 0.00003 -> 30 (with scale of 1_000_000) This allows sub-basis-point precision
crates/configs/src/fee_factor.rs:34
↓ 3 callers
Method
to_quote_request
How a user trade intent is converted into a quote request by the frontend
crates/e2e/tests/e2e/ethflow.rs:1044
↓ 3 callers
Function
token_2022_account
A Token-2022 account with the given state and the `ImmutableOwner` extension, which every Token-2022 ATA carries.
crates/solana-driver/src/infra/blockchain/accounts.rs:300
↓ 3 callers
Function
token_account
A 165-byte SPL token account with the given state.
crates/solana-driver/src/infra/blockchain/accounts.rs:190
↓ 3 callers
Function
token_buys
The orders paying out to a token account. A native SOL buy pays out to a wallet, which the payout creates when it is missing.
crates/solana-driver/src/domain/settlement.rs:495
↓ 3 callers
Method
token_programs
The token program of each of `mints`, see [`Self::mints`].
crates/solana-driver/src/infra/blockchain/mod.rs:267
↓ 3 callers
Function
tokens
(prices: &[(Pubkey, u64)])
crates/solana-solvers/src/domain/solver/mod.rs:1105
↓ 3 callers
Function
trade
(trade: &super::Trade)
crates/driver/src/domain/competition/solution/encoding.rs:406
← previous
next →
1,301–1,400 of 10,747, ranked by callers