MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 2 callersFunctionlog_auction_delta
( previous: &Option<domain::Auction>, current: &domain::Auction, start_block: &BlockIn
crates/autopilot/src/run_loop.rs:1145
↓ 2 callersFunctionlogexpmath_contract_constants
Compare computed constants with smart contract code.
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:239
↓ 2 callersFunctionmake_query
()
crates/price-estimation/src/competition/mod.rs:623
↓ 2 callersFunctionmake_test_json
()
crates/autopilot/src/infra/solvers/dto/solve.rs:301
↓ 2 callersMethodmanager
(data: &[u8])
contracts/generated/contracts-generated/cowamm/src/lib.rs:3482
↓ 2 callersFunctionmap_rows_to_solutions
(rows: Vec<SolutionRow>)
crates/database/src/solver_competition_v2.rs:425
↓ 2 callersMethodmatches
Returns true if the search parameter instance matches the specified quote data.
crates/shared/src/order_quoting.rs:324
↓ 2 callersMethodmax
Returns the maximum valid timestamp for the specified order.
crates/shared/src/order_validation.rs:1076
↓ 2 callersMethodmax_batch_size
(&self)
crates/price-estimation/src/native/coingecko.rs:237
↓ 2 callersMethodmine_order_creation
( &self, owner: Address, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:949
↓ 2 callersMethodmine_order_invalidation
( &self, sender: Address, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:966
↓ 2 callersMethodminimum_replacement_gas_price
( &self, mempool: &infra::Mempool, signer: eth::Address, next_nonce: u64,
crates/driver/src/domain/mempools.rs:405
↓ 2 callersMethodmint_token_to_weth_uni_v2_pool
Mints `amount` tokens to its `token`-WETH Uniswap V2 pool. This can be used to modify the pool reserves during a test.
crates/e2e/src/setup/onchain_components/mod.rs:493
↓ 2 callersFunctionmul_ratio
Computes `x * q / d` rounding down. Returns `None` if `d` is `0` or if the result overflows a 256-bit integer.
crates/driver/src/util/math.rs:6
↓ 2 callersMethodname
(&self)
crates/event-indexing/src/event_handler.rs:645
↓ 2 callersMethodnative_price_estimator
Creates a native price estimator from the given sources. When `eip4626` is true the resulting estimator is wrapped in an [`native::Eip4626`] layer tha
crates/price-estimation/src/factory.rs:405
↓ 2 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1473
↓ 2 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:5414
↓ 2 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpool/src/lib.rs:4881
↓ 2 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpool/src/lib.rs:4106
↓ 2 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2basepool/src/lib.rs:3682
↓ 2 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5667
↓ 2 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2stablepool/src/lib.rs:4456
↓ 2 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2basepoolfactory/src/lib.rs:247
↓ 2 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iuniswaplikepair/src/lib.rs:5240
↓ 2 callersFunctionnew_app_data_cid
(contract_app_data: &AppDataHash)
crates/orderbook/src/ipfs_app_data.rs:123
↓ 2 callersFunctionold_app_data_cid
(contract_app_data: &AppDataHash)
crates/orderbook/src/ipfs_app_data.rs:128
↓ 2 callersFunctiononchain_order_placement_error_from
( order: &FullOrderDb, )
crates/shared/src/db_order_conversions.rs:207
↓ 2 callersFunctionopen_orders_by_time_or_uids
( ex: &'a mut PgConnection, uids: &'a [OrderUid], after_timestamp: DateTime<Utc>, )
crates/database/src/orders.rs:851
↓ 2 callersMethodorder
(&self)
crates/liquidity-sources/src/zeroex.rs:217
↓ 2 callersFunctionorder_class_from
(order: &FullOrderDb)
crates/shared/src/db_order_conversions.rs:236
↓ 2 callersMethodorder_eip1271_signature
( &self, order: &OrderCreation, onchain: &OnchainComponents, )
crates/e2e/src/setup/onchain_components/safe.rs:222
↓ 2 callersFunctionorder_uid
Recover order uid from order data and signature
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:13
↓ 2 callersMethodorder_uid
The UID of the order.
crates/driver/src/tests/setup/blockchain.rs:176
↓ 2 callersFunctionorder_with_tokens
(token_a: Address, token_b: Address)
crates/solver/src/liquidity/zeroex.rs:233
↓ 2 callersMethodorders
Get the orders.
crates/winner-selection/src/solution.rs:48
↓ 2 callersMethodowner
Returns the owner address of the order extracted from the UID.
crates/solvers/src/domain/order.rs:30
↓ 2 callersMethodpaginated_query
Performs the specified GraphQL query on the current subgraph. This function should be called for queries that return very long(paginated) result.
crates/liquidity-sources/src/subgraph.rs:104
↓ 2 callersMethodparse_custom_event_data
( &self, contract_events: &[(ContractEvent, Log)], )
crates/autopilot/src/database/onchain_order_events/ethflow_events.rs:51
↓ 2 callersMethodpartially_fillable
Returns the signed partially fillable property of the order. You can't set this field in the API so it's enforced to be fill-or-kill. This function on
crates/driver/src/domain/competition/order/mod.rs:434
↓ 2 callersMethodpartially_fillable
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:68
↓ 2 callersMethodparts
Splits an order UID into its parts.
crates/model/src/order.rs:763
↓ 2 callersMethodparts
Splits an order UID into its parts.
crates/driver/src/domain/competition/order/mod.rs:260
↓ 2 callersMethodpast_events_by_block_hashes
( &self, blocks: &[BlockNumberHash], )
crates/event-indexing/src/event_handler.rs:513
↓ 2 callersMethodpath_candidates_with_hops
Returns possible path candidates with the specified number of maximum hops.
crates/solvers/src/boundary/routing.rs:175
↓ 2 callersFunctionpick_solve_deadline_impl
Picks a `/solve` deadline that ends shortly before a block gets mined to maximize the chance that solutions get mined instantly. If the auction needs
crates/autopilot/src/run_loop.rs:911
↓ 2 callersMethodpick_winners
Returns indices of winning solutions. Assumes that `solutions` is sorted by score descendingly. This logic was moved into a helper function to avoid a
crates/winner-selection/src/arbitrator.rs:570
↓ 2 callersMethodpoll_interval
(&self)
crates/pool-indexer/src/config.rs:113
↓ 2 callersMethodpool_id
(&self)
crates/solver/src/liquidity/balancer_v2.rs:135
↓ 2 callersFunctionpool_indexer_config
(factory: Address, metrics_port: u16)
crates/e2e/tests/e2e/pool_indexer.rs:193
↓ 2 callersFunctionpool_with_ticks
(id: Address, token0: Address, token1: Address)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:857
↓ 2 callersMethodpools_by_id
Returns all pool infos by their IDs.
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:111
↓ 2 callersFunctionpools_response
Shared `PoolsResponse` builder for the listing endpoints.
crates/pool-indexer/src/api/uniswap_v3/mod.rs:138
↓ 2 callersFunctionpow
(x: Ufixed256x18, y: Ufixed256x18)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:101
↓ 2 callersMethodpow_up
(self, exp: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:196
↓ 2 callersMethodpow_up_v3
(self, exp: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:203
↓ 2 callersMethodpre_interactions
(&self)
crates/driver/src/domain/competition/solution/mod.rs:230
↓ 2 callersMethodprecision
(&self)
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:130
↓ 2 callersFunctionprepare_request
( chain_id: String, tx: &TransactionRequest, overrides: StateOverride, block: BlockNo, )
crates/simulator/src/tenderly/mod.rs:214
↓ 2 callersFunctionprepare_submission
In EIP-7702 mode, reroute the tx through the solver EOA's delegate. Its fallback expects the 20-byte target address followed by target calldata. `from
crates/driver/src/domain/mempools.rs:549
↓ 2 callersMethodpresign_orders
For every order with signature scheme presign the simulation will contains state overrides to provide the signatures. This is useful when you have to
crates/simulator/src/simulation_builder.rs:287
↓ 2 callersMethodprice_estimator
( &mut self, solvers: &[ExternalSolver], native: Arc<dyn NativePriceEstimating>,
crates/price-estimation/src/factory.rs:375
↓ 2 callersMethodprioritize
(&'a self, operation: T)
crates/gas-price-estimation/src/priority.rs:39
↓ 2 callersMethodproduce_results
Produce results for the given `input` until the caller does not expect any more results or we produced all the results we can.
crates/price-estimation/src/competition/mod.rs:84
↓ 2 callersFunctionprotocol_fee_test_case
(test_case: TestCase)
crates/driver/src/tests/cases/jit_orders.rs:57
↓ 2 callersMethodquality_based_on_stats
(&self, stats: &OrderStatistics)
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:85
↓ 2 callersFunctionquery_fields
(query: &Query)
crates/price-estimation/src/competition/quote.rs:196
↓ 2 callersFunctionquote
(router: axum::Router<State>)
crates/driver/src/infra/api/routes/quote/mod.rs:13
↓ 2 callersFunctionquote_kind_from_signing_scheme
(scheme: &QuoteSigningScheme)
crates/shared/src/order_quoting.rs:737
↓ 2 callersFunctionratio_to_u32
Highly corelated to Uniswap V3 only. Converts: 1% fee to 10000 0.3% fee to 3000 0.05% to 500 0.01% to 100
crates/solver/src/liquidity/uniswap_v3.rs:52
↓ 2 callersFunctionrational_to_big_decimal
(value: &Ratio<T>)
crates/number/src/conversions.rs:18
↓ 2 callersMethodraw_order_data
(&self)
crates/driver/src/infra/solver/dto/solution.rs:311
↓ 2 callersFunctionread_order_interactions
( ex: &mut PgConnection, id: &OrderUid, execution: ExecutionTime, )
crates/database/src/orders.rs:1100
↓ 2 callersMethodread_quotes
Get quotes for all orders in the auction. Doesn't guarantee that all orders have quotes.
crates/autopilot/src/database/quotes.rs:28
↓ 2 callersMethodrecord_auction_overhead
Like [`Self::measure_auction_overhead`] but for a duration that was timed elsewhere (e.g. serialization cost isolated from transmission).
crates/observe/src/metrics.rs:206
↓ 2 callersMethodrecord_tick_range_delta
( &mut self, pool: Address, lower_tick: i32, upper_tick: i32, liquidit
crates/pool-indexer/src/indexer/uniswap_v3.rs:911
↓ 2 callersFunctionrefund
(order_uid: OrderUid)
crates/database/src/ethflow_orders.rs:231
↓ 2 callersMethodregister
Registers an app-data document matching the specified app-data hash to the registry, ensuring that there exists an entry linking the specified app dat
crates/orderbook/src/app_data.rs:42
↓ 2 callersMethodremaining
(self)
crates/driver/src/domain/time.rs:64
↓ 2 callersMethodremove_pools_newer_than_block
Removes all pool creations from the specified block.
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:145
↓ 2 callersMethodreplace_events
( &mut self, events: Vec<(T, alloy_rpc_types::Log)>, range: RangeInclusive
crates/event-indexing/src/event_handler.rs:713
↓ 2 callersMethodreplace_order
( &self, old_order: &model::order::OrderUid, new_order: &model::order::Order, )
crates/orderbook/src/database/orders.rs:260
↓ 2 callersMethodreport_winner
( &self, query: &Q, kind: OrderKind, (index, result): ResultWithIndex<R>,
crates/price-estimation/src/competition/mod.rs:158
↓ 2 callersFunctionrequest
(method: &'static str, id: u64)
crates/ethrpc/src/alloy/rpc_headers.rs:181
↓ 2 callersMethodrequest_response
( &self, path: &str, payload: Request, )
crates/autopilot/src/infra/solvers/mod.rs:112
↓ 2 callersMethodresolve_block
The subgraph queries by concrete block, so `Latest` resolves to the safe head.
crates/liquidity-sources/src/uniswap_v3/graph_api.rs:173
↓ 2 callersFunctionretain_valid_orders
(orders: &mut Vec<OrderRecord>)
crates/liquidity-sources/src/zeroex.rs:401
↓ 2 callersFunctionretry_with_sleep_if
Retry only when `should_retry(&err)` returns true.
crates/shared/src/retry.rs:18
↓ 2 callersFunctionrich_error
( error_type: &'static str, description: impl AsRef<str>, data: impl Serialize, )
crates/orderbook/src/api.rs:422
↓ 2 callersFunctionrouter
(pool: &ConstantProductOrder)
crates/driver/src/boundary/liquidity/uniswap/v2.rs:46
↓ 2 callersFunctionrpc
Creates a node RPC instance.
crates/solvers/src/infra/blockchain.rs:2
↓ 2 callersMethodrun_forever
(mut self)
crates/autopilot/src/shadow.rs:78
↓ 2 callersMethodrun_once
(&self)
crates/pool-indexer/src/indexer/uniswap_v3.rs:176
↓ 2 callersFunctionrun_with
Run the driver. This function exists to avoid multiple monomorphizations of the `run` code, which bloats the binaries and increases compile times.
crates/driver/src/run.rs:50
↓ 2 callersFunctionrun_with
(args: cli::Args, bind: Option<oneshot::Sender<SocketAddr>>)
crates/solvers/src/run.rs:28
↓ 2 callersMethodsanitized_competition
Builds a [`CompetitionEstimator`] over the given estimators, with each one wrapped in its own sanitizer. This per-estimator shape lets the single comp
crates/price-estimation/src/factory.rs:358
↓ 2 callersMethodsaturating_add
(self, v: Self)
crates/autopilot/src/domain/competition/mod.rs:93
↓ 2 callersFunctionsave_solutions
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:265
↓ 2 callersFunctionsave_trade_executions
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:293
↓ 2 callersMethodscalar_mul
(&self, scalar: U256)
crates/number/src/ratio_ext.rs:24
← previousnext →1,201–1,300 of 8,522, ranked by callers