MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 1 callersMethodquery
(&mut self)
crates/leader-lock/src/leader_pg_lock.rs:188
↓ 1 callersFunctionquery_order_refund_status
Queries on-chain refund status for a single order. Returns `None` if the status query fails. Marks orders as `Invalid` if the owner cannot receive ET
crates/refunder/src/refund_service.rs:48
↓ 1 callersMethodquery_timeout
How long a query may take before it fails: 5 s. 2 s between pings plus 5 s stays under the leader's 8 s, so a stuck ping fails first.
crates/leader-lock/src/leader_pg_lock.rs:162
↓ 1 callersMethodquery_without_retry
( &self, query: &str, variables: &Option<Map<String, Value>>, )
crates/liquidity-sources/src/subgraph.rs:63
↓ 1 callersFunctionquiet_blocks
Whether `n` blocks in a row pass without a new auction id.
crates/e2e/tests/e2e/autopilot_leader.rs:318
↓ 1 callersFunctionquote
Handle `POST /quote`: solve a one-order auction and answer with the executed amounts of its best route, the network fee of settling them and, for a re
crates/solana-driver/src/infra/api/routes/quote/mod.rs:28
↓ 1 callersFunctionquote
Ask the driver to sell the probe into `token`. An error is the `price_estimates` result the failure counts as: `QuotingFailed` means no route, 429 rat
crates/autopilot-svm/src/infra/prices.rs:796
↓ 1 callersFunctionquote
(sell_amount: u64, buy_amount: u64)
crates/autopilot-svm/src/domain/fee.rs:135
↓ 1 callersMethodquote
Quote `order` for the settlement signer `taker`. `/swap` needs the taker to build the route.
crates/solana-solvers/src/dex/bitget/mod.rs:50
↓ 1 callersMethodquote
( &self, order: &dex::Order, taker: &Pubkey, )
crates/solana-solvers/src/domain/solver/mod.rs:37
↓ 1 callersMethodquote
Generate a quote for this order. This calls `/solve` on the solver with a "fake" auction which contains a single order, and then determines the quote
crates/driver/src/domain/quote.rs:156
↓ 1 callersMethodquote
Quote an order using a UniswapV2 pool unless it already has concrete amounts. This determines the buy and sell amount of the order in the auction.
crates/driver/src/tests/setup/blockchain.rs:696
↓ 1 callersMethodquoteExactInputSingle
( data: &[u8], )
contracts/generated/contracts-generated/uniswapv3quoterv2/src/lib.rs:2291
↓ 1 callersMethodquoteExactOutputSingle
( data: &[u8], )
contracts/generated/contracts-generated/uniswapv3quoterv2/src/lib.rs:2272
↓ 1 callersFunctionquote_amounts
Quotes 1000 USDT into WETH, returning the amount out.
crates/simulator/src/state_override_stream.rs:1328
↓ 1 callersFunctionquote_auction
The single-order auction a quote is solved in. Everything beyond the pair and the amount is a placeholder: the settlement answered fills an order of t
crates/solana-driver/src/infra/api/routes/quote/mod.rs:96
↓ 1 callersMethodquote_expiry
How long the quoted amounts are honored.
crates/solana-orderbook/src/infra/api/mod.rs:281
↓ 1 callersMethodquote_id_for
The id the winning estimate's quote is stored under: the id its solver was asked with, or a freshly allocated one for quotes no solver was asked for (
crates/shared/src/order_quoting.rs:652
↓ 1 callersFunctionquote_ids_sent
(hits: &std::sync::Mutex<Vec<String>>)
crates/price-estimation/src/trade_finding/external.rs:402
↓ 1 callersFunctionquote_of
(in_amount: u64, out_amount: u64)
crates/solana-solvers/src/domain/solver/mod.rs:502
↓ 1 callersMethodquote_one
Quote `order` on one driver. A failure is logged, counted and returned as its `price_estimates` result: a `QuotingFailed` reply means no route, which
crates/solana-orderbook/src/infra/quoter.rs:197
↓ 1 callersFunctionquote_req
Create a request for the driver /quote endpoint.
crates/driver/src/tests/setup/driver.rs:204
↓ 1 callersMethodquote_settlement
The unsigned settlement of `solution`, filling `owner`'s order of the executed amounts in place of the placeholder `quoted`.
crates/solana-driver/src/domain/competition.rs:622
↓ 1 callersMethodquote_tx_origin
(&self)
crates/driver/src/infra/solver/mod.rs:362
↓ 1 callersMethodquote_volume_fee
( &self, order: &Order, _: &Quote, _: &ValidatedAppData, _: Option<&st
crates/shared/src/fee.rs:319
↓ 1 callersFunctionquoted
Observe the result of quoting an auction.
crates/driver/src/infra/observe/mod.rs:262
↓ 1 callersMethodquoter
The driver that quotes orders.
crates/solana-orderbook/src/infra/api/mod.rs:266
↓ 1 callersFunctionquotes
(drivers: Vec<Url>)
crates/solana-orderbook/src/infra/quoter.rs:374
↓ 1 callersMethodquotes
All quotes sorted from best to worst. Guaranteed to be non-empty.
crates/shared/src/order_quoting.rs:338
↓ 1 callersFunctionquoting
Observe that the quoting process is about to start.
crates/driver/src/infra/observe/mod.rs:464
↓ 1 callersFunctionrandom_fulfillment
A partially filled fulfillment on either side with a fee already in it, at uniform prices that mostly put it over its limit and sometimes under, the l
crates/driver/src/domain/competition/solution/fee.rs:658
↓ 1 callersFunctionrandom_policy
(rng: &mut StdRng)
crates/protocol-fees/src/tests.rs:186
↓ 1 callersFunctionrandom_policy
(rng: &mut StdRng)
crates/driver/src/domain/competition/solution/fee.rs:625
↓ 1 callersFunctionrandom_policy
(rng: &mut StdRng)
crates/driver/src/domain/competition/solution/scoring.rs:565
↓ 1 callersFunctionrandom_policy
(rng: &mut StdRng)
crates/autopilot/src/domain/settlement/trade/math.rs:621
↓ 1 callersFunctionrandom_trade
A trade on either side at a random price vector: the legs scaled by a random factor, so the custom prices are not the legs themselves.
crates/driver/src/domain/competition/solution/scoring.rs:595
↓ 1 callersFunctionrandom_trade
A trade on either side with both price vectors at or over the limit, the uniform one at least as good for the user as the custom one, each as its legs
crates/autopilot/src/domain/settlement/trade/math.rs:650
↓ 1 callersFunctionrate_limited
( rate_limiter: Arc<RateLimiter>, estimation: impl Future<Output = Result<T, PriceEstimationError>>, )
crates/price-estimation/src/lib.rs:305
↓ 1 callersMethodrate_limiter
(&self, name: &str)
crates/price-estimation/src/factory.rs:177
↓ 1 callersFunctionray_div
Ray-division: `(a * RAY + b/2) / b`, round-half-up. Matches Aave's `WadRayMath.rayDiv` bit-for-bit so the scaled amount we write into storage equals t
crates/balance-overrides/src/balance/aave.rs:100
↓ 1 callersFunctionread_by_auction_ids
( ex: &mut PgConnection, auction_ids: &[AuctionId], )
crates/database/src/settlement_executions.rs:79
↓ 1 callersFunctionread_by_order_uid
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/order_execution.rs:64
↓ 1 callersMethodread_funding
What funds a simulated sell of the order's sell mint, read from the chain: its authority, or its largest holders once the authority is revoked.
crates/solana-orderbook/src/infra/verifier.rs:463
↓ 1 callersMethodread_holders
The unfrozen, wallet-owned token accounts among `accounts`, in order, with their owners and balances.
crates/solana-orderbook/src/infra/verifier.rs:556
↓ 1 callersFunctionread_line
(socket: &mut UnixStream)
crates/observe/src/heap_dump_handler.rs:246
↓ 1 callersFunctionread_line
(socket: &mut UnixStream)
crates/observe/src/tracing/reload_handler.rs:99
↓ 1 callersFunctionread_order
( ex: &mut PgConnection, uid: &OrderUid, )
crates/database/src/jit_orders.rs:185
↓ 1 callersFunctionread_pool
Connect the read pool: the replica URL wins when configured, and every connection gets the read statement timeout.
crates/solana-orderbook/src/run.rs:25
↓ 1 callersFunctionread_quote
Read one stored quote. `None` when the id is unknown.
crates/solana-orderbook/src/infra/db.rs:744
↓ 1 callersMethodreason
(&self)
crates/autopilot/src/fast_path.rs:579
↓ 1 callersFunctionreceivable_native_payout
Whether `wallet` can take the order's native SOL payout. A credit that leaves a wallet under its rent-exempt minimum reverts the settlement, so a wall
crates/autopilot-svm/src/infra/provider.rs:581
↓ 1 callersFunctionreceivable_orders
Drop orders whose buy token account cannot receive the payout at `FinalizeSettle` and is not the missing associated token account of the wallet it bel
crates/autopilot-svm/src/infra/provider.rs:214
↓ 1 callersMethodreceiver
(&self)
crates/driver/src/domain/competition/solution/trade.rs:102
↓ 1 callersMethodreceiver
The address which will receive the output of this order. If a custom receiver address was specified by the user explicitly, return that address. Other
crates/driver/src/domain/competition/order/mod.rs:165
↓ 1 callersFunctionrecord
(tx: &mut PgTransaction<'_>, label: database::solana::OrderEventLabel)
crates/autopilot-svm/src/infra/db.rs:1371
↓ 1 callersMethodrecord_dead_creations
Record each pending sponsored order the cut drops for a dead creation, once: an `invalid` event and an info line, the same record a creation found dea
crates/autopilot-svm/src/infra/provider.rs:137
↓ 1 callersMethodrecord_into_liquidity
Turns 0x OrderRecord into liquidity which solvers can use.
crates/solver/src/liquidity/zeroex.rs:55
↓ 1 callersMethodrecord_override_result
(&self, result: OverrideResult)
crates/simulator/src/state_override_stream.rs:538
↓ 1 callersMethodrecord_skipped
Record a winner skipped before dispatch. Its window closes as rejected right away, which frees its orders for the next cut.
crates/autopilot-svm/src/infra/observation.rs:118
↓ 1 callersFunctionrecover_flashloans_and_wrappers
( order: &competition::Order, )
crates/driver/src/domain/competition/solution/mod.rs:112
↓ 1 callersFunctionrecover_jit_order_owner
Recovers the owner and signature from a `JitOrder`.
crates/price-estimation/src/trade_verifier.rs:926
↓ 1 callersMethodreduce_next_try
Adjusts the next fill amount that should be tried. Always halves the last tried amount.
crates/solvers/src/domain/solver/dex/fills.rs:140
↓ 1 callersMethodreencode_quote_solution
( &self, auction_id: auction::Id, quote_id: crate::domain::quote::Id, mut orde
crates/driver/src/domain/competition/mod.rs:565
↓ 1 callersFunctionreference_scores
( ex: &mut PgConnection, auction_id: i64, )
crates/e2e/tests/e2e/database.rs:106
↓ 1 callersMethodrefresh
One refresher pass: refetch the maintained tokens nearing expiry, so lookups keep hitting fresh entries. A failed pass only logs, the entries then exp
crates/autopilot-svm/src/infra/prices.rs:345
↓ 1 callersFunctionrefuses_non_confidential_credits
Whether the account's confidential transfer extension refuses credits to its regular balance.
crates/solana-token/src/lib.rs:299
↓ 1 callersFunctionregister
Registers metrics in the global registry, e.g. from the `OnceLock` that holds a metrics struct. The lock is not re-entrant, so the closure must not in
crates/observe/src/client_metrics.rs:26
↓ 1 callersFunctionregister_anvil_accounts
Registers accounts pre-funded by anvil in the wallet.
crates/e2e/src/setup/mod.rs:240
↓ 1 callersFunctionregistry_venue
`venue` quoting `lanes` of the shared registry.
crates/simulator/src/state_override_stream.rs:645
↓ 1 callersMethodregular_swap_given_in
Comes from `_onRegularSwap(true, ...)`: https://etherscan.io/address/0xf9ac7B9dF2b3454E841110CcE5550bD5AC6f875F#code#F2#L270
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:224
↓ 1 callersMethodregular_swap_given_out
Comes from `_onRegularSwap(false, ...)`: https://etherscan.io/address/0xf9ac7B9dF2b3454E841110CcE5550bD5AC6f875F#code#F2#L270
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:252
↓ 1 callersFunctionreject_settlement_window
Close a window whose settlement provably never reached the chain. The window spans no slots, so it ends where it started. Only an open window closes:
crates/autopilot-svm/src/infra/db.rs:270
↓ 1 callersMethodrelative
Returns the minimum surplus for the specified token amount.
crates/solvers/src/domain/dex/minimum_surplus.rs:30
↓ 1 callersMethodrelevant_pairs
All pool token pairs that could be used along a path candidate for these token pairs.
crates/liquidity-sources/src/base_tokens.rs:37
↓ 1 callersMethodremaining_maker_amount
Scales the `maker_amount` according to how much of the partially fillable amount was already used.
crates/liquidity-sources/src/zeroex.rs:223
↓ 1 callersMethodremaining_stages
(&self)
crates/price-estimation/src/competition/mod.rs:194
↓ 1 callersMethodremoveSolver
( data: &[u8], )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1503
↓ 1 callersMethodremove_cached_blocks_older_than
(&mut self, oldest_to_keep: u64)
crates/liquidity-sources/src/recent_block_cache.rs:485
↓ 1 callersFunctionrender
Serialize the driver config for a colocated test driver to a TOML string.
crates/e2e/src/setup/colocation/driver_config.rs:9
↓ 1 callersFunctionreplace_current_auction
Replace the current auction and answer the id its identity column allocated, the source of sequential auction ids.
crates/autopilot-svm/src/infra/db.rs:507
↓ 1 callersMethodreplace_current_auction
( &self, new_auction_id: dto::AuctionId, json: Bytes, )
crates/autopilot/src/database/auction.rs:124
↓ 1 callersFunctionreplace_events
( transaction: &mut PgTransaction<'_>, events: Vec<(GPv2SettlementEvents, Log)>, from_block: u64,
crates/autopilot/src/database/events.rs:95
↓ 1 callersMethodreplace_order
Replaces the `old_order` with `validated_new_order` in the database (cancels the old one and inserts the new one), but not before performing some vali
crates/orderbook/src/orderbook.rs:461
↓ 1 callersFunctionreport
Logs the fee policies if they disagree, and counts the outcome.
crates/autopilot/src/fee_engine.rs:170
↓ 1 callersFunctionreport_winner_by_name
Logs the winning estimate and, if it is a quote, counts the win for its estimator.
crates/price-estimation/src/competition/mod.rs:166
↓ 1 callersFunctionrequest
(uid: &str)
crates/orderbook/src/api.rs:689
↓ 1 callersMethodrequest
( &self, url: Url, set_current_block_header: bool, )
crates/liquidity-sources/src/zeroex.rs:416
↓ 1 callersMethodrequest_batch
(&self, batch: &[(B256, Address)])
crates/order-validation/src/banned/hermod.rs:178
↓ 1 callersFunctionrequest_sent
()
crates/solvers/src/infra/metrics.rs:52
↓ 1 callersMethodrequests_for_order
(&self, order: &Order)
crates/solvers/src/domain/solver/baseline.rs:273
↓ 1 callersMethodrequired_balance
The balance required to ensure settlement execution with the given gas parameters.
crates/driver/src/domain/competition/solution/settlement.rs:449
↓ 1 callersFunctionrequires_cancellation
Whether a submitted settlement whose receipt is missing should be cancelled. We cancel only when the re-simulation reverts and the signer's pending no
crates/driver/src/domain/mempools.rs:650
↓ 1 callersMethodrequires_setup
A signature check requires setup when there are interactions to be taken into account or when the balance override is set. Interactions require setup
crates/signature-validator/src/lib.rs:53
↓ 1 callersMethodresend_transaction
Send a transaction again, without the preflight simulation and without the node's own rebroadcasts. A copy of a transaction the cluster already proces
crates/cow-solana-rpc/src/lib.rs:460
↓ 1 callersMethodreserves_without_bpt
This method returns an iterator over the stable pool reserves while filtering out the BPT token for the pool (i.e. the pool address). This is used bec
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:183
↓ 1 callersMethodreset_requests_complete
(&self, method: &str, path: &str)
crates/solana-orderbook/src/infra/api/mod.rs:453
↓ 1 callersMethodreset_requests_complete
(&self, method: &str, path: &str)
crates/orderbook/src/api.rs:401
↓ 1 callersMethodreset_requests_rejected
(&self)
crates/solana-orderbook/src/infra/api/mod.rs:445
↓ 1 callersMethodreset_requests_rejected
(&self)
crates/orderbook/src/api.rs:393
↓ 1 callersMethodresimulate_until_revert
Re-simulate all proposed solutions on every new block and drop any that start reverting. Returns once every solution has reverted; otherwise runs fore
crates/driver/src/domain/competition/mod.rs:623
← previousnext →3,401–3,500 of 10,776, ranked by callers