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
↓ 7 callers
Method
encode
Encodes the settlement's order_trade as a tuple, as expected by the smart contract.
crates/solver/src/settlement/mod.rs:87
↓ 7 callers
Method
estimate
(&self, token: Address, timeout: Duration)
crates/price-estimation/src/native/eip4626.rs:84
↓ 7 callers
Method
eth
(&self)
crates/driver/src/infra/api/mod.rs:191
↓ 7 callers
Method
executed
(&self)
crates/driver/src/domain/competition/solution/trade.rs:40
↓ 7 callers
Method
fetch
(&self, keys: impl IntoIterator<Item = K>, block: Block)
crates/liquidity-sources/src/recent_block_cache.rs:197
↓ 7 callers
Method
fetch
IPFS gateway behavior when a CID cannot be found is inconsistent and can be confusing: - The public ipfs.io gateway responds "504 Gateway Timeout" af
crates/orderbook/src/ipfs.rs:34
↓ 7 callers
Method
fill_at
(mut self, execution: ExecutionAmount, price: PriceEncoding)
crates/simulator/src/simulation_builder.rs:665
↓ 7 callers
Method
get
()
crates/orderbook/src/database/mod.rs:112
↓ 7 callers
Method
get_balances
(&self, queries: &[Query])
crates/account-balances/src/cached.rs:173
↓ 7 callers
Function
git_version
()
crates/observe/src/version.rs:3
↓ 7 callers
Method
hash_struct
See <https://github.com/0xProject/protocol/blob/%400x/contracts-zero-ex%400.49.0/contracts/zero-ex/contracts/src/features/libs/LibNativeOrder.sol#L166
crates/e2e/src/api/zeroex.rs:149
↓ 7 callers
Method
id
Returns the chain's chain ID
crates/chain/src/lib.rs:28
↓ 7 callers
Function
insert_order_event
Inserts a row into the `order_events` table only if the latest event for the corresponding order UID has a different label than the provided event.
crates/database/src/order_events.rs:89
↓ 7 callers
Function
low_precision_now
The postgres database in our CI has different datetime precision than the `DateTime` uses. This leads to issues comparing round-tripped data. Work aro
crates/database/src/quotes.rs:178
↓ 7 callers
Method
pop_front
(&mut self)
crates/ethrpc/src/alloy/buffering.rs:124
↓ 7 callers
Method
push_back
(&mut self, sender: ResponseSender)
crates/ethrpc/src/alloy/buffering.rs:114
↓ 7 callers
Method
receiving_eth
(&mut self)
crates/refunder/src/traits.rs:117
↓ 7 callers
Method
recover
Recovers the owner of the specified signature. This method returns an error if there is an issue recovering an ECDSA signature, or `None` for on-chai
crates/model/src/signature.rs:98
↓ 7 callers
Method
reduce_amount
Reduce the sell amount of this order by the given amount.
crates/driver/src/tests/setup/mod.rs:162
↓ 7 callers
Function
response_body
(response: axum::http::Response<axum::body::Body>)
crates/orderbook/src/api.rs:530
↓ 7 callers
Function
seed_checkpoint
(db: &PgPool, factory: Address, block: u64)
crates/e2e/tests/e2e/pool_indexer.rs:181
↓ 7 callers
Method
single_order
(&self, uid: &OrderUid)
crates/orderbook/src/database/orders.rs:294
↓ 7 callers
Method
solution
(&self)
crates/autopilot/src/domain/competition/bid.rs:30
↓ 7 callers
Method
solution_id
The id of the cached fast-path solution. Present only when the solution was successfully cached for a later `/settle`.
crates/driver/src/tests/setup/mod.rs:1621
↓ 7 callers
Method
solver
(&self)
crates/autopilot/src/domain/settlement/mod.rs:72
↓ 7 callers
Method
solver_fee
Set the solver fee.
crates/driver/src/tests/setup/mod.rs:205
↓ 7 callers
Method
start
Start a new proxy server with automatic failover between backends # Panics Panics if `backends` is empty. At least one backend URL is required.
crates/e2e/src/setup/proxy.rs:76
↓ 7 callers
Method
state_override
( &self, holder: &Address, amount: &U256, )
crates/balance-overrides/src/balance/mod.rs:141
↓ 7 callers
Method
to_f64_lossy
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:102
↓ 7 callers
Method
user_trades
Return the trades which fulfill non-liquidity auction orders. These are the orders placed by end users.
crates/driver/src/domain/competition/solution/mod.rs:494
↓ 7 callers
Method
validate
(&self)
crates/orderbook/src/api/get_trades.rs:38
↓ 7 callers
Method
with_metric_label
Clones self and returns an instance that captures metrics extended with the provided label.
crates/driver/src/infra/blockchain/mod.rs:172
↓ 7 callers
Function
with_pool_indexer_at
Runs `body` with a freshly-started pool-indexer. The indexer is spawned before the closure runs, then `abort`ed and `await`ed after — so the port is f
crates/e2e/tests/e2e/pool_indexer.rs:250
↓ 7 callers
Method
with_signature
(mut self, owner: Address, signature: Signature)
crates/simulator/src/simulation_builder.rs:659
↓ 7 callers
Method
write
(&mut self, buf: &[u8])
crates/s3/src/lib.rs:44
↓ 6 callers
Method
add
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:140
↓ 6 callers
Function
add_settlement
Testing Trades with settlements
crates/database/src/trades.rs:598
↓ 6 callers
Function
adjust_quote_to_order_limits
This function adjusts quote amounts to directly compare them with the order's limits, ensuring a meaningful comparison for potential price improvement
crates/driver/src/domain/competition/solution/fee.rs:255
↓ 6 callers
Function
append_events
For a given checkpoint, append events to get a new checkpoint
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:495
↓ 6 callers
Method
arbitrate
( &self, solutions: Vec<Solution<Unscored, C>>, context: &AuctionContext<C>, )
crates/winner-selection/src/arbitrator.rs:40
↓ 6 callers
Method
as_erc20
If the token is ETH, return WETH, thereby converting it to erc20.
crates/eth-domain-types/src/lib.rs:44
↓ 6 callers
Function
assert_orders_by_contract
( result: &HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, contract: Address, expected_
crates/refunder/src/refund_service.rs:311
↓ 6 callers
Method
balance_override
( &self, request: BalanceOverrideRequest, )
crates/balance-overrides/src/lib.rs:68
↓ 6 callers
Function
big_decimal_to_big_rational
(value: &BigDecimal)
crates/number/src/conversions.rs:28
↓ 6 callers
Function
bytes_to_addr
(b: Vec<u8>)
crates/pool-indexer/src/db/uniswap_v3.rs:12
↓ 6 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/uniswapv3quoterv2/src/lib.rs:691
↓ 6 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/gpv2allowlistauthentication/src/lib.rs:1976
↓ 6 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/erc20mintable/src/lib.rs:2265
↓ 6 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/nonstandarderc20balances/src/lib.rs:1564
↓ 6 callers
Method
checked_mul_ratio
(&self, mul: &Self, div: &Self)
crates/number/src/u256_ext.rs:75
↓ 6 callers
Method
contains
(&self, address: &Address)
crates/shared/src/token_list.rs:100
↓ 6 callers
Function
deploy_univ3
Deploy mock V3 contracts and set up a pool with liquidity.
crates/e2e/tests/e2e/pool_indexer.rs:354
↓ 6 callers
Method
detect
Returns the cached detection result for `(token, holder)`, running detection if not yet cached.
crates/balance-overrides/src/balance/mod.rs:329
↓ 6 callers
Method
div_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:175
↓ 6 callers
Function
fast_path_test
Set up a fast-path quote test: a fast-path solver quoting `ab_order`.
crates/driver/src/tests/cases/quote.rs:133
↓ 6 callers
Method
fee
(&self)
crates/driver/src/domain/competition/solution/trade.rs:47
↓ 6 callers
Function
fetch
(ex: &mut PgConnection, id: AuctionId)
crates/database/src/auction.rs:88
↓ 6 callers
Method
fetch
Fetches liquidity for the specified auction.
crates/driver/src/boundary/liquidity/mod.rs:128
↓ 6 callers
Method
filter
(&self)
crates/autopilot/src/database/ethflow_events/event_retriever.rs:37
↓ 6 callers
Method
filter
(&self)
crates/autopilot/src/boundary/events/settlement.rs:30
↓ 6 callers
Method
from_solver
(mut self, solver: Solver)
crates/simulator/src/simulation_builder.rs:203
↓ 6 callers
Method
get
()
crates/price-estimation/src/native/coingecko.rs:305
↓ 6 callers
Method
get
()
crates/shared/src/order_validation.rs:72
↓ 6 callers
Function
get_confirmed_transaction
( account: Address, web3: &Web3, block_hash_stream: PollerStream<Vec<B256>>, )
crates/e2e/tests/e2e/submission.rs:1005
↓ 6 callers
Function
get_pending_tx
(account: Address, web3: &Web3)
crates/e2e/tests/e2e/submission.rs:996
↓ 6 callers
Function
get_quote
( services: &Services<'_>, sell_token: Address, buy_token: Address, kind: OrderKind, amoun
crates/e2e/tests/e2e/protocol_fee.rs:645
↓ 6 callers
Method
hash
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:979
↓ 6 callers
Function
init_tracing
(env_filter: &str)
crates/observe/src/tracing/distributed/request_id.rs:128
↓ 6 callers
Function
insert_or_overwrite_ethflow_order
( ex: &mut PgTransaction<'_>, event: &EthOrderPlacement, )
crates/database/src/ethflow_orders.rs:26
↓ 6 callers
Method
into_array
(self)
crates/simulator/src/encoding.rs:54
↓ 6 callers
Method
into_domain
Convert this wire trade into a domain trade, deriving the counterpart leg from the clearing prices.
crates/solana-driver/src/infra/solver/dto/solution.rs:68
↓ 6 callers
Method
into_vec
(self)
crates/price-estimation/src/lib.rs:261
↓ 6 callers
Method
is_empty
(&self)
crates/ethrpc/src/alloy/buffering.rs:291
↓ 6 callers
Function
make_log
(address: Address, block: u64, event: impl SolEvent)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1115
↓ 6 callers
Function
mapping_slot_hash
`keccak256(pad32(holder) ++ map_slot)` — the storage slot of `mapping(address => _)` entries in Solidity.
crates/balance-overrides/src/detector.rs:91
↓ 6 callers
Method
name
(&self)
crates/driver/src/infra/solver/mod.rs:294
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:260
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/permit2/src/lib.rs:516
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:479
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:1545
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:408
↓ 6 callers
Method
new_simulation_builder
(&self)
crates/simulator/src/simulation_builder.rs:120
↓ 6 callers
Method
nonce
(&self, web3: &Web3)
crates/e2e/src/setup/onchain_components/mod.rs:56
↓ 6 callers
Function
order
(side: dex::Side)
crates/solana-solvers/src/dto/solution.rs:159
↓ 6 callers
Function
order_kind_into
(kind: OrderKind)
crates/shared/src/db_order_conversions.rs:190
↓ 6 callers
Method
orders
(&self)
crates/autopilot/src/domain/competition/mod.rs:49
↓ 6 callers
Method
out_amount
(&self, query: &PriceQuery)
crates/price-estimation/src/trade_finding/mod.rs:97
↓ 6 callers
Method
parameters_from_app_data
Parses the app data JSON and configures the builder accordingly: - Pre/post hooks are encoded as interactions via the [`HooksTrampoline`] - Flashloan/
crates/simulator/src/simulation_builder.rs:221
↓ 6 callers
Function
pubkey
(byte: u8)
crates/solana-driver/src/infra/solver/dto/solution.rs:241
↓ 6 callers
Method
query
Performs the specified GraphQL query on the current subgraph.
crates/liquidity-sources/src/subgraph.rs:43
↓ 6 callers
Method
remaining
Returns the amount of time remaining to solve, or `None` if time's up.
crates/solvers/src/domain/auction.rs:93
↓ 6 callers
Function
serve_metrics
Serves metrics on a dedicated server at the given address. Spawns a background task and returns its handle.
crates/observe/src/metrics.rs:100
↓ 6 callers
Method
shared_or_else
Returns an existing in flight future or creates and uses a new future from the specified closure.
crates/request-sharing/src/lib.rs:126
↓ 6 callers
Function
signature
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:317
↓ 6 callers
Method
simulate
( &self, tx: T, block: BlockNo, overrides: Option<StateOverride>, gene
crates/simulator/src/tenderly/mod.rs:67
↓ 6 callers
Method
solution
The solution encoded in this settlement.
crates/driver/src/domain/competition/solution/settlement.rs:248
↓ 6 callers
Function
spawn_pamm_stream
Spawns a new background task that streams state override updates into the return [`SimulationOverrides`] instance. `blocks` is read to learn the time
crates/simulator/src/state_override_stream.rs:262
↓ 6 callers
Function
tracing_headers
()
crates/observe/src/tracing/distributed/headers.rs:9
↓ 6 callers
Function
trades
( ex: &'a mut PgConnection, owner_filter: Option<&'a Address>, order_uid_filter: Option<&'a OrderU
crates/database/src/trades.rs:31
↓ 6 callers
Function
u256_to_big_int
(input: &U256)
crates/number/src/conversions.rs:70
← previous
next →
301–400 of 8,749, ranked by callers