MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 2 callersFunctionsolver_with
( addr: SocketAddr, fee_handler: FeeHandler, solver_fee_bps: u16, )
crates/solana-driver/tests/api.rs:218
↓ 2 callersFunctionsort_orders
Sort orders based on the provided comparators. Reverse ordering is used to ensure that the most important element comes first.
crates/driver/src/domain/competition/sorting.rs:133
↓ 2 callersFunctionspawn_api
(api: Api)
crates/solana-driver/tests/api.rs:170
↓ 2 callersFunctionspawn_mock_driver
Spawns a driver stand-in that records the `/quote` query strings it receives, answers every request with the same legacy quote after a short delay (so
crates/price-estimation/src/trade_finding/external.rs:348
↓ 2 callersFunctionspawn_mock_driver_after
Like [`spawn_mock_driver`], answering after `delay`.
crates/solana-orderbook/tests/api.rs:108
↓ 2 callersFunctionspawn_pipeline
An ingester and decoder over a live channel, so a test can interleave sends with database assertions. Dropping the sender ends the ingester with the s
crates/solana-indexer/src/indexer/decoder/tests.rs:348
↓ 2 callersFunctionsponsored_creation_tx
A sponsored creation transaction with an arbitrary SPL sell and no preparation steps in front of `CreateOrder`.
crates/solana-orderbook/tests/api.rs:2011
↓ 2 callersFunctionsponsored_solve_request
The standard solve request with its order not created on chain yet, so it carries the owner-signed creation transaction.
crates/solana-driver/tests/api.rs:377
↓ 2 callersFunctionstamp_fields
The fields of `word` holding `stamp`, as (offset, unit) pairs. We never match both units, since the same timestamp (base 10) interpreted in seconds a
crates/simulator/src/state_override_stream.rs:97
↓ 2 callersMethodstate
(&self)
crates/autopilot/src/domain/competition/bid.rs:51
↓ 2 callersFunctionstatus
A full fill on the order's own side wins, then cancellation, then expiry. Fulfilled must beat cancelled: reclaiming a filled order's PDA to recover re
crates/solana-orderbook/src/infra/api/routes/order/dto.rs:129
↓ 2 callersFunctionstore_detached
Append the events off the caller's path: a failed write is logged, not returned.
crates/autopilot-svm/src/infra/order_events.rs:19
↓ 2 callersMethodstore_events
Store the events without blocking the cycle: a lost event degrades the status endpoint, never the competition.
crates/autopilot-svm/src/infra/observer.rs:43
↓ 2 callersMethodstore_mut
(&mut self)
crates/event-indexing/src/event_handler.rs:257
↓ 2 callersMethodstore_order_events_owned
( &self, items: I, convert: F, label: boundary::OrderEventLabel, reaso
crates/autopilot/src/infra/persistence/mod.rs:268
↓ 2 callersFunctionstream_body
Serializes `value` to JSON on a blocking thread, streaming it into the returned reqwest body. Backpressure from the body channel caps memory.
crates/driver/src/infra/solver/streaming/mod.rs:41
↓ 2 callersFunctionstream_into
Serializes `value` into a tee of the body channel and `secondary` on a blocking thread, then finalizes each sink. Serialization always runs to complet
crates/driver/src/infra/solver/streaming/mod.rs:70
↓ 2 callersMethodsubmit
( &self, mempool: &infra::mempool::Mempool, settlement: &EncodedSettlement, su
crates/driver/src/domain/mempools.rs:72
↓ 2 callersFunctionsubtract_swap_fee_amount
(amount: U256, swap_fee: Bfp)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:36
↓ 2 callersFunctionsurplus_over
Calculate surplus over arbitrary price limits.
crates/protocol-fees/src/lib.rs:387
↓ 2 callersFunctionsurplus_over
( trade: &Trade, price_limits: PriceLimits, )
crates/driver/src/domain/competition/solution/scoring.rs:349
↓ 2 callersFunctionsurplus_over_limit_price
Calculate surplus over limit price using custom clearing prices.
crates/protocol-fees/src/lib.rs:372
↓ 2 callersFunctionsurplus_over_limit_price
(trade: &Trade)
crates/autopilot/src/domain/settlement/trade/math.rs:386
↓ 2 callersMethodswap
Build the swap for `quote` that the settlement signer `taker` executes inside the settlement transaction: one `/swap-instructions` request, at the quo
crates/solana-solvers/src/dex/jupiter/mod.rs:69
↓ 2 callersMethodswap_with_bpt
Comes from `_swapWithBpt`: https://etherscan.io/address/0xf9ac7B9dF2b3454E841110CcE5550bD5AC6f875F#code#F2#L301
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:280
↓ 2 callersMethodsync
Waits for the next tip and brings the order caches up to it.
crates/autopilot-svm/src/run_loop.rs:241
↓ 2 callersFunctiontest_order
(uid_byte: u8, executed: u64)
crates/autopilot/src/infra/solvers/dto/solve.rs:646
↓ 2 callersFunctiontest_order_parameters
( response: &Order, order: &ExtendedEthFlowOrder, owner: &Address, contracts: &Contracts,
crates/e2e/tests/e2e/ethflow.rs:828
↓ 2 callersFunctiontest_submit_quote
( services: &Services<'_>, quote: &OrderQuoteRequest, )
crates/e2e/tests/e2e/ethflow.rs:639
↓ 2 callersFunctiontime_evaluation
Runs `evaluate`, the decision of `source` on one order, and records the time it took.
crates/fee-engine/src/report.rs:188
↓ 2 callersMethodtimer
(&'a self, labels: &'a [&'a str])
crates/pool-indexer/src/metrics.rs:68
↓ 2 callersFunctiontimestamp_of_block_in_seconds
( provider: &AlloyProvider, block_number: BlockNumberOrTag, )
crates/ethrpc/src/block_stream.rs:293
↓ 2 callersFunctionto_amount
Token amounts are `numeric(20,0)` in the database, u64 on chain.
crates/autopilot-svm/src/infra/db.rs:769
↓ 2 callersMethodto_cow_swap_order
( &self, ethflow_contract: &CoWSwapEthFlow::Instance, weth: &WETH9::Instance, )
crates/e2e/tests/e2e/ethflow.rs:889
↓ 2 callersFunctionto_crate_name
Convert a PascalCase contract name to a kebab-case crate name.
contracts/src/codegen.rs:52
↓ 2 callersFunctionto_db_instruction_index
A transaction holds far fewer instructions than `i32::MAX`.
crates/solana-indexer/src/persistence.rs:30
↓ 2 callersFunctionto_dir_name
Convert a contract name to a directory name under contracts-generated/.
contracts/src/codegen.rs:57
↓ 2 callersFunctionto_domain
(order: Order)
crates/autopilot/src/infra/persistence/dto/order.rs:100
↓ 2 callersFunctionto_domain
( order: &model::order::Order, protocol_fees: Vec<domain::fee::PolicyWithOrigin>, quote: Option<do
crates/autopilot/src/boundary/order.rs:3
↓ 2 callersMethodto_domain
One receiver for each URL, named after the URL host.
crates/driver/src/infra/config/file/mod.rs:171
↓ 2 callersFunctionto_domain_pool
( pool: ConstantProductOrder, )
crates/driver/src/boundary/liquidity/uniswap/v2.rs:59
↓ 2 callersFunctionto_native_xrate
Converts a token price from the orderbook API `/auction` endpoint to an native token exchange rate.
crates/shared/src/external_prices.rs:84
↓ 2 callersFunctionto_normalized_price
(price: f64)
crates/solvers/src/domain/solver/baseline.rs:337
↓ 2 callersMethodto_order_record
( &self, chain_id: u64, verifying_contract: Address, signer: TestAccount,
crates/e2e/src/api/zeroex.rs:96
↓ 2 callersMethodto_price_query
( &self, default_quote_timeout: std::time::Duration, max_quote_timeout: std::time::Dur
crates/shared/src/order_quoting.rs:63
↓ 2 callersMethodto_tenderly_request
Converts the simulation into a request that can be simulated with tenderly.
crates/simulator/src/simulation_builder.rs:543
↓ 2 callersFunctiontoken_2022_account
An initialized Token-2022 account of `mint` with the `extensions`, whose values `init` sets.
crates/solana-testlib/src/lib.rs:73
↓ 2 callersFunctiontoken_2022_ata_len
(mint_extensions: &[ExtensionType])
crates/solana-token/src/lib.rs:250
↓ 2 callersFunctiontoken_account
(mint: &Pubkey, owner: &Pubkey, state: AccountState)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:946
↓ 2 callersFunctiontoken_mints
The mints an order moves: the sell mint, and the buy mint unless the order buys native SOL.
crates/solana-orderbook/src/infra/api/routes/mint.rs:23
↓ 2 callersFunctiontokens
Builds the token list of an auction: all tokens with a known price plus all trusted tokens.
crates/autopilot/src/infra/solvers/dto/solve.rs:232
↓ 2 callersMethodtokens
(&self)
crates/driver/src/infra/api/mod.rs:229
↓ 2 callersMethodtokens
The tokens used in the auction.
crates/driver/src/domain/competition/auction.rs:131
↓ 2 callersFunctiontracing_config
(args: &TracingArguments, service_name: String)
crates/shared/src/arguments.rs:65
↓ 2 callersMethodtrack_filtered_orders
Record the orders a cut leaves out for `reason`: the per-reason gauge, a debug line with their uids and a `filtered` order event. An order repeats thi
crates/autopilot-svm/src/infra/provider.rs:163
↓ 2 callersFunctiontrade
(uid: u8, executed_sell: u64, executed_buy: u64)
crates/solana-driver/src/domain/execution_cost.rs:250
↓ 2 callersMethodtrade_count_for_scorable
( &self, trade: &Trade, surplus_capturing_jit_order_owners: &HashSet<eth::Address>,
crates/driver/src/domain/competition/solution/mod.rs:295
↓ 2 callersMethodtrader
(&self)
crates/driver/src/domain/competition/order/mod.rs:143
↓ 2 callersMethodtransaction
( &self, hash: eth::TxId, )
crates/autopilot/src/infra/blockchain/mod.rs:116
↓ 2 callersMethodtransaction_status
Returns the transaction's on-chain inclusion status.
crates/driver/src/infra/blockchain/mod.rs:271
↓ 2 callersMethodtry_widening_mul_div_floor
(self, mul: Self, div: Self)
crates/chain-types/src/evm.rs:77
↓ 2 callersFunctiontx
( auction_id: auction::Id, native_prices: &auction::Prices, solution: &super::Solution, contra
crates/driver/src/domain/competition/solution/encoding.rs:39
↓ 2 callersMethodtx_origin
(&self)
crates/price-estimation/src/trade_finding/mod.rs:106
↓ 2 callersFunctiontx_request
Builds the EIP-1559 transaction request for `tx`.
crates/driver/src/infra/mempool/mod.rs:210
↓ 2 callersFunctiontx_update
(slot: u64, info: SubscribeUpdateTransactionInfo)
crates/solana-indexer/src/indexer/decoder/tests.rs:372
↓ 2 callersMethoduid
(&self)
crates/driver/src/domain/competition/solution/trade.rs:19
↓ 2 callersFunctionunbuffered_provider
Creates an unbuffered provider for the given URL and label. Unlike [`provider()`], this does not include batching. Useful for read-only operations li
crates/ethrpc/src/alloy/mod.rs:74
↓ 2 callersMethodunfinalized_signatures
The distinct transaction signatures of rows with slots in `(after, through]`, the rows about to become final.
crates/solana-indexer/src/persistence.rs:410
↓ 2 callersFunctionuniform_buy_token_index
Index of the uniform clearing price of a trade's buy token. The native ETH sentinel only exists as a buy token and is paid out by unwrapping WETH, so
crates/autopilot/src/domain/settlement/transaction/mod.rs:202
↓ 2 callersFunctionuniform_tokens
Tokens of the uniform clearing prices, which precede the custom prices the trades point at.
crates/autopilot/src/domain/settlement/transaction/mod.rs:185
↓ 2 callersFunctionunrecorded_dead_creations
Pending sponsored orders whose stored creation transaction died at `block_height` and that carry no `invalid` event yet. Orders past `valid_to` are le
crates/autopilot-svm/src/infra/db.rs:135
↓ 2 callersMethoduntil_slot
Run `work` until the node reaches `slot`, `None` if the slot comes first. `work` starts even when the slot has passed, and a failed slot read counts a
crates/solana-driver/src/infra/blockchain/mod.rs:149
↓ 2 callersFunctionunwrap_or_log
Unwraps result or logs a `TOML` parsing error.
crates/solvers/src/infra/config/mod.rs:7
↓ 2 callersMethodupdate
(&mut self, result: CacheEntry, max_age: Duration)
crates/price-estimation/src/native_price_cache.rs:122
↓ 2 callersMethodupdate
(&self, block: u64, store_events: bool)
crates/autopilot/src/solvable_orders.rs:190
↓ 2 callersMethodupdate_last_handled_blocks
(&mut self, blocks: &[BlockNumberHash])
crates/event-indexing/src/event_handler.rs:564
↓ 2 callersFunctionupdate_table_rows
(pool: &PgPool)
crates/autopilot-svm/src/infra/db.rs:827
↓ 2 callersFunctionupdated_order_uids_after
( ex: &mut PgConnection, after_block: i64, )
crates/database/src/orders.rs:1137
↓ 2 callersMethodupload
Upload the bytes json encoded to the configured S3 bucket. Returns the key under which the file can be queried
crates/s3/src/lib.rs:80
↓ 2 callersMethodupload_gzipped
Uploads bytes that are already gzip-compressed JSON, tagging the object with `Content-Encoding: gzip`. NOTE: PUT's the whole gzipped blob, if the gzip
crates/s3/src/lib.rs:107
↓ 2 callersMethodupload_json_bytes
Uploads bytes which are expected to be valid JSON to the configured S3 bucket. Compresses the bytes before uploading. Returns the key under which the
crates/s3/src/lib.rs:95
↓ 2 callersFunctionurl_join
Joins `path` onto `url` with exactly one slash between them. Reusing `Url::join` is unreliable here because a base URL without a trailing slash drops
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:66
↓ 2 callersMethoduser_orders
( &self, owner: &Address, offset: u64, limit: Option<u64>, )
crates/orderbook/src/database/orders.rs:394
↓ 2 callersFunctionuser_surplus
(trade: &Trade)
crates/driver/src/domain/competition/solution/scoring.rs:522
↓ 2 callersMethoduser_surplus
Amount of value the user got above the order's limit price denominated in the surplus token.
crates/driver/src/domain/competition/solution/scoring.rs:145
↓ 2 callersMethodvalid_to
(self, valid_to: u32)
crates/driver/src/tests/setup/mod.rs:264
↓ 2 callersFunctionvalidate
(rules: Vec<RuleDefinition>)
crates/fee-engine/src/rules.rs:595
↓ 2 callersMethodvalidate
Parses and validates the provided app data bytes, returns the validated Valid app data is considered to be: 1. Below or equal to [`Validator::size_li
crates/app-data/src/app_data.rs:287
↓ 2 callersMethodvalidation
Bounds on a quoted order's `validTo`.
crates/solana-orderbook/src/infra/api/mod.rs:276
↓ 2 callersMethodvault
(&self)
crates/solver/src/liquidity/balancer_v2.rs:124
↓ 2 callersMethodvault_relayer
(&self)
crates/account-balances/src/simulation.rs:32
↓ 2 callersMethodvendor_source
(&self, name: &str, source: Src)
contracts/src/vendor.rs:330
↓ 2 callersFunctionvolume
(bps: f64)
crates/fee-engine/src/evaluator.rs:266
↓ 2 callersFunctionvolume_factors
(fees: &[Fee])
crates/orderbook/src/fee_engine.rs:257
↓ 2 callersFunctionvolume_share_before_settlement
The share `factor` takes of the fill's volume in the surplus token: the executed buy leg of a sell order, the executed sell leg of a buy order.
crates/protocol-fees/src/lib.rs:241
↓ 2 callersFunctionwait_for_pending_txs
(provider: &impl Provider, address: Address)
crates/driver/src/infra/solver/eip7702.rs:472
↓ 2 callersMethodwait_until
Polls `/pools?limit=1` every [`WAIT_UNTIL_POLL_INTERVAL`] until the envelope reports `block_number >= target_block`. Returns immediately if already th
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:221
↓ 2 callersMethodwait_until_block_processed
(&self, target: SyncTarget)
crates/autopilot/src/maintenance.rs:59
↓ 2 callersMethodwarn_skipped
Logs the rules the evaluation skipped, grouped with the same skips once a second.
crates/fee-engine/src/report.rs:199
↓ 2 callersFunctionwei_to_decimal
Convert a U256 wei amount to a decimal string using the token's decimals. e.g., 1000000000000000000 with 18 decimals → "1"
crates/solvers/src/infra/dex/bitget/mod.rs:22
← previousnext →2,101–2,200 of 10,747, ranked by callers