MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 7 callersFunctionspawn_server_with_policy
( solvers: Vec<Solver>, mocks: impl Into<MocksMap>, priority_fee: PriorityFeePolicy, )
crates/solana-driver/tests/api.rs:158
↓ 7 callersMethodsplit_sell_balances
Hand each sell token account's balance out to its owner's orders selling from it, in auction order, and drop the orders it runs out on. Each solver's
crates/solana-driver/src/domain/auction.rs:213
↓ 7 callersFunctionsponsor
A sponsor over `mocks` with the given displaced creation cap. Each of `failures` fails one request with its transaction error first.
crates/autopilot-svm/src/infra/sponsor.rs:431
↓ 7 callersMethodstart
Start a new proxy server with automatic failover between backends # Panics Panics if `backends` is empty. At least one backend URL is required.
crates/e2e/src/setup/proxy.rs:76
↓ 7 callersMethodstate_override
( &self, holder: &Address, amount: &U256, )
crates/balance-overrides/src/balance/mod.rs:141
↓ 7 callersMethodto_f64_lossy
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:102
↓ 7 callersFunctiontrades_by_owner
Trades filtered by `owner`. "Owner" is spread across three tables depending on the order type, so we gather candidate `(block_number, log_index)` pai
crates/database/src/trades.rs:116
↓ 7 callersMethodtry_add
`self + rhs`, `Overflow` when it does not fit.
crates/chain-types/src/lib.rs:61
↓ 7 callersMethodwith_metric_label
Clones self and returns an instance that captures metrics extended with the provided label.
crates/driver/src/infra/blockchain/mod.rs:174
↓ 7 callersFunctionwith_pool_indexer_at
Runs `body` with a freshly-started pool-indexer. The indexer is spawned before the closure runs, then `abort`ed and `await`ed after — so the port is f
crates/e2e/tests/e2e/pool_indexer.rs:250
↓ 7 callersMethodwith_signature
(mut self, owner: Address, signature: Signature)
crates/simulator/src/simulation_builder.rs:667
↓ 7 callersFunctionwrapped_native_token
(chain: Chain)
crates/autopilot/src/domain/settlement/mod.rs:392
↓ 6 callersMethodadd
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:140
↓ 6 callersMethodaddress
Returns the [`eth::TokenAddress`] of the ERC20.
crates/driver/src/infra/blockchain/token.rs:22
↓ 6 callersFunctionadjust_quote_to_order_limits
(order: Order, quote: Quote)
crates/driver/src/domain/competition/solution/fee.rs:198
↓ 6 callersFunctionapp_data
(document: &str)
crates/orderbook/src/fee_engine.rs:424
↓ 6 callersFunctionappend_events
For a given checkpoint, append events to get a new checkpoint
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:499
↓ 6 callersFunctionapply_volume_fee
Applies a single volume fee to `(sell, buy)` for the given order kind using the amount on the "volume side" of the trade as the fee base: - Sell orde
crates/shared/src/fee.rs:161
↓ 6 callersFunctionapprove
(allowance: &Allowance)
crates/driver/src/domain/competition/solution/encoding.rs:321
↓ 6 callersFunctionassert_orders_by_contract
( result: &HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, contract: Address, expected_
crates/refunder/src/refund_service.rs:312
↓ 6 callersFunctionata
The owner's associated token account for `mint` under the SPL Token program.
crates/solana-orderbook/tests/api.rs:1851
↓ 6 callersMethodauction_fees
The fee policies of an order in an auction.
crates/autopilot/src/fee_engine.rs:106
↓ 6 callersMethodbalance_override
( &self, request: BalanceOverrideRequest, )
crates/balance-overrides/src/lib.rs:68
↓ 6 callersFunctionbig_decimal_to_big_rational
(value: &BigDecimal)
crates/number/src/conversions.rs:28
↓ 6 callersFunctionblockchain
Answers the settlement's two `getMultipleAccounts` lookups in order: `mints` for the mint accounts, then `accounts` for the buffer PDAs, payer ATAs an
crates/solana-driver/src/domain/settlement.rs:1186
↓ 6 callersFunctionbuild_1271_validator
( signature_validator: MockSignatureValidating, order_simulator: Option<OrderSimulator>,
crates/shared/src/order_validation.rs:3302
↓ 6 callersFunctionbuild_account_keys
The transaction's full account list that instruction indices resolve against: static keys, then ALT-loaded writable addresses, then readonly, in that
crates/solana-indexer/src/indexer/decoder.rs:733
↓ 6 callersFunctionbundle_json
A bundle answer whose creation leg passes and whose settlement leg is `settlement`.
crates/solana-orderbook/tests/api.rs:869
↓ 6 callersMethodbuy_amount
The effective amount the user received after all fees. Settlement contract uses `ceil` division for buy amount calculation.
crates/driver/src/domain/competition/solution/trade.rs:82
↓ 6 callersFunctionbytes_to_addr
(b: Vec<u8>)
crates/pool-indexer/src/db/uniswap_v3.rs:12
↓ 6 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/uniswapv3quoterv2/src/lib.rs:691
↓ 6 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/gpv2allowlistauthentication/src/lib.rs:1974
↓ 6 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/erc20mintable/src/lib.rs:2263
↓ 6 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/nonstandarderc20balances/src/lib.rs:1563
↓ 6 callersMethodcanonicalize_token_support
Resolves the configured token support into addresses, expanding every key that names a `[token-groups]` entry. Errors on a key that is neither an addr
crates/driver/src/infra/config/file/mod.rs:1036
↓ 6 callersFunctiondeploy_univ3
Deploy mock V3 contracts and set up a pool with liquidity.
crates/e2e/tests/e2e/pool_indexer.rs:354
↓ 6 callersMethoddetect
Returns the cached detection result for `(token, holder)`, running detection if not yet cached.
crates/balance-overrides/src/balance/mod.rs:329
↓ 6 callersMethoddiv_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:175
↓ 6 callersMethodencode
Encode the solution into a [`Settlement`], which can be used to execute the solution onchain.
crates/driver/src/domain/competition/solution/mod.rs:550
↓ 6 callersMethodestimate
The priority fee for a transaction given the fees recently paid over its writable accounts and its compute unit limit, or the fee it would pay when th
crates/solana-driver/src/domain/priority_fee.rs:110
↓ 6 callersMethodextensions
(&self)
crates/autopilot/src/run_loop.rs:574
↓ 6 callersMethodfee
(&self)
crates/shared/src/fee.rs:50
↓ 6 callersFunctionfee_trade
A trade filling the order with the given uid and taking `protocol_fee`.
crates/solana-driver/src/domain/settlement.rs:1131
↓ 6 callersMethodfetch
Fetches liquidity for the specified auction.
crates/driver/src/boundary/liquidity/mod.rs:133
↓ 6 callersMethodfrom_solver
(mut self, solver: Solver)
crates/simulator/src/simulation_builder.rs:208
↓ 6 callersMethodget
()
crates/price-estimation/src/native/coingecko.rs:308
↓ 6 callersMethodget_applicable_volume_fee_factor
Determines the applicable volume fee factor for a token pair, considering same-token trade configuration, token bucket overrides and default fee facto
crates/shared/src/fee.rs:103
↓ 6 callersMethodget_auction
Fetches the current auction. Don't use this as a synchronization mechanism in tests because that is prone to race conditions which would make tests fl
crates/e2e/src/setup/services.rs:461
↓ 6 callersFunctionget_confirmed_transaction
( account: Address, web3: &Web3, block_hash_stream: PollerStream<Vec<B256>>, )
crates/e2e/tests/e2e/submission.rs:1006
↓ 6 callersMethodget_latest_solver_competition
( &self, )
crates/e2e/src/setup/services.rs:499
↓ 6 callersFunctionget_pending_tx
(account: Address, web3: &Web3)
crates/e2e/tests/e2e/submission.rs:997
↓ 6 callersFunctionget_quote
( services: &Services<'_>, sell_token: Address, buy_token: Address, kind: OrderKind, amoun
crates/e2e/tests/e2e/protocol_fee.rs:668
↓ 6 callersMethodhash
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:993
↓ 6 callersFunctioninit_tracing
(env_filter: &str)
crates/observe/src/tracing/distributed/request_id.rs:128
↓ 6 callersFunctioninsert_or_overwrite_ethflow_order
( ex: &mut PgTransaction<'_>, event: &EthOrderPlacement, )
crates/database/src/ethflow_orders.rs:26
↓ 6 callersMethodis_empty
(&self)
crates/ethrpc/src/alloy/buffering.rs:312
↓ 6 callersMethodis_empty
(&self)
crates/driver/src/domain/competition/mod.rs:1077
↓ 6 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:1300
↓ 6 callersMethodlimit_prices_json
The fast-path limit prices for the single quoted order.
crates/driver/src/tests/setup/mod.rs:1215
↓ 6 callersFunctionmake_log
(address: Address, block: u64, event: impl SolEvent)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1147
↓ 6 callersFunctionmapping_slot_hash
`keccak256(pad32(holder) ++ map_slot)` — the storage slot of `mapping(address => _)` entries in Solidity.
crates/balance-overrides/src/detector.rs:91
↓ 6 callersFunctionmetrics
()
crates/autopilot-svm/src/infra/prices.rs:855
↓ 6 callersMethodname
The human-readable name of this solver, for logs and metrics.
crates/solana-driver/src/infra/solver/mod.rs:43
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:260
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/permit2/src/lib.rs:516
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:479
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:1545
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:408
↓ 6 callersMethodnew_simulation_builder
(&self)
crates/simulator/src/simulation_builder.rs:125
↓ 6 callersMethodnonce
(&self, web3: &Web3)
crates/e2e/src/setup/onchain_components/mod.rs:56
↓ 6 callersFunctionorder
(kind: OrderKind, sell: (Address, u128), buy: (Address, u128))
crates/autopilot/src/domain/penalty_cap.rs:202
↓ 6 callersFunctionorder
The order a quote for `sell -> buy` describes.
crates/orderbook/src/fee_engine.rs:431
↓ 6 callersMethodorder_json
The /solve-shaped JSON for the single quoted order.
crates/driver/src/tests/setup/mod.rs:1205
↓ 6 callersFunctionorder_simulator
(sim: MockOrderSimulating)
crates/shared/src/order_validation.rs:3294
↓ 6 callersMethodout_amount
(&self, query: &PriceQuery)
crates/price-estimation/src/trade_finding/mod.rs:117
↓ 6 callersMethodparameters_from_app_data
Parses the app data JSON and configures the builder accordingly: - Pre/post hooks are encoded as interactions via the [`HooksTrampoline`] - Flashloan/
crates/simulator/src/simulation_builder.rs:226
↓ 6 callersFunctionpolicy
(percentile: u8)
crates/solana-driver/src/domain/priority_fee.rs:188
↓ 6 callersMethodpost
(&self, url: Url, body: &Request)
crates/autopilot-svm/src/infra/driver/mod.rs:145
↓ 6 callersMethodprovider
(&self)
crates/simulator/src/simulation_builder.rs:91
↓ 6 callersFunctionpubkey
(byte: u8)
crates/solana-driver/src/domain/execution_cost.rs:221
↓ 6 callersFunctionpubkey
(byte: u8)
crates/solana-driver/tests/api.rs:45
↓ 6 callersFunctionpublish_event
Enqueues the event to be sent to the event bus in a background task. For ad-hoc events, use [`publish`] instead.
crates/observe/src/event_bus/mod.rs:163
↓ 6 callersMethodput_app_data
( &self, app_data: Option<AppDataHash>, full_app_data: &str, )
crates/e2e/src/setup/services.rs:755
↓ 6 callersMethodquery
Performs the specified GraphQL query on the current subgraph.
crates/liquidity-sources/src/subgraph.rs:43
↓ 6 callersFunctionread_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:217
↓ 6 callersFunctionread_quotes
( ex: &mut sqlx::PgConnection, order_ids: &[OrderUid], )
crates/database/src/orders.rs:496
↓ 6 callersMethodround
Rounds the slippage to the specified number of decimal places.
crates/solvers/src/domain/dex/slippage.rs:90
↓ 6 callersFunctionsample_app_data
App data with every field set, for the full sample order.
crates/fee-engine/src/rules.rs:409
↓ 6 callersFunctionsample_auction_dto
()
crates/solana-driver/src/infra/solver/dto/solution.rs:263
↓ 6 callersFunctionscripted_loop
A loop that runs the scripted cycles. Its liveness probe fails until the loop records an auction, and its startup probe fails until the first successf
crates/autopilot-svm/src/run_loop.rs:475
↓ 6 callersFunctionseed
(pool: &PgPool, uid: [u8; 32], cancelled: bool)
crates/solana-orderbook/src/infra/db.rs:677
↓ 6 callersMethodsend_transaction
Send a versioned transaction without waiting for it to land.
crates/cow-solana-rpc/src/lib.rs:430
↓ 6 callersMethodsettle_with_order
Call `/settle_fast_path` for the cached quote, with the real `order` and its `limit_prices`.
crates/driver/src/tests/setup/mod.rs:1225
↓ 6 callersFunctionsettled_json
A passing settlement leg: the watched accounts are the order, recording the buy amount received, the sell buffer and the buy buffer, at `pre` before a
crates/solana-orderbook/tests/api.rs:900
↓ 6 callersFunctionsettling_driver_answer
A driver answer for the `quote_body` sell, settling it for `buy_amount` with the unsigned settlement transaction `signers` sign, the first as the fee
crates/solana-orderbook/tests/api.rs:808
↓ 6 callersMethodshared_or_else
Returns an existing in flight future or creates and uses a new future from the specified closure.
crates/request-sharing/src/lib.rs:126
↓ 6 callersMethodsimulate
( &self, tx: T, block: BlockNo, overrides: Option<StateOverride>, gene
crates/simulator/src/tenderly/mod.rs:67
↓ 6 callersMethodsolver
(&self)
crates/driver/src/infra/api/mod.rs:217
↓ 6 callersFunctionspawn
(prices: NativePrices)
crates/autopilot-svm/src/infra/api.rs:97
↓ 6 callersFunctionspawn_pamm_stream
Spawns a new background task that streams state override updates into the return [`SimulationOverrides`] instance. `blocks` is read to learn the time
crates/simulator/src/state_override_stream.rs:349
← previousnext →501–600 of 10,747, ranked by callers