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
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
Function
fetch_one
Logs and swallows backend errors so callers can OR successful results.
crates/order-validation/src/banned/cached.rs:217
↓ 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:393
↓ 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>, )
crates/autopilot/src/run_loop.rs:611
↓ 1 callers
Method
fetch_status
(&self, address: Address)
crates/order-validation/src/banned/hermod.rs:72
↓ 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
Method
fill_at
The fill as `protocol_fees` sees it: the signed limit and the legs the fulfillment settles at `prices`, the fee inside the sell leg.
crates/driver/src/domain/competition/solution/fee.rs:124
↓ 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:4329
↓ 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:631
↓ 1 callers
Function
filter_out_in_flight_orders
( mut orders: Vec<&'a Order>, in_flight: &HashSet<OrderUid>, )
crates/autopilot/src/solvable_orders.rs:725
↓ 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:1135
↓ 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:563
↓ 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:350
↓ 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:323
↓ 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:333
↓ 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:964
↓ 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:164
↓ 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:268
↓ 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:1070
↓ 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:833
↓ 1 callers
Method
from
(err: anyhow::Error)
crates/price-estimation/src/native/coingecko.rs:271
↓ 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:942
↓ 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:236
↓ 1 callers
Function
full_app_data_with_signer
(signer: Address)
crates/e2e/tests/e2e/app_data_signer.rs:121
↓ 1 callers
Method
full_scalar_mul
(&self, scalar: U256)
crates/number/src/ratio_ext.rs:30
↓ 1 callers
Function
funded_orders
Drop orders whose sell token account cannot fund a fill: their settlement would revert at `BeginSettle`. A fill-or-kill order needs its whole sell amo
crates/autopilot-svm/src/infra/provider.rs:478
↓ 1 callers
Function
funded_sell_balance
What the account can fund of the order's sell side: the amount both held and approved to the settlement state PDA, in an initialized, unfrozen account
crates/autopilot-svm/src/infra/provider.rs:513
↓ 1 callers
Method
funding
What funds a simulated sell of the order's sell mint: the pair's cached read, unless its holders fund no sell of `needed` and their lookup is due.
crates/solana-orderbook/src/infra/verifier.rs:453
↓ 1 callers
Method
gas_cost
(&self)
crates/solvers/src/boundary/baseline.rs:311
↓ 1 callers
Method
gas_estimator
(&self)
crates/driver/src/infra/blockchain/mod.rs:205
↓ 1 callers
Method
gas_fee_override
Set custom gas fee overrides for the solution.
crates/driver/src/tests/setup/mod.rs:625
↓ 1 callers
Function
gasprice
(app: axum::Router<Ethereum>)
crates/driver/src/infra/api/routes/gasprice.rs:8
↓ 1 callers
Method
generate
(&self, n: usize)
crates/orderbook/src/database/quotes.rs:60
↓ 1 callers
Method
generate
Generate contract crates under `output_dir`: - `contracts-generated/<name>/` per-contract crates - `contracts-facade/` facade crate that re-exports al
contracts/src/codegen.rs:94
↓ 1 callers
Function
generate_and_stream_dump
(socket: &mut UnixStream)
crates/observe/src/heap_dump_handler.rs:143
↓ 1 callers
Function
generate_binding
(instance: &mut SolMacroGen, all_derives: bool)
contracts/src/codegen.rs:382
↓ 1 callers
Method
generate_code
Generate the Rust code for this contract's bindings.
contracts/src/codegen.rs:269
↓ 1 callers
Method
generate_signature
Generate HMAC-SHA256 signature for the Bitget API. The signature is computed over a JSON object with alphabetically sorted keys containing: the API p
crates/solvers/src/infra/dex/bitget/mod.rs:332
↓ 1 callers
Method
generate_signature
OKX requires signature of the request to be added as dedicated HTTP Header. More information on generating the signature can be found in OKX documenta
crates/solvers/src/infra/dex/okx/mod.rs:367
↓ 1 callers
Function
get
(state: State, path: Option<String>, query: Option<String>)
crates/solvers/src/tests/mock/http.rs:211
↓ 1 callers
Method
get
Get the inner value
crates/configs/src/fee_factor.rs:49
↓ 1 callers
Method
get
()
crates/solver/src/liquidity_collector.rs:139
↓ 1 callers
Method
get
()
crates/fee-engine/src/report.rs:32
↓ 1 callers
Method
get
()
crates/request-sharing/src/lib.rs:177
↓ 1 callers
Method
get
()
crates/autopilot/src/database/mod.rs:165
← previous
next →
2,801–2,900 of 10,747, ranked by callers