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
↓ 2 callers
Method
non_winners
All solutions that were not filtered out but also did not win.
crates/autopilot/src/domain/competition/winner_selection.rs:261
↓ 2 callers
Method
now
(&self)
crates/shared/src/order_quoting.rs:569
↓ 2 callers
Function
observe
Records `tokens` estimates of `source` that ended in `result` after `elapsed`.
crates/autopilot-svm/src/infra/prices.rs:870
↓ 2 callers
Method
observed_slot
The slot up to which a settlement can be ruled out: the indexer's watermark, or the tip itself once the indexer lags beyond its allowance or never wro
crates/autopilot-svm/src/infra/observation.rs:58
↓ 2 callers
Function
old_app_data_cid
(contract_app_data: &AppDataHash)
crates/orderbook/src/ipfs_app_data.rs:128
↓ 2 callers
Function
onchain_order_placement_error_from
( order: &FullOrderDb, )
crates/shared/src/db_order_conversions.rs:246
↓ 2 callers
Function
open_orders
Orders open for solving: unexpired, settleable by a driver, not cancelled and not fully filled. A pending sponsored order whose stored creation transa
crates/autopilot-svm/src/infra/db.rs:84
↓ 2 callers
Function
open_settlement_window
Open a settlement-execution window for a dispatched settlement.
crates/autopilot-svm/src/infra/db.rs:240
↓ 2 callers
Function
order
()
crates/solana-solvers/src/dex/bitget/dto.rs:187
↓ 2 callers
Function
order
(buy_mint: Pubkey, buy_program: Option<TokenProgram>)
crates/solana-token/src/quote.rs:79
↓ 2 callers
Function
order
(kind: OrderKind, quote: Option<Quote>)
crates/autopilot-svm/src/domain/fee.rs:110
↓ 2 callers
Function
order
(sell_amount: u64)
crates/autopilot-svm/src/domain/auction.rs:194
↓ 2 callers
Method
order
(&self)
crates/liquidity-sources/src/zeroex.rs:217
↓ 2 callers
Function
order_created
The `OrderCreated` an intent on the wire describes. Its hash is the UID.
crates/solana-indexer/src/indexer/decoder.rs:511
↓ 2 callers
Method
order_eip1271_signature
( &self, order: &OrderCreation, onchain: &OnchainComponents, )
crates/e2e/src/setup/onchain_components/safe.rs:222
↓ 2 callers
Function
order_json
Serialize a quoted order in the shape the driver expects for /solve orders.
crates/driver/src/tests/setup/driver.rs:67
↓ 2 callers
Function
order_json
JSON of a minimal order as serialized by [`RequestHelper`], with all bytes of the uid set to `uid_byte`.
crates/autopilot/src/infra/solvers/dto/solve.rs:619
↓ 2 callers
Function
order_uid
(byte: u8)
crates/autopilot/src/infra/solvers/dto/solve.rs:499
↓ 2 callers
Function
order_uid
Recover order uid from order data and signature
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:13
↓ 2 callers
Method
order_uid
The UID of the order.
crates/driver/src/tests/setup/blockchain.rs:178
↓ 2 callers
Function
order_with_tokens
(token_a: Address, token_b: Address)
crates/solver/src/liquidity/zeroex.rs:214
↓ 2 callers
Function
orders_from_rows
A row the indexer wrote always converts (on-chain values fit the domain types), so a failure means corrupt data. The corrupt order is skipped instead
crates/autopilot-svm/src/infra/db.rs:709
↓ 2 callers
Function
orders_with_trades
The program settles exactly the orders passed to `BeginSettle`, so the orders the solution does not fill must stay out of the settlement.
crates/solana-driver/src/domain/competition.rs:1051
↓ 2 callers
Function
outcome
(pool: &PgPool, auction_id: i64)
crates/autopilot-svm/src/infra/observation.rs:328
↓ 2 callers
Method
owner
Returns the owner address of the order extracted from the UID.
crates/solvers/src/domain/order.rs:25
↓ 2 callers
Function
parse_auction_id
`Err` for a malformed id, `None` for one well formed past `i64::MAX`, which no auction has.
crates/solana-orderbook/src/infra/api/routes/solver_competition/mod.rs:66
↓ 2 callers
Method
parse_custom_event_data
( &self, contract_events: &[(ContractEvent, Log)], )
crates/autopilot/src/database/onchain_order_events/ethflow_events.rs:51
↓ 2 callers
Function
parse_hash
(hash: &str)
crates/cow-solana-rpc/src/lib.rs:699
↓ 2 callers
Method
partial_cmp
(&self, other: &Self)
crates/driver/src/domain/competition/sorting.rs:64
↓ 2 callers
Function
partial_fill_request
The standard solve request with its order partially fillable, of the given kind, and `executed` already filled, plus the order's uid, which the flags
crates/solana-driver/tests/api.rs:343
↓ 2 callers
Method
partial_validate
(&self, order: PreOrderData)
crates/shared/src/order_validation.rs:778
↓ 2 callers
Method
partially_fillable
Returns the signed partially fillable property of the order. You can't set this field in the API so it's enforced to be fill-or-kill. This function on
crates/driver/src/domain/competition/order/mod.rs:422
↓ 2 callers
Method
partially_fillable
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:68
↓ 2 callers
Function
partner_fees
The order's partner fees in app-data order, capped together at `cap` of the volume. A fee past the cap stays, with a zero volume share or volume cap.
crates/fee-engine/src/partner_fee.rs:27
↓ 2 callers
Function
partner_fees
The partner fees of the app data, for the engine to cap.
crates/shared/src/fee_engine.rs:46
↓ 2 callers
Method
parts
Splits an order UID into its parts.
crates/model/src/order.rs:727
↓ 2 callers
Method
parts
Splits an order UID into its parts.
crates/driver/src/domain/competition/order/mod.rs:265
↓ 2 callers
Method
past_events_by_block_hashes
( &self, blocks: &[BlockNumberHash], )
crates/event-indexing/src/event_handler.rs:523
↓ 2 callers
Method
path_candidates_with_hops
Returns possible path candidates with the specified number of maximum hops.
crates/solvers/src/boundary/routing.rs:176
↓ 2 callers
Function
payable_orders
Drop native SOL buys that sell wSOL: they reach solvers as wSOL for wSOL. Returns the kept orders and the uids of the dropped ones.
crates/autopilot-svm/src/infra/provider.rs:561
↓ 2 callers
Function
penalty_caps
( ex: &mut PgConnection, keys: &[(AuctionId, OrderUid)], )
crates/database/src/auction.rs:202
↓ 2 callers
Function
penalty_caps_of_order
Returns the persisted penalty caps of that order across all auctions.
crates/e2e/tests/e2e/database.rs:24
↓ 2 callers
Function
pending_creations
The stored creations of the given orders the indexer has not seen on chain yet, oldest first.
crates/autopilot-svm/src/infra/db.rs:200
↓ 2 callers
Function
persist_competition
Persist a competition: the auction snapshot, every proposed solution with its executions, and the traded orders' fee policies, in one transaction.
crates/autopilot-svm/src/infra/db.rs:574
↓ 2 callers
Method
pick_winners
Returns indices of winning solutions. Assumes that `solutions` is sorted by score descendingly. This logic was moved into a helper function to avoid a
crates/winner-selection/src/arbitrator.rs:183
↓ 2 callers
Function
ping
Check that the pool gives a connection and that the database answers on it.
crates/solana-orderbook/src/infra/db.rs:814
↓ 2 callers
Function
place
( state: axum::extract::State<State>, params: Params, )
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:222
↓ 2 callers
Method
poll_interval
(&self)
crates/pool-indexer/src/config.rs:108
↓ 2 callers
Method
pool_id
(&self)
crates/solver/src/liquidity/balancer_v2.rs:128
↓ 2 callers
Function
pool_indexer_config
( factories: impl IntoIterator<Item = Address>, metrics_port: u16, )
crates/e2e/tests/e2e/pool_indexer.rs:194
↓ 2 callers
Function
pool_options
(config: &Config)
crates/orderbook/src/database/mod.rs:121
↓ 2 callers
Function
pool_with_ticks
(id: Address, token0: Address, token1: Address)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:869
↓ 2 callers
Method
pools_by_id
Returns all pool infos by their IDs.
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:111
↓ 2 callers
Function
pools_response
Shared `PoolsResponse` builder for the listing endpoints.
crates/pool-indexer/src/api/uniswap_v3/mod.rs:138
↓ 2 callers
Method
post_settle
Posts a settle request and waits for the driver to acknowledge it. The endpoints return no body, so only the status is inspected.
crates/autopilot/src/infra/solvers/mod.rs:141
↓ 2 callers
Function
pow
(x: Ufixed256x18, y: Ufixed256x18)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:101
↓ 2 callers
Method
pow_up
(self, exp: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:196
↓ 2 callers
Method
pow_up_v3
(self, exp: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:203
↓ 2 callers
Method
pre_interactions
(&self)
crates/driver/src/domain/competition/solution/mod.rs:274
↓ 2 callers
Method
precision
(&self)
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:130
↓ 2 callers
Function
prepare_request
( chain_id: String, tx: &TransactionRequest, overrides: StateOverride, block: BlockNo, )
crates/simulator/src/tenderly/mod.rs:216
↓ 2 callers
Method
presign_orders
For every order with signature scheme presign the simulation will contains state overrides to provide the signatures. This is useful when you have to
crates/simulator/src/simulation_builder.rs:305
↓ 2 callers
Method
price
Lamports per 10^9 atoms of `token`, the unit the autopilot prices auctions in.
crates/solana-orderbook/src/infra/prices.rs:52
↓ 2 callers
Method
price
The price of one token, see [`Self::prices`]. `None` for a token no estimator prices. Concurrent lookups of one token share one fetch, a waiter that s
crates/autopilot-svm/src/infra/prices.rs:285
↓ 2 callers
Function
price_error
An unpriced token is no liquidity, a rate-limited lookup answers the same, anything else is the autopilot misbehaving.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:769
↓ 2 callers
Method
price_estimator
( &mut self, solvers: &[ExternalSolver], native: Arc<dyn NativePriceEstimating>,
crates/price-estimation/src/factory.rs:393
↓ 2 callers
Function
price_improvement
( trade: &Trade, quote: &domain::fee::Quote, )
crates/autopilot/src/domain/settlement/trade/math.rs:513
↓ 2 callers
Function
priced
Native prices of 10^9 for the buy mint, `pubkey(2)`, and the given ones, and none for any other mint.
crates/solana-solvers/src/domain/solver/mod.rs:428
↓ 2 callers
Function
priced_orders
Drop orders with a sell or buy token no estimator prices: a solution trading them scores nothing, so they would go out in every cut until they expire.
crates/autopilot-svm/src/infra/provider.rs:544
↓ 2 callers
Method
prioritize
(&'a self, operation: T)
crates/gas-price-estimation/src/priority.rs:39
↓ 2 callers
Function
priority_fee
()
crates/solana-driver/src/domain/settlement.rs:1361
↓ 2 callers
Method
produce_results
Produce results for the given `input` until the caller does not expect any more results or we produced all the results we can.
crates/price-estimation/src/competition/mod.rs:78
↓ 2 callers
Function
program_error_alone
The program error of a failed bundle leg, from simulating the leg alone: the bundle endpoint answers a failed leg without logs. Without the legs befor
crates/solana-driver/src/domain/competition.rs:998
↓ 2 callers
Function
protocol_fee_test_case
(test_case: TestCase)
crates/driver/src/tests/cases/jit_orders.rs:58
↓ 2 callers
Function
protocol_fees
The legacy fee policies without `[fee-engine]`; with it, the compared ones. The rules must load.
crates/autopilot/src/fee_engine.rs:30
↓ 2 callers
Method
protocol_fees
Protocol fees are defined by fee policies attached to the order. Denominated in SURPLUS token
crates/autopilot/src/domain/settlement/trade/math.rs:138
↓ 2 callers
Function
protocol_volume_fees
The volume fees of the first rule that matched, the one the engine charges.
crates/orderbook/src/fee_engine.rs:249
↓ 2 callers
Function
pubkey
(byte: u8)
crates/solana-driver/src/infra/api/routes/solve/dto/solve_request.rs:277
↓ 2 callers
Function
pubkey
(byte: u8)
crates/solana-driver/src/domain/protocol_fee.rs:113
↓ 2 callers
Function
pubkey
(byte: u8)
crates/solana-driver/src/domain/solver_fee.rs:161
↓ 2 callers
Function
publish
(venues: &Venues, block_number: u64, sender: &watch::Sender<Snapshot>)
crates/simulator/src/state_override_stream.rs:498
↓ 2 callers
Function
put_app_data
( addr: SocketAddr, path: &str, document: &str, )
crates/solana-orderbook/tests/api.rs:4249
↓ 2 callers
Method
quality_based_on_stats
(&self, stats: &OrderStatistics)
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:86
↓ 2 callers
Function
query_fields
(query: &Query)
crates/price-estimation/src/competition/quote.rs:334
↓ 2 callers
Method
queue_settlement
(&self, settlement: Settlement)
crates/driver/src/domain/competition/mod.rs:613
↓ 2 callers
Function
quote
(sell_amount: u64, buy_amount: u64, execution_cost: u64)
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:1322
↓ 2 callers
Function
quote
(router: axum::Router<State>)
crates/driver/src/infra/api/routes/quote/mod.rs:13
↓ 2 callers
Function
quote
A quote that buys `buy_amount` for the 1000 sold of `order`.
crates/autopilot/src/fee_engine.rs:409
↓ 2 callers
Method
quote_expiration
Computes the absolute expiration timestamp for a new quote depending on the quote's parameters (fast path, signing scheme).
crates/shared/src/order_quoting.rs:664
↓ 2 callers
Method
quote_fast_path
Make the /quote request ask for fast-path execution (sets `enableFastPath` and passes the auction id in the request).
crates/driver/src/tests/setup/mod.rs:1068
↓ 2 callers
Method
quote_fees
The protocol volume fees for the order a quote describes.
crates/orderbook/src/fee_engine.rs:70
↓ 2 callers
Function
quote_kind_from_signing_scheme
(scheme: &QuoteSigningScheme)
crates/shared/src/order_quoting.rs:950
↓ 2 callers
Function
quote_order
The order the quote describes, as the user signs it: the network fee in the sell amount, before slippage and the volume fee.
crates/orderbook/src/quoter.rs:431
↓ 2 callers
Method
quote_outcome
( &self, order: &Order, quote: &Quote, app_data: &ValidatedAppData, ap
crates/orderbook/src/fee_engine.rs:145
↓ 2 callers
Function
quote_request
The request for a fresh quote of `order`: what its owner is quoted now for the amount the order fixes, by every driver, verified like the EVM orderboo
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:744
↓ 2 callers
Function
quoted
()
crates/solana-orderbook/src/infra/verifier.rs:679
↓ 2 callers
Function
quoted_at
Timestamp the lanes quoted for `block` carry, projected from the newest block seen and the chain's spacing. A stamp is just the timestamp the block b
crates/simulator/src/state_override_stream.rs:307
↓ 2 callers
Method
quotes
Quote `order` on every driver concurrently and return every answer. With `early_return`, return as soon as that many drivers answered and cancel the r
crates/solana-orderbook/src/infra/quoter.rs:166
↓ 2 callers
Function
ratio_to_u32
Highly corelated to Uniswap V3 only. Converts: 1% fee to 10000 0.3% fee to 3000 0.05% to 500 0.01% to 100
crates/solver/src/liquidity/uniswap_v3.rs:51
↓ 2 callers
Function
rational_to_big_decimal
(value: &Ratio<T>)
crates/number/src/conversions.rs:18
← previous
next →
1,901–2,000 of 10,776, ranked by callers