MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 24 callersMethodfind
Finds full app data for an order that only has the contract app data hash. The full app data can be located in the database or on IPFS.
crates/orderbook/src/app_data.rs:80
↓ 24 callersMethodis_zero
(&self)
crates/eth-domain-types/src/ether.rs:57
↓ 23 callersMethodinto_response
(self)
crates/orderbook/src/api/post_order.rs:47
↓ 22 callersMethodbuild
(self)
crates/model/src/order.rs:189
↓ 22 callersMethodobserve
(data: &[u8])
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5120
↓ 22 callersMethodorder
(&self)
crates/driver/src/domain/competition/solution/trade.rs:176
↓ 21 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/iswaprpair/src/lib.rs:5511
↓ 21 callersFunctioneip712_hash_struct
Computes the correct EIP-712 hash for a GPv2Order.
crates/cow-amm/src/lib.rs:55
↓ 21 callersMethodget_trades
(&self, order: &OrderUid)
crates/e2e/src/setup/services.rs:526
↓ 21 callersMethodinto_iter
(self)
crates/ethrpc/src/alloy/buffering.rs:108
↓ 21 callersMethodroute
( &self, request: solver::Request, max_hops: usize, )
crates/solvers/src/boundary/baseline.rs:44
↓ 21 callersMethodsolvers
(mut self, solvers: Vec<Solver>)
crates/driver/src/tests/setup/mod.rs:853
↓ 21 callersFunctionstart_driver
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, quote_using
crates/e2e/src/setup/colocation.rs:135
↓ 20 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/iuniswaplikepair/src/lib.rs:5337
↓ 20 callersFunctiondeployment_address
(chain_id: &u64)
contracts/generated/contracts-generated/weth9/src/lib.rs:3090
↓ 20 callersMethodget
(&self, token: &eth::TokenAddress)
crates/solvers/src/domain/auction.rs:26
↓ 20 callersMethodsaturating_add
(self, v: Self)
crates/eth-domain-types/src/lib.rs:112
↓ 20 callersMethodto_be_bytes
(self)
crates/driver/src/domain/competition/auction.rs:246
↓ 19 callersMethodget
Returns cached pools for the pairs, plus the ids of any that exist but aren't cached yet. Misses are recorded for the next maintenance run.
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:246
↓ 19 callersFunctioninternal_error_reply
()
crates/orderbook/src/api.rs:442
↓ 19 callersMethodname
(self, name: &str)
crates/driver/src/tests/setup/mod.rs:405
↓ 18 callersMethodas_str
(&self)
crates/pool-indexer/src/config.rs:56
↓ 18 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/balancerv2composablestablepool/src/lib.rs:635
↓ 18 callersMethodchain
(&self)
crates/simulator/src/ethereum/mod.rs:66
↓ 18 callersMethodclone
(&self)
crates/price-estimation/src/trade_finding/mod.rs:305
↓ 18 callersMethodget
()
crates/price-estimation/src/native/eip4626.rs:242
↓ 18 callersMethodwith_buy_token
(mut self, buy_token: Address)
crates/model/src/order.rs:96
↓ 18 callersMethodwith_sell_token
(mut self, sell_token: Address)
crates/model/src/order.rs:91
↓ 17 callersMethodbuild
Finishes the simulation struct based on the configuration thus far.
crates/simulator/src/simulation_builder.rs:306
↓ 17 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/balancerv2liquiditybootstrappingpool/src/lib.rs:4981
↓ 17 callersMethodcontracts
Onchain smart contract bindings.
crates/driver/src/infra/blockchain/mod.rs:180
↓ 17 callersMethoddb
Returns the underlying postgres connection pool that can be used do execute raw SQL queries.
crates/e2e/src/setup/services.rs:886
↓ 17 callersMethodorders
Check that the solution contains the expected orders.
crates/driver/src/tests/setup/mod.rs:1371
↓ 17 callersMethodstart_autopilot
Start the autopilot service in a background task. Optionally specify a solve deadline to use instead of the default 2s. (note: specifying a larger sol
crates/e2e/src/setup/services.rs:204
↓ 16 callersMethodabi_encode
(&self)
contracts/generated/contracts-generated/izeroex/src/lib.rs:84
↓ 16 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/uniswapv3pool/src/lib.rs:5764
↓ 16 callersMethodcreatePair
(data: &[u8])
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:734
↓ 16 callersMethodsettle
Call the /settle endpoint.
crates/driver/src/tests/setup/mod.rs:1167
↓ 16 callersMethodtry_into
(self)
crates/shared/src/order_quoting.rs:821
↓ 16 callersMethodvalidate_and_construct_order
( &self, order: OrderCreation, domain_separator: &DomainSeparator, settlement_
crates/shared/src/order_validation.rs:772
↓ 15 callersMethodaddLiquidity
(data: &[u8])
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1222
↓ 15 callersMethodaddress
Extracts the pool address configured in the ID.
crates/driver/src/domain/liquidity/balancer/v2/mod.rs:20
↓ 15 callersFunctionbig_decimal_to_u256
(big_decimal: &BigDecimal)
crates/number/src/conversions.rs:53
↓ 15 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/balancerv2weightedpool/src/lib.rs:4203
↓ 15 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/balancerv2stablepool/src/lib.rs:4553
↓ 15 callersFunctionerror
(error_type: &'static str, description: impl AsRef<str>)
crates/orderbook/src/api.rs:414
↓ 15 callersMethodid
Extracts the solution id from the response. Since response can contain multiple solutions, it takes the id from the first solution.
crates/driver/src/tests/setup/mod.rs:1295
↓ 15 callersMethodkind
Set the order kind.
crates/driver/src/tests/setup/mod.rs:195
↓ 15 callersFunctionsave
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/quotes.rs:45
↓ 14 callersMethodas_uint256
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:106
↓ 14 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/balancerv2basepool/src/lib.rs:3779
↓ 14 callersMethodchecked_ceil_div
(&self, other: &Self)
crates/number/src/u256_ext.rs:54
↓ 14 callersFunctioncreate_test_order_placement
Builds an `EthOrderPlacement` with the given contract address embedded in the UID. # UID Structure (56 bytes total) The CoW Protocol Order UID has t
crates/refunder/src/refund_service.rs:358
↓ 14 callersFunctionencode
(registry: &prometheus::Registry)
crates/observe/src/metrics.rs:77
↓ 14 callersMethodhash_struct
Returns the value of hashStruct() over the order data as defined by EIP-712. https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct
crates/model/src/order.rs:236
↓ 14 callersMethodinsert
( &mut self, block: u64, keys: impl IntoIterator<Item = K>, values: impl IntoI
crates/liquidity-sources/src/recent_block_cache.rs:412
↓ 14 callersMethodon_auction_overhead_start
( &'a self, component: &'b str, phase: &'c str, )
crates/observe/src/metrics.rs:189
↓ 14 callersMethodsettlement
(&self)
crates/driver/src/infra/blockchain/contracts.rs:112
↓ 14 callersFunctionu256_to_big_decimal
(u256: &U256)
crates/number/src/conversions.rs:78
↓ 14 callersFunctionweb3
Create a Web3 instance with an optional label for observability.
crates/ethrpc/src/lib.rs:66
↓ 13 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/cowprotocoltoken/src/lib.rs:3970
↓ 13 callersMethodclient
(&self)
crates/e2e/src/setup/services.rs:880
↓ 13 callersMethodid
(&self)
crates/driver/src/infra/api/routes/solve/dto/solve_request.rs:248
↓ 13 callersFunctionrun_forked_test_with_block_number
(f: F, fork_url: String, block_number: u64)
crates/e2e/src/setup/mod.rs:146
↓ 13 callersFunctionsetup
Set up a mock external HTTP API.
crates/solvers/src/tests/mock/http.rs:127
↓ 13 callersMethodswap
Computes a swap (including calldata, estimated input and output amounts and the required allowance) for the specified order. These computed swaps can
crates/solvers/src/infra/dex/mod.rs:24
↓ 13 callersMethodwith_ethflow_addresses
(&mut self, addresses: Vec<Address>)
crates/refunder/src/traits.rs:105
↓ 12 callersFunctionappend
( ex: &mut PgTransaction<'_>, events: &[(EventIndex, Event)], )
crates/database/src/events.rs:73
↓ 12 callersMethodbody
Get the JSON response body.
crates/driver/src/tests/setup/mod.rs:1534
↓ 12 callersMethodchain
Returns the chain for the RPC connection.
crates/driver/src/infra/blockchain/mod.rs:66
↓ 12 callersFunctioncollect_log_changes
( factory: Address, logs: &[Log], base_states: &BasePoolStates, dec_cache: &DecimalsCache,
crates/pool-indexer/src/indexer/uniswap_v3.rs:1003
↓ 12 callersMethodcurrent_block
Returns a type that monitors the block chain to inform about the current block.
crates/driver/src/infra/blockchain/mod.rs:192
↓ 12 callersMethodevm_set_automine
(&self, automine: bool)
crates/ethrpc/src/alloy/evm_ext.rs:41
↓ 12 callersMethodfinish
( mut self, internalization_strategy: InternalizationStrategy, )
crates/solver/src/settlement/settlement_encoder.rs:460
↓ 12 callersMethodget
()
crates/pool-indexer/src/metrics.rs:54
↓ 12 callersMethodinto_response
(self)
crates/orderbook/src/api.rs:455
↓ 12 callersFunctioninto_stream
(receiver: CurrentBlockWatcher)
crates/ethrpc/src/block_stream.rs:275
↓ 12 callersMethodstate
(&self)
crates/winner-selection/src/solution.rs:66
↓ 12 callersMethodstore
(&self)
crates/event-indexing/src/event_handler.rs:253
↓ 12 callersMethodto_bytes
(&self)
crates/model/src/signature.rs:137
↓ 12 callersMethodtransfer
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1964
↓ 12 callersMethodweb3
(&self)
crates/driver/src/tests/setup/mod.rs:1236
↓ 12 callersMethodwith_state
(self, state: NewState)
crates/winner-selection/src/solution.rs:57
↓ 11 callersMethodblock
(&self, number: u64)
crates/event-indexing/src/block_retriever.rs:40
↓ 11 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/mockerc4626wrapper/src/lib.rs:2660
↓ 11 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/balancerv2vault/src/lib.rs:1642
↓ 11 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native_price_cache.rs:398
↓ 11 callersMethodget
()
crates/autopilot/src/infra/persistence/mod.rs:1012
↓ 11 callersMethodget_solver_competition
( &self, hash: B256, )
crates/e2e/src/setup/services.rs:464
↓ 11 callersFunctionhashed_eip712_message
(domain_separator: &DomainSeparator, struct_hash: &[u8; 32])
crates/model/src/signature.rs:270
↓ 11 callersFunctionidentify_uids_refunding_status
Filters `refundable_order_uids` by on-chain status, returning only orders that need refund, grouped by EthFlow contract. Excludes orders from unknown
crates/refunder/src/refund_service.rs:89
↓ 11 callersFunctioninitialize
Initializes tracing setup that is shared between the binaries. `env_filter` has similar syntax to env_logger. It is documented at https://docs.rs/trac
crates/observe/src/tracing/init.rs:34
↓ 11 callersMethodis_winner
(self)
crates/winner-selection/src/state.rs:39
↓ 11 callersMethodis_zero
Returns `true` if any of the available orders amounts are `0`, thus making the order not suitable to send to solvers. TODO: It would be ideal to proh
crates/driver/src/domain/competition/order/mod.rs:205
↓ 11 callersFunctionknown
`known_pools_db` builder for tests. An empty set means "no pools committed yet — only in-chunk PoolCreateds are accepted."
crates/pool-indexer/src/indexer/uniswap_v3.rs:1096
↓ 11 callersMethodmake_solvers_forked
Generate next `N` accounts with the given initial balance and authenticate them as solvers on a forked network.
crates/e2e/src/setup/onchain_components/mod.rs:276
↓ 11 callersFunctionrun
( f: F, filters: impl IntoIterator<Item = T>, fork: Option<(String, Option<u64>)>, )
crates/e2e/src/setup/mod.rs:179
↓ 11 callersFunctionsingle_full_order_with_quote
( ex: &mut PgConnection, uid: &OrderUid, )
crates/database/src/orders.rs:665
↓ 11 callersFunctiont
(n: i32)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1074
↓ 11 callersMethodvalidate
(&self)
crates/autopilot/src/domain/competition/winner_selection.rs:981
← previousnext →101–200 of 8,522, ranked by callers