MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,749 in github.com/cowprotocol/services

↓ 4 callersMethodcountersign
Fill the funder's fee payer slot of one stored creation transaction. Placement pinned the funder as fee payer and first key, so the signature belongs
crates/autopilot-svm/src/infra/sponsor.rs:298
↓ 4 callersMethodcreate_and_index
Creates the order, mines it on-chain, waits for indexing, and optionally invalidates.
crates/e2e/tests/e2e/refunder.rs:171
↓ 4 callersFunctioncreation_tx_wrapped
A creation bundle carrying `trailing` instructions after `CreateOrder`, the shape a wallet produces when it appends its own compute budget.
crates/solana-orderbook/tests/api.rs:1924
↓ 4 callersMethodcuts
The cut of each order a fill can be charged for: the atoms of its limit-leg token, the buy token of a sell order and the sell token of a buy order, wo
crates/solana-driver/src/domain/execution_cost.rs:95
↓ 4 callersFunctiondb
(state: &AppState)
crates/orderbook/src/api/get_solver_competition_v2.rs:71
↓ 4 callersFunctiondead_solver
A solver client pointing at a dead endpoint (no listener).
crates/solana-driver/tests/api.rs:241
↓ 4 callersFunctiondecimal_to_rational
Converts a `BigDecimal` value to a `eth::Rational` value. Returns `None` if the specified decimal value cannot be represented as a rational of `U256`
crates/solvers/src/util/conv.rs:13
↓ 4 callersMethoddecimals
Fetch the ERC20 token decimals. Returns `None` if the token does not implement this optional method. See the decimals method in EIP-20. https://eips.
crates/driver/src/infra/blockchain/token.rs:48
↓ 4 callersFunctiondefault_token_info_fetcher
()
crates/price-estimation/src/native/coingecko.rs:379
↓ 4 callersFunctiondelete
( ex: &mut PgTransaction<'_>, delete_from_block_number: u64, )
crates/database/src/events.rs:48
↓ 4 callersMethoddeploy_cow_weth_pool
( &self, cow_supply: U256, cow_amount: U256, weth_amount: U256, )
crates/e2e/src/setup/onchain_components/mod.rs:553
↓ 4 callersFunctiondriver_server_delayed
[`driver_server`] answering after `delay`.
crates/autopilot-svm/src/infra/prices.rs:989
↓ 4 callersMethodeffective
Returns the estimated [`EffectiveGasPrice`] for the gas price estimate.
crates/eth-domain-types/src/gas.rs:46
↓ 4 callersMethodeffective_receiver
(&self)
crates/price-estimation/src/lib.rs:187
↓ 4 callersMethodempty
Ensures that `/solve` returns no solutions.
crates/driver/src/tests/setup/mod.rs:1403
↓ 4 callersFunctionengine
(max_partner_fee: Option<f64>)
crates/orderbook/src/fee_engine.rs:386
↓ 4 callersFunctionengine_with_rules
The engine with only `rules`.
crates/orderbook/src/fee_engine.rs:391
↓ 4 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/coingecko.rs:252
↓ 4 callersMethodestimate_native_price
( &self, _token: Address, _timeout: Duration, )
crates/e2e/tests/e2e/eip4626.rs:447
↓ 4 callersMethodestimate_prices_and_update_cache
Checks cache for the given tokens one by one. If the price is already cached, it gets returned. If it's not in the cache, a new price estimation reque
crates/price-estimation/src/native_price_cache.rs:332
↓ 4 callersFunctioneth_order
An order which buys ETH.
crates/driver/src/tests/setup/mod.rs:766
↓ 4 callersFunctioneth_solution
()
crates/driver/src/tests/setup/mod.rs:776
↓ 4 callersFunctionevents_of_order
Returns all events of that order in the order they happend (old to new).
crates/e2e/tests/e2e/database.rs:13
↓ 4 callersFunctionevm_sell_fill
A sell fill of 1000 for 2000 against a 1000/1800 limit, 200 over it.
crates/protocol-fees/src/tests.rs:273
↓ 4 callersMethodexecute_with_back_off
( &self, task: impl Future<Output = T>, requires_back_off: impl Fn(&T) -> bool, )
crates/rate-limit/src/lib.rs:186
↓ 4 callersMethodexpire_past_deadline
Close every open window whose deadline the indexer has processed without a settlement as timed out, logging each. Runs at startup for the windows a pr
crates/autopilot-svm/src/infra/observation.rs:142
↓ 4 callersMethodexpire_when_due
Wait for the tip to reach the window's deadline and for the indexer to have processed it, then close the window as timed out if the indexer has not cl
crates/autopilot-svm/src/infra/observation.rs:156
↓ 4 callersFunctionextract_rfq_id_from_interaction
Extracts Liquorice maker RFQ ID from CoW interaction. RFQ ID is extracted from the calldata corresponding to the `settleSingle` function of the Liquor
crates/driver/src/infra/notify/liquidity_sources/liquorice/notifier.rs:144
↓ 4 callersFunctionfactor
(value: f64)
crates/fee-engine/src/partner_fee.rs:96
↓ 4 callersFunctionfee_shares_before_settlement
The shares `policy` takes from the fill `order` describes, in the surplus token, with the executed legs as the fee base. The inverse of `protocol_fee`
crates/protocol-fees/src/lib.rs:187
↓ 4 callersFunctionfetch
(ex: &mut PgConnection, id: AuctionId)
crates/database/src/auction.rs:98
↓ 4 callersFunctionfetch
(addr: SocketAddr, mint: &str)
crates/autopilot-svm/src/infra/api.rs:104
↓ 4 callersMethodfetch_pool
( &self, pool_info: &Factory::PoolInfo, block: BlockId, )
crates/liquidity-sources/src/balancer_v2/pools/common.rs:194
↓ 4 callersMethodfetch_pools
Fetches and converts the given pools from the source at `target_block`, skipping any that can't be converted yet (e.g. missing ticks).
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:278
↓ 4 callersMethodfill_at
The fill as `protocol_fees` sees it: the signed limit and the legs `prices` settle it at. The settlement contract rounds the bought amount up.
crates/autopilot/src/domain/settlement/trade/math.rs:33
↓ 4 callersFunctionfill_or_kill
(uid: u8, sell_amount: u64)
crates/solana-driver/src/domain/auction.rs:929
↓ 4 callersMethodfilter
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:26
↓ 4 callersFunctionfind_competition_by_id
The competition of one auction. `None` for an unknown auction, and for one whose deadline slot the indexer has not passed: its winners may still submi
crates/solana-orderbook/src/infra/db.rs:460
↓ 4 callersFunctionfind_order_by_uid
Read one order with its fill state. `None` when the uid is unknown.
crates/solana-orderbook/src/infra/db.rs:44
↓ 4 callersFunctionfind_plausible_strategies_for_slots
Produces approval strategy candidates from a list of SLOAD-accessed slots. This function assumes SLOAD-accessed slots are returned in order that they
crates/balance-overrides/src/approval/mod.rs:35
↓ 4 callersFunctionfind_plausible_strategies_for_slots
Used by Detector when there are multiple slots to increase the chances we find the correct storage slot quickly. Note: does not emit `AaveV3AToken` c
crates/balance-overrides/src/balance/mod.rs:47
↓ 4 callersMethodflashloan
(&self)
crates/driver/src/domain/competition/order/app_data.rs:127
↓ 4 callersFunctionfold
(quotes: Vec<Venue>)
crates/simulator/src/state_override_stream.rs:709
↓ 4 callersMethodfor_driver
The request to send to a driver: compressed if the driver accepts compression and a compressed copy exists, plain JSON otherwise.
crates/autopilot/src/infra/solvers/dto/solve.rs:158
↓ 4 callersMethodfrom
(value: Kind)
crates/driver/src/infra/api/error.rs:45
↓ 4 callersMethodfund
(&self, to: Address, amount: U256)
crates/e2e/src/setup/onchain_components/mod.rs:128
↓ 4 callersFunctiongas
(value: u64)
crates/driver/src/domain/competition/solution/settlement.rs:472
↓ 4 callersMethodgas_price
The gas price is determined based on the deadline by which the transaction must be included on-chain. A shorter deadline requires a higher gas price t
crates/driver/src/infra/blockchain/mod.rs:201
↓ 4 callersMethodget
`mint`'s token program. A miss means `mint` is outside [`Settlement::mints`].
crates/solana-driver/src/domain/settlement.rs:107
↓ 4 callersMethodget
()
crates/refunder/src/metrics.rs:15
↓ 4 callersMethodget
(self)
crates/fee-engine/src/fee_factor.rs:19
↓ 4 callersMethodget
The inferred spacing, or `None` until a gap has been seen.
crates/simulator/src/state_override_stream.rs:294
↓ 4 callersMethodget_amount_in
( &self, in_token: Address, (out_amount, out_token): (U256, Address), )
crates/solvers/src/boundary/liquidity/limit_order.rs:27
↓ 4 callersMethodget_amount_out
( &self, out_token: Address, (in_amount, in_token): (U256, Address), )
crates/solvers/src/boundary/liquidity/limit_order.rs:10
↓ 4 callersMethodget_events
( &self, block_range: RangeInclusive<u64>, )
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:82
↓ 4 callersFunctionget_or_create_quote
( quoter: &dyn OrderQuoting, quote_search_parameters: &QuoteSearchParameters, quote_id: Option<i64
crates/shared/src/order_validation.rs:1215
↓ 4 callersFunctionget_orders_by_uid_response
(result: Result<Vec<(OrderUid, Result<Order>)>>)
crates/orderbook/src/api/get_orders_by_uid.rs:44
↓ 4 callersFunctionget_orders_with_native_prices
( orders: Vec<&'a Order>, native_price_estimator: &NativePriceUpdater, timeout: Duration, extr
crates/autopilot/src/solvable_orders.rs:675
↓ 4 callersFunctionget_relevant_pairs
(token_a: Address, token_b: Address)
crates/solver/src/liquidity/zeroex.rs:208
↓ 4 callersMethodget_token
Returns the address of the token with the given symbol.
crates/driver/src/tests/setup/blockchain.rs:880
↓ 4 callersMethodget_token_info
(&self, address: Address)
crates/token-info/src/lib.rs:83
↓ 4 callersMethodget_token_infos
(&self, addresses: &[Address])
crates/token-info/src/lib.rs:92
↓ 4 callersFunctionhandle_for
Handle over a snapshot built by folding `quotes` in order, as if every frame were quoting for `QUOTED_BLOCK`. Frames whose words carry no `QUOTED_AT`
crates/simulator/src/state_override_stream.rs:775
↓ 4 callersFunctionhandler
(source: StubSource, checkpoint: PoolsCheckpoint)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:893
↓ 4 callersMethodhash
Returns the hash value for the specified source.
crates/driver/src/domain/competition/order/mod.rs:348
↓ 4 callersFunctionid
(id: i64)
crates/solana-driver/src/domain/buy_token_accounts.rs:66
↓ 4 callersMethodid
Returns the chain's chain ID
crates/chain/src/lib.rs:29
↓ 4 callersMethodid
(&self)
crates/autopilot/src/domain/competition/mod.rs:37
↓ 4 callersFunctioninfo_span
(request_id: String)
crates/observe/src/tracing/distributed/request_id.rs:55
↓ 4 callersFunctioninit
Initializes the event bus. Connection failures are logged but do not abort startup: the event bus is purely observational, so a misconfigured or unrea
crates/observe/src/event_bus/mod.rs:47
↓ 4 callersMethodinit
(factory: &PriceEstimatorFactory, name: &str, params: Self::Params)
crates/price-estimation/src/factory.rs:579
↓ 4 callersFunctioninsert_order
( tx: &mut PgTransaction<'_>, n: u8, valid_to: i64, signed: bool, kind
crates/autopilot-svm/src/infra/db.rs:966
↓ 4 callersFunctioninsert_order_and_ignore_conflicts
( ex: &mut PgConnection, order: &Order, )
crates/database/src/orders.rs:164
↓ 4 callersFunctioninsert_order_events
( ex: &mut PgConnection, orders: &[OrderUid], timestamp: DateTime<Utc>, label: OrderEventLabel
crates/database/src/order_events.rs:103
↓ 4 callersFunctioninsert_trade
( ex: &mut PgConnection, index: &EventIndex, event: &Trade, )
crates/database/src/events.rs:113
↓ 4 callersFunctioninstruction_account_keys
Resolve an instruction's account-list indices to their pubkeys, in order, so the interface parser can read them positionally. Fails if any index is ou
crates/solana-indexer/src/indexer/decoder.rs:704
↓ 4 callersMethodinto_array
(self)
crates/simulator/src/encoding.rs:55
↓ 4 callersMethodinto_response
(self)
crates/orderbook/src/api/post_quote.rs:32
↓ 4 callersMethodinto_source
(&self, web3: &Web3)
crates/liquidity-sources/src/uniswap_v2/mod.rs:102
↓ 4 callersMethodjit_orders
(&self)
crates/price-estimation/src/trade_finding/mod.rs:146
↓ 4 callersFunctionjoin
Join a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with one
crates/shared/src/url.rs:5
↓ 4 callersFunctionjoin_url
Join a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with one
crates/simulator/src/utils/mod.rs:5
↓ 4 callersMethodkey
( &self, order: &order::Order, tokens: &Tokens, _solver: &eth::Address,
crates/driver/src/domain/competition/sorting.rs:34
↓ 4 callersFunctionlanes_of
(overrides: &StateOverride)
crates/simulator/src/state_override_stream.rs:670
↓ 4 callersMethodlast_event_block
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:121
↓ 4 callersFunctionload_by_id
( mut ex: &mut PgConnection, id: AuctionId, after_block: Option<i64>, )
crates/database/src/solver_competition_v2.rs:119
↓ 4 callersFunctionload_rules_toml
Checks the shape of the tables, compiles the rules and validates them on a sample order. Any failure refuses the whole set.
crates/fee-engine/src/loader.rs:70
↓ 4 callersFunctionlog_to_event_index
(log: &Log)
crates/autopilot/src/database/events.rs:115
↓ 4 callersFunctionlogs
(lines: &[&str])
crates/solana-driver/src/domain/program_error.rs:139
↓ 4 callersMethodlookup
Start a lookup of `mints`: the cached verdicts are taken, the caller reads [`MintLookup::unread`] from the chain and hands the accounts to [`MintLooku
crates/solana-token/src/lib.rs:164
↓ 4 callersFunctionmainnet_rent
The mainnet rent since SIMD-0437, under the SDK's default.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:909
↓ 4 callersFunctionmake_streaming_quoter
Helpers shared by the streaming tests below.
crates/shared/src/order_quoting.rs:2338
↓ 4 callersFunctionmap_interactions_data
( interactions: impl IntoIterator<Item = &'a Interaction>, )
crates/price-estimation/src/trade_finding/mod.rs:371
↓ 4 callersFunctionmax_ata_rent
The [`ata_rent`] of the largest associated token account a mint passing [`mint_verdict`] can need: under a Token-2022 mint whose fee schedule takes no
crates/solana-token/src/lib.rs:242
↓ 4 callersFunctionmerge_raw
Merge two TOML strings, with the override taking precedence # Arguments `base` - The base TOML configuration as a string `overlay` - The override TOM
crates/e2e/src/setup/colocation/utils/toml.rs:16
↓ 4 callersFunctionmetrics
()
crates/rate-limit/src/lib.rs:26
↓ 4 callersMethodmine_order_creation
( &self, owner: Address, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:963
↓ 4 callersFunctionmocked_reader
A reader whose node answers with whatever is pushed onto `asserter`.
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:591
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowswaponchainorders/src/lib.rs:479
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/signatures/src/lib.rs:894
← previousnext →801–900 of 10,749, ranked by callers