MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 1 callersMethodhas_wrappers
Returns `true` if order appData contains non-empty wrappers
crates/app-data/src/app_data.rs:481
↓ 1 callersMethodhas_zero_leg
Whether a leg scaled down to nothing. The program only accepts a fill moving zero on that side, so no engine can fill the order.
crates/solana-driver/src/domain/auction.rs:382
↓ 1 callersFunctionhash
Used to generate deterministic identifiers (e.g., UIDs, addresses) from string descriptions.
crates/autopilot/src/domain/competition/winner_selection.rs:1285
↓ 1 callersMethodhashSingleOrder
( data: &[u8], )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:7674
↓ 1 callersFunctionhashed_ethsign_message
(domain_separator: &DomainSeparator, struct_hash: &[u8; 32])
crates/model/src/signature.rs:281
↓ 1 callersFunctionheader_value
(s: &str)
crates/ethrpc/src/alloy/rpc_headers.rs:171
↓ 1 callersFunctionhealthz
(app: axum::Router<()>)
crates/driver/src/infra/api/routes/healthz.rs:7
↓ 1 callersFunctionhex
(bytes: &[u8])
crates/fee-engine/src/order_view/mod.rs:127
↓ 1 callersFunctionhide_quote_until_filled
Only reveals the quote of orders that have been at least partially filled. That is enough for solvers to audit quote rewards but prevents them from pl
crates/orderbook/src/orderbook.rs:798
↓ 1 callersMethodholders
`mint`'s largest unfrozen, wallet-owned holders and their balances, largest first. They are looked up again when none holds `needed` and the lookup is
crates/solana-orderbook/src/infra/verifier.rs:524
↓ 1 callersMethodholds
Whether `field` (exactly `width()` bytes, big-endian) holds `stamp`. Makers stamp milliseconds with sub-second precision, so for that unit any instan
crates/simulator/src/state_override_stream.rs:69
↓ 1 callersFunctionhook_for_transaction
(tx: CallBuilder<&AlloyProvider, D>)
crates/e2e/src/setup/onchain_components/alloy.rs:7
↓ 1 callersMethodhook_gas
(&self)
crates/shared/src/order_quoting.rs:94
↓ 1 callersFunctionhost
Name of a receiver in logs and metrics.
crates/driver/src/infra/config/file/mod.rs:213
↓ 1 callersFunctioni256_exp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:15
↓ 1 callersFunctioni512_to_big_int
(i512: &I512)
crates/number/src/conversions.rs:101
↓ 1 callersFunctioni512_to_u256
TODO: Figure out a nicer way to convert I512 to U256, as a follow-up task
crates/number/src/conversions.rs:116
↓ 1 callersMethodignores_legacy_checks_for
Whether a passing simulation may accept this order despite failing legacy checks: it must carry a flashloan hint from an allowlisted lender.
crates/shared/src/order_validation.rs:122
↓ 1 callersMethodin_given_out
Use the Uniswap constant AMM formula to calculate the input amount based on the output.
crates/driver/src/tests/setup/blockchain.rs:99
↓ 1 callersFunctionin_market
Whether the order's limit sits within its quote: the quote buys at least the limit's rate. The EVM `is_order_outside_market_price` check with the quot
crates/autopilot-svm/src/domain/fee.rs:92
↓ 1 callersFunctionin_token
What `lamports` are worth in the token priced at `price`, rounded up. `None` past `u64::MAX`.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:620
↓ 1 callersMethodincludes_delegation
(self)
crates/driver/src/infra/solver/eip7702.rs:225
↓ 1 callersMethodincrease_next_try
Adjusts the next fill amount that should be tried. Doubles the amount to try. This is useful in case the onchain liquidity changed and now allows for
crates/solvers/src/domain/solver/dex/fills.rs:150
↓ 1 callersMethodindex_until_block
( &self, block: BlockInfo, partially_processed_block: &watch::Sender<u64>, ful
crates/autopilot/src/maintenance.rs:153
↓ 1 callersFunctionindexer_lags
Whether the indexer's processed slot trails the tip beyond the allowed lag. A missing slot means the indexer never wrote, which counts as maximal lag.
crates/autopilot-svm/src/infra/provider.rs:454
↓ 1 callersFunctionindexer_pass_snapshot
One full indexer lifecycle (start → wait for head → snapshot → stop). Two calls in sequence over the same DB are how `checkpoint_resume` proves the re
crates/e2e/tests/e2e/pool_indexer.rs:529
↓ 1 callersFunctioninfo
(app: axum::Router<State>)
crates/driver/src/infra/api/routes/info.rs:3
↓ 1 callersFunctioninit
Observability for the Solana orderbook, built on the shared `observe` crate. Set up the observability. The `obs_config` argument configures the tokio
crates/solana-orderbook/src/infra/observe/mod.rs:6
↓ 1 callersFunctioninit
Setup the observability. The log argument configures the tokio tracing framework.
crates/driver/src/infra/observe/mod.rs:39
↓ 1 callersFunctioninit
Setup the metrics registry.
crates/solvers/src/infra/metrics.rs:27
↓ 1 callersFunctioninit_liquidity
( eth: &Ethereum, block_retriever: Arc<dyn BlockRetrieving>, config: &infra::liquidity::config::Un
crates/driver/src/boundary/liquidity/uniswap/v3.rs:109
↓ 1 callersFunctioninit_liquidity
( eth: &Ethereum, block_stream: &CurrentBlockWatcher, block_retriever: Arc<dyn BlockRetrieving>,
crates/driver/src/boundary/liquidity/balancer/v2/mod.rs:110
↓ 1 callersMethodinitialize
Resets all the counters to 0 so we can always use them in Grafana queries.
crates/orderbook/src/orderbook.rs:128
↓ 1 callersFunctioninitialize_metrics
Create every placement series at zero, so a query over one reads 0 instead of no data before its first order.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:734
↓ 1 callersFunctioninitialize_observability
(args: &Arguments)
crates/pool-indexer/src/run.rs:141
↓ 1 callersMethodinitialize_pools
(&self)
crates/liquidity-sources/src/balancer_v2/pool_init.rs:18
↓ 1 callersMethodinject
(&self, request: RequestBuilder)
crates/autopilot/src/infra/solvers/mod.rs:242
↓ 1 callersMethodinject
(&self, request: RequestBuilder)
crates/autopilot/src/infra/solvers/dto/solve.rs:251
↓ 1 callersMethodinner
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:55
↓ 1 callersMethodinputs
The assets consumed by this interaction. These assets are taken from the settlement contract when the interaction executes.
crates/driver/src/domain/competition/solution/interaction.rs:27
↓ 1 callersFunctioninsert
(ex: &mut PgTransaction<'_>, scores: &[Score])
crates/database/src/reference_scores.rs:17
↓ 1 callersFunctioninsert
( ex: &mut PgConnection, auction_id: AuctionId, solver: Address, solution_uid: i64, start_
crates/database/src/settlement_executions.rs:22
↓ 1 callersMethodinsert_balance
Only inserts new balances. This should always be used when we needed to fetch a balance because it was requested by a backend component.
crates/account-balances/src/cached.rs:49
↓ 1 callersFunctioninsert_batch
( ex: &mut PgConnection, fee_policies: impl IntoIterator<Item = FeePolicy>, )
crates/database/src/fee_policies.rs:40
↓ 1 callersMethodinsert_full_app_data
( &self, contract_app_data: &AppDataHash, full_app_data: &str, )
crates/orderbook/src/database/app_data.rs:28
↓ 1 callersFunctioninsert_interactions
( ex: &mut PgConnection, order: &OrderUid, interactions: &[Interaction], )
crates/database/src/orders.rs:311
↓ 1 callersFunctioninsert_invalidation
( ex: &mut PgConnection, index: &EventIndex, event: &Invalidation, )
crates/database/src/events.rs:93
↓ 1 callersMethodinsert_many
Record every observed `(token, price)`.
crates/driver/src/domain/competition/native_price_cache.rs:34
↓ 1 callersFunctioninsert_order_parts_in_db
(db: &mut PgConnection, order_parts: &EthflowOrderParts)
crates/database/src/ethflow_orders.rs:337
↓ 1 callersFunctioninsert_pools
( tx: &mut Transaction<'_, Postgres>, factory: &Address, pools: &[NewPoolData], )
crates/pool-indexer/src/db/uniswap_v3.rs:78
↓ 1 callersFunctioninsert_quotes
(ex: &mut PgConnection, quotes: &[Quote])
crates/database/src/orders.rs:410
↓ 1 callersFunctioninstrument
( estimator: T, name: impl Into<String>, )
crates/price-estimation/src/factory.rs:594
↓ 1 callersFunctioninteraction
( interaction: &solution::Interaction, settlement: &Address, )
crates/driver/src/domain/quote.rs:385
↓ 1 callersFunctioninteraction_data_from_domain
(interaction_data: &[eth::Interaction])
crates/solvers/src/api/routes/solve/dto/solution.rs:137
↓ 1 callersMethodinto_best_and_rest
(self)
crates/price-estimation/src/lib.rs:273
↓ 1 callersMethodinto_chunk_changes
(self)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1045
↓ 1 callersMethodinto_dex_solution
Creates a full solution for a single order solution given gas and sell token prices. Computes the fee internally from the gas parameters.
crates/solvers/src/domain/solution.rs:201
↓ 1 callersFunctioninto_domain
( receipt: TransactionReceipt, trace: CallFrame, timestamp: u64, )
crates/autopilot/src/infra/blockchain/mod.rs:173
↓ 1 callersFunctioninto_domain
Converts a data transfer object into its domain object representation.
crates/solvers/src/api/routes/solve/dto/auction.rs:13
↓ 1 callersMethodinto_domain
( self, eth: &Ethereum, tokens: &tokens::Fetcher, app_data: HashMap<Arc<AppDat
crates/driver/src/infra/api/routes/solve/dto/solve_request.rs:31
↓ 1 callersMethodinto_domain
(self)
crates/autopilot/src/infra/persistence/dto/order.rs:330
↓ 1 callersMethodinto_inner
(self)
crates/driver/src/infra/config/file/mod.rs:495
↓ 1 callersMethodinto_settle_call
(&self)
crates/simulator/src/encoding.rs:78
↓ 1 callersMethodinto_swap
Flatten into execution order (setup, swap, cleanup).
crates/solana-solvers/src/dex/jupiter/dto.rs:85
↓ 1 callersMethodinto_tick_data
(self, pool_address: Address)
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:204
↓ 1 callersMethodinto_underlying
(self)
contracts/generated/contracts-generated/izeroex/src/lib.rs:77
↓ 1 callersMethodinto_underlying
(self)
contracts/generated/contracts-generated/cowswaponchainorders/src/lib.rs:667
↓ 1 callersMethodinto_underlying
(self)
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:2211
↓ 1 callersMethodinto_underlying
(self)
contracts/generated/contracts-generated/balancerqueries/src/lib.rs:77
↓ 1 callersMethodinto_underlying
(self)
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:81
↓ 1 callersMethodinto_underlying
(self)
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:1187
↓ 1 callersMethodinto_underlying
(self)
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:75
↓ 1 callersFunctioninvalid
()
crates/driver/src/tests/cases/multiple_solutions.rs:132
↓ 1 callersFunctioninvalid_address_returns_400
()
crates/e2e/tests/e2e/pool_indexer.rs:568
↓ 1 callersFunctioninvalid_length
()
crates/app-data/src/app_data_hash.rs:149
↓ 1 callersMethodinvalidateOrder
( data: &[u8], )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4313
↓ 1 callersMethodinvalidateOrdersIgnoringNotAllowed
( data: &[u8], )
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:4277
↓ 1 callersMethodinvalidated
Mark order as invalidated on-chain after creation.
crates/e2e/tests/e2e/refunder.rs:158
↓ 1 callersMethodisSanctioned
( data: &[u8], )
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1283
↓ 1 callersMethodis_alive
(&self)
crates/orderbook/src/orderbook.rs:788
↓ 1 callersMethodis_blockhash_valid_at_processed
Whether the blockhash is still usable for a new transaction at processed commitment, which includes slots the node has not confirmed.
crates/cow-solana-rpc/src/lib.rs:391
↓ 1 callersFunctionis_buy_order_filled
(amount: &BigDecimal, executed_amount: &BigDecimal)
crates/orderbook/src/database/orders.rs:696
↓ 1 callersMethodis_contract
Check if a smart contract is deployed to the given address.
crates/driver/src/infra/blockchain/mod.rs:187
↓ 1 callersMethodis_contract_error
(&self)
crates/ethrpc/src/alloy/errors.rs:28
↓ 1 callersFunctionis_delegated_to
Check whether the account's code is an EIP-7702 delegation to `expected_delegate`.
crates/driver/src/infra/solver/eip7702.rs:365
↓ 1 callersFunctionis_duplicate_record_error
(err: &sqlx::Error)
crates/database/src/orders.rs:277
↓ 1 callersFunctionis_hex
(text: &str)
crates/fee-engine/src/order_view/mod.rs:140
↓ 1 callersMethodis_invalid
A wrapper is invalid if it isn't an authorized solver since only those may call `settle()`. Being authorized isn't sufficient though: solvers' submiss
crates/order-validation/src/wrappers.rs:53
↓ 1 callersMethodis_leader
Returns true if the leader lock is being held If the feature is disabled, always returns true
crates/autopilot/src/leader_lock_tracker.rs:95
↓ 1 callersMethodis_leader
Whether this instance leads. Always true without a lock.
crates/autopilot-svm/src/leader_lock_tracker.rs:86
↓ 1 callersMethodis_network_configured
(&self, name: &str)
crates/pool-indexer/src/api/mod.rs:28
↓ 1 callersMethodis_partial
(&self)
crates/driver/src/domain/competition/order/mod.rs:147
↓ 1 callersFunctionis_range_too_large
True if the server-side JSON-RPC payload rejected `eth_getLogs` for being too wide / returning too many logs / exceeding a response-size cap / hitting
crates/pool-indexer/src/indexer/uniswap_v3.rs:685
↓ 1 callersFunctionis_reasonable
(result: &PriceEstimateResult)
crates/price-estimation/src/competition/quote.rs:215
↓ 1 callersMethodis_revert
Returns whether the error indicates that the original transaction reverted.
crates/driver/src/infra/blockchain/mod.rs:390
↓ 1 callersFunctionis_sell_order_filled
( amount: &BigDecimal, executed_amount: &BigDecimal, executed_fee: &BigDecimal, )
crates/orderbook/src/database/orders.rs:684
↓ 1 callersFunctionis_settlement_trace
(trace: &blockchain::CallFrame, settlement_contract: eth::Address)
crates/autopilot/src/domain/settlement/transaction/mod.rs:241
↓ 1 callersFunctionis_token_program
Whether `program` is one of the two token programs, classic SPL or Token-2022.
crates/solana-orderbook/src/infra/api/routes/mint.rs:17
↓ 1 callersMethodis_valid_for_all_pairs
(&self)
crates/balance-overrides/src/approval/mod.rs:165
↓ 1 callersMethodis_valid_solver
( &self, prospective_solver: eth::Address, block: BlockId, )
crates/autopilot/src/domain/settlement/transaction/mod.rs:28
← previousnext →3,001–3,100 of 10,747, ranked by callers