MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,749 in github.com/cowprotocol/services

↓ 3 callersFunctionread_onchain_invalidation
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/onchain_invalidations.rs:76
↓ 3 callersFunctionreceivable_or_creatable
Whether the settlement's payout of `mint` lands in the token account at `account`, read from the chain as `found`: the account receives the mint, or t
crates/solana-token/src/lib.rs:277
↓ 3 callersFunctionreceivable_token_account
Whether the settlement's plain `Transfer` of `mint` lands in the token account at `account`: initialized, unfrozen, holding `mint`, and not set to ref
crates/solana-token/src/lib.rs:260
↓ 3 callersMethodreceiver
(self, receiver: eth::Receiver)
crates/driver/src/tests/setup/mod.rs:288
↓ 3 callersMethodrecent_prioritization_fees
The prioritization fees recently paid by transactions locking `addresses` as writable, one entry per recent slot.
crates/solana-driver/src/infra/blockchain/mod.rs:164
↓ 3 callersFunctionrecord_dropped
(reason: DropReason)
crates/observe/src/event_bus/mod.rs:233
↓ 3 callersMethodrecover_owner
Opposite of `encode_for_settlement`. Given the encoded signature returns the owner.
crates/model/src/signature.rs:164
↓ 3 callersMethodreduce
Returns a new deadline with the specified duration subtracted.
crates/solvers/src/domain/auction.rs:93
↓ 3 callersMethodreduce_score
Reduce the solution score by adding additional meaningless calldata.
crates/driver/src/tests/setup/mod.rs:571
↓ 3 callersMethodreference_scores
Reference scores for each winning solver, used to compute rewards.
crates/autopilot/src/domain/competition/winner_selection.rs:266
↓ 3 callersMethodrelative
Returns the slippage for the specified token amount.
crates/solvers/src/domain/dex/slippage.rs:30
↓ 3 callersMethodrelevant_pairs
All pool token pairs that could be used along a path candidate for these token pairs.
crates/solvers/src/boundary/routing.rs:142
↓ 3 callersMethodremaining
The amounts still open to fill: the order-side target less `executed`, the other leg scaled in proportion. TODO: duplicate of the driver's `Order::re
crates/autopilot-svm/src/domain/auction.rs:81
↓ 3 callersMethodremove_events_newer_than_block
Removes all events from the specified block, including specified block.
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:78
↓ 3 callersMethodremove_events_older_than_block
Removes all events up to the specified block, excluding the specified block.
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:73
↓ 3 callersMethodrent
(&self, order: &Order)
crates/solana-driver/src/domain/execution_cost.rs:161
↓ 3 callersMethodreplay
One replay pass: retry the parked dead letters. Work that fails again stays parked for the next pass.
crates/solana-indexer/src/indexer/decoder/replay.rs:20
↓ 3 callersFunctionreplayer
A decoder without a stream over the given mocks.
crates/solana-indexer/src/indexer/decoder/tests.rs:1273
↓ 3 callersFunctionreply
Build an error response.
crates/solana-orderbook/src/infra/api/error.rs:20
↓ 3 callersFunctionreport_comparison
Counts one comparison of `check`. A disagreement is also logged, grouped with the others of its kind once a second.
crates/fee-engine/src/report.rs:149
↓ 3 callersFunctionrequest_id
(headers: &HeaderMap<HeaderValue>)
crates/observe/src/tracing/distributed/request_id.rs:36
↓ 3 callersFunctionrequest_with_policies
(policies: serde_json::Value)
crates/solana-driver/src/infra/api/routes/solve/dto/solve_request.rs:304
↓ 3 callersFunctionreset_comparison_counters
Publishes the comparison counters of `checks` at zero, so that the first mismatch of a check shows as an increase.
crates/fee-engine/src/report.rs:136
↓ 3 callersFunctionresolve
The document an `app_data` form names, checked the EVM orderbook's way: a document must hash to the `appDataHash` named with it, a hash alone must hav
crates/solana-orderbook/src/infra/api/routes/app_data/mod.rs:119
↓ 3 callersFunctionrestamp
Moves the lanes quoted for `stamp` into the simulated block by rewriting their stamp to `timestamp`. Only words carrying `stamp` are rewritten. A lan
crates/simulator/src/state_override_stream.rs:223
↓ 3 callersFunctionrestamp_word
Rewrites every field of `word` holding `stamp` to `timestamp`, in the unit and at the offset the venue keeps it. Words not carrying `stamp` are left u
crates/simulator/src/state_override_stream.rs:123
↓ 3 callersFunctionrevert_message
Extracts the most relevant revert message from the call by preferring `revert_reason` (failed SC assertion) over `error` (EVM error).
crates/simulator/src/report.rs:207
↓ 3 callersMethodrpc_args
(mut self, rpc_args: Vec<String>)
crates/driver/src/tests/setup/mod.rs:879
↓ 3 callersMethodrun
Per-factory live-indexing loop. Backfill tasks live at the network level (see `run_network_indexer`).
crates/pool-indexer/src/indexer/uniswap_v3.rs:129
↓ 3 callersMethodrun
Starts the server and returns the assigned port number.
crates/e2e/src/api/zeroex.rs:36
↓ 3 callersMethodrun_forever
Runs cycles until `shutdown` is cancelled, then releases the leader lock. The cycle in flight when the signal arrives runs to its end. With a lock, a
crates/autopilot-svm/src/run_loop.rs:211
↓ 3 callersFunctionsample_intent
The intent behind [`create_order_parts`] and the cancellation test.
crates/solana-indexer/src/indexer/decoder/tests.rs:397
↓ 3 callersMethodsanitized_competition
Builds a [`CompetitionEstimator`] over the given estimators, with each one wrapped in its own sanitizer. This per-estimator shape lets the single comp
crates/price-estimation/src/factory.rs:375
↓ 3 callersMethodsaturating_add
(self, v: Self)
crates/autopilot/src/domain/competition/mod.rs:93
↓ 3 callersMethodscore
Score defined as (surplus + protocol fees) first converted to buy amounts and then converted to the native token. [CIP-38](https://forum.cow.fi/t/cip
crates/driver/src/domain/competition/solution/scoring.rs:79
↓ 3 callersFunctionscripted_loop_with
A [`scripted_loop`] whose cycles `trigger` fires.
crates/autopilot-svm/src/run_loop.rs:486
↓ 3 callersFunctionsell
(uid: u8)
crates/solana-solvers/src/domain/solver/mod.rs:462
↓ 3 callersFunctionsell
(amount: u64)
crates/driver/src/domain/competition/solution/fee.rs:572
↓ 3 callersMethodsell
The asset being sold, or a very large value if this is a buy, to facilitate surplus.
crates/driver/src/domain/quote.rs:322
↓ 3 callersFunctionsell_order_from_quote
(quote: &OrderQuoteResponse)
crates/e2e/tests/e2e/protocol_fee.rs:700
↓ 3 callersFunctionsell_token_source_from
(source: DbSellTokenSource)
crates/shared/src/db_order_conversions.rs:283
↓ 3 callersMethodsend_and_confirm_transaction
Send a signed transaction and wait for confirmation, sending the same bytes again every [`RESEND_INTERVAL`] until it lands. The copies skip the prefli
crates/solana-driver/src/infra/blockchain/mod.rs:206
↓ 3 callersMethodsend_displaced
Send the creatable ones among the pending creations, in order, up to the cap and at most one per owner, so a single user cannot take the whole cap. A
crates/autopilot-svm/src/infra/sponsor.rs:163
↓ 3 callersMethodsend_wei
(&self, to: Address, amount: U256)
crates/e2e/src/setup/onchain_components/mod.rs:609
↓ 3 callersMethodserialize
(&self, serializer: S)
crates/model/src/order.rs:570
↓ 3 callersMethodserialize
(&self, serializer: S)
crates/solana-solvers/src/dto/order.rs:24
↓ 3 callersFunctionset_indexed_slot
(pool: &PgPool, slot: i64)
crates/autopilot-svm/src/infra/observation.rs:271
↓ 3 callersFunctionset_price
(micro_lamports: u64)
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:1118
↓ 3 callersMethodsetup
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3477
↓ 3 callersMethodsetup_accounts
The buffer PDAs and payer ATAs the settlement needs: a buffer per token buy mint and per sell mint a buy order pays a protocol fee in, a payer ATA per
crates/solana-driver/src/domain/settlement.rs:215
↓ 3 callersMethodshutdown
Send shutdown signal to the associated Control
crates/autopilot/src/shutdown_controller.rs:65
↓ 3 callersMethodsign
Signs the current [`OrderCreation`]'s data ([`OrderData`]) using ECDSA, returning a signed [`OrderCreation`]. Re-signs the order data with ECDSA and
crates/model/src/order.rs:361
↓ 3 callersMethodsign_message
Returns the ERC-1271 signature bytes for the specified message.
crates/e2e/src/setup/onchain_components/safe.rs:201
↓ 3 callersMethodsign_typed_data
( &self, domain_separator: &DomainSeparator, struct_hash: &[u8; 32], )
crates/e2e/src/setup/onchain_components/mod.rs:43
↓ 3 callersFunctionsignature
(n: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:39
↓ 3 callersMethodsignature
(&self)
crates/driver/src/tests/boundary.rs:35
↓ 3 callersFunctionsigning_scheme_from
(scheme: DbSigningScheme)
crates/shared/src/db_order_conversions.rs:314
↓ 3 callersMethodsimulation_gas_price
(&self)
crates/simulator/src/ethereum/mod.rs:55
↓ 3 callersFunctionsimulation_mocks
Mocks pricing every unit at 10_000 micro-lamports and passing the bundle simulation at `units`.
crates/solana-driver/tests/api.rs:131
↓ 3 callersFunctionsimulation_passes
()
crates/shared/src/order_validation.rs:3572
↓ 3 callersFunctionsimulation_reverts
()
crates/shared/src/order_validation.rs:3578
↓ 3 callersMethodsimulation_solver_address
(&self)
crates/price-estimation/src/trade_finding/mod.rs:113
↓ 3 callersFunctionsized_settlement
A settlement of the test order, with `interaction_bytes` of solver interaction data.
crates/solana-driver/src/domain/settlement.rs:1370
↓ 3 callersMethodslot
The node's current slot at the client's commitment level.
crates/solana-driver/src/infra/blockchain/mod.rs:142
↓ 3 callersFunctionslot_update
(slot: u64, status: SlotStatus)
crates/solana-indexer/src/indexer/ingester/tests.rs:74
↓ 3 callersFunctionsnapshot_pool_state
Samples `(pool_count, sqrt_price_x96, tick, liquidity)` for a single pool.
crates/e2e/tests/e2e/pool_indexer.rs:276
↓ 3 callersFunctionsolution
(trades: Vec<Trade>)
crates/solana-driver/src/domain/settlement.rs:1146
↓ 3 callersFunctionsolutions
Observe the solutions returned by the solver.
crates/driver/src/infra/observe/mod.rs:79
↓ 3 callersFunctionsolvable_orders
( ex: &mut PgConnection, min_valid_to: i64, now: i64, )
crates/database/src/orders.rs:801
↓ 3 callersFunctionsolve_request_with_policies
The standard solve request with `policies` on its order.
crates/solana-driver/tests/api.rs:1184
↓ 3 callersMethodsolver
Get the solver address.
crates/winner-selection/src/solution.rs:45
↓ 3 callersFunctionspawn_mock_autopilot
A tiny axum server that answers `/native_price/{mint}` with `price(mint)`, or 404 without one. It stands in for the autopilot.
crates/solana-orderbook/tests/api.rs:75
↓ 3 callersMethodsponsoring
Sponsored placement dependencies, absent when the feature is off.
crates/solana-orderbook/src/infra/api/mod.rs:301
↓ 3 callersMethodstart
(&self)
crates/event-indexing/src/block_retriever.rs:141
↓ 3 callersMethodstart_autopilot_with_shutdown_controller
Start the autopilot service in a background task. Uses [`Self::min_solve_deadline`] as the per-auction solve deadline. Allows to externally control th
crates/e2e/src/setup/services.rs:171
↓ 3 callersFunctionstart_driver_with_config_override
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, config_over
crates/e2e/src/setup/colocation.rs:112
↓ 3 callersFunctionstart_volume_fee_protocol
Wraps 50 ETH for `trader` (approved to the vault relayer) and starts the protocol with a 1% volume fee (effective immediately) and `SameTokensPolicy::
crates/e2e/tests/e2e/protocol_fee.rs:1296
↓ 3 callersFunctionstorage_allocating_quote_id_generator
Storage mock that only hands out quote ids, for tests that never get as far as storing a quote.
crates/shared/src/order_quoting.rs:2767
↓ 3 callersMethodstore
Caches `verdict`, reporting a ban the cache did not already know about. Returns how the number of banned entries changed.
crates/order-validation/src/banned/cached.rs:125
↓ 3 callersFunctionstream_body_and_gzip
Like [`stream_body`], but also gzips the same serialization in one pass. The first receiver yields the compressed bytes once serialization finishes.
crates/driver/src/infra/solver/streaming/mod.rs:50
↓ 3 callersMethodsurplus_capturing_jit_order_owners
(&self)
crates/driver/src/domain/competition/auction.rs:169
↓ 3 callersFunctionsurplus_over
( trade: &Trade, prices: &ClearingPrices, price_limits: PriceLimits,
crates/autopilot/src/domain/settlement/trade/math.rs:354
↓ 3 callersMethodsurplus_over_limit_price
Uses custom prices to calculate the surplus after the protocol fee and network fee are applied.
crates/autopilot/src/domain/settlement/trade/math.rs:168
↓ 3 callersMethodsurplus_over_limit_price_before_fee
Uses uniform prices to calculate the surplus as if the protocol fee and network fee are not applied.
crates/autopilot/src/domain/settlement/trade/math.rs:175
↓ 3 callersFunctionswap
Bitget pays the taker's buy-mint ATA, so a transfer of `minAmount` moves the output on to the quote's destination and positive slippage stays with the
crates/solana-solvers/src/dex/bitget/dto.rs:135
↓ 3 callersMethodswap
Encodes a pool swap as an interaction. Returns `Err` if the swap parameters are invalid for the pool, specifically if the input and output tokens don'
crates/driver/src/domain/liquidity/swapr.rs:27
↓ 3 callersMethodsymbol
Fetch the ERC20 token symbol. Returns `None` if the token does not implement this optional method. See the symbol method in EIP-20. https://eips.ethe
crates/driver/src/infra/blockchain/token.rs:60
↓ 3 callersFunctiontest_baseline_source
( web3: &Web3, version: &str, source: BaselineSource, token0: Address,
crates/liquidity-sources/src/uniswap_v2/mod.rs:199
↓ 3 callersFunctiontest_order_availability_in_api
( services: &Services<'_>, order: &ExtendedEthFlowOrder, owner: &Address, contracts: &Contract
crates/e2e/tests/e2e/ethflow.rs:689
↓ 3 callersFunctiontest_order_intent
Order intent used by the literal `/solve` request and the settle test. The buy token account is the owner's associated token account, the one the sett
crates/solana-driver/tests/api.rs:52
↓ 3 callersMethodtighten_limit
The limit leg the engine has to beat for its fill to still respect the signed limit once the fee is applied: a sell order's minimum buy rises to `buy
crates/solana-driver/src/domain/solver_fee.rs:76
↓ 3 callersMethodtimed_future
Runs the future and collects runtime metrics.
crates/autopilot/src/solvable_orders.rs:483
↓ 3 callersMethodto_big_rational
(&self)
crates/number/src/u256_ext.rs:137
↓ 3 callersMethodto_high_precision
Converts the fee factor to a high precision scaled integer. For example, 0.00003 -> 30 (with scale of 1_000_000) This allows sub-basis-point precision
crates/configs/src/fee_factor.rs:34
↓ 3 callersMethodto_quote_request
How a user trade intent is converted into a quote request by the frontend
crates/e2e/tests/e2e/ethflow.rs:1044
↓ 3 callersFunctiontoken_2022_account
A Token-2022 account with the given state and the `ImmutableOwner` extension, which every Token-2022 ATA carries.
crates/solana-driver/src/infra/blockchain/accounts.rs:300
↓ 3 callersFunctiontoken_account
A 165-byte SPL token account with the given state.
crates/solana-driver/src/infra/blockchain/accounts.rs:190
↓ 3 callersFunctiontoken_buys
The orders paying out to a token account. A native SOL buy pays out to a wallet, which the payout creates when it is missing.
crates/solana-driver/src/domain/settlement.rs:495
↓ 3 callersMethodtoken_programs
The token program of each of `mints`, see [`Self::mints`].
crates/solana-driver/src/infra/blockchain/mod.rs:267
↓ 3 callersFunctiontokens
(prices: &[(Pubkey, u64)])
crates/solana-solvers/src/domain/solver/mod.rs:1105
← previousnext →1,301–1,400 of 10,749, ranked by callers