Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,749 in github.com/cowprotocol/services
⨍
Functions
10,749
◇
Types & classes
3,488
↓ 11 callers
Method
execute
(&self, _: i64, _: &NoRanking, _: &u64, _: u64)
crates/autopilot-svm/src/run_loop.rs:428
↓ 11 callers
Function
identify_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 callers
Function
insert_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 callers
Function
known
`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 callers
Function
mint_mocks
(mints: usize)
crates/autopilot-svm/src/infra/prices.rs:930
↓ 11 callers
Function
mock_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 callers
Method
name
The name the function is bound to in CEL.
crates/fee-engine/src/fee.rs:45
↓ 11 callers
Function
one_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 callers
Function
order
(side: Side, sell_amount: u64, buy_amount: u64)
crates/solana-driver/src/domain/solver_fee.rs:169
↓ 11 callers
Method
overrides_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:185
↓ 11 callers
Function
post_order
(addr: SocketAddr, transaction: String)
crates/solana-orderbook/tests/api.rs:2115
↓ 11 callers
Function
post_quote
(addr: SocketAddr, body: serde_json::Value)
crates/solana-orderbook/tests/api.rs:303
↓ 11 callers
Function
price
(native_price: u64)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:985
↓ 11 callers
Function
run
( f: F, filters: impl IntoIterator<Item = T>, fork: Option<(String, Option<u64>)>, )
crates/e2e/src/setup/mod.rs:178
↓ 11 callers
Function
solution
(executed_sell: u64, executed_buy: u64)
crates/solana-driver/src/domain/solver_fee.rs:190
↓ 11 callers
Function
solver_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 callers
Function
t
(n: i32)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1143
↓ 11 callers
Method
to_bytes
(&self)
crates/model/src/signature.rs:137
↓ 11 callers
Method
to_bytes
(&self)
crates/autopilot/src/domain/auction/order.rs:151
↓ 11 callers
Method
update
Replaces the venue's quotes with the ones it just sent, recording whether they are stamped `quoted_at` — the timestamp of the block the venue quotes f
crates/simulator/src/state_override_stream.rs:432
↓ 11 callers
Method
validate
(&self)
crates/autopilot/src/domain/competition/winner_selection.rs:981
↓ 11 callers
Function
wipe
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 callers
Function
with_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 callers
Method
address
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:189
↓ 10 callers
Method
all
(&self)
crates/shared/src/token_list.rs:104
↓ 10 callers
Method
call_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 callers
Method
call_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 callers
Function
clear_DANGER
(pool: &PgPool)
crates/database/src/lib.rs:100
↓ 10 callers
Method
cmp
(&self, other: &Self)
crates/driver/src/domain/competition/sorting.rs:69
↓ 10 callers
Function
coingecko_config
(endpoint: Url)
crates/autopilot-svm/src/infra/prices.rs:895
↓ 10 callers
Function
coingecko_server
(response: serde_json::Value)
crates/autopilot-svm/src/infra/prices.rs:978
↓ 10 callers
Function
config
Creates a temporary file containing the config of the given solver.
crates/solvers/src/tests/okx/mod.rs:10
↓ 10 callers
Function
create_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 callers
Method
current_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
↓ 10 callers
Function
evaluate
`order` evaluated with no app data and no partner fees.
crates/fee-engine/src/evaluator.rs:244
↓ 10 callers
Method
evaluate
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 callers
Method
fetch
(&self, keys: impl IntoIterator<Item = K>, block: Block)
crates/liquidity-sources/src/recent_block_cache.rs:219
↓ 10 callers
Function
from_current_span
Looks up the request id from the current tracing span.
crates/observe/src/tracing/distributed/request_id.rs:60
↓ 10 callers
Method
get
TODO: Remove this method and use the `in_eth` function instead.
crates/autopilot/src/domain/auction/mod.rs:61
↓ 10 callers
Function
ingester
( stream: impl stream::Stream<Item = Result<SubscribeUpdate, Status>> + Unpin + Send, )
crates/solana-indexer/src/indexer/ingester/tests.rs:92
↓ 10 callers
Function
initialize_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 callers
Function
insert_onchain_order
( ex: &mut PgConnection, index: &EventIndex, event: &OnchainOrderPlacement, )
crates/database/src/onchain_broadcasted_orders.rs:90
↓ 10 callers
Method
is_zero
(&self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:135
↓ 10 callers
Method
make_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 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/erc20/src/lib.rs:2232
↓ 10 callers
Method
notify
Make a fire and forget POST request to notify the solver about an event.
crates/driver/src/infra/solver/mod.rs:578
↓ 10 callers
Function
orders
(order: &Order)
crates/solana-driver/src/domain/solver_fee.rs:207
↓ 10 callers
Function
query_timer
Starts timing a query, recorded under `query` when the timer drops.
crates/solana-indexer/src/persistence.rs:604
↓ 10 callers
Function
quote_solution
A canned engine solution for the fabricated quote order, whose uid is zero.
crates/solana-driver/tests/api.rs:945
↓ 10 callers
Method
raw_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 callers
Method
resolve
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 callers
Method
reveal
Call the /reveal endpoint.
crates/driver/src/tests/setup/mod.rs:1139
↓ 10 callers
Function
rule_set
(definitions: Vec<RuleDefinition>)
crates/fee-engine/src/evaluator.rs:216
↓ 10 callers
Method
send
( &self, tx: &TxEnvelope, account: &Account, blocks: RangeInclusive<u64>,
crates/driver/src/infra/builders.rs:295
↓ 10 callers
Method
side
Set the order side.
crates/driver/src/tests/setup/mod.rs:195
↓ 10 callers
Method
validate
(&self)
crates/orderbook/src/api/get_trades_v2.rs:39
↓ 9 callers
Method
ab_order_executed
Ensure that the onchain balances changed in accordance with the [`ab_order`].
crates/driver/src/tests/setup/mod.rs:1857
↓ 9 callers
Method
as_str
(self)
crates/fee-engine/src/report.rs:118
↓ 9 callers
Method
calculate
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 callers
Method
checked_ceil_div
(&self, other: &Self)
crates/number/src/u256_ext.rs:71
↓ 9 callers
Method
checked_mul_ratio
(&self, mul: &Self, div: &Self)
crates/number/src/u256_ext.rs:75
↓ 9 callers
Method
decode
( &self, tx: SubscribeUpdateTransactionInfo, slot: Slot, signature: Signature,
crates/solana-indexer/src/indexer/decoder.rs:295
↓ 9 callers
Method
estimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/fallback.rs:211
↓ 9 callers
Method
executed
(&self)
crates/driver/src/domain/competition/solution/trade.rs:40
↓ 9 callers
Method
fee
(&self)
crates/driver/src/domain/competition/solution/trade.rs:47
↓ 9 callers
Function
fill
A Solana fill: the signed limit and the legs it executed at.
crates/protocol-fees/src/tests.rs:38
↓ 9 callers
Function
git_version
()
crates/observe/src/version.rs:3
↓ 9 callers
Function
hashed_eip712_message
(domain_separator: &DomainSeparator, struct_hash: &[u8; 32])
crates/model/src/signature.rs:271
↓ 9 callers
Method
insert_order
( &self, order: &Order, quote_id: Option<QuoteId>, )
crates/orderbook/src/database/orders.rs:226
↓ 9 callers
Method
max
Returns the maximum valid timestamp for the specified order.
crates/shared/src/order_validation.rs:1193
↓ 9 callers
Function
metrics
(app: axum::Router<()>)
crates/driver/src/infra/api/routes/metrics.rs:1
↓ 9 callers
Function
metrics
()
crates/autopilot/src/maintenance.rs:294
↓ 9 callers
Function
order
(uid: u8, side: dex::Side, sell_mint: Pubkey)
crates/solana-solvers/src/domain/solver/mod.rs:442
↓ 9 callers
Method
pop_front
(&mut self)
crates/ethrpc/src/alloy/buffering.rs:126
↓ 9 callers
Function
priority_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 callers
Method
pubkey
The signer's on-chain identity.
crates/cow-solana-signer/src/lib.rs:52
↓ 9 callers
Function
quote
Handle `POST /api/v1/quote`.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:48
↓ 9 callers
Method
register_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 callers
Function
relevant_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 callers
Method
resolve_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 callers
Function
save
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/quotes.rs:68
↓ 9 callers
Method
scheme
(&self)
crates/model/src/signature.rs:145
↓ 9 callers
Function
serve_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 callers
Method
solver_fee
Set the solver fee.
crates/driver/src/tests/setup/mod.rs:200
↓ 9 callers
Function
spawn_server_with
Spawn the API server with the given quoter.
crates/solana-orderbook/tests/api.rs:61
↓ 9 callers
Function
spawn_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 callers
Function
timestamp_of_current_block_in_seconds
(provider: &AlloyProvider)
crates/ethrpc/src/block_stream.rs:309
↓ 9 callers
Function
token
(u: u64)
crates/price-estimation/src/buffered.rs:280
↓ 9 callers
Method
write
(&mut self, buf: &[u8])
crates/s3/src/lib.rs:44
↓ 9 callers
Method
write_last_indexed_slot
Record a slot as fully indexed. A backward write is a no-op.
crates/solana-indexer/src/persistence.rs:563
↓ 8 callers
Method
all
All solutions including the ones that got filtered out.
crates/autopilot/src/domain/competition/winner_selection.rs:246
↓ 8 callers
Method
append
(&mut self, label: &str)
crates/ethrpc/src/alloy/instrumentation.rs:191
↓ 8 callers
Function
apply
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 callers
Method
arbitrate
( &self, solutions: Vec<Solution<Unscored, C>>, context: &AuctionContext<C>, )
crates/winner-selection/src/arbitrator.rs:41
↓ 8 callers
Method
as_erc20
If the token is ETH, return WETH, thereby converting it to erc20.
crates/eth-domain-types/src/lib.rs:46
↓ 8 callers
Function
assert_trades
( db: &mut PgConnection, owner_filter: Option<&Address>, order_uid_filter: Option<&Ord
crates/database/src/trades.rs:392
↓ 8 callers
Method
call_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 callers
Function
call_solve
POST the standard solve request and return the parsed response body.
crates/solana-driver/tests/api.rs:324
↓ 8 callers
Method
checked_mul_f64
(&self, factor: f64)
crates/number/src/u256_ext.rs:105
↓ 8 callers
Function
clear_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
← previous
next →
301–400 of 10,749, ranked by callers