Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,749 in github.com/cowprotocol/services
⨍
Functions
10,749
◇
Types & classes
3,488
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1823
↓ 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:1044
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2766
↓ 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:737
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactory/src/lib.rs:719
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balances/src/lib.rs:1000
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:908
↓ 4 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowprotocoltoken/src/lib.rs:3783
↓ 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
Function
number
A decimal amount as a double, rounded once from its plain text.
crates/fee-engine/src/order_view/mod.rs:132
↓ 4 callers
Function
order
A partially fillable order with its whole target available.
crates/driver/src/domain/competition/solution/fee.rs:587
↓ 4 callers
Method
order
Get a reference to the traded order.
crates/solvers/src/domain/solution.rs:347
↓ 4 callers
Function
order_kind_from
(kind: DbOrderKind)
crates/shared/src/db_order_conversions.rs:239
↓ 4 callers
Method
order_priority_strategy
(mut self, strategy: OrderPriorityStrategy)
crates/driver/src/tests/setup/mod.rs:826
↓ 4 callers
Function
orders
(orders: &[Order])
crates/solana-driver/src/domain/execution_cost.rs:271
↓ 4 callers
Method
owner
(&self)
crates/autopilot/src/domain/auction/order.rs:40
↓ 4 callers
Function
policies
(order: &Order, policies: &[FeePolicy])
crates/solana-driver/src/domain/protocol_fee.rs:167
↓ 4 callers
Function
post_order_body
( addr: SocketAddr, body: serde_json::Value, )
crates/solana-orderbook/tests/api.rs:2123
↓ 4 callers
Function
price
(autopilot: Url)
crates/solana-orderbook/src/infra/prices.rs:97
↓ 4 callers
Function
program_id
The settlement program the tests run against: not the id the interface crate was compiled for, so a crate constant leaking into the encoding fails.
crates/solana-driver/tests/api.rs:264
↓ 4 callers
Method
provider
(&self)
crates/event-indexing/src/event_handler.rs:708
↓ 4 callers
Function
pubkey
(byte: u8)
crates/solana-solvers/src/dto/solution.rs:242
↓ 4 callers
Function
pubkey
(byte: u8)
crates/solana-orderbook/src/infra/verifier.rs:680
↓ 4 callers
Function
quote
()
crates/orderbook/src/fee_engine.rs:446
↓ 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/onchain_broadcasted_orders.rs:115
↓ 4 callers
Function
read_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/ethflow_orders.rs:65
↓ 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
remaining
Returns the amount of time remaining to solve, or `None` if time's up.
crates/solvers/src/domain/auction.rs:85
↓ 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:535
↓ 4 callers
Function
respects_limit
Whether the executed legs respect the order's signed limit price: the executed price must not be worse than the limit. The same cross-multiplication a
crates/solana-driver/src/domain/settlement.rs:742
↓ 4 callers
Function
row
()
crates/solana-orderbook/src/infra/api/routes/order/dto.rs:157
↓ 4 callers
Method
run
Main loop. Drains the channel, decodes each transaction's tracked instructions, and persists the results. Returns when the ingester drops the sender.
crates/solana-indexer/src/indexer/decoder.rs:123
↓ 4 callers
Method
run_maintenance_for_blocks
( mut self, blocks: impl Stream<Item = BlockInfo>, )
crates/event-indexing/src/maintenance.rs:26
↓ 4 callers
Function
save
( ex: &mut PgTransaction<'_>, auction_id: AuctionId, solutions: &[Solution], )
crates/database/src/solver_competition_v2.rs:250
↓ 4 callers
Method
score
(&self)
crates/winner-selection/src/state.rs:112
↓ 4 callers
Function
sell_of
(uid: u8, sell_mint: Pubkey, sell_amount: u64, buy_amount: u64)
crates/solana-solvers/src/domain/solver/mod.rs:434
↓ 4 callers
Method
sell_token_account
The owner's associated token account of the sell mint.
crates/solana-token/src/quote.rs:33
↓ 4 callers
Function
sell_token_source_into
(source: SellTokenSource)
crates/shared/src/db_order_conversions.rs:275
↓ 4 callers
Method
send
( self, client: &reqwest::Client, base
crates/driver/src/infra/notify/liquidity_sources/liquorice/client/request.rs:88
↓ 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:53
↓ 4 callers
Method
settle
( &self, driver: &infra::Driver, solver: eth::Address, solution_uid: usize,
crates/autopilot/src/settle_call.rs:90
↓ 4 callers
Function
settled_competition
Fetches the competition a settlement tx belongs to.
crates/e2e/tests/e2e/fast_path_settle.rs:85
↓ 4 callers
Function
settlement
(asserter: &Asserter, settlement: Address)
crates/order-validation/src/wrappers.rs:102
↓ 4 callers
Function
setup_native_price_mock
( native_price_estimator: &mut MockNativePriceEstimating, sell_token: Address, buy_tok
crates/shared/src/order_quoting.rs:2383
↓ 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
shutdown_signal
()
crates/observe/src/shutdown.rs:6
↓ 4 callers
Function
signing_scheme_into
(scheme: SigningScheme)
crates/shared/src/db_order_conversions.rs:305
↓ 4 callers
Function
sol_uid
(n: u8)
crates/winner-selection/src/tests.rs:25
↓ 4 callers
Method
solve_with_solver
(&self, solver: &str)
crates/driver/src/tests/setup/mod.rs:1118
↓ 4 callers
Method
spawn_background_task
Spawns task that refreshes the cached balances on every new block. Refreshes must stay serialized: a second concurrent refresh could overwrite a newer
crates/account-balances/src/cached.rs:104
↓ 4 callers
Function
sponsoring
(accounts: serde_json::Value)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:928
↓ 4 callers
Function
start_baseline_solver
( name: String, account: TestAccount, weth: Address, base_tokens: Vec<Address>, max_hops:
crates/e2e/src/setup/colocation.rs:27
↓ 4 callers
Function
store_order_events
( ex: &mut PgConnection, order_uids: impl IntoIterator<Item = domain::OrderUid>, label: OrderEvent
crates/autopilot/src/database/order_events.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:82
↓ 4 callers
Method
surplus_capturing_jit_order_owners
( mut self, surplus_capturing_jit_order_owners: Vec<Address>, )
crates/driver/src/tests/setup/mod.rs:884
↓ 4 callers
Method
surplus_fee
(&self)
crates/driver/src/tests/setup/mod.rs:284
↓ 4 callers
Function
surplus_over_limit
Surplus of the fill `order` describes over its signed limit, scaled to the executed part, in the surplus token.
crates/protocol-fees/src/lib.rs:130
↓ 4 callers
Method
surplus_token
(&self)
crates/autopilot/src/domain/settlement/trade/math.rs:180
↓ 4 callers
Function
swap
(in_amount: u64, out_amount: u64)
crates/solana-solvers/src/dex/mod.rs:203
↓ 4 callers
Function
temp_keypair
Write a fresh keypair to a temp file and return the handle. The file is destroyed when the returned handle is dropped, so callers must keep it alive
crates/solana-testlib/src/lib.rs:24
↓ 4 callers
Function
test_auction
(id: i64, orders: Vec<domain::Order>)
crates/autopilot/src/infra/solvers/dto/solve.rs:661
↓ 4 callers
Function
test_deadline
()
crates/autopilot/src/infra/solvers/dto/solve.rs:671
↓ 4 callers
Function
test_order_was_settled
(ethflow_order: &ExtendedEthFlowOrder, onchain: &OnchainComponents)
crates/e2e/tests/e2e/ethflow.rs:746
↓ 4 callers
Method
to_dex_order
The adapter-facing view of this order.
crates/solana-solvers/src/dto/auction.rs:117
↓ 4 callers
Function
to_interaction
( pool: &liquidity::uniswap::v2::Pool, input: &liquidity::MaxInput, output: &liquidity::ExactOutpu
crates/driver/src/boundary/liquidity/uniswap/v2.rs:87
↓ 4 callers
Function
to_normalized_price
Convert from floating point price to normalized price
crates/price-estimation/src/native/mod.rs:47
↓ 4 callers
Function
tokens
Engines see native SOL buys as wSOL buys, see `Order::new`, so a native SOL price is keyed under the wSOL mint. An auction pricing both collides on th
crates/solana-driver/src/infra/solver/dto/auction.rs:247
↓ 4 callers
Function
trade_from
( row: TradesQueryRow, executed_protocol_fees: Vec<ExecutedProtocolFee>, penalty_cap_native: Optio
crates/orderbook/src/database/trades.rs:166
↓ 4 callers
Function
trades_by_order_uid
Trades filtered by `order_uid`. A trade whose corresponding order row is missing (from both `orders` and `jit_orders`) is excluded.
crates/database/src/trades.rs:77
↓ 4 callers
Method
try_mul_div_floor
(self, mul: Self, div: Self)
crates/chain-types/src/evm.rs:63
↓ 4 callers
Function
tx_update
(slot: u64, sig: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:47
↓ 4 callers
Function
u256_to_big_int
(input: &U256)
crates/number/src/conversions.rs:70
↓ 4 callers
Function
u256_to_big_rational
(input: &U256)
crates/number/src/conversions.rs:74
↓ 4 callers
Method
unsigned
The resolved settlement as an unsigned transaction. Signatures, the blockhash and the priority fee are fixed-size, so it has the signed transaction's
crates/solana-driver/src/domain/settlement.rs:418
↓ 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_cache_at_block
(&self, new_block: u64)
crates/liquidity-sources/src/recent_block_cache.rs:268
↓ 4 callers
Method
update_events
(&mut self)
crates/event-indexing/src/event_handler.rs:390
↓ 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:100
↓ 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
Function
user_orders
( ex: &'a mut PgConnection, owner: &'a Address, offset: i64, limit: Option<i64>, )
crates/database/src/order_history.rs:9
↓ 4 callers
Function
validate
The hash a valid document is named by. Valid is a JSON object of at most `size_limit` bytes. The protocol `metadata` is not parsed: the EVM schema typ
crates/solana-orderbook/src/infra/api/routes/app_data/mod.rs:94
↓ 4 callers
Method
validate
(&self, domain_separator: &DomainSeparator)
crates/model/src/order.rs:477
↓ 4 callers
Method
validate_on_sample_order
Runs every rule against two sample orders and reports each expression that yields no bool or no fee: every expression on the full sample, then the rul
crates/fee-engine/src/rules.rs:309
↓ 4 callers
Function
validator
(asserter: Asserter)
crates/order-validation/src/wrappers.rs:84
↓ 4 callers
Function
venue_of
The single venue a captured frame carries.
crates/simulator/src/state_override_stream.rs:660
↓ 4 callers
Function
weth_pool
A pool between "A" and "WETH".
crates/driver/src/tests/setup/mod.rs:756
↓ 4 callers
Method
width
Width in bytes of a field holding this unit.
crates/simulator/src/state_override_stream.rs:59
↓ 4 callers
Method
with_max_native_shortfall
Let the payer's own SOL cover native SOL payout shortfalls up to `max`.
crates/solana-driver/src/domain/settlement.rs:258
↓ 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
↓ 3 callers
Function
ab_adjusted_pool
(quote: LiquidityQuote)
crates/driver/src/tests/setup/mod.rs:656
↓ 3 callers
Function
ab_liquidity_quote
()
crates/driver/src/tests/setup/mod.rs:671
↓ 3 callers
Function
ad_order
An example order which sells token "A" for token "D".
crates/driver/src/tests/setup/mod.rs:692
← previous
next →
901–1,000 of 10,749, ranked by callers