MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 1 callersMethodfetch_debug_report
(&self, uid: &OrderUid)
crates/orderbook/src/database/debug_report.rs:35
↓ 1 callersMethodfetch_factory_attestation
Reads the factory address from the subgraph. Used to catch misconfigured deployments (e.g. a Uniswap V3 config pointed at a PancakeSwap V3 subgraph) b
crates/pool-indexer/src/subgraph_seeder.rs:155
↓ 1 callersMethodfetch_gas_price
(&self)
crates/gas-price-estimation/src/driver.rs:44
↓ 1 callersMethodfetch_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:267
↓ 1 callersMethodfetch_json
(self)
contracts/src/vendor.rs:272
↓ 1 callersMethodfetch_latest_prices
(&self)
crates/autopilot/src/database/auction_prices.rs:10
↓ 1 callersMethodfetch_latest_prices
(&self)
crates/orderbook/src/database/auction_prices.rs:10
↓ 1 callersFunctionfetch_latest_token_price
( ex: &mut PgConnection, token: Address, )
crates/database/src/auction_prices.rs:66
↓ 1 callersMethodfetch_liquidity
( self: Arc<Self>, auction: Arc<Auction>, )
crates/driver/src/domain/competition/pre_processing.rs:549
↓ 1 callersMethodfetch_logs_bisecting
(&self, from: u64, to: u64)
crates/pool-indexer/src/indexer/uniswap_v3.rs:241
↓ 1 callersFunctionfetch_multiple
( ex: &mut PgConnection, ids: &[AuctionId], )
crates/database/src/auction.rs:93
↓ 1 callersFunctionfetch_one
Logs and swallows backend errors so callers can OR successful results.
crates/order-validation/src/banned/cached.rs:175
↓ 1 callersMethodfetch_pool_info
( &self, pool_address: Address, block_created: u64, )
crates/liquidity-sources/src/balancer_v2/pools/common.rs:183
↓ 1 callersMethodfetch_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 callersMethodfetch_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 callersMethodfetch_pools
( &self, token_pairs: HashSet<TokenPair>, at_block: Block, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:268
↓ 1 callersMethodfetch_pools_page
One page of pools at `block`, ordered by id, starting after `cursor` (empty string for the first page).
crates/pool-indexer/src/subgraph_seeder.rs:183
↓ 1 callersMethodfetch_prices
( &self, tokens: &[Address], timeout: Duration, )
crates/price-estimation/src/native_price_cache.rs:364
↓ 1 callersMethodfetch_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 callersMethodfetch_solutions
( &self, driver: &infra::Driver, request: solve::Request, )
crates/autopilot/src/shadow.rs:262
↓ 1 callersMethodfetch_solutions
(&self, auction: &domain::Auction)
crates/autopilot/src/run_loop.rs:592
↓ 1 callersMethodfetch_status
(&self, address: Address)
crates/order-validation/src/banned/hermod.rs:72
↓ 1 callersFunctionfetch_symbol
(provider: &AlloyProvider, token: Address)
crates/pool-indexer/src/indexer/uniswap_v3.rs:634
↓ 1 callersMethodfetch_tick_batch
(&self, pool_batch: &[String])
crates/pool-indexer/src/subgraph_seeder.rs:397
↓ 1 callersMethodfetch_ticks_for_pool
All ticks for `pool_id` at `block`, via keyset pagination over `tickIdx`. Each `delta` is the subgraph's `liquidityNet` — an absolute net, not a runni
crates/pool-indexer/src/subgraph_seeder.rs:207
↓ 1 callersMethodfetch_token_infos
Fetches `Metadata` of the requested tokens from a node.
crates/driver/src/infra/tokens.rs:157
↓ 1 callersFunctionfetch_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 callersMethodfetch_values
( &self, requested: HashSet<TestKey>, _: Block, )
crates/liquidity-sources/src/recent_block_cache.rs:514
↓ 1 callersMethodfetch_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:149
↓ 1 callersFunctionfetched_liquidity
Observe the fetched liquidity.
crates/driver/src/infra/observe/mod.rs:57
↓ 1 callersFunctionfetching_liquidity
Observe that liquidity fetching is about to start.
crates/driver/src/infra/observe/mod.rs:52
↓ 1 callersFunctionfetching_liquidity_failed
Observe that fetching liquidity failed.
crates/driver/src/infra/observe/mod.rs:66
↓ 1 callersFunctionfill_or_kill_zeroex_limit_order
( zeroex: &IZeroex::Instance, zeroex_order: &zeroex::OrderRecord, from: Address, )
crates/e2e/tests/e2e/liquidity.rs:408
↓ 1 callersMethodfilledAmount
(data: &[u8])
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4330
↓ 1 callersMethodfilter
(&self)
crates/autopilot/src/database/onchain_order_events/event_retriever.rs:37
↓ 1 callersFunctionfilter_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:634
↓ 1 callersFunctionfilter_out_in_flight_orders
( mut orders: Vec<&'a Order>, in_flight: &HashSet<OrderUid>, )
crates/autopilot/src/solvable_orders.rs:734
↓ 1 callersFunctionfilter_winners
(bids: &[Bid])
crates/autopilot/src/domain/competition/winner_selection.rs:1271
↓ 1 callersMethodfinalized_block
(&self)
crates/event-indexing/src/block_retriever.rs:35
↓ 1 callersMethodfind_pending_tx_in_mempool
Queries the mempool for a pending transaction of the given solver and nonce.
crates/driver/src/infra/mempool/mod.rs:185
↓ 1 callersMethodfind_quote
( &self, id: Option<QuoteId>, parameters: QuoteSearchParameters, )
crates/shared/src/order_quoting.rs:548
↓ 1 callersFunctionfind_settlement_trace_and_callers
( call_frame: &blockchain::CallFrame, settlement_contract: eth::Address, )
crates/autopilot/src/domain/settlement/transaction/mod.rs:180
↓ 1 callersFunctionfind_settlement_transaction
( ex: &mut PgConnection, auction_id: i64, solver: Address, solution_uid: i64, )
crates/database/src/settlements.rs:8
↓ 1 callersMethodfind_settlement_transaction
Tries to find the transaction executing a given solution proposed by the solver.
crates/autopilot/src/infra/persistence/mod.rs:335
↓ 1 callersFunctionfind_solutions_for_order
( ex: &mut PgConnection, order_uid: &OrderUid, )
crates/database/src/solver_competition_v2.rs:514
↓ 1 callersFunctionfind_solver_address
( authenticator: &impl Authenticator, callers: Vec<eth::Address>, block: BlockId, )
crates/autopilot/src/domain/settlement/transaction/mod.rs:209
↓ 1 callersFunctionfind_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:266
↓ 1 callersFunctionfinish_simulation_builder
( mut builder: SimulationBuilder, )
crates/simulator/src/encoding.rs:344
↓ 1 callersFunctionflags
cf. https://github.com/cowprotocol/contracts/blob/v1.5.0/src/contracts/libraries/GPv2Trade.sol#L58
crates/driver/src/domain/competition/solution/encoding.rs:394
↓ 1 callersMethodflashLoanAndSettle
( data: &[u8], )
contracts/generated/contracts-generated/flashloanrouter/src/lib.rs:965
↓ 1 callersFunctionflashloan_into_dto
(flashloan: Flashloan)
crates/driver/src/tests/cases/flashloan_hints.rs:146
↓ 1 callersMethodflashloan_router
(&self)
crates/driver/src/infra/blockchain/contracts.rs:136
↓ 1 callersMethodflashloan_router
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:164
↓ 1 callersMethodflashloans_enabled
Toggle acceptance of flashloan-hint orders at the driver level.
crates/driver/src/tests/setup/mod.rs:913
↓ 1 callersMethodflush
`write` sends each block downstream immediately, so a write effectively always flushes and there's nothing buffered left to do here.
crates/driver/src/infra/solver/streaming/mod.rs:138
↓ 1 callersMethodflush
(&mut self)
crates/driver/src/infra/solver/streaming/best_effort_sink.rs:28
↓ 1 callersMethodformat_url
Encodes the orders query as a url with parameters.
crates/liquidity-sources/src/zeroex.rs:65
↓ 1 callersMethodformat_variant
for instrumentization purposes
crates/solvers/src/infra/dex/mod.rs:88
↓ 1 callersMethodfrom
(hash: AppDataHash)
crates/model/src/order.rs:472
↓ 1 callersMethodfrom
(value: CoWSwapEthFlow::CoWSwapEthFlow::ordersReturn)
crates/refunder/src/traits.rs:29
↓ 1 callersMethodfrom
(err: anyhow::Error)
crates/account-balances/src/lib.rs:50
↓ 1 callersMethodfrom
(err: SimulationError)
crates/driver/src/infra/blockchain/mod.rs:401
↓ 1 callersMethodfrom
(value: simulator::Error)
crates/driver/src/domain/competition/solution/mod.rs:705
↓ 1 callersMethodfrom
(err: anyhow::Error)
crates/price-estimation/src/native/coingecko.rs:268
↓ 1 callersMethodfrom
(interaction: InteractionData)
crates/simulator/src/encoding.rs:250
↓ 1 callersFunctionfrom_domain
Creates a new solution DTO from its domain object.
crates/solvers/src/api/routes/solve/dto/solution.rs:7
↓ 1 callersMethodfrom_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:222
↓ 1 callersFunctionfrom_normalized_price
Convert from normalized price to floating point price
crates/price-estimation/src/native/mod.rs:33
↓ 1 callersMethodfulfill
Set up the blockchain context and return the interactions needed to fulfill the orders.
crates/driver/src/tests/setup/blockchain.rs:730
↓ 1 callersMethodfull
Creates a context for vendoring "full" contract data, including bytecode used for deploying the contract for end-to-end test.
contracts/src/vendor.rs:230
↓ 1 callersFunctionfull_app_data_with_signer
(signer: Address)
crates/e2e/tests/e2e/app_data_signer.rs:121
↓ 1 callersMethodfull_scalar_mul
(&self, scalar: U256)
crates/number/src/ratio_ext.rs:30
↓ 1 callersMethodgas
Simulate the gas needed by a transaction.
crates/simulator/src/lib.rs:96
↓ 1 callersMethodgas_cost
(&self)
crates/solvers/src/boundary/baseline.rs:310
↓ 1 callersMethodgas_estimator
(&self)
crates/driver/src/infra/blockchain/mod.rs:203
↓ 1 callersMethodgas_fee_override
(&self)
crates/driver/src/domain/competition/solution/mod.rs:247
↓ 1 callersMethodgas_fee_override
Optional gas fee overrides provided by the solver.
crates/driver/src/domain/competition/solution/settlement.rs:253
↓ 1 callersMethodgas_fee_override
Set custom gas fee overrides for the solution.
crates/driver/src/tests/setup/mod.rs:632
↓ 1 callersFunctiongasprice
(app: axum::Router<Ethereum>)
crates/driver/src/infra/api/routes/gasprice.rs:8
↓ 1 callersMethodgenerate
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 callersFunctiongenerate_and_stream_dump
(socket: &mut UnixStream)
crates/observe/src/heap_dump_handler.rs:141
↓ 1 callersFunctiongenerate_binding
(instance: &mut SolMacroGen, all_derives: bool)
contracts/src/codegen.rs:374
↓ 1 callersMethodgenerate_code
Generate the Rust code for this contract's bindings.
contracts/src/codegen.rs:268
↓ 1 callersMethodgenerate_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 callersMethodgenerate_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 callersFunctionget
(state: State, path: Option<String>, query: Option<String>)
crates/solvers/src/tests/mock/http.rs:211
↓ 1 callersMethodget
(&self)
crates/solvers/src/domain/dex/mod.rs:201
↓ 1 callersMethodget
()
crates/simulator/src/tenderly/mod.rs:346
↓ 1 callersMethodgetLimitOrderRelevantState
( data: &[u8], )
contracts/generated/contracts-generated/izeroex/src/lib.rs:7315
↓ 1 callersMethodgetPausedState
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:6188
↓ 1 callersMethodgetPoolId
(data: &[u8])
contracts/generated/contracts-generated/balancerv2basepool/src/lib.rs:3228
↓ 1 callersMethodgetReserves
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4789
↓ 1 callersMethodgetScalingFactors
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2composablestablepool/src/lib.rs:5524
↓ 1 callersMethodgetSwapEnabled
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpool/src/lib.rs:4258
↓ 1 callersMethodgetSwapFeePercentage
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2basepool/src/lib.rs:3235
↓ 1 callersFunctionget_all
( ex: &mut PgConnection, order: &OrderUid, )
crates/database/src/order_events.rs:170
↓ 1 callersMethodget_amount_in
( &self, in_token: Address, (out_amount, out_token): (alloy::primitives::U256, Address
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:121
↓ 1 callersMethodget_amount_in
( &self, in_token: Address, out: (alloy::primitives::U256, Address), )
crates/solvers/src/boundary/baseline.rs:294
↓ 1 callersMethodget_amount_out
( &self, out_token: Address, (in_amount, in_token): (alloy::primitives::U256, Address)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:113
↓ 1 callersMethodget_api_version
Get API version
crates/e2e/src/setup/services.rs:814
← previousnext →1,901–2,000 of 8,522, ranked by callers