Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,794 in github.com/cowprotocol/services
⨍
Functions
10,794
◇
Types & classes
3,483
Method
new
Build the shared state the handlers operate on.
crates/solana-driver/src/infra/api/mod.rs:114
Method
new
Build a settle response from the submitted transaction signature.
crates/solana-driver/src/infra/api/routes/settle/dto/settle_response.rs:28
Method
new
Build the wire response from the driver's domain solutions.
crates/solana-driver/src/infra/api/routes/solve/dto/solve_response.rs:51
Method
new
(rpc: SolanaRPC, program_id: Pubkey)
crates/solana-driver/src/infra/blockchain/mod.rs:78
Method
new
(accounts: HashMap<Pubkey, Account>)
crates/solana-driver/src/infra/blockchain/accounts.rs:34
Method
new
( solver: Solver, blockchain: Arc<Solana>, buy_token_accounts: BuyTokenAccountCache,
crates/solana-driver/src/domain/competition.rs:90
Method
new
Construct a validated auction id. Reject non-positive values.
crates/solana-driver/src/domain/auction.rs:34
Method
new
Build a settlement and validate its orders. Each wire order PDA must match the PDA derived from its uid, and each order must be filled within the sam
crates/solana-driver/src/domain/settlement.rs:123
Method
new
Build the KMS client from the ambient AWS environment and resolve the key's public half.
crates/cow-solana-signer/src/lib.rs:105
Method
new
Creates a new instance with default detection parameters.
crates/balance-overrides/src/lib.rs:38
Method
new
( web3: Web3, probing_depth: u8, verification_timeout: Duration, cache_size: u
crates/balance-overrides/src/approval/mod.rs:210
Method
new
( web3: Web3, probing_depth: u8, verification_timeout: Duration, cache_size: u
crates/balance-overrides/src/balance/mod.rs:313
Method
new
Creates a new app data [`Validator`] with the provided app data `size_limit` (in bytes).
crates/app-data/src/app_data.rs:273
Method
new
( web3: &Web3, settlement: GPv2Settlement::Instance, signatures_address: Address,
crates/signature-validator/src/simulation.rs:37
Method
new
( signer: Address, hash: [u8; 32], signature: Vec<u8>, interactions: Vec<Inter
crates/signature-validator/src/lib.rs:25
Method
new
Create a new token pair from two addresses. The addresses must not be the equal.
crates/model/src/lib.rs:30
Method
new
( database: D, chain: CR, submitter: CW, min_validity_duration: i64, m
crates/refunder/src/refund_service.rs:154
Method
new
(pool: PgPool, lookback_time: Option<Duration>)
crates/refunder/src/infra/database.rs:25
Method
new
(provider: AlloyProvider, ethflow_addresses: Vec<Address>)
crates/refunder/src/infra/chain.rs:19
Method
new
Creates a new liquidity source which might only be initialized at a later point in time. If a `reinit_timout` is provided the liquidity source will be
crates/solver/src/liquidity_collector.rs:62
Method
new
( pool_fetcher: Arc<dyn BalancerPoolFetching>, settlement: Address, vault: Address,
crates/solver/src/liquidity/balancer_v2.rs:29
Method
new
(router: Address, gpv2_settlement: Address, fee: Ratio<u32>)
crates/solver/src/liquidity/uniswap_v3.rs:34
Method
new
( router: Address, gpv2_settlement: Address, pool_fetcher: Arc<dyn PoolFetching>,
crates/solver/src/liquidity/uniswap_v2.rs:28
Method
new
( api: Arc<dyn ZeroExApi>, zeroex: IZeroex::Instance, gpv2: Address, blocks_st
crates/solver/src/liquidity/zeroex.rs:36
Method
new
( mocks: MocksMap, failures: impl IntoIterator<Item = (RpcRequest, TransactionError)>,
crates/cow-solana-rpc/src/lib.rs:642
Method
new
(web3: &Web3, balance_simulator: BalanceSimulator)
crates/account-balances/src/simulation.rs:23
Method
new
( settlement: GPv2Settlement::Instance, balances: Balances::Instance, vault_relayer: A
crates/account-balances/src/lib.rs:117
Method
new
(inner: Arc<dyn BalanceFetching>)
crates/account-balances/src/cached.rs:72
Method
new
(config: &JupiterConfig)
crates/solana-solvers/src/dex/jupiter/mod.rs:45
Method
new
The swap rides inside the settlement tx, so SOL wrapping is left off and Jupiter skips its account RPC probes.
crates/solana-solvers/src/dex/jupiter/dto.rs:46
Method
new
(config: &BitgetConfig)
crates/solana-solvers/src/dex/bitget/mod.rs:36
Method
new
(order: &Order, taker: &Pubkey, slippage_bps: u16, max_accounts: u16)
crates/solana-solvers/src/dex/bitget/dto.rs:46
Method
new
( quoter: Q, concurrent_requests: NonZeroUsize, rate_limiting: Strategy, max_b
crates/solana-solvers/src/domain/solver/mod.rs:64
Method
new
Wraps one quoted swap into a single-order solution. The swap's instructions are carried verbatim as interactions.
crates/solana-solvers/src/dto/solution.rs:100
Method
new
( rpc: SolanaRPC, bundle: SolanaRPC, holders: Option<SolanaRPC>, program_id: P
crates/solana-orderbook/src/infra/verifier.rs:210
Method
new
(endpoints: Vec<Url>, timeout: Duration)
crates/solana-orderbook/src/infra/quoter.rs:155
Method
new
`autopilot` is the base URL, ending in a slash so the route resolves under its path.
crates/solana-orderbook/src/infra/prices.rs:42
Method
new
( pool: PgPool, quoter: Quoter, prices: NativePrices, validation: ValidationPa
crates/solana-orderbook/src/infra/api/mod.rs:232
Method
new
(row: TradeRow, executed_protocol_fees: Vec<ExecutedProtocolFee>)
crates/solana-orderbook/src/infra/api/routes/trades/dto.rs:42
Method
new
(request: &dto::Request, program: Option<TokenProgram>)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:822
Method
new
Assemble the wire order from its row at the given time and chain block height. A `None` height skips the creation deadline check.
crates/solana-orderbook/src/infra/api/routes/order/dto.rs:106
Method
new
(authenticator: GPv2AllowListAuthentication::Instance, settlement: Address)
crates/order-validation/src/wrappers.rs:23
Method
new
(config: Config, max_cached_signatures: u64)
crates/order-validation/src/banned/hermod.rs:69
Method
new
Builds the validator from a hardcoded list and an optional Hermod backend. `cache_max_size` caps the cached Hermod address signatures and the cached v
crates/order-validation/src/banned/mod.rs:25
Method
new
Checks the cached addresses again every `refresh_interval`. An address that nobody requested for `max_idle` leaves the cache.
crates/order-validation/src/banned/cached.rs:31
Method
new
(addr: Address)
crates/eth-domain-types/src/receiver.rs:28
Method
new
(max: FeePerGas, tip: FeePerGas, base: u64)
crates/eth-domain-types/src/gas.rs:67
Method
new
(args: &configs::http_client::HttpClient)
crates/http-client/src/lib.rs:20
Method
new
()
crates/s3/src/lib.rs:25
Method
new
( configs: &[Config], solver_accounts: Vec<Account>, ethereum: Ethereum, clien
crates/driver/src/infra/builders.rs:113
Method
new
(eth: &Ethereum)
crates/driver/src/infra/tokens.rs:32
Method
new
(config: Config, solver_accounts: Vec<Account>)
crates/driver/src/infra/mempool/mod.rs:65
Method
new
()
crates/driver/src/infra/solver/streaming/mod.rs:168
Method
new
(inner: W)
crates/driver/src/infra/solver/streaming/best_effort_sink.rs:10
Method
new
(inner: W)
crates/driver/src/infra/solver/streaming/timed_writer.rs:20
Method
new
(primary: A, secondary: B)
crates/driver/src/infra/solver/streaming/tee_writer.rs:18
Method
new
(quote: quote::Quote, supports_fast_path: bool)
crates/driver/src/infra/api/routes/quote/dto/quote.rs:14
Method
new
(solved: Vec<competition::Solved>, solver: &Solver)
crates/driver/src/infra/api/routes/solve/dto/solve_response.rs:13
Method
new
(reveal: competition::Revealed)
crates/driver/src/infra/api/routes/reveal/dto/reveal_response.rs:4
Method
new
Access the Ethereum blockchain through an RPC API. # Panics Since this type is essential for the program this method will panic on any initializatio
crates/driver/src/infra/blockchain/mod.rs:110
Method
new
( provider: &AlloyProvider, current_block: &CurrentBlockWatcher, gas_estimator_type: &
crates/driver/src/infra/blockchain/gas.rs:26
Method
new
( web3: &Web3, chain: Chain, addresses: Addresses, )
crates/driver/src/infra/blockchain/contracts.rs:43
Method
new
(eth: &Ethereum, address: eth::TokenAddress)
crates/driver/src/infra/blockchain/token.rs:15
Method
new
( config: &infra::notify::liquidity_sources::config::Liquorice, chain: chain::Chain, )
crates/driver/src/infra/notify/liquidity_sources/liquorice/notifier.rs:38
Method
new
Creates a new Liquorice HTTP API client with the specified API key and base URL.
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/mod.rs:30
Method
new
Constructs a new [`SubmissionAccounts`], rejecting any address-only account ([`Account::Address`]) since such accounts cannot sign EIP-7702 delegated
crates/driver/src/infra/config/file/mod.rs:490
Method
new
(deadline: chrono::DateTime<chrono::Utc>, timeouts: Timeouts)
crates/driver/src/domain/time.rs:23
Method
new
(sell: eth::TokenAddress, buy: eth::TokenAddress)
crates/driver/src/domain/quote.rs:363
Method
new
(mempools: Vec<infra::Mempool>, ethereum: Ethereum)
crates/driver/src/domain/mempools.rs:68
Method
new
( factor: eth::U256, precision: eth::U256, )
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:111
Method
new
Builds one bounded cache per distinct solver account.
crates/driver/src/domain/competition/quote_cache.rs:38
Method
new
( solver_address: eth::Address, submission_accounts: Vec<Account>, settle_queue_size:
crates/driver/src/domain/competition/mod.rs:103
Method
new
( eth: infra::Ethereum, app_data_retriever: Option<order::app_data::AppDataRetriever>,
crates/driver/src/domain/competition/pre_processing.rs:137
Method
new
( id: Kind, mut orders: Vec<competition::Order>, tokens: impl Iterator<Item = Token>,
crates/driver/src/domain/competition/auction.rs:52
Method
new
()
crates/driver/src/domain/competition/native_price_cache.rs:24
Method
new
( id: Id, mut trades: Vec<Trade>, prices: Prices, pre_interactions: Vec<domain
crates/driver/src/domain/competition/solution/mod.rs:138
Method
new
( order: competition::Order, executed: order::TargetAmount, fee: order::SellAmount,
crates/driver/src/domain/competition/solution/trade.rs:124
Method
new
( solution: competition::Solution, auction: &competition::Auction, auction_id: auction
crates/driver/src/domain/competition/solution/settlement.rs:72
Method
new
( uid: order::Uid, signed_sell: eth::Asset, signed_buy: eth::Asset, side: Side
crates/driver/src/domain/competition/solution/scoring.rs:50
Method
new
Hardcodes tokens as (un)supported based on the provided config. This has the highest priority when looking up a token's quality.
crates/driver/src/domain/competition/risk_detector/mod.rs:57
Method
new
( failure_ratio: f64, required_measurements: u32, log_only: bool, order_freeze
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:41
Method
new
(orderbook_url: Url, cache_size: u64)
crates/driver/src/domain/competition/order/app_data.rs:35
Method
new
Start the driver HTTP server and return the server address.
crates/driver/src/tests/setup/driver.rs:33
Method
new
Set up an HTTP server exposing a solver API and acting as a solver mock.
crates/driver/src/tests/setup/solver.rs:63
Method
new
Start a local node and deploy the settlement contract, token contracts, and all supporting contracts for the settlement.
crates/driver/src/tests/setup/blockchain.rs:236
Method
new
(name: impl Into<String>)
crates/pool-indexer/src/config.rs:52
Method
new
(flag: Arc<Option<AtomicBool>>, total: usize)
crates/pool-indexer/src/run.rs:107
Method
new
(provider: AlloyProvider, db: PgPool, config: &IndexerConfig)
crates/pool-indexer/src/indexer/uniswap_v3.rs:108
Method
new
(cap: FeeFactor)
crates/fee-engine/src/partner_fee.rs:64
Method
new
Compiles the rules in the order they are tried against the CEL stdlib plus its math and strings extensions. Each list becomes a CEL list under its nam
crates/fee-engine/src/rules.rs:261
Method
new
()
crates/fee-engine/src/report.rs:54
Method
new
(rules: &'r RuleSet, now: DateTime<Utc>)
crates/fee-engine/src/evaluator.rs:77
Method
new
(generator: Arc<dyn QuoteIdGenerating>)
crates/price-estimation/src/quote_id.rs:35
Method
new
Constructs from a guaranteed best estimate plus any remaining estimates in best-to-worst order.
crates/price-estimation/src/lib.rs:262
Method
new
( args: &'a PriceEstimation, config: &'a NativePriceConfig, network: Network,
crates/price-estimation/src/factory.rs:86
Method
new
( simulator: SettlementSimulator, tenderly: Option<Arc<dyn tenderly::Api>>, quote_inac
crates/price-estimation/src/trade_verifier.rs:91
Method
new
Wraps an existing price estimator in an instrumented one.
crates/price-estimation/src/instrumented.rs:27
Method
new
( driver: Url, client: Client, rate_limiter: Arc<RateLimiter>, block_stream: C
crates/price-estimation/src/external.rs:19
Method
new
( inner: Arc<dyn PriceEstimating>, native_token: Address, deny_listed_tokens: DenyList
crates/price-estimation/src/sanitized.rs:38
Method
new
(result: CacheEntry)
crates/price-estimation/src/native_price_cache.rs:114
← previous
next →
7,901–8,000 of 10,794, ranked by callers