MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 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:899
↓ 2 callersFunctionread_competition
( pool: &PgPool, auction_id: i64, hide_before_deadline: bool, )
crates/solana-orderbook/src/infra/db.rs:567
↓ 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:880
↓ 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 callersFunctionreference_quote
The quote an order selling `sell_amount` is classed and measured against: its linked quote, or without one the zero-buy reference quote, as on EVM, wh
crates/autopilot-svm/src/domain/fee.rs:85
↓ 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 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:798
↓ 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
↓ 2 callersMethodrequired_output
The least swap output that still funds `payouts`. Rounds up, so the payer never covers more than the capped share.
crates/solana-driver/src/domain/settlement.rs:872
↓ 2 callersMethodresolve
The resolution cached under the auction id, or `resolve`'s result stored under it. Resolvers arriving while one is in flight wait for its result inste
crates/solana-driver/src/domain/buy_token_accounts.rs:51
↓ 2 callersFunctionresolve_accounts
Resolve an instruction's account indexes into the transaction's keys.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:894
↓ 2 callersFunctionresponse
( order: &Order, taker: &Pubkey, token_program: &Pubkey, extra_signer: Option<
crates/solana-solvers/src/dex/bitget/dto.rs:198
↓ 2 callersFunctionresponse_with_orders
(orders: &[String])
crates/autopilot/src/infra/solvers/dto/solve.rs:515
↓ 2 callersFunctionretain_valid_orders
(orders: &mut Vec<OrderRecord>)
crates/liquidity-sources/src/zeroex.rs:402
↓ 2 callersFunctionretry_with_sleep_if
Retry only when `should_retry(&err)` returns true.
crates/shared/src/retry.rs:18
↓ 2 callersFunctionrevert_settlement_window
Close a window whose settlement landed and failed on chain, as the driver reported: the transaction cannot land again. A timed-out window closes too,
crates/autopilot-svm/src/infra/db.rs:296
↓ 2 callersFunctionrich_error
( error_type: &'static str, description: impl AsRef<str>, data: impl Serialize, )
crates/orderbook/src/api.rs:429
↓ 2 callersFunctionroute
Append a path to a configured base URL. `Url::join` resolves relative to the last slash and would drop a final path segment of a base configured witho
crates/autopilot-svm/src/infra/prices.rs:650
↓ 2 callersFunctionrouter
(pool: &ConstantProductOrder)
crates/driver/src/boundary/liquidity/uniswap/v2.rs:49
↓ 2 callersMethodrow
The quote as stored, like the EVM orderbook's: the route at the amount `request` fixes, with its network fee and the native prices apart. The buy toke
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:212
↓ 2 callersFunctionrpc
Creates a node RPC instance.
crates/solvers/src/infra/blockchain.rs:2
↓ 2 callersFunctionrule
One `[[rule]]` table.
crates/fee-engine/tests/load.rs:45
↓ 2 callersMethodrun_forever
(mut self)
crates/autopilot/src/shadow.rs:75
↓ 2 callersMethodrun_once
(&self)
crates/pool-indexer/src/indexer/uniswap_v3.rs:187
↓ 2 callersFunctionrun_with
Run the driver. This function exists to avoid multiple monomorphizations of the `run` code, which bloats the binaries and increases compile times.
crates/driver/src/run.rs:50
↓ 2 callersFunctionrun_with
(args: cli::Args, bind: Option<oneshot::Sender<SocketAddr>>)
crates/solvers/src/run.rs:26
↓ 2 callersFunctionsample_rules
()
crates/fee-engine/src/evaluator.rs:189
↓ 2 callersFunctionsatisfies
Whether trading `in_amount` for `out_amount` fills `order` at or better than its limit price. The same inclusive cross-multiplication as the settleme
crates/solana-solvers/src/dex/mod.rs:120
↓ 2 callersFunctionsatisfies_limit_price
Mirrors the on-chain settlement contract's limit-price constraint: `executed_sell * signed_buy <= executed_buy * signed_sell` The same check works fo
crates/shared/src/fee.rs:215
↓ 2 callersFunctionsave
(ex: &mut PgConnection, auction: Auction)
crates/database/src/auction.rs:76
↓ 2 callersFunctionsave_competition
( ex: &mut PgConnection, quote_id: QuoteId, competition: serde_json::Value, )
crates/database/src/fast_path.rs:37
↓ 2 callersFunctionsave_quote
Stores a quote (and, for fast-path quotes, its staged competition data).
crates/shared/src/quote_storage.rs:63
↓ 2 callersFunctionsave_solutions
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:267
↓ 2 callersFunctionsave_trade_executions
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:295
↓ 2 callersMethodscalar_mul
(&self, scalar: U256)
crates/number/src/ratio_ext.rs:24
↓ 2 callersMethodscaled
The legs for `open` of the order-side target, the other leg scaled in proportion. Rounds like the EVM driver, the sell leg down and the buy leg up, so
crates/solana-driver/src/domain/auction.rs:326
↓ 2 callersMethodscaled
The legs for `open` of the order-side target, the other leg scaled in proportion. Rounds like the driver, the sell leg down and the buy leg up, so the
crates/autopilot-svm/src/domain/auction.rs:121
↓ 2 callersFunctionscaling_factor_from_decimals
Converts a token decimal count to its corresponding scaling factor.
crates/liquidity-sources/src/balancer_v2/pools/common.rs:301
↓ 2 callersFunctionschedule_auction_impl
Decides how to run an auction starting at `now`. If the solve deadline is synced to the blockchain it is picked to end shortly before the next block
crates/autopilot/src/run_loop.rs:864
↓ 2 callersMethodschedules_update
Whether entries requested at this block get kept up to date by the background task.
crates/liquidity-sources/src/recent_block_cache.rs:84
↓ 2 callersMethodscope
(&self, order: OrderView)
crates/fee-engine/src/evaluator.rs:123
↓ 2 callersFunctionscore
Observe the settlement score.
crates/driver/src/infra/observe/mod.rs:168
↓ 2 callersFunctionscore_by_token_pair
Returns the total scores for each directed token pair of the solution. E.g. if a solution contains 3 orders like: sell A for B with a score of 10 sell
crates/winner-selection/src/arbitrator.rs:294
↓ 2 callersMethodscoring
JIT score calculation.
crates/driver/src/domain/competition/solution/mod.rs:309
↓ 2 callersMethodseed_uni_v2_pool
( &self, asset_a: (&MintableToken, U256), asset_b: (&MintableToken, U256), )
crates/e2e/src/setup/onchain_components/mod.rs:442
↓ 2 callersMethodseed_weth_uni_v2_pools
( &self, tokens: impl IntoIterator<Item = &MintableToken>, token_amount: U256,
crates/e2e/src/setup/onchain_components/mod.rs:377
↓ 2 callersMethodsell
(&self)
crates/driver/src/domain/competition/solution/trade.rs:61
↓ 2 callersFunctionsell_amount
Calculate effective sell amount (what left user's wallet).
crates/protocol-fees/src/lib.rs:573
↓ 2 callersFunctionsell_amount
(trade: &Trade)
crates/driver/src/domain/competition/solution/scoring.rs:418
↓ 2 callersFunctionsell_amount
(trade: &Trade)
crates/autopilot/src/domain/settlement/trade/math.rs:438
↓ 2 callersMethodsell_token
(&self)
crates/autopilot/src/domain/settlement/trade/mod.rs:84
↓ 2 callersFunctionsell_token_account_json
A canned `getMultipleAccounts` entry: an initialized account of the classic SPL token program holding `amount` of `mint`, with `approved` of it delega
crates/autopilot-svm/src/tests.rs:123
↓ 2 callersMethodsell_token_balance
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:72
↓ 2 callersFunctionsend
(limit_bytes: usize, req: reqwest::RequestBuilder)
crates/driver/src/util/http.rs:7
↓ 2 callersFunctionsend
Sends a `/solve` request to a driver that does or doesn't accept compression and returns what the driver received.
crates/autopilot/src/infra/solvers/mod.rs:334
↓ 2 callersMethodsend_get_request
( &self, base_url: &reqwest::Url, signature_base_url: &reqwest::Url, endpoint:
crates/solvers/src/infra/dex/okx/mod.rs:406
↓ 2 callersMethodsend_post_request
(&self, endpoint: &str, body: &T)
crates/solvers/src/infra/dex/bitget/mod.rs:390
↓ 2 callersMethodserialize
(&self, serializer: S)
crates/app-data/src/app_data.rs:215
↓ 2 callersFunctionserialized
A field typed as its API JSON, e.g. an enum as its name; absent if `null`.
crates/fee-engine/src/order_view/mod.rs:96
↓ 2 callersMethodset_access_list
(self, access_list: AccessList)
crates/driver/src/domain/blockchain.rs:46
↓ 2 callersFunctionset_finalized_slot
(pool: &PgPool, slot: i64)
crates/autopilot-svm/src/infra/order_execution.rs:478
↓ 2 callersFunctionset_limit
(units: u32)
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:1261
↓ 2 callersFunctionset_placement_error
( ex: &mut PgConnection, uid: &OrderUid, error: OnchainOrderPlacementError, )
crates/database/src/onchain_broadcasted_orders.rs:68
↓ 2 callersMethodset_simulation_overrides
(&mut self, overrides: SimulationOverrides)
crates/simulator/src/lib.rs:77
↓ 2 callersFunctionset_tracing_subscriber
(config: &Config)
crates/observe/src/tracing/init.rs:53
↓ 2 callersMethodset_usd_price
Sets the latest native price of the USD reference token. Staleness (i.e. this not being called) is monitored via the last update metric.
crates/autopilot/src/domain/penalty_cap.rs:81
↓ 2 callersFunctionset_valid_from
( ex: &mut PgConnection, uid: &OrderUid, valid_from: u32, )
crates/database/src/orders.rs:242
↓ 2 callersFunctionsettle_order_through_proxy
Settles a single order with the autopilot talking to the driver through a proxy that records every `/solve` request, and returns what it recorded.
crates/e2e/tests/e2e/solve_request_compression.rs:104
↓ 2 callersMethodsettle_request
POST `request` (built from the computed submission deadline) to the driver's `endpoint` and record the resulting balance changes.
crates/driver/src/tests/setup/mod.rs:1246
↓ 2 callersMethodsettle_submission_deadline
Set the maximum number of blocks to wait for a settlement to appear on chain.
crates/driver/src/tests/setup/mod.rs:905
↓ 2 callersMethodsettle_with_solver
(&self, solver_name: &str, solution_id: u64)
crates/driver/src/tests/setup/mod.rs:1193
↓ 2 callersMethodsettlement
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:119
↓ 2 callersFunctionsettling
Observe that the settlement process is about to start.
crates/driver/src/infra/observe/mod.rs:210
↓ 2 callersFunctionsetup_registry_reentrant
Like [`setup_registry`], but can be called multiple times in a row. Later calls are ignored. Useful for tests.
crates/observe/src/metrics.rs:52
↓ 2 callersMethodshared_config
(&self)
crates/e2e/src/setup/services.rs:144
↓ 2 callersFunctionshared_origins
Origins that more than one of the URLs point at.
crates/autopilot/src/infra/solvers/mod.rs:36
↓ 2 callersMethodside
(&self)
crates/driver/src/domain/competition/solution/trade.rs:26
↓ 2 callersMethodside
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:60
↓ 2 callersMethodsign
Sign the message into a submittable transaction. The signer's key is the only one available, so the message must name it as its sole signer.
crates/cow-solana-signer/src/lib.rs:76
↓ 2 callersMethodsign
Creates an ECDSA signature with the [`Safe`]'s `owner` and encodes to bytes in the format expected by the Safe contract.
crates/e2e/src/setup/onchain_components/safe.rs:252
← previousnext →2,001–2,100 of 10,776, ranked by callers