Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,522 in github.com/cowprotocol/services
⨍
Functions
8,522
◇
Types & classes
3,082
↓ 24 callers
Method
find
Finds full app data for an order that only has the contract app data hash. The full app data can be located in the database or on IPFS.
crates/orderbook/src/app_data.rs:80
↓ 24 callers
Method
is_zero
(&self)
crates/eth-domain-types/src/ether.rs:57
↓ 23 callers
Method
into_response
(self)
crates/orderbook/src/api/post_order.rs:47
↓ 22 callers
Method
build
(self)
crates/model/src/order.rs:189
↓ 22 callers
Method
observe
(data: &[u8])
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5120
↓ 22 callers
Method
order
(&self)
crates/driver/src/domain/competition/solution/trade.rs:176
↓ 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
Function
eip712_hash_struct
Computes the correct EIP-712 hash for a GPv2Order.
crates/cow-amm/src/lib.rs:55
↓ 21 callers
Method
get_trades
(&self, order: &OrderUid)
crates/e2e/src/setup/services.rs:526
↓ 21 callers
Method
into_iter
(self)
crates/ethrpc/src/alloy/buffering.rs:108
↓ 21 callers
Method
route
( &self, request: solver::Request, max_hops: usize, )
crates/solvers/src/boundary/baseline.rs:44
↓ 21 callers
Method
solvers
(mut self, solvers: Vec<Solver>)
crates/driver/src/tests/setup/mod.rs:853
↓ 21 callers
Function
start_driver
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, quote_using
crates/e2e/src/setup/colocation.rs:135
↓ 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
(&self, token: ð::TokenAddress)
crates/solvers/src/domain/auction.rs:26
↓ 20 callers
Method
saturating_add
(self, v: Self)
crates/eth-domain-types/src/lib.rs:112
↓ 20 callers
Method
to_be_bytes
(self)
crates/driver/src/domain/competition/auction.rs:246
↓ 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:246
↓ 19 callers
Function
internal_error_reply
()
crates/orderbook/src/api.rs:442
↓ 19 callers
Method
name
(self, name: &str)
crates/driver/src/tests/setup/mod.rs:405
↓ 18 callers
Method
as_str
(&self)
crates/pool-indexer/src/config.rs:56
↓ 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
clone
(&self)
crates/price-estimation/src/trade_finding/mod.rs:305
↓ 18 callers
Method
get
()
crates/price-estimation/src/native/eip4626.rs:242
↓ 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
build
Finishes the simulation struct based on the configuration thus far.
crates/simulator/src/simulation_builder.rs:306
↓ 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
contracts
Onchain smart contract bindings.
crates/driver/src/infra/blockchain/mod.rs:180
↓ 17 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
↓ 17 callers
Method
orders
Check that the solution contains the expected orders.
crates/driver/src/tests/setup/mod.rs:1371
↓ 17 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
↓ 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
settle
Call the /settle endpoint.
crates/driver/src/tests/setup/mod.rs:1167
↓ 16 callers
Method
try_into
(self)
crates/shared/src/order_quoting.rs:821
↓ 16 callers
Method
validate_and_construct_order
( &self, order: OrderCreation, domain_separator: &DomainSeparator, settlement_
crates/shared/src/order_validation.rs:772
↓ 15 callers
Method
addLiquidity
(data: &[u8])
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1222
↓ 15 callers
Method
address
Extracts the pool address configured in the ID.
crates/driver/src/domain/liquidity/balancer/v2/mod.rs:20
↓ 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
Function
error
(error_type: &'static str, description: impl AsRef<str>)
crates/orderbook/src/api.rs:414
↓ 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:1295
↓ 15 callers
Method
kind
Set the order kind.
crates/driver/src/tests/setup/mod.rs:195
↓ 15 callers
Function
save
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/quotes.rs:45
↓ 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
Method
checked_ceil_div
(&self, other: &Self)
crates/number/src/u256_ext.rs:54
↓ 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
Function
encode
(registry: &prometheus::Registry)
crates/observe/src/metrics.rs:77
↓ 14 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
↓ 14 callers
Method
insert
( &mut self, block: u64, keys: impl IntoIterator<Item = K>, values: impl IntoI
crates/liquidity-sources/src/recent_block_cache.rs:412
↓ 14 callers
Method
on_auction_overhead_start
( &'a self, component: &'b str, phase: &'c str, )
crates/observe/src/metrics.rs:189
↓ 14 callers
Method
settlement
(&self)
crates/driver/src/infra/blockchain/contracts.rs:112
↓ 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
↓ 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
id
(&self)
crates/driver/src/infra/api/routes/solve/dto/solve_request.rs:248
↓ 13 callers
Function
run_forked_test_with_block_number
(f: F, fork_url: String, block_number: u64)
crates/e2e/src/setup/mod.rs:146
↓ 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
Method
body
Get the JSON response body.
crates/driver/src/tests/setup/mod.rs:1534
↓ 12 callers
Method
chain
Returns the chain for the RPC connection.
crates/driver/src/infra/blockchain/mod.rs:66
↓ 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
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
↓ 12 callers
Method
evm_set_automine
(&self, automine: bool)
crates/ethrpc/src/alloy/evm_ext.rs:41
↓ 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:455
↓ 12 callers
Function
into_stream
(receiver: CurrentBlockWatcher)
crates/ethrpc/src/block_stream.rs:275
↓ 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
↓ 12 callers
Method
to_bytes
(&self)
crates/model/src/signature.rs:137
↓ 12 callers
Method
transfer
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1964
↓ 12 callers
Method
web3
(&self)
crates/driver/src/tests/setup/mod.rs:1236
↓ 12 callers
Method
with_state
(self, state: NewState)
crates/winner-selection/src/solution.rs:57
↓ 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
estimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native_price_cache.rs:398
↓ 11 callers
Method
get
()
crates/autopilot/src/infra/persistence/mod.rs:1012
↓ 11 callers
Method
get_solver_competition
( &self, hash: B256, )
crates/e2e/src/setup/services.rs:464
↓ 11 callers
Function
hashed_eip712_message
(domain_separator: &DomainSeparator, struct_hash: &[u8; 32])
crates/model/src/signature.rs:270
↓ 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
Method
is_winner
(self)
crates/winner-selection/src/state.rs:39
↓ 11 callers
Method
is_zero
Returns `true` if any of the available orders amounts are `0`, thus making the order not suitable to send to solvers. TODO: It would be ideal to proh
crates/driver/src/domain/competition/order/mod.rs:205
↓ 11 callers
Function
known
`known_pools_db` builder for tests. An empty set means "no pools committed yet — only in-chunk PoolCreateds are accepted."
crates/pool-indexer/src/indexer/uniswap_v3.rs:1096
↓ 11 callers
Method
make_solvers_forked
Generate next `N` accounts with the given initial balance and authenticate them as solvers on a forked network.
crates/e2e/src/setup/onchain_components/mod.rs:276
↓ 11 callers
Function
run
( f: F, filters: impl IntoIterator<Item = T>, fork: Option<(String, Option<u64>)>, )
crates/e2e/src/setup/mod.rs:179
↓ 11 callers
Function
single_full_order_with_quote
( ex: &mut PgConnection, uid: &OrderUid, )
crates/database/src/orders.rs:665
↓ 11 callers
Function
t
(n: i32)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1074
↓ 11 callers
Method
validate
(&self)
crates/autopilot/src/domain/competition/winner_selection.rs:981
← previous
next →
101–200 of 8,522, ranked by callers