Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,776 in github.com/cowprotocol/services
⨍
Functions
10,776
◇
Types & classes
3,479
↓ 2 callers
Method
into_domain
(self)
crates/driver/src/infra/api/routes/quote/dto/order.rs:9
↓ 2 callers
Method
into_domain
(self)
crates/autopilot/src/infra/solvers/dto/solve.rs:287
↓ 2 callers
Method
into_inner
The height as a plain number.
crates/cow-solana-rpc/src/lib.rs:525
↓ 2 callers
Method
into_instruction
(self)
crates/solana-solvers/src/dex/dto.rs:24
↓ 2 callers
Method
into_order_and_quote
(self)
crates/database/src/orders.rs:620
↓ 2 callers
Method
into_pool_data
Stamps the envelope's `block_number` onto the pool so the driver can anchor per-pool event replay. Bails if `decimals` is missing — run [`drop_pools_m
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:174
↓ 2 callers
Method
into_response
(self)
crates/orderbook/src/api/put_app_data.rs:36
↓ 2 callers
Method
into_response
(self)
crates/orderbook/src/api/debug_simulation.rs:50
↓ 2 callers
Method
into_result
(self)
crates/liquidity-sources/src/subgraph.rs:156
↓ 2 callers
Method
into_solution
Constructs a single order `solution::Solution` for this swap. Returns `None` if the swap is not valid for the specified order.
crates/solvers/src/domain/dex/mod.rs:111
↓ 2 callers
Method
invalid
Make the solution return invalid calldata.
crates/driver/src/tests/setup/mod.rs:603
↓ 2 callers
Function
invalid_buy_token_account
(account: Pubkey, reason: &str)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:928
↓ 2 callers
Function
invalid_value_env_var_missing
Returns a deserialization error mentioning that the target environment variable could not be found.
crates/configs/src/deserialize_env.rs:18
↓ 2 callers
Method
isValidSignature
(data: &[u8])
contracts/generated/contracts-generated/gashog/src/lib.rs:502
↓ 2 callers
Method
is_ecdsa_scheme
(&self)
crates/model/src/signature.rs:239
↓ 2 callers
Method
is_filtered_out
(self)
crates/winner-selection/src/state.rs:43
↓ 2 callers
Method
is_leader
Returns true while the leader lock is held. Check it right before every leader-only action, the lock can be lost at any time If the feature is disable
crates/leader-lock/src/leader_lock_tracker.rs:81
↓ 2 callers
Function
is_price_malformed
(price: f64)
crates/price-estimation/src/native/mod.rs:127
↓ 2 callers
Method
is_quote
Whether this auction only computes a quote.
crates/driver/src/domain/competition/auction.rs:109
↓ 2 callers
Method
is_ready
(&self)
crates/price-estimation/src/native_price_cache.rs:140
↓ 2 callers
Function
is_same_buy_and_sell_token
Whether an order's sell and buy tokens are effectively the same asset. A native-token buy (`BUY_ETH_ADDRESS`) counts as the wrapped `native_token`, so
crates/shared/src/order_validation.rs:403
↓ 2 callers
Method
is_sol
Whether `token` is SOL, wrapped or native: it prices at the denominator without a lookup.
crates/autopilot-svm/src/infra/prices.rs:338
↓ 2 callers
Method
iter
Returns an iterator over the reserve assets.
crates/driver/src/domain/liquidity/balancer/v2/weighted.rs:80
↓ 2 callers
Method
iter
Returns an iterator over the reserve assets.
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:76
↓ 2 callers
Method
iter
Returns an iterator over the token reserves.
crates/solvers/src/domain/liquidity/weighted_product.rs:41
↓ 2 callers
Method
jit_order
Solver send the solution as JIT order
crates/driver/src/tests/setup/mod.rs:1076
↓ 2 callers
Function
json
(value: &dyn Val)
crates/fee-engine/src/order_view/mod.rs:155
↓ 2 callers
Function
kind
(row: &OrderRow)
crates/solana-orderbook/src/infra/api/routes/order/dto.rs:86
↓ 2 callers
Method
known_signatures
Whether each signature is known to the cluster, within the node's transaction-history horizon.
crates/solana-driver/src/infra/blockchain/mod.rs:238
↓ 2 callers
Method
label
Returns a the order kind as a string label that can be used in metrics.
crates/model/src/order.rs:844
↓ 2 callers
Function
landed_json
A `getTransaction` answer for a landed creation, failed with `err` when given. The transaction body is not read.
crates/autopilot-svm/src/infra/sponsor.rs:631
↓ 2 callers
Method
last_event_block
(&self)
crates/event-indexing/src/event_handler.rs:739
↓ 2 callers
Function
last_indexed_slot
Latest slot the indexer fully processed. `None` before the indexer's first write. `solana.indexer_state` is a single-row table.
crates/autopilot-svm/src/infra/db.rs:169
↓ 2 callers
Method
last_indexed_slot
The last fully indexed slot, the stream resumes one past it. `None` before the first write.
crates/solana-indexer/src/persistence.rs:77
↓ 2 callers
Method
last_submission
Looks up the last tx that was submitted for that signer.
crates/driver/src/infra/mempool/mod.rs:170
↓ 2 callers
Function
latest_indexed_block
(state: &AppState)
crates/pool-indexer/src/api/mod.rs:65
↓ 2 callers
Function
latest_settlement_block
(ex: &mut PgConnection)
crates/database/src/orders.rs:1070
↓ 2 callers
Method
legs
The signed order-side target and the other leg.
crates/solana-driver/src/domain/auction.rs:316
↓ 2 callers
Method
legs
The signed order-side target and the other leg.
crates/autopilot-svm/src/domain/auction.rs:111
↓ 2 callers
Function
linked_quote
The quote `solana.order_quotes` links an order to, net of its execution cost, which comes out of the side the order does not fix: a sell order's quote
crates/autopilot-svm/src/infra/db.rs:766
↓ 2 callers
Function
linked_row
(kind: database::solana::OrderKind, execution_cost: u64)
crates/autopilot-svm/src/infra/db.rs:938
↓ 2 callers
Method
liquidity
The liquidity configuration of this solver
crates/driver/src/infra/solver/mod.rs:319
↓ 2 callers
Function
liquidity_interaction
( liquidity: &Liquidity, slippage: &slippage::Parameters, settlement_contract: &Address, )
crates/driver/src/domain/competition/solution/encoding.rs:294
↓ 2 callers
Function
list
(tokens: &[Address])
crates/orderbook/src/fee_engine.rs:335
↓ 2 callers
Function
load
Load the driver configuration from a TOML file. # Panics This method panics if the config is invalid or on I/O errors.
crates/solana-driver/src/infra/config.rs:26
↓ 2 callers
Function
load
Load the orderbook configuration from a TOML file. # Panics This method panics if the config is invalid or on I/O errors.
crates/solana-orderbook/src/infra/config.rs:24
↓ 2 callers
Function
load
Load the indexer configuration from a TOML file. # Panics This function panics if the config is invalid or on I/O errors.
crates/solana-indexer/src/config.rs:21
↓ 2 callers
Function
load
Load the autopilot configuration from a TOML file. # Panics This function panics if the config is invalid or on I/O errors.
crates/autopilot-svm/src/infra/config.rs:23
↓ 2 callers
Function
load_by_tx_hash
( mut ex: &mut PgConnection, tx_hash: TransactionHash, after_block: Option<i64>, )
crates/database/src/solver_competition_v2.rs:76
↓ 2 callers
Method
load_competition_by_id
( &self, auction_id: i64, current_block: Option<i64>, )
crates/orderbook/src/database/solver_competition_v2.rs:16
↓ 2 callers
Method
load_competition_by_tx_hash
( &self, tx_hash: B256, current_block: Option<i64>, )
crates/orderbook/src/database/solver_competition_v2.rs:34
↓ 2 callers
Function
load_host_rules
Loads the rules of `[fee-engine]`, with the list `wrapped_native` and the `host_lists` added, which the section may not set.
crates/shared/src/fee_engine.rs:17
↓ 2 callers
Method
load_latest_competition
( &self, current_block: Option<i64>, )
crates/orderbook/src/database/solver_competition_v2.rs:56
↓ 2 callers
Function
load_most_recent
( ex: &mut PgConnection, )
crates/database/src/auction.rs:11
↓ 2 callers
Function
load_rule_set_definition
(definition: RuleSetDefinition)
crates/fee-engine/src/loader.rs:104
↓ 2 callers
Method
log
Log the competition under the id the store gave the quote, `None` for one not stored.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:242
↓ 2 callers
Function
log_auction_delta
( previous: Option<&domain::Auction>, current: &domain::Auction, start_block: &BlockIn
crates/autopilot/src/run_loop.rs:1217
↓ 2 callers
Function
log_competition
(competition: &Competition)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:455
↓ 2 callers
Function
logexpmath_contract_constants
Compare computed constants with smart contract code.
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:238
↓ 2 callers
Function
make_flashloan_1271_order_creation
EIP-1271 order with a flashloan hint from `LENDER` that covers the sell amount, i.e. an order a passing simulation may accept on its own.
crates/shared/src/order_validation.rs:3549
↓ 2 callers
Method
manager
( data: &[u8], )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1483
↓ 2 callers
Method
many_orders
(&self, uids: &[OrderUid])
crates/orderbook/src/database/orders.rs:332
↓ 2 callers
Function
map
A CEL map of the fields that are set: an unset option is absent, not `null`, so `.?` and `has` both read it as missing.
crates/fee-engine/src/order_view/mod.rs:81
↓ 2 callers
Function
map_rows_to_solutions
(rows: Vec<SolutionRow>)
crates/database/src/solver_competition_v2.rs:427
↓ 2 callers
Method
matches
Returns true if the search parameter instance matches the specified quote data.
crates/shared/src/order_quoting.rs:510
↓ 2 callers
Method
max_batch_size
(&self)
crates/price-estimation/src/native/coingecko.rs:273
↓ 2 callers
Method
max_solutions_to_propose
(mut self, n: usize)
crates/driver/src/tests/setup/mod.rs:421
↓ 2 callers
Function
mempool_submission_result
Emit per-receiver submission counters with the final, reclassified label (`Success` / `Revert` / `Expired` / `Other` / `Superseded` / `Disabled`). Cal
crates/driver/src/infra/observe/mod.rs:419
↓ 2 callers
Function
messages
The same transfer as a v0 and a v1 message.
crates/cow-solana-signer/src/lib.rs:195
↓ 2 callers
Method
metric_label
(&self)
crates/driver/src/infra/builders.rs:102
↓ 2 callers
Function
metrics
()
crates/solana-orderbook/src/infra/quoter.rs:322
↓ 2 callers
Function
metrics
()
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:877
↓ 2 callers
Function
metrics
()
crates/price-estimation/src/competition/mod.rs:239
↓ 2 callers
Function
metrics
()
crates/autopilot-svm/src/infra/order_execution.rs:281
↓ 2 callers
Method
mine_order_invalidation
( &self, sender: Address, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:980
↓ 2 callers
Method
minimum_replacement_gas_price
( &self, mempool: &infra::Mempool, signer: eth::Address, next_nonce: u64,
crates/driver/src/domain/mempools.rs:350
↓ 2 callers
Function
mint_account
An initialized 82-byte SPL Token mint.
crates/solana-driver/src/infra/blockchain/accounts.rs:341
↓ 2 callers
Function
mint_info
(account: Option<&Account>)
crates/solana-orderbook/src/infra/verifier.rs:591
↓ 2 callers
Function
mint_verdict
The verdict on the mint at `account`, which is `None` when the account does not exist. A mint is refused while its fee schedule live at `epoch` charge
crates/solana-token/src/lib.rs:92
↓ 2 callers
Method
mints
The [`MintInfo`] per mint, from the cache or the mint accounts on chain. A mint that is missing or does not unpack as a mint of either token program i
crates/autopilot-svm/src/infra/prices.rs:535
↓ 2 callers
Method
name
(&self)
crates/event-indexing/src/event_handler.rs:655
↓ 2 callers
Method
name
(&self)
crates/autopilot-svm/src/infra/prices.rs:587
↓ 2 callers
Method
native_price
The native price of `mint`, `None` when the auction has none for it. A zero price counts as none: it would value the mint at nothing.
crates/solana-solvers/src/dto/auction.rs:47
↓ 2 callers
Method
native_price_estimator
Creates a native price estimator from the given sources.
crates/price-estimation/src/factory.rs:438
↓ 2 callers
Function
net_quote
A stored quote's amounts net of the order's execution cost, which comes out of the side the order does not fix: a sell order's quote buys less, a buy
crates/solana-orderbook/src/infra/db.rs:229
↓ 2 callers
Method
network_fee_at
[`Self::network_fee`] over fees already fetched.
crates/solana-driver/src/domain/competition.rs:604
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1465
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:5390
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpool/src/lib.rs:4859
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpool/src/lib.rs:4088
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/deadlinecheck/src/lib.rs:574
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2basepool/src/lib.rs:3665
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5649
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2stablepool/src/lib.rs:4438
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2basepoolfactory/src/lib.rs:246
↓ 2 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iuniswaplikepair/src/lib.rs:5217
↓ 2 callers
Function
new_app_data_cid
(contract_app_data: &AppDataHash)
crates/orderbook/src/ipfs_app_data.rs:123
↓ 2 callers
Function
next_blocks
The blocks after the current one: the ones that can include a tx sent now.
crates/driver/src/domain/submission.rs:9
↓ 2 callers
Function
next_ids
(ex: &mut PgConnection, n: usize)
crates/database/src/quotes.rs:53
↓ 2 callers
Function
no_fee
A fee schedule from `epoch` on that takes nothing.
crates/solana-token/src/lib.rs:322
← previous
next →
1,801–1,900 of 10,776, ranked by callers