Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,749 in github.com/cowprotocol/services
⨍
Functions
8,749
◇
Types & classes
3,170
↓ 4 callers
Method
include_slippage_bps
(&self, slippage: u16)
crates/e2e/tests/e2e/ethflow.rs:896
↓ 4 callers
Function
info_span
(request_id: String)
crates/observe/src/tracing/distributed/request_id.rs:55
↓ 4 callers
Function
init
Initializes the event bus. Connection failures are logged but do not abort startup: the event bus is purely observational, so a misconfigured or unrea
crates/observe/src/event_bus/mod.rs:47
↓ 4 callers
Method
init
(factory: &PriceEstimatorFactory, name: &str, params: Self::Params)
crates/price-estimation/src/factory.rs:552
↓ 4 callers
Function
insert_order_and_ignore_conflicts
( ex: &mut PgConnection, order: &Order, )
crates/database/src/orders.rs:171
↓ 4 callers
Function
insert_order_events
( ex: &mut PgConnection, orders: &[OrderUid], timestamp: DateTime<Utc>, label: OrderEventLabel
crates/database/src/order_events.rs:103
↓ 4 callers
Function
insert_trade
( ex: &mut PgConnection, index: &EventIndex, event: &Trade, )
crates/database/src/events.rs:113
↓ 4 callers
Method
internalize
Should the interaction be internalized?
crates/driver/src/domain/competition/solution/interaction.rs:18
↓ 4 callers
Method
into_inner
(self)
crates/driver/src/infra/solver/streaming/timed_writer.rs:32
↓ 4 callers
Method
into_source
(&self, web3: &Web3)
crates/liquidity-sources/src/uniswap_v2/mod.rs:102
↓ 4 callers
Function
is_order_outside_market_price
Checks whether or not an order's limit price is outside the market price specified by the quote.
crates/shared/src/order_validation.rs:1220
↓ 4 callers
Method
jit_orders
(&self)
crates/price-estimation/src/trade_finding/mod.rs:126
↓ 4 callers
Function
join
Join a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with one
crates/shared/src/url.rs:5
↓ 4 callers
Function
join_url
Join a path with a URL, ensuring that there is only one slash between them. It doesn't matter if the URL ends with a slash or the path starts with one
crates/simulator/src/utils/mod.rs:5
↓ 4 callers
Function
lanes_of
(overrides: &StateOverride)
crates/simulator/src/state_override_stream.rs:596
↓ 4 callers
Method
last_event_block
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:121
↓ 4 callers
Function
load_by_id
( mut ex: &mut PgConnection, id: AuctionId, after_block: Option<i64>, )
crates/database/src/solver_competition_v2.rs:118
↓ 4 callers
Function
log_to_event_index
(log: &Log)
crates/autopilot/src/database/events.rs:115
↓ 4 callers
Function
make_query
()
crates/price-estimation/src/competition/mod.rs:632
↓ 4 callers
Function
make_streaming_quoter
Helpers shared by the streaming tests below.
crates/shared/src/order_quoting.rs:2233
↓ 4 callers
Function
map_interactions_data
( interactions: impl IntoIterator<Item = &'a Interaction>, )
crates/price-estimation/src/trade_finding/mod.rs:347
↓ 4 callers
Method
max
Returns the maximum valid timestamp for the specified order.
crates/shared/src/order_validation.rs:1092
↓ 4 callers
Function
merge_raw
Merge two TOML strings, with the override taking precedence # Arguments `base` - The base TOML configuration as a string `overlay` - The override TOM
crates/e2e/src/setup/colocation/utils/toml.rs:16
↓ 4 callers
Function
metrics
()
crates/rate-limit/src/lib.rs:26
↓ 4 callers
Function
mocked_reader
A reader whose node answers with whatever is pushed onto `asserter`.
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:586
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowswaponchainorders/src/lib.rs:479
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/signatures/src/lib.rs:895
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1825
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:786
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/hookstrampoline/src/lib.rs:1046
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2768
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepool/src/lib.rs:538
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/flashloanrouter/src/lib.rs:281
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpool2tokensfactory/src/lib.rs:739
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactory/src/lib.rs:721
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balances/src/lib.rs:1001
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:910
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowprotocoltoken/src/lib.rs:3786
↓ 4 callers
Method
no_surplus
Ensure that this order generates no surplus, and therefore most likely has a negative score.
crates/driver/src/tests/setup/mod.rs:179
↓ 4 callers
Method
order_priority_strategy
(mut self, strategy: OrderPriorityStrategy)
crates/driver/src/tests/setup/mod.rs:839
↓ 4 callers
Function
order_simulator
(sim: MockOrderSimulating)
crates/shared/src/order_validation.rs:3189
↓ 4 callers
Method
owner
(&self)
crates/autopilot/src/domain/auction/order.rs:37
↓ 4 callers
Method
provider
(&self)
crates/event-indexing/src/event_handler.rs:702
↓ 4 callers
Function
pubkey
(byte: u8)
crates/solana-solvers/src/domain/solver/mod.rs:60
↓ 4 callers
Function
publish_event
Enqueues the event to be sent to the event bus in a background task. For ad-hoc events, use [`publish`] instead.
crates/observe/src/event_bus/mod.rs:163
↓ 4 callers
Method
put_app_data
( &self, app_data: Option<AppDataHash>, full_app_data: &str, )
crates/e2e/src/setup/services.rs:742
↓ 4 callers
Function
read_last_block_from_db
(db: &PgPool, contract: &str)
crates/autopilot/src/boundary/events/mod.rs:19
↓ 4 callers
Function
read_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/ethflow_orders.rs:65
↓ 4 callers
Function
read_quotes
( ex: &mut sqlx::PgConnection, order_ids: &[OrderUid], )
crates/database/src/orders.rs:454
↓ 4 callers
Method
reference_price
(&self, token: ð::TokenAddress)
crates/solvers/src/domain/auction.rs:30
↓ 4 callers
Function
refundable_orders
( ex: &mut PgConnection, since_valid_to: i64, min_validity_duration: i64, min_price_deviation:
crates/database/src/ethflow_orders.rs:130
↓ 4 callers
Method
request
Prepares a request builder which already has additional headers set.
crates/solvers/src/infra/dex/mod.rs:75
↓ 4 callers
Function
reserves
(reserve0: u128, reserve1: u128)
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:530
↓ 4 callers
Method
round
Rounds the slippage to the specified number of decimal places.
crates/solvers/src/domain/dex/slippage.rs:90
↓ 4 callers
Method
run_maintenance_for_blocks
( mut self, blocks: impl Stream<Item = BlockInfo>, )
crates/event-indexing/src/maintenance.rs:26
↓ 4 callers
Function
sample_auction_dto
()
crates/solana-driver/src/infra/solver/dto/solution.rs:249
↓ 4 callers
Function
save
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:248
↓ 4 callers
Method
score
(&self)
crates/winner-selection/src/state.rs:112
↓ 4 callers
Method
sell_amount
The effective amount that left the user's wallet including all fees.
crates/driver/src/domain/competition/solution/trade.rs:69
↓ 4 callers
Function
sell_token_source_into
(source: SellTokenSource)
crates/shared/src/db_order_conversions.rs:249
↓ 4 callers
Function
serve
(listen_addr: SocketAddr, backends: Vec<Url>, state: ProxyState)
crates/e2e/src/setup/proxy.rs:119
↓ 4 callers
Method
serve
Serve the API on the given listener until `shutdown` resolves, then drain in-flight requests before returning.
crates/solana-driver/src/infra/api/mod.rs:42
↓ 4 callers
Function
setup_native_price_mock
( native_price_estimator: &mut MockNativePriceEstimating, sell_token: Address, buy_tok
crates/shared/src/order_quoting.rs:2276
↓ 4 callers
Function
setup_registry
Configure global metrics registry. This function allows specifying common prefix that will be added to all metric names, as well as common labels. T
crates/observe/src/metrics.rs:42
↓ 4 callers
Function
signing_scheme_into
(scheme: SigningScheme)
crates/shared/src/db_order_conversions.rs:279
↓ 4 callers
Method
solve_with_solver
(&self, solver: &str)
crates/driver/src/tests/setup/mod.rs:1120
↓ 4 callers
Function
spawn_server
Spawn the API server on an ephemeral port and return its bound address.
crates/solana-driver/tests/api.rs:33
↓ 4 callers
Function
start
The driver entry-point. This function exists in order to be able to run the driver from multiple binaries.
crates/driver/src/run.rs:32
↓ 4 callers
Method
stream
( &self, http_url: Url, alloy_provider: AlloyProvider, )
crates/shared/src/current_block.rs:42
↓ 4 callers
Method
supports_fast_path
(&self)
crates/price-estimation/src/trade_finding/mod.rs:79
↓ 4 callers
Method
surplus
Returns the dynamic component for the fee.
crates/solvers/src/domain/solution.rs:412
↓ 4 callers
Method
surplus_capturing_jit_order_owners
( mut self, surplus_capturing_jit_order_owners: Vec<Address>, )
crates/driver/src/tests/setup/mod.rs:897
↓ 4 callers
Method
surplus_fee
(&self)
crates/driver/src/tests/setup/mod.rs:297
↓ 4 callers
Method
surplus_over
A general surplus function. Can return different types of surplus based on the input parameters.
crates/autopilot/src/domain/settlement/trade/math.rs:34
↓ 4 callers
Function
swap
()
crates/solana-solvers/src/dto/solution.rs:169
↓ 4 callers
Method
target
The buy amount for [`Side::Buy`] orders, or the sell amount for [`Side::Sell`] orders.
crates/driver/src/domain/competition/order/mod.rs:133
↓ 4 callers
Function
test_order_was_settled
(ethflow_order: &ExtendedEthFlowOrder, onchain: &OnchainComponents)
crates/e2e/tests/e2e/ethflow.rs:730
↓ 4 callers
Function
to_db_slot
Slots stay far below `i64::MAX`, the conversion to the database's `bigint` is lossless.
crates/solana-indexer/src/persistence.rs:25
↓ 4 callers
Function
to_interaction
( pool: &liquidity::uniswap::v2::Pool, input: &liquidity::MaxInput, output: &liquidity::ExactOutpu
crates/driver/src/boundary/liquidity/uniswap/v2.rs:84
↓ 4 callers
Method
transaction
The calldata for this settlement.
crates/driver/src/domain/competition/solution/settlement.rs:224
↓ 4 callers
Method
try_add
`self + rhs`, `Overflow` when it does not fit.
crates/chain-types/src/lib.rs:61
↓ 4 callers
Function
tx_update
(slot: u64, sig: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:46
↓ 4 callers
Function
u256_to_big_rational
(input: &U256)
crates/number/src/conversions.rs:74
↓ 4 callers
Function
update
( ex: &mut PgConnection, contract: &str, last_indexed_block: i64, )
crates/database/src/last_indexed_blocks.rs:7
↓ 4 callers
Method
update_events
(&mut self)
crates/event-indexing/src/event_handler.rs:388
↓ 4 callers
Method
update_orders
Updates the orders that participated in settlements by incrementing their attempt count. `failure` indicates whether the settlement was successful or
crates/driver/src/domain/competition/risk_detector/bad_orders/metrics.rs:99
↓ 4 callers
Function
update_settlement_solver_and_gas
( ex: &mut PgConnection, block_number: i64, log_index: i64, solver: Address, solution_uid:
crates/database/src/settlements.rs:71
↓ 4 callers
Method
update_tokens_and_fetch_prices
Replaces the full set of tokens that should be maintained by the background task and fetches their current prices.
crates/price-estimation/src/native_price_cache.rs:494
↓ 4 callers
Function
user_orders
( ex: &'a mut PgConnection, owner: &'a Address, offset: i64, limit: Option<i64>, )
crates/database/src/order_history.rs:9
↓ 4 callers
Method
validate
(&self)
crates/driver/src/infra/solver/mod.rs:227
↓ 4 callers
Function
weth_pool
A pool between "A" and "WETH".
crates/driver/src/tests/setup/mod.rs:774
↓ 4 callers
Method
with_verification
Configures if verified price estimates should be ranked higher than unverified ones even if the price is worse. Per default verified quotes do not get
crates/price-estimation/src/competition/mod.rs:59
↓ 4 callers
Method
withdraw
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2401
↓ 3 callers
Function
ab_adjusted_pool
(quote: LiquidityQuote)
crates/driver/src/tests/setup/mod.rs:674
↓ 3 callers
Function
ab_liquidity_quote
()
crates/driver/src/tests/setup/mod.rs:689
↓ 3 callers
Function
ad_order
An example order which sells token "A" for token "D".
crates/driver/src/tests/setup/mod.rs:710
↓ 3 callers
Function
ad_pool
A pool between tokens "A" and "D".
crates/driver/src/tests/setup/mod.rs:721
↓ 3 callers
Function
ad_solution
A solution solving the [`ad_order`].
crates/driver/src/tests/setup/mod.rs:731
↓ 3 callers
Method
address
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:59
↓ 3 callers
Method
address
Returns the address of the Safe.
crates/e2e/src/setup/onchain_components/safe.rs:145
← previous
next →
601–700 of 8,749, ranked by callers