Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,747 in github.com/cowprotocol/services
⨍
Functions
10,747
◇
Types & classes
3,488
↓ 1 callers
Method
has_wrappers
Returns `true` if order appData contains non-empty wrappers
crates/app-data/src/app_data.rs:481
↓ 1 callers
Method
has_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 callers
Function
hash
Used to generate deterministic identifiers (e.g., UIDs, addresses) from string descriptions.
crates/autopilot/src/domain/competition/winner_selection.rs:1285
↓ 1 callers
Method
hashSingleOrder
( data: &[u8], )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:7674
↓ 1 callers
Function
hashed_ethsign_message
(domain_separator: &DomainSeparator, struct_hash: &[u8; 32])
crates/model/src/signature.rs:281
↓ 1 callers
Function
header_value
(s: &str)
crates/ethrpc/src/alloy/rpc_headers.rs:171
↓ 1 callers
Function
healthz
(app: axum::Router<()>)
crates/driver/src/infra/api/routes/healthz.rs:7
↓ 1 callers
Function
hex
(bytes: &[u8])
crates/fee-engine/src/order_view/mod.rs:127
↓ 1 callers
Function
hide_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 callers
Method
holders
`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 callers
Method
holds
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 callers
Function
hook_for_transaction
(tx: CallBuilder<&AlloyProvider, D>)
crates/e2e/src/setup/onchain_components/alloy.rs:7
↓ 1 callers
Method
hook_gas
(&self)
crates/shared/src/order_quoting.rs:94
↓ 1 callers
Function
host
Name of a receiver in logs and metrics.
crates/driver/src/infra/config/file/mod.rs:213
↓ 1 callers
Function
i256_exp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:15
↓ 1 callers
Function
i512_to_big_int
(i512: &I512)
crates/number/src/conversions.rs:101
↓ 1 callers
Function
i512_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 callers
Method
ignores_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 callers
Method
in_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 callers
Function
in_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 callers
Function
in_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 callers
Method
includes_delegation
(self)
crates/driver/src/infra/solver/eip7702.rs:225
↓ 1 callers
Method
increase_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 callers
Method
index_until_block
( &self, block: BlockInfo, partially_processed_block: &watch::Sender<u64>, ful
crates/autopilot/src/maintenance.rs:153
↓ 1 callers
Function
indexer_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 callers
Function
indexer_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 callers
Function
info
(app: axum::Router<State>)
crates/driver/src/infra/api/routes/info.rs:3
↓ 1 callers
Function
init
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 callers
Function
init
Setup the observability. The log argument configures the tokio tracing framework.
crates/driver/src/infra/observe/mod.rs:39
↓ 1 callers
Function
init
Setup the metrics registry.
crates/solvers/src/infra/metrics.rs:27
↓ 1 callers
Function
init_liquidity
( eth: &Ethereum, block_retriever: Arc<dyn BlockRetrieving>, config: &infra::liquidity::config::Un
crates/driver/src/boundary/liquidity/uniswap/v3.rs:109
↓ 1 callers
Function
init_liquidity
( eth: &Ethereum, block_stream: &CurrentBlockWatcher, block_retriever: Arc<dyn BlockRetrieving>,
crates/driver/src/boundary/liquidity/balancer/v2/mod.rs:110
↓ 1 callers
Method
initialize
Resets all the counters to 0 so we can always use them in Grafana queries.
crates/orderbook/src/orderbook.rs:128
↓ 1 callers
Function
initialize_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 callers
Function
initialize_observability
(args: &Arguments)
crates/pool-indexer/src/run.rs:141
↓ 1 callers
Method
initialize_pools
(&self)
crates/liquidity-sources/src/balancer_v2/pool_init.rs:18
↓ 1 callers
Method
inject
(&self, request: RequestBuilder)
crates/autopilot/src/infra/solvers/mod.rs:242
↓ 1 callers
Method
inject
(&self, request: RequestBuilder)
crates/autopilot/src/infra/solvers/dto/solve.rs:251
↓ 1 callers
Method
inner
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:55
↓ 1 callers
Method
inputs
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 callers
Function
insert
(ex: &mut PgTransaction<'_>, scores: &[Score])
crates/database/src/reference_scores.rs:17
↓ 1 callers
Function
insert
( ex: &mut PgConnection, auction_id: AuctionId, solver: Address, solution_uid: i64, start_
crates/database/src/settlement_executions.rs:22
↓ 1 callers
Method
insert_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 callers
Function
insert_batch
( ex: &mut PgConnection, fee_policies: impl IntoIterator<Item = FeePolicy>, )
crates/database/src/fee_policies.rs:40
↓ 1 callers
Method
insert_full_app_data
( &self, contract_app_data: &AppDataHash, full_app_data: &str, )
crates/orderbook/src/database/app_data.rs:28
↓ 1 callers
Function
insert_interactions
( ex: &mut PgConnection, order: &OrderUid, interactions: &[Interaction], )
crates/database/src/orders.rs:311
↓ 1 callers
Function
insert_invalidation
( ex: &mut PgConnection, index: &EventIndex, event: &Invalidation, )
crates/database/src/events.rs:93
↓ 1 callers
Method
insert_many
Record every observed `(token, price)`.
crates/driver/src/domain/competition/native_price_cache.rs:34
↓ 1 callers
Function
insert_order_parts_in_db
(db: &mut PgConnection, order_parts: &EthflowOrderParts)
crates/database/src/ethflow_orders.rs:337
↓ 1 callers
Function
insert_pools
( tx: &mut Transaction<'_, Postgres>, factory: &Address, pools: &[NewPoolData], )
crates/pool-indexer/src/db/uniswap_v3.rs:78
↓ 1 callers
Function
insert_quotes
(ex: &mut PgConnection, quotes: &[Quote])
crates/database/src/orders.rs:410
↓ 1 callers
Function
instrument
( estimator: T, name: impl Into<String>, )
crates/price-estimation/src/factory.rs:594
↓ 1 callers
Function
interaction
( interaction: &solution::Interaction, settlement: &Address, )
crates/driver/src/domain/quote.rs:385
↓ 1 callers
Function
interaction_data_from_domain
(interaction_data: &[eth::Interaction])
crates/solvers/src/api/routes/solve/dto/solution.rs:137
↓ 1 callers
Method
into_best_and_rest
(self)
crates/price-estimation/src/lib.rs:273
↓ 1 callers
Method
into_chunk_changes
(self)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1045
↓ 1 callers
Method
into_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 callers
Function
into_domain
( receipt: TransactionReceipt, trace: CallFrame, timestamp: u64, )
crates/autopilot/src/infra/blockchain/mod.rs:173
↓ 1 callers
Function
into_domain
Converts a data transfer object into its domain object representation.
crates/solvers/src/api/routes/solve/dto/auction.rs:13
↓ 1 callers
Method
into_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 callers
Method
into_domain
(self)
crates/autopilot/src/infra/persistence/dto/order.rs:330
↓ 1 callers
Method
into_inner
(self)
crates/driver/src/infra/config/file/mod.rs:495
↓ 1 callers
Method
into_settle_call
(&self)
crates/simulator/src/encoding.rs:78
↓ 1 callers
Method
into_swap
Flatten into execution order (setup, swap, cleanup).
crates/solana-solvers/src/dex/jupiter/dto.rs:85
↓ 1 callers
Method
into_tick_data
(self, pool_address: Address)
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:204
↓ 1 callers
Method
into_underlying
(self)
contracts/generated/contracts-generated/izeroex/src/lib.rs:77
↓ 1 callers
Method
into_underlying
(self)
contracts/generated/contracts-generated/cowswaponchainorders/src/lib.rs:667
↓ 1 callers
Method
into_underlying
(self)
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:2211
↓ 1 callers
Method
into_underlying
(self)
contracts/generated/contracts-generated/balancerqueries/src/lib.rs:77
↓ 1 callers
Method
into_underlying
(self)
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:81
↓ 1 callers
Method
into_underlying
(self)
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:1187
↓ 1 callers
Method
into_underlying
(self)
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:75
↓ 1 callers
Function
invalid
()
crates/driver/src/tests/cases/multiple_solutions.rs:132
↓ 1 callers
Function
invalid_address_returns_400
()
crates/e2e/tests/e2e/pool_indexer.rs:568
↓ 1 callers
Function
invalid_length
()
crates/app-data/src/app_data_hash.rs:149
↓ 1 callers
Method
invalidateOrder
( data: &[u8], )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4313
↓ 1 callers
Method
invalidateOrdersIgnoringNotAllowed
( data: &[u8], )
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:4277
↓ 1 callers
Method
invalidated
Mark order as invalidated on-chain after creation.
crates/e2e/tests/e2e/refunder.rs:158
↓ 1 callers
Method
isSanctioned
( data: &[u8], )
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1283
↓ 1 callers
Method
is_alive
(&self)
crates/orderbook/src/orderbook.rs:788
↓ 1 callers
Method
is_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 callers
Function
is_buy_order_filled
(amount: &BigDecimal, executed_amount: &BigDecimal)
crates/orderbook/src/database/orders.rs:696
↓ 1 callers
Method
is_contract
Check if a smart contract is deployed to the given address.
crates/driver/src/infra/blockchain/mod.rs:187
↓ 1 callers
Method
is_contract_error
(&self)
crates/ethrpc/src/alloy/errors.rs:28
↓ 1 callers
Function
is_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 callers
Function
is_duplicate_record_error
(err: &sqlx::Error)
crates/database/src/orders.rs:277
↓ 1 callers
Function
is_hex
(text: &str)
crates/fee-engine/src/order_view/mod.rs:140
↓ 1 callers
Method
is_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 callers
Method
is_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 callers
Method
is_leader
Whether this instance leads. Always true without a lock.
crates/autopilot-svm/src/leader_lock_tracker.rs:86
↓ 1 callers
Method
is_network_configured
(&self, name: &str)
crates/pool-indexer/src/api/mod.rs:28
↓ 1 callers
Method
is_partial
(&self)
crates/driver/src/domain/competition/order/mod.rs:147
↓ 1 callers
Function
is_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 callers
Function
is_reasonable
(result: &PriceEstimateResult)
crates/price-estimation/src/competition/quote.rs:215
↓ 1 callers
Method
is_revert
Returns whether the error indicates that the original transaction reverted.
crates/driver/src/infra/blockchain/mod.rs:390
↓ 1 callers
Function
is_sell_order_filled
( amount: &BigDecimal, executed_amount: &BigDecimal, executed_fee: &BigDecimal, )
crates/orderbook/src/database/orders.rs:684
↓ 1 callers
Function
is_settlement_trace
(trace: &blockchain::CallFrame, settlement_contract: eth::Address)
crates/autopilot/src/domain/settlement/transaction/mod.rs:241
↓ 1 callers
Function
is_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 callers
Method
is_valid_for_all_pairs
(&self)
crates/balance-overrides/src/approval/mod.rs:165
↓ 1 callers
Method
is_valid_solver
( &self, prospective_solver: eth::Address, block: BlockId, )
crates/autopilot/src/domain/settlement/transaction/mod.rs:28
← previous
next →
3,001–3,100 of 10,747, ranked by callers