MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 2 callersFunctionbuild_replay_simulation
Shared builder for the positive replay (`APP_DATA`) and the flashloan-tampered negative replay.
crates/simulator/tests/aave_replay.rs:135
↓ 2 callersFunctionbuild_swap_event
(block_number: u64, tick: usize)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:147
↓ 2 callersMethodbuilder
Returns a `ClientBuilder` with the default settings.
crates/price-estimation/src/utils/http_client_factory.rs:37
↓ 2 callersMethodbuilders
(mut self, urls: Vec<String>)
crates/driver/src/tests/setup/mod.rs:874
↓ 2 callersMethodbuy
(&self)
crates/driver/src/domain/competition/solution/trade.rs:54
↓ 2 callersMethodbuy_account
Where the buy amount lands: the owner's associated token account of the buy mint, or the owner itself for a native SOL buy.
crates/solana-token/src/quote.rs:43
↓ 2 callersMethodbuy_account_owner
The wallet `buy_token_account` belongs to: the receiver when the order names one, the owner otherwise.
crates/solana-driver/src/domain/auction.rs:356
↓ 2 callersMethodbuy_account_owner
The wallet `buy_token_account` belongs to: the receiver when the order names one, the owner otherwise.
crates/autopilot-svm/src/domain/auction.rs:73
↓ 2 callersFunctionbuy_amount
Calculate effective buy amount (what user received).
crates/protocol-fees/src/lib.rs:586
↓ 2 callersFunctionbuy_amount
(trade: &Trade)
crates/driver/src/domain/competition/solution/scoring.rs:432
↓ 2 callersFunctionbuy_amount
(trade: &Trade)
crates/autopilot/src/domain/settlement/trade/math.rs:449
↓ 2 callersFunctionbuy_of
(buy_amount: u64)
crates/solana-solvers/src/dto/solution.rs:386
↓ 2 callersMethodbuy_token_account_is_ata
Whether `buy_token_account` is the associated token account of the wallet paid out to, for the buy mint under the mint's token `program`: the only des
crates/solana-driver/src/domain/auction.rs:349
↓ 2 callersMethodbuy_token_balance
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:82
↓ 2 callersMethodbuys_eth
Does this order buy ETH?
crates/driver/src/domain/competition/order/mod.rs:157
↓ 2 callersMethodcache
(&self)
crates/price-estimation/src/native_price_cache.rs:389
↓ 2 callersFunctioncached
Create a cached [`BalanceFetching`] instance.
crates/account-balances/src/lib.rs:96
↓ 2 callersMethodcaching_native_price_estimator_from_inner
Creates a [`CachingNativePriceEstimator`] from a pre-built inner estimator.
crates/price-estimation/src/factory.rs:494
↓ 2 callersFunctioncalc_in_given_out_approx
https://github.com/balancer-labs/balancer-v2-monorepo/blob/stable-deployment/pvt/helpers/src/models/pools/stable/math.ts#L108
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:303
↓ 2 callersFunctioncalc_out_given_in_approx
https://github.com/balancer-labs/balancer-v2-monorepo/blob/stable-deployment/pvt/helpers/src/models/pools/stable/math.ts#L86
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:322
↓ 2 callersFunctioncalculate_custom_prices_from_executed
Calculate custom clearing prices from executed amounts. Custom prices are derived from what was actually executed.
crates/protocol-fees/src/lib.rs:542
↓ 2 callersFunctioncalculate_submission_gas_price
( gas_price_of_last_submission: Option<Eip1559Estimation>, web3_gas_estimation: Eip1559Estimation,
crates/refunder/src/submitter.rs:111
↓ 2 callersMethodcall_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/ierc4626/src/lib.rs:610
↓ 2 callersMethodcall_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/iuniswapv3factory/src/lib.rs:1235
↓ 2 callersMethodcall_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/solver/src/lib.rs:848
↓ 2 callersMethodcall_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/balancerv2stablepoolfactoryv2/src/lib.rs:1113
↓ 2 callersMethodcall_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/hookstrampoline/src/lib.rs:1206
↓ 2 callersMethodcall_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/gashog/src/lib.rs:736
↓ 2 callersMethodcall_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/flashloanrouter/src/lib.rs:378
↓ 2 callersMethodcall_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/balancerqueries/src/lib.rs:804
↓ 2 callersMethodcall_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/swapper/src/lib.rs:1499
↓ 2 callersMethodcall_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/uniswapv2factory/src/lib.rs:1070
↓ 2 callersMethodcall_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/balancerv2authorizer/src/lib.rs:1395
↓ 2 callersMethodcall_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/icowwrapper/src/lib.rs:616
↓ 2 callersFunctioncancel_order
( ex: &mut PgConnection, order_uid: &OrderUid, timestamp: DateTime<Utc>, )
crates/database/src/orders.rs:517
↓ 2 callersMethodcancel_orders
(&self, order_uids: Vec<OrderUid>, now: DateTime<Utc>)
crates/orderbook/src/database/orders.rs:246
↓ 2 callersFunctioncanonicalise_app_data
Minifies `app_data` with keys sorted alphabetically.
crates/simulator/tests/aave_replay.rs:64
↓ 2 callersMethodcap_gas_limit
Cap the transaction's gas limit at the configured per-tx gas limit so a rogue solution can't force the node to binary-search up to the block gas limit
crates/simulator/src/ethereum/mod.rs:95
↓ 2 callersFunctioncapped_partner_volume_factors
Extracts the volume-type partner fee factors from parsed app-data, enforcing the compounding cap via [`fee_engine::PartnerFeeBudget`]. Non-volume part
crates/shared/src/fee.rs:263
↓ 2 callersMethodcatch_up_to_finalized
Indexes until the checkpoint reaches the finalized head. A checkpoint already at the head returns at once; one left behind (e.g. by an interrupted col
crates/pool-indexer/src/indexer/uniswap_v3.rs:173
↓ 2 callersFunctioncd_order
An example order which sells token "C" for token "D".
crates/driver/src/tests/setup/mod.rs:734
↓ 2 callersFunctioncd_pool
A pool between tokens "C" and "D".
crates/driver/src/tests/setup/mod.rs:724
↓ 2 callersFunctioncd_solution
A solution solving the [`cd_order`].
crates/driver/src/tests/setup/mod.rs:745
↓ 2 callersFunctioncheck_final_reserves
( amount_in: U256, amount_out: U256, reserve_in: U256, reserve_out: U256, )
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:154
↓ 2 callersMethodclaim_dead_letters
Claim up to `limit` parked dead letters for a replay attempt, least recently tried first, and stamp them as tried. The rotation keeps a permanently fa
crates/solana-indexer/src/persistence.rs:497
↓ 2 callersFunctionclassic_mints
The account lookup of an order selling and buying classic SPL Token mints.
crates/solana-orderbook/tests/api.rs:1791
↓ 2 callersMethodcleanup_once
(&self, now: DateTime<Utc>)
crates/autopilot/src/periodic_db_cleanup.rs:40
↓ 2 callersMethodclearing_rate
See [`clearing_rate`].
crates/solana-solvers/src/dex/mod.rs:60
↓ 2 callersFunctionclone_anyhow_error
anyhow errors are not clonable natively. This is a workaround that creates a new anyhow error based on formatting the error with its inner sources wit
crates/price-estimation/src/utils/mod.rs:27
↓ 2 callersMethodclose_landed
Close the auction's windows against its observed settlements.
crates/autopilot-svm/src/infra/observation.rs:215
↓ 2 callersFunctioncoingecko_server_at
Serve a fixed CoinGecko response at the given path after `delay`, counting requests.
crates/autopilot-svm/src/infra/prices.rs:942
↓ 2 callersFunctioncoingecko_server_delayed
( response: serde_json::Value, delay: Duration, )
crates/autopilot-svm/src/infra/prices.rs:966
↓ 2 callersMethodcollect_requests
Drains the items from `calls` into the fair queue until we have at least `max_batch_size` items or waited for `batch_delay` after starting to build a
crates/ethrpc/src/alloy/buffering.rs:326
↓ 2 callersFunctioncollector_with_reader
( eth: &Ethereum, blocks: &CurrentBlockWatcher, config: &infra::liquidity::config::UniswapV2,
crates/driver/src/boundary/liquidity/uniswap/v2.rs:119
↓ 2 callersFunctioncompare_error
(a: &PriceEstimationError, b: &PriceEstimationError)
crates/price-estimation/src/competition/mod.rs:202
↓ 2 callersFunctioncompared
(volume: f64)
crates/autopilot/src/fee_engine.rs:385
↓ 2 callersFunctioncompress
Compresses a serialized request body with brotli. Returns `None` if compression fails, in which case the plain body is sent instead.
crates/autopilot/src/infra/solvers/dto/solve.rs:177
↓ 2 callersMethodcompute_solutions
Send the auction to the solver engine and return its deduplicated solutions without caching them. When the solver's fee handler is the driver, the lim
crates/solana-driver/src/domain/competition.rs:471
↓ 2 callersFunctionconfig
()
crates/autopilot/src/fee_engine.rs:377
↓ 2 callersFunctionconfig_tmp_file
Create a temporary file with the given content.
crates/e2e/src/setup/mod.rs:27
↓ 2 callersFunctionconnect_db
(config: &Configuration)
crates/pool-indexer/src/run.rs:301
↓ 2 callersFunctionconnect_options
Applies connnect options that should be applied to ALL connections: - `client_connection_check_interval`: interval in which the postgres DB checks if
crates/orderbook/src/database/mod.rs:114
↓ 2 callersFunctioncontract_to_db_events
( contract_events: Vec<(GPv2SettlementEvents, Log)>, )
crates/autopilot/src/database/events.rs:16
↓ 2 callersMethodcontributes_to_score
Whether the fee this policy takes counts towards the solution's score. Policies that do not still have to be unwound when reconstructing the prices ea
crates/driver/src/domain/competition/order/fees.rs:57
↓ 2 callersFunctionconvergence_criteria
(curr_value: U256, prev_value: U256)
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:196
↓ 2 callersFunctionconvert
A wire solution becomes an arbitrator solution by joining each traded order against the auction for its limits and tokens. A trade naming an order out
crates/autopilot-svm/src/infra/competition.rs:159
↓ 2 callersFunctionconvert_signing_scheme_into_quote_signing_scheme
( scheme: SigningScheme, order_placement_via_api: bool, verification_gas_limit: u64, )
crates/shared/src/order_validation.rs:1326
↓ 2 callersFunctionconvert_to_quote_id_and_user_valid_to
( order_placement: &ContractOrderPlacement, )
crates/autopilot/src/database/onchain_order_events/ethflow_events.rs:140
↓ 2 callersFunctioncount_rows_in_table
(ex: &mut PgConnection, table: &str)
crates/autopilot/src/database/mod.rs:116
↓ 2 callersMethodcount_solution
(&self, outcome: &str)
crates/solana-driver/src/domain/competition.rs:105
↓ 2 callersMethodcountersign_creations
The fully signed creation transactions the given orders still need on chain. Orders already created contribute nothing. An error means one creation ca
crates/autopilot-svm/src/infra/sponsor.rs:89
↓ 2 callersFunctioncounting_generator
A generator that hands out consecutive ids and counts its calls.
crates/price-estimation/src/quote_id.rs:86
↓ 2 callersMethodcreate
Creates a new HTTP client with the default settings.
crates/price-estimation/src/utils/http_client_factory.rs:23
↓ 2 callersMethodcreateProxy
( data: &[u8], )
contracts/generated/contracts-generated/gnosissafeproxyfactory/src/lib.rs:433
↓ 2 callersFunctioncreate_and_settle_txs
The sample order's creation and its settlement in one transaction, so the trade finds its order, compiled as v0 and as v1.
crates/solana-indexer/src/indexer/decoder/tests.rs:1104
↓ 2 callersFunctioncreate_ipfs_cid
Create an IPFS CIDv1 from a hash created by `hash_full_app_data`. The return value is the raw bytes of the CID. It is not multibase encoded.
crates/app-data/src/app_data_hash.rs:110
↓ 2 callersFunctioncreate_pool
Create + initialise a single pool inside an already-deployed factory. fee must be unique within the factory for token0/token1 ([1u8;20],[2u8;20]).
crates/e2e/tests/e2e/pool_indexer.rs:295
↓ 2 callersFunctioncreate_price
(value: eth::U256)
crates/autopilot/src/domain/competition/winner_selection.rs:1203
↓ 2 callersFunctioncreate_priority_estimator
( http_client: reqwest::Client, provider: &AlloyProvider, estimator_types: &[GasEstimatorType],
crates/gas-price-estimation/src/lib.rs:55
↓ 2 callersFunctioncreate_weighted_pool_with
( tokens: Vec<Address>, balances: Vec<U256>, weights: Vec<Bfp>, scaling_factor
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:447
↓ 2 callersFunctioncreated_order
(uid: [u8; 32])
crates/solana-indexer/src/persistence.rs:878
↓ 2 callersFunctioncreation_leg
The transaction standing in for the quoted order's creation: it makes the sell token account, fills it with `fund`, delegates the sell amount to the s
crates/solana-orderbook/src/infra/verifier.rs:625
↓ 2 callersMethodcurrent_block
(&self)
crates/simulator/src/ethereum/mod.rs:73
↓ 2 callersFunctioncurrent_block_stream
( url: Url, poll_interval: Duration, )
crates/ethrpc/src/block_stream.rs:191
↓ 2 callersMethodcut
The atoms of `order`'s limit-leg token worth `lamports`, rounded up. `None` without a positive price for the token, unless there is nothing to convert
crates/solana-driver/src/domain/execution_cost.rs:169
↓ 2 callersMethodcut_auction
(&self, _tip: &u64)
crates/autopilot-svm/src/run_loop.rs:388
↓ 2 callersFunctiondead_quoter
A quoter pointing at a dead endpoint: every quote attempt fails.
crates/solana-orderbook/tests/api.rs:48
↓ 2 callersMethoddeadline
The deadline for the driver to start sending solution to autopilot.
crates/driver/src/domain/competition/auction.rs:151
↓ 2 callersFunctiondecimal_to_wei
Convert a decimal amount (from an API response) to U256 wei using the given rounding direction. e.g. `decimal_to_wei("1964.365496", 6, Down) → 1964365
crates/solvers/src/infra/dex/bitget/mod.rs:51
↓ 2 callersFunctiondecode_pool_rows
(rows: Vec<PgRow>)
crates/pool-indexer/src/db/uniswap_v3.rs:20
↓ 2 callersFunctiondecode_settlement
Decode the settlement-program instructions of one transaction into domain events. `Err` means at least one instruction failed to decode and the whole
crates/solana-indexer/src/indexer/decoder.rs:387
↓ 2 callersFunctiondefault_api_address
()
crates/configs/src/autopilot/mod.rs:44
↓ 2 callersFunctiondefault_bind_address
()
crates/configs/src/orderbook/mod.rs:33
↓ 2 callersFunctiondefault_eviction_time
()
crates/configs/src/balance_cache.rs:7
↓ 2 callersFunctiondefault_max_auction_age
()
crates/configs/src/autopilot/mod.rs:56
↓ 2 callersFunctiondefault_max_maintenance_timeout
()
crates/configs/src/autopilot/mod.rs:48
↓ 2 callersFunctiondefault_metrics_address
()
crates/configs/src/autopilot/mod.rs:40
↓ 2 callersFunctiondefault_min_order_validity_period
()
crates/configs/src/autopilot/mod.rs:52
↓ 2 callersFunctiondefault_results_required
()
crates/configs/src/native_price.rs:15
↓ 2 callersFunctiondefault_verification_gas_limit
()
crates/model/src/quote.rs:90
← previousnext →1,501–1,600 of 10,747, ranked by callers