MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 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:679
↓ 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:342
↓ 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:197
↓ 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:571
↓ 2 callersFunctionpick_solve_deadline_impl
Picks a `/solve` deadline that ends shortly before a block gets mined to maximize the chance that solutions get mined instantly. If the auction needs
crates/autopilot/src/run_loop.rs:778
↓ 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:651
↓ 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:261
↓ 2 callersMethodprice_estimator
( &mut self, solvers: &[ExternalSolver], native: Arc<dyn NativePriceEstimating>,
crates/price-estimation/src/factory.rs:392
↓ 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 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:523
↓ 2 callersFunctionput_app_data
( addr: SocketAddr, path: &str, document: &str, )
crates/solana-orderbook/tests/api.rs:3515
↓ 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
(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 callersFunctionquoted
()
crates/solana-orderbook/src/infra/verifier.rs:684
↓ 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:298
↓ 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
↓ 2 callersFunctionraw_interactions_into_model
( interactions: &[RawInteraction], )
crates/shared/src/db_order_conversions.rs:216
↓ 2 callersMethodraw_order_data
(&self)
crates/driver/src/infra/solver/dto/solution.rs:293
↓ 2 callersFunctionread_ata_rent
(accounts: &HashMap<Pubkey, Account>, mint: &Pubkey)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:760
↓ 2 callersFunctionread_competition
( pool: &PgPool, auction_id: i64, hide_before_deadline: bool, )
crates/solana-orderbook/src/infra/db.rs:475
↓ 2 callersFunctionread_order_interactions
( ex: &mut PgConnection, id: &OrderUid, execution: ExecutionTime, )
crates/database/src/orders.rs:1209
↓ 2 callersMethodread_state
(&self, pair: TokenPair, block: BlockId)
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:49
↓ 2 callersFunctionreceivable_native_payout
Whether `wallet` can take a native SOL payout of at least `buy_amount`. A credit that leaves a wallet under its rent-exempt minimum reverts the settle
crates/solana-orderbook/src/infra/api/routes/mod.rs:42
↓ 2 callersFunctionrecipient_receives
Whether the payout lands at `recipient`: any token account the settlement's plain transfer of `mint` can credit, whoever owns it. One it cannot is ref
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:741
↓ 2 callersMethodrecord_auction_overhead
Like [`Self::measure_auction_overhead`] but for a duration that was timed elsewhere (e.g. serialization cost isolated from transmission).
crates/observe/src/metrics.rs:210
↓ 2 callersMethodrecord_tick_range_delta
( &mut self, pool: Address, lower_tick: i32, upper_tick: i32, liquidit
crates/pool-indexer/src/indexer/uniswap_v3.rs:980
↓ 2 callersFunctionreference_quote
In case there is no quote, we assume 0 buy amount so that the order ends up being considered out of market price.
crates/autopilot/src/domain/fee/mod.rs:85
↓ 2 callersMethodrefresh
`None` (existing entry preserved) when `fetch_all` is uncertain — no positive confirmation and at least one backend failed.
crates/order-validation/src/banned/cached.rs:177
↓ 2 callersFunctionrefund
(order_uid: OrderUid)
crates/database/src/ethflow_orders.rs:231
↓ 2 callersFunctionregister
Store a document under its hash: `201` when new, `200` when the same document is stored already. The error names are the EVM orderbook's.
crates/solana-orderbook/src/infra/api/routes/app_data/mod.rs:52
↓ 2 callersFunctionregister_fee_functions
Binds the fee functions. Each returns a tagged map that [`fees_from_value`] turns into a [`Fee`] after the rule has run.
crates/fee-engine/src/fee.rs:132
↓ 2 callersMethodrelease
Releases the lock if this instance holds it. Called once the loop stops.
crates/autopilot-svm/src/leader_lock_tracker.rs:60
↓ 2 callersMethodremaining
The amounts still open to fill: the order-side target less `executed`, the other leg scaled in proportion. TODO: duplicate of `autopilot-svm`'s `Orde
crates/solana-driver/src/domain/auction.rs:287
↓ 2 callersMethodremaining
(self)
crates/driver/src/domain/time.rs:64
↓ 2 callersFunctionremove_expired_quotes
( ex: &mut PgConnection, max_expiry: DateTime<Utc>, )
crates/database/src/quotes.rs:178
↓ 2 callersFunctionremove_expired_quotes
Deletes the quotes that expired by `now`. Returns how many.
crates/autopilot-svm/src/infra/db.rs:776
↓ 2 callersMethodremove_pools_newer_than_block
Removes all pool creations from the specified block.
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:145
↓ 2 callersFunctionrent_per_byte
A rent of one lamport per byte, so a rent-exempt minimum reads as the account's length plus the 128-byte storage overhead.
crates/solana-token/src/lib.rs:580
↓ 2 callersMethodreplace_events
( &mut self, events: Vec<(T, alloy_rpc_types::Log)>, range: RangeInclusive
crates/event-indexing/src/event_handler.rs:723
↓ 2 callersMethodreplace_order
( &self, old_order: &model::order::OrderUid, new_order: &model::order::Order,
crates/orderbook/src/database/orders.rs:273
↓ 2 callersMethodreplay_events
Apply a replayed transaction's events and unpark it in one SQL transaction: the deletion goes first, so an apply that parks the transaction again wins
crates/solana-indexer/src/persistence.rs:530
↓ 2 callersFunctionreport
Logs the volume fees if they disagree, and counts the outcome.
crates/orderbook/src/fee_engine.rs:204
↓ 2 callersMethodreport_winner
( &self, query: &Q, kind: OrderKind, (index, result): &ResultWithIndex<R>,
crates/price-estimation/src/competition/mod.rs:152
↓ 2 callersFunctionrequest
(method: &'static str, id: u64)
crates/ethrpc/src/alloy/rpc_headers.rs:182
↓ 2 callersMethodrequest_response
( &self, path: &str, payload: Request, )
crates/autopilot/src/infra/solvers/mod.rs:176
← previousnext →1,901–2,000 of 10,747, ranked by callers