Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,486 in github.com/cowprotocol/services
⨍
Functions
8,486
◇
Types & classes
3,061
↓ 25 callers
Function
test_solver
()
crates/driver/src/tests/setup/mod.rs:378
↓ 24 callers
Method
checked_sub
(&self, v: &Self)
crates/eth-domain-types/src/ether.rs:47
↓ 24 callers
Method
solvers
(mut self, solvers: Vec<Solver>)
crates/driver/src/tests/setup/mod.rs:864
↓ 24 callers
Method
start_api
Start the api service in a background tasks. Wait until the service is responsive.
crates/e2e/src/setup/services.rs:219
↓ 23 callers
Method
into_response
(self)
crates/orderbook/src/api/post_order.rs:47
↓ 23 callers
Method
observe
(data: &[u8])
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5120
↓ 23 callers
Method
order
(&self)
crates/driver/src/domain/competition/solution/trade.rs:176
↓ 23 callers
Method
route
( &self, request: solver::Request, max_hops: usize, )
crates/solvers/src/boundary/baseline.rs:44
↓ 22 callers
Method
build
(self)
crates/model/src/order.rs:189
↓ 22 callers
Method
into_iter
(self)
crates/ethrpc/src/alloy/buffering.rs:128
↓ 22 callers
Method
len
(&self)
crates/price-estimation/src/native_price_cache.rs:217
↓ 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:5511
↓ 21 callers
Method
saturating_add
(self, v: Self)
crates/eth-domain-types/src/lib.rs:112
↓ 20 callers
Function
builder
Assemble the configured builder without dialing.
crates/solana-indexer/src/yellowstone.rs:59
↓ 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:5337
↓ 20 callers
Function
deployment_address
(chain_id: &u64)
contracts/generated/contracts-generated/weth9/src/lib.rs:3090
↓ 20 callers
Method
get_trades
(&self, order: &OrderUid)
crates/e2e/src/setup/services.rs:526
↓ 20 callers
Method
name
(self, name: &str)
crates/driver/src/tests/setup/mod.rs:408
↓ 20 callers
Method
pop
Pop the next call in round-robin order, if any.
crates/ethrpc/src/alloy/buffering.rs:269
↓ 20 callers
Function
start_driver
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, quote_using
crates/e2e/src/setup/colocation.rs:135
↓ 20 callers
Method
to_be_bytes
(self)
crates/driver/src/domain/competition/auction.rs:266
↓ 19 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:251
↓ 19 callers
Function
internal_error_reply
()
crates/orderbook/src/api.rs:451
↓ 19 callers
Method
kind
Set the order kind.
crates/driver/src/tests/setup/mod.rs:195
↓ 18 callers
Method
as_str
(&self)
crates/pool-indexer/src/config.rs:56
↓ 18 callers
Method
build
Finishes the simulation struct based on the configuration thus far.
crates/simulator/src/simulation_builder.rs:318
↓ 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
chain
(&self)
crates/simulator/src/ethereum/mod.rs:66
↓ 18 callers
Method
db
Returns the underlying postgres connection pool that can be used do execute raw SQL queries.
crates/e2e/src/setup/services.rs:886
↓ 18 callers
Method
get
()
crates/price-estimation/src/native/eip4626.rs:268
↓ 18 callers
Method
quote
(self, quote: OrderQuote)
crates/driver/src/tests/setup/mod.rs:281
↓ 18 callers
Method
with_buy_token
(mut self, buy_token: Address)
crates/model/src/order.rs:96
↓ 18 callers
Method
with_sell_token
(mut self, sell_token: Address)
crates/model/src/order.rs:91
↓ 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:4981
↓ 17 callers
Method
clone
(&self)
crates/price-estimation/src/trade_finding/mod.rs:318
↓ 17 callers
Method
orders
Check that the solution contains the expected orders.
crates/driver/src/tests/setup/mod.rs:1452
↓ 17 callers
Method
settle
Call the /settle endpoint.
crates/driver/src/tests/setup/mod.rs:1191
↓ 17 callers
Method
validate_and_construct_order
( &self, order: OrderCreation, domain_separator: &DomainSeparator, settlement_
crates/shared/src/order_validation.rs:780
↓ 16 callers
Method
abi_encode
(&self)
contracts/generated/contracts-generated/izeroex/src/lib.rs:84
↓ 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:5764
↓ 16 callers
Method
createPair
(data: &[u8])
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:734
↓ 16 callers
Method
try_into
(self)
crates/shared/src/order_quoting.rs:994
↓ 15 callers
Method
addLiquidity
(data: &[u8])
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1222
↓ 15 callers
Function
big_decimal_to_u256
(big_decimal: &BigDecimal)
crates/number/src/conversions.rs:53
↓ 15 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/balancerv2weightedpool/src/lib.rs:4203
↓ 15 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/balancerv2stablepool/src/lib.rs:4553
↓ 15 callers
Method
contracts
Onchain smart contract bindings.
crates/driver/src/infra/blockchain/mod.rs:180
↓ 15 callers
Function
error
(error_type: &'static str, description: impl AsRef<str>)
crates/orderbook/src/api.rs:423
↓ 15 callers
Function
get
Get the metrics instance.
crates/solvers/src/infra/metrics.rs:57
↓ 15 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:1376
↓ 15 callers
Method
insert
(&self, token: Address, result: CacheEntry)
crates/price-estimation/src/native_price_cache.rs:254
↓ 15 callers
Method
start_autopilot
Start the autopilot service in a background task. Optionally specify a solve deadline to use instead of the default 2s. (note: specifying a larger sol
crates/e2e/src/setup/services.rs:204
↓ 14 callers
Method
as_uint256
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:106
↓ 14 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/balancerv2basepool/src/lib.rs:3779
↓ 14 callers
Function
create_test_order_placement
Builds an `EthOrderPlacement` with the given contract address embedded in the UID. # UID Structure (56 bytes total) The CoW Protocol Order UID has t
crates/refunder/src/refund_service.rs:358
↓ 14 callers
Method
insert
( &mut self, block: u64, keys: impl IntoIterator<Item = K>, values: impl IntoI
crates/liquidity-sources/src/recent_block_cache.rs:413
↓ 14 callers
Method
on_auction_overhead_start
( &'a self, component: &'b str, phase: &'c str, )
crates/observe/src/metrics.rs:189
↓ 14 callers
Function
save
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/quotes.rs:46
↓ 14 callers
Function
serve
( addr: SocketAddr, estimator: Arc<dyn NativePriceEstimating>, max_timeout: Duration, shutdown
crates/autopilot/src/infra/api.rs:43
↓ 14 callers
Function
u256_to_big_decimal
(u256: &U256)
crates/number/src/conversions.rs:78
↓ 14 callers
Function
web3
Create a Web3 instance with an optional label for observability.
crates/ethrpc/src/lib.rs:66
↓ 14 callers
Method
with_state
(self, state: NewState)
crates/winner-selection/src/solution.rs:57
↓ 13 callers
Method
address
Extracts the pool address configured in the ID.
crates/driver/src/domain/liquidity/balancer/v2/mod.rs:20
↓ 13 callers
Method
body
Get the JSON response body.
crates/driver/src/tests/setup/mod.rs:1615
↓ 13 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/cowprotocoltoken/src/lib.rs:3970
↓ 13 callers
Method
client
(&self)
crates/e2e/src/setup/services.rs:880
↓ 13 callers
Method
current_block
Returns a type that monitors the block chain to inform about the current block.
crates/driver/src/infra/blockchain/mod.rs:192
↓ 13 callers
Method
err
(self)
crates/driver/src/tests/setup/mod.rs:1359
↓ 13 callers
Method
evm_set_automine
(&self, automine: bool)
crates/ethrpc/src/alloy/evm_ext.rs:41
↓ 13 callers
Method
hash_struct
Returns the value of hashStruct() over the order data as defined by EIP-712. https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct
crates/model/src/order.rs:236
↓ 13 callers
Method
id
(&self)
crates/driver/src/infra/api/routes/solve/dto/solve_request.rs:127
↓ 13 callers
Method
settlement
(&self)
crates/driver/src/infra/blockchain/contracts.rs:106
↓ 13 callers
Function
setup
Set up a mock external HTTP API.
crates/solvers/src/tests/mock/http.rs:127
↓ 13 callers
Method
swap
Computes a swap (including calldata, estimated input and output amounts and the required allowance) for the specified order. These computed swaps can
crates/solvers/src/infra/dex/mod.rs:24
↓ 13 callers
Method
with_ethflow_addresses
(&mut self, addresses: Vec<Address>)
crates/refunder/src/traits.rs:105
↓ 12 callers
Function
append
( ex: &mut PgTransaction<'_>, events: &[(EventIndex, Event)], )
crates/database/src/events.rs:73
↓ 12 callers
Function
collect_log_changes
( factory: Address, logs: &[Log], base_states: &BasePoolStates, dec_cache: &DecimalsCache,
crates/pool-indexer/src/indexer/uniswap_v3.rs:1003
↓ 12 callers
Function
encode
(registry: &prometheus::Registry)
crates/observe/src/metrics.rs:77
↓ 12 callers
Method
estimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native_price_cache.rs:417
↓ 12 callers
Method
finish
( mut self, internalization_strategy: InternalizationStrategy, )
crates/solver/src/settlement/settlement_encoder.rs:460
↓ 12 callers
Method
get
()
crates/pool-indexer/src/metrics.rs:54
↓ 12 callers
Method
into_response
(self)
crates/orderbook/src/api.rs:464
↓ 12 callers
Function
into_stream
(receiver: CurrentBlockWatcher)
crates/ethrpc/src/block_stream.rs:271
↓ 12 callers
Function
run_forked_test_with_block_number
(f: F, fork_url: String, block_number: u64)
crates/e2e/src/setup/mod.rs:145
↓ 12 callers
Method
send
( self, client: &reqwest::Client, base
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/request.rs:88
↓ 12 callers
Method
state
(&self)
crates/winner-selection/src/solution.rs:66
↓ 12 callers
Method
store
(&self)
crates/event-indexing/src/event_handler.rs:253
↓ 11 callers
Method
append
(&mut self, label: &str)
crates/ethrpc/src/alloy/instrumentation.rs:191
↓ 11 callers
Method
block
(&self, number: u64)
crates/event-indexing/src/block_retriever.rs:40
↓ 11 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/mockerc4626wrapper/src/lib.rs:2660
↓ 11 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/balancerv2vault/src/lib.rs:1642
↓ 11 callers
Method
chain
Returns the chain for the RPC connection.
crates/driver/src/infra/blockchain/mod.rs:66
↓ 11 callers
Method
checked_ceil_div
(&self, other: &Self)
crates/number/src/u256_ext.rs:71
↓ 11 callers
Method
get
(&self, address: ð::TokenAddress)
crates/driver/src/domain/competition/auction.rs:141
↓ 11 callers
Method
get
()
crates/autopilot/src/infra/persistence/mod.rs:1010
↓ 11 callers
Method
get_solver_competition
( &self, hash: B256, )
crates/e2e/src/setup/services.rs:464
↓ 11 callers
Function
identify_uids_refunding_status
Filters `refundable_order_uids` by on-chain status, returning only orders that need refund, grouped by EthFlow contract. Excludes orders from unknown
crates/refunder/src/refund_service.rs:89
↓ 11 callers
Function
initialize
Initializes tracing setup that is shared between the binaries. `env_filter` has similar syntax to env_logger. It is documented at https://docs.rs/trac
crates/observe/src/tracing/init.rs:34
↓ 11 callers
Function
install
Install a panic hook that first calls the previous panic hook and then exits the process. This prevents the situation where a background task/thread
crates/observe/src/panic_hook.rs:11
↓ 11 callers
Method
is_winner
(self)
crates/winner-selection/src/state.rs:39
← previous
next →
101–200 of 8,486, ranked by callers