MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 1 callersFunctioncompute_score
( trades: &[Trade], native_prices: &auction::Prices, )
crates/driver/src/domain/competition/solution/scoring.rs:22
↓ 1 callersMethodcompute_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 callersMethodcompute_submission_deadline
Computes timestamp and number of the last block the order may be executed in.
crates/autopilot/src/fast_path.rs:509
↓ 1 callersMethodcompute_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 callersFunctionconfig
(api_key: String, api_secret: String)
crates/solana-solvers/src/dex/bitget/mod.rs:115
↓ 1 callersMethodconfig
(&self)
crates/driver/src/infra/solver/mod.rs:603
↓ 1 callersFunctionconfig_with_buy_orders
Creates a config with buy orders enabled via the reverse-quote endpoint.
crates/solvers/src/tests/bitget/mod.rs:25
↓ 1 callersFunctionconfig_with_buy_orders
Config with buy orders enabled.
crates/solvers/src/tests/okx/limit_order.rs:325
↓ 1 callersMethodconfigure
Creates a new HTTP client, allowing for additional configuration.
crates/http-client/src/lib.rs:32
↓ 1 callersMethodconfigure_response_async
Instructs the solver to return a new response from now on.
crates/e2e/src/setup/solver/mock.rs:44
↓ 1 callersMethodconfigure_solution_async
Instructs the solver to return a new solution from now on.
crates/e2e/src/setup/solver/mock.rs:56
↓ 1 callersFunctionconnect
(config: &EventBusConfig)
crates/observe/src/event_bus/mod.rs:73
↓ 1 callersFunctionconnect_yellowstone
Retries the yellowstone connection until it succeeds.
crates/solana-indexer/src/run.rs:234
↓ 1 callersMethodconsidered_order_uids
(&self)
crates/autopilot-svm/src/run_loop.rs:386
↓ 1 callersMethodconsidered_order_uids
(&self)
crates/autopilot-svm/src/domain/cycle.rs:82
↓ 1 callersMethodcontains
(&self, token: &Address)
crates/token-info/src/deny_list.rs:23
↓ 1 callersFunctionconverge_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 callersMethodconvertToAssets
(data: &[u8])
contracts/generated/contracts-generated/ierc4626/src/lib.rs:425
↓ 1 callersFunctionconvert_block_and_process
( block: alloy_rpc_types::Header, previous_block: &mut BlockInfo, sender: &watch::Sender<BlockInfo
crates/ethrpc/src/block_stream.rs:160
↓ 1 callersFunctionconvert_execution
(e: DbOrderExecution)
crates/orderbook/src/database/debug_report.rs:182
↓ 1 callersFunctionconvert_fee_policy
(f: DbFeePolicy)
crates/orderbook/src/database/debug_report.rs:225
↓ 1 callersFunctionconvert_invalidation
( invalidation: &GPv2Settlement::OrderInvalidated, log: ValidatedLog, )
crates/autopilot/src/database/events.rs:150
↓ 1 callersFunctionconvert_presignature
( presignature: &GPv2Settlement::PreSignature, log: ValidatedLog, )
crates/autopilot/src/database/events.rs:160
↓ 1 callersFunctionconvert_settlement
( settlement: &GPv2Settlement::Settlement, log: ValidatedLog, )
crates/autopilot/src/database/events.rs:139
↓ 1 callersFunctionconvert_settlement
(s: DbSettlementExecution)
crates/orderbook/src/database/debug_report.rs:212
↓ 1 callersFunctionconvert_solution
(s: DbProposedSolution)
crates/orderbook/src/database/debug_report.rs:169
↓ 1 callersFunctionconvert_trade
(trade: &GPv2Settlement::Trade, log: ValidatedLog)
crates/autopilot/src/database/events.rs:129
↓ 1 callersFunctioncount
(check: &str, outcome: Outcome)
crates/fee-engine/src/report.rs:214
↓ 1 callersMethodcount_win
Counts this quote as the winner of its quote competition.
crates/solana-orderbook/src/infra/quoter.rs:73
↓ 1 callersMethodcovers
Whether the source can fund a sell of `amount`.
crates/solana-orderbook/src/infra/verifier.rs:143
↓ 1 callersFunctioncreate2_target_address
( creator: Address, salt: &[u8; 32], init_code_digest: &[u8; 32], )
crates/liquidity-sources/src/uniswap_v2/pair_provider.rs:27
↓ 1 callersMethodcreateOrder
(data: &[u8])
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:4259
↓ 1 callersMethodcreate_access_list
(&self, tx: T)
crates/simulator/src/ethereum/mod.rs:103
↓ 1 callersFunctioncreate_aggregate_pool_fetcher
Creates an aggregate fetcher for all supported pool factories.
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:317
↓ 1 callersFunctioncreate_auction
( orders: Vec<Order>, prices: Option<HashMap<eth::TokenAddress, Price>>, )
crates/autopilot/src/domain/competition/winner_selection.rs:1207
↓ 1 callersFunctioncreate_bid
( solution_id: u64, solver_address: Address, trades: Vec<(OrderUid, TradedOrder)>,
crates/autopilot/src/domain/competition/winner_selection.rs:1245
↓ 1 callersFunctioncreate_config_file
Create the config file for the driver to use.
crates/driver/src/tests/setup/driver.rs:234
↓ 1 callersFunctioncreate_db_search_parameters
( params: QuoteSearchParameters, expiration: DateTime<Utc>, )
crates/shared/src/event_storing_helpers.rs:35
↓ 1 callersMethodcreate_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 callersMethodcreate_native_estimator
( &mut self, source: &NativePriceEstimatorSource, weth: &WETH9::Instance, )
crates/price-estimation/src/factory.rs:220
↓ 1 callersFunctioncreate_order
( uid: u64, sell_token: TokenAddress, sell_amount: eth::U256, buy_token: Token
crates/autopilot/src/domain/competition/winner_selection.rs:1156
↓ 1 callersFunctioncreate_order_uid
Deterministically creates an OrderUid from a u64.
crates/autopilot/src/domain/competition/winner_selection.rs:1196
↓ 1 callersFunctioncreate_quote_row
(competition: &QuoteCompetition)
crates/shared/src/event_storing_helpers.rs:15
↓ 1 callersFunctioncreate_standard_ethflow_order_parts
(order_uid: ByteArray<56>)
crates/database/src/ethflow_orders.rs:312
↓ 1 callersFunctioncreate_test_arbitrator
()
crates/autopilot/src/domain/competition/winner_selection.rs:1145
↓ 1 callersFunctioncreate_trade
( order: &Order, executed_sell: eth::U256, executed_buy: eth::U256, )
crates/autopilot/src/domain/competition/winner_selection.rs:1231
↓ 1 callersFunctioncreate_zeroex_liquidity_orders
( order_creation: OrderCreation, zeroex_maker: TestAccount, zeroex_addr: Address, chain_id: u6
crates/e2e/tests/e2e/liquidity.rs:295
↓ 1 callersMethodcurrent_auction
(&self)
crates/autopilot/src/solvable_orders.rs:175
↓ 1 callersMethodcurrent_block
(&self)
crates/event-indexing/src/block_retriever.rs:30
↓ 1 callersMethodcurrent_block_timestamp
(&self)
crates/refunder/src/infra/chain.rs:35
↓ 1 callersFunctioncurrent_gas_price
( provider: &AlloyProvider, config: &EstimatorConfig, block: &BlockInfo, )
crates/gas-price-estimation/src/configurable_alloy.rs:84
↓ 1 callersFunctioncurrent_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 callersMethodcurrent_tip
(&self)
crates/autopilot-svm/src/run_loop.rs:423
↓ 1 callersFunctioncustom_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 callersMethodcustom_error
(&self)
crates/driver/src/infra/solver/mod.rs:732
↓ 1 callersMethodcustom_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 callersMethodcustomized_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 callersFunctioncut
The solvable orders for a fresh auction cut.
crates/autopilot-svm/src/infra/db.rs:495
↓ 1 callersMethodcut_auction
(&self)
crates/autopilot/src/run_loop.rs:409
↓ 1 callersFunctioncut_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 callersFunctiondatabase_metrics
(db: Postgres)
crates/autopilot/src/database/mod.rs:175
↓ 1 callersFunctiondeadline
(deadline: &Deadline, timeouts: &Timeouts)
crates/driver/src/infra/observe/mod.rs:488
↓ 1 callersMethoddeadline
(&self)
crates/driver/src/tests/setup/mod.rs:1081
↓ 1 callersMethoddeadline
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:222
↓ 1 callersMethoddeadline_check
(&self)
crates/driver/src/infra/blockchain/contracts.rs:154
↓ 1 callersFunctiondeadline_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 callersFunctiondecode_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 callersFunctiondecode_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 callersFunctiondecode_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 callersFunctiondecode_response
(response: reqwest::Response)
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/request.rs:107
↓ 1 callersFunctiondecode_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 callersMethoddecode_solflow
TODO: decode the SolFlow instruction data. The on-chain program does not exist yet.
crates/solana-indexer/src/indexer/decoder.rs:356
↓ 1 callersFunctiondecompile
`compiled` with its accounts resolved through `keys`, the account keys of `message`.
crates/solana-orderbook/examples/decode_bundle.rs:224
↓ 1 callersFunctiondedup_orders
(orders: &mut Vec<Order>)
crates/solana-driver/src/domain/settlement.rs:655
↓ 1 callersFunctiondefault_active_order_competition_threshold
()
crates/configs/src/orderbook/mod.rs:45
↓ 1 callersMethoddefault_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 callersFunctiondefault_app_data_cache_max_bytes
()
crates/configs/src/orderbook/mod.rs:41
↓ 1 callersFunctiondefault_app_data_size_limit
()
crates/configs/src/orderbook/mod.rs:37
↓ 1 callersFunctiondefault_auction_delta_checkpoint_interval
()
crates/configs/src/autopilot/run_loop.rs:31
↓ 1 callersFunctiondefault_bind_address
()
crates/pool-indexer/src/config.rs:35
↓ 1 callersFunctiondefault_cache_concurrent_requests
()
crates/configs/src/native_price.rs:11
↓ 1 callersFunctiondefault_cache_max_age
()
crates/configs/src/native_price.rs:7
↓ 1 callersFunctiondefault_cache_size
()
crates/configs/src/price_estimation.rs:238
↓ 1 callersFunctiondefault_cleanup_interval
()
crates/configs/src/autopilot/order_events_cleanup.rs:6
↓ 1 callersFunctiondefault_cleanup_threshold
()
crates/configs/src/autopilot/order_events_cleanup.rs:10
↓ 1 callersFunctiondefault_client_connection_check_interval
()
crates/configs/src/database.rs:28
↓ 1 callersFunctiondefault_coin_gecko_max_price_age
()
crates/configs/src/price_estimation.rs:168
↓ 1 callersFunctiondefault_coin_gecko_url
()
crates/configs/src/price_estimation.rs:163
↓ 1 callersFunctiondefault_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 callersFunctiondefault_connection_release_timeout
()
crates/configs/src/database.rs:24
↓ 1 callersFunctiondefault_db_max_connections
()
crates/configs/src/database.rs:11
↓ 1 callersFunctiondefault_db_write_url
()
crates/configs/src/database.rs:16
↓ 1 callersFunctiondefault_detection_timeout
()
crates/configs/src/price_estimation.rs:242
↓ 1 callersFunctiondefault_eip1271_onchain_quote_validity
()
crates/configs/src/order_quoting.rs:3
↓ 1 callersFunctiondefault_ethrpc_max_batch_size
()
crates/configs/src/shared.rs:22
↓ 1 callersFunctiondefault_ethrpc_max_concurrent_requests
()
crates/configs/src/shared.rs:26
↓ 1 callersFunctiondefault_ethrpc_timeout
()
crates/configs/src/shared.rs:30
↓ 1 callersFunctiondefault_ethrpc_timeout
()
crates/driver/src/infra/config/file/mod.rs:116
↓ 1 callersFunctiondefault_fast_path_quote_validity
()
crates/configs/src/order_quoting.rs:12
↓ 1 callersFunctiondefault_gas_estimators
()
crates/configs/src/shared.rs:18
← previousnext →2,501–2,600 of 10,776, ranked by callers