MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,749 in github.com/cowprotocol/services

↓ 3 callersFunctiontrade
(trade: &super::Trade)
crates/driver/src/domain/competition/solution/encoding.rs:406
↓ 3 callersMethodtransaction
One confirmed transaction with its metadata, base64-encoded.
crates/cow-solana-rpc/src/lib.rs:275
↓ 3 callersFunctiontransfer_checked
Whether the settlement moves a mint of `program` with `TransferChecked`. Every Token-2022 mint takes it, so no extension (transfer fee, transfer hook,
crates/solana-driver/src/domain/settlement.rs:882
↓ 3 callersMethodtry_mul_div_ceil
(self, mul: Self, div: Self)
crates/chain-types/src/evm.rs:70
↓ 3 callersMethodtry_to_ecdsa_scheme
(&self)
crates/model/src/signature.rs:243
↓ 3 callersMethodtry_to_model_order_quote
Converts this Quote to model OrderQuote.
crates/shared/src/order_quoting.rs:198
↓ 3 callersFunctiontx_from_instructions
Compile client-built instructions into the proto transaction shape: the account list starts with the fee payer, then every referenced key in encounter
crates/solana-indexer/src/indexer/decoder/tests.rs:60
↓ 3 callersMethodunread
The accounts for the caller's chain read: the mints without a cached verdict, in first-seen order, then the Clock sysvar whose epoch picks each mint's
crates/solana-token/src/lib.rs:194
↓ 3 callersMethodupscale_balances_with_token_indices
( &self, in_token: &Address, out_token: &Address, )
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:193
↓ 3 callersMethodupscaled_balance
Converts the stored balance into its internal representation as a Balancer fixed point number.
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:47
↓ 3 callersMethodurl
(&self)
crates/driver/src/tests/setup/builder.rs:29
↓ 3 callersMethodvalidate_app_data
Validates the provided app data, returning an [`OrderAppData`] if valid. The validation entails verifying that the app data is well formed and its si
crates/shared/src/order_validation.rs:836
↓ 3 callersFunctionvalidity_answers
A mock RPC answering the blockhash probes with `answers`, in order.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:1068
↓ 3 callersMethodverify
Verify each of the `quotes` of `order`, whose quoted order `owner` owns: a verified quote is marked, an inaccurate one dropped, the rest stay as the d
crates/solana-orderbook/src/infra/verifier.rs:244
↓ 3 callersFunctionversioned_tx
A signed transaction in the `VersionedTransaction` envelope `decode()` returns, carrying a legacy message with the given instruction.
crates/solana-indexer/src/indexer/decoder/tests.rs:530
↓ 3 callersFunctionvolume
(factor: f64)
crates/solana-driver/src/domain/protocol_fee.rs:171
↓ 3 callersFunctionvolume_fees
The legacy volume fees without `[fee-engine]`; with it, the compared ones. The rules must load.
crates/orderbook/src/fee_engine.rs:22
↓ 3 callersFunctionwait_for
Polls until the background task produced the expected state. Returns as soon as it did, so a generous timeout costs nothing in the happy case.
crates/account-balances/src/cached.rs:250
↓ 3 callersFunctionwait_for_warm_up
Waits until the stream can project a stamp, which takes one block: the spacing it needs is inferred from the gap between two heads, so until a second
crates/simulator/src/state_override_stream.rs:1316
↓ 3 callersMethodwith_block_timestamp
(&mut self, timestamp: u32)
crates/refunder/src/traits.rs:99
↓ 3 callersMethodwith_fee_amount
(mut self, fee_amount: U256)
crates/model/src/order.rs:117
↓ 3 callersMethodwith_id
Returns `self` with a new id.
crates/solvers/src/domain/solution.rs:32
↓ 3 callersMethodwith_kind
(mut self, kind: OrderKind)
crates/model/src/order.rs:122
↓ 3 callersMethodwith_rank
(self, rank_type: RankType)
crates/winner-selection/src/state.rs:116
↓ 3 callersMethodwith_refundable_orders
(&mut self, orders: Vec<EthOrderPlacement>)
crates/refunder/src/traits.rs:136
↓ 3 callersMethodwith_slippage_bps
Set slippage in basis points (e.g., 500 = 5%).
crates/e2e/tests/e2e/refunder.rs:146
↓ 3 callersMethodwith_state
(self, state: NewState)
crates/autopilot/src/domain/competition/bid.rs:43
↓ 3 callersMethodwithdraw
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2400
↓ 3 callersMethodwrappers
(&self)
crates/driver/src/domain/competition/order/app_data.rs:134
↓ 3 callersMethodwrite
(&mut self, data: &[u8])
crates/driver/src/infra/solver/streaming/mod.rs:125
↓ 3 callersFunctionwrite_last_block_to_db
(db: &PgPool, last_block: u64, contract: &str)
crates/autopilot/src/boundary/events/mod.rs:8
↓ 2 callersFunctionabsolute_to_relative
Converts an absolute slippage value to a relative slippage value based on the amount and asset's price.
crates/solvers/src/domain/dex/shared.rs:28
↓ 2 callersMethodadd
Adds slippage to the specified amount.
crates/solvers/src/domain/dex/slippage.rs:62
↓ 2 callersMethodadd_host_list
Adds a list whose values the host knows, such as the chain's wrapped native token. The tables may not define it.
crates/fee-engine/src/loader.rs:43
↓ 2 callersMethodadd_mismatch
(&mut self, check: &'static str, mismatch: Mismatch)
crates/fee-engine/src/report.rs:61
↓ 2 callersMethodadd_order
( &self, payload: OrderCreation, )
crates/orderbook/src/orderbook.rs:294
↓ 2 callersFunctionadd_swap_fee_amount
(amount: U256, swap_fee: Bfp)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:30
↓ 2 callersMethodadditional_gas_amount
Returns the additional gas amount associated with a signing scheme.
crates/model/src/quote.rs:67
↓ 2 callersFunctionaddress
(last_byte: u8)
crates/driver/src/infra/config/file/mod.rs:1434
↓ 2 callersMethodaddress
(&self)
crates/event-indexing/src/event_handler.rs:174
↓ 2 callersFunctionadjust_quote_to_order_limits
Adjust quote amounts to be comparable with order limits.
crates/protocol-fees/src/lib.rs:456
↓ 2 callersMethodadvance
Returns the auction to diff `auction` against, and stores `auction` to be diffed against in the next cycle. A delta is always relative to the auction
crates/autopilot/src/run_loop.rs:132
↓ 2 callersFunctionall_order_events
(ex: &mut PgConnection)
crates/database/src/order_events.rs:254
↓ 2 callersFunctionamount
(value: u128)
crates/autopilot/src/domain/competition/winner_selection.rs:1270
↓ 2 callersMethodamount
Check that the quote returns the expected amount of tokens. This is based on the state of the blockchain and the test setup.
crates/driver/src/tests/setup/mod.rs:1644
↓ 2 callersFunctionamounts
The amounts for `side`, from `route` as the driver quoted it, `quoted` net of `costs`, and the native prices, with the costs the answer reports. A buy
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:469
↓ 2 callersMethodamounts
Returns (sell_amount, buy_amount).
crates/price-estimation/src/lib.rs:216
↓ 2 callersMethodamplification_parameter_u256
(&self)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:217
↓ 2 callersFunctionapp_data_view
The app data under the app-data schema's names, typed like the rest of the view. A flashloan shows as `true`; a rule reads only its presence.
crates/fee-engine/src/order_view/app_data.rs:19
↓ 2 callersFunctionappend
( ex: &mut PgTransaction<'_>, events: &[(EventIndex, OnchainOrderPlacement)], )
crates/database/src/onchain_broadcasted_orders.rs:79
↓ 2 callersMethodappend_events
(&mut self, events: Vec<(AlloyUniswapV3PoolEvents, Log)>)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:105
↓ 2 callersMethodapply
Computes the protocol fee policies that apply to an order.
crates/autopilot/src/domain/fee/mod.rs:227
↓ 2 callersMethodapply_factor
Applies a factor to the token amount.
crates/eth-domain-types/src/token_amount.rs:15
↓ 2 callersFunctionapply_gas_fee_override
Applies the solver's gas fee override if present. When a replacement transaction is pending, the solver's values are raised to at least the replacemen
crates/driver/src/domain/mempools.rs:510
↓ 2 callersMethodapply_position_delta_to_pool_liq
Applies a position-liquidity delta to the pool's *active liquidity. Uniswap V3 only moves `pool.liquidity` when the current `tick` falls within `[lowe
crates/pool-indexer/src/indexer/uniswap_v3.rs:1006
↓ 2 callersMethodarbitrate
(&self, _solutions: Vec<()>, _auction: &TestAuction)
crates/autopilot-svm/src/run_loop.rs:421
↓ 2 callersMethodas_custom
The address the user explicitly specified as a custom receiver, or `None` for the zero-sentinel (= "pay the owner"). Use this when you need to act on
crates/eth-domain-types/src/receiver.rs:55
↓ 2 callersMethodas_str
(self)
crates/solana-solvers/src/dex/jupiter/mod.rs:27
↓ 2 callersMethodas_str
(self)
crates/orderbook/src/fee_engine.rs:124
↓ 2 callersMethodas_transaction_request
(&self)
crates/simulator/src/simulation_builder.rs:463
↓ 2 callersMethodassert_all_decodable
(&self)
crates/e2e/tests/e2e/solve_request_compression.rs:74
↓ 2 callersFunctionassert_and_propagate_panics
Runs the given closure and updates a flag if it panics.
crates/solvers/src/tests/mock/http.rs:200
↓ 2 callersFunctionassert_create_and_settle_persisted
The rows [`create_and_settle_txs`] leaves once indexed at slot 43.
crates/solana-indexer/src/indexer/decoder/tests.rs:1152
↓ 2 callersFunctionassert_exact_boundary
A fill at exactly the tightened limit keeps `limit` after the volume fee, and a fill one atom worse does not, on both sides.
crates/protocol-fees/src/tests.rs:438
↓ 2 callersFunctionassert_volume_fee
( trade: &model::trade::Trade, expected_fee_token: ::alloy::primitives::Address, expected_factor:
crates/e2e/tests/e2e/protocol_fee.rs:1638
↓ 2 callersFunctionasset
(amount: u64)
crates/driver/src/domain/competition/solution/scoring.rs:558
↓ 2 callersMethodasset
(data: &[u8])
contracts/generated/contracts-generated/ierc4626/src/lib.rs:434
↓ 2 callersFunctionassociated_token_address
The associated token account of the wallet the order pays out to for the buy mint under `program`.
crates/autopilot-svm/src/infra/provider.rs:647
↓ 2 callersFunctionata_len
The data length of a new associated token account of the mint at `mint`, `None` when it is no mint of either token program. A Token-2022 one carries t
crates/solana-token/src/lib.rs:220
↓ 2 callersFunctionata_rent_owed
( ata: Pubkey, account: &Account, mint: &Pubkey, rent: u64, )
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:771
↓ 2 callersFunctionauction
Observe a received auction.
crates/driver/src/infra/observe/mod.rs:47
↓ 2 callersMethodauction
(auction_id: domain::auction::Id)
crates/autopilot/src/run_loop.rs:1029
↓ 2 callersMethodauction
(&self)
crates/autopilot/src/run.rs:84
↓ 2 callersFunctionautopilot
An autopilot stand-in answering every mint under `path` with `status` and `body`.
crates/solana-orderbook/src/infra/prices.rs:86
↓ 2 callersFunctionbackend_pid
(conn: &mut PgConnection)
crates/orderbook/src/database/mod.rs:195
↓ 2 callersMethodbadd
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/math.rs:16
↓ 2 callersMethodbalance
Returns the current [`eth::Ether`] balance of the specified account.
crates/driver/src/infra/blockchain/mod.rs:220
↓ 2 callersMethodbalances
(&self)
crates/driver/src/tests/setup/mod.rs:1281
↓ 2 callersFunctionbang_for_buck_ranking
Builds a `BestBangForBuck` setup where every token is estimated to be half as valuable as ETH and the gas price is 2. That effectively means every uni
crates/price-estimation/src/competition/quote.rs:426
↓ 2 callersFunctionbare_sample_order
An order with no optional field present and every timestamp `now`, so that time arithmetic does not underflow. Amounts are 1, so a ratio of two is def
crates/fee-engine/src/rules.rs:374
↓ 2 callersMethodbase_pool_at
Returns a Balancer base pool contract instance at the specified address.
crates/liquidity-sources/src/balancer_v2/pools/common.rs:63
↓ 2 callersFunctionbase_token_pairs
All token pairs between base tokens.
crates/liquidity-sources/src/base_tokens.rs:120
↓ 2 callersFunctionbatch_swap
(in_amount: u64, out_amount: u64)
crates/solana-solvers/src/dto/solution.rs:329
↓ 2 callersMethodbdiv_down
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/math.rs:24
↓ 2 callersFunctionbest
( quotes: Vec<quoter::Quote>, kind: dto::Kind, rent: u64, price: NonZero<u64>,
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:1161
↓ 2 callersFunctionbisecting_get_logs
Fetches logs for `[from, to]` filtered by the given contract addresses and `topic0` event signatures, sequentially bisecting the block range on "too l
crates/pool-indexer/src/indexer/uniswap_v3.rs:718
↓ 2 callersFunctionblock_after_head
A block `number` blocks after `head()`, spaced as mainnet spaces them.
crates/simulator/src/state_override_stream.rs:603
↓ 2 callersMethodblock_height
The chain's block height, falling back to the last one read when the lookup fails. `None` until a lookup succeeds. Block height only grows, so a creat
crates/autopilot-svm/src/infra/provider.rs:71
↓ 2 callersFunctionblock_height_for
The chain height to check `row`'s creation deadline against. Only a pending creation has one, so other orders skip the RPC call.
crates/solana-orderbook/src/infra/api/routes/order/mod.rs:32
↓ 2 callersMethodblock_time_in_ms
Returns the block time in milliseconds
crates/chain/src/lib.rs:97
↓ 2 callersFunctionblockchain_with
A blockchain adapter that already knows the test order's mints as SPL Token mints, so that the mock RPC's answer to every account lookup, "absent", on
crates/solana-driver/tests/api.rs:92
↓ 2 callersMethodbmul
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/math.rs:12
↓ 2 callersMethodbody_to_string
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:277
↓ 2 callersFunctionbootstrap
Runs the bootstrap phase (on-chain cold-seed + catch-up to the finalized head) for every factory, then returns. Binds no HTTP ports; meant to run as a
crates/pool-indexer/src/run.rs:42
↓ 2 callersFunctionbootstrap_factory
Indexes a factory up to the finalized head before it's considered ready. A fresh factory cold-seeds from its deploy block; one with a checkpoint (from
crates/pool-indexer/src/run.rs:243
↓ 2 callersFunctionbounded
A cache capped at [`MAX_CACHE_SIZE`] entries.
crates/autopilot-svm/src/infra/prices.rs:72
↓ 2 callersFunctionbuild
( contracts: &Contracts, solvers: &[SolverEngine], liquidity: &LiquidityProvider, )
crates/e2e/src/setup/colocation/driver_config.rs:18
↓ 2 callersFunctionbuild_1271_validator_with
( signature_validator: MockSignatureValidating, balance_fetcher: MockBalanceFetching,
crates/shared/src/order_validation.rs:3327
↓ 2 callersMethodbuild_fair_batch
Batches at most `max_batch_size` items in a round-robin fashion to prevent individual callers from starving all the others.
crates/ethrpc/src/alloy/buffering.rs:373
↓ 2 callersFunctionbuild_provider_checked
Builds the RPC provider and asserts the node's chain_id matches config. Catches misconfigured RPC-vs-network pairings (e.g. chain_id=1 pointed at an A
crates/pool-indexer/src/run.rs:287
← previousnext →1,401–1,500 of 10,749, ranked by callers