MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions9,022 in github.com/cowprotocol/services

↓ 4 callersFunctionevm_uid
(digest: u8, owner: u8)
crates/winner-selection/src/tests.rs:19
↓ 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 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 callersMethodfilter
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:26
↓ 4 callersMethodfinalize
(self)
crates/driver/src/infra/solver/streaming/mod.rs:152
↓ 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
(frames: Vec<Frame>)
crates/simulator/src/state_override_stream.rs:637
↓ 4 callersFunctiongas
(value: u64)
crates/driver/src/domain/competition/solution/settlement.rs:460
↓ 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:199
↓ 4 callersMethodget
Returns the wrapped token pair as a tuple.
crates/driver/src/domain/liquidity/mod.rs:85
↓ 4 callersMethodget
()
crates/autopilot/src/solvable_orders.rs:85
↓ 4 callersMethodget
The inferred spacing, or `None` until a gap has been seen.
crates/simulator/src/state_override_stream.rs:198
↓ 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_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:680
↓ 4 callersFunctionget_quote_and_check_fee
Retrieves the quote for an order that is being created and verify that its fee is sufficient. The fee is checked only if `fee_amount` is specified.
crates/shared/src/order_validation.rs:1131
↓ 4 callersFunctionget_relevant_pairs
(token_a: Address, token_b: Address)
crates/solver/src/liquidity/zeroex.rs:227
↓ 4 callersMethodget_token_info
(&self, address: Address)
crates/token-info/src/lib.rs:79
↓ 4 callersMethodget_token_infos
(&self, addresses: &[Address])
crates/token-info/src/lib.rs:88
↓ 4 callersFunctionhandler
(source: StubSource, checkpoint: PoolsCheckpoint)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:893
↓ 4 callersMethodhash
Returns the app data hash. Does not validate expectation.
crates/model/src/order.rs:480
↓ 4 callersMethodhash
Returns the hash value for the specified source.
crates/driver/src/domain/competition/order/mod.rs:371
↓ 4 callersMethodid
(&self)
crates/autopilot-svm/src/domain/auction.rs:53
↓ 4 callersMethodinclude_slippage_bps
(&self, slippage: u16)
crates/e2e/tests/e2e/ethflow.rs:899
↓ 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:552
↓ 4 callersFunctioninsert_order_and_ignore_conflicts
( ex: &mut PgConnection, order: &Order, )
crates/database/src/orders.rs:171
↓ 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 callersMethodinternalize
Should the interaction be internalized?
crates/driver/src/domain/competition/solution/interaction.rs:18
↓ 4 callersMethodinto_inner
(self)
crates/driver/src/infra/solver/streaming/timed_writer.rs:32
↓ 4 callersMethodinto_source
(&self, web3: &Web3)
crates/liquidity-sources/src/uniswap_v2/mod.rs:102
↓ 4 callersFunctionis_order_outside_market_price
Checks whether or not an order's limit price is outside the market price specified by the quote.
crates/shared/src/order_validation.rs:1233
↓ 4 callersMethodjit_orders
(&self)
crates/price-estimation/src/trade_finding/mod.rs:126
↓ 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 callersFunctionlanes_of
(overrides: &StateOverride)
crates/simulator/src/state_override_stream.rs:596
↓ 4 callersMethodlast_event_block
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:121
↓ 4 callersFunctionload
Load the driver configuration from a TOML file. # Panics This method panics if the config is invalid or on I/O errors.
crates/solana-driver/src/infra/config.rs:26
↓ 4 callersFunctionload_by_id
( mut ex: &mut PgConnection, id: AuctionId, after_block: Option<i64>, )
crates/database/src/solver_competition_v2.rs:118
↓ 4 callersFunctionlog_to_event_index
(log: &Log)
crates/autopilot/src/database/events.rs:115
↓ 4 callersFunctionmake_query
()
crates/price-estimation/src/competition/mod.rs:635
↓ 4 callersFunctionmake_streaming_quoter
Helpers shared by the streaming tests below.
crates/shared/src/order_quoting.rs:2274
↓ 4 callersFunctionmap_interactions_data
( interactions: impl IntoIterator<Item = &'a Interaction>, )
crates/price-estimation/src/trade_finding/mod.rs:347
↓ 4 callersMethodmax
Returns the maximum valid timestamp for the specified order.
crates/shared/src/order_validation.rs:1105
↓ 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 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:895
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1825
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:786
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/hookstrampoline/src/lib.rs:1046
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2768
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepool/src/lib.rs:538
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/flashloanrouter/src/lib.rs:281
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpool2tokensfactory/src/lib.rs:739
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactory/src/lib.rs:721
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balances/src/lib.rs:1001
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:910
↓ 4 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowprotocoltoken/src/lib.rs:3786
↓ 4 callersMethodno_surplus
Ensure that this order generates no surplus, and therefore most likely has a negative score.
crates/driver/src/tests/setup/mod.rs:179
↓ 4 callersFunctionorder
(side: dex::Side)
crates/solana-solvers/src/dto/solution.rs:159
↓ 4 callersMethodorder_priority_strategy
(mut self, strategy: OrderPriorityStrategy)
crates/driver/src/tests/setup/mod.rs:839
↓ 4 callersFunctionorder_simulator
(sim: MockOrderSimulating)
crates/shared/src/order_validation.rs:3207
↓ 4 callersMethodowner
(&self)
crates/autopilot/src/domain/auction/order.rs:40
↓ 4 callersMethodprovider
(&self)
crates/event-indexing/src/event_handler.rs:708
↓ 4 callersFunctionpubkey
(byte: u8)
crates/solana-solvers/src/domain/solver/mod.rs:69
↓ 4 callersMethodput_app_data
( &self, app_data: Option<AppDataHash>, full_app_data: &str, )
crates/e2e/src/setup/services.rs:743
↓ 4 callersFunctionquote_body
A quote body with the given validity fields, otherwise well formed.
crates/solana-orderbook/tests/api.rs:118
↓ 4 callersFunctionread_last_block_from_db
(db: &PgPool, contract: &str)
crates/autopilot/src/boundary/events/mod.rs:19
↓ 4 callersFunctionread_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/ethflow_orders.rs:65
↓ 4 callersFunctionread_quotes
( ex: &mut sqlx::PgConnection, order_ids: &[OrderUid], )
crates/database/src/orders.rs:454
↓ 4 callersMethodreference_price
(&self, token: &eth::TokenAddress)
crates/solvers/src/domain/auction.rs:30
↓ 4 callersFunctionrefundable_orders
( ex: &mut PgConnection, since_valid_to: i64, min_validity_duration: i64, min_price_deviation:
crates/database/src/ethflow_orders.rs:130
↓ 4 callersMethodrequest
Prepares a request builder which already has additional headers set.
crates/solvers/src/infra/dex/mod.rs:75
↓ 4 callersFunctionreserves
(reserve0: u128, reserve1: u128)
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:535
↓ 4 callersMethodrun_maintenance_for_blocks
( mut self, blocks: impl Stream<Item = BlockInfo>, )
crates/event-indexing/src/maintenance.rs:26
↓ 4 callersFunctionsample_auction_dto
()
crates/solana-driver/src/infra/solver/dto/solution.rs:249
↓ 4 callersFunctionsave
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:248
↓ 4 callersMethodscore
(&self)
crates/winner-selection/src/state.rs:112
↓ 4 callersMethodsell_amount
The effective amount that left the user's wallet including all fees.
crates/driver/src/domain/competition/solution/trade.rs:69
↓ 4 callersFunctionsell_token_source_into
(source: SellTokenSource)
crates/shared/src/db_order_conversions.rs:249
↓ 4 callersMethodsend_and_confirm_transaction
Send a signed transaction and wait for confirmation.
crates/solana-driver/src/infra/blockchain/mod.rs:56
↓ 4 callersFunctionserve
(listen_addr: SocketAddr, backends: Vec<Url>, state: ProxyState)
crates/e2e/src/setup/proxy.rs:119
↓ 4 callersFunctionsetup_native_price_mock
( native_price_estimator: &mut MockNativePriceEstimating, sell_token: Address, buy_tok
crates/shared/src/order_quoting.rs:2317
↓ 4 callersFunctionsetup_registry
Configure global metrics registry. This function allows specifying common prefix that will be added to all metric names, as well as common labels. T
crates/observe/src/metrics.rs:42
↓ 4 callersFunctionsigning_scheme_into
(scheme: SigningScheme)
crates/shared/src/db_order_conversions.rs:279
↓ 4 callersFunctionsolution
(trades: Vec<Trade>)
crates/solana-driver/src/domain/settlement.rs:608
↓ 4 callersFunctionsolve_request
The autopilot's own literal `/solve` request JSON. The deadline is computed relative to now so the request is always solvable, regardless of when the
crates/solana-driver/tests/api.rs:120
↓ 4 callersMethodsolve_with_solver
(&self, solver: &str)
crates/driver/src/tests/setup/mod.rs:1120
↓ 4 callersMethodspawn_background_task
Spawns task that refreshes the cached balances on every new block. Refreshes must stay serialized: a second concurrent refresh could overwrite a newer
crates/account-balances/src/cached.rs:104
↓ 4 callersFunctionspawn_server
Spawn the API server on an ephemeral port and return its bound address.
crates/solana-orderbook/tests/api.rs:31
↓ 4 callersFunctionstart
The driver entry-point. This function exists in order to be able to run the driver from multiple binaries.
crates/driver/src/run.rs:32
← previousnext →601–700 of 9,022, ranked by callers