MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 2 callersFunctionfull_order_into_model_order
(order: database::orders::FullOrder)
crates/shared/src/db_order_conversions.rs:42
↓ 2 callersFunctionfull_orders_in_tx
( ex: &'a mut PgConnection, tx_hash: &'a TransactionHash, )
crates/database/src/orders.rs:712
↓ 2 callersFunctionfull_path
(path: Option<String>, query: Option<String>)
crates/solvers/src/tests/mock/http.rs:272
↓ 2 callersMethodgas
(&self)
crates/solvers/src/domain/solver/baseline.rs:401
↓ 2 callersMethodgas_estimate
(&self)
crates/price-estimation/src/trade_finding/mod.rs:63
↓ 2 callersMethodgas_price
(&self)
crates/driver/src/domain/competition/auction.rs:108
↓ 2 callersFunctiongenerate_commit_interaction
Generates a commit interaction for a CoW AMM GPv2Order. The commit interaction ensures that only the specified order can be settled in the current Co
crates/cow-amm/src/lib.rs:92
↓ 2 callersFunctiongenerate_eip1271_signature
Generates an EIP-1271 signature for a CoW AMM GPv2Order. The signature format is: 1. AMM address (20 bytes) 2. ABI-encoded order data and trading par
crates/cow-amm/src/lib.rs:71
↓ 2 callersMethodget
()
crates/liquidity-sources/src/zeroex.rs:483
↓ 2 callersMethodget
()
crates/price-estimation/src/native_price_cache.rs:70
↓ 2 callersMethodget
()
crates/observe/src/future.rs:82
↓ 2 callersMethodget
()
crates/autopilot/src/shadow.rs:297
↓ 2 callersMethodget
()
crates/autopilot/src/database/mod.rs:151
↓ 2 callersMethodget
()
crates/autopilot/src/database/onchain_order_events/mod.rs:764
↓ 2 callersMethodget
(&self)
crates/autopilot/src/domain/competition/mod.rs:83
↓ 2 callersMethodgetAmplificationParameter
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2stablepool/src/lib.rs:3938
↓ 2 callersMethodgetNormalizedWeights
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2weightedpool/src/lib.rs:3670
↓ 2 callersMethodgetPoolTokens
(data: &[u8])
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:6232
↓ 2 callersMethodget_amount_out
( &self, out_token: Address, input: (alloy::primitives::U256, Address), )
crates/solvers/src/boundary/baseline.rs:278
↓ 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:511
↓ 2 callersFunctionget_by_id
( ex: &mut PgConnection, uid: &OrderUid, )
crates/database/src/jit_orders.rs:43
↓ 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:302
↓ 2 callersMethodget_estimators
( &mut self, solvers: &[ExternalSolver], select: impl Fn(&EstimatorEntry) -> &Arc<dyn
crates/price-estimation/src/factory.rs:315
↓ 2 callersMethodget_external_list
(&self)
crates/shared/src/token_list.rs:26
↓ 2 callersMethodget_full_app_data
( &self, contract_app_data: &AppDataHash, )
crates/orderbook/src/database/app_data.rs:9
↓ 2 callersMethodget_latest_solver_competition
( &self, )
crates/e2e/src/setup/services.rs:486
↓ 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:31
↓ 2 callersMethodget_orders_with_pagination
Retrieves specific page of current limit orders.
crates/liquidity-sources/src/zeroex.rs:319
↓ 2 callersMethodget_pools
( &self, query: String, variables: Map<String, Value>, )
crates/liquidity-sources/src/uniswap_v3/graph_api.rs:101
↓ 2 callersMethodget_pools_with_ticks_by_ids
( &self, ids: &[Address], target_block: BlockTarget, )
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:832
↓ 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:100
↓ 2 callersFunctionget_settlements_without_auction
( ex: &mut PgConnection, )
crates/database/src/settlements.rs:36
↓ 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:273
↓ 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:131
↓ 2 callersMethodget_token_metadata
Get token metadata
crates/e2e/src/setup/services.rs:793
↓ 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:862
↓ 2 callersMethodget_trade
(&self, query: &Query)
crates/price-estimation/src/trade_finding/external.rs:359
↓ 2 callersMethodhas_haircut
Returns true if any trade in this solution has a non-zero haircut fee. Used to determine if simulation failures should suppress solver notifications.
crates/driver/src/domain/competition/solution/mod.rs:573
↓ 2 callersFunctionhashed_signing_message
Orders are always hashed into 32 bytes according to EIP-712.
crates/model/src/signature.rs:288
↓ 2 callersFunctionhttp_client
The default HTTP client to use for liquidity fetching.
crates/driver/src/boundary/liquidity/mod.rs:46
↓ 2 callersFunctioni512_to_big_rational
(input: &I512)
crates/number/src/conversions.rs:111
↓ 2 callersMethodid
Get the solution ID.
crates/winner-selection/src/solution.rs:38
↓ 2 callersFunctionids_param
(ids: &[Address])
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:379
↓ 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 callersMethodinc_onchain_order_errors
(&self, error_label: &str)
crates/autopilot/src/database/onchain_order_events/mod.rs:769
↓ 2 callersMethodincrementCounter
(data: &[u8])
contracts/generated/contracts-generated/counter/src/lib.rs:660
↓ 2 callersMethodindexer_config
(&self, factory: Address)
crates/pool-indexer/src/config.rs:117
↓ 2 callersFunctioninit_auction_id_in_span
(id: Option<i64>)
crates/driver/src/domain/competition/pre_processing.rs:565
↓ 2 callersMethodinitializeManager
( data: &[u8], )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1502
↓ 2 callersFunctioninsert
(ex: &mut PgConnection, jit_orders: &[JitOrder])
crates/database/src/jit_orders.rs:117
↓ 2 callersFunctioninsert_auction_with_id
( ex: &mut PgConnection, id: AuctionId, json: &str, )
crates/database/src/auction.rs:39
↓ 2 callersMethodinsert_events
( &self, events: Vec<(ContractEvent, Log)>, transaction: &mut sqlx::Transaction<'stati
crates/autopilot/src/database/onchain_order_events/mod.rs:309
↓ 2 callersFunctioninsert_or_overwrite_interactions
( ex: &mut PgConnection, uid_and_interaction: &[(OrderUid, Interaction)], )
crates/database/src/orders.rs:305
↓ 2 callersFunctioninsert_order
(order: &Order, ex: &mut PgConnection)
crates/orderbook/src/database/orders.rs:117
↓ 2 callersFunctioninsert_order_execute_sqlx
( query_str: &str, ex: &mut PgConnection, order: &Order, )
crates/database/src/orders.rs:179
↓ 2 callersFunctioninsert_pools
( tx: &mut Transaction<'_, Postgres>, factory: &Address, pools: &[NewPoolData], )
crates/pool-indexer/src/db/uniswap_v3.rs:53
↓ 2 callersFunctioninsert_presignature
( ex: &mut PgConnection, index: &EventIndex, event: &PreSignature, )
crates/database/src/events.rs:154
↓ 2 callersMethodinteractions
Interactions executed by this solution.
crates/driver/src/domain/competition/solution/mod.rs:226
↓ 2 callersMethodinternalize
Mark this order as internalizable.
crates/driver/src/tests/setup/mod.rs:187
↓ 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/autopilot/src/infra/solvers/dto/solve.rs:167
↓ 2 callersMethodinto_order_and_quote
(self)
crates/database/src/orders.rs:557
↓ 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:175
↓ 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:166
↓ 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:619
↓ 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 callersMethodisSolver
(data: &[u8])
contracts/generated/contracts-generated/anyoneauthenticator/src/lib.rs:281
↓ 2 callersMethodisValidSignature
(data: &[u8])
contracts/generated/contracts-generated/gashog/src/lib.rs:505
↓ 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:125
↓ 2 callersMethodis_ready
The result is not ready if the estimator has returned an internal error and consecutive errors are less than `ESTIMATOR_INTERNAL_ERRORS_THRESHOLD`.
crates/price-estimation/src/native_price_cache.rs:127
↓ 2 callersFunctionis_same_buy_and_sell_token
Whether an order's sell and buy tokens are effectively the same asset. A native-token buy (`BUY_ETH_ADDRESS`) counts as the wrapped `native_token`, so
crates/shared/src/order_validation.rs:340
↓ 2 callersMethodis_timeout
(&self)
crates/driver/src/infra/solver/mod.rs:687
↓ 2 callersMethoditer
Returns an iterator over the reserve assets.
crates/driver/src/domain/liquidity/balancer/v2/weighted.rs:80
↓ 2 callersMethoditer
Returns an iterator over the reserve assets.
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:76
↓ 2 callersMethoditer
Returns an iterator over the token reserves.
crates/solvers/src/domain/liquidity/weighted_product.rs:41
↓ 2 callersMethodjit_order
Solver send the solution as JIT order
crates/driver/src/tests/setup/mod.rs:1058
↓ 2 callersMethodkeys_of_recently_used_entries
(&self)
crates/liquidity-sources/src/recent_block_cache.rs:467
↓ 2 callersMethodkind_and_amount
Returns the order kind together with the corresponding input amount: the sell amount (before or after fee) for sell orders, and the buy amount after f
crates/model/src/quote.rs:175
↓ 2 callersMethodlast_event_block
(&self)
crates/event-indexing/src/event_handler.rs:729
↓ 2 callersMethodlast_indexed_block
(&self)
crates/pool-indexer/src/indexer/uniswap_v3.rs:219
↓ 2 callersMethodlast_submission
Looks up the last tx that was submitted for that signer.
crates/driver/src/infra/mempool/mod.rs:208
↓ 2 callersFunctionlatest_indexed_block
(state: &AppState)
crates/pool-indexer/src/api/mod.rs:60
↓ 2 callersFunctionlatest_settlement_block
(ex: &mut PgConnection)
crates/database/src/orders.rs:960
↓ 2 callersMethodliquidity
The liquidity configuration of this solver
crates/driver/src/infra/solver/mod.rs:302
↓ 2 callersFunctionliquidity_interaction
( liquidity: &Liquidity, slippage: &slippage::Parameters, settlement_contract: &Address, )
crates/driver/src/domain/competition/solution/encoding.rs:287
↓ 2 callersMethodload_competition
( &self, id: Identifier, after_block: Option<i64>, )
crates/orderbook/src/database/solver_competition.rs:30
↓ 2 callersMethodload_competition_by_id
( &self, auction_id: i64, current_block: Option<i64>, )
crates/orderbook/src/database/solver_competition_v2.rs:16
↓ 2 callersFunctionload_latest_competitions
( ex: &mut PgConnection, latest_competitions_count: u32, after_block: Option<i64>, )
crates/database/src/solver_competition.rs:72
↓ 2 callersFunctionload_most_recent
( ex: &mut PgConnection, )
crates/database/src/auction.rs:9
← previousnext →1,101–1,200 of 8,522, ranked by callers