Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,749 in github.com/cowprotocol/services
⨍
Functions
8,749
◇
Types & classes
3,170
↓ 1,148 callers
Function
new
( auction: &competition::Auction, liquidity: &[liquidity::Liquidity], weth: eth::WrappedNativeToke
crates/driver/src/infra/solver/dto/auction.rs:24
↓ 1,080 callers
Method
unwrap
(data: &[u8])
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:4305
↓ 824 callers
Method
clone
(&self)
crates/price-estimation/src/lib.rs:87
↓ 638 callers
Method
into
(self)
crates/driver/src/domain/flashloan.rs:41
↓ 330 callers
Method
collect
(data: &[u8])
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5106
↓ 234 callers
Method
context
(&'a self, prices: &'a ExternalPrices)
crates/solver/src/liquidity/slippage.rs:119
↓ 229 callers
Method
iter
(&self)
crates/app-data/src/app_data.rs:502
↓ 226 callers
Method
to_string
(&self, contracts: &Contracts)
crates/e2e/src/setup/colocation.rs:101
↓ 179 callers
Function
now
()
crates/driver/src/infra/time.rs:3
↓ 157 callers
Method
ok
Expect the /solve endpoint to have returned a 200 OK response.
crates/driver/src/tests/setup/mod.rs:1350
↓ 149 callers
Method
len
(&self)
crates/ethrpc/src/alloy/buffering.rs:287
↓ 142 callers
Method
into_iter
(self)
crates/model/src/lib.rs:80
↓ 139 callers
Function
get
(ex: &mut PgConnection, id: QuoteId)
crates/database/src/quotes.rs:88
↓ 138 callers
Method
bind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-solvers/src/api.rs:28
↓ 131 callers
Method
address
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:39
↓ 118 callers
Method
eth
(self)
crates/number/src/units.rs:39
↓ 113 callers
Method
as_slice
(&self)
crates/configs/src/native_price_estimators.rs:44
↓ 112 callers
Method
get
The first address is always the lower one. The addresses are never equal.
crates/model/src/lib.rs:57
↓ 105 callers
Method
call
(&mut self, packet: RequestPacket)
crates/ethrpc/src/alloy/buffering.rs:462
↓ 105 callers
Function
connect
Connect to a Yellowstone gRPC endpoint. `endpoint` decides TLS by scheme: `https` endpoints get TLS with the system's native root certificates (the t
crates/solana-indexer/src/yellowstone.rs:51
↓ 103 callers
Method
contracts
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:632
↓ 103 callers
Function
run_test
Testing* function that takes a closure and runs it on a local testing node and database. Before each test, it creates a snapshot of the current state
crates/e2e/src/setup/mod.rs:118
↓ 102 callers
Function
deploy
( __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2783
↓ 102 callers
Method
send
( &self, request: reqwest::RequestBuilder, )
crates/solana-solvers/src/dex/jupiter/mod.rs:116
↓ 100 callers
Method
into
(self)
crates/solvers/src/infra/config/dex/bitget/file.rs:49
↓ 96 callers
Method
try_into
(self)
crates/driver/src/util/percent.rs:16
↓ 95 callers
Method
finish
(self)
crates/s3/src/lib.rs:32
↓ 95 callers
Method
is_empty
(&self)
crates/eth-domain-types/src/access_list.rs:18
↓ 95 callers
Function
now_in_epoch_seconds
The current time in the same unit as `valid_to` for orders in the smart contract.
crates/model/src/time.rs:8
↓ 92 callers
Method
make_accounts
Generate next `N` accounts with the given initial balance.
crates/e2e/src/setup/onchain_components/mod.rs:225
↓ 89 callers
Method
make_solvers
Generate next `N` accounts with the given initial balance and authenticate them as solvers.
crates/e2e/src/setup/onchain_components/mod.rs:239
↓ 88 callers
Function
clear_DANGER_
(ex: &mut PgTransaction<'_>)
crates/database/src/lib.rs:93
↓ 88 callers
Method
from
(value: u64)
crates/eth-domain-types/src/gas.rs:16
↓ 88 callers
Method
insert
(self, pool: &PgPool)
crates/solana-indexer/src/persistence.rs:350
↓ 87 callers
Method
send_and_watch
(&self, tx: TransactionRequest)
crates/ethrpc/src/alloy/mod.rs:170
↓ 84 callers
Method
approve
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1929
↓ 83 callers
Method
iter
(&self)
crates/driver/src/domain/competition/auction.rs:145
↓ 82 callers
Function
query
(token: u8)
crates/account-balances/src/cached.rs:233
↓ 78 callers
Method
deploy_tokens_with_weth_uni_v2_pools
Deploy `N` tokens with WETH Uniswap pools.
crates/e2e/src/setup/onchain_components/mod.rs:358
↓ 75 callers
Method
address
(&self)
crates/driver/src/tests/setup/mod.rs:404
↓ 73 callers
Function
wait_for_condition
Repeatedly evaluates condition until it returns a truthy value (true, Some(true), Result(true)) or the timeout is reached. If condition evaluates to t
crates/e2e/src/setup/mod.rs:45
↓ 70 callers
Method
ether
(self)
crates/driver/src/tests/cases/mod.rs:95
↓ 70 callers
Method
into_wei
Converts the value into Wei, the smallest unit of Ethereum.
crates/driver/src/tests/cases/mod.rs:62
↓ 68 callers
Method
sign
( self, signing_scheme: EcdsaSigningScheme, domain: &DomainSeparator, key: &Pr
crates/e2e/src/setup/solver/solution.rs:43
↓ 67 callers
Method
create_order
Create an [`Order`]. If the response status code is not `201`, return the status and the body.
crates/e2e/src/setup/services.rs:542
↓ 66 callers
Method
mint_block
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:627
↓ 63 callers
Method
acquire
Acquire a submission slot. Prefers the direct solver EOA slot (cheaper, no forwarding). Falls back to a delegated EIP-7702 account when the direct slo
crates/driver/src/domain/competition/mod.rs:143
↓ 63 callers
Method
iter
Returns an iterator over the token reserves.
crates/solvers/src/domain/liquidity/stable.rs:41
↓ 60 callers
Method
checked_mul
(&self, other: &Self)
crates/eth-domain-types/src/token_amount.rs:66
↓ 58 callers
Method
into_iter
(self)
crates/simulator/src/encoding.rs:63
↓ 55 callers
Method
next
(&mut self)
crates/e2e/src/setup/onchain_components/mod.rs:80
↓ 53 callers
Method
status
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:908
↓ 52 callers
Method
fetch_all
`Some(true)` as soon as any backend confirms a ban — a failure elsewhere must not mask a positive hit. `None` means no confirmation and at least one f
crates/order-validation/src/banned/cached.rs:117
↓ 51 callers
Method
mint
(&self, to: Address, amount: U256)
crates/e2e/src/setup/onchain_components/mod.rs:103
↓ 51 callers
Method
order
Add a new order to be solved as part of the test. This order will be passed to /solve when [`Test::solve`] is called and it will be anticipated by the
crates/driver/src/tests/setup/mod.rs:834
↓ 51 callers
Method
solution
Add a solution to be returned by the mock solver.
crates/driver/src/tests/setup/mod.rs:859
↓ 49 callers
Method
balanceOf
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1950
↓ 49 callers
Method
extend
(data: &[u8])
contracts/generated/contracts-generated/izeroex/src/lib.rs:7326
↓ 49 callers
Method
into_iter
(self)
crates/driver/src/domain/liquidity/uniswap/v2.rs:77
↓ 49 callers
Function
setup
Create a builder for the setup process.
crates/driver/src/tests/setup/mod.rs:518
↓ 49 callers
Method
start_protocol
Starts a basic version of the protocol with a single baseline solver.
crates/e2e/src/setup/services.rs:235
↓ 48 callers
Method
contains
Used to determine if `token` is among the pair.
crates/model/src/lib.rs:39
↓ 48 callers
Method
done
Create the test: set up onchain contracts and pools, start a mock HTTP server for the solver and start the HTTP server for the driver.
crates/driver/src/tests/setup/mod.rs:931
↓ 47 callers
Function
get_storage_registry
Get the global instance of the metric storage registry. # Implementation notice If global metrics registry was not configured with [`setup_registry`
crates/observe/src/metrics.rs:73
↓ 47 callers
Method
pool
Add a uniswap pool with the specified reserves. Tokens are identified by their symbols. Every order will be solved through one of the pools.
crates/driver/src/tests/setup/mod.rs:817
↓ 44 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:55
↓ 43 callers
Function
ab_order
An example order which sells token "A" for token "B".
crates/driver/src/tests/setup/mod.rs:679
↓ 43 callers
Function
ab_solution
A solution solving the [`ab_order`].
crates/driver/src/tests/setup/mod.rs:699
↓ 43 callers
Method
execute
Race the enabled mempools concurrently; first success wins. Pending submission futures are dropped at that point and every other mempool is recorded a
crates/driver/src/domain/mempools.rs:66
↓ 42 callers
Function
parse
(full_app_data: &[u8])
crates/app-data/src/app_data.rs:298
↓ 41 callers
Function
ab_pool
A pool between tokens "A" and "B".
crates/driver/src/tests/setup/mod.rs:665
↓ 41 callers
Method
checked_add
(&self, other: &Self)
crates/eth-domain-types/src/token_amount.rs:72
↓ 41 callers
Method
checked_div
(&self, other: &Self)
crates/eth-domain-types/src/token_amount.rs:86
↓ 41 callers
Method
get_order
Retrieve an [`Order`]. If the respons status is not `200`, return the status and the body.
crates/e2e/src/setup/services.rs:609
↓ 40 callers
Method
saturating_sub
(self, v: Self)
crates/eth-domain-types/src/lib.rs:116
↓ 39 callers
Method
as_bytes
(&self)
crates/model/src/order.rs:995
↓ 39 callers
Function
protocol_fee_test_case
(test_case: TestCase)
crates/driver/src/tests/cases/protocol_fees.rs:50
↓ 37 callers
Method
solve
Call the /solve endpoint.
crates/driver/src/tests/setup/mod.rs:1116
↓ 36 callers
Method
elapsed
Total time spent in downstream `write`/`flush` calls so far.
crates/driver/src/infra/solver/streaming/timed_writer.rs:28
↓ 36 callers
Method
filter
(&self)
crates/event-indexing/src/event_handler.rs:698
↓ 34 callers
Method
any
Creates an configuration where any `validTo` is accepted.
crates/shared/src/order_validation.rs:1070
↓ 34 callers
Function
test
(web3: Web3)
crates/e2e/tests/e2e/univ2.rs:21
↓ 33 callers
Method
get
Returns the `Metadata` for the given tokens. Note that the result will not contain data for tokens that encountered errors while fetching the data.
crates/driver/src/infra/tokens.rs:47
↓ 32 callers
Method
is_zero
(&self)
crates/app-data/src/app_data_hash.rs:49
↓ 32 callers
Method
submit_quote
Submit an [`model::quote::OrderQuote`]. If the response status is not `200`, return the status and the body.
crates/e2e/src/setup/services.rs:566
↓ 31 callers
Function
web3
Create a Web3 instance with a label for observability.
crates/shared/src/web3.rs:72
↓ 30 callers
Function
deserialize
(deserializer: D)
crates/bytes-hex/src/lib.rs:18
↓ 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:395
↓ 30 callers
Method
solve
Solves a raw JSON auction.
crates/solvers/src/tests/mod.rs:72
↓ 29 callers
Method
execute
If a task produces a result which indicates rate limiting is required future requests will get dropped for some time. Every successive response like t
crates/rate-limit/src/lib.rs:150
↓ 28 callers
Method
as_str
(&self)
crates/driver/src/infra/solver/mod.rs:53
↓ 28 callers
Method
deposit
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2436
↓ 28 callers
Method
start_protocol_with_args
( &self, autopilot_config: configs::autopilot::Configuration, orderbook_config: config
crates/e2e/src/setup/services.rs:244
↓ 27 callers
Function
get
Get the metrics instance.
crates/driver/src/infra/observe/metrics.rs:86
↓ 27 callers
Function
insert_order
(ex: &mut PgConnection, order: &Order)
crates/database/src/orders.rs:218
↓ 27 callers
Method
observe
Records the gap `head` opened over the block seen before it. Repeats of the same head, and blocks arriving out of order, carry no gap to learn from an
crates/simulator/src/state_override_stream.rs:178
↓ 27 callers
Method
post
(&self, url: Url, body: &Request)
crates/autopilot-svm/src/infra/driver/mod.rs:75
↓ 26 callers
Method
checked_sub
(&self, v: &Self)
crates/eth-domain-types/src/ether.rs:47
↓ 26 callers
Method
is_zero
(&self)
crates/eth-domain-types/src/ether.rs:57
↓ 26 callers
Method
route
( &self, request: solver::Request, max_hops: usize, )
crates/solvers/src/boundary/baseline.rs:44
next →
1–100 of 8,749, ranked by callers