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
update_database_metrics
(&self)
crates/autopilot/src/database/mod.rs:78
↓ 1 callers
Method
update_events_from_latest_blocks
( &mut self, latest_blocks: &[BlockNumberHash], is_reorg: bool, )
crates/event-indexing/src/event_handler.rs:482
↓ 1 callers
Method
update_events_from_old_blocks
(&mut self, range: RangeInclusive<u64>)
crates/event-indexing/src/event_handler.rs:407
↓ 1 callers
Method
update_filtered_orders
Stores the orders filtered in the current auction and logs how they differ from the previous auction.
crates/driver/src/domain/competition/mod.rs:851
↓ 1 callers
Function
update_liquidity_net
Applies a signed `delta` to a tick's net liquidity, dropping the entry when it cancels out to zero. The accumulated value mirrors the pool's on-chain
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:571
↓ 1 callers
Method
update_metrics
Update per-mempool metrics based on submission outcomes. When a winner exists, `Failed` outcomes are reclassified as `Superseded` since errors are ty
crates/driver/src/domain/mempools.rs:390
↓ 1 callers
Function
update_of
(update: UpdateOneof)
crates/solana-indexer/src/indexer/ingester/tests.rs:85
↓ 1 callers
Method
update_prices_in_background
( &self, client: Client, base_url: Url, api_key: Option<String>, chain
crates/price-estimation/src/native/oneinch.rs:56
↓ 1 callers
Function
update_task
Runs a single cache update cycle whenever a new block arrives until the fetcher is dropped.
crates/driver/src/infra/tokens.rs:85
↓ 1 callers
Method
upload_auction_to_s3
Spawns a background task that uploads the already serialized auction to S3.
crates/autopilot/src/infra/persistence/mod.rs:161
↓ 1 callers
Function
upsert_pool_states
( tx: &mut Transaction<'_, Postgres>, factory: &Address, states: &[PoolStateData], )
crates/pool-indexer/src/db/uniswap_v3.rs:134
↓ 1 callers
Method
url
(&self)
crates/driver/src/tests/setup/blockchain.rs:968
↓ 1 callers
Method
url
Returns a reference to the underlying RPC URL.
crates/autopilot/src/infra/blockchain/mod.rs:58
↓ 1 callers
Method
usd_reference_token
(&self)
crates/autopilot/src/domain/penalty_cap.rs:75
↓ 1 callers
Function
user_orders_with_quote
( ex: &mut PgConnection, min_valid_to: i64, owner: &Address, )
crates/database/src/orders.rs:1091
↓ 1 callers
Function
users_to_check
(order: &Order)
crates/autopilot/src/solvable_orders.rs:517
↓ 1 callers
Function
v1_creation_tx
The sponsored creation as a v1 message: its 5 SOL priority fee sits in the message config, where no compute-budget instruction shows it.
crates/solana-orderbook/tests/api.rs:2047
↓ 1 callers
Method
valid_to
(&self)
crates/database/src/orders.rs:594
↓ 1 callers
Method
valid_to
Returns a UNIX timestamp after which the settlement contract will not allow the order to be settled anymore.
crates/driver/src/domain/competition/order/mod.rs:260
↓ 1 callers
Function
validate
Check the transaction is exactly the sponsored-creation shape and derive the order from it, returning also the `(mint, token program)` pairs the prepa
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:368
↓ 1 callers
Function
validate
The checks an order must pass before it is worth quoting.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:847
↓ 1 callers
Method
validate
Cross-field invariants that cannot be expressed in the serde schema.
crates/configs/src/shared.rs:111
↓ 1 callers
Function
validate_orders
Reject mismatched PDAs, expired orders, and fills that violate the solution's clearing prices.
crates/solana-driver/src/domain/settlement.rs:662
↓ 1 callers
Method
validate_period
Validates an order's timestamp based on additional data.
crates/shared/src/order_validation.rs:1180
↓ 1 callers
Function
validate_same_sell_and_buy_token
( policy: &SameTokensPolicy, order: &PreOrderData, native_token: &Address, )
crates/shared/src/order_validation.rs:413
↓ 1 callers
Method
validate_signature_and_get_additional_gas
( &self, check: SignatureCheck, )
crates/signature-validator/src/simulation.rs:180
↓ 1 callers
Method
validation
The `validTo` bounds as the API consumes them.
crates/solana-orderbook/src/infra/config.rs:120
↓ 1 callers
Method
variant_fee_apply
( &self, order: &boundary::Order, quote: &domain::Quote, policy: &policy::Poli
crates/autopilot/src/domain/fee/mod.rs:272
↓ 1 callers
Function
vault
(pool: &WeightedProductOrder)
crates/driver/src/boundary/liquidity/balancer/v2/weighted.rs:53
↓ 1 callers
Function
vault
(pool: &StablePoolOrder)
crates/driver/src/boundary/liquidity/balancer/v2/stable.rs:49
↓ 1 callers
Method
vault_relayer
(&self)
crates/driver/src/infra/blockchain/contracts.rs:130
↓ 1 callers
Method
verified
(&self, verifier: &Arc<dyn TradeVerifying>)
crates/price-estimation/src/factory.rs:589
↓ 1 callers
Method
verifier
Settles quotes in simulation, absent when every quote is unverified.
crates/solana-orderbook/src/infra/api/mod.rs:306
↓ 1 callers
Method
verify
( &self, query: &PriceQuery, verification: &Verification, trade: TradeKind,
crates/price-estimation/src/trade_verifier.rs:601
↓ 1 callers
Method
verify_approval_strategy
( &self, token: Address, owner: Address, spender: Address, strategy: &
crates/balance-overrides/src/approval/mod.rs:353
↓ 1 callers
Function
verify_deployed_contract_constants
Check that important constants such as the EIP 712 Domain Separator and Order Type Hash used in this binary match the ones on the deployed contract in
crates/orderbook/src/run.rs:618
↓ 1 callers
Method
verify_one
Settle `quote`'s transaction behind the creation of the quoted order and read the fill the program records on the order and what the settlement did to
crates/solana-orderbook/src/infra/verifier.rs:283
↓ 1 callers
Method
verify_owner
Recovers the owner address for the specified domain, and then verifies it matches the expected addresses. Expected addresses can come from two source
crates/model/src/order.rs:382
↓ 1 callers
Method
verify_strategy
Verifies that a strategy controls the balance by writing a sentinel to its slot and reading `balanceOf` back, returning the confirmed strategy. Gener
crates/balance-overrides/src/balance/mod.rs:504
↓ 1 callers
Method
version
(data: &[u8])
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:3646
↓ 1 callers
Function
volume_fee
Calculate volume fee as a cut of trade volume.
crates/protocol-fees/src/lib.rs:515
↓ 1 callers
Function
volume_fee
(trade: &Trade, factor: f64)
crates/driver/src/domain/competition/solution/scoring.rs:541
↓ 1 callers
Function
volume_fee
(trade: &Trade, factor: f64)
crates/autopilot/src/domain/settlement/trade/math.rs:554
↓ 1 callers
Method
volume_fee
The volume protocol fee factor in force at `now`, `None` when no protocol fee is charged.
crates/solana-orderbook/src/infra/api/mod.rs:292
↓ 1 callers
Function
volume_limit
The boundary leg under one volume `factor`, iterated on the fee itself so it matches [`fee_before_settlement`] to the atom. Sell: the least leg whose
crates/protocol-fees/src/lib.rs:336
↓ 1 callers
Function
wait_for
Execute an asynchronous operation, then wait for the next block to be mined before proceeding. [Dev mode geth](https://geth.ethereum.org/docs/develop
crates/driver/src/tests/setup/blockchain.rs:997
↓ 1 callers
Function
wait_for
(log: &Log, n: usize)
crates/autopilot-svm/src/infra/listen.rs:138
↓ 1 callers
Function
wait_for_block
Waits for the block height to be at least the specified value.
crates/driver/src/tests/setup/blockchain.rs:1005
↓ 1 callers
Function
wait_for_order_indexed
Waits for an order to be indexed by the orderbook service.
crates/e2e/tests/e2e/refunder.rs:45
↓ 1 callers
Function
wait_for_order_settlement
Waits for an order to be settled and indexed in the database.
crates/e2e/tests/e2e/refunder.rs:60
↓ 1 callers
Method
wait_for_settlement_transaction
( &self, auction_id: i64, solver: eth::Address, submission_deadline_latest_blo
crates/autopilot/src/settle_call.rs:202
↓ 1 callers
Method
wait_inner
(&self, target: SyncTarget)
crates/autopilot/src/maintenance.rs:68
↓ 1 callers
Method
wait_until_auction_start
(&self, prev_block: &Option<B256>)
crates/autopilot/src/run_loop.rs:295
↓ 1 callers
Method
wait_until_autopilot_ready
(&self)
crates/e2e/src/setup/services.rs:442
↓ 1 callers
Method
wait_until_mined
Watches each new block until the settlement is mined or the deadline passes. The stream must start before the bundles go out, so that no block is miss
crates/driver/src/infra/builders.rs:209
↓ 1 callers
Method
was_successful
(&self)
crates/e2e/src/setup/mod.rs:67
↓ 1 callers
Method
web3
Returns a reference to the underlying web3 client.
crates/autopilot/src/infra/blockchain/mod.rs:53
↓ 1 callers
Function
web3_client
Builds a web3 client based on the ethrpc args config.
crates/autopilot/src/boundary/mod.rs:32
↓ 1 callers
Function
weight_to_decimal
(weight: liquidity::balancer::v2::weighted::Weight)
crates/driver/src/infra/solver/dto/auction.rs:354
↓ 1 callers
Method
when
The condition as written.
crates/fee-engine/src/rules.rs:229
↓ 1 callers
Method
winner
The winning solution. Non-empty by construction of `save_quote_competition`, which bails out when no quotes were produced.
crates/autopilot/src/infra/persistence/mod.rs:1221
↓ 1 callers
Function
winner_voided
Observe that the winning settlement started failing upon arrival of a new block
crates/driver/src/infra/observe/mod.rs:178
↓ 1 callers
Method
winners
All winning solutions.
crates/winner-selection/src/arbitrator.rs:447
↓ 1 callers
Method
winning_order_uids
(&self)
crates/autopilot-svm/src/run_loop.rs:367
↓ 1 callers
Method
winning_order_uids
(&self)
crates/autopilot-svm/src/domain/cycle.rs:75
↓ 1 callers
Function
wire_size
(transaction: &VersionedTransaction)
crates/solana-driver/src/domain/settlement.rs:1387
↓ 1 callers
Method
with_base
This is the format used to pass into smart contracts.
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:57
↓ 1 callers
Method
with_buy_token_balance
(mut self, balance: BuyTokenDestination)
crates/model/src/order.rs:137
↓ 1 callers
Method
with_call_overhead
Adjusts the reported gas cost since the simulation measurement does not take into account the 21K units every tx has to pay and the cost for the calld
crates/price-estimation/src/trade_verifier.rs:787
↓ 1 callers
Method
with_cloned_provider
(self)
contracts/generated/contracts-generated/erc20/src/lib.rs:2309
↓ 1 callers
Method
with_creation_date
(mut self, creation_date: DateTime<Utc>)
crates/model/src/order.rs:142
↓ 1 callers
Function
with_custom_price
(trade: &Trade, custom_price: CustomClearingPrices)
crates/driver/src/domain/competition/solution/scoring.rs:342
↓ 1 callers
Function
with_default_filters
(custom_filters: impl IntoIterator<Item = T>)
crates/e2e/src/setup/mod.rs:100
↓ 1 callers
Method
with_eip1271
(mut self, owner: Address, signature: Vec<u8>)
crates/model/src/order.rs:163
↓ 1 callers
Method
with_ethflow_index
Select which ethflow contract to use.
crates/e2e/tests/e2e/refunder.rs:164
↓ 1 callers
Method
with_fast_quoter
(mut self, fast_quoter: Arc<dyn OrderQuoting>)
crates/orderbook/src/quoter.rs:111
↓ 1 callers
Method
with_metrics_detector
Enables detection of unsupported tokens based on heuristics.
crates/driver/src/domain/competition/risk_detector/mod.rs:65
↓ 1 callers
Method
with_networks
(mut self, networks: I)
contracts/src/codegen.rs:252
↓ 1 callers
Method
with_overrides
Queues [`AccountOverrideRequest`]s to be resolved and applied during [`build`](Self::build). Multiple requests may target the same address and will be
crates/simulator/src/simulation_builder.rs:315
↓ 1 callers
Function
with_protocol_fee
( fulfillment: &Fulfillment, prices: ClearingPrices, protocol_fee: &FeePol
crates/driver/src/domain/competition/solution/fee.rs:384
↓ 1 callers
Method
with_protocol_fee
Applies the protocol fee to the existing fulfillment creating a new one.
crates/driver/src/domain/competition/solution/fee.rs:50
↓ 1 callers
Function
with_request_id
Stamps the tracing request id header, mirroring what [`TracingRequestIdService`] does before the batching layer.
crates/ethrpc/src/alloy/rpc_headers.rs:190
↓ 1 callers
Method
with_sell_token_balance
(mut self, balance: SellTokenSource)
crates/model/src/order.rs:132
↓ 1 callers
Method
with_shift
Sets the packing shift on a balance strategy. No-op for `AaveV3AToken` and `NativeEth`, which are never packed.
crates/balance-overrides/src/balance/mod.rs:227
↓ 1 callers
Method
with_streaming_estimator
( mut self, estimator: Arc<dyn StreamingPriceEstimating>, )
crates/shared/src/order_quoting.rs:641
↓ 1 callers
Method
with_streaming_quoters
( mut self, optimal: Arc<dyn StreamingQuoting>, verified: Arc<dyn StreamingQuoting>,
crates/orderbook/src/quoter.rs:121
↓ 1 callers
Method
with_verified_quoter
(mut self, verified_quoter: Arc<dyn OrderQuoting>)
crates/orderbook/src/quoter.rs:116
↓ 1 callers
Method
with_verifier
(mut self, verifier: Arc<dyn TradeVerifying>)
crates/price-estimation/src/trade_finding/trade_estimator.rs:48
↓ 1 callers
Method
within_market
Checks if the order is a market order.
crates/model/src/order.rs:258
↓ 1 callers
Method
without_unsupported_orders
(&self, mut auction: Auction)
crates/driver/src/domain/competition/mod.rs:1054
↓ 1 callers
Function
words
(overrides: &StateOverride)
crates/simulator/src/state_override_stream.rs:487
↓ 1 callers
Method
write
Writes `timestamp` (unix seconds) into `field` in this unit. Sub-second precision is dropped, because the only thing the venue can compare against is
crates/simulator/src/state_override_stream.rs:84
↓ 1 callers
Method
write_crate
Write a per-contract crate to the contracts-generated directory.
contracts/src/codegen.rs:351
↓ 1 callers
Function
write_decimals_batch
(db: &sqlx::PgPool, entries: &[(Address, i16)])
crates/pool-indexer/src/indexer/uniswap_v3.rs:659
↓ 1 callers
Function
write_facade_cargo_toml
Generate the facade crate's Cargo.toml.
contracts/src/codegen.rs:186
↓ 1 callers
Function
write_facade_lib
Generate the facade crate's lib.rs file.
contracts/src/codegen.rs:137
↓ 1 callers
Function
write_jemalloc_stats
Streams a JSON report of jemalloc's internal counters. `allocated` tracks the live application bytes (what the heap profile samples), while `resident`
crates/observe/src/heap_dump_handler.rs:182
↓ 1 callers
Function
write_symbols_batch
(db: &sqlx::PgPool, entries: &[(Address, String)])
crates/pool-indexer/src/indexer/uniswap_v3.rs:652
↓ 1 callers
Function
ws_order_from_trade
(trade: &super::trade::Trade)
crates/autopilot/src/domain/settlement/mod.rs:452
↓ 1 callers
Function
ws_prices_from_auction
(auction: &super::Auction)
crates/autopilot/src/domain/settlement/mod.rs:459
← previous
next →
3,901–4,000 of 10,747, ranked by callers