MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions9,022 in github.com/cowprotocol/services

↓ 5 callersMethodmul_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:155
↓ 5 callersMethodname
(&self)
crates/order-validation/src/banned/hermod.rs:98
↓ 5 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/izeroex/src/lib.rs:606
↓ 5 callersFunctionnext_block
Awaits and returns the next block that will be pushed into the stream.
crates/ethrpc/src/block_stream.rs:391
↓ 5 callersMethodorder
Get a reference to the traded order.
crates/solvers/src/domain/solution.rs:360
↓ 5 callersMethodorder_json
The /solve-shaped JSON for the single quoted order.
crates/driver/src/tests/setup/mod.rs:1200
↓ 5 callersMethodorders
(&self)
crates/autopilot/src/domain/competition/mod.rs:49
↓ 5 callersFunctionpool
()
crates/solana-indexer/src/test_db.rs:5
↓ 5 callersMethodpre_interactions
(&self)
crates/price-estimation/src/trade_finding/mod.rs:119
↓ 5 callersMethodprices_json
Native prices for the single quoted order's tokens.
crates/driver/src/tests/setup/mod.rs:1210
↓ 5 callersMethodprocessing_stage_timer
(&self, stage: &str)
crates/driver/src/infra/observe/metrics.rs:73
↓ 5 callersMethodprovide_sufficient_buy_tokens
Instructs the builder to override the settlement contract's buy-token balances so it can pay out every order. The exact amounts are derived from the c
crates/simulator/src/simulation_builder.rs:291
↓ 5 callersMethodprovider
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:208
↓ 5 callersMethodprovider
(&self)
crates/simulator/src/simulation_builder.rs:91
↓ 5 callersFunctionquote_metadata
Returns quote.
crates/e2e/tests/e2e/database.rs:40
↓ 5 callersFunctionread_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:224
↓ 5 callersFunctionread_quote
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:442
↓ 5 callersMethodreduce
Returns a new deadline with the specified duration subtracted.
crates/solvers/src/domain/auction.rs:101
↓ 5 callersFunctionreport_with_revert
(events: Vec<Event>)
crates/shared/src/order_creation_simulation.rs:326
↓ 5 callersFunctionresolve_for_test
(settlement: Settlement)
crates/solana-driver/src/domain/settlement.rs:634
↓ 5 callersFunctionrun
(test_case: TestCase)
crates/driver/src/tests/cases/haircut_pre_processing.rs:61
↓ 5 callersMethodsell_amount
(self, sell_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:94
↓ 5 callersMethodsettle_with_order
Call /settle with the fast-path bundle: the real `order`, its `limit_prices`, and native `prices`.
crates/driver/src/tests/setup/mod.rs:1230
↓ 5 callersMethodsettlement_address
Ensure that the settlement contract is deployed to a specific address.
crates/driver/src/tests/setup/mod.rs:870
↓ 5 callersFunctionshare_common_pool_state
An internal utility method for sharing the success value for an `anyhow::Result`. Typically, this is pretty trivial using `FutureExt::shared`. Howeve
crates/liquidity-sources/src/balancer_v2/pools/common.rs:326
↓ 5 callersMethodsolutions
(&self)
crates/driver/src/tests/setup/mod.rs:1366
↓ 5 callersMethodsolver
(&self)
crates/driver/src/infra/api/mod.rs:199
↓ 5 callersMethodsolver
(self, solver: eth::Address)
crates/driver/src/tests/setup/mod.rs:1769
↓ 5 callersMethodsolver
(&self)
crates/price-estimation/src/trade_finding/mod.rs:72
↓ 5 callersMethodspawn
Spawns the listen loop as a task. It reconnects with capped exponential backoff and runs until the returned handle is aborted.
crates/autopilot-svm/src/infra/listen.rs:41
↓ 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:626
↓ 5 callersMethodstore_quote
(&self, competition: QuoteCompetition)
crates/shared/src/order_quoting.rs:685
↓ 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:655
↓ 5 callersFunctiontest_keys
(keys: impl IntoIterator<Item = usize>)
crates/liquidity-sources/src/recent_block_cache.rs:540
↓ 5 callersMethodto_quote_data
Flattens the winning quote and metadata from the competition in a `QuoteData`.
crates/shared/src/order_quoting.rs:313
↓ 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:246
↓ 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:102
↓ 5 callersMethoduid
UID of the order that was settled in this trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:28
↓ 5 callersMethodupdate_tokens_and_fetch_prices
Replaces the full set of tokens that should be maintained by the background task and fetches their current prices.
crates/price-estimation/src/native_price_cache.rs:495
↓ 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 callersMethodvalidate
(&self)
crates/driver/src/infra/solver/mod.rs:227
↓ 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:365
↓ 4 callersMethodadditional_cost
Returns the gas the settlement will consume on top of the quote's `gas_amount`: ERC-1271 signature verification and, for unverified quotes, the order'
crates/shared/src/order_quoting.rs:112
↓ 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 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:469
↓ 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:140
↓ 4 callersFunctionbig_decimal_to_big_uint
(big_decimal: &BigDecimal)
crates/number/src/conversions.rs:11
↓ 4 callersFunctionblock_number_to_block_number_hash
( provider: &AlloyProvider, block_number: BlockNumberOrTag, )
crates/ethrpc/src/block_stream.rs:311
↓ 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:97
↓ 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:63
↓ 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:246
↓ 4 callersMethodcalculate_quote
( &self, parameters: QuoteParameters, )
crates/shared/src/order_quoting.rs:675
↓ 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:653
↓ 4 callersMethodcompetition
(&self)
crates/driver/src/infra/api/mod.rs:203
↓ 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:253
↓ 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:1157
↓ 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:378
↓ 4 callersFunctiondelete
( ex: &mut PgTransaction<'_>, delete_from_block_number: u64, )
crates/database/src/events.rs:48
↓ 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:251
↓ 4 callersMethodestimate_native_price
( &self, _token: Address, _timeout: Duration, )
crates/e2e/tests/e2e/eip4626.rs:447
↓ 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:117
↓ 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
← previousnext →501–600 of 9,022, ranked by callers