MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,736 in github.com/cowprotocol/services

↓ 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 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 callersMethodreset_skipped_rule_counters
Publishes the skip counter of every rule at zero, so that the first skip of a rule shows as an increase.
crates/fee-engine/src/report.rs:90
↓ 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:126
↓ 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
↓ 2 callersFunctionsign_authorization
( config: &Config, chain_id: u64, delegate: Address, auth_nonce: u64, )
crates/driver/src/infra/solver/eip7702.rs:447
↓ 2 callersMethodsign_transaction
Returns a signed transaction ready for execution.
crates/e2e/src/setup/onchain_components/safe.rs:155
↓ 2 callersMethodsign_with
Sets owner, uid, signature.
crates/model/src/order.rs:148
↓ 2 callersFunctionsignature
(signature: &order::Signature)
crates/driver/src/domain/competition/solution/encoding.rs:463
↓ 2 callersMethodsignature
( &self, domain_separator: &eth::DomainSeparator, )
crates/driver/src/infra/solver/dto/solution.rs:320
↓ 2 callersFunctionsignature_bytes
(n: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:43
↓ 2 callersFunctionsigned_creation_tx
`instructions` as a creation transaction with the funder as fee payer and the owner signed when `sign`.
crates/solana-orderbook/tests/api.rs:2144
↓ 2 callersMethodsigner
The solver's settlement signer.
crates/solana-driver/src/infra/solver/mod.rs:53
↓ 2 callersFunctionsigners
The accounts a transaction requires signatures from.
crates/solana-orderbook/src/infra/verifier.rs:585
↓ 2 callersMethodsigning_scheme
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:90
↓ 2 callersMethodsimulate
( &self, check: SignatureCheck, )
crates/signature-validator/src/simulation.rs:93
↓ 2 callersMethodsimulate
( &self, owner: Address, token: Address, source: SellTokenSource, inte
crates/account-balances/src/lib.rs:135
↓ 2 callersMethodsimulateDelegatecall
( data: &[u8], )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4353
↓ 2 callersMethodsimulate_and_share
(&self, request: dto::Request)
crates/simulator/src/tenderly/mod.rs:196
↓ 2 callersMethodsimulate_bundle
See [`SolanaRPC::simulate_bundle`].
crates/solana-driver/src/infra/blockchain/mod.rs:198
↓ 2 callersMethodsimulate_unsigned_transaction
See [`SolanaRPC::simulate_unsigned_transaction`].
crates/solana-driver/src/infra/blockchain/mod.rs:185
↓ 2 callersMethodsimulate_with_tenderly_report
Same as [`EthCallInputs::simulate`] but also generates a tenderly request in case one wants to re-simulate with tenderly. If tenderly credentials are
crates/simulator/src/simulation_builder.rs:520
↓ 2 callersFunctionsimulation_failed
( solver: &Solver, auction_id: Option<auction::Id>, solution_id: &solution::Id, err: &simulato
crates/driver/src/infra/notify/mod.rs:86
↓ 2 callersFunctionsimulation_fails_to_run
()
crates/shared/src/order_validation.rs:3591
← previousnext →2,001–2,100 of 10,736, ranked by callers