MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,749 in github.com/cowprotocol/services

↓ 5 callersFunctionspawn_heap_dump_handler
Spawns a new async task that listens for connections to a UNIX socket at "/tmp/heap_dump_<process_name>.sock". When "dump" command is sent, it generat
crates/observe/src/heap_dump_handler.rs:32
↓ 5 callersFunctionsplit_range
Splits range into two disjuctive consecutive ranges, second one containing last (up to) MAX_BLOCKS_QUERIED elements, first one containing the rest (if
crates/event-indexing/src/event_handler.rs:620
↓ 5 callersMethodstore_quote
(&self, competition: QuoteCompetition)
crates/shared/src/order_quoting.rs:651
↓ 5 callersMethodsub
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:145
↓ 5 callersFunctionsubmit_order
( ethflow_order: &ExtendedEthFlowOrder, user: Address, contracts: &Contracts, ethflow_contract
crates/e2e/tests/e2e/ethflow.rs:652
↓ 5 callersFunctiontest_keys
(keys: impl IntoIterator<Item = usize>)
crates/liquidity-sources/src/recent_block_cache.rs:538
↓ 5 callersMethodto_final_quote
Produces the final `Quote` for this competition. Applies additional-cost adjustments, and scales sell/buy amounts when the caller asked for a `SellAmo
crates/shared/src/order_quoting.rs:310
↓ 5 callersMethodto_quote_data
Flattens the winning quote and metadata from the competition in a `QuoteData`.
crates/shared/src/order_quoting.rs:284
↓ 5 callersMethodto_signature
(self, scheme: EcdsaSigningScheme)
crates/model/src/signature.rs:300
↓ 5 callersMethodtrades
Trades settled by this solution.
crates/driver/src/domain/competition/solution/mod.rs:245
↓ 5 callersFunctiontx_info
Build a transaction-update fixture: static account keys, ALT-loaded writable and readonly addresses, top-level instructions, and inner-instruction gro
crates/solana-indexer/src/indexer/decoder/tests.rs:110
↓ 5 callersMethoduid
UID of the order that was settled in this trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:28
↓ 5 callersMethodupscale
Scales the input token amount to the value that is used by the Balancer contract to execute math operations.
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:53
↓ 5 callersMethodweb3
Returns a reference to the underlying web3 client.
crates/driver/src/infra/blockchain/mod.rs:71
↓ 5 callersMethodweb3
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:636
↓ 5 callersFunctionwipe
Empty every `solana.*` table a test can touch. Tests wipe at the start so a failure leaves its state behind for inspection.
crates/solana-indexer/src/test_db.rs:11
↓ 5 callersMethodwith_class
(mut self, class: OrderClass)
crates/model/src/order.rs:184
↓ 5 callersMethodwith_early_return
Enables the estimator to return after it got the configured number of successful results instead of having to wait for all estimators to return a resu
crates/price-estimation/src/competition/mod.rs:69
↓ 5 callersMethodwith_env_filter
(mut self, env_filter: &str)
crates/observe/src/config.rs:37
↓ 5 callersMethodwith_fee_amount
(mut self, fee_amount: U256)
crates/model/src/order.rs:126
↓ 5 callersMethodwith_kind
(mut self, kind: OrderKind)
crates/model/src/order.rs:131
↓ 5 callersMethodwith_valid_to
Set order expiration timestamp (absolute, seconds since epoch).
crates/e2e/tests/e2e/refunder.rs:152
↓ 4 callersFunctionadd_trade
( ex: &mut PgTransaction<'_>, owner: Address, order_uid: OrderUid, event_index
crates/database/src/trades.rs:291
↓ 4 callersMethodadd_unwrap
(&mut self, unwrap: UnwrapWethInteraction)
crates/solver/src/settlement/settlement_encoder.rs:363
↓ 4 callersMethodadditional_cost
(&self)
crates/shared/src/order_quoting.rs:84
↓ 4 callersMethodaddress
(&self)
crates/driver/src/infra/solver/mod.rs:118
↓ 4 callersFunctionaddress_bytes_list
(addresses: &[Address])
crates/pool-indexer/src/db/uniswap_v3.rs:16
↓ 4 callersFunctionadvance_time_past_expiration
Advances the blockchain time past the given expiration timestamp.
crates/e2e/tests/e2e/refunder.rs:30
↓ 4 callersMethodall
All solutions including the ones that got filtered out.
crates/autopilot/src/domain/competition/winner_selection.rs:247
↓ 4 callersMethodallow_multiple_solve_requests
(mut self)
crates/driver/src/tests/setup/mod.rs:1089
↓ 4 callersMethodapply_to
Apply the slippage parameters to the given liquidity increasing the in amount by the appropriate slippage while keeping the out amount the same.
crates/driver/src/domain/competition/solution/slippage.rs:32
↓ 4 callersMethodarbitrate
(&self, bids: Vec<Bid<Unscored>>, auction: &domain::Auction)
crates/autopilot/src/domain/competition/winner_selection.rs:61
↓ 4 callersFunctionattribute_gas_cost
( ex: &mut PgTransaction<'_>, settlement: EventIndex, gas_used: BigDecimal, effective_gas_pric
crates/database/src/trades.rs:187
↓ 4 callersFunctionavailable
(sell_amount: eth::U256, buy_amount: eth::U256)
crates/driver/src/infra/solver/dto/auction.rs:466
↓ 4 callersMethodbalance
(self, balance: eth::U256)
crates/driver/src/tests/setup/mod.rs:425
↓ 4 callersFunctionbest_response
Returns the best native estimate with respect to the provided ranking and order kind.
crates/price-estimation/src/competition/native.rs:93
↓ 4 callersFunctionbig_decimal_to_big_uint
(big_decimal: &BigDecimal)
crates/number/src/conversions.rs:11
↓ 4 callersMethodbind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-driver/src/infra/api/mod.rs:33
↓ 4 callersFunctionblock_number_to_block_number_hash
( provider: &AlloyProvider, block_number: BlockNumberOrTag, )
crates/ethrpc/src/block_stream.rs:307
↓ 4 callersMethodbuild
(self, onchain_components: &OnchainComponents)
crates/e2e/src/setup/services.rs:90
↓ 4 callersMethodbuilder
Returns a `ClientBuilder` with the default settings.
crates/http-client/src/lib.rs:37
↓ 4 callersFunctionbuy_token_destination_into
(destination: BuyTokenDestination)
crates/shared/src/db_order_conversions.rs:265
↓ 4 callersFunctioncalc_in_given_out
https://github.com/balancer-labs/balancer-v2-monorepo/blob/ad1442113b26ec22081c2047e2ec95355a7f12ba/pkg/pool-stable/contracts/StableMath.sol#L152-L190
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:96
↓ 4 callersFunctioncalc_out_given_in
https://github.com/balancer-labs/balancer-v2-monorepo/blob/ad1442113b26ec22081c2047e2ec95355a7f12ba/pkg/pool-stable/contracts/StableMath.sol#L109-L147
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:62
↓ 4 callersFunctioncalculate_invariant_approx
https://github.com/balancer-labs/balancer-v2-monorepo/blob/stable-deployment/pvt/helpers/src/models/pools/stable/math.ts#L10
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:244
↓ 4 callersMethodcalculate_quote
( &self, parameters: QuoteParameters, )
crates/shared/src/order_quoting.rs:641
↓ 4 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/izeroex/src/lib.rs:703
↓ 4 callersMethodclearing_price
Clearing price for the given token.
crates/driver/src/domain/competition/solution/mod.rs:647
↓ 4 callersMethodcompetition
(&self)
crates/driver/src/infra/api/mod.rs:199
↓ 4 callersFunctionconfig
Creates a temporary file containing the default config (buy orders disabled).
crates/solvers/src/tests/bitget/mod.rs:10
↓ 4 callersMethodconfigure_response
Instructs the solver to return a new response from now on.
crates/e2e/src/setup/solver/mock.rs:36
↓ 4 callersMethodconfigure_solution
Instructs the solver to return a new solution from now on.
crates/e2e/src/setup/solver/mock.rs:49
↓ 4 callersMethodcontracts
(&self)
crates/autopilot/src/infra/blockchain/mod.rs:112
↓ 4 callersFunctionconversion_rate
Converts the result of `convertToAssets(10^vault_decimals)` into the per-atom factor (atoms of underlying per atom of vault) by dividing by `10^vault_
crates/price-estimation/src/native/eip4626.rs:252
↓ 4 callersMethodcreate
Creates a new HTTP client with the default settings.
crates/http-client/src/lib.rs:27
↓ 4 callersMethodcreate_and_index
Creates the order, mines it on-chain, waits for indexing, and optionally invalidates.
crates/e2e/tests/e2e/refunder.rs:171
↓ 4 callersFunctioncreate_order
( uid: u64, sell_token: TokenAddress, sell_amount: eth::U256, buy_token: Token
crates/autopilot/src/domain/competition/winner_selection.rs:1154
↓ 4 callersFunctiondb
(state: &AppState)
crates/orderbook/src/api/get_solver_competition_v2.rs:71
↓ 4 callersFunctiondecimal_to_rational
Converts a `BigDecimal` value to a `eth::Rational` value. Returns `None` if the specified decimal value cannot be represented as a rational of `U256`
crates/solvers/src/util/conv.rs:13
↓ 4 callersMethoddecimals
Fetch the ERC20 token decimals. Returns `None` if the token does not implement this optional method. See the decimals method in EIP-20. https://eips.
crates/driver/src/infra/blockchain/token.rs:48
↓ 4 callersFunctiondefault_token_info_fetcher
()
crates/price-estimation/src/native/coingecko.rs:376
↓ 4 callersFunctiondelete
( ex: &mut PgTransaction<'_>, delete_from_block_number: u64, )
crates/database/src/events.rs:48
↓ 4 callersMethoddriver
(&self)
crates/autopilot/src/domain/competition/bid.rs:34
↓ 4 callersMethodeffective
Returns the estimated [`EffectiveGasPrice`] for the gas price estimate.
crates/eth-domain-types/src/gas.rs:46
↓ 4 callersMethodempty
Ensures that `/solve` returns no solutions.
crates/driver/src/tests/setup/mod.rs:1408
↓ 4 callersMethodestimate
Estimates the gas price for a transaction. If additional tip is configured, it will be added to the gas price. This is to increase the chance of a tra
crates/driver/src/infra/blockchain/gas.rs:53
↓ 4 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/coingecko.rs:249
↓ 4 callersMethodestimate_native_price
( &self, _token: Address, _timeout: Duration, )
crates/e2e/tests/e2e/eip4626.rs:446
↓ 4 callersMethodestimate_stream
Runs every estimator concurrently across all stages and forwards a quote only when it ranks strictly better than the best one already sent, so the cli
crates/price-estimation/src/competition/quote.rs:121
↓ 4 callersFunctioneth_order
An order which buys ETH.
crates/driver/src/tests/setup/mod.rs:784
↓ 4 callersFunctioneth_solution
()
crates/driver/src/tests/setup/mod.rs:794
↓ 4 callersFunctionevents_of_order
Returns all events of that order in the order they happend (old to new).
crates/e2e/tests/e2e/database.rs:13
↓ 4 callersFunctionevm_uid
(digest: u8, owner: u8)
crates/winner-selection/src/tests.rs:19
↓ 4 callersFunctionextract_rfq_id_from_interaction
Extracts Liquorice maker RFQ ID from CoW interaction. RFQ ID is extracted from the calldata corresponding to the `settleSingle` function of the Liquor
crates/driver/src/infra/notify/liquidity_sources/liquorice/notifier.rs:143
↓ 4 callersMethodfetch_pool
( &self, pool_info: &Factory::PoolInfo, block: BlockId, )
crates/liquidity-sources/src/balancer_v2/pools/common.rs:194
↓ 4 callersMethodfetch_pools
Fetches and converts the given pools from the source at `target_block`, skipping any that can't be converted yet (e.g. missing ticks).
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:276
↓ 4 callersMethodfilter
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:26
↓ 4 callersMethodfinalize
(self)
crates/driver/src/infra/solver/streaming/mod.rs:151
↓ 4 callersFunctionfind_plausible_strategies_for_slots
Produces approval strategy candidates from a list of SLOAD-accessed slots. This function assumes SLOAD-accessed slots are returned in order that they
crates/balance-overrides/src/approval/mod.rs:35
↓ 4 callersFunctionfind_plausible_strategies_for_slots
Used by Detector when there are multiple slots to increase the chances we find the correct storage slot quickly. Note: does not emit `AaveV3AToken` c
crates/balance-overrides/src/balance/mod.rs:47
↓ 4 callersMethodflashloan
(&self)
crates/driver/src/domain/competition/order/app_data.rs:127
↓ 4 callersFunctionfold
(frames: Vec<Frame>)
crates/simulator/src/state_override_stream.rs:637
↓ 4 callersFunctionfrom_domain
Takes the order by reference so callers that still need the domain order afterwards don't have to deep-clone it just to convert it.
crates/autopilot/src/infra/persistence/dto/order.rs:49
↓ 4 callersFunctiongas
(value: u64)
crates/driver/src/domain/competition/solution/settlement.rs:453
↓ 4 callersMethodgas_price
The gas price is determined based on the deadline by which the transaction must be included on-chain. A shorter deadline requires a higher gas price t
crates/driver/src/infra/blockchain/mod.rs:199
↓ 4 callersMethodget
Returns the wrapped token pair as a tuple.
crates/driver/src/domain/liquidity/mod.rs:85
↓ 4 callersMethodget
()
crates/autopilot/src/solvable_orders.rs:85
↓ 4 callersMethodget
The inferred spacing, or `None` until a gap has been seen.
crates/simulator/src/state_override_stream.rs:198
↓ 4 callersMethodget_amount_in
( &self, in_token: Address, (out_amount, out_token): (U256, Address), )
crates/solvers/src/boundary/liquidity/limit_order.rs:27
↓ 4 callersMethodget_amount_out
( &self, out_token: Address, (in_amount, in_token): (U256, Address), )
crates/solvers/src/boundary/liquidity/limit_order.rs:10
↓ 4 callersMethodget_events
( &self, block_range: RangeInclusive<u64>, )
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:82
↓ 4 callersFunctionget_orders_by_uid_response
(result: Result<Vec<(OrderUid, Result<Order>)>>)
crates/orderbook/src/api/get_orders_by_uid.rs:44
↓ 4 callersFunctionget_orders_with_native_prices
( orders: Vec<&'a Order>, native_price_estimator: &NativePriceUpdater, timeout: Duration, )
crates/autopilot/src/solvable_orders.rs:663
↓ 4 callersFunctionget_quote_and_check_fee
Retrieves the quote for an order that is being created and verify that its fee is sufficient. The fee is checked only if `fee_amount` is specified.
crates/shared/src/order_validation.rs:1118
↓ 4 callersFunctionget_relevant_pairs
(token_a: Address, token_b: Address)
crates/solver/src/liquidity/zeroex.rs:227
↓ 4 callersMethodget_token_infos
(&self, addresses: &[Address])
crates/token-info/src/lib.rs:88
↓ 4 callersFunctionhandler
(source: StubSource, checkpoint: PoolsCheckpoint)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:884
↓ 4 callersMethodhash
Returns the app data hash. Does not validate expectation.
crates/model/src/order.rs:479
↓ 4 callersMethodhash
Returns the hash value for the specified source.
crates/driver/src/domain/competition/order/mod.rs:368
↓ 4 callersMethodid
(&self)
crates/autopilot-svm/src/domain/auction.rs:52
← previousnext →501–600 of 8,749, ranked by callers