Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,749 in github.com/cowprotocol/services
⨍
Functions
10,749
◇
Types & classes
3,488
↓ 33 callers
Method
pubkey
The solver's on-chain identity, derived from its signer.
crates/solana-driver/src/infra/solver/mod.rs:48
↓ 33 callers
Method
remove
(&mut self, query: &Query)
crates/account-balances/src/cached.rs:43
↓ 32 callers
Method
saturating_add
(self, v: Self)
crates/eth-domain-types/src/lib.rs:114
↓ 32 callers
Function
spawn_server
Spawn the API server on an ephemeral port and return its bound address.
crates/solana-driver/tests/api.rs:150
↓ 31 callers
Method
checked_sub
(&self, v: &Self)
crates/eth-domain-types/src/ether.rs:47
↓ 31 callers
Method
order
(&self)
crates/driver/src/domain/competition/solution/trade.rs:161
↓ 31 callers
Method
solve
Solves a raw JSON auction.
crates/solvers/src/tests/mod.rs:72
↓ 30 callers
Function
builder
Assemble the configured builder without dialing.
crates/solana-indexer/src/yellowstone.rs:45
↓ 30 callers
Method
instructions
Build the settlement instruction list.
crates/solana-driver/src/domain/settlement.rs:264
↓ 30 callers
Method
into_iter
(self)
crates/ethrpc/src/alloy/buffering.rs:130
↓ 30 callers
Method
is_empty
An empty solution has no trades which is allowed to capture surplus and a score of 0.
crates/driver/src/domain/competition/solution/mod.rs:403
↓ 29 callers
Method
execute
(&self, auction_id: i64, ranking: &Ranking, tip: &u64, deadline: u64)
crates/autopilot-svm/src/infra/executor.rs:55
↓ 29 callers
Method
is_zero
(&self)
crates/app-data/src/app_data_hash.rs:49
↓ 29 callers
Function
solver_with_keypair
A solver client whose on-chain identity is a freshly generated keypair, so the test can register a matching settlement signer. Its engine prices the e
crates/solana-driver/tests/api.rs:208
↓ 28 callers
Method
as_str
(&self)
crates/driver/src/infra/solver/mod.rs:51
↓ 28 callers
Function
get
Get the metrics instance.
crates/driver/src/infra/observe/metrics.rs:97
↓ 28 callers
Function
get
Get the metrics instance.
crates/solvers/src/infra/metrics.rs:57
↓ 28 callers
Method
get_trades
(&self, order: &OrderUid)
crates/e2e/src/setup/services.rs:539
↓ 28 callers
Function
insert_order
(ex: &mut PgConnection, order: &Order)
crates/database/src/orders.rs:211
↓ 28 callers
Method
is_zero
(&self)
crates/eth-domain-types/src/ether.rs:57
↓ 28 callers
Function
test_order_with
A default sell order with `customize` applied before the uid and order PDA are derived.
crates/solana-driver/src/domain/settlement.rs:1093
↓ 27 callers
Method
build
(self)
crates/model/src/order.rs:175
↓ 27 callers
Function
spawn_mock_solver_engine
A tiny axum server that returns a fixed `/solve` response. It stands in for a solver engine.
crates/solana-driver/tests/api.rs:180
↓ 27 callers
Method
to_be_bytes
(self)
crates/driver/src/domain/competition/auction.rs:304
↓ 26 callers
Function
test_order
A default sell order.
crates/solana-driver/src/domain/settlement.rs:1121
↓ 25 callers
Function
quote_body
A quote body with the given validity fields, otherwise well formed.
crates/solana-orderbook/tests/api.rs:289
↓ 25 callers
Method
start_api
Start the api service in a background tasks. Wait until the service is responsive.
crates/e2e/src/setup/services.rs:221
↓ 25 callers
Function
test_solver
()
crates/driver/src/tests/setup/mod.rs:359
↓ 25 callers
Method
try_into
(self)
crates/shared/src/order_quoting.rs:1080
↓ 24 callers
Method
calldata
(self)
crates/driver/src/tests/setup/mod.rs:1539
↓ 24 callers
Function
engine_response
A solver-engine `/solve` response with one solution per `(id, sell_price)` pair. The `sell_price` sets the clearing price of the sell mint, so `execut
crates/solana-driver/tests/api.rs:302
↓ 24 callers
Method
pop
Pop the next call in round-robin order, if any.
crates/ethrpc/src/alloy/buffering.rs:289
↓ 24 callers
Function
start_driver
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, )
crates/e2e/src/setup/colocation.rs:104
↓ 23 callers
Function
auction
Every mint of `orders` priced at the denominator, as by an autopilot without price sources.
crates/solana-solvers/src/domain/solver/mod.rs:411
↓ 23 callers
Method
insert
(&mut self, reason: OrderExcludedFromAuctionReason, uid: Uid)
crates/driver/src/domain/competition/mod.rs:1069
↓ 23 callers
Function
spawn_mock_driver
A tiny axum server that answers `/quote` with a fixed response. It stands in for the driver.
crates/solana-orderbook/tests/api.rs:103
↓ 23 callers
Method
to_bytes
(self)
crates/solvers/src/domain/order.rs:111
↓ 22 callers
Method
as_str
Kebab-case slug used in URLs and per-network configs (pool-indexer API routes, DB database names, etc). Stable — other services parse it.
crates/chain/src/lib.rs:57
↓ 22 callers
Method
evaluator
Evaluates orders at `now`. Cheap: lists and functions are bound once, in [`RuleSet::new`].
crates/fee-engine/src/rules.rs:366
↓ 22 callers
Method
into_response
(self)
crates/orderbook/src/api/post_order.rs:47
↓ 22 callers
Method
len
(&self)
crates/driver/src/domain/competition/mod.rs:1073
↓ 22 callers
Method
max
(&self)
crates/eth-domain-types/src/gas.rs:55
↓ 22 callers
Function
pool
()
crates/autopilot-svm/src/test_db.rs:5
↓ 22 callers
Function
post
( state: State, path: Option<String>, query: Option<String>, req: serde_json::Value, )
crates/solvers/src/tests/mock/http.rs:227
↓ 22 callers
Method
send
(&self, driver: &infra::Driver, timeout: Duration)
crates/autopilot/src/settle_call.rs:54
↓ 22 callers
Function
web3
Create a Web3 instance with a label for observability.
crates/shared/src/web3.rs:80
↓ 21 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:5509
↓ 21 callers
Method
db
Returns the underlying postgres connection pool that can be used do execute raw SQL queries.
crates/e2e/src/setup/services.rs:899
↓ 21 callers
Function
deployment_address
(chain_id: &u64)
contracts/generated/contracts-generated/weth9/src/lib.rs:3092
↓ 21 callers
Method
get
()
crates/price-estimation/src/native/eip4626.rs:270
↓ 21 callers
Method
name
(self, name: &str)
crates/driver/src/tests/setup/mod.rs:388
↓ 21 callers
Function
query
(fast_path: bool)
crates/price-estimation/src/trade_finding/external.rs:388
↓ 21 callers
Function
reply
The response to a competition lookup: the competition, 404 without one, 500 on a failed read.
crates/solana-orderbook/src/infra/api/routes/solver_competition/mod.rs:79
↓ 21 callers
Method
solve
The solutions quoted before the deadline, one per batch of orders of one side on one directed mint pair. The autopilot's arbitrator picks at most one
crates/solana-solvers/src/domain/solver/mod.rs:97
↓ 21 callers
Method
solvers
(mut self, solvers: Vec<Solver>)
crates/driver/src/tests/setup/mod.rs:851
↓ 20 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/iuniswaplikepair/src/lib.rs:5335
↓ 20 callers
Method
clone
(&self)
crates/price-estimation/src/trade_finding/mod.rs:342
↓ 20 callers
Method
err
(self)
crates/driver/src/tests/setup/mod.rs:1354
↓ 20 callers
Method
fold
Folds every venue's newest frame into one override set, along with the newest stamp any of them quoted. Every venue keeps its lanes in the same share
crates/simulator/src/state_override_stream.rs:446
↓ 20 callers
Method
len
(&self)
crates/price-estimation/src/native_price_cache.rs:227
↓ 20 callers
Method
read
Read one compute-budget instruction. Duplicates of a kind are rejected because the runtime rejects them too, so accepting one would price the transact
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:813
↓ 20 callers
Function
sponsored_intent
The order intent a sponsored transaction carries. `native` sells SOL through the wSOL mint with real associated token accounts, so preparation steps c
crates/solana-orderbook/tests/api.rs:1799
↓ 19 callers
Method
encode
Encode the resolved settlement as a transaction signed by the payer.
crates/solana-driver/src/domain/settlement.rs:405
↓ 19 callers
Method
filter
(&self)
crates/autopilot/src/boundary/events/settlement.rs:30
↓ 19 callers
Method
get
(&self, token: ð::TokenAddress)
crates/solvers/src/domain/auction.rs:26
↓ 19 callers
Function
pubkey
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:53
↓ 19 callers
Function
query_timer
Starts timing a query, recorded under `query` when the timer drops.
crates/autopilot-svm/src/infra/db.rs:806
↓ 19 callers
Method
quote
(self, quote: OrderQuote)
crates/driver/src/tests/setup/mod.rs:268
↓ 19 callers
Function
serve
( addr: SocketAddr, estimator: Arc<dyn NativePriceEstimating>, max_timeout: Duration, shutdown
crates/autopilot/src/infra/api.rs:43
↓ 19 callers
Method
settle
Call the /settle endpoint.
crates/driver/src/tests/setup/mod.rs:1189
↓ 19 callers
Method
validate_and_construct_order
( &self, order: OrderCreation, domain_separator: &DomainSeparator, settlement_
crates/shared/src/order_validation.rs:895
↓ 19 callers
Function
wrapper_validator
Wrapper validator whose RPC calls all fail, so it's only usable with orders that don't specify any wrappers.
crates/shared/src/order_validation.rs:1384
↓ 18 callers
Function
account_json
`account` in the JSON shape a `getMultipleAccounts` mock answers with.
crates/solana-testlib/src/lib.rs:98
↓ 18 callers
Method
build
Finishes the simulation struct based on the configuration thus far.
crates/simulator/src/simulation_builder.rs:324
↓ 18 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2composablestablepool/src/lib.rs:635
↓ 18 callers
Method
get
Returns cached pools for the pairs, plus the ids of any that exist but aren't cached yet. Misses are recorded for the next maintenance run.
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:248
↓ 18 callers
Method
get
()
crates/autopilot-svm/src/leader_lock_tracker.rs:106
↓ 18 callers
Function
internal_error_reply
()
crates/orderbook/src/api.rs:449
↓ 18 callers
Function
pubkey
(byte: u8)
crates/solana-solvers/src/domain/solver/mod.rs:405
↓ 18 callers
Function
query_timer
Starts timing a query, recorded under `query` when the timer drops.
crates/solana-orderbook/src/infra/db.rs:658
↓ 17 callers
Method
as_str
The metric label values keep the EVM `market`/`limit` naming.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:713
↓ 17 callers
Function
big_decimal_to_u256
(big_decimal: &BigDecimal)
crates/number/src/conversions.rs:53
↓ 17 callers
Method
body
Get the JSON response body.
crates/driver/src/tests/setup/mod.rs:1630
↓ 17 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpool/src/lib.rs:4979
↓ 17 callers
Function
call_solve_with
(addr: SocketAddr, request: serde_json::Value)
crates/solana-driver/tests/api.rs:328
↓ 17 callers
Function
creation_tx
A partially signed sponsored creation transaction: the given preparation instructions in front of `CreateOrder`, the owner signed, the fee payer slot
crates/solana-orderbook/tests/api.rs:1912
↓ 17 callers
Method
id
Extracts the solution id from the response. Since response can contain multiple solutions, it takes the id from the first solution.
crates/driver/src/tests/setup/mod.rs:1371
↓ 17 callers
Method
orders
Check that the solution contains the expected orders.
crates/driver/src/tests/setup/mod.rs:1447
↓ 17 callers
Function
pool
()
crates/solana-indexer/src/test_db.rs:5
↓ 17 callers
Function
serialize
(bytes: T, serializer: S)
crates/bytes-hex/src/lib.rs:9
↓ 17 callers
Method
start_autopilot
Start the autopilot service in a background task. Uses [`Self::min_solve_deadline`] as the per-auction solve deadline.
crates/e2e/src/setup/services.rs:208
↓ 17 callers
Function
wipe
Empty every `solana.*` table a test can touch. Tests wipe at the start so a failure leaves its state behind for inspection.
crates/solana-indexer/src/test_db.rs:11
↓ 16 callers
Method
as_str
(self)
crates/autopilot-svm/src/infra/provider.rs:422
↓ 16 callers
Function
associated_token_address
Derive the ATA address for `owner` and `mint` under the mint's token `program`. The program is one of the seeds, so the two token programs derive diff
crates/solana-driver/src/infra/blockchain/token.rs:15
↓ 16 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5762
↓ 16 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/multicall3/src/lib.rs:4579
↓ 16 callers
Method
chain
Returns the chain for the RPC connection.
crates/driver/src/infra/blockchain/mod.rs:68
↓ 16 callers
Method
createPair
(data: &[u8])
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:733
↓ 16 callers
Function
error
(error_type: &'static str, description: impl AsRef<str>)
crates/orderbook/src/api.rs:421
↓ 16 callers
Method
next
(&mut self)
crates/e2e/src/setup/onchain_components/mod.rs:80
← previous
next →
101–200 of 10,749, ranked by callers