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
↓ 1 callers
Function
compute_score
( trades: &[Trade], native_prices: &auction::Prices, )
crates/driver/src/domain/competition/solution/scoring.rs:22
↓ 1 callers
Method
compute_scores_by_solution
Computes the `DirectionalScores` for all solutions and discards solutions as invalid whenever that computation is not possible. Solutions get discarde
crates/winner-selection/src/arbitrator.rs:145
↓ 1 callers
Method
compute_submission_deadline
Computes timestamp and number of the last block the order may be executed in.
crates/autopilot/src/fast_path.rs:509
↓ 1 callers
Method
compute_unit_price
The configured percentile of the most recent slots' fees, raised to the floor. No fees at all give the floor.
crates/solana-driver/src/domain/priority_fee.rs:155
↓ 1 callers
Function
config
(api_key: String, api_secret: String)
crates/solana-solvers/src/dex/bitget/mod.rs:115
↓ 1 callers
Method
config
(&self)
crates/driver/src/infra/solver/mod.rs:603
↓ 1 callers
Function
config_with_buy_orders
Creates a config with buy orders enabled via the reverse-quote endpoint.
crates/solvers/src/tests/bitget/mod.rs:25
↓ 1 callers
Function
config_with_buy_orders
Config with buy orders enabled.
crates/solvers/src/tests/okx/limit_order.rs:325
↓ 1 callers
Method
configure
Creates a new HTTP client, allowing for additional configuration.
crates/http-client/src/lib.rs:32
↓ 1 callers
Method
configure_response_async
Instructs the solver to return a new response from now on.
crates/e2e/src/setup/solver/mock.rs:44
↓ 1 callers
Method
configure_solution_async
Instructs the solver to return a new solution from now on.
crates/e2e/src/setup/solver/mock.rs:56
↓ 1 callers
Function
connect
(config: &EventBusConfig)
crates/observe/src/event_bus/mod.rs:73
↓ 1 callers
Function
connect_yellowstone
Retries the yellowstone connection until it succeeds.
crates/solana-indexer/src/run.rs:234
↓ 1 callers
Method
considered_order_uids
(&self)
crates/autopilot-svm/src/run_loop.rs:386
↓ 1 callers
Method
considered_order_uids
(&self)
crates/autopilot-svm/src/domain/cycle.rs:82
↓ 1 callers
Method
contains
(&self, token: &Address)
crates/token-info/src/deny_list.rs:23
↓ 1 callers
Function
converge_in_amount
Balancer V2 pools are "unstable", where if you compute an input amount large enough to buy X tokens, selling the computed amount over the same pool in
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:335
↓ 1 callers
Method
convertToAssets
(data: &[u8])
contracts/generated/contracts-generated/ierc4626/src/lib.rs:425
↓ 1 callers
Function
convert_block_and_process
( block: alloy_rpc_types::Header, previous_block: &mut BlockInfo, sender: &watch::Sender<BlockInfo
crates/ethrpc/src/block_stream.rs:160
↓ 1 callers
Function
convert_execution
(e: DbOrderExecution)
crates/orderbook/src/database/debug_report.rs:182
↓ 1 callers
Function
convert_fee_policy
(f: DbFeePolicy)
crates/orderbook/src/database/debug_report.rs:225
↓ 1 callers
Function
convert_invalidation
( invalidation: &GPv2Settlement::OrderInvalidated, log: ValidatedLog, )
crates/autopilot/src/database/events.rs:150
↓ 1 callers
Function
convert_presignature
( presignature: &GPv2Settlement::PreSignature, log: ValidatedLog, )
crates/autopilot/src/database/events.rs:160
↓ 1 callers
Function
convert_settlement
( settlement: &GPv2Settlement::Settlement, log: ValidatedLog, )
crates/autopilot/src/database/events.rs:139
↓ 1 callers
Function
convert_settlement
(s: DbSettlementExecution)
crates/orderbook/src/database/debug_report.rs:212
↓ 1 callers
Function
convert_solution
(s: DbProposedSolution)
crates/orderbook/src/database/debug_report.rs:169
↓ 1 callers
Function
convert_trade
(trade: &GPv2Settlement::Trade, log: ValidatedLog)
crates/autopilot/src/database/events.rs:129
↓ 1 callers
Function
count
(check: &str, outcome: Outcome)
crates/fee-engine/src/report.rs:214
↓ 1 callers
Method
count_win
Counts this quote as the winner of its quote competition.
crates/solana-orderbook/src/infra/quoter.rs:73
↓ 1 callers
Method
covers
Whether the source can fund a sell of `amount`.
crates/solana-orderbook/src/infra/verifier.rs:143
↓ 1 callers
Function
create2_target_address
( creator: Address, salt: &[u8; 32], init_code_digest: &[u8; 32], )
crates/liquidity-sources/src/uniswap_v2/pair_provider.rs:27
↓ 1 callers
Method
createOrder
(data: &[u8])
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:4259
↓ 1 callers
Method
create_access_list
(&self, tx: T)
crates/simulator/src/ethereum/mod.rs:103
↓ 1 callers
Function
create_aggregate_pool_fetcher
Creates an aggregate fetcher for all supported pool factories.
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:317
↓ 1 callers
Function
create_auction
( orders: Vec<Order>, prices: Option<HashMap<eth::TokenAddress, Price>>, )
crates/autopilot/src/domain/competition/winner_selection.rs:1207
↓ 1 callers
Function
create_bid
( solution_id: u64, solver_address: Address, trades: Vec<(OrderUid, TradedOrder)>,
crates/autopilot/src/domain/competition/winner_selection.rs:1245
↓ 1 callers
Function
create_config_file
Create the config file for the driver to use.
crates/driver/src/tests/setup/driver.rs:234
↓ 1 callers
Function
create_db_search_parameters
( params: QuoteSearchParameters, expiration: DateTime<Utc>, )
crates/shared/src/event_storing_helpers.rs:35
↓ 1 callers
Method
create_displaced
Send the creations of the given pending sponsored orders without a settlement, at most `max_displaced_creations` of them, so the orders outlive their
crates/autopilot-svm/src/infra/sponsor.rs:116
↓ 1 callers
Method
create_native_estimator
( &mut self, source: &NativePriceEstimatorSource, weth: &WETH9::Instance, )
crates/price-estimation/src/factory.rs:220
↓ 1 callers
Function
create_order
( uid: u64, sell_token: TokenAddress, sell_amount: eth::U256, buy_token: Token
crates/autopilot/src/domain/competition/winner_selection.rs:1156
↓ 1 callers
Function
create_order_uid
Deterministically creates an OrderUid from a u64.
crates/autopilot/src/domain/competition/winner_selection.rs:1196
↓ 1 callers
Function
create_quote_row
(competition: &QuoteCompetition)
crates/shared/src/event_storing_helpers.rs:15
↓ 1 callers
Function
create_standard_ethflow_order_parts
(order_uid: ByteArray<56>)
crates/database/src/ethflow_orders.rs:312
↓ 1 callers
Function
create_test_arbitrator
()
crates/autopilot/src/domain/competition/winner_selection.rs:1145
↓ 1 callers
Function
create_trade
( order: &Order, executed_sell: eth::U256, executed_buy: eth::U256, )
crates/autopilot/src/domain/competition/winner_selection.rs:1231
↓ 1 callers
Function
create_zeroex_liquidity_orders
( order_creation: OrderCreation, zeroex_maker: TestAccount, zeroex_addr: Address, chain_id: u6
crates/e2e/tests/e2e/liquidity.rs:295
↓ 1 callers
Method
current_auction
(&self)
crates/autopilot/src/solvable_orders.rs:175
↓ 1 callers
Method
current_block
(&self)
crates/event-indexing/src/block_retriever.rs:30
↓ 1 callers
Method
current_block_timestamp
(&self)
crates/refunder/src/infra/chain.rs:35
↓ 1 callers
Function
current_gas_price
( provider: &AlloyProvider, config: &EstimatorConfig, block: &BlockInfo, )
crates/gas-price-estimation/src/configurable_alloy.rs:84
↓ 1 callers
Function
current_multiplier
The multiplier in effect at `unix_timestamp`: the scheduled one from its timestamp on, the current one before.
crates/autopilot-svm/src/infra/prices.rs:741
↓ 1 callers
Method
current_tip
(&self)
crates/autopilot-svm/src/run_loop.rs:423
↓ 1 callers
Function
custom_error
The program and code of a `Program <id> failed: custom program error: 0x<code>` line. A program's own output starts with `Program log:` or `Program da
crates/solana-driver/src/domain/program_error.rs:97
↓ 1 callers
Method
custom_error
(&self)
crates/driver/src/infra/solver/mod.rs:732
↓ 1 callers
Method
custom_interactions
Converts the provided pre and post [`Hooks`] into pre and post [`Interactions`], respectively. This is done by returning the [`HooksTrampoline`] `exe
crates/shared/src/order_validation.rs:578
↓ 1 callers
Method
customized_event_data_for_event_index
( &self, event_index: &EventIndex, order: &Order, hashmap: &HashMap<EventIndex
crates/autopilot/src/database/onchain_order_events/ethflow_events.rs:110
↓ 1 callers
Function
cut
The solvable orders for a fresh auction cut.
crates/autopilot-svm/src/infra/db.rs:495
↓ 1 callers
Method
cut_auction
(&self)
crates/autopilot/src/run_loop.rs:409
↓ 1 callers
Function
cut_trade
`trade` with `cut` taken off its limit leg: a sell order delivers that much less buy token, a buy order pulls that much more sell token. Nothing to cu
crates/solana-driver/src/domain/execution_cost.rs:191
↓ 1 callers
Function
database_metrics
(db: Postgres)
crates/autopilot/src/database/mod.rs:175
↓ 1 callers
Function
deadline
(deadline: &Deadline, timeouts: &Timeouts)
crates/driver/src/infra/observe/mod.rs:488
↓ 1 callers
Method
deadline
(&self)
crates/driver/src/tests/setup/mod.rs:1081
↓ 1 callers
Method
deadline
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:222
↓ 1 callers
Method
deadline_check
(&self)
crates/driver/src/infra/blockchain/contracts.rs:154
↓ 1 callers
Function
deadline_check_interaction
Builds a direct call to `DeadlineCheck.checkDeadline(deadline)`. The call must be added as the first pre-interaction of the settlement so that it reve
crates/driver/src/domain/competition/solution/encoding.rs:355
↓ 1 callers
Function
decode_buffers_created
`CreateBuffer` -> one `BufferCreated` per created buffer. The parser exposes the created buffers as typed accounts, and the event's token is each buff
crates/solana-indexer/src/indexer/decoder.rs:545
↓ 1 callers
Function
decode_order_cancelled
`CancelOrder` -> `OrderCancelled`. Intent bytes on the wire mean the program created the order already cancelled, so the creation is emitted first.
crates/solana-indexer/src/indexer/decoder.rs:487
↓ 1 callers
Function
decode_order_created
`CreateOrder` -> `OrderCreated`. The parser recovers the encoded order intent and the accounts, and the intent's hash is the order UID. The event carr
crates/solana-indexer/src/indexer/decoder.rs:469
↓ 1 callers
Function
decode_response
(response: reqwest::Response)
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/request.rs:107
↓ 1 callers
Function
decode_settlements_finalized
Pair each `BeginSettle` with the `FinalizeSettle` it names and emit one `SettlementFinalized` per pair. Pairing is by index: a parsed `BeginSettle` c
crates/solana-indexer/src/indexer/decoder.rs:569
↓ 1 callers
Method
decode_solflow
TODO: decode the SolFlow instruction data. The on-chain program does not exist yet.
crates/solana-indexer/src/indexer/decoder.rs:356
↓ 1 callers
Function
decompile
`compiled` with its accounts resolved through `keys`, the account keys of `message`.
crates/solana-orderbook/examples/decode_bundle.rs:224
↓ 1 callers
Function
dedup_orders
(orders: &mut Vec<Order>)
crates/solana-driver/src/domain/settlement.rs:655
↓ 1 callers
Function
default_active_order_competition_threshold
()
crates/configs/src/orderbook/mod.rs:45
↓ 1 callers
Method
default_amount_to_estimate_native_prices_with
The default amount in native tokens atoms to use for price estimation
crates/chain/src/lib.rs:77
↓ 1 callers
Function
default_app_data_cache_max_bytes
()
crates/configs/src/orderbook/mod.rs:41
↓ 1 callers
Function
default_app_data_size_limit
()
crates/configs/src/orderbook/mod.rs:37
↓ 1 callers
Function
default_auction_delta_checkpoint_interval
()
crates/configs/src/autopilot/run_loop.rs:31
↓ 1 callers
Function
default_bind_address
()
crates/pool-indexer/src/config.rs:35
↓ 1 callers
Function
default_cache_concurrent_requests
()
crates/configs/src/native_price.rs:11
↓ 1 callers
Function
default_cache_max_age
()
crates/configs/src/native_price.rs:7
↓ 1 callers
Function
default_cache_size
()
crates/configs/src/price_estimation.rs:238
↓ 1 callers
Function
default_cleanup_interval
()
crates/configs/src/autopilot/order_events_cleanup.rs:6
↓ 1 callers
Function
default_cleanup_threshold
()
crates/configs/src/autopilot/order_events_cleanup.rs:10
↓ 1 callers
Function
default_client_connection_check_interval
()
crates/configs/src/database.rs:28
↓ 1 callers
Function
default_coin_gecko_max_price_age
()
crates/configs/src/price_estimation.rs:168
↓ 1 callers
Function
default_coin_gecko_url
()
crates/configs/src/price_estimation.rs:163
↓ 1 callers
Function
default_compute_unit_limit
The runtime's default compute unit limit for a transaction that declares none, which v1 has to request: 200k units per instruction and 3k per builtin
crates/solana-driver/src/domain/settlement.rs:435
↓ 1 callers
Function
default_connection_release_timeout
()
crates/configs/src/database.rs:24
↓ 1 callers
Function
default_db_max_connections
()
crates/configs/src/database.rs:11
↓ 1 callers
Function
default_db_write_url
()
crates/configs/src/database.rs:16
↓ 1 callers
Function
default_detection_timeout
()
crates/configs/src/price_estimation.rs:242
↓ 1 callers
Function
default_eip1271_onchain_quote_validity
()
crates/configs/src/order_quoting.rs:3
↓ 1 callers
Function
default_ethrpc_max_batch_size
()
crates/configs/src/shared.rs:22
↓ 1 callers
Function
default_ethrpc_max_concurrent_requests
()
crates/configs/src/shared.rs:26
↓ 1 callers
Function
default_ethrpc_timeout
()
crates/configs/src/shared.rs:30
↓ 1 callers
Function
default_ethrpc_timeout
()
crates/driver/src/infra/config/file/mod.rs:116
↓ 1 callers
Function
default_fast_path_quote_validity
()
crates/configs/src/order_quoting.rs:12
↓ 1 callers
Function
default_gas_estimators
()
crates/configs/src/shared.rs:18
← previous
next →
2,501–2,600 of 10,776, ranked by callers