MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 1 callersMethodupdate_database_metrics
(&self)
crates/autopilot/src/database/mod.rs:78
↓ 1 callersMethodupdate_events_from_latest_blocks
( &mut self, latest_blocks: &[BlockNumberHash], is_reorg: bool, )
crates/event-indexing/src/event_handler.rs:482
↓ 1 callersMethodupdate_events_from_old_blocks
(&mut self, range: RangeInclusive<u64>)
crates/event-indexing/src/event_handler.rs:407
↓ 1 callersMethodupdate_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 callersFunctionupdate_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 callersMethodupdate_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 callersFunctionupdate_of
(update: UpdateOneof)
crates/solana-indexer/src/indexer/ingester/tests.rs:85
↓ 1 callersMethodupdate_prices_in_background
( &self, client: Client, base_url: Url, api_key: Option<String>, chain
crates/price-estimation/src/native/oneinch.rs:56
↓ 1 callersFunctionupdate_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 callersMethodupload_auction_to_s3
Spawns a background task that uploads the already serialized auction to S3.
crates/autopilot/src/infra/persistence/mod.rs:161
↓ 1 callersFunctionupsert_pool_states
( tx: &mut Transaction<'_, Postgres>, factory: &Address, states: &[PoolStateData], )
crates/pool-indexer/src/db/uniswap_v3.rs:134
↓ 1 callersMethodurl
(&self)
crates/driver/src/tests/setup/blockchain.rs:968
↓ 1 callersMethodurl
Returns a reference to the underlying RPC URL.
crates/autopilot/src/infra/blockchain/mod.rs:58
↓ 1 callersMethodusd_reference_token
(&self)
crates/autopilot/src/domain/penalty_cap.rs:75
↓ 1 callersFunctionuser_orders_with_quote
( ex: &mut PgConnection, min_valid_to: i64, owner: &Address, )
crates/database/src/orders.rs:1091
↓ 1 callersFunctionusers_to_check
(order: &Order)
crates/autopilot/src/solvable_orders.rs:517
↓ 1 callersFunctionv1_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 callersMethodvalid_to
(&self)
crates/database/src/orders.rs:594
↓ 1 callersMethodvalid_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 callersFunctionvalidate
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 callersFunctionvalidate
The checks an order must pass before it is worth quoting.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:847
↓ 1 callersMethodvalidate
Cross-field invariants that cannot be expressed in the serde schema.
crates/configs/src/shared.rs:111
↓ 1 callersFunctionvalidate_orders
Reject mismatched PDAs, expired orders, and fills that violate the solution's clearing prices.
crates/solana-driver/src/domain/settlement.rs:662
↓ 1 callersMethodvalidate_period
Validates an order's timestamp based on additional data.
crates/shared/src/order_validation.rs:1180
↓ 1 callersFunctionvalidate_same_sell_and_buy_token
( policy: &SameTokensPolicy, order: &PreOrderData, native_token: &Address, )
crates/shared/src/order_validation.rs:413
↓ 1 callersMethodvalidate_signature_and_get_additional_gas
( &self, check: SignatureCheck, )
crates/signature-validator/src/simulation.rs:180
↓ 1 callersMethodvalidation
The `validTo` bounds as the API consumes them.
crates/solana-orderbook/src/infra/config.rs:120
↓ 1 callersMethodvariant_fee_apply
( &self, order: &boundary::Order, quote: &domain::Quote, policy: &policy::Poli
crates/autopilot/src/domain/fee/mod.rs:272
↓ 1 callersFunctionvault
(pool: &WeightedProductOrder)
crates/driver/src/boundary/liquidity/balancer/v2/weighted.rs:53
↓ 1 callersFunctionvault
(pool: &StablePoolOrder)
crates/driver/src/boundary/liquidity/balancer/v2/stable.rs:49
↓ 1 callersMethodvault_relayer
(&self)
crates/driver/src/infra/blockchain/contracts.rs:130
↓ 1 callersMethodverified
(&self, verifier: &Arc<dyn TradeVerifying>)
crates/price-estimation/src/factory.rs:589
↓ 1 callersMethodverifier
Settles quotes in simulation, absent when every quote is unverified.
crates/solana-orderbook/src/infra/api/mod.rs:306
↓ 1 callersMethodverify
( &self, query: &PriceQuery, verification: &Verification, trade: TradeKind,
crates/price-estimation/src/trade_verifier.rs:601
↓ 1 callersMethodverify_approval_strategy
( &self, token: Address, owner: Address, spender: Address, strategy: &
crates/balance-overrides/src/approval/mod.rs:353
↓ 1 callersFunctionverify_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 callersMethodverify_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 callersMethodverify_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 callersMethodverify_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 callersMethodversion
(data: &[u8])
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:3646
↓ 1 callersFunctionvolume_fee
Calculate volume fee as a cut of trade volume.
crates/protocol-fees/src/lib.rs:515
↓ 1 callersFunctionvolume_fee
(trade: &Trade, factor: f64)
crates/driver/src/domain/competition/solution/scoring.rs:541
↓ 1 callersFunctionvolume_fee
(trade: &Trade, factor: f64)
crates/autopilot/src/domain/settlement/trade/math.rs:554
↓ 1 callersMethodvolume_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 callersFunctionvolume_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 callersFunctionwait_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 callersFunctionwait_for
(log: &Log, n: usize)
crates/autopilot-svm/src/infra/listen.rs:138
↓ 1 callersFunctionwait_for_block
Waits for the block height to be at least the specified value.
crates/driver/src/tests/setup/blockchain.rs:1005
↓ 1 callersFunctionwait_for_order_indexed
Waits for an order to be indexed by the orderbook service.
crates/e2e/tests/e2e/refunder.rs:45
↓ 1 callersFunctionwait_for_order_settlement
Waits for an order to be settled and indexed in the database.
crates/e2e/tests/e2e/refunder.rs:60
↓ 1 callersMethodwait_for_settlement_transaction
( &self, auction_id: i64, solver: eth::Address, submission_deadline_latest_blo
crates/autopilot/src/settle_call.rs:202
↓ 1 callersMethodwait_inner
(&self, target: SyncTarget)
crates/autopilot/src/maintenance.rs:68
↓ 1 callersMethodwait_until_auction_start
(&self, prev_block: &Option<B256>)
crates/autopilot/src/run_loop.rs:295
↓ 1 callersMethodwait_until_autopilot_ready
(&self)
crates/e2e/src/setup/services.rs:442
↓ 1 callersMethodwait_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 callersMethodwas_successful
(&self)
crates/e2e/src/setup/mod.rs:67
↓ 1 callersMethodweb3
Returns a reference to the underlying web3 client.
crates/autopilot/src/infra/blockchain/mod.rs:53
↓ 1 callersFunctionweb3_client
Builds a web3 client based on the ethrpc args config.
crates/autopilot/src/boundary/mod.rs:32
↓ 1 callersFunctionweight_to_decimal
(weight: liquidity::balancer::v2::weighted::Weight)
crates/driver/src/infra/solver/dto/auction.rs:354
↓ 1 callersMethodwhen
The condition as written.
crates/fee-engine/src/rules.rs:229
↓ 1 callersMethodwinner
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 callersFunctionwinner_voided
Observe that the winning settlement started failing upon arrival of a new block
crates/driver/src/infra/observe/mod.rs:178
↓ 1 callersMethodwinners
All winning solutions.
crates/winner-selection/src/arbitrator.rs:447
↓ 1 callersMethodwinning_order_uids
(&self)
crates/autopilot-svm/src/run_loop.rs:367
↓ 1 callersMethodwinning_order_uids
(&self)
crates/autopilot-svm/src/domain/cycle.rs:75
↓ 1 callersFunctionwire_size
(transaction: &VersionedTransaction)
crates/solana-driver/src/domain/settlement.rs:1387
↓ 1 callersMethodwith_base
This is the format used to pass into smart contracts.
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:57
↓ 1 callersMethodwith_buy_token_balance
(mut self, balance: BuyTokenDestination)
crates/model/src/order.rs:137
↓ 1 callersMethodwith_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 callersMethodwith_cloned_provider
(self)
contracts/generated/contracts-generated/erc20/src/lib.rs:2309
↓ 1 callersMethodwith_creation_date
(mut self, creation_date: DateTime<Utc>)
crates/model/src/order.rs:142
↓ 1 callersFunctionwith_custom_price
(trade: &Trade, custom_price: CustomClearingPrices)
crates/driver/src/domain/competition/solution/scoring.rs:342
↓ 1 callersFunctionwith_default_filters
(custom_filters: impl IntoIterator<Item = T>)
crates/e2e/src/setup/mod.rs:100
↓ 1 callersMethodwith_eip1271
(mut self, owner: Address, signature: Vec<u8>)
crates/model/src/order.rs:163
↓ 1 callersMethodwith_ethflow_index
Select which ethflow contract to use.
crates/e2e/tests/e2e/refunder.rs:164
↓ 1 callersMethodwith_fast_quoter
(mut self, fast_quoter: Arc<dyn OrderQuoting>)
crates/orderbook/src/quoter.rs:111
↓ 1 callersMethodwith_metrics_detector
Enables detection of unsupported tokens based on heuristics.
crates/driver/src/domain/competition/risk_detector/mod.rs:65
↓ 1 callersMethodwith_networks
(mut self, networks: I)
contracts/src/codegen.rs:252
↓ 1 callersMethodwith_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 callersFunctionwith_protocol_fee
( fulfillment: &Fulfillment, prices: ClearingPrices, protocol_fee: &FeePol
crates/driver/src/domain/competition/solution/fee.rs:384
↓ 1 callersMethodwith_protocol_fee
Applies the protocol fee to the existing fulfillment creating a new one.
crates/driver/src/domain/competition/solution/fee.rs:50
↓ 1 callersFunctionwith_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 callersMethodwith_sell_token_balance
(mut self, balance: SellTokenSource)
crates/model/src/order.rs:132
↓ 1 callersMethodwith_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 callersMethodwith_streaming_estimator
( mut self, estimator: Arc<dyn StreamingPriceEstimating>, )
crates/shared/src/order_quoting.rs:641
↓ 1 callersMethodwith_streaming_quoters
( mut self, optimal: Arc<dyn StreamingQuoting>, verified: Arc<dyn StreamingQuoting>,
crates/orderbook/src/quoter.rs:121
↓ 1 callersMethodwith_verified_quoter
(mut self, verified_quoter: Arc<dyn OrderQuoting>)
crates/orderbook/src/quoter.rs:116
↓ 1 callersMethodwith_verifier
(mut self, verifier: Arc<dyn TradeVerifying>)
crates/price-estimation/src/trade_finding/trade_estimator.rs:48
↓ 1 callersMethodwithin_market
Checks if the order is a market order.
crates/model/src/order.rs:258
↓ 1 callersMethodwithout_unsupported_orders
(&self, mut auction: Auction)
crates/driver/src/domain/competition/mod.rs:1054
↓ 1 callersFunctionwords
(overrides: &StateOverride)
crates/simulator/src/state_override_stream.rs:487
↓ 1 callersMethodwrite
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 callersMethodwrite_crate
Write a per-contract crate to the contracts-generated directory.
contracts/src/codegen.rs:351
↓ 1 callersFunctionwrite_decimals_batch
(db: &sqlx::PgPool, entries: &[(Address, i16)])
crates/pool-indexer/src/indexer/uniswap_v3.rs:659
↓ 1 callersFunctionwrite_facade_cargo_toml
Generate the facade crate's Cargo.toml.
contracts/src/codegen.rs:186
↓ 1 callersFunctionwrite_facade_lib
Generate the facade crate's lib.rs file.
contracts/src/codegen.rs:137
↓ 1 callersFunctionwrite_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 callersFunctionwrite_symbols_batch
(db: &sqlx::PgPool, entries: &[(Address, String)])
crates/pool-indexer/src/indexer/uniswap_v3.rs:652
↓ 1 callersFunctionws_order_from_trade
(trade: &super::trade::Trade)
crates/autopilot/src/domain/settlement/mod.rs:452
↓ 1 callersFunctionws_prices_from_auction
(auction: &super::Auction)
crates/autopilot/src/domain/settlement/mod.rs:459
← previousnext →3,901–4,000 of 10,747, ranked by callers