MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 1 callersMethodresolve_app_data
Resolves the order's app-data hash to the underlying JSON if it isn't already resolved.
crates/driver/src/domain/competition/pre_processing.rs:87
↓ 1 callersMethodresolve_protocol_instruction
Resolve the program against `account_keys`, keeping the instruction only if that program is the settlement or SolFlow program. The `accounts` field ke
crates/solana-indexer/src/indexer/decoder.rs:782
↓ 1 callersFunctionresolved
()
crates/solana-driver/src/domain/buy_token_accounts.rs:70
↓ 1 callersFunctionresponse_body_with_size_limit
Extracts the bytes of the response up to some size limit. Returns an error if the byte limit was exceeded.
crates/autopilot/src/infra/solvers/mod.rs:218
↓ 1 callersFunctionresponse_ids
The solution ids in a `/solve` response body, in response order.
crates/solana-driver/tests/api.rs:367
↓ 1 callersMethodresponse_ok
Resets back off and stops rate limiting requests.
crates/rate-limit/src/lib.rs:49
↓ 1 callersMethodresponse_rate_limited
Returns updated back off if no other thread increased it in the mean time.
crates/rate-limit/src/lib.rs:72
↓ 1 callersFunctionretry_node_call
Retries `f` while the error is a transient transport failure (`is_node_error`). Contract reverts and decoding failures bail out immediately. On giveup
crates/pool-indexer/src/indexer/uniswap_v3.rs:408
↓ 1 callersFunctionretry_with_sleep
Retry on every error.
crates/shared/src/retry.rs:9
↓ 1 callersFunctionreveal
(router: axum::Router<State>)
crates/driver/src/infra/api/routes/reveal/mod.rs:14
↓ 1 callersMethodreveal
(&self, request: reveal::Request)
crates/autopilot/src/infra/solvers/mod.rs:117
↓ 1 callersFunctionreveal_req
Create a request for the driver /reveal endpoint.
crates/driver/src/tests/setup/driver.rs:158
↓ 1 callersFunctionrevealed
(solver: &solver::Name, result: &Result<competition::Revealed, competition::Error>)
crates/driver/src/infra/observe/mod.rs:190
↓ 1 callersFunctionrevealing
()
crates/driver/src/infra/observe/mod.rs:186
↓ 1 callersMethodreverts_can_get_mined
(&self)
crates/driver/src/infra/mempool/mod.rs:180
↓ 1 callersMethodreverts_on_block
Re-simulate a single solution and return its id if it started reverting on this block. Reports metrics and solver notifications as a side effect.
crates/driver/src/domain/competition/mod.rs:660
↓ 1 callersMethodrotate_backends
Rotates to the next backend by moving the current backend to the end of the queue.
crates/e2e/src/setup/proxy.rs:56
↓ 1 callersFunctionround_trip_for_error
( db: &mut PgConnection, placement_error: Option<OnchainOrderPlacementError>,
crates/database/src/onchain_broadcasted_orders.rs:133
↓ 1 callersFunctionrouter
Builds the axum `Router` for the pool-indexer API, and mounts the routes and the metrics middleware.
crates/pool-indexer/src/api/routes.rs:21
↓ 1 callersFunctionrouter
()
crates/orderbook/src/api.rs:685
↓ 1 callersMethodrouter
(&self)
crates/solver/src/liquidity/uniswap_v2.rs:94
↓ 1 callersFunctionrpc
Creates an [`RpcClient`] from the given URL with [`LabelingLayer`], [`InstrumentationLayer`], [`TracingRequestIdLayer`], [`BatchCallLayer`] and [`RpcH
crates/ethrpc/src/alloy/mod.rs:28
↓ 1 callersFunctionrules
()
crates/fee-engine/tests/rules.rs:34
↓ 1 callersFunctionrun
Runs the driver, blocking until the shutdown signal is received.
crates/solana-driver/src/run.rs:39
↓ 1 callersFunctionrun
(args: arguments::Arguments)
crates/refunder/src/lib.rs:54
↓ 1 callersFunctionrun
Runs the orderbook, blocking until the shutdown signal is received.
crates/solana-orderbook/src/run.rs:84
↓ 1 callersFunctionrun
(config: Configuration)
crates/pool-indexer/src/run.rs:67
↓ 1 callersFunctionrun
Assumes tracing and metrics registry have already been set up.
crates/autopilot/src/run.rs:195
↓ 1 callersFunctionrun
( args: impl IntoIterator<Item = String>, bind: Option<oneshot::Sender<SocketAddr>>, )
crates/solvers/src/run.rs:18
↓ 1 callersFunctionrun
(config: Config, start_slot: Option<u64>)
crates/solana-indexer/src/run.rs:72
↓ 1 callersFunctionrun
(config: Configuration)
crates/orderbook/src/run.rs:103
↓ 1 callersFunctionrun
(config: Config)
crates/autopilot-svm/src/run.rs:93
↓ 1 callersFunctionrun
(artifacts_dir: &Path)
contracts/src/vendor.rs:12
↓ 1 callersMethodrun
Drain the update stream until it ends or the decoder hangs up. Returns `Ok(())` when the decoder dropped its receiver (clean shutdown), or [`Err(Erro
crates/solana-indexer/src/indexer/ingester.rs:109
↓ 1 callersMethodrun
(self, mut handler: impl NotifyHandler)
crates/autopilot-svm/src/infra/listen.rs:55
↓ 1 callersMethodrun_connection
One connection lifecycle: subscribe, seed, then drain until the connection drops. When the listener silently reconnects, `try_recv` yields `None` and
crates/autopilot-svm/src/infra/listen.rs:69
↓ 1 callersFunctionrun_database_metrics_work
(db: Postgres)
crates/autopilot/src/database/mod.rs:170
↓ 1 callersFunctionrun_decimals_backfill_pass
( provider: &AlloyProvider, db: &sqlx::PgPool, network: &NetworkName, prefetch_concurrency: us
crates/pool-indexer/src/indexer/uniswap_v3.rs:581
↓ 1 callersMethodrun_essential_maintenance
Runs all the maintenance tasks that are needed to ensure the next auction gets built using the most up-to-date information.
crates/autopilot/src/maintenance.rs:199
↓ 1 callersFunctionrun_factory_indexer
( db: PgPool, indexer: UniswapV3Indexer, network: Arc<NetworkConfig>, factory: crate::config::
crates/pool-indexer/src/run.rs:219
↓ 1 callersFunctionrun_forked_test
(f: F, fork_url: String)
crates/e2e/src/setup/mod.rs:138
↓ 1 callersFunctionrun_forked_test_with_extra_filters_and_block_number
( f: F, fork_url: String, block_number: u64, extra_filters: impl IntoIterator<Item = T>, )
crates/e2e/src/setup/mod.rs:166
↓ 1 callersFunctionrun_generate
()
contracts/src/main.rs:76
↓ 1 callersMethodrun_maintenance
(&self)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:581
↓ 1 callersMethodrun_maintenance
(&self)
crates/event-indexing/src/maintenance.rs:94
↓ 1 callersMethodrun_maintenance_on_new_block
(self, current_block_stream: CurrentBlockWatcher)
crates/event-indexing/src/maintenance.rs:88
↓ 1 callersFunctionrun_network_indexer
(db: PgPool, network: NetworkConfig, barrier: Arc<StartupBarrier>)
crates/pool-indexer/src/run.rs:160
↓ 1 callersMethodrun_optional_maintenance
Runs all the maintenance tasks that should run eventually but are not very time sensitive.
crates/autopilot/src/maintenance.rs:222
↓ 1 callersFunctionrun_refunder_threshold_test
( web3: Web3, slippage: SlippageBps, validity: ValidityDuration, expect_refund: bool, desc
crates/e2e/tests/e2e/refunder.rs:257
↓ 1 callersFunctionrun_stream
( ws_url: url::Url, blocks: CurrentBlockWatcher, sender: watch::Sender<Snapshot>, )
crates/simulator/src/state_override_stream.rs:337
↓ 1 callersFunctionrun_symbol_backfill_pass
( provider: &AlloyProvider, db: &sqlx::PgPool, network: &NetworkName, prefetch_concurrency: us
crates/pool-indexer/src/indexer/uniswap_v3.rs:493
↓ 1 callersFunctionrun_vendor
()
contracts/src/main.rs:71
↓ 1 callersFunctionsame_token
Whether a quote trades a token for itself. The System Program ID stands for native SOL only on the buy side, where it counts as wSOL. A SOL sell names
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:1026
↓ 1 callersFunctionsample_lists
()
crates/fee-engine/src/evaluator.rs:206
↓ 1 callersMethodsanitized
(&self, estimator: Arc<dyn PriceEstimating>)
crates/price-estimation/src/factory.rs:349
↓ 1 callersMethodsanitized_native_price
Creates a SanitizedPriceEstimator that is used for native price estimations
crates/price-estimation/src/factory.rs:360
↓ 1 callersMethodsatisfies
(&self, order: &domain::order::Order)
crates/solvers/src/domain/dex/mod.rs:164
↓ 1 callersMethodsatisfies_with_minimum_surplus
( &self, order: &domain::order::Order, minimum_surplus: &minimum_surplus::MinimumSurpl
crates/solvers/src/domain/dex/mod.rs:171
↓ 1 callersFunctionsave
( ex: &mut PgConnection, order: &OrderUid, auction: AuctionId, block_number: i64, executed
crates/database/src/order_execution.rs:30
↓ 1 callersMethodsave
(&self, data: QuoteCompetition)
crates/orderbook/src/database/quotes.rs:16
↓ 1 callersFunctionsave_jit_orders
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:327
↓ 1 callersFunctionsave_quote_competition
Persists a quote row under the id its winning solver was asked with (see `QuoteCompetitionMetadata::quote_id`) and, for fast-path quotes, stages the a
crates/shared/src/quote_storage.rs:73
↓ 1 callersMethodsave_settlement
( &self, event: SettlementEvent, settlement: Option<&domain::settlement::Settlement>,
crates/autopilot/src/infra/persistence/mod.rs:766
↓ 1 callersFunctionscale
A whole-token price in SOL converted to the scaled atom price: `price * 10^(18 - decimals)`. `None` for a price that is not a positive real number, ro
crates/autopilot-svm/src/infra/prices.rs:912
↓ 1 callersMethodscaled_by_pml
(mut self, pml: u64)
crates/gas-price-estimation/src/lib.rs:115
↓ 1 callersFunctionscaling_exponent_from_decimals
Converts a token decimal count to its corresponding scaling exponent.
crates/liquidity-sources/src/balancer_v2/pools/common.rs:306
↓ 1 callersFunctionscaling_factor
Given two solutions returns the factors with which prices of the second solution would have to be multiplied so that the given token would have the sa
crates/driver/src/domain/competition/solution/mod.rs:703
↓ 1 callersFunctionscaling_factor_to_decimal
( scale: liquidity::balancer::v2::ScalingFactor, )
crates/driver/src/infra/solver/dto/auction.rs:358
↓ 1 callersMethodscaling_factors
Retrieves the scaling exponents for the specified tokens.
crates/liquidity-sources/src/balancer_v2/pools/common.rs:69
↓ 1 callersMethodschedule_auction
(&self, auction_skips_since_on_time: u32)
crates/autopilot/src/run_loop.rs:327
↓ 1 callersFunctionschemas
One entry per known event type, mapping the NATS subject to the JSON schema of the full [`Envelope`]-wrapped wire format consumers receive. Drives the
crates/event-bus-dto/src/lib.rs:56
↓ 1 callersMethodscheme
(&self)
crates/autopilot/src/domain/auction/order.rs:142
↓ 1 callersMethodscore
Score as defined per CIP38. Equal to surplus + protocol fees.
crates/driver/src/domain/competition/solution/settlement.rs:249
↓ 1 callersFunctionscoring
Observe that scoring is about to start.
crates/driver/src/infra/observe/mod.rs:150
↓ 1 callersFunctionscoring_failed
( solver: &Solver, auction_id: Option<auction::Id>, solution_id: &solution::Id, err: &solution
crates/driver/src/infra/notify/mod.rs:24
↓ 1 callersMethodseed
(&mut self)
crates/autopilot-svm/src/infra/listen.rs:121
↓ 1 callersFunctionseed_open_order
(pool: &PgPool, uid: [u8; 32], tip: i64)
crates/autopilot-svm/src/tests.rs:181
↓ 1 callersFunctionsell
()
crates/solvers/src/tests/okx/not_found.rs:10
↓ 1 callersMethodsell_amount
The effective amount that left the user's wallet including all fees. Note how the `executed` amount is used to build actual traded amounts.
crates/driver/src/domain/competition/solution/scoring.rs:172
↓ 1 callersMethodsell_amount
The sell amount with the surplus factor.
crates/driver/src/tests/setup/blockchain.rs:170
↓ 1 callersFunctionsell_token_source_from_domain
(value: SellTokenSource)
crates/driver/src/infra/solver/dto/auction.rs:332
↓ 1 callersFunctionsell_with_limit
(uid: u8, sell_mint: Pubkey, buy_amount: u64)
crates/solana-solvers/src/domain/solver/mod.rs:694
↓ 1 callersMethodsend_bundles
Sends the settlement as one bundle for each block until the deadline, then waits until it is mined or the deadline passes. Builders drop reverting bun
crates/driver/src/infra/builders.rs:148
↓ 1 callersMethodsend_request
( &self, request: R, )
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/mod.rs:54
↓ 1 callersMethodsend_transaction_once
Send a versioned transaction once, after the preflight simulation at the client's commitment level. The node keeps no copy to rebroadcast, so the call
crates/cow-solana-rpc/src/lib.rs:421
↓ 1 callersFunctionsending_solve_request
(solver: &str, remaining_time: Duration, is_quote_request: bool)
crates/driver/src/infra/observe/mod.rs:492
↓ 1 callersFunctionserialized_solve_request
Observe how long serializing and streaming the solve request body to a solver took, both the isolated serialization cost and the total including the s
crates/driver/src/infra/observe/mod.rs:325
↓ 1 callersMethodserve
Serve the API on the given listener until `shutdown` resolves.
crates/solana-solvers/src/api.rs:36
↓ 1 callersMethodserve
( self, shutdown: impl Future<Output = ()> + Send + 'static, order_priority_strategies
crates/driver/src/infra/api/mod.rs:49
↓ 1 callersMethodserve
Starts accepting bundles and forwards their transactions to `node`.
crates/driver/src/tests/setup/builder.rs:34
↓ 1 callersMethodserve
( self, bind: Option<oneshot::Sender<SocketAddr>>, shutdown: impl Future<Output = ()>
crates/solvers/src/api/mod.rs:20
↓ 1 callersFunctionserve_api
( database: Postgres, database_replica: Postgres, orderbook: Arc<Orderbook>, quotes: QuoteHand
crates/orderbook/src/run.rs:563
↓ 1 callersFunctionserve_probes
Serve the metrics and probe routes on the API address with the metrics port.
crates/solana-orderbook/src/run.rs:44
↓ 1 callersFunctionserve_probes
Serve the metrics and probe routes on the metrics port.
crates/solana-indexer/src/run.rs:170
↓ 1 callersMethodsetCounterToBalance
(data: &[u8])
contracts/generated/contracts-generated/counter/src/lib.rs:641
↓ 1 callersMethodsetPreSignature
( data: &[u8], )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4335
↓ 1 callersMethodset_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1595
↓ 1 callersMethodset_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/izeroex/src/lib.rs:665
↓ 1 callersMethodset_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:5449
↓ 1 callersMethodset_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/cowswaponchainorders/src/lib.rs:538
← previousnext →3,501–3,600 of 10,776, ranked by callers