Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,736 in github.com/cowprotocol/services
⨍
Functions
10,736
◇
Types & classes
3,464
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:61
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:48
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
Method
new
(timeout: Duration)
crates/price-estimation/src/utils/http_client_factory.rs:18
Method
new
(stages: Vec<PriceEstimationStage<T>>, ranking: PriceRanking)
crates/price-estimation/src/competition/mod.rs:45
Method
new
( driver: Url, client: Client, block_stream: CurrentBlockWatcher, quote_ids: A
crates/price-estimation/src/trade_finding/external.rs:63
Method
new
(finder: Arc<dyn TradeFinding>, rate_limiter: Arc<RateLimiter>)
crates/price-estimation/src/trade_finding/trade_estimator.rs:38
Method
new
( client: Client, base_url: Url, api_key: Option<String>, chain_id: u64,
crates/price-estimation/src/native/oneinch.rs:34
Method
new
( inner: Arc<dyn PriceEstimating>, native_token: Address, price_estimation_amount: Non
crates/price-estimation/src/native/mod.rs:77
Method
new
`exemptions` are tokens that must never be unwrapped, even if they are valid vaults; they are seeded into the negative cache.
crates/price-estimation/src/native/eip4626.rs:70
Method
new
( client: Client, base_url: Url, api_key: Option<String>, max_price_age: Durat
crates/price-estimation/src/native/coingecko.rs:68
Method
new
(client: reqwest::Client, autopilot_url: Url)
crates/price-estimation/src/native/forwarder.rs:25
Method
new
( primary: Box<dyn NativePriceEstimating>, fallback: Box<dyn NativePriceEstimating>, )
crates/price-estimation/src/native/fallback.rs:85
Method
new
Creates a new `Quote`.
crates/shared/src/order_quoting.rs:148
Method
new
(inner: SettlementSimulator)
crates/shared/src/order_creation_simulation.rs:72
Method
new
(tokens: HashSet<Address>)
crates/shared/src/token_list.rs:94
Method
new
(token: Address, amount: T)
crates/shared/src/http_solver.rs:14
Method
new
Loads the rules of `[fee-engine]`, with the chain's wrapped native token added as the list `wrapped_native`, which the section may not set.
crates/shared/src/fee_engine.rs:96
Method
new
( native_token: WETH9::Instance, banned_users: Arc<order_validation::banned::Users>, v
crates/shared/src/order_validation.rs:499
Method
new
(value: U256)
crates/number/src/nonzero.rs:15
Method
new
( block_retriever: Arc<dyn BlockRetrieving>, contract: C, store: S, start_sync
crates/event-indexing/src/event_handler.rs:208
Method
new
(maintainers: Vec<Weak<dyn Maintaining>>)
crates/event-indexing/src/maintenance.rs:18
Method
new
(inner: Arc<dyn TokenInfoFetching>)
crates/token-info/src/lib.rs:115
Method
new
(deny_list: Vec<Address>)
crates/token-info/src/deny_list.rs:16
Method
new
( env_filter: &str, stderr_threshold: Option<Level>, use_json_format: bool, tr
crates/observe/src/config.rs:17
Method
new
(inner: S)
crates/observe/src/http_body.rs:26
Method
new
( orderbook: infra::shadow::Orderbook, drivers: Vec<Arc<infra::Driver>>, trusted_token
crates/autopilot/src/shadow.rs:49
Method
new
(interval: Duration)
crates/autopilot/src/run_loop.rs:111
Method
new
( min_order_validity_period: Duration, persistence: infra::Persistence, banned_users:
crates/autopilot/src/solvable_orders.rs:142
Method
new
( eth: infra::Ethereum, persistence: infra::Persistence, drivers: Vec<Arc<infra::Drive
crates/autopilot/src/fast_path.rs:83
Method
new
(cleanup_interval: Duration, event_age_threshold: Duration)
crates/autopilot/src/periodic_db_cleanup.rs:14
Method
new
( settlement_indexer: EventUpdater<Indexer, GPv2SettlementContract>, db_cleanup: Postgres,
crates/autopilot/src/maintenance.rs:105
Method
new
Creates a new event updater. If a start sync block is specified, it will always resync events from this poing on creation, regardless of them being a
crates/autopilot/src/event_updater.rs:28
Method
new
Loads the rules of `[fee-engine]`, with the lists `wrapped_native` and `jit_owners` added, which the section may not set.
crates/autopilot/src/fee_engine.rs:32
Method
new
( eth: infra::Ethereum, persistence: infra::Persistence, maintenance: MaintenanceSync,
crates/autopilot/src/settle_call.rs:72
Method
new
(max_auction_age: Duration)
crates/autopilot/src/run.rs:77
Method
new
( run_loop_wake: Arc<tokio::sync::Notify>, fast_path_sender: mpsc::UnboundedSender<OrderUid>,
crates/autopilot/src/infra/order_notify/mod.rs:28
Method
new
Creates a new CoW Protocol client.
crates/autopilot/src/infra/shadow/orderbook/mod.rs:15
Method
new
(config: Option<s3::Config>, postgres: Arc<Postgres>)
crates/autopilot/src/infra/persistence/mod.rs:69
Method
new
Instantiate an RPC client to an Ethereum (or Ethereum-compatible) node at the specifed URL.
crates/autopilot/src/infra/blockchain/mod.rs:35
Method
new
(web3: &Web3, chain: &Chain, addresses: Addresses)
crates/autopilot/src/infra/blockchain/contracts.rs:43
Method
new
( auction: &domain::Auction, trusted_tokens: &HashSet<Address>, deadline: chrono::Date
crates/autopilot/src/infra/solvers/dto/solve.rs:45
Method
new
(url: &str, config: Config)
crates/autopilot/src/database/mod.rs:44
Method
new
(web3: Web3, addresses: Vec<Address>)
crates/autopilot/src/database/ethflow_events/event_retriever.rs:21
Method
new
( db: Postgres, web3: Web3, quoter: Arc<dyn OrderQuoting>, custom_onchain_data
crates/autopilot/src/database/onchain_order_events/mod.rs:88
Method
new
(web3: Web3, addresses: Vec<Address>)
crates/autopilot/src/database/onchain_order_events/event_retriever.rs:25
Method
new
( config: &PenaltyCapConfig, native_token: Address, usd_reference_token_decimals: u8,
crates/autopilot/src/domain/penalty_cap.rs:44
← previous
next →
7,901–8,000 of 10,736, ranked by callers