Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,736 in github.com/cowprotocol/services
⨍
Functions
10,736
◇
Types & classes
3,464
↓ 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_same_buy_and_sell_token
Whether an order's sell and buy tokens are effectively the same asset. A native-token buy (`BUY_ETH_ADDRESS`) counts as the wrapped `native_token`, so
crates/shared/src/order_validation.rs:403
↓ 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
↓ 1 callers
Function
jemalloc_stats_report
()
crates/observe/src/heap_dump_handler.rs:219
↓ 1 callers
Method
jit_orders
Check that the solution contains the expected JIT orders.
crates/driver/src/tests/setup/mod.rs:1408
↓ 1 callers
Function
join
Append a path segment to the base URL. `Url::join` is RFC 3986 relative resolution, which drops the base's last path segment unless it ends in a slash
crates/autopilot-svm/src/infra/driver/mod.rs:116
↓ 1 callers
Function
join_url
Join a path with a URL, ensuring that there is only one slash between them.
crates/liquidity-sources/src/zeroex.rs:33
↓ 1 callers
Method
keep_track_of_balances
Tells the cache to continuously update the settlement contract balance of the given tokens if they are already present in the cache. That only really
crates/driver/src/infra/tokens.rs:57
↓ 1 callers
Method
kill
Most reliable way to kill the process. If you get the chance to manually clean up the [`Node`] do it because the [`Drop::drop`] implementation can not
crates/e2e/src/nodes/mod.rs:104
↓ 1 callers
Method
kind_and_amount
Returns the order kind together with the corresponding input amount: the sell amount (before or after fee) for sell orders, and the buy amount after f
crates/model/src/quote.rs:178
↓ 1 callers
Method
label
(self)
crates/solana-orderbook/src/infra/verifier.rs:107
↓ 1 callers
Method
lamports
The lamports at `address`, zero when no account is there.
crates/solana-driver/src/infra/blockchain/accounts.rs:43
↓ 1 callers
Method
land_creations
Land the sponsored creation transactions before the node reaches `deadline_slot`. The settlement needs them confirmed first: `BeginSettle` reads the o
crates/solana-driver/src/domain/competition.rs:866
↓ 1 callers
Method
landed_failure
How a creation the node remembers as processed failed on chain, or `None` when it executed fine. The lookup is at confirmed commitment, so a creation
crates/autopilot-svm/src/infra/sponsor.rs:262
↓ 1 callers
Function
lane
(index: u8)
crates/simulator/src/state_override_stream.rs:666
↓ 1 callers
Function
last_auction_id
The id the autopilot took for its last cut. Read from the id sequence, because a background task archives the auction itself.
crates/e2e/tests/e2e/autopilot_leader.rs:329
↓ 1 callers
Method
last_handled_block
(&self)
crates/event-indexing/src/event_handler.rs:261
↓ 1 callers
Function
last_used_auction_id
(ex: &mut PgConnection)
crates/database/src/auction.rs:23
↓ 1 callers
Method
last_used_auction_id
(&self)
crates/orderbook/src/database/auctions.rs:26
↓ 1 callers
Function
latest_auction_id
(ex: &mut PgConnection)
crates/e2e/tests/e2e/database.rs:114
↓ 1 callers
Method
latest_confirmed_blockhash
The latest confirmed blockhash, the last block height at which it stays usable, and the slot of its block. The method always fetches the blockhash at
crates/cow-solana-rpc/src/lib.rs:171
↓ 1 callers
Method
latest_order_event
(&self, order_uid: &OrderUid)
crates/orderbook/src/database/orders.rs:420
↓ 1 callers
Method
layer
(&self, inner: S)
crates/ethrpc/src/alloy/instrumentation.rs:33
↓ 1 callers
Method
leader
(&self, key: String)
crates/autopilot/src/infra/persistence/mod.rs:101
↓ 1 callers
Method
leader_for
How long the leader acts after sending a ping: 8 s. Postgres closes the session 10 s after it answered, which is later, so the leader stops first.
crates/leader-lock/src/leader_pg_lock.rs:169
↓ 1 callers
Function
legs
(solution: &Solution)
crates/solana-driver/src/domain/protocol_fee.rs:175
↓ 1 callers
Function
lighthouse_memory_creation_tx
A bundle carrying a Lighthouse instruction outside the assertion range: `MemoryWrite`, which funds an account from a payer the template cannot vouch f
crates/solana-orderbook/tests/api.rs:2287
↓ 1 callers
Function
limit_prices_json
The quoted sell/buy amounts, used as the fast-path limit prices.
crates/driver/src/tests/setup/driver.rs:196
↓ 1 callers
Function
limit_to_native
How far `order`'s limit sits inside the native exchange rate: the native value it gives up over the native value its limit accepts, `sell × p_sell / (
crates/solana-solvers/src/domain/solver/mod.rs:317
↓ 1 callers
Method
limited
One aggregator request through the rate limiter, logged under `what`. A request dropped during a back-off counts as rate limited.
crates/solana-solvers/src/domain/solver/mod.rs:247
↓ 1 callers
Function
link_quote
The stored quote `id` names when it matches the order (same pair and side, same fixed amount, unexpired), `None` otherwise. The unfixed side carries t
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:774
↓ 1 callers
Function
liquidity
(config: &config::Config, eth: &Ethereum)
crates/driver/src/run.rs:205
↓ 1 callers
Method
liquidity
(&self)
crates/driver/src/infra/api/mod.rs:225
↓ 1 callers
Method
liquidity_pairs
Returns a collection of liquidity token pairs that are relevant to this auction.
crates/driver/src/domain/competition/auction.rs:137
↓ 1 callers
Function
liquidity_sources
The provider-specific entries under `[liquidity]`. Exactly one side is populated; the other serializes to nothing.
crates/e2e/src/setup/colocation/driver_config.rs:94
↓ 1 callers
Function
liquidity_sources_notifier
( config: &config::Config, eth: &Ethereum, )
crates/driver/src/run.rs:211
↓ 1 callers
Method
list_holders
`mint`'s largest token accounts from the holders node. A lookup that fails, or has no node to ask, lists none until the next one is due.
crates/solana-orderbook/src/infra/verifier.rs:532
↓ 1 callers
Function
list_values
Each list as a CEL map of its members to `true`, hex members lowercased like the order view's. `in`, e.g. `order.sellToken in stablecoins`, is then a
crates/fee-engine/src/rules.rs:419
↓ 1 callers
Function
load
Load the driver configuration from a TOML file for the specifed Ethereum network. # Panics This method panics if the config is invalid or on I/O err
crates/driver/src/infra/config/file/load.rs:28
↓ 1 callers
Function
load
Load the driver configuration from a TOML file. # Panics This method panics if the config is invalid or on I/O errors.
crates/solvers/src/infra/config/baseline.rs:58
↓ 1 callers
Function
load_account
(account: file::Account, chain_id: Option<u64>)
crates/driver/src/infra/config/file/load.rs:367
↓ 1 callers
Function
load_latest
( mut ex: &mut PgConnection, after_block: Option<i64>, )
crates/database/src/solver_competition_v2.rs:97
↓ 1 callers
Function
log
Logs the message in this process' logs and reports it back to the connected socket.
crates/observe/src/tracing/reload_handler.rs:108
↓ 1 callers
Method
log
(self)
crates/fee-engine/src/report.rs:54
↓ 1 callers
Method
log_simulation_command
( &self, tx: TransactionRequest, overrides: StateOverride, block: BlockNo,
crates/simulator/src/tenderly/mod.rs:163
↓ 1 callers
Function
log_simulation_outcome
Logs disagreements (signature pass + simulation revert, or vice versa) and infra errors as warnings. Agreement is silent.
crates/shared/src/order_validation.rs:132
↓ 1 callers
Function
log_simulation_request
( simulation_endpoint: &Url, dashboard: &Url, simulation: dto::Request, )
crates/simulator/src/tenderly/mod.rs:257
↓ 1 callers
Method
maintain
(&self, tokens: &HashSet<Pubkey>)
crates/autopilot-svm/src/infra/prices.rs:374
↓ 1 callers
Function
make_span
Trace context propagation: associate the current span with the OTel trace of the given request, if any and valid.
crates/observe/src/tracing/distributed/axum.rs:22
↓ 1 callers
Function
make_test_json
()
crates/autopilot/src/infra/solvers/dto/solve.rs:482
↓ 1 callers
Method
manual
(&self, name: &str, reason: &str)
contracts/src/vendor.rs:313
↓ 1 callers
Function
many_full_orders_with_quotes
( ex: &'a mut PgConnection, order_ids: &'a [OrderUid], )
crates/database/src/orders.rs:744
↓ 1 callers
Method
map_hits_to_addresses
Maps the reported signatures back to their addresses and records them in the local cache.
crates/order-validation/src/banned/hermod.rs:147
↓ 1 callers
Method
mark_non_vault
Records `token` in the negative cache so subsequent requests skip the RPC probing and delegate straight to the inner estimator.
crates/price-estimation/src/native/eip4626.rs:159
↓ 1 callers
Method
mark_winners
Picks winners and sorts all solutions where winners come before non-winners and higher scores come before lower scores.
crates/winner-selection/src/arbitrator.rs:120
↓ 1 callers
Function
matched
The names of the matched rules, and the fees of the first.
crates/fee-engine/tests/rules.rs:82
↓ 1 callers
Method
max_gas_limit
(&self)
crates/simulator/src/simulation_builder.rs:87
↓ 1 callers
Method
max_network_fee
The most a transaction's network fee comes to under this policy: the budget plus the signature fee.
crates/solana-driver/src/domain/priority_fee.rs:133
↓ 1 callers
Method
max_partner_fee
The cap on an order's partner fees together, as a share of the volume. `None` counts no partner fee.
crates/fee-engine/src/rules.rs:360
↓ 1 callers
Method
max_priority_fee_lamports
The most the transaction could pay in priority fee, in lamports, rounded up. An undeclared limit is priced at the network ceiling.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:993
↓ 1 callers
Function
max_settlement_age
How old (in terms of blocks) a settlement should be, to be considered as a settlement from another environment. Currently set to ~6h
crates/autopilot/src/domain/settlement/mod.rs:300
↓ 1 callers
Method
measure
(self, label: &str)
crates/observe/src/future.rs:12
↓ 1 callers
Method
measure_auction_overhead
(&self, start: Instant, component: &str, phase: &str)
crates/observe/src/metrics.rs:204
↓ 1 callers
Method
measure_upload
Sets whether to log how long the body takes to upload.
crates/autopilot/src/infra/solvers/dto/solve.rs:121
↓ 1 callers
Function
mempool_log
Log a single mempool submission attempt. Called inline from the racing task so that errors from mempools that later get superseded are still visible i
crates/driver/src/infra/observe/mod.rs:380
↓ 1 callers
Function
merge
The instructions of `transactions` in order, each with its [`Origin`].
crates/solana-orderbook/examples/decode_bundle.rs:202
↓ 1 callers
Function
merge
Creates a vector with all possible combinations of the given solutions. The result is sorted descending by score.
crates/driver/src/domain/competition/mod.rs:1125
↓ 1 callers
Method
merge
Merge two access lists together.
crates/eth-domain-types/src/access_list.rs:25
↓ 1 callers
Function
merge_account
Folds `update` into `target`. A frame only ever carries the fields its own venue set, so a field it leaves out means "unchanged", not "cleared" — the
crates/simulator/src/state_override_stream.rs:474
↓ 1 callers
Function
merge_account_override
Merges `new` into `existing` field by field. Returns [`MergeConflict`] if both overrides write the same field. Non-conflicting `state_diff` entries a
crates/simulator/src/encoding.rs:693
↓ 1 callers
Function
merge_tables
Recursively merge two TOML tables
crates/e2e/src/setup/colocation/utils/toml.rs:32
↓ 1 callers
Function
merge_words
(target: &mut Option<B256Map<B256>>, update: Option<B256Map<B256>>)
crates/simulator/src/state_override_stream.rs:491
↓ 1 callers
Function
merged
Observe that two solutions were merged.
crates/driver/src/infra/observe/mod.rs:145
↓ 1 callers
Method
metric_label
(self)
crates/driver/src/domain/mempools.rs:468
↓ 1 callers
Function
metrics
()
crates/solana-orderbook/src/infra/verifier.rs:667
↓ 1 callers
Function
metrics
()
crates/autopilot-svm/src/infra/observer.rs:201
↓ 1 callers
Function
metrics
()
crates/autopilot-svm/src/infra/competition.rs:209
↓ 1 callers
Function
metrics
()
crates/autopilot-svm/src/infra/sponsor.rs:371
↓ 1 callers
Method
mint_block
(&self)
crates/e2e/src/setup/services.rs:895
↓ 1 callers
Function
mint_burn_pool_addresses
Unique addresses with a `Mint` or `Burn` in the chunk. We pre-load their `(tick, liquidity)` so the post-event liquidity can be derived from the in-ev
crates/pool-indexer/src/indexer/uniswap_v3.rs:429
↓ 1 callers
Method
mint_info
The facts of the mint at `mint`, when the account's owner is one of the two token programs and its data reads as an initialized mint.
crates/solana-driver/src/infra/blockchain/accounts.rs:60
↓ 1 callers
Function
mintable_mint_json
An SPL Token mint `authority` can mint more of.
crates/solana-orderbook/tests/api.rs:853
↓ 1 callers
Method
mints
The facts of each of `mints`, or why the mint has none, fetching only the mints missing from the cache. Only resolved mints are cached: a mint that is
crates/solana-driver/src/infra/blockchain/mod.rs:257
↓ 1 callers
Method
missing_from
Orders in `self` which are not in `other` for the same reason.
crates/driver/src/domain/competition/mod.rs:1091
↓ 1 callers
Function
missing_setup_accounts
Collect the mints whose setup accounts must be created before `BeginSettle`. Usable accounts are filtered out. An account in a state the settlement c
crates/solana-driver/src/domain/settlement.rs:564
↓ 1 callers
Function
mock_driver
Serves `/solve` on a local port, recording the request it receives.
crates/autopilot/src/infra/solvers/mod.rs:297
↓ 1 callers
Function
mock_rpc
A mock RPC answering one order-account lookup: an initialized token account of the seeded order's buy mint, its sell token account holding and approvi
crates/autopilot-svm/src/tests.rs:153
↓ 1 callers
Function
mock_rpc_with_signature_statuses
The finalization audit asks for two signatures (the dead letter and the healthy create), both still known to the chain.
crates/solana-indexer/src/indexer/decoder/tests.rs:696
↓ 1 callers
Method
most_recent_auction
(&self)
crates/orderbook/src/database/auctions.rs:10
↓ 1 callers
Function
mounting_solver
Observe that the API routes for a solver are being mounted.
crates/driver/src/infra/observe/mod.rs:312
↓ 1 callers
Method
move_checkpoint_to_future
Moves the checkpoint to the block `latest_block - MAX_REORG_BLOCK_COUNT`
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:383
↓ 1 callers
Method
mul
(self, rhs: f64)
crates/eth-domain-types/src/gas.rs:77
← previous
next →
3,101–3,200 of 10,736, ranked by callers