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
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
just_stepped_up
Returns true if the last try_acquire call resulted in acquiring the leader lock If the feature is disabled, always returns false
crates/autopilot/src/leader_lock_tracker.rs:82
↓ 1 callers
Method
just_stepped_up
Whether the last `try_acquire` took the lock.
crates/autopilot-svm/src/leader_lock_tracker.rs:74
↓ 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:847
↓ 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:261
↓ 1 callers
Function
lane
(index: u8)
crates/simulator/src/state_override_stream.rs:683
↓ 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
Function
latest_fee_policies_of_order
Returns the fee policies stored for that order in the latest auction it was part of, in application order.
crates/e2e/tests/e2e/database.rs:41
↓ 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:102
↓ 1 callers
Function
legacy_config
The fee policies prod configures, with `volume` as the default volume fee.
crates/autopilot/src/fee_engine.rs:301
↓ 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:2099
↓ 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 quote copy to store under the order: filled when the stored quote matches the order (same pair and side, same fixed amount, unexpired), `None` oth
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:630
↓ 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:537
↓ 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:68
↓ 1 callers
Function
log_competition
(competition: &Competition)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:324
↓ 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:350
↓ 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:317
↓ 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
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:844
↓ 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
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:499
↓ 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:516
↓ 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:672
↓ 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:364
↓ 1 callers
Method
mint_block
(&self)
crates/e2e/src/setup/services.rs:903
↓ 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:832
↓ 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:244
↓ 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
↓ 1 callers
Method
mul_ceil
Multiplies this fee by the given floating point number, rounding up.
crates/eth-domain-types/src/gas.rs:95
↓ 1 callers
Method
multiply_amount
Multiply the sell amount of this order by the given factor.
crates/driver/src/tests/setup/mod.rs:170
↓ 1 callers
Method
multisig_signers
The first `m` signers of the token program multisig at `authority`, enough to sign for it. Empty when `authority` is no multisig.
crates/solana-orderbook/src/infra/verifier.rs:494
↓ 1 callers
Method
name
(&self)
crates/order-validation/src/banned/cached.rs:266
↓ 1 callers
Method
name
(&self)
crates/fee-engine/src/rules.rs:224
↓ 1 callers
Method
name
(&self)
crates/autopilot/src/event_updater.rs:78
↓ 1 callers
Function
names
(evaluation: &Evaluation<'r>)
crates/fee-engine/src/evaluator.rs:257
↓ 1 callers
Function
native_payout_funding
The instructions that fund the native SOL buffer's payouts: check that the payer's wSOL ATA holds the payouts less the `max_shortfall` share, close it
crates/solana-driver/src/domain/settlement.rs:984
↓ 1 callers
Method
native_price_request
(&self, order: &Order)
crates/solvers/src/domain/solver/baseline.rs:307
↓ 1 callers
Method
native_token_price_estimation_amount
(&self)
crates/price-estimation/src/factory.rs:169
← previous
next →
3,101–3,200 of 10,747, ranked by callers