MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 2 callersMethodnon_winners
All solutions that were not filtered out but also did not win.
crates/autopilot/src/domain/competition/winner_selection.rs:261
↓ 2 callersMethodnow
(&self)
crates/shared/src/order_quoting.rs:569
↓ 2 callersFunctionobserve
Records `tokens` estimates of `source` that ended in `result` after `elapsed`.
crates/autopilot-svm/src/infra/prices.rs:870
↓ 2 callersMethodobserved_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 callersFunctionold_app_data_cid
(contract_app_data: &AppDataHash)
crates/orderbook/src/ipfs_app_data.rs:128
↓ 2 callersFunctiononchain_order_placement_error_from
( order: &FullOrderDb, )
crates/shared/src/db_order_conversions.rs:246
↓ 2 callersFunctionopen_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 callersFunctionopen_settlement_window
Open a settlement-execution window for a dispatched settlement.
crates/autopilot-svm/src/infra/db.rs:240
↓ 2 callersFunctionorder
()
crates/solana-solvers/src/dex/bitget/dto.rs:187
↓ 2 callersFunctionorder
(buy_mint: Pubkey, buy_program: Option<TokenProgram>)
crates/solana-token/src/quote.rs:79
↓ 2 callersFunctionorder
(kind: OrderKind, quote: Option<Quote>)
crates/autopilot-svm/src/domain/fee.rs:110
↓ 2 callersFunctionorder
(sell_amount: u64)
crates/autopilot-svm/src/domain/auction.rs:194
↓ 2 callersMethodorder
(&self)
crates/liquidity-sources/src/zeroex.rs:217
↓ 2 callersFunctionorder_created
The `OrderCreated` an intent on the wire describes. Its hash is the UID.
crates/solana-indexer/src/indexer/decoder.rs:511
↓ 2 callersMethodorder_eip1271_signature
( &self, order: &OrderCreation, onchain: &OnchainComponents, )
crates/e2e/src/setup/onchain_components/safe.rs:222
↓ 2 callersFunctionorder_json
Serialize a quoted order in the shape the driver expects for /solve orders.
crates/driver/src/tests/setup/driver.rs:67
↓ 2 callersFunctionorder_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 callersFunctionorder_uid
(byte: u8)
crates/autopilot/src/infra/solvers/dto/solve.rs:499
↓ 2 callersFunctionorder_uid
Recover order uid from order data and signature
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:13
↓ 2 callersMethodorder_uid
The UID of the order.
crates/driver/src/tests/setup/blockchain.rs:178
↓ 2 callersFunctionorder_with_tokens
(token_a: Address, token_b: Address)
crates/solver/src/liquidity/zeroex.rs:214
↓ 2 callersFunctionorders_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 callersFunctionorders_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 callersFunctionoutcome
(pool: &PgPool, auction_id: i64)
crates/autopilot-svm/src/infra/observation.rs:328
↓ 2 callersMethodowner
Returns the owner address of the order extracted from the UID.
crates/solvers/src/domain/order.rs:25
↓ 2 callersFunctionparse_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 callersMethodparse_custom_event_data
( &self, contract_events: &[(ContractEvent, Log)], )
crates/autopilot/src/database/onchain_order_events/ethflow_events.rs:51
↓ 2 callersFunctionparse_hash
(hash: &str)
crates/cow-solana-rpc/src/lib.rs:699
↓ 2 callersMethodpartial_cmp
(&self, other: &Self)
crates/driver/src/domain/competition/sorting.rs:64
↓ 2 callersFunctionpartial_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 callersMethodpartial_validate
(&self, order: PreOrderData)
crates/shared/src/order_validation.rs:778
↓ 2 callersMethodpartially_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 callersMethodpartially_fillable
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:68
↓ 2 callersFunctionpartner_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 callersFunctionpartner_fees
The partner fees of the app data, for the engine to cap.
crates/shared/src/fee_engine.rs:46
↓ 2 callersMethodparts
Splits an order UID into its parts.
crates/model/src/order.rs:727
↓ 2 callersMethodparts
Splits an order UID into its parts.
crates/driver/src/domain/competition/order/mod.rs:265
↓ 2 callersMethodpast_events_by_block_hashes
( &self, blocks: &[BlockNumberHash], )
crates/event-indexing/src/event_handler.rs:523
↓ 2 callersMethodpath_candidates_with_hops
Returns possible path candidates with the specified number of maximum hops.
crates/solvers/src/boundary/routing.rs:176
↓ 2 callersFunctionpayable_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 callersFunctionpenalty_caps
( ex: &mut PgConnection, keys: &[(AuctionId, OrderUid)], )
crates/database/src/auction.rs:202
↓ 2 callersFunctionpenalty_caps_of_order
Returns the persisted penalty caps of that order across all auctions.
crates/e2e/tests/e2e/database.rs:24
↓ 2 callersFunctionpending_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 callersFunctionpersist_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 callersMethodpick_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 callersFunctionping
Check that the pool gives a connection and that the database answers on it.
crates/solana-orderbook/src/infra/db.rs:814
↓ 2 callersFunctionplace
( state: axum::extract::State<State>, params: Params, )
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:222
↓ 2 callersMethodpoll_interval
(&self)
crates/pool-indexer/src/config.rs:108
↓ 2 callersMethodpool_id
(&self)
crates/solver/src/liquidity/balancer_v2.rs:128
↓ 2 callersFunctionpool_indexer_config
( factories: impl IntoIterator<Item = Address>, metrics_port: u16, )
crates/e2e/tests/e2e/pool_indexer.rs:194
↓ 2 callersFunctionpool_options
(config: &Config)
crates/orderbook/src/database/mod.rs:121
↓ 2 callersFunctionpool_with_ticks
(id: Address, token0: Address, token1: Address)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:869
↓ 2 callersMethodpools_by_id
Returns all pool infos by their IDs.
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:111
↓ 2 callersFunctionpools_response
Shared `PoolsResponse` builder for the listing endpoints.
crates/pool-indexer/src/api/uniswap_v3/mod.rs:138
↓ 2 callersMethodpost_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 callersFunctionpow
(x: Ufixed256x18, y: Ufixed256x18)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:101
↓ 2 callersMethodpow_up
(self, exp: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:196
↓ 2 callersMethodpow_up_v3
(self, exp: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:203
↓ 2 callersMethodpre_interactions
(&self)
crates/driver/src/domain/competition/solution/mod.rs:274
↓ 2 callersMethodprecision
(&self)
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:130
↓ 2 callersFunctionprepare_request
( chain_id: String, tx: &TransactionRequest, overrides: StateOverride, block: BlockNo, )
crates/simulator/src/tenderly/mod.rs:216
↓ 2 callersMethodpresign_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 callersMethodprice
Lamports per 10^9 atoms of `token`, the unit the autopilot prices auctions in.
crates/solana-orderbook/src/infra/prices.rs:52
↓ 2 callersMethodprice
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 callersFunctionprice_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 callersMethodprice_estimator
( &mut self, solvers: &[ExternalSolver], native: Arc<dyn NativePriceEstimating>,
crates/price-estimation/src/factory.rs:393
↓ 2 callersFunctionprice_improvement
( trade: &Trade, quote: &domain::fee::Quote, )
crates/autopilot/src/domain/settlement/trade/math.rs:513
↓ 2 callersFunctionpriced
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 callersFunctionpriced_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 callersMethodprioritize
(&'a self, operation: T)
crates/gas-price-estimation/src/priority.rs:39
↓ 2 callersFunctionpriority_fee
()
crates/solana-driver/src/domain/settlement.rs:1361
↓ 2 callersMethodproduce_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 callersFunctionprogram_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 callersFunctionprotocol_fee_test_case
(test_case: TestCase)
crates/driver/src/tests/cases/jit_orders.rs:58
↓ 2 callersFunctionprotocol_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 callersMethodprotocol_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 callersFunctionprotocol_volume_fees
The volume fees of the first rule that matched, the one the engine charges.
crates/orderbook/src/fee_engine.rs:249
↓ 2 callersFunctionpubkey
(byte: u8)
crates/solana-driver/src/infra/api/routes/solve/dto/solve_request.rs:277
↓ 2 callersFunctionpubkey
(byte: u8)
crates/solana-driver/src/domain/protocol_fee.rs:113
↓ 2 callersFunctionpubkey
(byte: u8)
crates/solana-driver/src/domain/solver_fee.rs:161
↓ 2 callersFunctionpublish
(venues: &Venues, block_number: u64, sender: &watch::Sender<Snapshot>)
crates/simulator/src/state_override_stream.rs:498
↓ 2 callersFunctionput_app_data
( addr: SocketAddr, path: &str, document: &str, )
crates/solana-orderbook/tests/api.rs:4249
↓ 2 callersMethodquality_based_on_stats
(&self, stats: &OrderStatistics)
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:86
↓ 2 callersFunctionquery_fields
(query: &Query)
crates/price-estimation/src/competition/quote.rs:334
↓ 2 callersMethodqueue_settlement
(&self, settlement: Settlement)
crates/driver/src/domain/competition/mod.rs:613
↓ 2 callersFunctionquote
(sell_amount: u64, buy_amount: u64, execution_cost: u64)
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:1322
↓ 2 callersFunctionquote
(router: axum::Router<State>)
crates/driver/src/infra/api/routes/quote/mod.rs:13
↓ 2 callersFunctionquote
A quote that buys `buy_amount` for the 1000 sold of `order`.
crates/autopilot/src/fee_engine.rs:409
↓ 2 callersMethodquote_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 callersMethodquote_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 callersMethodquote_fees
The protocol volume fees for the order a quote describes.
crates/orderbook/src/fee_engine.rs:70
↓ 2 callersFunctionquote_kind_from_signing_scheme
(scheme: &QuoteSigningScheme)
crates/shared/src/order_quoting.rs:950
↓ 2 callersFunctionquote_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 callersMethodquote_outcome
( &self, order: &Order, quote: &Quote, app_data: &ValidatedAppData, ap
crates/orderbook/src/fee_engine.rs:145
↓ 2 callersFunctionquote_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 callersFunctionquoted
()
crates/solana-orderbook/src/infra/verifier.rs:679
↓ 2 callersFunctionquoted_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 callersMethodquotes
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 callersFunctionratio_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 callersFunctionrational_to_big_decimal
(value: &Ratio<T>)
crates/number/src/conversions.rs:18
← previousnext →1,901–2,000 of 10,776, ranked by callers