MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 3 callersFunctionad_solution
A solution solving the [`ad_order`].
crates/driver/src/tests/setup/mod.rs:713
↓ 3 callersMethodaddress
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:59
↓ 3 callersMethodaddress
Returns the address of the Safe.
crates/e2e/src/setup/onchain_components/safe.rs:145
↓ 3 callersFunctionaggregate3_response
The `eth_call` response of an `aggregate3` whose sub-calls came back as given, in the order the reader asked for them.
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:607
↓ 3 callersFunctionallocator
(generator: MockQuoteIdGenerating, chunk_size: usize)
crates/price-estimation/src/quote_id.rs:78
↓ 3 callersFunctionamm_to_pool
(amm: &ConstantProductOrder)
crates/solver/src/solver.rs:63
↓ 3 callersFunctionamm_to_weighted_pool
(amm: &WeightedProductOrder)
crates/solver/src/solver.rs:72
↓ 3 callersFunctionapi_with
(solvers: Vec<Solver>, mocks: impl Into<MocksMap>)
crates/solana-driver/tests/api.rs:120
↓ 3 callersMethodapp_data
(self, app_data: AppData)
crates/driver/src/tests/setup/mod.rs:280
↓ 3 callersMethodapp_data_size_limit
Most bytes an app data document may have.
crates/solana-orderbook/src/infra/api/mod.rs:311
↓ 3 callersMethodappend_events
(&mut self, events: Vec<(T, alloy_rpc_types::Log)>)
crates/event-indexing/src/event_handler.rs:734
↓ 3 callersMethodapply
The policies that apply to `order` at `now`, in application order.
crates/autopilot-svm/src/domain/fee.rs:36
↓ 3 callersFunctionapply_volume_fees
Applies every `Volume`-type policy in `policies` to `(sell, buy)` in order, compounding each fee on the amount produced by the previous step. Non-volu
crates/autopilot/src/fast_path.rs:694
↓ 3 callersMethodapproval_override
( &self, request: ApprovalOverrideRequest, )
crates/balance-overrides/src/lib.rs:84
↓ 3 callersMethodas_raw
Returns the fee as a raw [`eth::U256`] value as it is represented on-chain.
crates/driver/src/domain/liquidity/balancer/v2/mod.rs:41
↓ 3 callersMethodas_str
(self)
crates/database/src/order_events.rs:52
↓ 3 callersMethodas_str
(&self)
crates/simulator/src/state_override_stream.rs:581
↓ 3 callersFunctionassemble
The solution filling `orders`, which `swap` clears: a single-order solution for one order, a batch for more.
crates/solana-solvers/src/domain/solver/mod.rs:271
↓ 3 callersFunctionassemble_quote_data
Assembles a `QuoteCompetition` from every ranked estimate plus the competition-level context (native prices, gas price, expiration). Fails with [`Calc
crates/shared/src/order_quoting.rs:969
↓ 3 callersFunctionassert_rate_close
Asserts `computed_rate` is within a `tolerance` of `expected_rate`.
crates/price-estimation/src/native/eip4626.rs:294
↓ 3 callersFunctionasset
(amount: u64)
crates/autopilot/src/domain/settlement/trade/math.rs:614
↓ 3 callersFunctionassociated_token_account
(owner: &Pubkey, mint: &Pubkey, program: TokenProgram)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:803
↓ 3 callersMethodatom
(self)
crates/number/src/units.rs:24
↓ 3 callersMethodauction_id
The ID of the auction being competed on.
crates/driver/src/domain/competition/mod.rs:1029
↓ 3 callersMethodavailable
What a solver may fill now: `remaining` scaled down to what the sell token account can fund, like the EVM driver's `Order::available`. A fill-or-kill
crates/solana-driver/src/domain/auction.rs:296
↓ 3 callersMethodavailable
Returns the order's available amounts to be passed to a solver engine. See [`Available`] for more details.
crates/driver/src/domain/competition/order/mod.rs:172
↓ 3 callersMethodbackfill
Index every tracked transaction between the persisted watermark and the live tip from RPC history, then advance the watermark to just below that tip.
crates/solana-indexer/src/indexer/decoder/backfill.rs:52
↓ 3 callersMethodbanned
Returns the subset of `addresses` that are banned. Cache misses hit the configured remote sources.
crates/order-validation/src/banned/mod.rs:64
↓ 3 callersFunctionbegin_pulls
Parse the `BeginSettle` order at `index` into its pull destinations and amounts.
crates/solana-driver/src/domain/settlement.rs:1532
↓ 3 callersMethodblock_height
The chain's block height, which decides whether a pending sponsored creation can still land, read at most once per `BLOCK_HEIGHT_TTL`. `None` without
crates/solana-orderbook/src/infra/api/mod.rs:320
↓ 3 callersFunctionblock_with_base_fee
(base_fee: u64)
crates/gas-price-estimation/src/configurable_alloy.rs:153
↓ 3 callersFunctionblockchain_with_mocks_map
(mocks: MocksMap)
crates/solana-driver/src/domain/auction.rs:476
↓ 3 callersMethodblocks
(&self, range: RangeInclusive<u64>)
crates/event-indexing/src/block_retriever.rs:49
↓ 3 callersMethodblocks_passed
(self)
crates/driver/src/domain/mempools.rs:476
↓ 3 callersMethodboundary
( &self, blockchain: &Blockchain, signer: PrivateKeySigner, )
crates/driver/src/tests/setup/blockchain.rs:198
↓ 3 callersMethodbsub
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/math.rs:20
↓ 3 callersMethodbuild
(&self)
crates/driver/src/tests/boundary.rs:39
↓ 3 callersFunctionbuy
(amount: u64)
crates/driver/src/domain/competition/solution/fee.rs:579
↓ 3 callersMethodbuy
The asset being bought, or [`eth::U256::one`] if this is a sell, to facilitate surplus.
crates/driver/src/domain/quote.rs:307
↓ 3 callersFunctionbuy_mint
The intent's buy mint. A native SOL buy has none, so it panics.
crates/solana-orderbook/tests/api.rs:2000
↓ 3 callersFunctionbuy_token_destination_from
(destination: DbBuyTokenDestination)
crates/shared/src/db_order_conversions.rs:298
↓ 3 callersMethodbuys_native_sol
Whether the order buys native SOL instead of an SPL token.
crates/autopilot-svm/src/domain/auction.rs:67
↓ 3 callersFunctioncached_balance
Reads an entry without marking it as requested, so polling for a background update does not keep the entry alive.
crates/account-balances/src/cached.rs:243
↓ 3 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/chainalysisoracle/src/lib.rs:1657
↓ 3 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/counter/src/lib.rs:901
↓ 3 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/balancerv2weightedpoolfactoryv3/src/lib.rs:1367
↓ 3 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/balancerv2composablestablepoolfactoryv3/src/lib.rs:1407
↓ 3 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/balancerv2composablestablepoolfactoryv5/src/lib.rs:1407
↓ 3 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/balancerv2composablestablepoolfactoryv4/src/lib.rs:1407
↓ 3 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/balancerv2composablestablepoolfactory/src/lib.rs:1407
↓ 3 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/balancerv2weightedpoolfactoryv4/src/lib.rs:1367
↓ 3 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/balancerv2composablestablepoolfactoryv6/src/lib.rs:1407
↓ 3 callersFunctioncall_settle
Settle `solution_id` of auction 7 with a submission deadline far off.
crates/solana-driver/tests/api.rs:386
↓ 3 callersFunctioncancel_order
Applies the needed DB modification to cancel a single order.
crates/orderbook/src/database/orders.rs:100
↓ 3 callersMethodcapped_fee_factor
Caps `value` to the headroom `(1 + cap) / (1 + accumulated) - 1` the fees before it left and spends it. With three or more fees the compounded total c
crates/fee-engine/src/partner_fee.rs:74
↓ 3 callersFunctioncheck_batching_many
Function to check batching of many tokens
crates/price-estimation/src/buffered.rs:392
↓ 3 callersMethodclearing_prices
Token prices settled by this solution, expressed using an arbitrary reference unit chosen by the solver. These values are only meaningful in relation
crates/driver/src/domain/competition/solution/mod.rs:651
↓ 3 callersMethodclose_rejected
Close the window of a settlement that provably never left the driver, so it does not sit open until the deadline sweep mislabels it a timeout. An ambi
crates/autopilot-svm/src/infra/observation.rs:95
↓ 3 callersFunctioncoingecko
(route: axum::routing::MethodRouter)
crates/autopilot-svm/src/infra/api.rs:150
↓ 3 callersFunctioncompetition
( request: &dto::Request, kind: dto::Kind, amount: u64, metadata: CompetitionMetadata, ran
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:403
↓ 3 callersMethodcompetition
The competition that runs auctions for this solver engine.
crates/solana-driver/src/infra/api/mod.rs:126
↓ 3 callersFunctioncompetition_error
(err: &competition::Error)
crates/driver/src/infra/observe/mod.rs:468
↓ 3 callersMethodcomplement
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:188
↓ 3 callersFunctioncompute_absolute_tolerance
Computes the absolute tolerance amount from a relative factor.
crates/solvers/src/domain/dex/shared.rs:15
↓ 3 callersMethodcompute_unit_limit
The compute unit limit the settlement declares and prices its priority fee at: the solution's, or else the runtime's default for a transaction that de
crates/solana-driver/src/domain/settlement.rs:375
↓ 3 callersFunctionconfig
(enable_buy_orders: bool)
crates/solana-solvers/src/dex/jupiter/mod.rs:195
↓ 3 callersFunctionconfig
()
crates/driver/src/infra/solver/mod.rs:628
↓ 3 callersMethodconfig
Load the specified config file. Otherwise, a temporary config file will be created with reasonable values.
crates/driver/src/tests/setup/mod.rs:840
↓ 3 callersFunctionconstant_a_18
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:91
↓ 3 callersFunctionconstant_a_20
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:75
↓ 3 callersFunctionconstant_x_18
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:67
↓ 3 callersFunctionconstant_x_20
(i: u32)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:51
↓ 3 callersMethodcontributes_to_score
Check if an order contributes to the solution's score. An order contributes to score if: 1. It has fee policies defined (it's a user order from the a
crates/winner-selection/src/auction.rs:54
↓ 3 callersFunctionconversion_row
()
crates/autopilot-svm/src/infra/db.rs:890
↓ 3 callersFunctionconvert_onchain_order_placement
( order_placement: &ContractOrderPlacement, event_timestamp: i64, quote: Result<Quote, OnchainOrde
crates/autopilot/src/database/onchain_order_events/mod.rs:618
↓ 3 callersFunctioncreate_order
Handle `POST /api/v1/orders`: validate the transaction, derive the order from it, and persist both. Answers the order uid like the EVM orderbook.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:202
↓ 3 callersFunctioncreate_order
The `CreateOrder` instruction creating `intent` for `owner` at the funder's expense.
crates/solana-orderbook/tests/api.rs:1940
↓ 3 callersFunctioncreate_order_tx
Verifies the run loop drains buffered updates and returns Ok when the sender drops. Event content is not asserted here: the persistence bodies are no-
crates/solana-indexer/src/indexer/decoder/tests.rs:391
↓ 3 callersFunctioncreate_stable_pool_with
( tokens: Vec<Address>, balances: Vec<U256>, amplification_parameter: AmplificationPar
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:481
↓ 3 callersFunctioncurrent_block_ws_stream
Creates a cloneable stream that yields the current block whenever it changes. Uses websocket subscriptions for real-time block updates. The stream is
crates/ethrpc/src/block_stream.rs:105
↓ 3 callersMethodcustom_prices
( &self, prices: &ClearingPrices, )
crates/driver/src/domain/competition/solution/trade.rs:92
↓ 3 callersFunctiondecimal_to_ether
Converts a `BigDecimal` amount in Ether units to wei.
crates/solvers/src/util/conv.rs:21
↓ 3 callersFunctiondefault_config
()
crates/gas-price-estimation/src/configurable_alloy.rs:146
↓ 3 callersFunctiondefault_past_blocks
()
crates/configs/src/gas_price_estimation.rs:9
↓ 3 callersFunctiondefault_reward_percentile
()
crates/configs/src/gas_price_estimation.rs:13
↓ 3 callersFunctiondefault_streaming_params
()
crates/shared/src/order_quoting.rs:2365
↓ 3 callersFunctiondeploy_with_solver_and_trader
Deploys onchain components with a solver and a trader, each funded with 100 ETH.
crates/e2e/tests/e2e/protocol_fee.rs:1282
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1738
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/izeroex/src/lib.rs:8279
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1741
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1544
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/signatures/src/lib.rs:1093
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:999
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv3quoterv2/src/lib.rs:2642
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:2071
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1569
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:5071
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv3/src/lib.rs:1444
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/iuniswapv3factory/src/lib.rs:1300
↓ 3 callersFunctiondeployment_info
(chain_id: u64)
contracts/generated/contracts-generated/deadlinecheck/src/lib.rs:762
← previousnext →1,001–1,100 of 10,747, ranked by callers