MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 2 callersMethodgas
(&self)
crates/solvers/src/domain/solver/baseline.rs:397
↓ 2 callersMethodgas
Simulate the gas needed by a transaction.
crates/simulator/src/lib.rs:120
↓ 2 callersMethodgas_estimate
(&self)
crates/price-estimation/src/trade_finding/mod.rs:68
↓ 2 callersMethodgas_fee_override
(&self)
crates/driver/src/domain/competition/solution/mod.rs:291
↓ 2 callersMethodgas_price
(&self)
crates/driver/src/domain/competition/auction.rs:146
↓ 2 callersMethodget
Returns the values cached for `key` at the requested block. Without a specific block number the most recently cached values are returned as long as th
crates/liquidity-sources/src/recent_block_cache.rs:435
↓ 2 callersMethodget
()
crates/liquidity-sources/src/zeroex.rs:484
↓ 2 callersMethodget
()
crates/price-estimation/src/native_price_cache.rs:71
↓ 2 callersMethodget
()
crates/autopilot/src/shadow.rs:297
↓ 2 callersMethodget
()
crates/autopilot/src/database/onchain_order_events/mod.rs:857
↓ 2 callersMethodget
(&self)
crates/autopilot/src/domain/competition/mod.rs:83
↓ 2 callersMethodgetAmplificationParameter
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2stablepool/src/lib.rs:3937
↓ 2 callersMethodgetNormalizedWeights
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2weightedpool/src/lib.rs:3669
↓ 2 callersMethodgetPair
(data: &[u8])
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:740
↓ 2 callersMethodgetPoolTokens
(data: &[u8])
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:6231
↓ 2 callersMethodget_amount_out
( &self, out_token: Address, input: (alloy::primitives::U256, Address), )
crates/solvers/src/boundary/baseline.rs:279
↓ 2 callersMethodget_amount_out_inner
( &self, out_token: Address, in_amount: U256, in_token: Address, )
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:82
↓ 2 callersMethodget_auction
(&self)
crates/orderbook/src/orderbook.rs:532
↓ 2 callersFunctionget_by_id
( ex: &mut PgConnection, uid: &OrderUid, )
crates/database/src/jit_orders.rs:44
↓ 2 callersMethodget_cached_or_fetch
Retrieves the full app-data for the given `app_data` hash, if it exists. HTTP requests needed to fetch the data are spawned in background tasks such t
crates/driver/src/domain/competition/order/app_data.rs:59
↓ 2 callersMethodget_current_back_off
Calculates back off based on how often we got rate limited in a row.
crates/rate-limit/src/lib.rs:59
↓ 2 callersFunctionget_current_prices
( client: &Client, base_url: Url, api_key: Option<String>, chain: u64, token_info: &dyn To
crates/price-estimation/src/native/oneinch.rs:111
↓ 2 callersMethodget_estimator
(&mut self, solver: &ExternalSolver)
crates/price-estimation/src/factory.rs:319
↓ 2 callersMethodget_external_list
(&self)
crates/shared/src/token_list.rs:26
↓ 2 callersMethodget_liquidity
( &self, pairs: HashSet<TokenPair>, at_block: Block, )
crates/solver/src/liquidity_collector.rs:28
↓ 2 callersFunctionget_next_auction_id
(ex: &mut PgConnection)
crates/database/src/auction.rs:33
↓ 2 callersMethodget_next_auction_id
(&self)
crates/autopilot/src/database/auction.rs:112
↓ 2 callersFunctionget_order
(addr: SocketAddr, uid: &str)
crates/solana-orderbook/tests/api.rs:3408
↓ 2 callersMethodget_order_status
( &self, uid: &OrderUid, )
crates/e2e/src/setup/services.rs:639
↓ 2 callersFunctionget_orders_by_owner
A page of one owner's orders with their fill state, newest first.
crates/solana-orderbook/src/infra/db.rs:70
↓ 2 callersMethodget_orders_with_pagination
Retrieves specific page of current limit orders.
crates/liquidity-sources/src/zeroex.rs:320
↓ 2 callersMethodget_pools_with_ticks_by_ids
( &self, ids: &[Address], target_block: BlockTarget, )
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:844
↓ 2 callersMethodget_quality
(&self, order: &Uid, now: Instant)
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:64
↓ 2 callersFunctionget_quote
( quoter: &dyn OrderQuoting, order_data: OrderData, signing_scheme: SigningScheme, quote_id: &
crates/autopilot/src/database/onchain_order_events/mod.rs:571
↓ 2 callersFunctionget_ready
Spawn the API server on `pool` and return the status and the body of `GET /api/v1/ready`.
crates/solana-orderbook/tests/api.rs:159
↓ 2 callersFunctionget_refunds
(events: Vec<(CoWSwapEthFlowEvents, Log)>)
crates/autopilot/src/database/ethflow_events/event_storing.rs:12
↓ 2 callersMethodget_relative_reserves
Given one of the pool's two tokens, returns a tuple containing the `RelativeReserves` along with the opposite token. That is, the elements returned ar
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:101
↓ 2 callersFunctionget_settlements_without_auction
( ex: &mut PgConnection, )
crates/database/src/settlements.rs:37
↓ 2 callersFunctionget_tb_given_inv_and_other_balances
https://github.com/balancer-labs/balancer-v2-monorepo/blob/stable-deployment/pvt/helpers/src/models/pools/stable/math.ts#L368
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:275
↓ 2 callersFunctionget_token_balance_given_invariant_and_all_other_balances
https://github.com/balancer-labs/balancer-v2-monorepo/blob/ad1442113b26ec22081c2047e2ec95355a7f12ba/pkg/pool-stable/contracts/StableMath.sol#L465-L516
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:132
↓ 2 callersMethodget_token_metadata
Get token metadata
crates/e2e/src/setup/services.rs:806
↓ 2 callersMethodget_token_wrapped
Returns the address of the token with the given symbol. Wrap ETH into WETH.
crates/driver/src/tests/setup/blockchain.rs:890
↓ 2 callersMethodget_trade
(&self, query: &Query)
crates/price-estimation/src/trade_finding/external.rs:502
↓ 2 callersFunctionget_trades
Trades filtered by order uid or owner, newest first, paged by `offset` and `limit`. The slot comes from any settlement row of the transaction because
crates/solana-orderbook/src/infra/db.rs:122
↓ 2 callersFunctionget_trades_for_settlement
( ex: &mut PgConnection, settlement: EventIndex, )
crates/database/src/trades.rs:209
↓ 2 callersFunctionhandle
(receiver: watch::Receiver<Snapshot>, max_age: Duration)
crates/simulator/src/state_override_stream.rs:783
↓ 2 callersFunctionhandle_app_data
Populates all app-data-derived order fields before the orders are persisted: sets `fast_path` from the `enableFastPath` app-data flag, backfills `vali
crates/autopilot/src/database/onchain_order_events/mod.rs:728
↓ 2 callersFunctionhandle_new_block
Applies a freshly observed block to the shared watcher, updating metrics and forwarding it if it represents progress relative to `previous_block`.
crates/ethrpc/src/block_stream.rs:238
↓ 2 callersFunctionhandle_results
(fetched_pool: FetchedPool, address: Address)
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:321
↓ 2 callersMethodhas_zero_leg
Whether a leg scaled down to nothing. The program only accepts a fill moving zero on that side, so no solver can fill the order.
crates/autopilot-svm/src/domain/auction.rs:157
↓ 2 callersFunctionhashed_signing_message
Orders are always hashed into 32 bytes according to EIP-712.
crates/model/src/signature.rs:289
↓ 2 callersFunctionhead
The chain head a frame quoting `QUOTED_BLOCK` is streamed against: the block before it, one spacing earlier.
crates/simulator/src/state_override_stream.rs:620
↓ 2 callersMethodholders_due
Whether `mint`'s largest holders may be looked up again.
crates/solana-orderbook/src/infra/verifier.rs:513
↓ 2 callersFunctionholding_json
An initialized SPL token account holding `amount`.
crates/solana-orderbook/tests/api.rs:850
↓ 2 callersFunctionhttp_client
Builds the HTTP client for the node. The default `reqwest::Client` that alloy uses has no request timeout, so a hung node would block a call forever.
crates/ethrpc/src/alloy/mod.rs:44
↓ 2 callersFunctionhttp_client
The default HTTP client to use for liquidity fetching.
crates/driver/src/boundary/liquidity/mod.rs:41
↓ 2 callersFunctioni512_to_big_rational
(input: &I512)
crates/number/src/conversions.rs:111
↓ 2 callersMethodid
(&self)
crates/autopilot-svm/src/run_loop.rs:355
↓ 2 callersFunctionids_param
(ids: &[Address])
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:377
↓ 2 callersFunctionignore_non_node_error
Bubbles up node errors, ignoring all other errors.
crates/ethrpc/src/alloy/errors.rs:4
↓ 2 callersMethodin_eth
Apply this price to some token amount, converting that token into ETH. # Examples Converting 1 ETH expressed in `eth::TokenAmount` into `eth::Ether`
crates/autopilot/src/domain/auction/mod.rs:86
↓ 2 callersFunctionin_flight_orders
Orders inside a winning solution whose settlement may still land by its deadline: the indexer has not processed the deadline slot, no settlement of th
crates/autopilot-svm/src/infra/db.rs:459
↓ 2 callersMethodinc_onchain_order_errors
(&self, error_label: &str)
crates/autopilot/src/database/onchain_order_events/mod.rs:862
↓ 2 callersFunctionincident_trade
The trade from prod xdai settlement 0xb02d542de9a45dfad68d152cfede1fa0c322b988ecc6be4b398c0f9c6b1048c1 (auction 16489395), whose solver-encoded unifor
crates/autopilot/src/domain/settlement/trade/math.rs:278
↓ 2 callersMethodincrementCounter
(data: &[u8])
contracts/generated/contracts-generated/counter/src/lib.rs:659
↓ 2 callersMethodindexer_config
(&self, factory: Address)
crates/pool-indexer/src/config.rs:112
↓ 2 callersFunctioninit_auction_id_in_span
(id: Option<i64>)
crates/driver/src/domain/competition/pre_processing.rs:418
↓ 2 callersMethodinitializeManager
( data: &[u8], )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1501
↓ 2 callersFunctioninsert
(ex: &mut PgConnection, jit_orders: &[JitOrder])
crates/database/src/jit_orders.rs:118
↓ 2 callersFunctioninsert_app_data
Store `document` under `hash`. `None` once stored, otherwise the document already under the hash, which stays.
crates/solana-orderbook/src/infra/db.rs:285
↓ 2 callersFunctioninsert_auction_with_id
( ex: &mut PgConnection, id: AuctionId, json: &str, )
crates/database/src/auction.rs:41
↓ 2 callersFunctioninsert_batch
( ex: &mut PgConnection, auction_id: domain::auction::Id, fee_policies: impl IntoIterator<Item = (
crates/autopilot/src/database/fee_policies.rs:6
↓ 2 callersFunctioninsert_checkpoint
Inserts the initial checkpoint for `contract`. On conflict (a checkpoint already exists) this is a no-op.
crates/pool-indexer/src/db/uniswap_v3.rs:38
↓ 2 callersMethodinsert_events
( &self, events: Vec<(ContractEvent, Log)>, transaction: &mut sqlx::Transaction<'stati
crates/autopilot/src/database/onchain_order_events/mod.rs:321
↓ 2 callersFunctioninsert_or_overwrite_interactions
( ex: &mut PgConnection, uid_and_interaction: &[(OrderUid, Interaction)], )
crates/database/src/orders.rs:352
↓ 2 callersFunctioninsert_order
( order: &Order, quote_id: Option<QuoteId>, ex: &mut PgConnection, )
crates/orderbook/src/database/orders.rs:120
↓ 2 callersFunctioninsert_order_execute_sqlx
( query_str: &str, ex: &mut PgConnection, order: &Order, )
crates/database/src/orders.rs:176
↓ 2 callersFunctioninsert_pda
( tx: &mut PgTransaction<'_>, n: u8, cancelled: bool, withdrawn: i64,
crates/autopilot-svm/src/infra/db.rs:992
↓ 2 callersFunctioninsert_presignature
( ex: &mut PgConnection, index: &EventIndex, event: &PreSignature, )
crates/database/src/events.rs:154
↓ 2 callersMethodinternalize
Mark this order as internalizable.
crates/driver/src/tests/setup/mod.rs:187
↓ 2 callersMethodinto_data
(self)
crates/solana-solvers/src/dex/bitget/dto.rs:76
↓ 2 callersFunctioninto_domain
(quote: boundary::database::orders::Quote)
crates/autopilot/src/infra/persistence/dto/quote.rs:15
↓ 2 callersMethodinto_domain
( self, auction: &competition::Auction, liquidity: &[liquidity::Liquidity], we
crates/driver/src/infra/solver/dto/solution.rs:29
↓ 2 callersMethodinto_domain
(self)
crates/driver/src/infra/api/routes/quote/dto/order.rs:9
↓ 2 callersMethodinto_domain
(self)
crates/autopilot/src/infra/solvers/dto/solve.rs:287
↓ 2 callersMethodinto_inner
The height as a plain number.
crates/cow-solana-rpc/src/lib.rs:505
↓ 2 callersMethodinto_instruction
(self)
crates/solana-solvers/src/dex/dto.rs:24
↓ 2 callersMethodinto_order_and_quote
(self)
crates/database/src/orders.rs:620
↓ 2 callersMethodinto_pool_data
Stamps the envelope's `block_number` onto the pool so the driver can anchor per-pool event replay. Bails if `decimals` is missing — run [`drop_pools_m
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:174
↓ 2 callersMethodinto_response
(self)
crates/orderbook/src/api/put_app_data.rs:36
↓ 2 callersMethodinto_response
(self)
crates/orderbook/src/api/debug_simulation.rs:50
↓ 2 callersMethodinto_result
(self)
crates/liquidity-sources/src/subgraph.rs:156
↓ 2 callersMethodinto_solution
Constructs a single order `solution::Solution` for this swap. Returns `None` if the swap is not valid for the specified order.
crates/solvers/src/domain/dex/mod.rs:111
↓ 2 callersMethodinvalid
Make the solution return invalid calldata.
crates/driver/src/tests/setup/mod.rs:603
↓ 2 callersFunctioninvalid_buy_token_account
(account: Pubkey, reason: &str)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:789
↓ 2 callersFunctioninvalid_value_env_var_missing
Returns a deserialization error mentioning that the target environment variable could not be found.
crates/configs/src/deserialize_env.rs:18
↓ 2 callersMethodisValidSignature
(data: &[u8])
contracts/generated/contracts-generated/gashog/src/lib.rs:504
↓ 2 callersMethodis_ecdsa_scheme
(&self)
crates/model/src/signature.rs:239
↓ 2 callersMethodis_filtered_out
(self)
crates/winner-selection/src/state.rs:43
↓ 2 callersFunctionis_price_malformed
(price: f64)
crates/price-estimation/src/native/mod.rs:127
← previousnext →1,701–1,800 of 10,747, ranked by callers