Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,736 in github.com/cowprotocol/services
⨍
Functions
10,736
◇
Types & classes
3,464
↓ 1 callers
Method
mul_ceil
Multiplies this fee by the given floating point number, rounding up.
crates/eth-domain-types/src/gas.rs:95
↓ 1 callers
Method
multiply_amount
Multiply the sell amount of this order by the given factor.
crates/driver/src/tests/setup/mod.rs:170
↓ 1 callers
Method
multisig_signers
The first `m` signers of the token program multisig at `authority`, enough to sign for it. Empty when `authority` is no multisig.
crates/solana-orderbook/src/infra/verifier.rs:489
↓ 1 callers
Method
name
(&self)
crates/fee-engine/src/rules.rs:224
↓ 1 callers
Method
name
(&self)
crates/autopilot/src/event_updater.rs:78
↓ 1 callers
Function
names
(evaluation: &Evaluation<'r>)
crates/fee-engine/src/evaluator.rs:257
↓ 1 callers
Function
native_payout_funding
The instructions that fund the native SOL buffer's payouts: check that the payer's wSOL ATA holds the payouts less the `max_shortfall` share, close it
crates/solana-driver/src/domain/settlement.rs:984
↓ 1 callers
Method
native_price_request
(&self, order: &Order)
crates/solvers/src/domain/solver/baseline.rs:307
↓ 1 callers
Method
native_token_price_estimation_amount
(&self)
crates/price-estimation/src/factory.rs:169
↓ 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:572
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1342
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/counter/src/lib.rs:750
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1366
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/mockerc4626wrapper/src/lib.rs:2452
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/baoswaprouter/src/lib.rs:1342
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/honeyswaprouter/src/lib.rs:1342
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/solver/src/lib.rs:698
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gashog/src/lib.rs:587
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1342
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/anyoneauthenticator/src/lib.rs:343
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/sushiswaprouter/src/lib.rs:1342
↓ 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:366
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/nonstandarderc20balances/src/lib.rs:1406
↓ 1 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/remoteerc20balances/src/lib.rs:1650
↓ 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:1184
↓ 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:386
↓ 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:262
↓ 1 callers
Method
next_cycle
(&mut self)
crates/autopilot-svm/src/run_loop.rs:419
↓ 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:4836
↓ 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:264
↓ 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:212
↓ 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:845
↓ 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:1185
↓ 1 callers
Method
on_competition_ended
(&self, _: &TestAuction, _: &NoRanking)
crates/autopilot-svm/src/run_loop.rs:466
↓ 1 callers
Method
on_new_order
(&self, order: OrderUid)
crates/autopilot/src/infra/order_notify/mod.rs:103
↓ 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:462
↓ 1 callers
Method
on_orders_ready
(&self, _auction: &TestAuction)
crates/autopilot-svm/src/run_loop.rs:450
↓ 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:446
↓ 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:353
↓ 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_cost
The execution cost of the order `request` describes when placed on a stored quote with `network_fee`: that fee and the rent of the order's buy token a
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:404
↓ 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:295
↓ 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:243
↓ 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:898
↓ 1 callers
Function
order_quote
The copy of the stored `quote` for the order `request` describes: the route with the cost that order pays on it, its own buy token account's rent on t
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:711
↓ 1 callers
Function
order_simulator_ignoring_legacy_checks
(sim: MockOrderSimulating)
crates/shared/src/order_validation.rs:3566
↓ 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:90
↓ 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:1257
↓ 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:2211
↓ 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:986
↓ 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
← previous
next →
3,201–3,300 of 10,736, ranked by callers