MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 1,052 callersFunctionnew
( auction: &competition::Auction, liquidity: &[liquidity::Liquidity], weth: eth::WrappedNativeToke
crates/driver/src/infra/solver/dto/auction.rs:24
↓ 959 callersMethodunwrap
(data: &[u8])
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:4305
↓ 804 callersMethodclone
(&self)
crates/price-estimation/src/lib.rs:87
↓ 644 callersMethodinto
(self)
crates/driver/src/domain/flashloan.rs:29
↓ 312 callersMethodcollect
(data: &[u8])
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5106
↓ 249 callersMethodcontext
(&'a self, prices: &'a ExternalPrices)
crates/solver/src/liquidity/slippage.rs:119
↓ 221 callersMethoditer
(&self)
crates/app-data/src/app_data.rs:494
↓ 220 callersMethodto_string
(&self, contracts: &Contracts)
crates/e2e/src/setup/colocation.rs:102
↓ 166 callersMethodlen
(&self)
crates/price-estimation/src/native_price_cache.rs:216
↓ 163 callersFunctionnow
()
crates/driver/src/infra/time.rs:3
↓ 149 callersMethodinto_iter
(self)
crates/model/src/lib.rs:80
↓ 139 callersMethodok
Expect the /solve endpoint to have returned a 200 OK response.
crates/driver/src/tests/setup/mod.rs:1269
↓ 134 callersFunctionget
(ex: &mut PgConnection, id: QuoteId)
crates/database/src/quotes.rs:85
↓ 128 callersMethodaddress
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:39
↓ 118 callersMethodeth
(self)
crates/number/src/units.rs:39
↓ 115 callersMethodget
The first address is always the lower one. The addresses are never equal.
crates/model/src/lib.rs:57
↓ 111 callersMethodcall
(&mut self, packet: RequestPacket)
crates/ethrpc/src/alloy/buffering.rs:263
↓ 110 callersMethodas_slice
(&self)
crates/configs/src/native_price_estimators.rs:44
↓ 103 callersMethodcontracts
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:632
↓ 101 callersFunctiondeploy
( __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2783
↓ 99 callersMethodfinish
(self)
crates/s3/src/lib.rs:32
↓ 98 callersFunctionrun_test
Testing* function that takes a closure and runs it on a local testing node and database. Before each test, it creates a snapshot of the current state
crates/e2e/src/setup/mod.rs:119
↓ 98 callersMethodsend
( self, client: &reqwest::Client, base
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/request.rs:88
↓ 95 callersMethodis_empty
(&self)
crates/eth-domain-types/src/access_list.rs:18
↓ 93 callersFunctionconnect
(config: &EventBusConfig)
crates/observe/src/event_bus/mod.rs:73
↓ 93 callersFunctionnow_in_epoch_seconds
The current time in the same unit as `valid_to` for orders in the smart contract.
crates/model/src/time.rs:8
↓ 92 callersMethodmake_accounts
Generate next `N` accounts with the given initial balance.
crates/e2e/src/setup/onchain_components/mod.rs:225
↓ 92 callersMethodtry_into
(self)
crates/driver/src/util/percent.rs:16
↓ 89 callersMethodfrom
(value: u64)
crates/eth-domain-types/src/gas.rs:16
↓ 89 callersMethodinsert
(&self, token: Address, result: CacheEntry)
crates/price-estimation/src/native_price_cache.rs:253
↓ 89 callersMethodmake_solvers
Generate next `N` accounts with the given initial balance and authenticate them as solvers.
crates/e2e/src/setup/onchain_components/mod.rs:239
↓ 88 callersMethodsend_and_watch
(&self, tx: TransactionRequest)
crates/ethrpc/src/alloy/mod.rs:158
↓ 87 callersMethodinto
(self)
crates/solvers/src/infra/config/dex/bitget/file.rs:49
↓ 86 callersMethoditer
(&self)
crates/driver/src/domain/competition/auction.rs:145
↓ 85 callersMethodapprove
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1929
↓ 85 callersFunctionclear_DANGER_
(ex: &mut PgTransaction<'_>)
crates/database/src/lib.rs:97
↓ 78 callersMethoddeploy_tokens_with_weth_uni_v2_pools
Deploy `N` tokens with WETH Uniswap pools.
crates/e2e/src/setup/onchain_components/mod.rs:358
↓ 74 callersFunctionwait_for_condition
Repeatedly evaluates condition until it returns a truthy value (true, Some(true), Result(true)) or the timeout is reached. If condition evaluates to t
crates/e2e/src/setup/mod.rs:45
↓ 70 callersMethodether
(self)
crates/driver/src/tests/cases/mod.rs:95
↓ 70 callersMethodinto_wei
Converts the value into Wei, the smallest unit of Ethereum.
crates/driver/src/tests/cases/mod.rs:62
↓ 69 callersFunctionquery
(token: u8)
crates/account-balances/src/cached.rs:222
↓ 68 callersMethodsign
( self, signing_scheme: EcdsaSigningScheme, domain: &DomainSeparator, key: &Pr
crates/e2e/src/setup/solver/solution.rs:43
↓ 67 callersMethodcreate_order
Create an [`Order`]. If the response status code is not `201`, return the status and the body.
crates/e2e/src/setup/services.rs:542
↓ 67 callersMethodmint_block
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:627
↓ 66 callersMethodchecked_mul
(&self, other: &Self)
crates/eth-domain-types/src/token_amount.rs:66
↓ 65 callersMethodacquire
Acquire a submission slot. Prefers the direct solver EOA slot (cheaper, no forwarding). Falls back to a delegated EIP-7702 account when the direct slo
crates/driver/src/domain/competition/mod.rs:128
↓ 53 callersMethodbalanceOf
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1950
↓ 51 callersMethodextend
(data: &[u8])
contracts/generated/contracts-generated/izeroex/src/lib.rs:7326
↓ 51 callersMethodmint
(&self, to: Address, amount: U256)
crates/e2e/src/setup/onchain_components/mod.rs:103
↓ 50 callersMethodcontains
Used to determine if `token` is among the pair.
crates/model/src/lib.rs:39
↓ 50 callersMethodfetch_all
`Some(true)` as soon as any backend confirms a ban — a failure elsewhere must not mask a positive hit. `None` means no confirmation and at least one f
crates/order-validation/src/banned/cached.rs:107
↓ 50 callersMethodnext
(&mut self)
crates/e2e/src/setup/onchain_components/mod.rs:80
↓ 50 callersMethodstatus
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:908
↓ 49 callersMethodas_str
Kebab-case slug used in URLs and per-network configs (pool-indexer API routes, DB database names, etc). Stable — other services parse it.
crates/chain/src/lib.rs:55
↓ 49 callersMethodinto_iter
(self)
crates/driver/src/domain/liquidity/uniswap/v2.rs:77
↓ 49 callersMethodorder
Add a new order to be solved as part of the test. This order will be passed to /solve when [`Test::solve`] is called and it will be anticipated by the
crates/driver/src/tests/setup/mod.rs:823
↓ 48 callersMethodchecked_div
(&self, other: &Self)
crates/eth-domain-types/src/token_amount.rs:86
↓ 48 callersFunctionget_storage_registry
Get the global instance of the metric storage registry. # Implementation notice If global metrics registry was not configured with [`setup_registry`
crates/observe/src/metrics.rs:73
↓ 48 callersMethoditer
Returns an iterator over the token reserves.
crates/solvers/src/domain/liquidity/stable.rs:41
↓ 48 callersMethodsolution
Add a solution to be returned by the mock solver.
crates/driver/src/tests/setup/mod.rs:848
↓ 48 callersMethodstart_protocol
Starts a basic version of the protocol with a single baseline solver.
crates/e2e/src/setup/services.rs:235
↓ 47 callersMethodaddress
(&self)
crates/cow-amm/src/amm.rs:37
↓ 46 callersFunctionsetup
Create a builder for the setup process.
crates/driver/src/tests/setup/mod.rs:510
↓ 45 callersMethoddone
Create the test: set up onchain contracts and pools, start a mock HTTP server for the solver and start the HTTP server for the driver.
crates/driver/src/tests/setup/mod.rs:920
↓ 45 callersMethodexecute
Race the enabled mempools concurrently; first success wins. Pending submission futures are dropped at that point and every other mempool is recorded a
crates/driver/src/domain/mempools.rs:64
↓ 44 callersMethodpool
Add a uniswap pool with the specified reserves. Tokens are identified by their symbols. Every order will be solved through one of the pools.
crates/driver/src/tests/setup/mod.rs:806
↓ 42 callersMethodchecked_add
(&self, other: &Self)
crates/eth-domain-types/src/token_amount.rs:72
↓ 41 callersMethodget_order
Retrieve an [`Order`]. If the respons status is not `200`, return the status and the body.
crates/e2e/src/setup/services.rs:609
↓ 41 callersMethodinto_iter
(self)
crates/simulator/src/encoding.rs:63
↓ 40 callersFunctionab_order
An example order which sells token "A" for token "B".
crates/driver/src/tests/setup/mod.rs:668
↓ 40 callersFunctionab_solution
A solution solving the [`ab_order`].
crates/driver/src/tests/setup/mod.rs:688
↓ 39 callersMethodas_bytes
(&self)
crates/model/src/order.rs:990
↓ 39 callersFunctionprotocol_fee_test_case
(test_case: TestCase)
crates/driver/src/tests/cases/protocol_fees.rs:50
↓ 38 callersFunctionab_pool
A pool between tokens "A" and "B".
crates/driver/src/tests/setup/mod.rs:654
↓ 37 callersMethodsaturating_sub
(self, v: Self)
crates/eth-domain-types/src/lib.rs:116
↓ 37 callersMethodsolve
Call the /solve endpoint.
crates/driver/src/tests/setup/mod.rs:1092
↓ 36 callersFunctiontest
(web3: Web3)
crates/e2e/tests/e2e/univ2.rs:21
↓ 35 callersMethodaddress
(&self)
crates/driver/src/tests/setup/mod.rs:401
↓ 35 callersFunctionparse
(full_app_data: &[u8])
crates/app-data/src/app_data.rs:291
↓ 34 callersMethodis_empty
An empty solution has no trades which is allowed to capture surplus and a score of 0.
crates/driver/src/domain/competition/solution/mod.rs:354
↓ 33 callersMethodelapsed
Total time spent in downstream `write`/`flush` calls so far.
crates/driver/src/infra/solver/streaming/timed_writer.rs:28
↓ 33 callersMethodsubmit_quote
Submit an [`model::quote::OrderQuote`]. If the response status is not `200`, return the status and the body.
crates/e2e/src/setup/services.rs:566
↓ 32 callersMethodany
Creates an configuration where any `validTo` is accepted.
crates/shared/src/order_validation.rs:1054
↓ 32 callersMethodget
Returns the `Metadata` for the given tokens. Note that the result will not contain data for tokens that encountered errors while fetching the data.
crates/driver/src/infra/tokens.rs:50
↓ 32 callersMethodis_zero
(&self)
crates/app-data/src/app_data_hash.rs:49
↓ 31 callersMethoddeposit
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2436
↓ 30 callersMethodsolve
Solves a raw JSON auction.
crates/solvers/src/tests/mod.rs:72
↓ 30 callersFunctionweb3
Create a Web3 instance with a label for observability.
crates/shared/src/web3.rs:72
↓ 29 callersMethodcommit
(data: &[u8])
contracts/generated/contracts-generated/cowamm/src/lib.rs:3510
↓ 28 callersMethodfilter
(&self)
crates/cow-amm/src/factory.rs:22
↓ 28 callersFunctionget
Get the metrics instance.
crates/driver/src/infra/observe/metrics.rs:86
↓ 28 callersMethodstart_protocol_with_args
( &self, autopilot_config: configs::autopilot::Configuration, orderbook_config: config
crates/e2e/src/setup/services.rs:244
↓ 27 callersMethodas_str
(&self)
crates/driver/src/infra/solver/mod.rs:53
↓ 27 callersFunctiondeserialize
(deserializer: D)
crates/bytes-hex/src/lib.rs:23
↓ 26 callersMethodcalldata
(self)
crates/driver/src/tests/setup/mod.rs:1463
↓ 26 callersMethodchecked_sub
(&self, v: &Self)
crates/eth-domain-types/src/ether.rs:47
↓ 26 callersMethodexecute
If a task produces a result which indicates rate limiting is required future requests will get dropped for some time. Every successive response like t
crates/rate-limit/src/lib.rs:150
↓ 26 callersFunctioninsert_order
(ex: &mut PgConnection, order: &Order)
crates/database/src/orders.rs:213
↓ 25 callersMethodstart_api
Start the api service in a background tasks. Wait until the service is responsive.
crates/e2e/src/setup/services.rs:219
↓ 25 callersFunctiontest_solver
()
crates/driver/src/tests/setup/mod.rs:376
next →1–100 of 8,522, ranked by callers