MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 1 callersMethodsize_limit
Returns the size limit, in bytes, of an app-data document.
crates/orderbook/src/app_data.rs:52
↓ 1 callersMethodslippage
The slippage configuration of this solver.
crates/driver/src/infra/solver/mod.rs:314
↓ 1 callersMethodslot
The node's current slot at the client's commitment level.
crates/cow-solana-rpc/src/lib.rs:157
↓ 1 callersFunctionsol_uid
(n: u8)
crates/protocol-fees/src/tests.rs:33
↓ 1 callersMethodsolution_merging
(&self)
crates/driver/src/infra/solver/mod.rs:354
↓ 1 callersMethodsolution_stream
(&'a self, auction: &'a Auction)
crates/solana-solvers/src/domain/solver/mod.rs:115
↓ 1 callersMethodsolution_stream
( &'a self, auction: &'a auction::Auction, )
crates/solvers/src/domain/solver/dex/mod.rs:97
↓ 1 callersMethodsolution_uid
The solution UID associated with this settlement.
crates/autopilot/src/domain/settlement/mod.rs:87
↓ 1 callersMethodsolvable_orders_after
Computes solvable orders based on the latest observed block number, order creation timestamp, and minimum validity period.
crates/autopilot/src/infra/persistence/mod.rs:547
↓ 1 callersFunctionsolve
(router: axum::Router<State>)
crates/driver/src/infra/api/routes/solve/mod.rs:13
↓ 1 callersFunctionsolve
(auction: &auction::Auction)
crates/solvers/src/infra/metrics.rs:31
↓ 1 callersMethodsolve
Solve the auction, drop the solutions whose settlement provably fails (over the byte limit or failing in simulation), cut the execution costs from the
crates/solana-driver/src/domain/competition.rs:120
↓ 1 callersMethodsolve
( &self, auction: &Auction, liquidity: &[liquidity::Liquidity], )
crates/driver/src/infra/solver/mod.rs:395
↓ 1 callersMethodsolve
Solve an auction as part of this competition.
crates/driver/src/domain/competition/mod.rs:342
↓ 1 callersMethodsolve
(&self, _auction: &TestAuction)
crates/autopilot-svm/src/run_loop.rs:415
↓ 1 callersMethodsolve
Ask the driver for solutions to an auction.
crates/autopilot-svm/src/infra/driver/mod.rs:136
↓ 1 callersMethodsolve_batch
The solution for one batch, see [`Solver::solve`]. Rounds only price the batch; the swap is built once it clears.
crates/solana-solvers/src/domain/solver/mod.rs:205
↓ 1 callersFunctionsolve_error
(reason: &str)
crates/solvers/src/infra/metrics.rs:48
↓ 1 callersFunctionsolve_order
Sends a /solve request to the driver for a single order and returns the solution_id from the response.
crates/e2e/tests/e2e/parallel_settlement.rs:276
↓ 1 callersMethodsolve_order
( &self, order: &order::Order, tokens: &auction::Tokens, gas_price: auction::G
crates/solvers/src/domain/solver/dex/mod.rs:190
↓ 1 callersFunctionsolve_req
Create a request for the driver /solve endpoint.
crates/driver/src/tests/setup/driver.rs:110
↓ 1 callersFunctionsolve_requests
()
crates/autopilot/src/infra/solvers/mod.rs:320
↓ 1 callersFunctionsolved
Observe the result of solving an auction.
crates/driver/src/infra/observe/mod.rs:235
↓ 1 callersFunctionsolved
(deadline: &auction::Deadline, solutions: &[solution::Solution])
crates/solvers/src/infra/metrics.rs:41
↓ 1 callersMethodsolver
(&self)
crates/autopilot/src/domain/competition/mod.rs:41
↓ 1 callersFunctionsolver_delegate_address
(callers: [Address; 2])
crates/e2e/tests/e2e/parallel_settlement.rs:252
↓ 1 callersMethodsolver_fee
The volume-based solver fee, `None` when no fee is configured.
crates/solana-driver/src/infra/solver/mod.rs:68
↓ 1 callersFunctionsolver_of
The solver behind an estimate. `None` for the trivial ETH/WETH estimates the sanitized estimator answers itself: no solver produced those, and they ca
crates/price-estimation/src/competition/quote.rs:349
↓ 1 callersFunctionsolver_request
Observe that a request is about to be sent to the solver.
crates/driver/src/infra/observe/mod.rs:317
↓ 1 callersFunctionsolver_response
Observe that a response was received from the solver.
crates/driver/src/infra/observe/mod.rs:338
↓ 1 callersFunctionsolver_timeout
(solver: &Solver, auction_id: Option<auction::Id>)
crates/driver/src/infra/notify/mod.rs:12
↓ 1 callersFunctionsolver_volume_fees
The nonzero volume-based solver fees the solution's fills carry: in the buy mint for a sell order and the sell mint for a buy order. Not what the set
crates/solana-driver/src/domain/competition.rs:990
↓ 1 callersFunctionsolvers
(config: &config::Config, eth: &Ethereum)
crates/driver/src/run.rs:192
↓ 1 callersMethodsolvers
Remaining time until the deadline for solvers to return solution to driver is reached.
crates/driver/src/domain/time.rs:47
↓ 1 callersMethodspawn_maintenance_task
Spawns a background task that periodically refreshes near-expiry cache entries so callers rarely observe a cold miss. Holds a [`Weak`] handle so the t
crates/order-validation/src/banned/cached.rs:190
↓ 1 callersMethodspawn_maintenance_task
Spawns a background task continously processing the latest block. Returns a `[MaintenanceSync]` that handles waiting for a specific block to be proces
crates/autopilot/src/maintenance.rs:122
↓ 1 callersFunctionspawn_mock_driver
Serves `/solve` with one canned solution and records every `/solve` and `/settle`.
crates/autopilot-svm/src/tests.rs:90
↓ 1 callersFunctionspawn_pool_indexer
Spawns the pool-indexer task and waits for its `/health` endpoint to come up.
crates/e2e/tests/e2e/pool_indexer.rs:231
↓ 1 callersFunctionspawn_reload_handler
Spawns a new thread that listens for connections to a UNIX socket at "/tmp/log_filter_override_<process_name>_<pid>". Whenever a line gets written to
crates/observe/src/tracing/reload_handler.rs:14
↓ 1 callersFunctionspawn_server_on
Spawn the API server over `pool`, without sponsoring.
crates/solana-orderbook/tests/api.rs:3504
↓ 1 callersFunctionspawn_table_rows_metric
Refreshes `autopilot_table_rows` every minute. The first refresh waits a minute so the counts stay off the busy startup.
crates/autopilot-svm/src/infra/db.rs:816
↓ 1 callersMethodspecialize_pool_info
(&self, pool: common::PoolInfo)
crates/liquidity-sources/src/balancer_v2/pools/weighted.rs:72
↓ 1 callersMethodspecialize_pool_info
(&self, pool: common::PoolInfo)
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:85
↓ 1 callersFunctionsplit
Splits `orders`, all of one side and sorted most permissive first, into runs of up to `max_batch_size` whose quoted amounts sum within a `u64`, so eac
crates/solana-solvers/src/domain/solver/mod.rs:330
↓ 1 callersFunctionsplit_at_path
Splits a URL right where the path begins into base and endpoint. https://my.solver.xyz/solve/1?param=1#fragment=some becomes (https://my.solver.xyz/,
crates/shared/src/url.rs:22
↓ 1 callersFunctionstage_competition
( tx: &mut PgTransaction<'_>, quote_id: QuoteId, data: &QuoteCompetition, )
crates/shared/src/quote_storage.rs:110
↓ 1 callersFunctionstart
The driver entry-point. Parses command-line arguments and runs the driver.
crates/solana-driver/src/run.rs:33
↓ 1 callersFunctionstart
(args: impl Iterator<Item = String>)
crates/refunder/src/lib.rs:36
↓ 1 callersFunctionstart
Parse args and run the selected solver engine until shutdown.
crates/solana-solvers/src/run.rs:16
↓ 1 callersFunctionstart
The orderbook entry-point. Parses command-line arguments and runs the orderbook.
crates/solana-orderbook/src/run.rs:78
↓ 1 callersFunctionstart
(args: impl Iterator<Item = String>)
crates/pool-indexer/src/run.rs:19
↓ 1 callersFunctionstart
(args: impl Iterator<Item = String>)
crates/autopilot/src/run.rs:131
↓ 1 callersFunctionstart
(args: impl IntoIterator<Item = String>)
crates/solvers/src/run.rs:12
↓ 1 callersFunctionstart
The indexer entry point. Parses command line arguments and runs until a shutdown signal.
crates/solana-indexer/src/run.rs:62
↓ 1 callersFunctionstart
(args: impl Iterator<Item = String>)
crates/orderbook/src/run.rs:52
↓ 1 callersFunctionstart
The autopilot entry point. Parses command line arguments and runs until a shutdown signal.
crates/autopilot-svm/src/run.rs:82
↓ 1 callersFunctionstart_baseline_solver_with_solver_fee
( name: String, account: TestAccount, weth: Address, base_tokens: Vec<Address>, max_hops:
crates/e2e/src/setup/colocation.rs:47
↓ 1 callersMethodstart_or_get_tasks_for_auction
Aggregates all the data that is needed to pre-process the given auction. Uses a shared futures internally to make sure that the works happens only onc
crates/driver/src/domain/competition/pre_processing.rs:102
↓ 1 callersMethodstart_settlement_execution
Starts settlement execution in a background task. The function is async only to get access to the locks.
crates/autopilot/src/run_loop.rs:474
↓ 1 callersFunctionstart_solver
(config_file: TempPath, solver_name: String)
crates/e2e/src/setup/colocation.rs:81
↓ 1 callersFunctionstate_pda
The settlement state PDA delegations must target.
crates/solana-orderbook/tests/api.rs:1869
↓ 1 callersMethodstate_pda
The settlement state PDA: the delegate every sell token account must approve.
crates/autopilot-svm/src/infra/config.rs:286
↓ 1 callersMethodstore
Cache `solution` under `account` for a later fast-path settle.
crates/driver/src/domain/competition/quote_cache.rs:52
↓ 1 callersMethodstore_events_by_reason
( &self, orders: impl IntoIterator<Item = (OrderUid, OrderFilterReason)>, label: Order
crates/autopilot/src/solvable_orders.rs:491
↓ 1 callersMethodstore_execution_ended
Stores settlement execution ended event in the DB in a background task to not block the caller.
crates/autopilot/src/settle_call.rs:164
↓ 1 callersMethodstore_execution_started
Stores settlement execution started event in the DB in a background task to not block the caller.
crates/autopilot/src/settle_call.rs:134
↓ 1 callersFunctionstore_hooks
( db: &mut PgConnection, order: &Order, parsed: &ProtocolAppData, trampoline: &HooksTrampoline
crates/autopilot/src/database/onchain_order_events/mod.rs:786
↓ 1 callersMethodstore_order_events
Inserts an order event for each order uid in the given set. Unique order uids are required to avoid inserting events with the same label within the sa
crates/autopilot/src/infra/persistence/mod.rs:255
↓ 1 callersMethodstore_settlement_execution_ended
( &self, event: domain::settlement::ExecutionEnded, )
crates/autopilot/src/infra/persistence/mod.rs:971
↓ 1 callersMethodstore_settlement_execution_started
( &self, event: domain::settlement::ExecutionStarted, )
crates/autopilot/src/infra/persistence/mod.rs:938
↓ 1 callersMethodstrategy
(&self)
crates/rate-limit/src/lib.rs:108
↓ 1 callersMethodsubmission_accounts
Additional submission accounts for EIP-7702 parallel settlement.
crates/driver/src/infra/solver/mod.rs:384
↓ 1 callersMethodsubmission_deadline_latest_block
(&self)
crates/autopilot/src/settle_call.rs:47
↓ 1 callersFunctionsubmission_error
The error of a failed send or confirmation. Only a landed failure proves the transaction cannot land again.
crates/solana-driver/src/domain/competition.rs:1196
↓ 1 callersFunctionsubmission_max_fee_per_gas
The `max_fee_per_gas` the settlement will be submitted with, used to size the solver's required balance. Mirrors `apply_gas_fee_override`: with an ove
crates/driver/src/domain/competition/solution/settlement.rs:459
↓ 1 callersMethodsubmission_mode
(&self)
crates/driver/src/domain/competition/mod.rs:209
↓ 1 callersMethodsubmit
Signs the transaction and sends it to every builder, as one bundle for each block in `blocks`. Succeeds as long as one builder may hold a bundle, so t
crates/driver/src/infra/builders.rs:277
↓ 1 callersMethodsubmit_batch
( &mut self, uids: &[OrderUid], encoded_ethflow_orders: Vec<EthFlowOrder::Data>,
crates/refunder/src/submitter.rs:42
↓ 1 callersFunctionsubmitter
( config: &infra::Config, eth: &Ethereum, http_factory: &HttpClientFactory, )
crates/driver/src/run.rs:232
↓ 1 callersFunctionsubscribe_request
The wire-level filter shape: the two named transaction filters and the slot-status filter, multiplexed into a single subscription at `confirmed` commi
crates/solana-indexer/src/indexer/ingester.rs:328
↓ 1 callersMethodsuccessful_settlement_block
The block our successful `Settlement` event for `tx_hash` landed in, searching `[from_block, to_block]` inclusive, or `None` if it is not in that rang
crates/driver/src/infra/blockchain/mod.rs:308
↓ 1 callersMethodsummarize
Summarizes settlement data required by the autopilot, see [`SettlementMetrics`] for details.
crates/autopilot/src/domain/settlement/mod.rs:99
↓ 1 callersFunctionsurplus_at_legs
Surplus of the fill `order` describes over `limits`, measured on its executed legs. Equals `surplus_over` with the legs as prices, without multiplying
crates/protocol-fees/src/lib.rs:421
↓ 1 callersMethodsurplus_capturing_jit_order_owners
The owners whose JIT orders the associated auction treats like user orders.
crates/autopilot/src/domain/settlement/mod.rs:93
↓ 1 callersFunctionsurplus_fee
( surplus: eth::SurplusTokenAmount, factor: f64, )
crates/autopilot/src/domain/settlement/trade/math.rs:543
↓ 1 callersMethodsurplus_in_ether
Surplus of a trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:44
↓ 1 callersFunctionsurplus_over_limit_price_before_fee
( trade: &Trade, )
crates/autopilot/src/domain/settlement/trade/math.rs:394
↓ 1 callersFunctionsurplus_over_quote
( trade: &Trade, quote: &domain::fee::Quote, )
crates/autopilot/src/domain/settlement/trade/math.rs:524
↓ 1 callersFunctionsurplus_over_reference_price
( fulfillment: &Fulfillment, limit_sell: eth::U256, limit_buy: eth::U256,
crates/driver/src/domain/competition/solution/fee.rs:523
↓ 1 callersMethodswap
Build the swap for `quote` that the settlement signer `user` executes, at the quote's amounts. The route spends its input from the sell-mint ATA of t
crates/solana-solvers/src/dex/mod.rs:156
↓ 1 callersMethodswap
Build the swap for `quote` from the route it kept.
crates/solana-solvers/src/dex/bitget/mod.rs:90
↓ 1 callersMethodswap
( &self, quote: &dex::Quote, taker: &Pubkey, )
crates/solana-solvers/src/domain/solver/mod.rs:45
↓ 1 callersMethodswapFee
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4837
↓ 1 callersMethodswap_instructions
`POST /swap/v1/swap-instructions` for the given quote.
crates/solana-solvers/src/dex/jupiter/mod.rs:101
↓ 1 callersMethodsync_to_tip
(&self, _tip: &u64)
crates/autopilot-svm/src/run_loop.rs:382
↓ 1 callersFunctionsystem_account
(lamports: u64, data_len: usize)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:963
↓ 1 callersFunctiontakes_a_cut
Whether a fee schedule takes anything from a transfer: a rate in basis points under a positive cap.
crates/solana-token/src/lib.rs:140
↓ 1 callersMethodtarget_amount
(&self)
crates/solana-driver/src/infra/solver/dto/auction.rs:105
↓ 1 callersMethodtenderly
( config: &configs::simulator::TenderlyConfig, eth: Ethereum, http_factory: &HttpClien
crates/simulator/src/lib.rs:35
↓ 1 callersFunctiontest
Test that quoting works as expected, specifically, that we can quote for a token pair and additional gas from ERC-1271 and hooks are included in the q
crates/e2e/tests/e2e/quoting.rs:87
← previousnext →3,701–3,800 of 10,747, ranked by callers