MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

MethodtryAggregate
(data: &[u8])
contracts/generated/contracts-generated/multicall3/src/lib.rs:4104
MethodtryBlockAndAggregate
( data: &[u8], )
contracts/generated/contracts-generated/multicall3/src/lib.rs:4034
Methodtry_acquire
Tries to acquire the leader lock and handles the liveness status.
crates/database/src/leader_pg_lock.rs:53
Methodtry_from
(value: f64)
crates/configs/src/fee_factor.rs:57
Methodtry_from
(value: f64)
crates/configs/src/autopilot/penalty_cap.rs:72
Methodtry_from
(pool: PoolData)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:88
Methodtry_from
(value: &'a BigRational)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:57
Methodtry_from
(raw: RawAuction)
crates/solvers-dto/src/auction.rs:91
Methodtry_from
(value: Block)
crates/ethrpc/src/block_stream.rs:65
Methodtry_from
(bps: u16)
crates/solana-driver/src/domain/solver_fee.rs:49
Methodtry_from
(id: i64)
crates/solana-driver/src/domain/auction.rs:50
Methodtry_from
The program refuses an intent selling or buying zero, so such an order has no intent.
crates/solana-driver/src/domain/settlement.rs:622
Methodtry_from
(raw: RawProtocolAppData)
crates/app-data/src/app_data.rs:344
Methodtry_from
(json: JsonSignature)
crates/model/src/signature.rs:217
Methodtry_from
(data: QuoteSigningDeserializationData)
crates/model/src/quote.rs:99
Methodtry_from
Fails on an amount past `u64::MAX`, which no token amount reaches.
crates/solana-orderbook/src/infra/api/routes/status/dto.rs:69
Methodtry_from
Initializes `Network` from a chain ID, returns error if the chain id is not supported
crates/chain/src/lib.rs:128
Methodtry_from
(value: i64)
crates/driver/src/domain/competition/auction.rs:312
Methodtry_from
(r: PgRow)
crates/pool-indexer/src/db/uniswap_v3.rs:381
Methodtry_from
(value: Decimal)
crates/fee-engine/src/fee_factor.rs:32
Methodtry_from
(row: QuoteRow)
crates/shared/src/order_quoting.rs:393
Methodtry_from
(value: U256)
crates/number/src/nonzero.rs:27
Methodtry_from
(log: Log)
crates/autopilot/src/database/events.rs:50
Methodtry_from
(row: OrderRow)
crates/autopilot-svm/src/infra/db.rs:722
Methodtry_from
( value: alloy_rpc_types::eth::state::AccountOverride, )
crates/simulator/src/tenderly/dto.rs:156
Methodtry_from_auction_prices
Returns a set of external prices for the specified auction model prices.
crates/shared/src/external_prices.rs:52
Methodtry_into_domain
(self)
crates/autopilot/src/infra/persistence/dto/auction.rs:56
Functiontry_into_dto
(value: DbResponse)
crates/orderbook/src/database/solver_competition_v2.rs:94
Methodtry_mul_div_ceil
(self, mul: Self, div: Self)
crates/chain-types/src/solana.rs:163
Methodtry_mul_f64
(self, factor: f64)
crates/chain-types/src/solana.rs:175
Methodtry_new
( back_off_growth_factor: f64, min_back_off: Duration, max_back_off: Duration, )
crates/configs/src/rate_limit.rs:32
Methodtry_new
Creates a new subgraph client from the specified organization and name.
crates/liquidity-sources/src/subgraph.rs:34
Methodtry_new
(factor: U256, precision: U256)
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:51
Methodtry_new
Creates a new liquidity fetcher for the specified Ethereum instance and configuration.
crates/driver/src/infra/liquidity/fetcher.rs:42
Methodtry_new
(config: Config, eth: Ethereum)
crates/driver/src/infra/solver/mod.rs:273
Methodtry_new
Instantiate an RPC client to an Ethereum (or Ethereum-compatible) node at the specifed URL.
crates/driver/src/infra/blockchain/mod.rs:51
Methodtry_new
(config: &Config, chain: chain::Chain)
crates/driver/src/infra/notify/liquidity_sources/mod.rs:39
Methodtry_new
(eth: &Ethereum, solution: &competition::Solution)
crates/driver/src/domain/quote.rs:41
Methodtry_new
Returns a token pair for the given tokens, or `Err` if `a` and `b` are equal.
crates/driver/src/domain/liquidity/mod.rs:76
Methodtry_new
Creates a new fee from the specified basis points. Returns `Err` for invalid fee values (i.e. outside the range `[0, 1000]`).
crates/driver/src/domain/liquidity/swapr.rs:43
Methodtry_new
Creates new Uniswap V2 token reserves, returns `Err` if the specified token addresses are equal.
crates/driver/src/domain/liquidity/uniswap/v2.rs:54
Methodtry_new
Creates new Balancer V2 token reserves, returns `Err` if the specified token reserves are invalid.
crates/driver/src/domain/liquidity/balancer/v2/weighted.rs:61
Methodtry_new
Creates new Balancer V2 token reserves, returns `Err` if the specified token reserves are invalid, specifically, if there are duplicate tokens.
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:57
Methodtry_new
(value: eth::Ether)
crates/driver/src/domain/competition/auction.rs:229
Methodtry_new
Creates a new fetcher for the specified configuration.
crates/driver/src/boundary/liquidity/mod.rs:54
Methodtry_new
Creates a new set of external prices for the specified exchange rates.
crates/shared/src/external_prices.rs:27
Methodtry_new
(start: T, end: T)
crates/event-indexing/src/block_retriever.rs:136
Methodtry_new
( url: Url, name: String, submission_account: Account, extensions: SupportedEx
crates/autopilot/src/infra/solvers/mod.rs:69
Methodtry_new
( transaction: &blockchain::Transaction, domain_separator: &eth::DomainSeparator, sett
crates/autopilot/src/domain/settlement/transaction/mod.rs:70
Methodtry_new
(value: eth::Ether)
crates/autopilot/src/domain/auction/mod.rs:52
Methodtry_new
(config: Config)
crates/solvers/src/infra/dex/bitget/mod.rs:121
Methodtry_new
(config: Config)
crates/solvers/src/infra/dex/okx/mod.rs:104
Methodtry_new
(uri: &str, config: Config)
crates/orderbook/src/database/mod.rs:72
Methodtry_new_with_timeout
Creates a Postgres connection pool, but applies the [`Config`]'s `statement_timeout` to all queries.
crates/orderbook/src/database/mod.rs:81
Functiontry_replace_someone_else_order_test
(web3: Web3)
crates/e2e/tests/e2e/replace_order.rs:258
Functiontry_replace_unreplaceable_order_test
(web3: Web3)
crates/e2e/tests/e2e/replace_order.rs:86
Methodtry_widening_mul_div_floor
(self, mul: Self, div: Self)
crates/chain-types/src/solana.rs:171
Functiontwo_factories
Two factories on one network are served as a single union: each factory's pools show up in `/pools`, attributed to that factory.
crates/e2e/tests/e2e/pool_indexer.rs:746
Functiontwo_limit_orders_multiple_winners_test
(web3: Web3)
crates/e2e/tests/e2e/limit_orders.rs:377
Functiontwo_limit_orders_test
(web3: Web3)
crates/e2e/tests/e2e/limit_orders.rs:240
Methodtype_check
(token: &Self::Token<'_>)
contracts/generated/contracts-generated/izeroex/src/lib.rs:126
Methodtype_check
(token: &Self::Token<'_>)
contracts/generated/contracts-generated/cowswaponchainorders/src/lib.rs:716
Methodtype_check
(token: &Self::Token<'_>)
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:2260
Methodtype_check
(token: &Self::Token<'_>)
contracts/generated/contracts-generated/balancerqueries/src/lib.rs:126
Methodtype_check
(token: &Self::Token<'_>)
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:130
Methodtype_check
(token: &Self::Token<'_>)
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:1236
Methodtype_check
(token: &Self::Token<'_>)
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:124
Methodtype_info
()
crates/database/src/byte_array.rs:38
Functionu128_custom_delta
()
crates/number/src/testing.rs:135
Functionu128_exceeds_threshold
()
crates/number/src/testing.rs:120
Functionu128_identical_values
()
crates/number/src/testing.rs:104
Functionu128_within_threshold
()
crates/number/src/testing.rs:111
Functionu128_zero_values
()
crates/number/src/testing.rs:128
Functionu256_custom_delta
()
crates/number/src/testing.rs:179
Functionu256_exceeds_threshold
()
crates/number/src/testing.rs:164
Functionu256_identical_values
()
crates/number/src/testing.rs:148
Functionu256_max_values
()
crates/number/src/testing.rs:192
Functionu256_to_big_decimal_
()
crates/number/src/conversions.rs:218
Functionu256_to_big_uint_
()
crates/number/src/conversions.rs:192
Functionu256_within_threshold
()
crates/number/src/testing.rs:155
Functionu256_zero_values
()
crates/number/src/testing.rs:172
Functionu64_custom_delta
()
crates/number/src/testing.rs:91
Functionu64_exceeds_threshold
()
crates/number/src/testing.rs:75
Functionu64_identical_values
()
crates/number/src/testing.rs:59
Functionu64_within_threshold
()
crates/number/src/testing.rs:66
Functionu64_zero_values
()
crates/number/src/testing.rs:84
Functionu8_as_32_bytes_be
(u: u8)
crates/solver/src/interactions/uniswap_v2.rs:44
Functionuid
Uid with all 56 bytes set to `uid_byte`.
crates/autopilot/src/infra/solvers/dto/solve.rs:609
Functionuid_is_displayed_as_hex
()
crates/model/src/order.rs:1450
Functionuid_json
(uid_byte: u8)
crates/autopilot/src/infra/solvers/dto/solve.rs:613
Methoduid_owner
(uid: &OrderUid)
crates/chain-types/src/evm.rs:57
Methoduid_owner
The intent hash embeds no owner, so JIT orders cannot be attributed.
crates/chain-types/src/solana.rs:147
Functionuids
(uids: impl IntoIterator<Item = &'a OrderUid>)
crates/solana-driver/src/domain/auction.rs:449
Methodunchanged
(quote: &Quote)
crates/orderbook/src/quoter.rs:56
Functionundeclared_limit_is_priced_at_the_policy_default
()
crates/solana-driver/src/domain/priority_fee.rs:254
Functionunfreeze_bad_orders
()
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:172
Functionuniform_buy_token_index_accepts_weth_for_eth
()
crates/autopilot/src/domain/settlement/transaction/mod.rs:329
Methoduniswap
(address: Address, tokens: TokenPair, reserves: (u128, u128))
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:63
Methoduniswap_v2
(chain: Chain)
crates/driver/src/infra/liquidity/config.rs:78
Methoduniswap_v3
(pool_indexer: UniswapV3PoolIndexer, chain: Chain)
crates/driver/src/infra/liquidity/config.rs:203
← previousnext →10,301–10,400 of 10,747, ranked by callers