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
Function
calculate_status
(order: &FullOrder)
crates/orderbook/src/database/orders.rs:556
↓ 1 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/signatures/src/lib.rs:1042
↓ 1 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/uniswapv3swaprouterv2/src/lib.rs:456
↓ 1 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/deadlinecheck/src/lib.rs:723
↓ 1 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/balancerv2noprotocolfeeliquiditybootstrappingpoolfactory/src/lib.rs:845
↓ 1 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/balancerv2liquiditybootstrappingpoolfactory/src/lib.rs:829
↓ 1 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/anyoneauthenticator/src/lib.rs:494
↓ 1 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/gnosissafeproxyfactory/src/lib.rs:739
↓ 1 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/balancerv2weightedpool2tokensfactory/src/lib.rs:902
↓ 1 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/balancerv2weightedpoolfactory/src/lib.rs:881
↓ 1 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/spardose/src/lib.rs:514
↓ 1 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/balances/src/lib.rs:1147
↓ 1 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/erc1271signaturevalidator/src/lib.rs:462
↓ 1 callers
Function
call_context
(index: u64)
crates/ethrpc/src/alloy/buffering.rs:609
↓ 1 callers
Method
can_be_applied_to_any_holder
Returns whether the strategy can cheaply compute the necessary state override for any given holder or if it only works for the original holder it was
crates/balance-overrides/src/balance/mod.rs:221
↓ 1 callers
Method
can_receive_eth
(&self, address: Address)
crates/refunder/src/infra/chain.rs:39
↓ 1 callers
Method
can_transfer
( &self, query: &Query, amount: U256, )
crates/account-balances/src/simulation.rs:102
↓ 1 callers
Method
can_transfer
( &self, query: &Query, amount: U256, )
crates/account-balances/src/cached.rs:196
↓ 1 callers
Method
cancel_order
(&self, order_uid: &OrderUid, now: DateTime<Utc>)
crates/orderbook/src/database/orders.rs:262
↓ 1 callers
Method
cancel_order_single
Cancel a single order (deprecated endpoint)
crates/e2e/src/setup/services.rs:845
↓ 1 callers
Function
carries_stamp
Whether `word` carries `stamp` anywhere, in any unit.
crates/simulator/src/state_override_stream.rs:107
↓ 1 callers
Method
catch_up
Cold-seeds a factory by replaying on-chain history from `from_block` up to the current finalized block, then returns. Loops in case more blocks finali
crates/pool-indexer/src/indexer/uniswap_v3.rs:155
↓ 1 callers
Method
cd_order_executed
Ensure that the onchain balances changed in accordance with the [`cd_order`].
crates/driver/src/tests/setup/mod.rs:1870
↓ 1 callers
Function
ceil_div
(x: eth::U256, y: eth::U256)
crates/driver/src/tests/setup/mod.rs:477
↓ 1 callers
Method
ceil_div
Ceiling division that panics on error.
crates/number/src/u256_ext.rs:23
↓ 1 callers
Function
cel_value
JSON as the value CEL evaluates, typed as `Context::add_variable` types it. Recursive: a field is as deep as its type.
crates/fee-engine/src/order_view/mod.rs:103
↓ 1 callers
Method
chainalysis_oracle
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:146
↓ 1 callers
Function
charges_fee
Whether a transfer of the mint pays a fee at `epoch` or will once the newer schedule starts. Token-2022 applies the newer schedule from its epoch on a
crates/solana-token/src/lib.rs:130
↓ 1 callers
Function
check
( order: &Order, failed_overrides: &[AccountOverrideRequest], report: &SimulationRepor
crates/shared/src/order_creation_simulation.rs:366
↓ 1 callers
Method
check
Returns the subset reported as banned by any backend. Misses fan out to backends concurrently.
crates/order-validation/src/banned/cached.rs:89
↓ 1 callers
Method
checkDeadline
(data: &[u8])
contracts/generated/contracts-generated/deadlinecheck/src/lib.rs:382
↓ 1 callers
Function
check_accounts
Reject an order on a mint the settlement program cannot move, a preparation step naming a token program that does not own its mint, a native SOL buy p
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:523
↓ 1 callers
Function
check_database_connection
(orderbook: &Orderbook)
crates/orderbook/src/run.rs:561
↓ 1 callers
Function
check_erc1271_result
(result: FixedBytes<4>)
crates/signature-validator/src/lib.rs:100
↓ 1 callers
Function
check_fast_path_limit_fits
Verifies that the signed sell/buy amounts leave enough room for the compounded volume fees that would be applied at fast-path settlement time. `facto
crates/shared/src/fee.rs:236
↓ 1 callers
Method
check_fast_path_limit_price_fits
Validates that a fast-path order's signed sell/buy amounts leave enough room for the compounded protocol + partner volume fees the autopilot would cha
crates/shared/src/order_validation.rs:542
↓ 1 callers
Function
check_lighthouse
Accept only a Lighthouse assertion. The program is upgradeable at a fixed address, so an instruction this build does not know is refused rather than a
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:791
↓ 1 callers
Method
check_max_limit_orders
(&self, owner: Address)
crates/shared/src/order_validation.rs:561
↓ 1 callers
Function
check_mints
Reject a mint the settlement program cannot move, and tell the buy mint's token program. The chain read goes through the sponsoring RPC client, so the
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:646
↓ 1 callers
Function
check_native_payout
Reject a native SOL buy whose payout would leave its wallet under the rent-exempt minimum, checked as fill-or-kill since the quote names no fill polic
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:812
↓ 1 callers
Function
check_size
Refuse a transaction over the network's byte ceiling for its version: v1 for the settlement, v0 for the autopilot's order creations. An RPC node rejec
crates/solana-driver/src/domain/competition.rs:1166
↓ 1 callers
Function
check_solve_request
Checks the provider /solve request against the expected values while keeping some slack for the effective gas price, as it might vary between blockcha
crates/driver/src/tests/setup/solver.rs:515
↓ 1 callers
Method
classify_buy_token_accounts
Classify every token buy's buy token account, the settlement's payout destination, against the chain, and price the creation of the missing ones at th
crates/solana-driver/src/domain/auction.rs:114
↓ 1 callers
Function
clearing_rate
The `(in, out)` rate at which `orders` orders on `side`, filled together by a swap of `in_amount` for `out_amount`, clear: the rate their clearing pri
crates/solana-solvers/src/dex/mod.rs:102
↓ 1 callers
Function
clock_at
The Clock sysvar account at `epoch`.
crates/solana-token/src/lib.rs:350
↓ 1 callers
Method
close_reverted
Close the window of a settlement the driver saw land and fail on chain. The transaction cannot land again, so its orders need no hold.
crates/autopilot-svm/src/infra/observation.rs:106
↓ 1 callers
Function
coingecko
The `simple/token_price` prices for the given mints, requested in chunks. The configured endpoint addresses the route, so only the chain is appended.
crates/autopilot-svm/src/infra/prices.rs:620
↓ 1 callers
Function
coingecko_request
Observe a request to be sent to CoinGecko
crates/price-estimation/src/native/coingecko.rs:280
↓ 1 callers
Function
coingecko_response
Observe that a response was received from CoinGecko
crates/price-estimation/src/native/coingecko.rs:285
↓ 1 callers
Method
collect_garbage
Removes entries that have not been requested for a long time. This allows us to remove orders that got settled by other solvers which we are not able
crates/solvers/src/domain/solver/dex/fills.rs:164
↓ 1 callers
Method
collect_orders_app_data
Fetches the app data for all orders in the auction. Returns a map from app data hash to the fetched app data.
crates/driver/src/domain/competition/pre_processing.rs:348
↓ 1 callers
Function
collect_pool_results
(pools: Vec<Result<PoolStatus>>)
crates/liquidity-sources/src/balancer_v2/pool_fetching/registry.rs:144
↓ 1 callers
Function
collect_request_body
(request: Request<Body>)
crates/driver/src/domain/competition/pre_processing.rs:428
↓ 1 callers
Function
collect_wrapper_calls
( frame: &::alloy::rpc::types::trace::geth::CallFrame, wrapper_addr: Address, calls: &
crates/e2e/tests/e2e/wrapper.rs:268
↓ 1 callers
Function
collector
( eth: &Ethereum, blocks: &CurrentBlockWatcher, config: &infra::liquidity::config::Swapr, cach
crates/driver/src/boundary/liquidity/swapr.rs:42
↓ 1 callers
Method
commit_chunk
( &self, chunk: ChunkRange, logs: Vec<Log>, target_block: u64, )
crates/pool-indexer/src/indexer/uniswap_v3.rs:288
↓ 1 callers
Function
compare_jsons
A helper function that recursively compares two JSON values using Depth-First Search (DFS) traversal. It utilizes a `current_path` accumulator to main
crates/testlib/src/json_matching.rs:118
↓ 1 callers
Function
compare_native_result
( a: &Result<f64, PriceEstimationError>, b: &Result<f64, PriceEstimationError>, )
crates/price-estimation/src/competition/native.rs:111
↓ 1 callers
Function
compare_orders
Whether `order` describes the same trade as `quoted`: same tokens, side and target amount. Native ETH and WETH are treated as the same token: the orde
crates/driver/src/domain/competition/solution/mod.rs:99
↓ 1 callers
Function
compare_quote
(query: &Query, a: &Estimate, b: &Estimate, context: &RankingContext)
crates/price-estimation/src/competition/quote.rs:250
↓ 1 callers
Function
compare_quote_result
( query: &Query, a: &PriceEstimateResult, b: &PriceEstimateResult, context: &RankingContext,
crates/price-estimation/src/competition/quote.rs:227
↓ 1 callers
Function
compared
(default: f64)
crates/orderbook/src/fee_engine.rs:420
↓ 1 callers
Method
competition
(&self, auction: &domain::Auction)
crates/autopilot/src/shadow.rs:181
↓ 1 callers
Method
compile
Compiles both expressions of a definition.
crates/fee-engine/src/rules.rs:191
↓ 1 callers
Method
compressed
Returns a compressed copy of this request, or `None` if compression failed.
crates/autopilot/src/infra/solvers/dto/solve.rs:100
↓ 1 callers
Method
compressed_body_size
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:170
↓ 1 callers
Method
compute_and_persist_final_execution
Adjusts every staged solution's bid by the volume-fee policies, promotes the staged quote competition into the permanent `competition_auctions` / `pro
crates/autopilot/src/fast_path.rs:330
↓ 1 callers
Method
compute_and_validate_valid_from
( &self, app_data: &OrderAppData, order: &OrderData, )
crates/shared/src/order_validation.rs:743
↓ 1 callers
Function
compute_euler_override
Euler is the only integration for now using wrappers and they have a chicken and egg problem when quoting. They need a quote to know the things they h
crates/simulator/src/simulation_builder.rs:344
↓ 1 callers
Function
compute_order_score
Score defined as (surplus + protocol fees) first converted to buy amounts and then converted to the native token. Follows CIP-38 as the base of the s
crates/winner-selection/src/arbitrator.rs:325
↓ 1 callers
Method
compute_quote_data
( &self, parameters: &QuoteParameters, )
crates/shared/src/order_quoting.rs:682
↓ 1 callers
Function
compute_reference_score
Computes reference score for the winning solver: the *counterfactual score — what would have been achieved without this solver. This is defined as the
crates/autopilot/src/fast_path.rs:596
↓ 1 callers
Function
compute_score
( trades: &[Trade], native_prices: &auction::Prices, )
crates/driver/src/domain/competition/solution/scoring.rs:22
↓ 1 callers
Method
compute_scores_by_solution
Computes the `DirectionalScores` for all solutions and discards solutions as invalid whenever that computation is not possible. Solutions get discarde
crates/winner-selection/src/arbitrator.rs:145
↓ 1 callers
Method
compute_submission_deadline
Computes timestamp and number of the last block the order may be executed in.
crates/autopilot/src/fast_path.rs:509
↓ 1 callers
Method
compute_unit_price
The configured percentile of the most recent slots' fees, raised to the floor. No fees at all give the floor.
crates/solana-driver/src/domain/priority_fee.rs:155
↓ 1 callers
Function
config
(api_key: String, api_secret: String)
crates/solana-solvers/src/dex/bitget/mod.rs:115
↓ 1 callers
Method
config
(&self)
crates/driver/src/infra/solver/mod.rs:603
↓ 1 callers
Function
config_with_buy_orders
Creates a config with buy orders enabled via the reverse-quote endpoint.
crates/solvers/src/tests/bitget/mod.rs:25
↓ 1 callers
Function
config_with_buy_orders
Config with buy orders enabled.
crates/solvers/src/tests/okx/limit_order.rs:325
↓ 1 callers
Method
configure
Creates a new HTTP client, allowing for additional configuration.
crates/http-client/src/lib.rs:32
↓ 1 callers
Method
configure_response_async
Instructs the solver to return a new response from now on.
crates/e2e/src/setup/solver/mock.rs:44
↓ 1 callers
Method
configure_solution_async
Instructs the solver to return a new solution from now on.
crates/e2e/src/setup/solver/mock.rs:56
↓ 1 callers
Function
connect
(config: &EventBusConfig)
crates/observe/src/event_bus/mod.rs:73
↓ 1 callers
Function
connect_yellowstone
Retries the yellowstone connection until it succeeds.
crates/solana-indexer/src/run.rs:234
↓ 1 callers
Method
considered_order_uids
(&self)
crates/autopilot-svm/src/run_loop.rs:371
↓ 1 callers
Method
considered_order_uids
(&self)
crates/autopilot-svm/src/domain/cycle.rs:82
↓ 1 callers
Method
contains
(&self, token: &Address)
crates/token-info/src/deny_list.rs:23
↓ 1 callers
Function
converge_in_amount
Balancer V2 pools are "unstable", where if you compute an input amount large enough to buy X tokens, selling the computed amount over the same pool in
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:335
↓ 1 callers
Method
convertToAssets
(data: &[u8])
contracts/generated/contracts-generated/ierc4626/src/lib.rs:427
↓ 1 callers
Function
convert_block_and_process
( block: alloy_rpc_types::Header, previous_block: &mut BlockInfo, sender: &watch::Sender<BlockInfo
crates/ethrpc/src/block_stream.rs:160
↓ 1 callers
Function
convert_execution
(e: DbOrderExecution)
crates/orderbook/src/database/debug_report.rs:182
↓ 1 callers
Function
convert_fee_policy
(f: DbFeePolicy)
crates/orderbook/src/database/debug_report.rs:225
↓ 1 callers
Function
convert_invalidation
( invalidation: &GPv2Settlement::OrderInvalidated, log: ValidatedLog, )
crates/autopilot/src/database/events.rs:150
↓ 1 callers
Function
convert_presignature
( presignature: &GPv2Settlement::PreSignature, log: ValidatedLog, )
crates/autopilot/src/database/events.rs:160
↓ 1 callers
Function
convert_settlement
( settlement: &GPv2Settlement::Settlement, log: ValidatedLog, )
crates/autopilot/src/database/events.rs:139
↓ 1 callers
Function
convert_settlement
(s: DbSettlementExecution)
crates/orderbook/src/database/debug_report.rs:212
↓ 1 callers
Function
convert_solution
(s: DbProposedSolution)
crates/orderbook/src/database/debug_report.rs:169
↓ 1 callers
Function
convert_trade
(trade: &GPv2Settlement::Trade, log: ValidatedLog)
crates/autopilot/src/database/events.rs:129
↓ 1 callers
Method
count_win
Counts this quote as the winner of its quote competition.
crates/solana-orderbook/src/infra/quoter.rs:73
← previous
next →
2,401–2,500 of 10,747, ranked by callers