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
↓ 12 callers
Method
get
()
crates/pool-indexer/src/metrics.rs:54
↓ 12 callers
Function
initialize_reentrant
Like [`initialize`], but can be called multiple times in a row. Later calls are ignored. Useful for tests.
crates/observe/src/tracing/init.rs:43
↓ 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
Function
spawn_server
Spawn the API server on an ephemeral port and return its bound address.
crates/solana-driver/tests/api.rs:66
↓ 12 callers
Method
state
(&self)
crates/winner-selection/src/solution.rs:66
↓ 12 callers
Function
test_order
A default sell order.
crates/solana-driver/src/domain/settlement.rs:595
↓ 12 callers
Method
uid
(&self, domain: &DomainSeparator, owner: Address)
crates/model/src/order.rs:263
↓ 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:142
↓ 11 callers
Method
get
()
crates/autopilot/src/infra/persistence/mod.rs:1049
↓ 11 callers
Method
get_solver_competition
( &self, hash: B256, )
crates/e2e/src/setup/services.rs:465
↓ 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
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:1133
↓ 11 callers
Method
layer
(&self, inner: S)
crates/ethrpc/src/alloy/buffering.rs:67
↓ 11 callers
Method
max
(&self)
crates/eth-domain-types/src/gas.rs:55
↓ 11 callers
Method
overrides_for
Returns the live state overrides adjusted for a simulation running at `block` with `timestamp`, or `None` (callers omit the RPC override param entirel
crates/simulator/src/state_override_stream.rs:90
↓ 11 callers
Function
run
( f: F, filters: impl IntoIterator<Item = T>, fork: Option<(String, Option<u64>)>, )
crates/e2e/src/setup/mod.rs:178
↓ 11 callers
Function
single_full_order_with_quote
( ex: &mut PgConnection, uid: &OrderUid, )
crates/database/src/orders.rs:680
↓ 11 callers
Function
t
(n: i32)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1111
↓ 11 callers
Method
to_bytes
(&self)
crates/model/src/signature.rs:137
↓ 11 callers
Method
transfer
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1964
↓ 11 callers
Method
uid
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:1005
↓ 11 callers
Method
validate
(&self)
crates/autopilot/src/domain/competition/winner_selection.rs:982
↓ 11 callers
Method
web3
(&self)
crates/driver/src/tests/setup/mod.rs:1317
↓ 11 callers
Method
with_buy_amount
(mut self, buy_amount: U256)
crates/model/src/order.rs:106
↓ 10 callers
Function
add_order_and_trade
( ex: &mut PgTransaction<'_>, owner: Address, order_uid: OrderUid, event_index
crates/database/src/trades.rs:322
↓ 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
as_str
(&self)
crates/solana-indexer/src/persistence.rs:54
↓ 10 callers
Method
bind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-orderbook/src/infra/api/mod.rs:63
↓ 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
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
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
↓ 10 callers
Method
is_winner
(self)
crates/winner-selection/src/state.rs:39
↓ 10 callers
Method
is_zero
(&self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:135
↓ 10 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
↓ 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:538
↓ 10 callers
Function
pubkey
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:47
↓ 10 callers
Method
pubkey
The solver's on-chain identity, derived from its signer keypair.
crates/solana-driver/src/infra/solver/mod.rs:40
↓ 10 callers
Method
reveal
Call the /reveal endpoint.
crates/driver/src/tests/setup/mod.rs:1141
↓ 10 callers
Method
side
Set the order side.
crates/driver/src/tests/setup/mod.rs:200
↓ 10 callers
Function
solver_with_keypair
A solver client whose on-chain identity is a freshly generated keypair, so the test can register a matching settlement signer.
crates/solana-driver/tests/api.rs:93
↓ 10 callers
Function
token
(u: u64)
crates/price-estimation/src/native_price_cache.rs:585
↓ 10 callers
Method
token_account_state
Classify the state of the token account at `address` for a caller that creates missing token accounts idempotently. An SPL-token-owned account is `In
crates/solana-driver/src/infra/blockchain/accounts.rs:89
↓ 10 callers
Method
with_sell_amount
(mut self, sell_amount: U256)
crates/model/src/order.rs:101
↓ 9 callers
Method
build
(config: &Config)
crates/driver/src/infra/persistence/mod.rs:46
↓ 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
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:269
↓ 9 callers
Method
get
Globally unique id communicated to the protocol.
crates/driver/src/domain/competition/solution/mod.rs:751
↓ 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:103
↓ 9 callers
Function
hashed_eip712_message
(domain_separator: &DomainSeparator, struct_hash: &[u8; 32])
crates/model/src/signature.rs:270
↓ 9 callers
Method
input
(&self)
crates/solvers/src/domain/solver/baseline.rs:394
↓ 9 callers
Function
metrics
(app: axum::Router<()>)
crates/driver/src/infra/api/routes/metrics.rs:1
↓ 9 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
↓ 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
spawn_mock_solver_engine
A tiny axum server that returns a fixed `/solve` response. It stands in for a solver engine.
crates/solana-driver/tests/api.rs:77
↓ 9 callers
Function
test_order_with
A default sell order with `customize` applied before the uid and order PDA are derived.
crates/solana-driver/src/domain/settlement.rs:570
↓ 9 callers
Function
token
(u: u64)
crates/price-estimation/src/buffered.rs:280
↓ 9 callers
Method
update
Replaces each venue's quotes with the ones the frame carries, recording which of them are stamped `quoted_at` — the timestamp of the block the frame q
crates/simulator/src/state_override_stream.rs:369
↓ 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
all
(&self)
crates/shared/src/token_list.rs:104
↓ 8 callers
Method
bind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-driver/src/infra/api/mod.rs:35
↓ 8 callers
Method
calculate
Computes the penalty cap for an order, in native token. The order's volume is its sell amount for sell orders and its buy amount for buy orders, conv
crates/autopilot/src/domain/penalty_cap.rs:94
↓ 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
Function
clear_pool_indexer_tables
Truncates the indexer's tables between tests. The schema itself is provisioned by flyway (`migrations-pool-indexer`), so this just clears rows.
crates/e2e/tests/e2e/pool_indexer.rs:171
↓ 8 callers
Method
count
(&self, owner: Address)
crates/orderbook/src/database/orders.rs:494
↓ 8 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:591
↓ 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:108
↓ 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:355
↓ 8 callers
Method
domainSeparator
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3485
↓ 8 callers
Method
end
(&self)
crates/event-indexing/src/block_retriever.rs:145
↓ 8 callers
Method
estimate_gas
( &self, tx: T, overrides: Option<StateOverride>, block: BlockId, )
crates/simulator/src/ethereum/mod.rs:126
↓ 8 callers
Method
fee
(&self)
crates/driver/src/domain/competition/solution/trade.rs:47
↓ 8 callers
Method
get_balances
(&self, queries: &[Query])
crates/account-balances/src/cached.rs:168
↓ 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:408
↓ 8 callers
Function
git_version
()
crates/observe/src/version.rs:3
↓ 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:219
↓ 8 callers
Function
insert_quote
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/orders.rs:424
↓ 8 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:216
↓ 8 callers
Method
labeled
(&self, label: S)
crates/ethrpc/src/alloy/instrumentation.rs:154
↓ 8 callers
Function
metrics
()
crates/autopilot/src/maintenance.rs:294
↓ 8 callers
Function
pool
()
crates/autopilot-svm/src/test_db.rs:5
↓ 8 callers
Function
relevant_instructions
Resolve every instruction against `account_keys` and keep only those whose program is the settlement or SolFlow program, where settlement is often rea
crates/solana-indexer/src/indexer/decoder.rs:681
↓ 8 callers
Method
rename
Rename the order.
crates/driver/src/tests/setup/mod.rs:157
↓ 8 callers
Function
reply
Build an error response.
crates/solana-orderbook/src/infra/api/error.rs:20
↓ 8 callers
Method
reset
Resets `previous_auction` and `last_checkpoint` to their default values.
crates/autopilot/src/run_loop.rs:117
↓ 8 callers
Method
scheme
(&self)
crates/model/src/signature.rs:145
↓ 8 callers
Method
send_out_refunding_tx
( &mut self, uids_by_contract: HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, )
crates/refunder/src/refund_service.rs:196
← previous
next →
201–300 of 9,022, ranked by callers