MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,749 in github.com/cowprotocol/services

↓ 1,632 callersMethodunwrap
(data: &[u8])
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:4304
↓ 1,568 callersFunctionnew
( auction: &competition::Auction, liquidity: &[liquidity::Liquidity], weth: eth::WrappedNativeToke
crates/driver/src/infra/solver/dto/auction.rs:24
↓ 998 callersMethodclone
(&self)
crates/price-estimation/src/lib.rs:89
↓ 694 callersMethodinto
(self)
crates/driver/src/domain/flashloan.rs:41
↓ 509 callersMethodcollect
(data: &[u8])
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5105
↓ 316 callersMethoditer
(&self)
crates/app-data/src/app_data.rs:578
↓ 262 callersFunctionnow
()
crates/driver/src/infra/time.rs:3
↓ 194 callersMethodok
Expect the /solve endpoint to have returned a 200 OK response.
crates/driver/src/tests/setup/mod.rs:1345
↓ 183 callersMethodinto_iter
(self)
crates/model/src/lib.rs:80
↓ 177 callersFunctionget
(ex: &mut PgConnection, id: QuoteId)
crates/database/src/quotes.rs:110
↓ 170 callersMethodlen
(&self)
crates/ethrpc/src/alloy/buffering.rs:308
↓ 166 callersMethoditer
Returns an iterator over the token reserves.
crates/solvers/src/domain/liquidity/stable.rs:41
↓ 146 callersMethodaddress
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:39
↓ 137 callersMethodis_empty
(&self)
crates/eth-domain-types/src/access_list.rs:18
↓ 134 callersMethodeth
(self)
crates/number/src/units.rs:39
↓ 127 callersFunctionconnect
Connect to a Yellowstone gRPC endpoint. `endpoint` decides TLS by scheme: `https` endpoints get TLS with the system's native root certificates (the t
crates/solana-indexer/src/yellowstone.rs:37
↓ 125 callersFunctionquery
(token: u8)
crates/account-balances/src/cached.rs:231
↓ 124 callersMethodas_slice
(&self)
crates/configs/src/native_price_estimators.rs:44
↓ 124 callersFunctionspawn
Deletes expired quotes and order events older than `cleanup_threshold`, once at startup and then every `cleanup_interval`. A failed run is logged and
crates/autopilot-svm/src/infra/cleanup.rs:11
↓ 122 callersMethodinto
(self)
crates/solvers/src/infra/config/dex/bitget/file.rs:49
↓ 121 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:118
↓ 118 callersMethodcontracts
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:634
↓ 117 callersFunctiondeploy
( __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2781
↓ 116 callersMethodinsert
(self, pool: &PgPool)
crates/solana-indexer/src/persistence.rs:856
↓ 111 callersMethodtry_into
(self)
crates/driver/src/util/percent.rs:16
↓ 110 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
↓ 108 callersMethodcall
(&mut self, packet: RequestPacket)
crates/ethrpc/src/alloy/buffering.rs:496
↓ 107 callersMethodmake_accounts
Generate next `N` accounts with the given initial balance.
crates/e2e/src/setup/onchain_components/mod.rs:225
↓ 105 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
↓ 103 callersMethodfinish
(self)
crates/s3/src/lib.rs:32
↓ 102 callersMethodfrom
(value: u64)
crates/eth-domain-types/src/gas.rs:16
↓ 101 callersMethodsend_and_watch
(&self, tx: TransactionRequest)
crates/ethrpc/src/alloy/mod.rs:187
↓ 100 callersMethodbind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-solvers/src/api.rs:28
↓ 98 callersMethodapprove
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1928
↓ 98 callersFunctionclear_DANGER_
(ex: &mut PgTransaction<'_>)
crates/database/src/lib.rs:92
↓ 96 callersMethodinto_iter
(self)
crates/simulator/src/encoding.rs:64
↓ 96 callersMethoditer
(&self)
crates/driver/src/domain/competition/auction.rs:183
↓ 95 callersMethodbind
Reserves the address of the builder. The test node only exists once the test is set up, so the builder starts serving later.
crates/driver/src/tests/setup/builder.rs:23
↓ 93 callersMethoddeploy_tokens_with_weth_uni_v2_pools
Deploy `N` tokens with WETH Uniswap pools.
crates/e2e/src/setup/onchain_components/mod.rs:360
↓ 88 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
↓ 85 callersMethodaddress
(&self)
crates/driver/src/tests/setup/mod.rs:384
↓ 81 callersMethodsign
( self, signing_scheme: EcdsaSigningScheme, domain: &DomainSeparator, key: &Pr
crates/e2e/src/setup/solver/solution.rs:43
↓ 80 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:555
↓ 79 callersMethodfetch_all
`Some(true)` as soon as any backend confirms a ban, since a failure elsewhere must not mask a positive hit. `None` means no confirmation and at least
crates/order-validation/src/banned/cached.rs:141
↓ 78 callersMethodget
The first address is always the lower one. The addresses are never equal.
crates/model/src/lib.rs:57
↓ 75 callersMethodmint_block
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:629
↓ 72 callersMethodsend
( &self, request: RpcRequest, params: serde_json::Value, )
crates/cow-solana-rpc/src/lib.rs:530
↓ 71 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:135
↓ 71 callersMethodextend
(data: &[u8])
contracts/generated/contracts-generated/izeroex/src/lib.rs:7325
↓ 70 callersMethodfilter
(&self)
crates/event-indexing/src/event_handler.rs:704
↓ 70 callersMethodget
The raw id value. Guaranteed positive by construction.
crates/solana-driver/src/domain/auction.rs:42
↓ 70 callersMethodsend
( &self, request: reqwest::RequestBuilder, )
crates/solana-solvers/src/dex/jupiter/mod.rs:129
↓ 70 callersMethodstatus
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:922
↓ 69 callersMethodether
(self)
crates/driver/src/tests/cases/mod.rs:96
↓ 69 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
↓ 69 callersMethodinto_wei
Converts the value into Wei, the smallest unit of Ethereum.
crates/driver/src/tests/cases/mod.rs:63
↓ 68 callersFunctionparse
(full_app_data: &[u8])
crates/app-data/src/app_data.rs:307
↓ 65 callersMethodnext
The next unused quote id, refilling the buffer from the generator when it runs empty.
crates/price-estimation/src/quote_id.rs:49
↓ 64 callersMethodpost
(&self, request: &SignedRequest)
crates/driver/src/infra/builders.rs:388
↓ 61 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:151
↓ 60 callersMethodchecked_mul
(&self, other: &Self)
crates/eth-domain-types/src/token_amount.rs:66
↓ 59 callersMethodsaturating_sub
(self, v: Self)
crates/eth-domain-types/src/lib.rs:118
↓ 56 callersMethodelapsed
Total time spent in downstream `write`/`flush` calls so far.
crates/driver/src/infra/solver/streaming/timed_writer.rs:28
↓ 55 callersMethodany
Creates an configuration where any `validTo` is accepted.
crates/shared/src/order_validation.rs:1172
↓ 55 callersMethodcontains
Used to determine if `token` is among the pair.
crates/model/src/lib.rs:39
↓ 55 callersMethodmint
(&self, to: Address, amount: U256)
crates/e2e/src/setup/onchain_components/mod.rs:103
↓ 55 callersFunctionpubkey
(byte: u8)
crates/solana-driver/src/domain/settlement.rs:1087
↓ 54 callersMethodas_bytes
(&self)
crates/model/src/order.rs:913
↓ 53 callersMethodget_order
Retrieve an [`Order`]. If the respons status is not `200`, return the status and the body.
crates/e2e/src/setup/services.rs:622
↓ 52 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:821
↓ 52 callersMethodsolution
Add a solution to be returned by the mock solver.
crates/driver/src/tests/setup/mod.rs:846
↓ 52 callersMethodstart_protocol
Starts a basic version of the protocol with a single baseline solver.
crates/e2e/src/setup/services.rs:237
↓ 51 callersMethodchecked_add
(&self, other: &Self)
crates/eth-domain-types/src/token_amount.rs:72
↓ 51 callersMethodinto_iter
(self)
crates/driver/src/domain/liquidity/uniswap/v2.rs:77
↓ 50 callersMethodbalanceOf
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1949
↓ 50 callersFunctiondeserialize
(deserializer: D)
crates/bytes-hex/src/lib.rs:18
↓ 50 callersFunctionsetup
Create a builder for the setup process.
crates/driver/src/tests/setup/mod.rs:482
↓ 49 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:918
↓ 48 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:804
↓ 47 callersMethodexecute
( &self, settlement: &EncodedSettlement, submission_deadline: BlockNo, mode: &
crates/driver/src/infra/builders.rs:334
↓ 44 callersFunctionab_order
An example order which sells token "A" for token "B".
crates/driver/src/tests/setup/mod.rs:661
↓ 44 callersFunctionab_solution
A solution solving the [`ab_order`].
crates/driver/src/tests/setup/mod.rs:681
↓ 42 callersFunctionab_pool
A pool between tokens "A" and "B".
crates/driver/src/tests/setup/mod.rs:647
↓ 42 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:579
↓ 41 callersFunctiontest
(web3: Web3)
crates/e2e/tests/e2e/univ2.rs:21
↓ 41 callersFunctiontest_settlement
Convenience wrapper around `Settlement::new` using the test fixture defaults.
crates/solana-driver/src/domain/settlement.rs:1162
↓ 40 callersMethodobserve
Records the gap `head` opened over the block seen before it. Repeats of the same head, and blocks arriving out of order, carry no gap to learn from an
crates/simulator/src/state_override_stream.rs:274
↓ 40 callersMethodroute
( &self, request: solver::Request, max_hops: usize, )
crates/solvers/src/boundary/baseline.rs:44
↓ 39 callersMethodbind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-orderbook/src/infra/api/mod.rs:91
↓ 39 callersMethodsolve
Call the /solve endpoint.
crates/driver/src/tests/setup/mod.rs:1114
↓ 38 callersMethoddeposit
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2435
↓ 38 callersFunctionprotocol_fee_test_case
(test_case: TestCase)
crates/driver/src/tests/cases/protocol_fees.rs:49
↓ 36 callersMethodtake
Remove and return the solution cached under `account`, if any. Consumed on read: a fast-path solution settles at most once.
crates/driver/src/domain/competition/quote_cache.rs:68
↓ 35 callersMethodchecked_div
(&self, other: &Self)
crates/eth-domain-types/src/token_amount.rs:86
↓ 35 callersMethodfind
Finds full app data for an order that only has the contract app data hash. The full app data can be located in the database or on IPFS.
crates/orderbook/src/app_data.rs:117
↓ 35 callersMethodget
()
crates/ethrpc/src/alloy/buffering.rs:562
↓ 35 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:47
↓ 35 callersMethodstart_protocol_with_args
( &self, autopilot_config: configs::autopilot::Configuration, orderbook_config: config
crates/e2e/src/setup/services.rs:246
↓ 35 callersFunctiontrade
A trade filling the order with the given uid.
crates/solana-driver/src/domain/settlement.rs:1126
↓ 33 callersMethodchain
(&self)
crates/simulator/src/ethereum/mod.rs:69
next →1–100 of 10,749, ranked by callers