MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,486 in github.com/cowprotocol/services

↓ 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 callersFunctionpost
( state: State, path: Option<String>, query: Option<String>, req: serde_json::Value, )
crates/solvers/src/tests/mock/http.rs:227
↓ 11 callersFunctionrun
( f: F, filters: impl IntoIterator<Item = T>, fork: Option<(String, Option<u64>)>, )
crates/e2e/src/setup/mod.rs:178
↓ 11 callersFunctionsingle_full_order_with_quote
( ex: &mut PgConnection, uid: &OrderUid, )
crates/database/src/orders.rs:680
↓ 11 callersFunctiont
(n: i32)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1074
↓ 11 callersMethodto_bytes
(&self)
crates/model/src/signature.rs:137
↓ 11 callersMethodtransfer
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1964
↓ 11 callersMethoduid
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:1002
↓ 11 callersMethodvalidate
(&self)
crates/autopilot/src/domain/competition/winner_selection.rs:981
↓ 11 callersMethodweb3
(&self)
crates/driver/src/tests/setup/mod.rs:1317
↓ 11 callersMethodwith_buy_amount
(mut self, buy_amount: U256)
crates/model/src/order.rs:106
↓ 10 callersMethodaddress
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:189
↓ 10 callersMethodbuild
(config: &Config)
crates/driver/src/infra/persistence/mod.rs:46
↓ 10 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/gpv2settlement/src/lib.rs:357
↓ 10 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/weth9/src/lib.rs:2913
↓ 10 callersMethodget
TODO: Remove this method and use the `in_eth` function instead.
crates/autopilot/src/domain/auction/mod.rs:61
↓ 10 callersFunctioninsert
Tries to associate the contract app data with the full app data. If this contract app data already existed then the existing full app data is returne
crates/database/src/app_data.rs:7
↓ 10 callersMethodis_zero
(&self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:135
↓ 10 callersMethodlayer
(&self, inner: S)
crates/ethrpc/src/alloy/buffering.rs:67
↓ 10 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
↓ 10 callersMethodmax
(&self)
crates/eth-domain-types/src/gas.rs:55
↓ 10 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/erc20/src/lib.rs:2234
↓ 10 callersMethodnotify
Make a fire and forget POST request to notify the solver about an event.
crates/driver/src/infra/solver/mod.rs:537
↓ 10 callersFunctionpubkey
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:54
↓ 10 callersMethodreveal
Call the /reveal endpoint.
crates/driver/src/tests/setup/mod.rs:1141
↓ 10 callersMethodside
Set the order side.
crates/driver/src/tests/setup/mod.rs:200
↓ 10 callersFunctiontoken
(u: u64)
crates/price-estimation/src/native_price_cache.rs:582
↓ 10 callersMethodwith_sell_amount
(mut self, sell_amount: U256)
crates/model/src/order.rs:101
↓ 9 callersMethodcmp
(&self, other: &Self)
crates/driver/src/domain/competition/sorting.rs:69
↓ 9 callersFunctionconfig
Creates a temporary file containing the config of the given solver.
crates/solvers/src/tests/okx/mod.rs:9
↓ 9 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/fallback.rs:211
↓ 9 callersFunctionfrom_current_span
Looks up the request id from the current tracing span.
crates/observe/src/tracing/distributed/request_id.rs:60
↓ 9 callersFunctiongenerate_owners_and_order_ids
Generates 1 unique user and the provided number of unique orders for that user.
crates/database/src/trades.rs:199
↓ 9 callersMethodget
Globally unique id communicated to the protocol.
crates/driver/src/domain/competition/solution/mod.rs:745
↓ 9 callersFunctionhash_full_app_data
Hash full app data to get the bytes expected to be set as the contract level app data.
crates/app-data/src/app_data_hash.rs:103
↓ 9 callersFunctionhashed_eip712_message
(domain_separator: &DomainSeparator, struct_hash: &[u8; 32])
crates/model/src/signature.rs:270
↓ 9 callersMethodinput
(&self)
crates/solvers/src/domain/solver/baseline.rs:390
↓ 9 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:213
↓ 9 callersFunctionmetrics
(app: axum::Router<()>)
crates/driver/src/infra/api/routes/metrics.rs:1
↓ 9 callersFunctionmock_single_block
A method for creating a block stream with an initial value that never observes any new blocks. This is useful for testing and creating "mock" componen
crates/ethrpc/src/block_stream.rs:262
↓ 9 callersMethodregister_signer
Calls the inner [`EthereumWallet`]'s [`register_signer`](EthereumWallet::register_signer), if no default signer has been setup (i.e. the wallet was cr
crates/ethrpc/src/alloy/wallet.rs:29
↓ 9 callersMethodto_bytes
(self)
crates/solvers/src/domain/order.rs:124
↓ 9 callersFunctiontoken
(u: u64)
crates/price-estimation/src/buffered.rs:278
↓ 8 callersFunctionadd_order_and_trade
( ex: &mut PgTransaction<'_>, owner: Address, order_uid: OrderUid, event_index
crates/database/src/trades.rs:252
↓ 8 callersMethodadd_trade
Adds the passed trade to the execution plan. Handles specifics of market, limit and liquidity orders internally.
crates/solver/src/settlement/settlement_encoder.rs:205
↓ 8 callersMethodall
(&self)
crates/shared/src/token_list.rs:104
↓ 8 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/erc20/src/lib.rs:2329
↓ 8 callersFunctioncreate_caching_estimator
Helper to create a CachingNativePriceEstimator with its own Cache (convenience for tests that don't need a separate Cache).
crates/price-estimation/src/native_price_cache.rs:588
↓ 8 callersMethodcurrent_block
Returns a stream that monitors the block chain to inform about the current and new blocks.
crates/autopilot/src/infra/blockchain/mod.rs:108
↓ 8 callersMethoddata
Returns the order's data — i.e. the [`OrderCreation`] without the metadata: `signature`, `quote_id` and with the `app_data`'s hash.
crates/model/src/order.rs:354
↓ 8 callersMethoddomainSeparator
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3485
↓ 8 callersMethodend
(&self)
crates/event-indexing/src/block_retriever.rs:145
↓ 8 callersMethodestimate_gas
( &self, tx: T, overrides: Option<StateOverride>, )
crates/simulator/src/ethereum/mod.rs:123
↓ 8 callersFunctionget_vol_fee_adjusted_quote_data
Calculates the protocol fee based on volume fee and adjusts quote amounts.
crates/orderbook/src/quoter.rs:408
↓ 8 callersFunctioningester
( stream: impl stream::Stream<Item = Result<SubscribeUpdate, Status>> + Unpin + Send, )
crates/solana-indexer/src/indexer/ingester/tests.rs:90
↓ 8 callersFunctioninsert_onchain_order
( ex: &mut PgConnection, index: &EventIndex, event: &OnchainOrderPlacement, )
crates/database/src/onchain_broadcasted_orders.rs:79
↓ 8 callersMethodinsert_order
(&self, order: &Order)
crates/orderbook/src/database/orders.rs:219
↓ 8 callersFunctioninsert_quote
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/orders.rs:424
↓ 8 callersMethodinto_inner
(self)
crates/event-indexing/src/block_retriever.rs:149
↓ 8 callersMethodlabeled
(&self, label: S)
crates/ethrpc/src/alloy/instrumentation.rs:154
↓ 8 callersFunctionmetrics
()
crates/autopilot/src/maintenance.rs:294
↓ 8 callersFunctionrelevant_instructions
Resolve every instruction against `account_keys` and keep only those whose program is the settlement or SolFlow program, where settlement is often rea
crates/solana-indexer/src/indexer/decoder.rs:703
↓ 8 callersMethodrename
Rename the order.
crates/driver/src/tests/setup/mod.rs:157
↓ 8 callersMethodreset
Resets `previous_auction` and `last_checkpoint` to their default values.
crates/autopilot/src/run_loop.rs:125
↓ 8 callersMethodscheme
(&self)
crates/model/src/signature.rs:145
↓ 8 callersMethodscore
Extracts the score from the response. Since response can contain multiple solutions, it takes the score from the first solution.
crates/driver/src/tests/setup/mod.rs:1400
↓ 8 callersMethodsend_out_refunding_tx
( &mut self, uids_by_contract: HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, )
crates/refunder/src/refund_service.rs:195
↓ 8 callersMethodslot
Computes the `(contract, storage_slot)` pair for a specific `(owner, spender)` pair.
crates/balance-overrides/src/approval/mod.rs:131
↓ 8 callersFunctiontimestamp_of_current_block_in_seconds
(provider: &AlloyProvider)
crates/ethrpc/src/block_stream.rs:302
↓ 8 callersMethodtry_to_refund_all_eligible_orders
Fetches refundable orders from DB, validates on-chain, and submits batch refunds. Individual failures are logged and skipped.
crates/refunder/src/refund_service.rs:171
↓ 8 callersFunctionuniswap
()
crates/solvers/src/tests/cases/buy_order_rounding.rs:7
↓ 8 callersMethodvaultRelayer
(data: &[u8])
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4344
↓ 7 callersMethodab_order_executed
Ensure that the onchain balances changed in accordance with the [`ab_order`].
crates/driver/src/tests/setup/mod.rs:1848
↓ 7 callersMethodallowance
(&self)
crates/solvers/src/domain/dex/mod.rs:99
↓ 7 callersFunctionannotate
Attaches the RPC correlation headers to the packet. A batched packet coalesces several calls, so the calls header lists every `method:id` pair and th
crates/ethrpc/src/alloy/rpc_headers.rs:122
↓ 7 callersMethodapply_factor
Applies a factor to the token amount.
crates/eth-domain-types/src/token_amount.rs:15
↓ 7 callersFunctionapply_frame
Each frame's stateOverride is a full per-venue snapshot, not a delta, so accounts are inserted directly (latest frame wins per account).
crates/simulator/src/state_override_stream.rs:203
↓ 7 callersMethodas_any
(&self)
crates/solver/src/liquidity/mod.rs:448
↓ 7 callersFunctionassert_trades
( db: &mut PgConnection, owner_filter: Option<&Address>, order_uid_filter: Option<&Ord
crates/database/src/trades.rs:269
↓ 7 callersMethodauthenticator
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:160
↓ 7 callersMethodbuy_amount
(self, buy_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:90
↓ 7 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/liquoricesettlement/src/lib.rs:576
↓ 7 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/cowswapethflow/src/lib.rs:505
↓ 7 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/remoteerc20balances/src/lib.rs:1826
↓ 7 callersMethodchain
Returns the chain for the RPC connection.
crates/autopilot/src/infra/blockchain/mod.rs:48
↓ 7 callersMethodchecked_mul_f64
(&self, factor: f64)
crates/number/src/u256_ext.rs:105
↓ 7 callersMethodchecked_sub
(&self, v: &Self)
crates/autopilot/src/domain/competition/mod.rs:103
↓ 7 callersFunctionclear_DANGER
(pool: &PgPool)
crates/database/src/lib.rs:101
↓ 7 callersMethodcount
(&self, owner: Address)
crates/orderbook/src/database/orders.rs:495
↓ 7 callersFunctioncreate_test_quote
(sell_amount: U256, buy_amount: U256)
crates/orderbook/src/quoter.rs:527
↓ 7 callersFunctiondelegate_deployment
( callers: &[Address], )
crates/driver/src/infra/solver/eip7702.rs:85
↓ 7 callersFunctiondetect_reorg_path
Try to shorten the latest_blocks by detecting the reorg from previous event update. If no reorg can be detected (for example, when `handled_blocks` is
crates/event-indexing/src/event_handler.rs:593
↓ 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
← previousnext →201–300 of 8,486, ranked by callers