MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 11 callersMethodexecute
(&self, _: i64, _: &NoRanking, _: &u64, _: u64)
crates/autopilot-svm/src/run_loop.rs:428
↓ 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 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
↓ 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:1165
↓ 11 callersFunctionmint_mocks
(mints: usize)
crates/autopilot-svm/src/infra/prices.rs:930
↓ 11 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:269
↓ 11 callersMethodname
The name the function is bound to in CEL.
crates/fee-engine/src/fee.rs:45
↓ 11 callersFunctionone_percent
A fee schedule from `epoch` on that takes 1% of a transfer, at most 1,000 atoms.
crates/solana-token/src/lib.rs:331
↓ 11 callersFunctionorder
(side: Side, sell_amount: u64, buy_amount: u64)
crates/solana-driver/src/domain/solver_fee.rs:169
↓ 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:181
↓ 11 callersFunctionpost_order
(addr: SocketAddr, transaction: String)
crates/solana-orderbook/tests/api.rs:2115
↓ 11 callersFunctionpost_quote
(addr: SocketAddr, body: serde_json::Value)
crates/solana-orderbook/tests/api.rs:303
↓ 11 callersFunctionprice
(native_price: u64)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:985
↓ 11 callersFunctionrun
( f: F, filters: impl IntoIterator<Item = T>, fork: Option<(String, Option<u64>)>, )
crates/e2e/src/setup/mod.rs:178
↓ 11 callersFunctionsolution
(executed_sell: u64, executed_buy: u64)
crates/solana-driver/src/domain/solver_fee.rs:190
↓ 11 callersFunctionsolver_with_fee
A solver client whose fills the driver cuts, by `solver_fee_bps` and the execution costs.
crates/solana-driver/tests/api.rs:214
↓ 11 callersFunctiont
(n: i32)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1143
↓ 11 callersMethodto_bytes
(&self)
crates/model/src/signature.rs:137
↓ 11 callersMethodto_bytes
(&self)
crates/autopilot/src/domain/auction/order.rs:151
↓ 11 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:456
↓ 11 callersMethodvalidate
(&self)
crates/autopilot/src/domain/competition/winner_selection.rs:981
↓ 11 callersFunctionwipe
Empty every `solana.*` table a test can touch. Tests wipe at the start so a failure leaves its state behind for inspection.
crates/autopilot-svm/src/test_db.rs:11
↓ 11 callersFunctionwith_fast_path_exclusivity
Enables the fast path on the autopilot and sets `fast_path_submission_deadline` to the block count that produces the requested wall-clock window on th
crates/e2e/tests/e2e/fast_path_settle.rs:53
↓ 10 callersMethodaddress
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:189
↓ 10 callersMethodall
(&self)
crates/shared/src/token_list.rs:104
↓ 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:2911
↓ 10 callersFunctionclear_DANGER
(pool: &PgPool)
crates/database/src/lib.rs:100
↓ 10 callersMethodcmp
(&self, other: &Self)
crates/driver/src/domain/competition/sorting.rs:69
↓ 10 callersFunctioncoingecko_config
(endpoint: Url)
crates/autopilot-svm/src/infra/prices.rs:895
↓ 10 callersFunctioncoingecko_server
(response: serde_json::Value)
crates/autopilot-svm/src/infra/prices.rs:978
↓ 10 callersFunctionconfig
Creates a temporary file containing the config of the given solver.
crates/solvers/src/tests/okx/mod.rs:10
↓ 10 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:601
↓ 10 callersFunctionevaluate
`order` evaluated with no app data and no partner fees.
crates/fee-engine/src/evaluator.rs:244
↓ 10 callersMethodevaluate
Runs every rule against `order`. A rule that fails to evaluate is skipped and reported; it never blocks the others.
crates/fee-engine/src/evaluator.rs:85
↓ 10 callersMethodfetch
(&self, keys: impl IntoIterator<Item = K>, block: Block)
crates/liquidity-sources/src/recent_block_cache.rs:219
↓ 10 callersFunctionfrom_current_span
Looks up the request id from the current tracing span.
crates/observe/src/tracing/distributed/request_id.rs:60
↓ 10 callersMethodget
TODO: Remove this method and use the `in_eth` function instead.
crates/autopilot/src/domain/auction/mod.rs:61
↓ 10 callersFunctioningester
( stream: impl stream::Stream<Item = Result<SubscribeUpdate, Status>> + Unpin + Send, )
crates/solana-indexer/src/indexer/ingester/tests.rs:92
↓ 10 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
↓ 10 callersFunctioninsert_onchain_order
( ex: &mut PgConnection, index: &EventIndex, event: &OnchainOrderPlacement, )
crates/database/src/onchain_broadcasted_orders.rs:90
↓ 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:2232
↓ 10 callersMethodnotify
Make a fire and forget POST request to notify the solver about an event.
crates/driver/src/infra/solver/mod.rs:578
↓ 10 callersFunctionorders
(order: &Order)
crates/solana-driver/src/domain/solver_fee.rs:207
↓ 10 callersFunctionquery_timer
Starts timing a query, recorded under `query` when the timer drops.
crates/solana-indexer/src/persistence.rs:604
↓ 10 callersFunctionquote_solution
A canned engine solution for the fabricated quote order, whose uid is zero.
crates/solana-driver/tests/api.rs:945
↓ 10 callersMethodraw_bytes
Raw 20 bytes the user actually signed - use this when persisting the receiver somewhere, computing the order hash or encoding calldata. Deliberately n
crates/eth-domain-types/src/receiver.rs:43
↓ 10 callersMethodresolve
Every mint's verdict. The unread mints are judged from `accounts`, a mint absent from it as missing, and their verdicts are cached. The epoch comes fr
crates/solana-token/src/lib.rs:202
↓ 10 callersMethodreveal
Call the /reveal endpoint.
crates/driver/src/tests/setup/mod.rs:1139
↓ 10 callersFunctionrule_set
(definitions: Vec<RuleDefinition>)
crates/fee-engine/src/evaluator.rs:216
↓ 10 callersMethodsend
( &self, tx: &TxEnvelope, account: &Account, blocks: RangeInclusive<u64>,
crates/driver/src/infra/builders.rs:295
↓ 10 callersMethodside
Set the order side.
crates/driver/src/tests/setup/mod.rs:195
↓ 10 callersMethodvalidate
(&self)
crates/orderbook/src/api/get_trades_v2.rs:39
↓ 9 callersMethodab_order_executed
Ensure that the onchain balances changed in accordance with the [`ab_order`].
crates/driver/src/tests/setup/mod.rs:1857
↓ 9 callersMethodas_str
(self)
crates/fee-engine/src/report.rs:118
↓ 9 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
↓ 9 callersMethodchecked_ceil_div
(&self, other: &Self)
crates/number/src/u256_ext.rs:71
↓ 9 callersMethodchecked_mul_ratio
(&self, mul: &Self, div: &Self)
crates/number/src/u256_ext.rs:75
↓ 9 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
↓ 9 callersMethoddecode
( &self, tx: SubscribeUpdateTransactionInfo, slot: Slot, signature: Signature,
crates/solana-indexer/src/indexer/decoder.rs:295
↓ 9 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/fallback.rs:211
↓ 9 callersMethodexecuted
(&self)
crates/driver/src/domain/competition/solution/trade.rs:40
↓ 9 callersMethodfee
(&self)
crates/driver/src/domain/competition/solution/trade.rs:47
↓ 9 callersFunctionfill
A Solana fill: the signed limit and the legs it executed at.
crates/protocol-fees/src/tests.rs:38
↓ 9 callersFunctiongit_version
()
crates/observe/src/version.rs:3
↓ 9 callersFunctionhashed_eip712_message
(domain_separator: &DomainSeparator, struct_hash: &[u8; 32])
crates/model/src/signature.rs:271
↓ 9 callersMethodinsert_order
( &self, order: &Order, quote_id: Option<QuoteId>, )
crates/orderbook/src/database/orders.rs:226
↓ 9 callersFunctionmetrics
(app: axum::Router<()>)
crates/driver/src/infra/api/routes/metrics.rs:1
↓ 9 callersFunctionmetrics
()
crates/autopilot/src/maintenance.rs:294
↓ 9 callersFunctionorder
(uid: u8, side: dex::Side, sell_mint: Pubkey)
crates/solana-solvers/src/domain/solver/mod.rs:442
↓ 9 callersMethodpop_front
(&mut self)
crates/ethrpc/src/alloy/buffering.rs:126
↓ 9 callersFunctionpriority_fee
Pays whatever the mock RPC reports, at the runtime ceiling for an undeclared limit, and never refuses.
crates/solana-driver/tests/api.rs:108
↓ 9 callersMethodpubkey
The signer's on-chain identity.
crates/cow-solana-signer/src/lib.rs:52
↓ 9 callersFunctionquote
Handle `POST /api/v1/quote`.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:48
↓ 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 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:814
↓ 9 callersMethodresolve_accounts
Resolve the on-chain accounts this settlement needs. The settlement must create the missing setup accounts before `BeginSettle`.
crates/solana-driver/src/domain/settlement.rs:141
↓ 9 callersFunctionsave
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/quotes.rs:68
↓ 9 callersMethodscheme
(&self)
crates/model/src/signature.rs:145
↓ 9 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
↓ 9 callersMethodsolver_fee
Set the solver fee.
crates/driver/src/tests/setup/mod.rs:200
↓ 9 callersFunctionspawn_server_with
Spawn the API server with the given quoter.
crates/solana-orderbook/tests/api.rs:61
↓ 9 callersFunctionspawn_sponsored_server
A sponsored-placement server: a fixed funder pubkey, the interface's default settlement program, and a mock RPC answering the blockhash and height pro
crates/solana-orderbook/tests/api.rs:1713
↓ 9 callersFunctiontimestamp_of_current_block_in_seconds
(provider: &AlloyProvider)
crates/ethrpc/src/block_stream.rs:309
↓ 9 callersFunctiontoken
(u: u64)
crates/price-estimation/src/buffered.rs:280
↓ 9 callersMethodwrite
(&mut self, buf: &[u8])
crates/s3/src/lib.rs:44
↓ 9 callersMethodwrite_last_indexed_slot
Record a slot as fully indexed. A backward write is a no-op.
crates/solana-indexer/src/persistence.rs:563
↓ 8 callersMethodall
All solutions including the ones that got filtered out.
crates/autopilot/src/domain/competition/winner_selection.rs:246
↓ 8 callersMethodappend
(&mut self, label: &str)
crates/ethrpc/src/alloy/instrumentation.rs:191
↓ 8 callersFunctionapply
Takes each order's policies from every trade of `solution`. One failing trade rejects the whole solution, left untouched.
crates/solana-driver/src/domain/protocol_fee.rs:49
↓ 8 callersMethodarbitrate
( &self, solutions: Vec<Solution<Unscored, C>>, context: &AuctionContext<C>, )
crates/winner-selection/src/arbitrator.rs:41
↓ 8 callersMethodas_erc20
If the token is ETH, return WETH, thereby converting it to erc20.
crates/eth-domain-types/src/lib.rs:46
↓ 8 callersFunctionassert_trades
( db: &mut PgConnection, owner_filter: Option<&Address>, order_uid_filter: Option<&Ord
crates/database/src/trades.rs:392
↓ 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:2327
↓ 8 callersFunctioncall_solve
POST the standard solve request and return the parsed response body.
crates/solana-driver/tests/api.rs:324
↓ 8 callersMethodchecked_mul_f64
(&self, factor: f64)
crates/number/src/u256_ext.rs:105
↓ 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 callersFunctioncreate_test_quote
(sell_amount: U256, buy_amount: U256)
crates/orderbook/src/quoter.rs:554
← previousnext →301–400 of 10,747, ranked by callers