Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,747 in github.com/cowprotocol/services
⨍
Functions
10,747
◇
Types & classes
3,488
↓ 2 callers
Method
required_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 callers
Method
resolve
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 callers
Function
resolve_accounts
Resolve an instruction's account indexes into the transaction's keys.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:745
↓ 2 callers
Function
response
( order: &Order, taker: &Pubkey, token_program: &Pubkey, extra_signer: Option<
crates/solana-solvers/src/dex/bitget/dto.rs:198
↓ 2 callers
Function
response_with_orders
(orders: &[String])
crates/autopilot/src/infra/solvers/dto/solve.rs:515
↓ 2 callers
Function
retain_valid_orders
(orders: &mut Vec<OrderRecord>)
crates/liquidity-sources/src/zeroex.rs:402
↓ 2 callers
Function
retry_with_sleep_if
Retry only when `should_retry(&err)` returns true.
crates/shared/src/retry.rs:18
↓ 2 callers
Function
revert_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:293
↓ 2 callers
Function
rich_error
( error_type: &'static str, description: impl AsRef<str>, data: impl Serialize, )
crates/orderbook/src/api.rs:429
↓ 2 callers
Function
route
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:614
↓ 2 callers
Function
router
(pool: &ConstantProductOrder)
crates/driver/src/boundary/liquidity/uniswap/v2.rs:49
↓ 2 callers
Function
rpc
Creates a node RPC instance.
crates/solvers/src/infra/blockchain.rs:2
↓ 2 callers
Function
rule
One `[[rule]]` table.
crates/fee-engine/tests/load.rs:45
↓ 2 callers
Method
run_forever
(mut self)
crates/autopilot/src/shadow.rs:75
↓ 2 callers
Method
run_once
(&self)
crates/pool-indexer/src/indexer/uniswap_v3.rs:187
↓ 2 callers
Function
run_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 callers
Function
run_with
(args: cli::Args, bind: Option<oneshot::Sender<SocketAddr>>)
crates/solvers/src/run.rs:26
↓ 2 callers
Function
sample_rules
()
crates/fee-engine/src/evaluator.rs:189
↓ 2 callers
Function
satisfies
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 callers
Function
satisfies_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 callers
Function
save
(ex: &mut PgConnection, auction: Auction)
crates/database/src/auction.rs:76
↓ 2 callers
Function
save_competition
( ex: &mut PgConnection, quote_id: QuoteId, competition: serde_json::Value, )
crates/database/src/fast_path.rs:37
↓ 2 callers
Function
save_quote
Store a quote and return the id allocated for it.
crates/solana-orderbook/src/infra/db.rs:600
↓ 2 callers
Function
save_quote
Stores a quote (and, for fast-path quotes, its staged competition data).
crates/shared/src/quote_storage.rs:63
↓ 2 callers
Function
save_solutions
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:267
↓ 2 callers
Function
save_trade_executions
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:295
↓ 2 callers
Method
scalar_mul
(&self, scalar: U256)
crates/number/src/ratio_ext.rs:24
↓ 2 callers
Method
scaled
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 callers
Method
scaled
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 callers
Function
scaling_factor_from_decimals
Converts a token decimal count to its corresponding scaling factor.
crates/liquidity-sources/src/balancer_v2/pools/common.rs:301
↓ 2 callers
Method
schedules_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 callers
Method
scope
(&self, order: OrderView)
crates/fee-engine/src/evaluator.rs:123
↓ 2 callers
Function
score
Observe the settlement score.
crates/driver/src/infra/observe/mod.rs:168
↓ 2 callers
Function
score_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 callers
Method
scoring
JIT score calculation.
crates/driver/src/domain/competition/solution/mod.rs:309
↓ 2 callers
Method
seed_uni_v2_pool
( &self, asset_a: (&MintableToken, U256), asset_b: (&MintableToken, U256), )
crates/e2e/src/setup/onchain_components/mod.rs:442
↓ 2 callers
Method
seed_weth_uni_v2_pools
( &self, tokens: impl IntoIterator<Item = &MintableToken>, token_amount: U256,
crates/e2e/src/setup/onchain_components/mod.rs:377
↓ 2 callers
Method
sell
(&self)
crates/driver/src/domain/competition/solution/trade.rs:61
↓ 2 callers
Function
sell_amount
Calculate effective sell amount (what left user's wallet).
crates/protocol-fees/src/lib.rs:573
↓ 2 callers
Function
sell_amount
(trade: &Trade)
crates/driver/src/domain/competition/solution/scoring.rs:418
↓ 2 callers
Function
sell_amount
(trade: &Trade)
crates/autopilot/src/domain/settlement/trade/math.rs:438
↓ 2 callers
Method
sell_token
(&self)
crates/autopilot/src/domain/settlement/trade/mod.rs:84
↓ 2 callers
Function
sell_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 callers
Method
sell_token_balance
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:72
↓ 2 callers
Function
send
(limit_bytes: usize, req: reqwest::RequestBuilder)
crates/driver/src/util/http.rs:7
↓ 2 callers
Function
send
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 callers
Method
send_get_request
( &self, base_url: &reqwest::Url, signature_base_url: &reqwest::Url, endpoint:
crates/solvers/src/infra/dex/okx/mod.rs:406
↓ 2 callers
Method
send_post_request
(&self, endpoint: &str, body: &T)
crates/solvers/src/infra/dex/bitget/mod.rs:390
↓ 2 callers
Method
serialize
(&self, serializer: S)
crates/app-data/src/app_data.rs:215
↓ 2 callers
Function
serialized
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 callers
Function
serve
(router: axum::Router, addr: std::net::SocketAddr)
crates/pool-indexer/src/run.rs:309
↓ 2 callers
Method
set_access_list
(self, access_list: AccessList)
crates/driver/src/domain/blockchain.rs:46
↓ 2 callers
Function
set_limit
(units: u32)
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:1112
↓ 2 callers
Function
set_placement_error
( ex: &mut PgConnection, uid: &OrderUid, error: OnchainOrderPlacementError, )
crates/database/src/onchain_broadcasted_orders.rs:68
↓ 2 callers
Method
set_simulation_overrides
(&mut self, overrides: SimulationOverrides)
crates/simulator/src/lib.rs:77
↓ 2 callers
Function
set_tracing_subscriber
(config: &Config)
crates/observe/src/tracing/init.rs:53
↓ 2 callers
Method
set_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 callers
Function
set_valid_from
( ex: &mut PgConnection, uid: &OrderUid, valid_from: u32, )
crates/database/src/orders.rs:242
↓ 2 callers
Function
settle_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 callers
Method
settle_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 callers
Method
settle_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 callers
Method
settle_with_solver
(&self, solver_name: &str, solution_id: u64)
crates/driver/src/tests/setup/mod.rs:1193
↓ 2 callers
Method
settlement
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:126
↓ 2 callers
Function
settling
Observe that the settlement process is about to start.
crates/driver/src/infra/observe/mod.rs:210
↓ 2 callers
Function
setup_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 callers
Method
shared_config
(&self)
crates/e2e/src/setup/services.rs:144
↓ 2 callers
Function
shared_origins
Origins that more than one of the URLs point at.
crates/autopilot/src/infra/solvers/mod.rs:36
↓ 2 callers
Method
side
(&self)
crates/driver/src/domain/competition/solution/trade.rs:26
↓ 2 callers
Method
side
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:60
↓ 2 callers
Method
sign
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 callers
Method
sign
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 callers
Function
sign_authorization
( config: &Config, chain_id: u64, delegate: Address, auth_nonce: u64, )
crates/driver/src/infra/solver/eip7702.rs:447
↓ 2 callers
Method
sign_transaction
Returns a signed transaction ready for execution.
crates/e2e/src/setup/onchain_components/safe.rs:155
↓ 2 callers
Method
sign_with
Sets owner, uid, signature.
crates/model/src/order.rs:148
↓ 2 callers
Function
signature
(signature: &order::Signature)
crates/driver/src/domain/competition/solution/encoding.rs:463
↓ 2 callers
Method
signature
( &self, domain_separator: ð::DomainSeparator, )
crates/driver/src/infra/solver/dto/solution.rs:320
↓ 2 callers
Function
signature_bytes
(n: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:43
↓ 2 callers
Function
signed_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:1956
↓ 2 callers
Method
signer
The solver's settlement signer.
crates/solana-driver/src/infra/solver/mod.rs:53
↓ 2 callers
Function
signers
The accounts a transaction requires signatures from.
crates/solana-orderbook/src/infra/verifier.rs:590
↓ 2 callers
Method
signing_scheme
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:90
↓ 2 callers
Method
simulate
( &self, check: SignatureCheck, )
crates/signature-validator/src/simulation.rs:93
↓ 2 callers
Method
simulate
( &self, owner: Address, token: Address, source: SellTokenSource, inte
crates/account-balances/src/lib.rs:135
↓ 2 callers
Method
simulateDelegatecall
( data: &[u8], )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4368
↓ 2 callers
Method
simulate_and_share
(&self, request: dto::Request)
crates/simulator/src/tenderly/mod.rs:196
↓ 2 callers
Method
simulate_bundle
See [`SolanaRPC::simulate_bundle`].
crates/solana-driver/src/infra/blockchain/mod.rs:185
↓ 2 callers
Method
simulate_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 callers
Function
simulation_failed
( solver: &Solver, auction_id: Option<auction::Id>, solution_id: &solution::Id, err: &simulato
crates/driver/src/infra/notify/mod.rs:86
↓ 2 callers
Function
simulation_fails_to_run
()
crates/shared/src/order_validation.rs:3587
↓ 2 callers
Function
skip_settlement_window
Record a winner skipped before dispatch as a window already closed as rejected. No transaction went out, so its orders are not in flight.
crates/autopilot-svm/src/infra/db.rs:320
↓ 2 callers
Function
slot_status_update
A slot-status message in the proto envelope the ingester reads.
crates/solana-indexer/src/indexer/decoder/tests.rs:324
↓ 2 callers
Function
solution_with_fulfillments
(orders: &[String])
crates/solvers-dto/src/solution.rs:363
↓ 2 callers
Method
solutions
Which base solutions have been merged into this complete solution. Ids in this list are only unique within one auction run loop.
crates/driver/src/domain/competition/solution/mod.rs:771
↓ 2 callers
Method
solve
( &self, auction: &domain::Auction, program_id: Pubkey, charge: &Charge, )
crates/solana-driver/src/infra/solver/mod.rs:109
↓ 2 callers
Method
solve
( &self, driver: Arc<infra::Driver>, request: solve::Request, )
crates/autopilot/src/run_loop.rs:688
↓ 2 callers
Method
solve
(&self, request: solve::Request)
crates/autopilot/src/infra/solvers/mod.rs:112
↓ 2 callers
Method
solve_every_nth_auction
One in every N solves this solver takes part in, when throttled.
crates/solana-driver/src/infra/api/mod.rs:131
↓ 2 callers
Method
solve_request
(&self, auction: &Auction)
crates/autopilot-svm/src/infra/competition.rs:43
↓ 2 callers
Method
solve_timeouts
Timeout configuration for `/solve` requests for this solver.
crates/driver/src/infra/solver/mod.rs:334
↓ 2 callers
Method
solver_native_token
(&self)
crates/driver/src/infra/solver/mod.rs:358
← previous
next →
2,001–2,100 of 10,747, ranked by callers