Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,776 in github.com/cowprotocol/services
⨍
Functions
10,776
◇
Types & classes
3,479
↓ 1 callers
Method
store
Cache `solution` under `account` for a later fast-path settle.
crates/driver/src/domain/competition/quote_cache.rs:52
↓ 1 callers
Method
store_events_by_reason
( &self, orders: impl IntoIterator<Item = (OrderUid, OrderFilterReason)>, label: Order
crates/autopilot/src/solvable_orders.rs:491
↓ 1 callers
Method
store_execution_ended
Stores settlement execution ended event in the DB in a background task to not block the caller.
crates/autopilot/src/settle_call.rs:164
↓ 1 callers
Method
store_execution_started
Stores settlement execution started event in the DB in a background task to not block the caller.
crates/autopilot/src/settle_call.rs:134
↓ 1 callers
Function
store_hooks
( db: &mut PgConnection, order: &Order, parsed: &ProtocolAppData, trampoline: &HooksTrampoline
crates/autopilot/src/database/onchain_order_events/mod.rs:786
↓ 1 callers
Method
store_order_events
Inserts an order event for each order uid in the given set. Unique order uids are required to avoid inserting events with the same label within the sa
crates/autopilot/src/infra/persistence/mod.rs:254
↓ 1 callers
Method
store_settlement_execution_ended
( &self, event: domain::settlement::ExecutionEnded, )
crates/autopilot/src/infra/persistence/mod.rs:985
↓ 1 callers
Method
store_settlement_execution_started
( &self, event: domain::settlement::ExecutionStarted, )
crates/autopilot/src/infra/persistence/mod.rs:952
↓ 1 callers
Method
strategy
(&self)
crates/rate-limit/src/lib.rs:108
↓ 1 callers
Method
submission_accounts
Additional submission accounts for EIP-7702 parallel settlement.
crates/driver/src/infra/solver/mod.rs:384
↓ 1 callers
Method
submission_deadline_latest_block
(&self)
crates/autopilot/src/settle_call.rs:47
↓ 1 callers
Function
submission_error
The error of a failed send or confirmation. Only a landed failure proves the transaction cannot land again.
crates/solana-driver/src/domain/competition.rs:1234
↓ 1 callers
Function
submission_max_fee_per_gas
The `max_fee_per_gas` the settlement will be submitted with, used to size the solver's required balance. Mirrors `apply_gas_fee_override`: with an ove
crates/driver/src/domain/competition/solution/settlement.rs:459
↓ 1 callers
Method
submission_mode
(&self)
crates/driver/src/domain/competition/mod.rs:209
↓ 1 callers
Method
submit
Signs the transaction and sends it to every builder, as one bundle for each block in `blocks`. Succeeds as long as one builder may hold a bundle, so t
crates/driver/src/infra/builders.rs:277
↓ 1 callers
Method
submit_batch
( &mut self, uids: &[OrderUid], encoded_ethflow_orders: Vec<EthFlowOrder::Data>,
crates/refunder/src/submitter.rs:42
↓ 1 callers
Function
submitter
( config: &infra::Config, eth: &Ethereum, http_factory: &HttpClientFactory, )
crates/driver/src/run.rs:232
↓ 1 callers
Function
subscribe_request
The wire-level filter shape: the two named transaction filters and the slot-status filter, multiplexed into a single subscription at `confirmed` commi
crates/solana-indexer/src/indexer/ingester.rs:328
↓ 1 callers
Method
successful_settlement_block
The block our successful `Settlement` event for `tx_hash` landed in, searching `[from_block, to_block]` inclusive, or `None` if it is not in that rang
crates/driver/src/infra/blockchain/mod.rs:308
↓ 1 callers
Method
summarize
Summarizes settlement data required by the autopilot, see [`SettlementMetrics`] for details.
crates/autopilot/src/domain/settlement/mod.rs:99
↓ 1 callers
Function
surplus_at_legs
Surplus of the fill `order` describes over `limits`, measured on its executed legs. Equals `surplus_over` with the legs as prices, without multiplying
crates/protocol-fees/src/lib.rs:421
↓ 1 callers
Method
surplus_capturing_jit_order_owners
The owners whose JIT orders the associated auction treats like user orders.
crates/autopilot/src/domain/settlement/mod.rs:93
↓ 1 callers
Function
surplus_fee
( surplus: eth::SurplusTokenAmount, factor: f64, )
crates/autopilot/src/domain/settlement/trade/math.rs:543
↓ 1 callers
Method
surplus_in_ether
Surplus of a trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:44
↓ 1 callers
Function
surplus_over_limit_price_before_fee
( trade: &Trade, )
crates/autopilot/src/domain/settlement/trade/math.rs:394
↓ 1 callers
Function
surplus_over_quote
( trade: &Trade, quote: &domain::fee::Quote, )
crates/autopilot/src/domain/settlement/trade/math.rs:524
↓ 1 callers
Function
surplus_over_reference_price
( fulfillment: &Fulfillment, limit_sell: eth::U256, limit_buy: eth::U256,
crates/driver/src/domain/competition/solution/fee.rs:523
↓ 1 callers
Method
swap
Build the swap for `quote` that the settlement signer `user` executes, at the quote's amounts. The route spends its input from the sell-mint ATA of t
crates/solana-solvers/src/dex/mod.rs:156
↓ 1 callers
Method
swap
Build the swap for `quote` from the route it kept.
crates/solana-solvers/src/dex/bitget/mod.rs:90
↓ 1 callers
Method
swap
( &self, quote: &dex::Quote, taker: &Pubkey, )
crates/solana-solvers/src/domain/solver/mod.rs:45
↓ 1 callers
Method
swapFee
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4815
↓ 1 callers
Method
swap_instructions
`POST /swap/v1/swap-instructions` for the given quote.
crates/solana-solvers/src/dex/jupiter/mod.rs:101
↓ 1 callers
Method
sync
Waits for the next tip and brings the order caches up to it.
crates/autopilot-svm/src/run_loop.rs:244
↓ 1 callers
Method
sync_to_tip
(&self, _tip: &u64)
crates/autopilot-svm/src/run_loop.rs:397
↓ 1 callers
Function
system_account
(lamports: u64, data_len: usize)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:1102
↓ 1 callers
Method
take_errors
Returns how many heartbeats failed since the last call, and resets the count.
crates/leader-lock/src/leader_pg_lock.rs:89
↓ 1 callers
Function
takes_a_cut
Whether a fee schedule takes anything from a transfer: a rate in basis points under a positive cap.
crates/solana-token/src/lib.rs:140
↓ 1 callers
Method
target_amount
(&self)
crates/solana-driver/src/infra/solver/dto/auction.rs:105
↓ 1 callers
Method
tenderly
( config: &configs::simulator::TenderlyConfig, eth: Ethereum, http_factory: &HttpClien
crates/simulator/src/lib.rs:35
↓ 1 callers
Function
test
Test that quoting works as expected, specifically, that we can quote for a token pair and additional gas from ERC-1271 and hooks are included in the q
crates/e2e/tests/e2e/quoting.rs:87
↓ 1 callers
Function
test_account_query
( queried_account: &Address, client: &Client, order: &ExtendedEthFlowOrder, owner: &Address,
crates/e2e/tests/e2e/ethflow.rs:777
↓ 1 callers
Function
test_balance_override
( web3: &Web3, token: Address, test_account: Address, test_balance: U256,
crates/e2e/tests/e2e/quote_verification.rs:495
↓ 1 callers
Function
test_exp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:229
↓ 1 callers
Function
test_orders_query
( services: &Services<'_>, order: &ExtendedEthFlowOrder, owner: &Address, contracts: &Contract
crates/e2e/tests/e2e/ethflow.rs:763
↓ 1 callers
Function
test_prices
Native prices for the seeded order's pair, at the denominator so scores stay raw surplus.
crates/autopilot-svm/src/tests.rs:168
↓ 1 callers
Function
test_trade_availability_in_api
( client: &Client, order: &ExtendedEthFlowOrder, owner: &Address, contracts: &Contracts, e
crates/e2e/tests/e2e/ethflow.rs:718
↓ 1 callers
Function
test_trade_query
( query_type: &TradeQuery, client: &Client, contracts: &Contracts, ethflow_contract: &CoWSwapE
crates/e2e/tests/e2e/ethflow.rs:804
↓ 1 callers
Function
testing_alloy_node_error
()
crates/ethrpc/src/alloy/errors.rs:107
↓ 1 callers
Function
text
(value: String)
crates/fee-engine/src/order_view/mod.rs:91
↓ 1 callers
Method
time_until_deadline
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:128
↓ 1 callers
Method
times_rate_limited
Returns number of times we got rate limited in a row if we are currently allowing requests.
crates/rate-limit/src/lib.rs:91
↓ 1 callers
Function
timestamp_after_duration
Adds a `std::time::Duration` to a `u32` timestamp. This function uses saturating semantics and can't panic.
crates/model/src/time.rs:19
↓ 1 callers
Method
tip
The poller's tip, for components that wait on slots outside the cycle.
crates/autopilot-svm/src/infra/trigger.rs:65
↓ 1 callers
Function
to_boundary_base_tokens
( weth: ð::WethAddress, base_tokens: &HashSet<eth::TokenAddress>, )
crates/solvers/src/boundary/baseline.rs:322
↓ 1 callers
Function
to_boundary_liquidity
( liquidity: &[liquidity::Liquidity], uni_v3_quoter_v2: Option<Arc<contracts::UniswapV3QuoterV2::Insta
crates/solvers/src/boundary/baseline.rs:158
↓ 1 callers
Function
to_boundary_pool
Converts a domain pool into a [`shared`] Balancer V2 stable pool. Returns `None` if the domain pool cannot be represented as a boundary pool.
crates/solvers/src/boundary/liquidity/stable.rs:13
↓ 1 callers
Method
to_boundary_scheme
(&self)
crates/driver/src/domain/competition/order/signature.rs:48
↓ 1 callers
Method
to_boundary_signature
(&self)
crates/driver/src/domain/competition/order/signature.rs:13
↓ 1 callers
Function
to_boundary_token_pair
(pair: &liquidity::TokenPair)
crates/solvers/src/boundary/baseline.rs:330
↓ 1 callers
Method
to_bps_str
Converts the fee factor to basis points (BPS). Supports fractional BPS values (e.g., 0.00003 -> "0.3") Rounds to 2 decimal places to avoid floating po
crates/configs/src/fee_factor.rs:26
↓ 1 callers
Function
to_domain
(id: liquidity::Id, pool: ConstantProductOrder)
crates/driver/src/boundary/liquidity/swapr.rs:23
↓ 1 callers
Function
to_domain
(pool: &ConstantProductPool)
crates/solvers/src/api/routes/solve/dto/auction.rs:101
↓ 1 callers
Method
to_domain
(&self, order_uid: OrderUid)
crates/autopilot/src/infra/persistence/dto/order.rs:383
↓ 1 callers
Method
to_domain_separator
(&self)
crates/e2e/src/api/zeroex.rs:183
↓ 1 callers
Function
to_e15
(value: u128)
crates/autopilot/src/domain/competition/winner_selection.rs:1275
↓ 1 callers
Function
to_fixed_point
Converts a rational to a Balancer fixed point number.
crates/solvers/src/boundary/liquidity/stable.rs:53
↓ 1 callers
Function
to_fixed_point
Converts a rational to a Balancer fixed point number.
crates/solvers/src/boundary/liquidity/weighted_product.rs:57
↓ 1 callers
Method
to_interaction
( &self, input: &liquidity::MaxInput, )
crates/driver/src/domain/liquidity/zeroex.rs:50
↓ 1 callers
Method
to_interaction_data
(&self)
crates/price-estimation/src/trade_finding/mod.rs:238
↓ 1 callers
Method
to_metrics_label
(&self)
crates/database/src/onchain_broadcasted_orders.rs:23
↓ 1 callers
Function
to_rust_ident
Convert a crate name (kebab-case) to a Rust identifier (underscore_case).
contracts/src/codegen.rs:62
↓ 1 callers
Function
to_sdk_pubkey
Bridge a `settlement_interface` pubkey to the indexer's `solana_sdk` pubkey. The two crates pin different `solana-pubkey` majors, so the types differ
crates/solana-indexer/src/indexer/decoder.rs:725
↓ 1 callers
Method
to_temp_path
(&self)
crates/configs/src/autopilot/mod.rs:309
↓ 1 callers
Method
to_temp_path
(&self)
crates/configs/src/orderbook/mod.rs:196
↓ 1 callers
Function
to_winsel_order
(uid: domain::OrderUid, order: &TradedOrder)
crates/autopilot/src/domain/competition/winner_selection.rs:161
↓ 1 callers
Function
token_2022_mint_account
An initialized Token-2022 mint with the `MintCloseAuthority` extension, so its data is longer than an SPL Token mint's.
crates/solana-driver/src/infra/blockchain/accounts.rs:358
↓ 1 callers
Function
token_account_json
A canned `getMultipleAccounts` entry: an initialized account of the classic SPL token program holding `mint`.
crates/autopilot-svm/src/tests.rs:109
↓ 1 callers
Method
token_account_needs_creation
Whether the token account at `address` must be created before it can hold tokens, see [`Self::token_account_state`].
crates/solana-driver/src/infra/blockchain/accounts.rs:113
↓ 1 callers
Method
token_largest_accounts
The addresses of `mint`'s largest token accounts, up to 20, largest first. Needs a node with the `spl-token-mint` account index.
crates/cow-solana-rpc/src/lib.rs:393
↓ 1 callers
Method
token_liquidity
Returns the token pairs to fetch liquidity for.
crates/driver/src/domain/quote.rs:348
↓ 1 callers
Method
token_metadata
(&self, token: &Address)
crates/orderbook/src/database/orders.rs:466
↓ 1 callers
Function
token_mints
The token mints an order moves: the sell mint, and the buy mint unless the order buys native SOL.
crates/autopilot-svm/src/infra/provider.rs:463
↓ 1 callers
Function
token_pair
()
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:601
↓ 1 callers
Method
token_pairs
Returns an iterator over the tokens pairs handled by the pool reserves.
crates/solvers/src/domain/liquidity/stable.rs:46
↓ 1 callers
Method
tokens
Returns an iterator over the reserve tokens.
crates/driver/src/domain/liquidity/balancer/v2/weighted.rs:75
↓ 1 callers
Method
tokens
Returns an iterator over the reserve tokens.
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:71
↓ 1 callers
Method
total_surplus
(&self, user: &alloy::primitives::Address)
crates/orderbook/src/database/total_surplus.rs:116
↓ 1 callers
Method
track_auction_update
(&self, result: &str)
crates/autopilot/src/solvable_orders.rs:475
↓ 1 callers
Function
track_block_range
(range: &str)
crates/event-indexing/src/event_handler.rs:683
↓ 1 callers
Function
track_refunding_loop_result
(result: LoopResult)
crates/refunder/src/metrics.rs:52
↓ 1 callers
Method
tradable_balance_simple
( &self, query: &Query, token: &ERC20::Instance, )
crates/account-balances/src/simulation.rs:60
↓ 1 callers
Method
tradable_balance_simulated
(&self, query: &Query)
crates/account-balances/src/simulation.rs:36
↓ 1 callers
Function
trade
(uid: u8, executed_sell: u64, executed_buy: u64)
crates/solana-driver/src/domain/protocol_fee.rs:142
↓ 1 callers
Method
trade_matches
Find for a JIT order, given specific token pair and buy/sell amount, return true if the JIT order was found
crates/driver/src/tests/setup/mod.rs:1429
↓ 1 callers
Function
trade_to_key
(trade: &EncodedTrade)
crates/autopilot/src/domain/settlement/mod.rs:244
↓ 1 callers
Method
trades
(&self, filter: &TradeFilter)
crates/orderbook/src/database/trades.rs:40
↓ 1 callers
Method
trades_paginated
(&self, filter: &PaginatedTradeFilter)
crates/orderbook/src/database/trades.rs:100
↓ 1 callers
Method
trampoline
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:131
↓ 1 callers
Method
traverse_path
( &self, path: &[&OnchainLiquidity], mut sell_token: Address, mut sell_amount:
crates/solvers/src/boundary/baseline.rs:117
↓ 1 callers
Method
trust
Set up the protocol to consider the specified token as trusted. The token is identified by its symbol.
crates/driver/src/tests/setup/mod.rs:833
← previous
next →
3,801–3,900 of 10,776, ranked by callers