MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,486 in github.com/cowprotocol/services

↓ 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 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:15
↓ 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 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 callersFunctionblock
(number: u64, timestamp: u64)
crates/simulator/src/state_override_stream.rs:280
↓ 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 callersMethodcurrent
Returns the live state overrides, or `None` (callers omit the RPC override param entirely) when the stream is stale or unconfigured.
crates/simulator/src/state_override_stream.rs:53
↓ 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 callersFunctiondeploy_builder
( __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2794
↓ 4 callersFunctiondeploy_univ3
Deploy mock V3 contracts and set up a pool with liquidity.
crates/e2e/tests/e2e/pool_indexer.rs:347
↓ 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:281
↓ 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 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_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:896
↓ 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 callersMethodinclude_slippage_bps
(&self, slippage: u16)
crates/e2e/tests/e2e/ethflow.rs:896
↓ 4 callersFunctioninfo_span
(request_id: String)
crates/observe/src/tracing/distributed/request_id.rs:55
↓ 4 callersFunctioninit
Initializes the event bus. Connection failures are logged but do not abort startup: the event bus is purely observational, so a misconfigured or unrea
crates/observe/src/event_bus/mod.rs:47
↓ 4 callersMethodinit
(factory: &PriceEstimatorFactory, name: &str, params: Self::Params)
crates/price-estimation/src/factory.rs:553
↓ 4 callersFunctioninsert_order_and_ignore_conflicts
( ex: &mut PgConnection, order: &Order, )
crates/database/src/orders.rs:171
↓ 4 callersFunctioninsert_order_events
( ex: &mut PgConnection, orders: &[OrderUid], timestamp: DateTime<Utc>, label: OrderEventLabel
crates/database/src/order_events.rs:103
↓ 4 callersFunctioninsert_trade
( ex: &mut PgConnection, index: &EventIndex, event: &Trade, )
crates/database/src/events.rs:113
↓ 4 callersMethodinternalize
Should the interaction be internalized?
crates/driver/src/domain/competition/solution/interaction.rs:18
↓ 4 callersMethodinto_inner
(self)
crates/driver/src/infra/solver/streaming/timed_writer.rs:32
↓ 4 callersMethodinto_source
(&self, web3: &Web3)
crates/liquidity-sources/src/uniswap_v2/mod.rs:102
↓ 4 callersFunctionis_order_outside_market_price
Checks whether or not an order's limit price is outside the market price specified by the quote.
crates/shared/src/order_validation.rs:1220
↓ 4 callersMethodjit_orders
(&self)
crates/price-estimation/src/trade_finding/mod.rs:126
↓ 4 callersFunctionjoin
Join a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with one
crates/shared/src/url.rs:5
↓ 4 callersFunctionjoin_url
Join a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with one
crates/simulator/src/utils/mod.rs:5
↓ 4 callersMethodlast_event_block
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:121
↓ 4 callersFunctionload_by_id
( mut ex: &mut PgConnection, id: AuctionId, after_block: Option<i64>, )
crates/database/src/solver_competition_v2.rs:118
↓ 4 callersFunctionlog_to_event_index
(log: &Log)
crates/autopilot/src/database/events.rs:115
↓ 4 callersFunctionmake_query
()
crates/price-estimation/src/competition/mod.rs:632
↓ 4 callersFunctionmake_streaming_quoter
Helpers shared by the streaming tests below.
crates/shared/src/order_quoting.rs:2233
↓ 4 callersFunctionmap_interactions_data
( interactions: impl IntoIterator<Item = &'a Interaction>, )
crates/price-estimation/src/trade_finding/mod.rs:347
↓ 4 callersFunctionmerge_raw
Merge two TOML strings, with the override taking precedence # Arguments `base` - The base TOML configuration as a string `overlay` - The override TOM
crates/e2e/src/setup/colocation/utils/toml.rs:16
↓ 4 callersFunctionmetrics
()
crates/rate-limit/src/lib.rs:26
← previousnext →501–600 of 8,486, ranked by callers