Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,747 in github.com/cowprotocol/services
⨍
Functions
10,747
◇
Types & classes
3,488
↓ 1 callers
Function
run_factory_indexer
( db: PgPool, indexer: UniswapV3Indexer, network: Arc<NetworkConfig>, factory: crate::config::
crates/pool-indexer/src/run.rs:219
↓ 1 callers
Function
run_forked_test
(f: F, fork_url: String)
crates/e2e/src/setup/mod.rs:137
↓ 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:165
↓ 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:581
↓ 1 callers
Method
run_maintenance
(&self)
crates/event-indexing/src/maintenance.rs:94
↓ 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:160
↓ 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:222
↓ 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_stream
( ws_url: url::Url, blocks: CurrentBlockWatcher, sender: watch::Sender<Snapshot>, )
crates/simulator/src/state_override_stream.rs:368
↓ 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:493
↓ 1 callers
Function
run_vendor
()
contracts/src/main.rs:71
↓ 1 callers
Function
same_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:887
↓ 1 callers
Function
sample_lists
()
crates/fee-engine/src/evaluator.rs:206
↓ 1 callers
Method
sanitized
(&self, estimator: Arc<dyn PriceEstimating>)
crates/price-estimation/src/factory.rs:348
↓ 1 callers
Method
sanitized_native_price
Creates a SanitizedPriceEstimator that is used for native price estimations
crates/price-estimation/src/factory.rs:359
↓ 1 callers
Method
satisfies
(&self, order: &domain::order::Order)
crates/solvers/src/domain/dex/mod.rs:164
↓ 1 callers
Method
satisfies_with_minimum_surplus
( &self, order: &domain::order::Order, minimum_surplus: &minimum_surplus::MinimumSurpl
crates/solvers/src/domain/dex/mod.rs:171
↓ 1 callers
Function
save
( ex: &mut PgConnection, order: &OrderUid, auction: AuctionId, block_number: i64, executed
crates/database/src/order_execution.rs:30
↓ 1 callers
Method
save
(&self, data: QuoteCompetition)
crates/orderbook/src/database/quotes.rs:16
↓ 1 callers
Function
save_jit_orders
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:327
↓ 1 callers
Function
save_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 callers
Method
save_settlement
( &self, event: SettlementEvent, settlement: Option<&domain::settlement::Settlement>,
crates/autopilot/src/infra/persistence/mod.rs:752
↓ 1 callers
Function
scale
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:864
↓ 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:703
↓ 1 callers
Function
scaling_factor_to_decimal
( scale: liquidity::balancer::v2::ScalingFactor, )
crates/driver/src/infra/solver/dto/auction.rs:358
↓ 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
Method
scan
Walks the cache once, returning the entries due for a refresh and how many entries are currently banned. Due are the entries close enough to expiry th
crates/order-validation/src/banned/cached.rs:156
↓ 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:56
↓ 1 callers
Method
scheme
(&self)
crates/autopilot/src/domain/auction/order.rs:142
↓ 1 callers
Method
score
Score as defined per CIP38. Equal to surplus + protocol fees.
crates/driver/src/domain/competition/solution/settlement.rs:249
↓ 1 callers
Function
scoring
Observe that scoring is about to start.
crates/driver/src/infra/observe/mod.rs:150
↓ 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
Method
seed
(&mut self)
crates/autopilot-svm/src/infra/listen.rs:121
↓ 1 callers
Function
seed_open_order
(pool: &PgPool, uid: [u8; 32], tip: i64)
crates/autopilot-svm/src/tests.rs:181
↓ 1 callers
Function
sell
()
crates/solvers/src/tests/okx/not_found.rs:10
↓ 1 callers
Method
sell_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 callers
Method
sell_amount
The sell amount with the surplus factor.
crates/driver/src/tests/setup/blockchain.rs:170
↓ 1 callers
Function
sell_token_source_from_domain
(value: SellTokenSource)
crates/driver/src/infra/solver/dto/auction.rs:332
↓ 1 callers
Function
sell_with_limit
(uid: u8, sell_mint: Pubkey, buy_amount: u64)
crates/solana-solvers/src/domain/solver/mod.rs:694
↓ 1 callers
Method
send_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 callers
Method
send_request
( &self, request: R, )
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/mod.rs:54
↓ 1 callers
Method
send_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:401
↓ 1 callers
Function
sending_solve_request
(solver: &str, remaining_time: Duration, is_quote_request: bool)
crates/driver/src/infra/observe/mod.rs:492
↓ 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:325
↓ 1 callers
Method
serve
Serve the API on the given listener until `shutdown` resolves.
crates/solana-solvers/src/api.rs:36
↓ 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
Starts accepting bundles and forwards their transactions to `node`.
crates/driver/src/tests/setup/builder.rs:34
↓ 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:569
↓ 1 callers
Function
serve_probes
Serve the metrics and probe routes on the API address with the metrics port.
crates/solana-orderbook/src/run.rs:44
↓ 1 callers
Function
serve_probes
Serve the metrics and probe routes on the metrics port.
crates/solana-indexer/src/run.rs:170
↓ 1 callers
Method
setCounterToBalance
(data: &[u8])
contracts/generated/contracts-generated/counter/src/lib.rs:645
↓ 1 callers
Method
setPreSignature
( data: &[u8], )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4350
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1602
↓ 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:1619
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:5471
↓ 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:1408
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/signatures/src/lib.rs:1004
↓ 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:863
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1936
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/ierc4626/src/lib.rs:572
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpool/src/lib.rs:4941
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1432
↓ 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:4163
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv3/src/lib.rs:1329
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/iuniswapv3factory/src/lib.rs:1197
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/iuniswaplikerouter/src/lib.rs:1416
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/mockerc4626wrapper/src/lib.rs:2621
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/deadlinecheck/src/lib.rs:685
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/baoswaprouter/src/lib.rs:1408
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/honeyswaprouter/src/lib.rs:1408
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/solver/src/lib.rs:810
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2basepool/src/lib.rs:3739
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv3/src/lib.rs:1369
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/permit2/src/lib.rs:575
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv5/src/lib.rs:1369
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv4/src/lib.rs:1369
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:845
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:538
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2stablepoolfactoryv2/src/lib.rs:1075
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/erc20/src/lib.rs:2289
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/hookstrampoline/src/lib.rs:1168
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/weth9/src/lib.rs:2873
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/gashog/src/lib.rs:698
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5724
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2noprotocolfeeliquiditybootstrappingpoolfactory/src/lib.rs:803
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2composablestablepool/src/lib.rs:597
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpoolfactory/src/lib.rs:789
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/flashloanrouter/src/lib.rs:340
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1408
↓ 1 callers
Method
set_address
(&mut self, address: alloy_sol_types::private::Address)
contracts/generated/contracts-generated/erc20mintable/src/lib.rs:2225
← previous
next →
3,501–3,600 of 10,747, ranked by callers