Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,747 in github.com/cowprotocol/services
⨍
Functions
10,747
◇
Types & classes
3,488
↓ 1 callers
Method
network_fee_reserve
The network fee the limit legs sent to the engine are moved by, before any route is known: the signature fee plus the priority fee at the policy's def
crates/solana-driver/src/domain/competition.rs:556
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1349
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/counter/src/lib.rs:754
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1373
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/mockerc4626wrapper/src/lib.rs:2463
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/baoswaprouter/src/lib.rs:1349
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/honeyswaprouter/src/lib.rs:1349
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/solver/src/lib.rs:701
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gashog/src/lib.rs:589
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1349
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/anyoneauthenticator/src/lib.rs:344
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/sushiswaprouter/src/lib.rs:1349
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafeproxy/src/lib.rs:130
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/spardose/src/lib.rs:367
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/nonstandarderc20balances/src/lib.rs:1412
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/remoteerc20balances/src/lib.rs:1657
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/solver7702delegate/src/lib.rs:357
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafecompatibilityfallbackhandler/src/lib.rs:1190
↓ 1 callers
Function
new_block
(number: u64)
crates/ethrpc/src/block_stream.rs:411
↓ 1 callers
Method
next_action
(&self)
crates/price-estimation/src/native/fallback.rs:148
↓ 1 callers
Method
next_auction
(&mut self)
crates/autopilot/src/shadow.rs:97
↓ 1 callers
Method
next_auction
( &self, start_block: BlockInfo, prev_auction: &mut Option<Arc<domain::Auction>>,
crates/autopilot/src/run_loop.rs:341
↓ 1 callers
Method
next_auction
Cuts the next auction and dedupes against the previous cycle. A new auction, an empty cut, and a stale cut refresh the liveness probe. A failed cut an
crates/autopilot-svm/src/run_loop.rs:259
↓ 1 callers
Method
next_cycle
(&mut self)
crates/autopilot-svm/src/run_loop.rs:404
↓ 1 callers
Function
next_free_interaction_indices
( db: &mut PgConnection, order: OrderUid, )
crates/database/src/orders.rs:1169
↓ 1 callers
Method
next_quote_id
(&self)
crates/orderbook/src/database/quotes.rs:47
↓ 1 callers
Method
next_solve_seq
The next solve's sequence number, counting every solve this driver receives. Sampling on this instead of the auction id keeps the stride correct howev
crates/solana-driver/src/infra/api/mod.rs:138
↓ 1 callers
Method
no_interactions
Make the solution return no interactions at all, as if the solver couldn't commit to an execution path at quote time.
crates/driver/src/tests/setup/mod.rs:612
↓ 1 callers
Method
no_solution_id
Assert the quote carries no driver-minted solution id: fast-path quotes are referenced by the orderbook's quote id instead.
crates/driver/src/tests/setup/mod.rs:1636
↓ 1 callers
Function
non_empty
The symbol backfill writes `""` as a "tried and failed" sentinel. Surface that as missing instead of as an empty string.
crates/pool-indexer/src/api/uniswap_v3/mod.rs:133
↓ 1 callers
Function
non_vault_cache_size
(size: usize)
crates/price-estimation/src/native/eip4626.rs:275
↓ 1 callers
Method
nonces
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4858
↓ 1 callers
Function
normalize
Lowercases hex strings so they compare equal to the lowercased order view.
crates/fee-engine/src/order_view/mod.rs:145
↓ 1 callers
Method
normalize_price
Applies the normalization factor to a price.
crates/price-estimation/src/native_price_cache.rs:56
↓ 1 callers
Function
now_truncated_to_microseconds
In the DB we use `timestampz` which doesn't store nanoseconds, so we truncate them to make the comparison work.
crates/database/src/settlement_executions.rs:282
↓ 1 callers
Function
now_unix
()
crates/autopilot-svm/src/infra/provider.rs:240
↓ 1 callers
Method
npm
(path: &str)
contracts/src/vendor.rs:268
↓ 1 callers
Function
nz
(value: u64)
crates/solana-driver/src/domain/protocol_fee.rs:117
↓ 1 callers
Function
nz
(value: u64)
crates/solana-driver/src/domain/solver_fee.rs:165
↓ 1 callers
Function
nz
(value: u64)
crates/solana-driver/src/domain/execution_cost.rs:225
↓ 1 callers
Method
observe_config
Build the `observe::Config` for the tracing framework from the logging configuration.
crates/solana-driver/src/infra/config.rs:81
↓ 1 callers
Method
observe_config
Build the `observe::Config` for the tracing framework from the logging configuration.
crates/solana-orderbook/src/infra/config.rs:74
↓ 1 callers
Method
observe_config
Build the `observe::Config` for the tracing framework from the logging configuration.
crates/solana-indexer/src/config.rs:59
↓ 1 callers
Method
observe_config
Build the `observe::Config` for the tracing framework from the logging configuration.
crates/autopilot-svm/src/infra/config.rs:206
↓ 1 callers
Function
observe_source
Records one source request: a result and the request's duration per asked token. Requests cancelled once enough prices arrived record nothing.
crates/autopilot-svm/src/infra/prices.rs:799
↓ 1 callers
Function
observe_transaction
Record the built transaction's footprint against the per-transaction bytes, account, and compute-unit ceilings.
crates/solana-driver/src/domain/competition.rs:1147
↓ 1 callers
Method
on_competition_ended
(&self, _: &TestAuction, _: &NoRanking)
crates/autopilot-svm/src/run_loop.rs:451
↓ 1 callers
Method
on_new_order
(&self, order: OrderUid)
crates/autopilot/src/infra/order_notify/mod.rs:107
↓ 1 callers
Method
on_notify
(&mut self, payload: &str)
crates/autopilot-svm/src/infra/listen.rs:132
↓ 1 callers
Method
on_orders_matched
(&self, _: HashSet<u64>, _: HashSet<u64>)
crates/autopilot-svm/src/run_loop.rs:447
↓ 1 callers
Method
on_orders_ready
(&self, _auction: &TestAuction)
crates/autopilot-svm/src/run_loop.rs:435
↓ 1 callers
Method
on_request_start
(&self, label: &str, method: &str)
crates/ethrpc/src/alloy/instrumentation.rs:229
↓ 1 callers
Function
open_window_auction_ids
Auction ids of open windows, the seed re-read set.
crates/autopilot-svm/src/infra/db.rs:443
↓ 1 callers
Function
opens_funder_paid_account
Whether the creation opens a new account with the funder's lamports. An account already in `existing` costs nothing to create idempotently.
crates/autopilot-svm/src/infra/sponsor.rs:346
↓ 1 callers
Function
order
()
crates/solana-driver/src/infra/api/routes/solve/dto/solve_request.rs:281
↓ 1 callers
Function
order
(owner: Address, sell: Address, buy: Address)
crates/fee-engine/tests/rules.rs:64
↓ 1 callers
Function
order_event_ids
(pool: &PgPool)
crates/autopilot/src/periodic_db_cleanup.rs:138
↓ 1 callers
Function
order_events_matching_fuzzy
(actual: &[OrderEvent], expected: &[OrderEventLabel])
crates/e2e/tests/e2e/univ2.rs:152
↓ 1 callers
Function
order_exists
Whether an order with this uid is already stored.
crates/solana-orderbook/src/infra/db.rs:205
↓ 1 callers
Function
order_flags
(order: &OrderData, signature: &Signature)
crates/simulator/src/encoding.rs:179
↓ 1 callers
Function
order_has_trade
Whether the order has at least one trade.
crates/solana-orderbook/src/infra/db.rs:158
↓ 1 callers
Method
order_is_actively_bid_on
( &self, order_uid: &OrderUid, latest_competitions_count: u32, )
crates/orderbook/src/database/solver_competition_v2.rs:73
↓ 1 callers
Function
order_is_in_recent_solutions
Returns whether the given order uid appears in any solution of the `latest_competitions_count` most recent competitions.
crates/database/src/solver_competition_v2.rs:506
↓ 1 callers
Function
order_json
An order account recording `received` of its buy token.
crates/solana-orderbook/tests/api.rs:877
↓ 1 callers
Function
order_simulator_ignoring_legacy_checks
(sim: MockOrderSimulating)
crates/shared/src/order_validation.rs:3562
↓ 1 callers
Function
order_uid_from_notification
Parses the payload of a `new_order` notification: the hex encoded order UID as emitted by the `order_insert_notify` database trigger.
crates/autopilot/src/infra/order_notify/mod.rs:94
↓ 1 callers
Method
orders
The orders for the auction.
crates/driver/src/domain/competition/auction.rs:114
↓ 1 callers
Method
orders_for_tx
(&self, tx_hash: &B256)
crates/orderbook/src/database/orders.rs:383
↓ 1 callers
Method
other
Returns the token in the pair which is not the one passed in, or None if token passed in is not part of the pair
crates/model/src/lib.rs:45
↓ 1 callers
Method
out_given_in
Use the Uniswap constant AMM formula to calculate the output amount based on the input.
crates/driver/src/tests/setup/blockchain.rs:87
↓ 1 callers
Function
outcome_label
The metrics label for a finished settlement attempt.
crates/solana-driver/src/domain/competition.rs:1219
↓ 1 callers
Method
output
(&self)
crates/solvers/src/domain/solver/baseline.rs:390
↓ 1 callers
Function
overpriced_creation_tx
A well-formed bundle whose priority fee is above the sponsored ceiling. Neither factor is outlandish alone, the product is: 500000 micro-lamports over
crates/solana-orderbook/tests/api.rs:2023
↓ 1 callers
Method
owner
Extract the owner address from the order UID.
crates/chain-types/src/evm.rs:33
↓ 1 callers
Method
page_limit
(&self)
crates/pool-indexer/src/api/uniswap_v3/pools_list.rs:33
↓ 1 callers
Function
pair_address
Calculates deterministic Uniswapv3 pool address. https://github.com/Uniswap/v3-periphery/blob/main/contracts/libraries/PoolAddress.sol
crates/liquidity-sources/src/uniswap_v3_pair_provider.rs:9
↓ 1 callers
Function
params
sell_before_fee = 100, gas_price = 1, sell_token_price = 1.0, so fee = ceil(gas * 1 / 1.0) = gas. A gas of 2000 saturates 100 - 2000 to 0 -> SellAmoun
crates/shared/src/order_quoting.rs:2617
↓ 1 callers
Function
parse_field_paths
Parses dot-separated field paths into a set of paths.
crates/testlib/src/json_matching.rs:98
↓ 1 callers
Function
parse_general_onchain_order_placement_data
( quoter: &'_ dyn OrderQuoting, order_placement_events_and_quotes_zipped: I, domain_separator: Dom
crates/autopilot/src/database/onchain_order_events/mod.rs:482
↓ 1 callers
Function
parse_order_cancellation_error
Parse OrderCancellationError from HTTP response Flow: JSON -> orderbook::api::Error -> OrderCancellationError Note: Returns None for unknown error typ
crates/e2e/tests/e2e/replace_order.rs:43
↓ 1 callers
Function
parse_order_replacement_error
Parse OrderReplacementError from HTTP response Flow: JSON -> orderbook::api::Error -> OrderReplacementError Note: Returns None for unknown error types
crates/e2e/tests/e2e/replace_order.rs:23
↓ 1 callers
Method
parse_request
Parses the JSON body of the `/solve` request during the unified auction pre-processing since eagerly deserializing these requests is surprisingly cost
crates/driver/src/domain/competition/pre_processing.rs:209
↓ 1 callers
Function
parse_streaming_quotes
(response: reqwest::Response)
crates/e2e/tests/e2e/quoting.rs:982
↓ 1 callers
Function
partial_access_list_for
Returns the partial access list for a single trade, or `None` if the trade does not buy native ETH or its receiver has no on-chain code.
crates/driver/src/domain/competition/solution/settlement.rs:361
↓ 1 callers
Method
participate
( &self, driver: Arc<infra::Driver>, request: solve::Request, auction_id: i64,
crates/autopilot/src/shadow.rs:206
↓ 1 callers
Method
partition_unfair_solutions
( &self, solutions: Vec<Solution<Unscored, C>>, context: &AuctionContext<C>, )
crates/winner-selection/src/arbitrator.rs:64
↓ 1 callers
Method
past_events_by_block_number_range
( &self, block_range: &RangeInclusive<u64>, )
crates/event-indexing/src/event_handler.rs:556
↓ 1 callers
Function
path_bytes32
The path parameter as 32 bytes of hex, `0x` prefix optional, or the named rejection.
crates/solana-orderbook/src/infra/api/extract.rs:50
↓ 1 callers
Function
path_candidates
( sell_token: Address, buy_token: Address, base_tokens: &HashSet<Address>, max_hops: usize, )
crates/liquidity-sources/src/base_tokens.rs:81
↓ 1 callers
Function
path_candidates
( sell_token: Address, buy_token: Address, base_tokens: &HashSet<Address>, max_hops: usize, )
crates/solvers/src/boundary/routing.rs:186
↓ 1 callers
Method
path_candidates_with_hops
Returns possible path candidates with the specified number of maximum hops.
crates/liquidity-sources/src/base_tokens.rs:71
↓ 1 callers
Method
pays_to_contract
Does this order pay to a smart contract?
crates/driver/src/domain/competition/order/mod.rs:152
↓ 1 callers
Method
penalty_cap_native
The CIP-87 penalty cap for a fast-path order: the same cap a regular auction would assign, or 0 when the calculator is disabled.
crates/autopilot/src/fast_path.rs:486
↓ 1 callers
Method
pending_chunks
(&self, last_indexed_block: u64, finalized_block: u64)
crates/pool-indexer/src/indexer/uniswap_v3.rs:241
↓ 1 callers
Function
pending_fast_path_order
( ex: &mut PgConnection, uid: &OrderUid, )
crates/database/src/fast_path.rs:108
↓ 1 callers
Method
pending_fast_path_order
( &self, uid: domain::OrderUid, )
crates/autopilot/src/infra/persistence/mod.rs:1090
↓ 1 callers
Function
percentile
The nearest-rank `p`-th percentile of an ascending sample: the smallest value with at least `p` percent of the sample at or below it, so 0 is the mini
crates/solana-driver/src/domain/priority_fee.rs:172
↓ 1 callers
Method
permit
(&self, owner: &TestAccount, spender: Address, value: U256)
crates/e2e/src/setup/onchain_components/mod.rs:137
↓ 1 callers
Method
persist_chunk
Persists the chunk's changes and advances the checkpoint in a single transaction. Returns `true` if this writer applied the chunk, or `false` if anoth
crates/pool-indexer/src/indexer/uniswap_v3.rs:374
↓ 1 callers
Method
persist_competition_ranking
( &self, _: &TestAuction, _: &u64, _: &NoRanking,
crates/autopilot-svm/src/run_loop.rs:437
← previous
next →
3,201–3,300 of 10,747, ranked by callers