MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,486 in github.com/cowprotocol/services

↓ 3 callersFunctionread_onchain_invalidation
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/onchain_invalidations.rs:75
↓ 3 callersFunctionread_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/onchain_broadcasted_orders.rs:104
↓ 3 callersMethodreceiver
(self, receiver: Option<eth::Address>)
crates/driver/src/tests/setup/mod.rs:304
↓ 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_score
Reduce the solution score by adding additional meaningless calldata.
crates/driver/src/tests/setup/mod.rs:600
↓ 3 callersMethodreference_scores
Reference scores for each winning solver, used to compute rewards.
crates/autopilot/src/domain/competition/winner_selection.rs:267
↓ 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:141
↓ 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 callersFunctionremove_expired_quotes
( ex: &mut PgConnection, max_expiry: DateTime<Utc>, )
crates/database/src/quotes.rs:151
↓ 3 callersFunctionrequest_id
(headers: &HeaderMap<HeaderValue>)
crates/observe/src/tracing/distributed/request_id.rs:36
↓ 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:205
↓ 3 callersMethodreverts_can_get_mined
(&self)
crates/driver/src/infra/mempool/mod.rs:218
↓ 3 callersMethodrpc_args
(mut self, rpc_args: Vec<String>)
crates/driver/src/tests/setup/mod.rs:892
↓ 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:124
↓ 3 callersMethodrun
Starts the server and returns the assigned port number.
crates/e2e/src/api/zeroex.rs:36
↓ 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:281
↓ 3 callersFunctionsell_order_from_quote
(quote: &OrderQuoteResponse)
crates/e2e/tests/e2e/protocol_fee.rs:677
↓ 3 callersMethodsetup
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3478
↓ 3 callersMethodshutdown
Send shutdown signal to the associated Control
crates/autopilot/src/shutdown_controller.rs:65
↓ 3 callersFunctionshutdown_signal
()
crates/observe/src/shutdown.rs:6
↓ 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:38
↓ 3 callersMethodsimulation_gas_price
(&self)
crates/simulator/src/ethereum/mod.rs:54
↓ 3 callersMethodsimulation_solver_address
(&self)
crates/price-estimation/src/trade_finding/mod.rs:93
↓ 3 callersFunctionsol_uid
(n: u8)
crates/winner-selection/src/tests.rs:25
↓ 3 callersFunctionsolvable_orders
( ex: &mut PgConnection, min_valid_to: i64, now: i64, )
crates/database/src/orders.rs:750
↓ 3 callersMethodsolver
The solver which generated this solution.
crates/driver/src/domain/competition/solution/mod.rs:280
↓ 3 callersMethodsolver
Get the solver address.
crates/winner-selection/src/solution.rs:43
↓ 3 callersMethodsolver_determines_fee
Returns `true` if the order expects a solver-computed fee.
crates/solvers/src/domain/order.rs:25
↓ 3 callersMethodspawn_background_task
Spawns task that refreshes the cached balances on every new block.
crates/account-balances/src/cached.rs:115
↓ 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. Optionally specify a solve deadline to use instead of the default 2s. (note: specifying a larger sol
crates/e2e/src/setup/services.rs:162
↓ 3 callersFunctionstart_baseline_solver
( name: String, account: TestAccount, weth: Address, base_tokens: Vec<Address>, max_hops:
crates/e2e/src/setup/colocation.rs:24
↓ 3 callersFunctionstart_driver_with_config_override
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, quote_using
crates/e2e/src/setup/colocation.rs:150
↓ 3 callersMethodstart_protocol_with_args_and_haircut
( &self, autopilot_config: configs::autopilot::Configuration, orderbook_config: config
crates/e2e/src/setup/services.rs:254
↓ 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:1273
↓ 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 callersMethodsum
(iter: I)
crates/eth-domain-types/src/ether.rs:63
↓ 3 callersMethodsurplus_capturing_jit_order_owners
(&self)
crates/driver/src/domain/competition/auction.rs:131
↓ 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:272
↓ 3 callersMethodsurplus_token
(&self)
crates/autopilot/src/domain/settlement/trade/math.rs:387
↓ 3 callersMethodswap
Quote `order` for the settlement signer `taker` and return the swap to run inside the settlement transaction.
crates/solana-solvers/src/dex/jupiter/mod.rs:55
↓ 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:673
↓ 3 callersMethodtimed_future
Runs the future and collects runtime metrics.
crates/autopilot/src/solvable_orders.rs:472
↓ 3 callersMethodto_big_rational
(&self)
crates/number/src/u256_ext.rs:137
↓ 3 callersFunctionto_db_slot
Slots stay far below `i64::MAX`, the conversion to the database's `bigint` is lossless.
crates/solana-indexer/src/persistence.rs:16
↓ 3 callersFunctionto_normalized_price
Convert from floating point price to normalized price
crates/price-estimation/src/native/mod.rs:47
↓ 3 callersMethodto_quote_request
How a user trade intent is converted into a quote request by the frontend
crates/e2e/tests/e2e/ethflow.rs:1030
↓ 3 callersFunctiontrade_from
( row: TradesQueryRow, executed_protocol_fees: Vec<ExecutedProtocolFee>, )
crates/orderbook/src/database/trades.rs:152
↓ 3 callersMethodtrader
(&self)
crates/driver/src/domain/competition/order/mod.rs:140
↓ 3 callersMethodtry_mul_div_floor
(self, mul: Self, div: Self)
crates/chain-types/src/evm.rs:63
↓ 3 callersMethodtry_sub
`self - rhs`, `Negative` when the result would go below zero.
crates/chain-types/src/lib.rs:66
↓ 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:165
↓ 3 callersMethodupdate_cache_at_block
(&self, new_block: u64)
crates/liquidity-sources/src/recent_block_cache.rs:231
↓ 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
Returns a reference to the underlying RPC URL.
crates/autopilot/src/infra/blockchain/mod.rs:58
↓ 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:717
↓ 3 callersMethodwinners
All solutions that won the right to get executed.
crates/autopilot/src/domain/competition/winner_selection.rs:257
↓ 3 callersMethodwith_block_timestamp
(&mut self, timestamp: u32)
crates/refunder/src/traits.rs:99
↓ 3 callersMethodwith_id
Returns `self` with a new id.
crates/solvers/src/domain/solution.rs:32
↓ 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 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:124
↓ 3 callersFunctionwrite_last_block_to_db
(db: &PgPool, last_block: u64, contract: &str)
crates/autopilot/src/boundary/events/mod.rs:8
↓ 2 callersFunctionabsolute_slippage_amount
(relative: &BigRational, amount: &BigInt)
crates/solver/src/liquidity/slippage.rs:191
↓ 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_order
( &self, payload: OrderCreation, )
crates/orderbook/src/orderbook.rs:275
↓ 2 callersFunctionadd_swap_fee_amount
(amount: U256, swap_fee: Bfp)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:30
↓ 2 callersMethodaddress
(&self)
crates/event-indexing/src/event_handler.rs:174
↓ 2 callersFunctionadjustments
(mempools: &[mempool::Config])
crates/driver/src/infra/blockchain/gas.rs:126
↓ 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:137
↓ 2 callersFunctionall_order_events
(ex: &mut PgConnection)
crates/database/src/order_events.rs:254
↓ 2 callersMethodall_trades
(&self)
crates/solver/src/settlement/settlement_encoder.rs:129
↓ 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:1635
↓ 2 callersMethodamplification_parameter_u256
(&self)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:217
↓ 2 callersFunctionappend
( ex: &mut PgTransaction<'_>, events: &[(EventIndex, OnchainOrderPlacement)], )
crates/database/src/onchain_broadcasted_orders.rs:68
↓ 2 callersMethodappend_events
(&mut self, events: Vec<(AlloyUniswapV3PoolEvents, Log)>)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:105
↓ 2 callersMethodappend_to_execution_plan
(&mut self, interaction: Arc<dyn Interaction>)
crates/solver/src/settlement/settlement_encoder.rs:350
↓ 2 callersMethodapply
Converts an order from the boundary layer to the domain layer, applying protocol fees if necessary.
crates/autopilot/src/domain/fee/mod.rs:244
↓ 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:937
↓ 2 callersFunctionapprove
(allowance: &Allowance)
crates/driver/src/domain/competition/solution/encoding.rs:314
↓ 2 callersMethodas_encoded
(&self)
crates/solver/src/interactions/erc20.rs:20
↓ 2 callersMethodas_str
(self)
crates/solana-solvers/src/dex/jupiter/mod.rs:25
↓ 2 callersMethodas_transaction_request
(&self)
crates/simulator/src/simulation_builder.rs:457
↓ 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_volume_fee
( trade: &model::trade::Trade, expected_fee_token: ::alloy::primitives::Address, expected_factor:
crates/e2e/tests/e2e/protocol_fee.rs:1613
↓ 2 callersMethodasset
(data: &[u8])
contracts/generated/contracts-generated/ierc4626/src/lib.rs:435
↓ 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:1193
← previousnext →901–1,000 of 8,486, ranked by callers