Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,522 in github.com/cowprotocol/services
⨍
Functions
8,522
◇
Types & classes
3,082
↓ 1 callers
Method
response_ok
Resets back off and stops rate limiting requests.
crates/rate-limit/src/lib.rs:49
↓ 1 callers
Method
response_rate_limited
Returns updated back off if no other thread increased it in the mean time.
crates/rate-limit/src/lib.rs:72
↓ 1 callers
Function
retry_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:376
↓ 1 callers
Function
retry_with_sleep
Retry on every error.
crates/shared/src/retry.rs:9
↓ 1 callers
Function
reveal
(router: axum::Router<State>)
crates/driver/src/infra/api/routes/reveal/mod.rs:14
↓ 1 callers
Method
reveal
(&self, request: reveal::Request)
crates/autopilot/src/infra/solvers/mod.rs:75
↓ 1 callers
Function
reveal_req
Create a request for the driver /reveal endpoint.
crates/driver/src/tests/setup/driver.rs:159
↓ 1 callers
Function
revealed
(solver: &solver::Name, result: &Result<competition::Revealed, competition::Error>)
crates/driver/src/infra/observe/mod.rs:212
↓ 1 callers
Function
revealing
()
crates/driver/src/infra/observe/mod.rs:208
↓ 1 callers
Method
revertable
Whether there is a reasonable risk of this solution reverting on chain.
crates/driver/src/domain/competition/solution/mod.rs:558
↓ 1 callers
Method
reverts_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:576
↓ 1 callers
Method
rotate_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 callers
Function
round_trip_for_error
( db: &mut PgConnection, placement_error: Option<OnchainOrderPlacementError>,
crates/database/src/onchain_broadcasted_orders.rs:122
↓ 1 callers
Function
router
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 callers
Function
router
()
crates/orderbook/src/api.rs:672
↓ 1 callers
Method
router
(&self)
crates/solver/src/liquidity/uniswap_v2.rs:95
↓ 1 callers
Function
rpc
Creates an [`RpcClient`] from the given URL with [`LabelingLayer`], [`InstrumentationLayer`], [`TracingRequestIdLayer`], [`BatchCallLayer`] and [`RpcH
crates/ethrpc/src/alloy/mod.rs:27
↓ 1 callers
Function
run
(args: arguments::Arguments)
crates/refunder/src/lib.rs:51
↓ 1 callers
Function
run
(config: Configuration)
crates/pool-indexer/src/run.rs:67
↓ 1 callers
Function
run
Assumes tracing and metrics registry have already been set up.
crates/autopilot/src/run.rs:184
↓ 1 callers
Function
run
( args: impl IntoIterator<Item = String>, bind: Option<oneshot::Sender<SocketAddr>>, )
crates/solvers/src/run.rs:20
↓ 1 callers
Function
run
(config: Configuration)
crates/orderbook/src/run.rs:97
↓ 1 callers
Function
run
(artifacts_dir: &Path)
contracts/src/vendor.rs:12
↓ 1 callers
Method
run
Drain the update stream until it ends or the decoder hangs up. Recoverable stream errors never reach this loop: the `AutoReconnect` wrapper handles t
crates/solana-indexer/src/indexer/ingester.rs:114
↓ 1 callers
Method
run
Main loop. Drains the channel and routes each transaction's tracked instructions to their per-program decoders. Returns when the ingester drops the se
crates/solana-indexer/src/indexer/decoder.rs:58
↓ 1 callers
Function
run_database_metrics_work
(db: Postgres)
crates/autopilot/src/database/mod.rs:156
↓ 1 callers
Function
run_decimals_backfill_pass
( provider: &AlloyProvider, db: &sqlx::PgPool, network: &NetworkName, prefetch_concurrency: us
crates/pool-indexer/src/indexer/uniswap_v3.rs:549
↓ 1 callers
Method
run_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:203
↓ 1 callers
Function
run_factory_indexer
( db: PgPool, indexer: UniswapV3Indexer, network: Arc<NetworkConfig>, factory: crate::config::
crates/pool-indexer/src/run.rs:218
↓ 1 callers
Method
run_forever
(self)
crates/autopilot/src/periodic_db_cleanup.rs:32
↓ 1 callers
Function
run_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 callers
Function
run_generate
()
contracts/src/main.rs:76
↓ 1 callers
Method
run_maintenance
(&self)
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:570
↓ 1 callers
Method
run_maintenance
(&self)
crates/event-indexing/src/maintenance.rs:95
↓ 1 callers
Method
run_maintenance_on_new_block
(self, current_block_stream: CurrentBlockWatcher)
crates/event-indexing/src/maintenance.rs:88
↓ 1 callers
Function
run_network_indexer
(db: PgPool, network: NetworkConfig, barrier: Arc<StartupBarrier>)
crates/pool-indexer/src/run.rs:159
↓ 1 callers
Method
run_optional_maintenance
Runs all the maintenance tasks that should run eventually but are not very time sensitive.
crates/autopilot/src/maintenance.rs:234
↓ 1 callers
Function
run_refunder_threshold_test
( web3: Web3, slippage: SlippageBps, validity: ValidityDuration, expect_refund: bool, desc
crates/e2e/tests/e2e/refunder.rs:257
↓ 1 callers
Function
run_symbol_backfill_pass
( provider: &AlloyProvider, db: &sqlx::PgPool, network: &NetworkName, prefetch_concurrency: us
crates/pool-indexer/src/indexer/uniswap_v3.rs:461
↓ 1 callers
Function
run_vendor
()
contracts/src/main.rs:71
↓ 1 callers
Method
sanitized
(&self, estimator: Arc<dyn PriceEstimating>)
crates/price-estimation/src/factory.rs:331
↓ 1 callers
Method
sanitized_native_price
Creates a SanitizedPriceEstimator that is used for native price estimations
crates/price-estimation/src/factory.rs:342
↓ 1 callers
Method
satisfies
(&self, order: &domain::order::Order)
crates/solvers/src/domain/dex/mod.rs:162
↓ 1 callers
Method
satisfies_with_minimum_surplus
( &self, order: &domain::order::Order, minimum_surplus: &minimum_surplus::MinimumSurpl
crates/solvers/src/domain/dex/mod.rs:169
↓ 1 callers
Method
saturating_sub
(self, v: Self)
crates/autopilot/src/domain/competition/mod.rs:97
↓ 1 callers
Function
save
( ex: &mut PgConnection, order: &OrderUid, auction: AuctionId, block_number: i64, executed
crates/database/src/order_execution.rs:30
↓ 1 callers
Function
save
( ex: &mut PgConnection, id: AuctionId, json_string: &str, )
crates/database/src/solver_competition.rs:14
↓ 1 callers
Function
save
(ex: &mut PgConnection, auction: Auction)
crates/database/src/auction.rs:68
↓ 1 callers
Method
save
(&self, data: QuoteData)
crates/orderbook/src/database/quotes.rs:14
↓ 1 callers
Function
save_jit_orders
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:325
↓ 1 callers
Method
save_settlement
( &self, event: SettlementEvent, settlement: Option<&domain::settlement::Settlement>,
crates/autopilot/src/infra/persistence/mod.rs:734
↓ 1 callers
Method
scale_amount
Scales the passed `amount` based on the `executed_amount`.
crates/solver/src/settlement/mod.rs:40
↓ 1 callers
Method
scaled_by_pml
(mut self, pml: u64)
crates/gas-price-estimation/src/lib.rs:115
↓ 1 callers
Function
scaling_exponent_from_decimals
Converts a token decimal count to its corresponding scaling exponent.
crates/liquidity-sources/src/balancer_v2/pools/common.rs:306
↓ 1 callers
Function
scaling_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:587
↓ 1 callers
Function
scaling_factor_to_decimal
( scale: liquidity::balancer::v2::ScalingFactor, )
crates/driver/src/infra/solver/dto/auction.rs:397
↓ 1 callers
Method
scaling_factors
Retrieves the scaling exponents for the specified tokens.
crates/liquidity-sources/src/balancer_v2/pools/common.rs:69
↓ 1 callers
Function
schemas
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:52
↓ 1 callers
Method
scheme
(&self)
crates/autopilot/src/domain/auction/order.rs:139
↓ 1 callers
Function
score
Observe the settlement score.
crates/driver/src/infra/observe/mod.rs:175
↓ 1 callers
Method
score
Score as defined per CIP38. Equal to surplus + protocol fees.
crates/driver/src/domain/competition/solution/settlement.rs:238
↓ 1 callers
Method
score_by_token_pair
Returns the total scores for each directed token pair of the solution. E.g. if a solution contains 3 orders like: sell A for B with a score of 10 sell
crates/winner-selection/src/arbitrator.rs:176
↓ 1 callers
Function
scoring
Observe that scoring is about to start.
crates/driver/src/infra/observe/mod.rs:157
↓ 1 callers
Function
scoring_failed
( solver: &Solver, auction_id: Option<auction::Id>, solution_id: &solution::Id, err: &solution
crates/driver/src/infra/notify/mod.rs:24
↓ 1 callers
Function
seed
Seeds pools and ticks from the subgraph and returns the seeded block. The caller catches up from there via `UniswapV3Indexer::catch_up`.
crates/pool-indexer/src/subgraph_seeder.rs:465
↓ 1 callers
Method
seed
(self)
crates/pool-indexer/src/subgraph_seeder.rs:290
↓ 1 callers
Method
seed_pools
(&self)
crates/pool-indexer/src/subgraph_seeder.rs:324
↓ 1 callers
Method
seed_ticks
(&self, pool_ids: &[String])
crates/pool-indexer/src/subgraph_seeder.rs:374
↓ 1 callers
Function
sell
()
crates/solvers/src/tests/okx/not_found.rs:10
↓ 1 callers
Method
sell_amount
The sell amount with the surplus factor.
crates/driver/src/tests/setup/blockchain.rs:168
↓ 1 callers
Function
sell_token_source_from_domain
(value: SellTokenSource)
crates/driver/src/infra/solver/dto/auction.rs:371
↓ 1 callers
Method
send_request
( &self, request: R, )
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/mod.rs:54
↓ 1 callers
Function
sending_solve_request
(solver: &str, remaining_time: Duration, is_quote_request: bool)
crates/driver/src/infra/observe/mod.rs:454
↓ 1 callers
Function
serialize
(bytes: T, serializer: S)
crates/bytes-hex/src/lib.rs:9
↓ 1 callers
Method
serialize
(&self, serializer: S)
crates/model/src/order.rs:635
↓ 1 callers
Function
serialized_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:344
↓ 1 callers
Function
serve
(router: axum::Router, addr: std::net::SocketAddr)
crates/pool-indexer/src/run.rs:309
↓ 1 callers
Method
serve
( self, shutdown: impl Future<Output = ()> + Send + 'static, order_priority_strategies
crates/driver/src/infra/api/mod.rs:49
↓ 1 callers
Method
serve
( self, bind: Option<oneshot::Sender<SocketAddr>>, shutdown: impl Future<Output = ()>
crates/solvers/src/api/mod.rs:20
↓ 1 callers
Function
serve_api
( database: Postgres, database_replica: Postgres, orderbook: Arc<Orderbook>, quotes: QuoteHand
crates/orderbook/src/run.rs:548
↓ 1 callers
Method
setCounterToBalance
(data: &[u8])
contracts/generated/contracts-generated/counter/src/lib.rs:646
↓ 1 callers
Method
setPreSignature
( data: &[u8], )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4351
↓ 1 callers
Method
set_access_list
(&mut self, access_list: RequiredAccessList)
crates/driver/src/domain/competition/solution/settlement.rs:71
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1603
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/izeroex/src/lib.rs:665
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1621
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:5473
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/cowswaponchainorders/src/lib.rs:538
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1409
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/signatures/src/lib.rs:1005
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:418
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/uniswapv3quoterv2/src/lib.rs:653
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/counter/src/lib.rs:864
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1938
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/ierc4626/src/lib.rs:573
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpool/src/lib.rs:4943
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1433
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:319
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2weightedpool/src/lib.rs:4165
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv3/src/lib.rs:1331
← previous
next →
2,401–2,500 of 8,522, ranked by callers