MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions9,022 in github.com/cowprotocol/services

↓ 12 callersMethodget
()
crates/pool-indexer/src/metrics.rs:54
↓ 12 callersFunctioninitialize_reentrant
Like [`initialize`], but can be called multiple times in a row. Later calls are ignored. Useful for tests.
crates/observe/src/tracing/init.rs:43
↓ 12 callersFunctionrun_forked_test_with_block_number
(f: F, fork_url: String, block_number: u64)
crates/e2e/src/setup/mod.rs:145
↓ 12 callersMethodsend
( self, client: &reqwest::Client, base
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/request.rs:88
↓ 12 callersFunctionspawn_server
Spawn the API server on an ephemeral port and return its bound address.
crates/solana-driver/tests/api.rs:66
↓ 12 callersMethodstate
(&self)
crates/winner-selection/src/solution.rs:66
↓ 12 callersFunctiontest_order
A default sell order.
crates/solana-driver/src/domain/settlement.rs:595
↓ 12 callersMethoduid
(&self, domain: &DomainSeparator, owner: Address)
crates/model/src/order.rs:263
↓ 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 callersMethodchain
Returns the chain for the RPC connection.
crates/driver/src/infra/blockchain/mod.rs:66
↓ 11 callersMethodchecked_ceil_div
(&self, other: &Self)
crates/number/src/u256_ext.rs:71
↓ 11 callersMethodget
(&self, address: &eth::TokenAddress)
crates/driver/src/domain/competition/auction.rs:142
↓ 11 callersMethodget
()
crates/autopilot/src/infra/persistence/mod.rs:1049
↓ 11 callersMethodget_solver_competition
( &self, hash: B256, )
crates/e2e/src/setup/services.rs:465
↓ 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 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:1133
↓ 11 callersMethodlayer
(&self, inner: S)
crates/ethrpc/src/alloy/buffering.rs:67
↓ 11 callersMethodmax
(&self)
crates/eth-domain-types/src/gas.rs:55
↓ 11 callersMethodoverrides_for
Returns the live state overrides adjusted for a simulation running at `block` with `timestamp`, or `None` (callers omit the RPC override param entirel
crates/simulator/src/state_override_stream.rs:90
↓ 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:1111
↓ 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:1005
↓ 11 callersMethodvalidate
(&self)
crates/autopilot/src/domain/competition/winner_selection.rs:982
↓ 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 callersFunctionadd_order_and_trade
( ex: &mut PgTransaction<'_>, owner: Address, order_uid: OrderUid, event_index
crates/database/src/trades.rs:322
↓ 10 callersMethodaddress
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:189
↓ 10 callersMethodappend
(&mut self, label: &str)
crates/ethrpc/src/alloy/instrumentation.rs:191
↓ 10 callersMethodas_str
(&self)
crates/solana-indexer/src/persistence.rs:54
↓ 10 callersMethodbind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-orderbook/src/infra/api/mod.rs:63
↓ 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 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 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
↓ 10 callersMethodis_winner
(self)
crates/winner-selection/src/state.rs:39
↓ 10 callersMethodis_zero
(&self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:135
↓ 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 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:538
↓ 10 callersFunctionpubkey
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:47
↓ 10 callersMethodpubkey
The solver's on-chain identity, derived from its signer keypair.
crates/solana-driver/src/infra/solver/mod.rs:40
↓ 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 callersFunctionsolver_with_keypair
A solver client whose on-chain identity is a freshly generated keypair, so the test can register a matching settlement signer.
crates/solana-driver/tests/api.rs:93
↓ 10 callersFunctiontoken
(u: u64)
crates/price-estimation/src/native_price_cache.rs:585
↓ 10 callersMethodtoken_account_state
Classify the state of the token account at `address` for a caller that creates missing token accounts idempotently. An SPL-token-owned account is `In
crates/solana-driver/src/infra/blockchain/accounts.rs:89
↓ 10 callersMethodwith_sell_amount
(mut self, sell_amount: U256)
crates/model/src/order.rs:101
↓ 9 callersMethodbuild
(config: &Config)
crates/driver/src/infra/persistence/mod.rs:46
↓ 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:269
↓ 9 callersMethodget
Globally unique id communicated to the protocol.
crates/driver/src/domain/competition/solution/mod.rs:751
↓ 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:394
↓ 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:266
↓ 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 callersFunctionspawn_mock_solver_engine
A tiny axum server that returns a fixed `/solve` response. It stands in for a solver engine.
crates/solana-driver/tests/api.rs:77
↓ 9 callersFunctiontest_order_with
A default sell order with `customize` applied before the uid and order PDA are derived.
crates/solana-driver/src/domain/settlement.rs:570
↓ 9 callersFunctiontoken
(u: u64)
crates/price-estimation/src/buffered.rs:280
↓ 9 callersMethodupdate
Replaces each venue's quotes with the ones the frame carries, recording which of them are stamped `quoted_at` — the timestamp of the block the frame q
crates/simulator/src/state_override_stream.rs:369
↓ 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 callersMethodbind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-driver/src/infra/api/mod.rs:35
↓ 8 callersMethodcalculate
Computes the penalty cap for an order, in native token. The order's volume is its sell amount for sell orders and its buy amount for buy orders, conv
crates/autopilot/src/domain/penalty_cap.rs:94
↓ 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 callersFunctionclear_pool_indexer_tables
Truncates the indexer's tables between tests. The schema itself is provisioned by flyway (`migrations-pool-indexer`), so this just clears rows.
crates/e2e/tests/e2e/pool_indexer.rs:171
↓ 8 callersMethodcount
(&self, owner: Address)
crates/orderbook/src/database/orders.rs:494
↓ 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:591
↓ 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:355
↓ 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>, block: BlockId, )
crates/simulator/src/ethereum/mod.rs:126
↓ 8 callersMethodfee
(&self)
crates/driver/src/domain/competition/solution/trade.rs:47
↓ 8 callersMethodget_balances
(&self, queries: &[Query])
crates/account-balances/src/cached.rs:168
↓ 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 callersFunctiongit_version
()
crates/observe/src/version.rs:3
↓ 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 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:216
↓ 8 callersMethodlabeled
(&self, label: S)
crates/ethrpc/src/alloy/instrumentation.rs:154
↓ 8 callersFunctionmetrics
()
crates/autopilot/src/maintenance.rs:294
↓ 8 callersFunctionpool
()
crates/autopilot-svm/src/test_db.rs:5
↓ 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:681
↓ 8 callersMethodrename
Rename the order.
crates/driver/src/tests/setup/mod.rs:157
↓ 8 callersFunctionreply
Build an error response.
crates/solana-orderbook/src/infra/api/error.rs:20
↓ 8 callersMethodreset
Resets `previous_auction` and `last_checkpoint` to their default values.
crates/autopilot/src/run_loop.rs:117
↓ 8 callersMethodscheme
(&self)
crates/model/src/signature.rs:145
↓ 8 callersMethodsend_out_refunding_tx
( &mut self, uids_by_contract: HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, )
crates/refunder/src/refund_service.rs:196
← previousnext →201–300 of 9,022, ranked by callers