MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,749 in github.com/cowprotocol/services

↓ 7 callersMethodencode
Encodes the settlement's order_trade as a tuple, as expected by the smart contract.
crates/solver/src/settlement/mod.rs:87
↓ 7 callersMethodestimate
(&self, token: Address, timeout: Duration)
crates/price-estimation/src/native/eip4626.rs:84
↓ 7 callersMethodeth
(&self)
crates/driver/src/infra/api/mod.rs:191
↓ 7 callersMethodexecuted
(&self)
crates/driver/src/domain/competition/solution/trade.rs:40
↓ 7 callersMethodfetch
(&self, keys: impl IntoIterator<Item = K>, block: Block)
crates/liquidity-sources/src/recent_block_cache.rs:197
↓ 7 callersMethodfetch
IPFS gateway behavior when a CID cannot be found is inconsistent and can be confusing: - The public ipfs.io gateway responds "504 Gateway Timeout" af
crates/orderbook/src/ipfs.rs:34
↓ 7 callersMethodfill_at
(mut self, execution: ExecutionAmount, price: PriceEncoding)
crates/simulator/src/simulation_builder.rs:665
↓ 7 callersMethodget
()
crates/orderbook/src/database/mod.rs:112
↓ 7 callersMethodget_balances
(&self, queries: &[Query])
crates/account-balances/src/cached.rs:173
↓ 7 callersFunctiongit_version
()
crates/observe/src/version.rs:3
↓ 7 callersMethodhash_struct
See <https://github.com/0xProject/protocol/blob/%400x/contracts-zero-ex%400.49.0/contracts/zero-ex/contracts/src/features/libs/LibNativeOrder.sol#L166
crates/e2e/src/api/zeroex.rs:149
↓ 7 callersMethodid
Returns the chain's chain ID
crates/chain/src/lib.rs:28
↓ 7 callersFunctioninsert_order_event
Inserts a row into the `order_events` table only if the latest event for the corresponding order UID has a different label than the provided event.
crates/database/src/order_events.rs:89
↓ 7 callersFunctionlow_precision_now
The postgres database in our CI has different datetime precision than the `DateTime` uses. This leads to issues comparing round-tripped data. Work aro
crates/database/src/quotes.rs:178
↓ 7 callersMethodpop_front
(&mut self)
crates/ethrpc/src/alloy/buffering.rs:124
↓ 7 callersMethodpush_back
(&mut self, sender: ResponseSender)
crates/ethrpc/src/alloy/buffering.rs:114
↓ 7 callersMethodreceiving_eth
(&mut self)
crates/refunder/src/traits.rs:117
↓ 7 callersMethodrecover
Recovers the owner of the specified signature. This method returns an error if there is an issue recovering an ECDSA signature, or `None` for on-chai
crates/model/src/signature.rs:98
↓ 7 callersMethodreduce_amount
Reduce the sell amount of this order by the given amount.
crates/driver/src/tests/setup/mod.rs:162
↓ 7 callersFunctionresponse_body
(response: axum::http::Response<axum::body::Body>)
crates/orderbook/src/api.rs:530
↓ 7 callersFunctionseed_checkpoint
(db: &PgPool, factory: Address, block: u64)
crates/e2e/tests/e2e/pool_indexer.rs:181
↓ 7 callersMethodsingle_order
(&self, uid: &OrderUid)
crates/orderbook/src/database/orders.rs:294
↓ 7 callersMethodsolution
(&self)
crates/autopilot/src/domain/competition/bid.rs:30
↓ 7 callersMethodsolution_id
The id of the cached fast-path solution. Present only when the solution was successfully cached for a later `/settle`.
crates/driver/src/tests/setup/mod.rs:1621
↓ 7 callersMethodsolver
(&self)
crates/autopilot/src/domain/settlement/mod.rs:72
↓ 7 callersMethodsolver_fee
Set the solver fee.
crates/driver/src/tests/setup/mod.rs:205
↓ 7 callersMethodstart
Start a new proxy server with automatic failover between backends # Panics Panics if `backends` is empty. At least one backend URL is required.
crates/e2e/src/setup/proxy.rs:76
↓ 7 callersMethodstate_override
( &self, holder: &Address, amount: &U256, )
crates/balance-overrides/src/balance/mod.rs:141
↓ 7 callersMethodto_f64_lossy
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:102
↓ 7 callersMethoduser_trades
Return the trades which fulfill non-liquidity auction orders. These are the orders placed by end users.
crates/driver/src/domain/competition/solution/mod.rs:494
↓ 7 callersMethodvalidate
(&self)
crates/orderbook/src/api/get_trades.rs:38
↓ 7 callersMethodwith_metric_label
Clones self and returns an instance that captures metrics extended with the provided label.
crates/driver/src/infra/blockchain/mod.rs:172
↓ 7 callersFunctionwith_pool_indexer_at
Runs `body` with a freshly-started pool-indexer. The indexer is spawned before the closure runs, then `abort`ed and `await`ed after — so the port is f
crates/e2e/tests/e2e/pool_indexer.rs:250
↓ 7 callersMethodwith_signature
(mut self, owner: Address, signature: Signature)
crates/simulator/src/simulation_builder.rs:659
↓ 7 callersMethodwrite
(&mut self, buf: &[u8])
crates/s3/src/lib.rs:44
↓ 6 callersMethodadd
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:140
↓ 6 callersFunctionadd_settlement
Testing Trades with settlements
crates/database/src/trades.rs:598
↓ 6 callersFunctionadjust_quote_to_order_limits
This function adjusts quote amounts to directly compare them with the order's limits, ensuring a meaningful comparison for potential price improvement
crates/driver/src/domain/competition/solution/fee.rs:255
↓ 6 callersFunctionappend_events
For a given checkpoint, append events to get a new checkpoint
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:495
↓ 6 callersMethodarbitrate
( &self, solutions: Vec<Solution<Unscored, C>>, context: &AuctionContext<C>, )
crates/winner-selection/src/arbitrator.rs:40
↓ 6 callersMethodas_erc20
If the token is ETH, return WETH, thereby converting it to erc20.
crates/eth-domain-types/src/lib.rs:44
↓ 6 callersFunctionassert_orders_by_contract
( result: &HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, contract: Address, expected_
crates/refunder/src/refund_service.rs:311
↓ 6 callersMethodbalance_override
( &self, request: BalanceOverrideRequest, )
crates/balance-overrides/src/lib.rs:68
↓ 6 callersFunctionbig_decimal_to_big_rational
(value: &BigDecimal)
crates/number/src/conversions.rs:28
↓ 6 callersFunctionbytes_to_addr
(b: Vec<u8>)
crates/pool-indexer/src/db/uniswap_v3.rs:12
↓ 6 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/uniswapv3quoterv2/src/lib.rs:691
↓ 6 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1976
↓ 6 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/erc20mintable/src/lib.rs:2265
↓ 6 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/nonstandarderc20balances/src/lib.rs:1564
↓ 6 callersMethodchecked_mul_ratio
(&self, mul: &Self, div: &Self)
crates/number/src/u256_ext.rs:75
↓ 6 callersMethodcontains
(&self, address: &Address)
crates/shared/src/token_list.rs:100
↓ 6 callersFunctiondeploy_univ3
Deploy mock V3 contracts and set up a pool with liquidity.
crates/e2e/tests/e2e/pool_indexer.rs:354
↓ 6 callersMethoddetect
Returns the cached detection result for `(token, holder)`, running detection if not yet cached.
crates/balance-overrides/src/balance/mod.rs:329
↓ 6 callersMethoddiv_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:175
↓ 6 callersFunctionfast_path_test
Set up a fast-path quote test: a fast-path solver quoting `ab_order`.
crates/driver/src/tests/cases/quote.rs:133
↓ 6 callersMethodfee
(&self)
crates/driver/src/domain/competition/solution/trade.rs:47
↓ 6 callersFunctionfetch
(ex: &mut PgConnection, id: AuctionId)
crates/database/src/auction.rs:88
↓ 6 callersMethodfetch
Fetches liquidity for the specified auction.
crates/driver/src/boundary/liquidity/mod.rs:128
↓ 6 callersMethodfilter
(&self)
crates/autopilot/src/database/ethflow_events/event_retriever.rs:37
↓ 6 callersMethodfilter
(&self)
crates/autopilot/src/boundary/events/settlement.rs:30
↓ 6 callersMethodfrom_solver
(mut self, solver: Solver)
crates/simulator/src/simulation_builder.rs:203
↓ 6 callersMethodget
()
crates/price-estimation/src/native/coingecko.rs:305
↓ 6 callersMethodget
()
crates/shared/src/order_validation.rs:72
↓ 6 callersFunctionget_confirmed_transaction
( account: Address, web3: &Web3, block_hash_stream: PollerStream<Vec<B256>>, )
crates/e2e/tests/e2e/submission.rs:1005
↓ 6 callersFunctionget_pending_tx
(account: Address, web3: &Web3)
crates/e2e/tests/e2e/submission.rs:996
↓ 6 callersFunctionget_quote
( services: &Services<'_>, sell_token: Address, buy_token: Address, kind: OrderKind, amoun
crates/e2e/tests/e2e/protocol_fee.rs:645
↓ 6 callersMethodhash
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:979
↓ 6 callersFunctioninit_tracing
(env_filter: &str)
crates/observe/src/tracing/distributed/request_id.rs:128
↓ 6 callersFunctioninsert_or_overwrite_ethflow_order
( ex: &mut PgTransaction<'_>, event: &EthOrderPlacement, )
crates/database/src/ethflow_orders.rs:26
↓ 6 callersMethodinto_array
(self)
crates/simulator/src/encoding.rs:54
↓ 6 callersMethodinto_domain
Convert this wire trade into a domain trade, deriving the counterpart leg from the clearing prices.
crates/solana-driver/src/infra/solver/dto/solution.rs:68
↓ 6 callersMethodinto_vec
(self)
crates/price-estimation/src/lib.rs:261
↓ 6 callersMethodis_empty
(&self)
crates/ethrpc/src/alloy/buffering.rs:291
↓ 6 callersFunctionmake_log
(address: Address, block: u64, event: impl SolEvent)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1115
↓ 6 callersFunctionmapping_slot_hash
`keccak256(pad32(holder) ++ map_slot)` — the storage slot of `mapping(address => _)` entries in Solidity.
crates/balance-overrides/src/detector.rs:91
↓ 6 callersMethodname
(&self)
crates/driver/src/infra/solver/mod.rs:294
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:260
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/permit2/src/lib.rs:516
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:479
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:1545
↓ 6 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:408
↓ 6 callersMethodnew_simulation_builder
(&self)
crates/simulator/src/simulation_builder.rs:120
↓ 6 callersMethodnonce
(&self, web3: &Web3)
crates/e2e/src/setup/onchain_components/mod.rs:56
↓ 6 callersFunctionorder
(side: dex::Side)
crates/solana-solvers/src/dto/solution.rs:159
↓ 6 callersFunctionorder_kind_into
(kind: OrderKind)
crates/shared/src/db_order_conversions.rs:190
↓ 6 callersMethodorders
(&self)
crates/autopilot/src/domain/competition/mod.rs:49
↓ 6 callersMethodout_amount
(&self, query: &PriceQuery)
crates/price-estimation/src/trade_finding/mod.rs:97
↓ 6 callersMethodparameters_from_app_data
Parses the app data JSON and configures the builder accordingly: - Pre/post hooks are encoded as interactions via the [`HooksTrampoline`] - Flashloan/
crates/simulator/src/simulation_builder.rs:221
↓ 6 callersFunctionpubkey
(byte: u8)
crates/solana-driver/src/infra/solver/dto/solution.rs:241
↓ 6 callersMethodquery
Performs the specified GraphQL query on the current subgraph.
crates/liquidity-sources/src/subgraph.rs:43
↓ 6 callersMethodremaining
Returns the amount of time remaining to solve, or `None` if time's up.
crates/solvers/src/domain/auction.rs:93
↓ 6 callersFunctionserve_metrics
Serves metrics on a dedicated server at the given address. Spawns a background task and returns its handle.
crates/observe/src/metrics.rs:100
↓ 6 callersMethodshared_or_else
Returns an existing in flight future or creates and uses a new future from the specified closure.
crates/request-sharing/src/lib.rs:126
↓ 6 callersFunctionsignature
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:317
↓ 6 callersMethodsimulate
( &self, tx: T, block: BlockNo, overrides: Option<StateOverride>, gene
crates/simulator/src/tenderly/mod.rs:67
↓ 6 callersMethodsolution
The solution encoded in this settlement.
crates/driver/src/domain/competition/solution/settlement.rs:248
↓ 6 callersFunctionspawn_pamm_stream
Spawns a new background task that streams state override updates into the return [`SimulationOverrides`] instance. `blocks` is read to learn the time
crates/simulator/src/state_override_stream.rs:262
↓ 6 callersFunctiontracing_headers
()
crates/observe/src/tracing/distributed/headers.rs:9
↓ 6 callersFunctiontrades
( ex: &'a mut PgConnection, owner_filter: Option<&'a Address>, order_uid_filter: Option<&'a OrderU
crates/database/src/trades.rs:31
↓ 6 callersFunctionu256_to_big_int
(input: &U256)
crates/number/src/conversions.rs:70
← previousnext →301–400 of 8,749, ranked by callers