MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

Methodnew
(deny_list: Vec<Address>)
crates/token-info/src/deny_list.rs:16
Methodnew
( env_filter: &str, stderr_threshold: Option<Level>, use_json_format: bool, tr
crates/observe/src/config.rs:17
Methodnew
(inner: S)
crates/observe/src/http_body.rs:26
Methodnew
( orderbook: infra::shadow::Orderbook, drivers: Vec<Arc<infra::Driver>>, trusted_token
crates/autopilot/src/shadow.rs:49
Methodnew
(interval: Duration)
crates/autopilot/src/run_loop.rs:106
Methodnew
( min_order_validity_period: Duration, persistence: infra::Persistence, banned_users:
crates/autopilot/src/solvable_orders.rs:141
Methodnew
( eth: infra::Ethereum, persistence: infra::Persistence, drivers: Vec<Arc<infra::Drive
crates/autopilot/src/fast_path.rs:82
Methodnew
(cleanup_interval: Duration, event_age_threshold: Duration)
crates/autopilot/src/periodic_db_cleanup.rs:14
Methodnew
( settlement_indexer: EventUpdater<Indexer, GPv2SettlementContract>, db_cleanup: Postgres,
crates/autopilot/src/maintenance.rs:105
Methodnew
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
Methodnew
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:60
Methodnew
( eth: infra::Ethereum, persistence: infra::Persistence, maintenance: MaintenanceSync,
crates/autopilot/src/settle_call.rs:72
Methodnew
(leader_lock: Option<LeaderLock>)
crates/autopilot/src/leader_lock_tracker.rs:26
Methodnew
(max_auction_age: Duration)
crates/autopilot/src/run.rs:77
Methodnew
( banned_users: Arc<Users>, run_loop_wake: Arc<tokio::sync::Notify>, fast_path_sender:
crates/autopilot/src/infra/order_notify/mod.rs:30
Methodnew
Creates a new CoW Protocol client.
crates/autopilot/src/infra/shadow/orderbook/mod.rs:15
Methodnew
(config: Option<s3::Config>, postgres: Arc<Postgres>)
crates/autopilot/src/infra/persistence/mod.rs:70
Methodnew
Instantiate an RPC client to an Ethereum (or Ethereum-compatible) node at the specifed URL.
crates/autopilot/src/infra/blockchain/mod.rs:35
Methodnew
(web3: &Web3, chain: &Chain, addresses: Addresses)
crates/autopilot/src/infra/blockchain/contracts.rs:45
Methodnew
( auction: &domain::Auction, trusted_tokens: &HashSet<Address>, deadline: chrono::Date
crates/autopilot/src/infra/solvers/dto/solve.rs:45
Methodnew
(url: &str, config: Config)
crates/autopilot/src/database/mod.rs:44
Methodnew
(web3: Web3, addresses: Vec<Address>)
crates/autopilot/src/database/ethflow_events/event_retriever.rs:21
Methodnew
( db: Postgres, web3: Web3, quoter: Arc<dyn OrderQuoting>, custom_onchain_data
crates/autopilot/src/database/onchain_order_events/mod.rs:88
Methodnew
(web3: Web3, addresses: Vec<Address>)
crates/autopilot/src/database/onchain_order_events/event_retriever.rs:25
Methodnew
( config: &PenaltyCapConfig, native_token: Address, usd_reference_token_decimals: u8,
crates/autopilot/src/domain/penalty_cap.rs:44
Methodnew
( config: &FeePoliciesConfig, volume_fee_bucket_overrides: Vec<TokenBucketFeeOverride>,
crates/autopilot/src/domain/fee/mod.rs:106
Methodnew
Creates a new Observer and asynchronously schedules the first update run.
crates/autopilot/src/domain/settlement/observer.rs:36
Methodnew
( settled: Transaction, persistence: &infra::Persistence, chain: &Chain, )
crates/autopilot/src/domain/settlement/mod.rs:174
Methodnew
(trade: transaction::EncodedTrade, auction: &super::Auction, created: u32)
crates/autopilot/src/domain/settlement/trade/mod.rs:91
Methodnew
(solution: Solution, driver: Arc<infra::Driver>)
crates/autopilot/src/domain/competition/bid.rs:57
Methodnew
( id: SolutionId, solver: Address, orders: HashMap<domain::OrderUid, TradedOrder>,
crates/autopilot/src/domain/competition/mod.rs:27
Methodnew
(max_winners: usize, wrapped_native_token: WrappedNativeToken)
crates/autopilot/src/domain/competition/winner_selection.rs:51
Methodnew
(provider: AlloyProvider, address: Address)
crates/autopilot/src/boundary/events/settlement.rs:22
Methodnew
(client: reqwest::Client, block_stream: Option<CurrentBlockWatcher>)
crates/solvers/src/infra/dex/mod.rs:67
Methodnew
Create a new simulator for computing DEX swap gas usage.
crates/solvers/src/infra/dex/simulator.rs:30
Methodnew
(chain_id: eth::ChainId)
crates/solvers/src/infra/dex/bitget/dto.rs:31
Methodnew
(chain_index: u64, token: TokenAddress, amount: U256)
crates/solvers/src/infra/dex/okx/dto.rs:242
Methodnew
Creates a new set of clearing prices.
crates/solvers/src/domain/solution.rs:304
Methodnew
Creates a new slippage limits configuration.
crates/solvers/src/domain/dex/slippage.rs:21
Methodnew
(order: &order::Order)
crates/solvers/src/domain/dex/mod.rs:32
Methodnew
Creates a new minimum surplus limits configuration.
crates/solvers/src/domain/dex/minimum_surplus.rs:21
Methodnew
Creates a new constant product pool reserves with the specified assets. Returns `None` if the assets are denominated in the same token or if the balan
crates/solvers/src/domain/liquidity/constant_product.rs:42
Methodnew
Returns a token pair for the given tokens, or `None` if `a` and `b` are equal.
crates/solvers/src/domain/liquidity/mod.rs:41
Methodnew
Returns a new reserve instance for specified reserve entries. Returns `None` if it encounters duplicate entries for a token.
crates/solvers/src/domain/liquidity/stable.rs:21
Methodnew
Returns a new reserve instance for specified reserve entries. Returns `None` if it encounters duplicate entries for a token.
crates/solvers/src/domain/liquidity/weighted_product.rs:21
Methodnew
Creates a new baseline solver for the specified configuration.
crates/solvers/src/domain/solver/baseline.rs:75
Methodnew
(dex: infra::dex::Dex, config: infra::config::dex::Config)
crates/solvers/src/domain/solver/dex/mod.rs:56
Methodnew
(smallest_fill: eth::Ether)
crates/solvers/src/domain/solver/dex/fills.rs:33
Methodnew
(value: u64)
crates/solvers/src/domain/eth/chain.rs:21
Methodnew
Creates a new solver engine handle for the specified command configuration.
crates/solvers/src/tests/mod.rs:35
Methodnew
(native_token: Address, base_tokens: &[Address])
crates/solvers/src/boundary/routing.rs:124
Methodnew
( weth: &eth::WethAddress, base_tokens: &HashSet<eth::TokenAddress>, liquidity: &'a [l
crates/solvers/src/boundary/baseline.rs:28
Methodnew
(pool: PgPool)
crates/solana-indexer/src/persistence.rs:71
Methodnew
Construct a new ingester over an already-open update stream. The caller supplies `latest_chain_slot` so it can share the same `Arc<AtomicU64>` with ot
crates/solana-indexer/src/indexer/ingester.rs:96
Methodnew
Construct a new decoder. The caller owns the channel capacity decision.
crates/solana-indexer/src/indexer/decoder.rs:75
Methodnew
()
crates/e2e/src/setup/services.rs:83
Methodnew
(provider: AlloyProvider)
crates/e2e/src/setup/onchain_components/safe.rs:33
Methodnew
()
crates/e2e/src/setup/solver/mock.rs:75
Methodnew
Spawns a new local test net with some default parameters.
crates/e2e/src/nodes/mod.rs:30
Methodnew
Creates a new `ZeroExApi` with the given orders to be returned by the `/orderbook/v1/orders` endpoint.
crates/e2e/src/api/zeroex.rs:31
Methodnew
Create a new builder with sensible defaults
crates/e2e/tests/e2e/refunder.rs:120
Methodnew
( domain_separator: DomainSeparator, settlement_contract: Address, database: crate::da
crates/orderbook/src/orderbook.rs:263
Methodnew
(ipfs: Ipfs)
crates/orderbook/src/ipfs_app_data.rs:27
Methodnew
Creates a new instance of an app-data registry.
crates/orderbook/src/app_data.rs:27
Methodnew
( order_validator: Arc<dyn OrderValidating>, quoter: Arc<dyn OrderQuoting>, app_data:
crates/orderbook/src/quoter.rs:92
Methodnew
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/orderbook/src/fee_engine.rs:43
Methodnew
(client: ClientBuilder, base: Url, query: Option<String>)
crates/orderbook/src/ipfs.rs:15
Methodnew
( trigger: Box<dyn CycleTrigger<C>>, provider: Box<dyn AuctionProvider<C>>, competitio
crates/autopilot-svm/src/run_loop.rs:184
Methodnew
(leader_lock: Option<LeaderLock>)
crates/autopilot-svm/src/leader_lock_tracker.rs:21
Methodnew
(max_auction_age: Duration)
crates/autopilot-svm/src/run.rs:51
Methodnew
(pool: PgPool, windows: SettlementWindows)
crates/autopilot-svm/src/infra/observer.rs:33
Methodnew
(drivers: Vec<Arc<Driver>>, solve_deadline: Duration, forward_prices: bool)
crates/autopilot-svm/src/infra/competition.rs:35
Methodnew
( pool: PgPool, rpc: SolanaRPC, max_indexer_lag: u64, prices: NativePrices,
crates/autopilot-svm/src/infra/provider.rs:47
Methodnew
( drivers: Vec<Arc<Driver>>, windows: SettlementWindows, sponsor: Option<Arc<Sponsor>>
crates/autopilot-svm/src/infra/executor.rs:34
Methodnew
Spawns the background slot poller. Must run inside a tokio runtime.
crates/autopilot-svm/src/infra/trigger.rs:31
Methodnew
(pool: PgPool, tip: watch::Receiver<u64>, max_indexer_lag: u64)
crates/autopilot-svm/src/infra/observation.rs:47
Methodnew
( signer: Signer, rpc: SolanaRPC, pool: PgPool, max_displaced_creations: usize
crates/autopilot-svm/src/infra/sponsor.rs:69
Methodnew
Builds the lookup and spawns its refresher. Must run inside a tokio runtime. Without configured sources the lookup prices every token at the denominat
crates/autopilot-svm/src/infra/prices.rs:184
Methodnew
(name: String, url: &Url)
crates/autopilot-svm/src/infra/driver/mod.rs:123
Methodnew
(max_winners: usize, wrapped_native: Pubkey)
crates/autopilot-svm/src/domain/arbitrator.rs:22
Methodnew
(config: FeePoliciesConfig)
crates/autopilot-svm/src/domain/fee.rs:31
Methodnew
(client: reqwest::Client, driver_url: Url, provider: DynProvider)
crates/gas-price-estimation/src/driver.rs:34
Methodnew
(gas_price: Eip1559Estimation)
crates/gas-price-estimation/src/fake.rs:15
Methodnew
( provider: AlloyProvider, config: EstimatorConfig, current_block: CurrentBlockWatcher
crates/gas-price-estimation/src/configurable_alloy.rs:35
Methodnew
(provider: AlloyProvider)
crates/gas-price-estimation/src/eth_node.rs:18
Methodnew
(inner: T)
crates/gas-price-estimation/src/gas_price.rs:23
Methodnew
(estimators: Vec<Box<dyn GasPriceEstimating>>)
crates/gas-price-estimation/src/priority.rs:28
Methodnew
( settlement: contracts::GPv2Settlement::Instance, flash_loan_router: Address, hooks_t
crates/simulator/src/simulation_builder.rs:49
Methodnew
(config: &TenderlyConfig, eth: Ethereum, http_factory: &HttpClientFactory)
crates/simulator/src/tenderly/mod.rs:58
Methodnew
( web3: Web3, chain: Chain, addresses: configs::simulator::Addresses, gas: Arc
crates/simulator/src/ethereum/mod.rs:34
Methodnew
(web3: Web3, chain: Chain, addresses: Addresses)
crates/simulator/src/ethereum/contracts.rs:15
Methodnew
Create a new unscored solution.
crates/winner-selection/src/solution.rs:75
Methodnew
( tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType, )
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:290
Methodnew
(address: alloy_sol_types::private::Address, __provider: P)
contracts/generated/contracts-generated/izeroex/src/lib.rs:649
Methodnew
( topics: <Self::TopicList as alloy_sol_types::SolType>::RustType, data: <Self
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:207
Methodnew
( topics: <Self::TopicList as alloy_sol_types::SolType>::RustType, data: <Self
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:681
Methodnew
(address: alloy_sol_types::private::Address, __provider: P)
contracts/generated/contracts-generated/cowswaponchainorders/src/lib.rs:522
Methodnew
( tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType, )
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:291
Methodnew
( tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType, )
contracts/generated/contracts-generated/signatures/src/lib.rs:708
Methodnew
(address: alloy_sol_types::private::Address, __provider: P)
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:402
← previousnext →8,001–8,100 of 10,747, ranked by callers