MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,800 in github.com/cowprotocol/services

↓ 7 callersFunctionserve
(listener: TcpListener, prices: NativePrices)
crates/autopilot-svm/src/infra/api.rs:42
↓ 7 callersMethodsingle_order
(&self, uid: &OrderUid)
crates/orderbook/src/database/orders.rs:307
↓ 7 callersMethodsolution
The solution encoded in this settlement.
crates/driver/src/domain/competition/solution/settlement.rs:259
↓ 7 callersMethodsolution
(&self)
crates/autopilot/src/domain/competition/bid.rs:30
↓ 7 callersMethodsolver
(&self)
crates/autopilot/src/domain/settlement/mod.rs:72
↓ 7 callersMethodspawn
Flushes the pre-startup backlog and then spawns the fast-path listener: pulls order uids off `receiver` and dispatches each one on a fresh task so a s
crates/autopilot/src/fast_path.rs:113
↓ 7 callersFunctionspawn_server_with_mocks
(solvers: Vec<Solver>, mocks: impl Into<MocksMap>)
crates/solana-driver/tests/api.rs:155
↓ 7 callersFunctionspawn_server_with_policy
( solvers: Vec<Solver>, mocks: impl Into<MocksMap>, priority_fee: PriorityFeePolicy, )
crates/solana-driver/tests/api.rs:159
↓ 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:230
↓ 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:438
↓ 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 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 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:72
↓ 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:2039
↓ 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:1187
↓ 6 callersFunctionbuild_1271_validator
( signature_validator: MockSignatureValidating, order_simulator: Option<OrderSimulator>,
crates/shared/src/order_validation.rs:3529
↓ 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:890
↓ 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:1966
↓ 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:2257
↓ 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:1557
↓ 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:1039
↓ 6 callersFunctionclassic_mints
The account lookup of an order selling and buying classic SPL Token mints.
crates/solana-orderbook/tests/api.rs:1979
↓ 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:680
↓ 6 callersMethodfee
(&self)
crates/shared/src/fee.rs:37
↓ 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/banned-users/src/metrics.rs:37
↓ 6 callersMethodget
()
crates/price-estimation/src/native/coingecko.rs:341
↓ 6 callersMethodget
()
crates/shared/src/order_validation.rs:81
↓ 6 callersMethodget
()
crates/orderbook/src/database/mod.rs:164
↓ 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:491
↓ 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:660
↓ 6 callersMethodhash
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:987
↓ 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 callersMethodinto_inner
(self)
crates/serde-ext/src/env.rs:24
↓ 6 callersMethodis_empty
(&self)
crates/ethrpc/src/alloy/buffering.rs:312
↓ 6 callersMethodis_empty
(&self)
crates/driver/src/domain/competition/mod.rs:1077
↓ 6 callersMethodlimit_prices_json
The fast-path limit prices for the single quoted order.
crates/driver/src/tests/setup/mod.rs:1215
↓ 6 callersFunctionload_rules_from_str
Parses a whole rules file, then loads it as [`load_rules_toml`] does.
crates/fee-engine/src/loader.rs:64
↓ 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 callersMethodname
The human-readable name of this solver, for logs and metrics.
crates/solana-driver/src/infra/solver/mod.rs:43
↓ 6 callersFunctionnative_buy_intent
A sponsored intent buying `buy_amount` lamports of native SOL into the owner's wallet.
crates/solana-orderbook/tests/api.rs:2027
↓ 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
The order a quote for `sell -> buy` describes.
crates/shared/src/fee_engine.rs:268
↓ 6 callersFunctionorder
Sells 1000 `sell_token` for 900 `buy_token` or more.
crates/autopilot/src/fee_engine.rs:211
↓ 6 callersFunctionorder
(kind: OrderKind, sell: (Address, u128), buy: (Address, u128))
crates/autopilot/src/domain/penalty_cap.rs:202
↓ 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:3521
↓ 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 callersFunctionparse
(interval: &str)
crates/configs/src/canonical_batch.rs:82
↓ 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 callersFunctionprotocol_fees_by_policy
The fee each of `policies` took from the fill `order` describes, in list order and in the surplus token, recovered from the settled legs. The last pol
crates/protocol-fees/src/lib.rs:106
↓ 6 callersMethodprovider
(&self)
crates/simulator/src/simulation_builder.rs:91
↓ 6 callersFunctionpubkey
(byte: u8)
crates/solana-driver/src/domain/execution_cost.rs:222
↓ 6 callersFunctionpubkey
(byte: u8)
crates/solana-driver/tests/api.rs:46
↓ 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:747
↓ 6 callersMethodquery
Performs the specified GraphQL query on the current subgraph.
crates/liquidity-sources/src/subgraph.rs:43
↓ 6 callersFunctionread_quotes
( ex: &mut sqlx::PgConnection, order_ids: &[OrderUid], )
crates/database/src/orders.rs:523
↓ 6 callersMethodround
Rounds the slippage to the specified number of decimal places.
crates/solvers/src/domain/dex/slippage.rs:90
↓ 6 callersFunctionrow
()
crates/solana-orderbook/src/infra/api/routes/order/dto.rs:195
↓ 6 callersFunctionsample_app_data
App data with every field set, for the full sample order.
crates/fee-engine/src/rules.rs:412
↓ 6 callersFunctionsample_auction_dto
()
crates/solana-driver/src/infra/solver/dto/solution.rs:264
↓ 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:508
← previousnext →501–600 of 10,800, ranked by callers