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
↓ 11 callers
Method
with_buy_amount
(mut self, buy_amount: U256)
crates/model/src/order.rs:106
↓ 11 callers
Method
write
(&mut self, buf: &[u8])
crates/s3/src/lib.rs:44
↓ 10 callers
Method
address
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:189
↓ 10 callers
Method
append
(&mut self, label: &str)
crates/ethrpc/src/alloy/instrumentation.rs:191
↓ 10 callers
Method
build
(config: &Config)
crates/driver/src/infra/persistence/mod.rs:46
↓ 10 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/gpv2settlement/src/lib.rs:357
↓ 10 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/weth9/src/lib.rs:2913
↓ 10 callers
Function
get
Get the metrics instance.
crates/solvers/src/infra/metrics.rs:57
↓ 10 callers
Method
get
(&self, address: ð::TokenAddress)
crates/driver/src/domain/competition/auction.rs:141
↓ 10 callers
Method
get
TODO: Remove this method and use the `in_eth` function instead.
crates/autopilot/src/domain/auction/mod.rs:61
↓ 10 callers
Function
insert
Tries to associate the contract app data with the full app data. If this contract app data already existed then the existing full app data is returne
crates/database/src/app_data.rs:7
↓ 10 callers
Method
is_zero
(&self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:135
↓ 10 callers
Method
max
(&self)
crates/eth-domain-types/src/gas.rs:55
↓ 10 callers
Function
metrics
(app: axum::Router<()>)
crates/driver/src/infra/api/routes/metrics.rs:1
↓ 10 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/erc20/src/lib.rs:2234
↓ 10 callers
Method
notify
Make a fire and forget POST request to notify the solver about an event.
crates/driver/src/infra/solver/mod.rs:537
↓ 10 callers
Method
reveal
Call the /reveal endpoint.
crates/driver/src/tests/setup/mod.rs:1117
↓ 10 callers
Method
side
Set the order side.
crates/driver/src/tests/setup/mod.rs:200
↓ 10 callers
Method
uid
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:1002
↓ 10 callers
Method
with_sell_amount
(mut self, sell_amount: U256)
crates/model/src/order.rs:101
↓ 9 callers
Method
all
(&self)
crates/shared/src/token_list.rs:104
↓ 9 callers
Method
cmp
(&self, other: &Self)
crates/driver/src/domain/competition/sorting.rs:69
↓ 9 callers
Function
config
Creates a temporary file containing the config of the given solver.
crates/solvers/src/tests/okx/mod.rs:9
↓ 9 callers
Method
end
(&self)
crates/event-indexing/src/block_retriever.rs:145
↓ 9 callers
Method
err
(self)
crates/driver/src/tests/setup/mod.rs:1278
↓ 9 callers
Method
estimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/fallback.rs:211
↓ 9 callers
Function
from_current_span
Looks up the request id from the current tracing span.
crates/observe/src/tracing/distributed/request_id.rs:60
↓ 9 callers
Function
generate_owners_and_order_ids
Generates 1 unique user and the provided number of unique orders for that user.
crates/database/src/trades.rs:199
↓ 9 callers
Method
get
Globally unique id communicated to the protocol.
crates/driver/src/domain/competition/solution/mod.rs:649
↓ 9 callers
Function
hash_full_app_data
Hash full app data to get the bytes expected to be set as the contract level app data.
crates/app-data/src/app_data_hash.rs:108
↓ 9 callers
Method
input
(&self)
crates/solvers/src/domain/solver/baseline.rs:390
↓ 9 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
↓ 9 callers
Function
post
( state: State, path: Option<String>, query: Option<String>, req: serde_json::Value, )
crates/solvers/src/tests/mock/http.rs:227
↓ 9 callers
Method
quote
(self, quote: OrderQuote)
crates/driver/src/tests/setup/mod.rs:281
↓ 9 callers
Method
register_signer
Calls the inner [`EthereumWallet`]'s [`register_signer`](EthereumWallet::register_signer), if no default signer has been setup (i.e. the wallet was cr
crates/ethrpc/src/alloy/wallet.rs:29
↓ 9 callers
Function
serve
( addr: SocketAddr, estimator: Arc<dyn NativePriceEstimating>, max_timeout: Duration, shutdown
crates/autopilot/src/infra/api.rs:43
↓ 9 callers
Function
token
(u: u64)
crates/price-estimation/src/native_price_cache.rs:561
↓ 8 callers
Function
add_order_and_trade
( ex: &mut PgTransaction<'_>, owner: Address, order_uid: OrderUid, event_index
crates/database/src/trades.rs:252
↓ 8 callers
Method
add_trade
Adds the passed trade to the execution plan. Handles specifics of market, limit and liquidity orders internally.
crates/solver/src/settlement/settlement_encoder.rs:205
↓ 8 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/erc20/src/lib.rs:2329
↓ 8 callers
Method
chain
Returns the chain for the RPC connection.
crates/autopilot/src/infra/blockchain/mod.rs:46
↓ 8 callers
Method
checked_mul_f64
(&self, factor: f64)
crates/number/src/u256_ext.rs:58
↓ 8 callers
Function
clear_DANGER
(pool: &PgPool)
crates/database/src/lib.rs:105
↓ 8 callers
Method
current_block
Returns a stream that monitors the block chain to inform about the current and new blocks.
crates/autopilot/src/infra/blockchain/mod.rs:106
↓ 8 callers
Method
data
Returns the order's data — i.e. the [`OrderCreation`] without the metadata: `signature`, `quote_id` and with the `app_data`'s hash.
crates/model/src/order.rs:354
↓ 8 callers
Method
domainSeparator
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3485
↓ 8 callers
Function
get_vol_fee_adjusted_quote_data
Calculates the protocol fee based on volume fee and adjusts quote amounts.
crates/orderbook/src/quoter.rs:397
↓ 8 callers
Function
ingester
( stream: impl stream::Stream<Item = Result<SubscribeUpdate, Status>> + Unpin + Send, )
crates/solana-indexer/src/indexer/ingester/tests.rs:90
↓ 8 callers
Function
insert_onchain_order
( ex: &mut PgConnection, index: &EventIndex, event: &OnchainOrderPlacement, )
crates/database/src/onchain_broadcasted_orders.rs:79
↓ 8 callers
Method
insert_order
(&self, order: &Order)
crates/orderbook/src/database/orders.rs:217
↓ 8 callers
Function
insert_quote
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/orders.rs:415
↓ 8 callers
Method
into_inner
(self)
crates/event-indexing/src/block_retriever.rs:149
↓ 8 callers
Method
labeled
(&self, label: S)
crates/ethrpc/src/alloy/instrumentation.rs:154
↓ 8 callers
Method
layer
(&self, inner: S)
crates/ethrpc/src/alloy/buffering.rs:57
↓ 8 callers
Function
mock_single_block
A method for creating a block stream with an initial value that never observes any new blocks. This is useful for testing and creating "mock" componen
crates/ethrpc/src/block_stream.rs:266
↓ 8 callers
Method
rename
Rename the order.
crates/driver/src/tests/setup/mod.rs:157
↓ 8 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:1319
↓ 8 callers
Method
send_out_refunding_tx
( &mut self, uids_by_contract: HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, )
crates/refunder/src/refund_service.rs:195
↓ 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
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
↓ 8 callers
Function
timestamp_of_current_block_in_seconds
(provider: &AlloyProvider)
crates/ethrpc/src/block_stream.rs:306
↓ 8 callers
Function
token
(u: u64)
crates/price-estimation/src/buffered.rs:278
↓ 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:171
↓ 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
↓ 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:269
↓ 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
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/cowamm/src/lib.rs:390
↓ 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
checked_sub
(&self, v: &Self)
crates/autopilot/src/domain/competition/mod.rs:103
↓ 7 callers
Function
create_caching_estimator
Helper to create a CachingNativePriceEstimator with its own Cache (convenience for tests that don't need a separate Cache).
crates/price-estimation/src/native_price_cache.rs:567
↓ 7 callers
Function
create_test_quote
(sell_amount: U256, buy_amount: U256)
crates/orderbook/src/quoter.rs:516
↓ 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:589
↓ 7 callers
Method
estimate_gas
(&self, tx: T)
crates/simulator/src/ethereum/mod.rs:123
↓ 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
Function
fetch
(ex: &mut PgConnection, id: AuctionId)
crates/database/src/auction.rs:88
↓ 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:654
↓ 7 callers
Method
get
()
crates/orderbook/src/database/mod.rs:113
↓ 7 callers
Method
get_balances
(&self, queries: &[Query])
crates/account-balances/src/cached.rs:162
↓ 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:175
↓ 7 callers
Function
metrics
()
crates/autopilot/src/maintenance.rs:313
↓ 7 callers
Method
path
(&self, suffix: &str)
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:57
↓ 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:521
← previous
next →
201–300 of 8,522, ranked by callers