MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 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:3587
↓ 2 callersFunctionskip_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:323
↓ 2 callersFunctionslot_status_update
A slot-status message in the proto envelope the ingester reads.
crates/solana-indexer/src/indexer/decoder/tests.rs:324
↓ 2 callersFunctionsolution_with_fulfillments
(orders: &[String])
crates/solvers-dto/src/solution.rs:363
↓ 2 callersMethodsolutions
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 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:546
↓ 2 callersMethodsolve
( &self, auction: &domain::Auction, program_id: Pubkey, charge: &Charge, )
crates/solana-driver/src/infra/solver/mod.rs:109
↓ 2 callersMethodsolve
( &self, driver: Arc<infra::Driver>, request: solve::Request, )
crates/autopilot/src/run_loop.rs:751
↓ 2 callersMethodsolve
(&self, request: solve::Request)
crates/autopilot/src/infra/solvers/mod.rs:112
↓ 2 callersMethodsolve_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 callersMethodsolve_request
(&self, auction: &Auction)
crates/autopilot-svm/src/infra/competition.rs:43
↓ 2 callersMethodsolve_timeouts
Timeout configuration for `/solve` requests for this solver.
crates/driver/src/infra/solver/mod.rs:334
↓ 2 callersMethodsolver_native_token
(&self)
crates/driver/src/infra/solver/mod.rs:358
↓ 2 callersFunctionsolver_with
( addr: SocketAddr, fee_handler: FeeHandler, solver_fee_bps: u16, )
crates/solana-driver/tests/api.rs:219
↓ 2 callersFunctionsort_orders
Sort orders based on the provided comparators. Reverse ordering is used to ensure that the most important element comes first.
crates/driver/src/domain/competition/sorting.rs:133
↓ 2 callersFunctionspawn_api
(api: Api)
crates/solana-driver/tests/api.rs:171
↓ 2 callersFunctionspawn_mock_driver
Spawns a driver stand-in that records the `/quote` query strings it receives, answers every request with the same legacy quote after a short delay (so
crates/price-estimation/src/trade_finding/external.rs:348
↓ 2 callersFunctionspawn_mock_driver_after
Like [`spawn_mock_driver`], answering after `delay`.
crates/solana-orderbook/tests/api.rs:108
↓ 2 callersFunctionspawn_pipeline
An ingester and decoder over a live channel, so a test can interleave sends with database assertions. Dropping the sender ends the ingester with the s
crates/solana-indexer/src/indexer/decoder/tests.rs:348
↓ 2 callersFunctionspawn_routeless_driver
A driver stand-in with no route: every `/quote` answers the driver's `QuotingFailed` error.
crates/solana-orderbook/tests/api.rs:127
↓ 2 callersFunctionspawn_sponsored_server_over
A sponsored-placement server reading the chain through `rpc`, whose fresh quotes ask `quoter`.
crates/solana-orderbook/tests/api.rs:1934
↓ 2 callersFunctionsponsored_solve_request
The standard solve request with its order not created on chain yet, so it carries the owner-signed creation transaction.
crates/solana-driver/tests/api.rs:378
↓ 2 callersFunctionstamp_fields
The fields of `word` holding `stamp`, as (offset, unit) pairs. We never match both units, since the same timestamp (base 10) interpreted in seconds a
crates/simulator/src/state_override_stream.rs:98
↓ 2 callersMethodstate
(&self)
crates/autopilot/src/domain/competition/bid.rs:51
↓ 2 callersFunctionstatus
A full fill on the order's own side wins, then cancellation, then expiry. Fulfilled must beat cancelled: reclaiming a filled order's PDA to recover re
crates/solana-orderbook/src/infra/api/routes/order/dto.rs:154
↓ 2 callersFunctionstore_detached
Append the events off the caller's path: a failed write is logged, not returned.
crates/autopilot-svm/src/infra/order_events.rs:19
↓ 2 callersMethodstore_events
Store the events without blocking the cycle: a lost event degrades the status endpoint, never the competition.
crates/autopilot-svm/src/infra/observer.rs:43
↓ 2 callersMethodstore_mut
(&mut self)
crates/event-indexing/src/event_handler.rs:257
↓ 2 callersMethodstore_order_events_owned
( &self, items: I, convert: F, label: boundary::OrderEventLabel, reaso
crates/autopilot/src/infra/persistence/mod.rs:267
↓ 2 callersFunctionstream_body
Serializes `value` to JSON on a blocking thread, streaming it into the returned reqwest body. Backpressure from the body channel caps memory.
crates/driver/src/infra/solver/streaming/mod.rs:41
↓ 2 callersFunctionstream_into
Serializes `value` into a tee of the body channel and `secondary` on a blocking thread, then finalizes each sink. Serialization always runs to complet
crates/driver/src/infra/solver/streaming/mod.rs:70
↓ 2 callersMethodsubmit
( &self, mempool: &infra::mempool::Mempool, settlement: &EncodedSettlement, su
crates/driver/src/domain/mempools.rs:72
↓ 2 callersFunctionsubtract_swap_fee_amount
(amount: U256, swap_fee: Bfp)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:36
↓ 2 callersFunctionsurplus_over
Calculate surplus over arbitrary price limits.
crates/protocol-fees/src/lib.rs:387
↓ 2 callersFunctionsurplus_over
( trade: &Trade, price_limits: PriceLimits, )
crates/driver/src/domain/competition/solution/scoring.rs:349
↓ 2 callersFunctionsurplus_over_limit_price
Calculate surplus over limit price using custom clearing prices.
crates/protocol-fees/src/lib.rs:372
↓ 2 callersFunctionsurplus_over_limit_price
(trade: &Trade)
crates/autopilot/src/domain/settlement/trade/math.rs:386
↓ 2 callersMethodswap
Build the swap for `quote` that the settlement signer `taker` executes inside the settlement transaction: one `/swap-instructions` request, at the quo
crates/solana-solvers/src/dex/jupiter/mod.rs:69
↓ 2 callersMethodswap_with_bpt
Comes from `_swapWithBpt`: https://etherscan.io/address/0xf9ac7B9dF2b3454E841110CcE5550bD5AC6f875F#code#F2#L301
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:280
↓ 2 callersFunctiontest_order
(uid_byte: u8, executed: u64)
crates/autopilot/src/infra/solvers/dto/solve.rs:646
↓ 2 callersFunctiontest_order_parameters
( response: &Order, order: &ExtendedEthFlowOrder, owner: &Address, contracts: &Contracts,
crates/e2e/tests/e2e/ethflow.rs:828
↓ 2 callersFunctiontest_submit_quote
( services: &Services<'_>, quote: &OrderQuoteRequest, )
crates/e2e/tests/e2e/ethflow.rs:639
↓ 2 callersFunctiontime_evaluation
Runs `evaluate`, the decision of `source` on one order, and records the time it took.
crates/fee-engine/src/report.rs:188
↓ 2 callersMethodtimer
(&'a self, labels: &'a [&'a str])
crates/pool-indexer/src/metrics.rs:68
↓ 2 callersFunctiontimestamp_of_block_in_seconds
( provider: &AlloyProvider, block_number: BlockNumberOrTag, )
crates/ethrpc/src/block_stream.rs:293
↓ 2 callersMethodto_cow_swap_order
( &self, ethflow_contract: &CoWSwapEthFlow::Instance, weth: &WETH9::Instance, )
crates/e2e/tests/e2e/ethflow.rs:889
↓ 2 callersFunctionto_crate_name
Convert a PascalCase contract name to a kebab-case crate name.
contracts/src/codegen.rs:52
↓ 2 callersFunctionto_db_instruction_index
A transaction holds far fewer instructions than `i32::MAX`.
crates/solana-indexer/src/persistence.rs:30
↓ 2 callersFunctionto_dir_name
Convert a contract name to a directory name under contracts-generated/.
contracts/src/codegen.rs:57
↓ 2 callersFunctionto_domain
(order: Order)
crates/autopilot/src/infra/persistence/dto/order.rs:100
↓ 2 callersFunctionto_domain
( order: &model::order::Order, protocol_fees: Vec<domain::fee::PolicyWithOrigin>, quote: Option<do
crates/autopilot/src/boundary/order.rs:3
↓ 2 callersMethodto_domain
One receiver for each URL, named after the URL host.
crates/driver/src/infra/config/file/mod.rs:171
↓ 2 callersFunctionto_domain_pool
( pool: ConstantProductOrder, )
crates/driver/src/boundary/liquidity/uniswap/v2.rs:59
↓ 2 callersFunctionto_native_xrate
Converts a token price from the orderbook API `/auction` endpoint to an native token exchange rate.
crates/shared/src/external_prices.rs:84
↓ 2 callersFunctionto_normalized_price
(price: f64)
crates/solvers/src/domain/solver/baseline.rs:337
↓ 2 callersMethodto_order_record
( &self, chain_id: u64, verifying_contract: Address, signer: TestAccount,
crates/e2e/src/api/zeroex.rs:96
↓ 2 callersMethodto_price_query
( &self, default_quote_timeout: std::time::Duration, max_quote_timeout: std::time::Dur
crates/shared/src/order_quoting.rs:63
↓ 2 callersMethodto_tenderly_request
Converts the simulation into a request that can be simulated with tenderly.
crates/simulator/src/simulation_builder.rs:543
↓ 2 callersFunctiontoken_2022_account
An initialized Token-2022 account of `mint` with the `extensions`, whose values `init` sets.
crates/solana-testlib/src/lib.rs:73
↓ 2 callersFunctiontoken_2022_ata_len
(mint_extensions: &[ExtensionType])
crates/solana-token/src/lib.rs:250
↓ 2 callersFunctiontoken_account
(mint: &Pubkey, owner: &Pubkey, state: AccountState)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:1085
↓ 2 callersFunctiontoken_mints
The mints an order moves: the sell mint, and the buy mint unless the order buys native SOL.
crates/solana-orderbook/src/infra/api/routes/mint.rs:23
↓ 2 callersFunctiontokens
Builds the token list of an auction: all tokens with a known price plus all trusted tokens.
crates/autopilot/src/infra/solvers/dto/solve.rs:232
↓ 2 callersMethodtokens
(&self)
crates/driver/src/infra/api/mod.rs:229
↓ 2 callersMethodtokens
The tokens used in the auction.
crates/driver/src/domain/competition/auction.rs:131
↓ 2 callersFunctiontracing_config
(args: &TracingArguments, service_name: String)
crates/shared/src/arguments.rs:65
↓ 2 callersMethodtrack_filtered_orders
Record the orders a cut leaves out for `reason`: the per-reason gauge, a debug line with their uids and a `filtered` order event. An order repeats thi
crates/autopilot-svm/src/infra/provider.rs:163
↓ 2 callersFunctiontrade
(uid: u8, executed_sell: u64, executed_buy: u64)
crates/solana-driver/src/domain/execution_cost.rs:250
↓ 2 callersFunctiontrade
(trade: &super::Trade)
crates/driver/src/domain/competition/solution/encoding.rs:406
↓ 2 callersFunctiontrade
A sell order of 100 for at least 100 that settled 100 for 150 after fees, linked to a route quote `(sell, buy, execution cost)`.
crates/autopilot-svm/src/infra/order_execution.rs:300
↓ 2 callersMethodtrade_count_for_scorable
( &self, trade: &Trade, surplus_capturing_jit_order_owners: &HashSet<eth::Address>,
crates/driver/src/domain/competition/solution/mod.rs:295
↓ 2 callersMethodtrader
(&self)
crates/driver/src/domain/competition/order/mod.rs:143
↓ 2 callersMethodtransaction
( &self, hash: eth::TxId, )
crates/autopilot/src/infra/blockchain/mod.rs:116
↓ 2 callersMethodtransaction_status
Returns the transaction's on-chain inclusion status.
crates/driver/src/infra/blockchain/mod.rs:271
↓ 2 callersMethodtry_widening_mul_div_floor
(self, mul: Self, div: Self)
crates/chain-types/src/evm.rs:77
↓ 2 callersFunctiontx
( auction_id: auction::Id, native_prices: &auction::Prices, solution: &super::Solution, contra
crates/driver/src/domain/competition/solution/encoding.rs:39
↓ 2 callersMethodtx_origin
(&self)
crates/price-estimation/src/trade_finding/mod.rs:106
↓ 2 callersFunctiontx_request
Builds the EIP-1559 transaction request for `tx`.
crates/driver/src/infra/mempool/mod.rs:210
↓ 2 callersFunctiontx_update
(slot: u64, info: SubscribeUpdateTransactionInfo)
crates/solana-indexer/src/indexer/decoder/tests.rs:372
↓ 2 callersMethoduid
(&self)
crates/driver/src/domain/competition/solution/trade.rs:19
↓ 2 callersFunctionunavailable
A failure a retry may fix: a driver that failed, a quote the verification dropped, a rate-limited price lookup. The reply is the `NoLiquidity` one, th
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:88
↓ 2 callersFunctionunbuffered_provider
Creates an unbuffered provider for the given URL and label. Unlike [`provider()`], this does not include batching. Useful for read-only operations li
crates/ethrpc/src/alloy/mod.rs:74
← previousnext →2,101–2,200 of 10,776, ranked by callers