Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,824 in github.com/cowprotocol/services
⨍
Functions
10,824
◇
Types & classes
3,468
↓ 1 callers
Function
fee_value
The CEL value a fee function returns: a map tagged with the fee `kind` plus one entry per argument. Fee functions return plain CEL data; typing and ra
crates/fee-engine/src/fee.rs:174
↓ 1 callers
Method
fees
Protocol fees are defined by fee policies attached to the order. Every policy is unwound, so each fee is measured at the legs its policy was applied
crates/driver/src/domain/competition/solution/scoring.rs:156
↓ 1 callers
Function
fetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/reference_scores.rs:38
↓ 1 callers
Function
fetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:400
↓ 1 callers
Function
fetch
( ex: &mut PgConnection, contract_app_data: &AppId, )
crates/database/src/app_data.rs:36
↓ 1 callers
Function
fetch
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/settlement_executions.rs:271
↓ 1 callers
Function
fetch
()
crates/orderbook/src/ipfs_app_data.rs:161
↓ 1 callers
Method
fetch
( &self, token_pairs: HashSet<TokenPair>, at_block: Block, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:286
↓ 1 callers
Method
fetch
The scaled prices of the tokens this source can price, recording one `price_estimates` result and duration per token. Tokens it cannot price are absen
crates/autopilot-svm/src/infra/prices.rs:599
↓ 1 callers
Method
fetch_at_block
The block at which liquidity for `/solve` requests gets fetched.
crates/driver/src/infra/liquidity/fetcher.rs:52
↓ 1 callers
Method
fetch_auction_data_for_transaction
Inspects the calldata of the transaction, decodes the arguments, and finds off-chain data associated with it based on the attached auction_id bytes.
crates/autopilot/src/domain/settlement/observer.rs:99
↓ 1 callers
Function
fetch_auction_ids_by_order_uid
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/auction.rs:123
↓ 1 callers
Function
fetch_auction_participants
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/solver_competition_v2.rs:206
↓ 1 callers
Method
fetch_balances
Fetches the tradable balance for every order owner.
crates/driver/src/domain/competition/pre_processing.rs:260
↓ 1 callers
Method
fetch_batch_consistent
Fetches pools + ticks for `ids` at a single indexer block. The two HTTP endpoints can drift if a chunk commits between them; we retry on mismatch up t
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:386
↓ 1 callers
Method
fetch_batch_statuses
Checks `batch` with one request. Requires `batch` to have at most [`MAX_BATCH_SIZE`] items; extra items are not checked.
crates/banned-users/src/hermod.rs:116
↓ 1 callers
Function
fetch_block_and_process
( provider: &AlloyProvider, previous_block: &mut BlockInfo, sender: &watch::Sender<BlockInfo>, )
crates/ethrpc/src/block_stream.rs:221
↓ 1 callers
Method
fetch_conversion_data
Fetches `convertToAssets(10^vault_decimals)` — how many atomic units of the underlying asset correspond to one full vault token. Returns: - `Ok(Some(
crates/price-estimation/src/native/eip4626.rs:211
↓ 1 callers
Method
fetch_debug_report
(&self, uid: &OrderUid)
crates/orderbook/src/database/debug_report.rs:35
↓ 1 callers
Method
fetch_gas_price
(&self)
crates/gas-price-estimation/src/driver.rs:44
↓ 1 callers
Method
fetch_inner
Sometimes nodes requests error when we try to get state from what we think is the current block when the node has been load balanced out to one that h
crates/liquidity-sources/src/recent_block_cache.rs:307
↓ 1 callers
Method
fetch_json
(self)
contracts/src/vendor.rs:274
↓ 1 callers
Method
fetch_latest_prices
(&self)
crates/autopilot/src/database/auction.rs:144
↓ 1 callers
Method
fetch_latest_prices
(&self)
crates/orderbook/src/database/auctions.rs:38
↓ 1 callers
Function
fetch_latest_token_price
( ex: &mut PgConnection, token: Address, )
crates/database/src/auction.rs:158
↓ 1 callers
Method
fetch_liquidity
( self: Arc<Self>, auction: Arc<Auction>, )
crates/driver/src/domain/competition/pre_processing.rs:402
↓ 1 callers
Method
fetch_logs_bisecting
(&self, from: u64, to: u64)
crates/pool-indexer/src/indexer/uniswap_v3.rs:257
↓ 1 callers
Method
fetch_missing_on_demand
Fetches `missing` at the source's head, not the checkpoint block: the checkpoint can sit ahead of the indexer's served head, so waiting on it would ha
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:307
↓ 1 callers
Function
fetch_multiple
( ex: &mut PgConnection, ids: &[AuctionId], )
crates/database/src/auction.rs:103
↓ 1 callers
Method
fetch_pool_info
( &self, pool_address: Address, block_created: u64, )
crates/liquidity-sources/src/balancer_v2/pools/common.rs:183
↓ 1 callers
Method
fetch_pool_state
( &self, pool_info: &Self::PoolInfo, common_pool_state: BoxFuture<'static, common::Poo
crates/liquidity-sources/src/balancer_v2/pools/weighted.rs:89
↓ 1 callers
Method
fetch_pool_state
( &self, pool_info: &Self::PoolInfo, common_pool_state: BoxFuture<'static, common::Poo
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:89
↓ 1 callers
Method
fetch_pools
( &self, token_pairs: HashSet<TokenPair>, at_block: Block, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:268
↓ 1 callers
Method
fetch_prices
( &self, tokens: &[Address], timeout: Duration, )
crates/price-estimation/src/native_price_cache.rs:394
↓ 1 callers
Method
fetch_quote
`GET /swap/v1/quote`. Kept opaque and passed back verbatim to `/swap-instructions`, we only read the amounts.
crates/solana-solvers/src/dex/jupiter/mod.rs:77
↓ 1 callers
Method
fetch_raw
Tries to find full app data corresponding to the contract app data on IPFS. A return value of `Some` indicates that either the old or new CID format
crates/orderbook/src/ipfs_app_data.rs:55
↓ 1 callers
Method
fetch_solutions
( &self, driver: &infra::Driver, request: solve::Request, )
crates/autopilot/src/shadow.rs:262
↓ 1 callers
Method
fetch_solutions
( &self, auction: &Arc<domain::Auction>, deadline: DateTime<Utc>, )
crates/autopilot/src/run_loop.rs:717
↓ 1 callers
Function
fetch_symbol
(provider: &AlloyProvider, token: Address)
crates/pool-indexer/src/indexer/uniswap_v3.rs:666
↓ 1 callers
Method
fetch_token_infos
Fetches `Metadata` of the requested tokens from a node.
crates/driver/src/infra/tokens.rs:156
↓ 1 callers
Function
fetch_total_surplus
Computes a user's total surplus received (price improvement over limit price and **NOT** quoted price) since march 2023.
crates/orderbook/src/database/total_surplus.rs:10
↓ 1 callers
Method
fetch_values
( &self, requested: HashSet<TestKey>, _: Block, )
crates/liquidity-sources/src/recent_block_cache.rs:559
↓ 1 callers
Method
fetch_vault_info
Fetches the vault's underlying asset address and vault token decimals. Returns: - `Ok(Some(...))` when `token` is a vault. - `Ok(None)` when `asset()
crates/price-estimation/src/native/eip4626.rs:171
↓ 1 callers
Function
fetched_liquidity
Observe the fetched liquidity.
crates/driver/src/infra/observe/mod.rs:57
↓ 1 callers
Function
fetching_liquidity
Observe that liquidity fetching is about to start.
crates/driver/src/infra/observe/mod.rs:52
↓ 1 callers
Function
fetching_liquidity_failed
Observe that fetching liquidity failed.
crates/driver/src/infra/observe/mod.rs:66
↓ 1 callers
Function
fill
The fill `trade` makes of `order`, in the chain-generic vocabulary.
crates/solana-driver/src/domain/protocol_fee.rs:89
↓ 1 callers
Function
fill_or_kill_zeroex_limit_order
( zeroex: &IZeroex::Instance, zeroex_order: &zeroex::OrderRecord, from: Address, )
crates/e2e/tests/e2e/liquidity.rs:405
↓ 1 callers
Method
filledAmount
(data: &[u8])
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4314
↓ 1 callers
Method
filter
(&self)
crates/autopilot/src/database/onchain_order_events/event_retriever.rs:37
↓ 1 callers
Function
filter_dust_orders
Filters out dust orders i.e. partially fillable orders that, when scaled have a 0 buy or sell amount.
crates/autopilot/src/solvable_orders.rs:653
↓ 1 callers
Function
filter_out_in_flight_orders
( mut orders: Vec<&'a Order>, in_flight: &HashSet<OrderUid>, )
crates/autopilot/src/solvable_orders.rs:747
↓ 1 callers
Function
filter_winners
(bids: &[Bid])
crates/autopilot/src/domain/competition/winner_selection.rs:1279
↓ 1 callers
Method
finalize
(self)
crates/driver/src/infra/solver/streaming/mod.rs:152
↓ 1 callers
Method
finalize_fast_path
Moves a fast-path order's staged competition into the permanent tables. In a single transaction, writes `competition_auctions`, the pre-built `propose
crates/autopilot/src/infra/persistence/mod.rs:1166
↓ 1 callers
Method
finalize_fast_path_solution
Swap this quote solution's single user order for the real signed `order`, pin the fill to the signed limit, and recover the order's flashloans/wrapper
crates/driver/src/domain/competition/solution/mod.rs:565
↓ 1 callers
Function
finalize_settle
The `FinalizeSettle` instruction pushing each order's proceeds: out of the buy mint's buffer, or out of the native SOL buffer for a native SOL buy. On
crates/solana-driver/src/domain/settlement.rs:933
↓ 1 callers
Method
finalized_block
(&self)
crates/event-indexing/src/block_retriever.rs:35
↓ 1 callers
Method
finalized_slot
The finalized watermark, `None` before the first flush writes the state row.
crates/solana-indexer/src/persistence.rs:399
↓ 1 callers
Function
find_latest_order_event
The label of the order's most recent auction-progress event.
crates/solana-orderbook/src/infra/db.rs:594
↓ 1 callers
Method
find_pending_tx_in_mempool
Queries the mempool for a pending transaction of the given solver and nonce.
crates/driver/src/infra/mempool/mod.rs:147
↓ 1 callers
Method
find_quote
( &self, id: Option<QuoteId>, parameters: QuoteSearchParameters, )
crates/shared/src/order_quoting.rs:739
↓ 1 callers
Function
find_settlement_trace_and_callers
( call_frame: &blockchain::CallFrame, settlement_contract: eth::Address, )
crates/autopilot/src/domain/settlement/transaction/mod.rs:218
↓ 1 callers
Function
find_settlement_transaction
( ex: &mut PgConnection, auction_id: i64, solver: Address, solution_uid: i64, )
crates/database/src/settlements.rs:9
↓ 1 callers
Method
find_settlement_transaction
Tries to find the transaction executing a given solution proposed by the solver.
crates/autopilot/src/infra/persistence/mod.rs:322
↓ 1 callers
Function
find_solutions_for_order
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/solver_competition_v2.rs:542
↓ 1 callers
Function
find_solver_address
( authenticator: &impl Authenticator, callers: Vec<eth::Address>, block: BlockId, )
crates/autopilot/src/domain/settlement/transaction/mod.rs:247
↓ 1 callers
Function
find_sponsored_creation
The sponsored creation of an order. `None` when the uid is unknown or the order was not placed through the sponsored path.
crates/solana-orderbook/src/infra/db.rs:577
↓ 1 callers
Function
find_winning_solution_uid
Finds a winning solution UID for a given set of trades by comparing the order UID and the sell/buy token with their executed amounts.
crates/autopilot/src/domain/settlement/mod.rs:284
↓ 1 callers
Function
finish_simulation_builder
( mut builder: SimulationBuilder, )
crates/simulator/src/encoding.rs:347
↓ 1 callers
Function
flags
cf. https://github.com/cowprotocol/contracts/blob/v1.5.0/src/contracts/libraries/GPv2Trade.sol#L58
crates/driver/src/domain/competition/solution/encoding.rs:423
↓ 1 callers
Method
flashLoanAndSettle
( data: &[u8], )
contracts/generated/contracts-generated/flashloanrouter/src/lib.rs:961
↓ 1 callers
Function
flashloan_into_dto
(flashloan: Flashloan)
crates/driver/src/tests/cases/flashloan_hints.rs:146
↓ 1 callers
Method
flashloan_router
(&self)
crates/driver/src/infra/blockchain/contracts.rs:146
↓ 1 callers
Method
flashloan_router
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:153
↓ 1 callers
Method
flashloans_enabled
Toggle acceptance of flashloan-hint orders at the driver level.
crates/driver/src/tests/setup/mod.rs:911
↓ 1 callers
Method
flush
(&mut self)
crates/s3/src/lib.rs:48
↓ 1 callers
Method
flush
(&mut self)
crates/driver/src/infra/solver/streaming/best_effort_sink.rs:29
↓ 1 callers
Method
flush_confirmed
Flush every buffer at or below the confirmed slot, then advance the watermark to it: the slot's transactions all arrived before its status, and quiet
crates/solana-indexer/src/indexer/decoder.rs:234
↓ 1 callers
Function
flush_pending_fast_path_backlog
( ex: &mut PgConnection, now: u32, )
crates/database/src/orders.rs:275
↓ 1 callers
Method
flush_pending_fast_path_backlog
Bulk-flushes fast-path orders whose `valid_from` was never populated: their `new_order` notification landed while the autopilot was down, and by the t
crates/autopilot/src/infra/persistence/mod.rs:1084
↓ 1 callers
Method
format_url
Encodes the orders query as a url with parameters.
crates/liquidity-sources/src/zeroex.rs:65
↓ 1 callers
Method
format_variant
for instrumentization purposes
crates/solvers/src/infra/dex/mod.rs:88
↓ 1 callers
Function
frame
The lines of the frame `program` fails in at index `failed`: those after its last `Program <id> invoke` line before it. Any program can print a line t
crates/solana-driver/src/domain/program_error.rs:108
↓ 1 callers
Method
from
(mut value: ProviderLabel)
crates/ethrpc/src/alloy/instrumentation.rs:197
↓ 1 callers
Method
from
(value: CoWSwapEthFlow::CoWSwapEthFlow::ordersReturn)
crates/refunder/src/traits.rs:29
↓ 1 callers
Method
from
(err: anyhow::Error)
crates/account-balances/src/lib.rs:53
↓ 1 callers
Method
from
(err: SimulationError)
crates/driver/src/infra/blockchain/mod.rs:406
↓ 1 callers
Method
from
(value: simulator::Error)
crates/driver/src/domain/competition/solution/mod.rs:835
↓ 1 callers
Method
from
(err: anyhow::Error)
crates/price-estimation/src/native/coingecko.rs:304
↓ 1 callers
Method
from
(interaction: InteractionData)
crates/simulator/src/encoding.rs:253
↓ 1 callers
Function
from_db_slot
The database never stores a negative slot, `to_db_slot` is the only writer.
crates/solana-indexer/src/persistence.rs:36
↓ 1 callers
Function
from_domain
Creates a new solution DTO from its domain object.
crates/solvers/src/api/routes/solve/dto/solution.rs:7
↓ 1 callers
Method
from_eth
Convert an amount of ETH into a token amount using this price. Converting 1 ETH into a token worth 0.1 ETH (like GNO) # Examples ``` use {driver::do
crates/driver/src/domain/competition/auction.rs:280
↓ 1 callers
Function
from_normalized_price
Convert from normalized price to floating point price
crates/price-estimation/src/native/mod.rs:33
↓ 1 callers
Function
from_query
Deserialize a query string the way the `/quote` route does.
crates/driver/src/infra/api/routes/quote/dto/order.rs:76
↓ 1 callers
Function
frozen_token_account_json
(mint: &Pubkey, owner: &Pubkey)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:1119
↓ 1 callers
Method
fulfill
Set up the blockchain context and return the interactions needed to fulfill the orders.
crates/driver/src/tests/setup/blockchain.rs:750
↓ 1 callers
Method
full
Creates a context for vendoring "full" contract data, including bytecode used for deploying the contract for end-to-end test.
contracts/src/vendor.rs:232
↓ 1 callers
Function
full_app_data_with_signer
(signer: Address)
crates/e2e/tests/e2e/app_data_signer.rs:121
← previous
next →
2,801–2,900 of 10,824, ranked by callers