Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,776 in github.com/cowprotocol/services
⨍
Functions
10,776
◇
Types & classes
3,479
↓ 1 callers
Method
share_simulation
(&self, id: &str)
crates/simulator/src/tenderly/mod.rs:205
↓ 1 callers
Method
shared_query
Queries the `/quote` endpoint of the configured driver and deserializes the result into a Quote or Trade. Identical in-flight queries share one drive
crates/price-estimation/src/trade_finding/external.rs:88
↓ 1 callers
Function
shared_simulation_url
(id: &str)
crates/simulator/src/tenderly/mod.rs:212
↓ 1 callers
Function
shift_counterpart
Adds `offset` to the position of the counterpart a `BeginSettle` or a `FinalizeSettle` names, a u16 LE right after the discriminator. Other instructio
crates/solana-orderbook/examples/decode_bundle.rs:277
↓ 1 callers
Function
shortfall
Output-unit gap to `order`'s limit at the rate `in_amount` for `out_amount`, zero when [`satisfies`]: same cross-multiplication, so the two can't disa
crates/solana-solvers/src/dex/mod.rs:128
↓ 1 callers
Method
shortfall
Output-unit gap to `order`'s limit, zero when [`Swap::satisfies`].
crates/solana-solvers/src/dex/mod.rs:81
↓ 1 callers
Function
should_cache
(result: &Result<f64, PriceEstimationError>)
crates/price-estimation/src/native_price_cache.rs:146
↓ 1 callers
Method
should_shutdown
Non-blocking check if shutdown signal has been received yet
crates/autopilot/src/shutdown_controller.rs:52
↓ 1 callers
Method
should_use_fallback
Returns `true` if the fallback should be used.
crates/price-estimation/src/native/fallback.rs:101
↓ 1 callers
Method
sign
HMAC-SHA256 of the lowercase `0x`-prefixed address (42 chars).
crates/order-validation/src/banned/hermod.rs:95
↓ 1 callers
Method
sign
( &self, domain_separator: &DomainSeparator, hash: [u8; 32], signer: TestAccou
crates/e2e/src/api/zeroex.rs:132
↓ 1 callers
Method
sign_hash
(&self, hash: &alloy::primitives::B256)
crates/driver/src/infra/solver/mod.rs:144
↓ 1 callers
Method
sign_order
(&self, order: &mut OrderCreation, onchain: &OnchainComponents)
crates/e2e/src/setup/onchain_components/safe.rs:218
↓ 1 callers
Function
sign_request
Signs the `eth_sendBundle` request for `block` once for all builders. `MevApi::with_auth` would sign each request: with KMS that is one network call p
crates/driver/src/infra/builders.rs:358
↓ 1 callers
Method
signature
Base64 HMAC-SHA256, keyed by the secret, over the signed fields as JSON with sorted keys.
crates/solana-solvers/src/dex/bitget/mod.rs:96
↓ 1 callers
Method
signature_status
The outcome of a transaction at the client's commitment level, `None` until it lands. An error means the transaction landed and failed, so it cannot l
crates/cow-solana-rpc/src/lib.rs:442
↓ 1 callers
Method
signatures_address
Ensure that the Signatures contract is deployed to a specific address.
crates/driver/src/tests/setup/mod.rs:869
↓ 1 callers
Method
signatures_for_address
One page of an address's transaction signatures, starting below `before` when given. The node serves deep history, so repeated calls walk arbitrarily
crates/cow-solana-rpc/src/lib.rs:234
↓ 1 callers
Method
signatures_since
The program's (slot, signature) history above the watermark, newest first, paged from the node until a page dips to the watermark or the history runs
crates/solana-indexer/src/indexer/decoder/backfill.rs:133
↓ 1 callers
Function
signed_secs_between
Seconds from `from` to `to`, negative when `to` is the earlier instant.
crates/autopilot/src/run_loop.rs:1200
↓ 1 callers
Method
signing_scheme
(&self)
crates/shared/src/order_quoting.rs:90
↓ 1 callers
Function
simulate
Simulates `transactions`, each with its account keys, merged into one, and prints where it fails and its logs.
crates/solana-orderbook/examples/decode_bundle.rs:157
↓ 1 callers
Method
simulate
( &self, order: &Order, full_app_data: &str, full_balance_check: bool, )
crates/shared/src/order_creation_simulation.rs:80
↓ 1 callers
Method
simulate
Runs the generated simulation using an `eth_call` and returns the response bytes if there are any.
crates/simulator/src/simulation_builder.rs:475
↓ 1 callers
Method
simulate_custom_order
Simulates an arbitrary order without requiring it to exist in the database.
crates/orderbook/src/orderbook.rs:695
↓ 1 callers
Method
simulate_order
Simulates an order based on its Uid using the OrderSimulator. The returned value contains the simulation result and tenderly API request object that
crates/orderbook/src/orderbook.rs:633
↓ 1 callers
Method
simulate_settlement
Simulate a settlement transaction before sending it.
crates/solana-driver/src/domain/competition.rs:949
↓ 1 callers
Method
simulate_settlement
Returns whether the settlement can be executed or would revert.
crates/driver/src/domain/competition/mod.rs:1039
↓ 1 callers
Method
simulate_token_transfer
( &self, order: &OrderCreation, owner: Address, app_data: &OrderAppData,
crates/shared/src/order_validation.rs:612
↓ 1 callers
Method
simulate_transaction
Simulate a signed transaction without sending it.
crates/solana-driver/src/infra/blockchain/mod.rs:172
↓ 1 callers
Method
simulate_with_timeout
( &self, order: &Order, full_app_data: &str, full_balance_check: bool, )
crates/shared/src/order_validation.rs:86
↓ 1 callers
Method
simulate_without_setup
Simulate isValidSignature for the cases in which the order does not require a "setup" in the form of pre-interactions or a flashloan.
crates/signature-validator/src/simulation.rs:56
↓ 1 callers
Method
simulation_gas_price
(&self)
crates/driver/src/infra/blockchain/mod.rs:345
↓ 1 callers
Method
simulation_report
Runs the simulation together with a call tracer. Afterwards the call trace gets analyzed to generate a high level report of the simulation with inform
crates/simulator/src/simulation_builder.rs:490
↓ 1 callers
Function
simulator
( config: &infra::Config, eth: simulator::Ethereum, http_factory: &HttpClientFactory, )
crates/driver/src/run.rs:148
↓ 1 callers
Method
single_order_auction
The single-order auction a quote is solved in. Token prices are unset (`None`): a quote carries no native prices.
crates/driver/src/domain/quote.rs:233
↓ 1 callers
Method
single_run
(&self, auction: &domain::Auction)
crates/autopilot/src/shadow.rs:126
↓ 1 callers
Method
single_run
( self: &Arc<Self>, auction: &Arc<domain::Auction>, start_block: BlockInfo, so
crates/autopilot/src/run_loop.rs:443
↓ 1 callers
Method
single_run
Runs one competition for the auction.
crates/autopilot-svm/src/run_loop.rs:288
↓ 1 callers
Method
single_update
(&self, prefetch_time: Duration)
crates/price-estimation/src/native_price_cache.rs:517
↓ 1 callers
Method
size_limit
Returns the size limit, in bytes, of an app-data document.
crates/orderbook/src/app_data.rs:52
↓ 1 callers
Method
slippage
The slippage configuration of this solver.
crates/driver/src/infra/solver/mod.rs:314
↓ 1 callers
Method
slot
The node's current slot at the client's commitment level.
crates/cow-solana-rpc/src/lib.rs:157
↓ 1 callers
Function
sol_uid
(n: u8)
crates/protocol-fees/src/tests.rs:33
↓ 1 callers
Method
solution_merging
(&self)
crates/driver/src/infra/solver/mod.rs:354
↓ 1 callers
Method
solution_stream
(&'a self, auction: &'a Auction)
crates/solana-solvers/src/domain/solver/mod.rs:115
↓ 1 callers
Method
solution_stream
( &'a self, auction: &'a auction::Auction, )
crates/solvers/src/domain/solver/dex/mod.rs:97
↓ 1 callers
Method
solution_uid
The solution UID associated with this settlement.
crates/autopilot/src/domain/settlement/mod.rs:87
↓ 1 callers
Function
solve
(router: axum::Router<State>)
crates/driver/src/infra/api/routes/solve/mod.rs:13
↓ 1 callers
Function
solve
(auction: &auction::Auction)
crates/solvers/src/infra/metrics.rs:31
↓ 1 callers
Method
solve
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:124
↓ 1 callers
Method
solve
( &self, auction: &Auction, liquidity: &[liquidity::Liquidity], )
crates/driver/src/infra/solver/mod.rs:395
↓ 1 callers
Method
solve
Solve an auction as part of this competition.
crates/driver/src/domain/competition/mod.rs:342
↓ 1 callers
Method
solve
(&self, _auction: &TestAuction)
crates/autopilot-svm/src/run_loop.rs:430
↓ 1 callers
Method
solve
Ask the driver for solutions to an auction.
crates/autopilot-svm/src/infra/driver/mod.rs:136
↓ 1 callers
Method
solve_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 callers
Function
solve_error
(reason: &str)
crates/solvers/src/infra/metrics.rs:48
↓ 1 callers
Function
solve_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 callers
Method
solve_order
( &self, order: &order::Order, tokens: &auction::Tokens, gas_price: auction::G
crates/solvers/src/domain/solver/dex/mod.rs:190
↓ 1 callers
Function
solve_req
Create a request for the driver /solve endpoint.
crates/driver/src/tests/setup/driver.rs:110
↓ 1 callers
Function
solve_requests
()
crates/autopilot/src/infra/solvers/mod.rs:320
↓ 1 callers
Function
solved
Observe the result of solving an auction.
crates/driver/src/infra/observe/mod.rs:235
↓ 1 callers
Function
solved
(deadline: &auction::Deadline, solutions: &[solution::Solution])
crates/solvers/src/infra/metrics.rs:41
↓ 1 callers
Method
solver
(&self)
crates/autopilot/src/domain/competition/mod.rs:41
↓ 1 callers
Function
solver_delegate_address
(callers: [Address; 2])
crates/e2e/tests/e2e/parallel_settlement.rs:252
↓ 1 callers
Method
solver_fee
The volume-based solver fee, `None` when no fee is configured.
crates/solana-driver/src/infra/solver/mod.rs:68
↓ 1 callers
Function
solver_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 callers
Function
solver_request
Observe that a request is about to be sent to the solver.
crates/driver/src/infra/observe/mod.rs:317
↓ 1 callers
Function
solver_response
Observe that a response was received from the solver.
crates/driver/src/infra/observe/mod.rs:338
↓ 1 callers
Function
solver_timeout
(solver: &Solver, auction_id: Option<auction::Id>)
crates/driver/src/infra/notify/mod.rs:12
↓ 1 callers
Function
solver_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:1028
↓ 1 callers
Function
solvers
(config: &config::Config, eth: &Ethereum)
crates/driver/src/run.rs:192
↓ 1 callers
Method
solvers
Remaining time until the deadline for solvers to return solution to driver is reached.
crates/driver/src/domain/time.rs:47
↓ 1 callers
Method
spawn_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 callers
Function
spawn_mock_driver
Serves `/solve` with one canned solution and records every `/solve` and `/settle`.
crates/autopilot-svm/src/tests.rs:90
↓ 1 callers
Function
spawn_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 callers
Function
spawn_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 callers
Function
spawn_server_on
Spawn the API server over `pool`, without sponsoring.
crates/solana-orderbook/tests/api.rs:4238
↓ 1 callers
Function
spawn_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:838
↓ 1 callers
Method
specialize_pool_info
(&self, pool: common::PoolInfo)
crates/liquidity-sources/src/balancer_v2/pools/weighted.rs:72
↓ 1 callers
Method
specialize_pool_info
(&self, pool: common::PoolInfo)
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:85
↓ 1 callers
Function
split
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 callers
Function
split_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 callers
Function
stage_competition
( tx: &mut PgTransaction<'_>, quote_id: QuoteId, data: &QuoteCompetition, )
crates/shared/src/quote_storage.rs:110
↓ 1 callers
Function
start
The driver entry-point. Parses command-line arguments and runs the driver.
crates/solana-driver/src/run.rs:33
↓ 1 callers
Function
start
(args: impl Iterator<Item = String>)
crates/refunder/src/lib.rs:36
↓ 1 callers
Function
start
Parse args and run the selected solver engine until shutdown.
crates/solana-solvers/src/run.rs:16
↓ 1 callers
Function
start
The orderbook entry-point. Parses command-line arguments and runs the orderbook.
crates/solana-orderbook/src/run.rs:78
↓ 1 callers
Function
start
(args: impl Iterator<Item = String>)
crates/pool-indexer/src/run.rs:19
↓ 1 callers
Function
start
(args: impl Iterator<Item = String>)
crates/autopilot/src/run.rs:131
↓ 1 callers
Function
start
(args: impl IntoIterator<Item = String>)
crates/solvers/src/run.rs:12
↓ 1 callers
Function
start
The indexer entry point. Parses command line arguments and runs until a shutdown signal.
crates/solana-indexer/src/run.rs:62
↓ 1 callers
Function
start
(args: impl Iterator<Item = String>)
crates/orderbook/src/run.rs:51
↓ 1 callers
Function
start
The autopilot entry point. Parses command line arguments and runs until a shutdown signal.
crates/autopilot-svm/src/run.rs:83
↓ 1 callers
Function
start_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 callers
Method
start_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 callers
Method
start_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:536
↓ 1 callers
Function
start_solver
(config_file: TempPath, solver_name: String)
crates/e2e/src/setup/colocation.rs:81
↓ 1 callers
Function
state_pda
The settlement state PDA delegations must target.
crates/solana-orderbook/tests/api.rs:2057
↓ 1 callers
Method
state_pda
The settlement state PDA: the delegate every sell token account must approve.
crates/autopilot-svm/src/infra/config.rs:292
← previous
next →
3,701–3,800 of 10,776, ranked by callers