Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
9,022 in github.com/cowprotocol/services
⨍
Functions
9,022
◇
Types & classes
3,241
↓ 8 callers
Method
serve
Serve the API on the given listener until `shutdown` resolves, then drain in-flight requests before returning.
crates/solana-driver/src/infra/api/mod.rs:44
↓ 8 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
↓ 8 callers
Method
slot
Computes the `(contract, storage_slot)` pair for a specific `(owner, spender)` pair.
crates/balance-overrides/src/approval/mod.rs:131
↓ 8 callers
Function
timestamp_of_current_block_in_seconds
(provider: &AlloyProvider)
crates/ethrpc/src/block_stream.rs:306
↓ 8 callers
Method
try_to_refund_all_eligible_orders
Fetches refundable orders from DB, validates on-chain, and submits batch refunds. Individual failures are logged and skipped.
crates/refunder/src/refund_service.rs:172
↓ 8 callers
Function
uniswap
()
crates/solvers/src/tests/cases/buy_order_rounding.rs:7
↓ 8 callers
Method
vaultRelayer
(data: &[u8])
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4344
↓ 8 callers
Method
write
(&mut self, buf: &[u8])
crates/s3/src/lib.rs:44
↓ 7 callers
Method
ab_order_executed
Ensure that the onchain balances changed in accordance with the [`ab_order`].
crates/driver/src/tests/setup/mod.rs:1848
↓ 7 callers
Method
allowance
(&self)
crates/solvers/src/domain/dex/mod.rs:99
↓ 7 callers
Function
annotate
Attaches the RPC correlation headers to the packet. A batched packet coalesces several calls, so the calls header lists every `method:id` pair and th
crates/ethrpc/src/alloy/rpc_headers.rs:122
↓ 7 callers
Method
apply_factor
Applies a factor to the token amount.
crates/eth-domain-types/src/token_amount.rs:15
↓ 7 callers
Method
as_any
(&self)
crates/solver/src/liquidity/mod.rs:448
↓ 7 callers
Function
assert_trades
( db: &mut PgConnection, owner_filter: Option<&Address>, order_uid_filter: Option<&Ord
crates/database/src/trades.rs:339
↓ 7 callers
Method
authenticator
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:160
↓ 7 callers
Method
buy_amount
(self, buy_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:90
↓ 7 callers
Function
calculator
()
crates/autopilot/src/domain/penalty_cap.rs:183
↓ 7 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/liquoricesettlement/src/lib.rs:576
↓ 7 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/cowswapethflow/src/lib.rs:505
↓ 7 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/remoteerc20balances/src/lib.rs:1826
↓ 7 callers
Method
chain
Returns the chain for the RPC connection.
crates/autopilot/src/infra/blockchain/mod.rs:48
↓ 7 callers
Method
checked_mul_f64
(&self, factor: f64)
crates/number/src/u256_ext.rs:105
↓ 7 callers
Method
checked_sub
(&self, v: &Self)
crates/autopilot/src/domain/competition/mod.rs:103
↓ 7 callers
Function
clear_DANGER
(pool: &PgPool)
crates/database/src/lib.rs:100
↓ 7 callers
Function
create_test_quote
(sell_amount: U256, buy_amount: U256)
crates/orderbook/src/quoter.rs:525
↓ 7 callers
Function
delegate_deployment
( callers: &[Address], )
crates/driver/src/infra/solver/eip7702.rs:85
↓ 7 callers
Function
detect_reorg_path
Try to shorten the latest_blocks by detecting the reorg from previous event update. If no reorg can be detected (for example, when `handled_blocks` is
crates/event-indexing/src/event_handler.rs:599
↓ 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:195
↓ 7 callers
Method
executed
(&self)
crates/driver/src/domain/competition/solution/trade.rs:40
↓ 7 callers
Function
fetch
(ex: &mut PgConnection, id: AuctionId)
crates/database/src/auction.rs:95
↓ 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:666
↓ 7 callers
Method
get
()
crates/orderbook/src/database/mod.rs:111
↓ 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
Method
instructions
Build the settlement instruction list.
crates/solana-driver/src/domain/settlement.rs:153
↓ 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:126
↓ 7 callers
Method
push_back
(&mut self, sender: ResponseSender)
crates/ethrpc/src/alloy/buffering.rs:116
↓ 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:528
↓ 7 callers
Method
score
Extracts the score from the response. Since response can contain multiple solutions, it takes the score from the first solution.
crates/driver/src/tests/setup/mod.rs:1400
↓ 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_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:498
↓ 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:660
↓ 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:249
↓ 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:499
↓ 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:312
↓ 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
Method
encode
Encodes the settlement's order_trade as a tuple, as expected by the smart contract.
crates/solver/src/settlement/mod.rs:87
↓ 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
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:307
↓ 6 callers
Method
get
()
crates/shared/src/order_validation.rs:73
↓ 6 callers
Method
get_auction
Fetches the current auction. Don't use this as a synchronization mechanism in tests because that is prone to race conditions which would make tests fl
crates/e2e/src/setup/services.rs:449
↓ 6 callers
Function
get_confirmed_transaction
( account: Address, web3: &Web3, block_hash_stream: PollerStream<Vec<B256>>, )
crates/e2e/tests/e2e/submission.rs:1006
↓ 6 callers
Function
get_pending_tx
(account: Address, web3: &Web3)
crates/e2e/tests/e2e/submission.rs:997
↓ 6 callers
Function
get_quote
( services: &Services<'_>, sell_token: Address, buy_token: Address, kind: OrderKind, amoun
crates/e2e/tests/e2e/protocol_fee.rs:646
↓ 6 callers
Method
hash
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:982
↓ 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:312
↓ 6 callers
Method
lookup_table
Return the address lookup table at `key` for the v0 message compiler. # Requirements - The account must exist. - The address-lookup-table program mu
crates/solana-driver/src/infra/blockchain/accounts.rs:62
↓ 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
← previous
next →
301–400 of 9,022, ranked by callers