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
↓ 5 callers
Function
next_block
Awaits and returns the next block that will be pushed into the stream.
crates/ethrpc/src/block_stream.rs:394
↓ 5 callers
Function
order
(side: Side, sell_amount: u64, buy_amount: u64)
crates/solana-driver/src/domain/protocol_fee.rs:121
↓ 5 callers
Function
order
(side: Side, sell_amount: u64, buy_amount: u64)
crates/solana-solvers/src/dex/mod.rs:188
↓ 5 callers
Function
order
Sells 1000 `sell_token` for 900 `buy_token` or more.
crates/autopilot/src/fee_engine.rs:390
↓ 5 callers
Function
orders
(order: &Order)
crates/solana-driver/src/domain/protocol_fee.rs:163
↓ 5 callers
Function
pending
The pending events, with the thread that logs them once a period started.
crates/fee-engine/src/report.rs:85
↓ 5 callers
Function
post_solve
(addr: SocketAddr, request: &serde_json::Value)
crates/solana-driver/tests/api.rs:399
↓ 5 callers
Method
pre_interactions
(&self)
crates/price-estimation/src/trade_finding/mod.rs:139
↓ 5 callers
Method
processing_stage_timer
(&self, stage: &str)
crates/driver/src/infra/observe/metrics.rs:84
↓ 5 callers
Function
prod_buckets
()
crates/orderbook/src/fee_engine.rs:323
↓ 5 callers
Method
program_id
The settlement program id this driver settles against.
crates/solana-driver/src/infra/blockchain/mod.rs:87
↓ 5 callers
Function
protocol_fees_by_policy
The fee each of `policies` took from the fill `order` describes, in list order and in the surplus token, recovered from the settled legs. The last pol
crates/protocol-fees/src/lib.rs:106
↓ 5 callers
Method
provide_sufficient_buy_tokens
Instructs the builder to override the settlement contract's buy-token balances so it can pay out every order. The exact amounts are derived from the c
crates/simulator/src/simulation_builder.rs:296
↓ 5 callers
Method
provider
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:208
↓ 5 callers
Method
quote_id
The quote id the request producing this trade was sent with.
crates/price-estimation/src/trade_finding/mod.rs:90
↓ 5 callers
Function
quote_metadata
Returns quote.
crates/e2e/tests/e2e/database.rs:65
↓ 5 callers
Function
quote_verified
Post the `quote_body` sell and return the HTTP status and the parsed body.
crates/solana-orderbook/tests/api.rs:1002
↓ 5 callers
Function
rank
Every quote paired with its [`net`] self, best first. With `prefer_verified`, a verified quote ranks ahead of any unverified one whatever its amount.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:289
↓ 5 callers
Function
read_quote
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:484
↓ 5 callers
Method
record
(&self, content_encoding: Option<&str>, body: &[u8])
crates/e2e/tests/e2e/solve_request_compression.rs:78
↓ 5 callers
Method
record_decode_failure
Record a transaction whose decode failed so recovery can replay it by signature.
crates/solana-indexer/src/persistence.rs:570
↓ 5 callers
Method
register
Registers an app-data document matching the specified app-data hash to the registry, ensuring that there exists an entry linking the specified app dat
crates/orderbook/src/app_data.rs:62
↓ 5 callers
Function
report_with_revert
(events: Vec<Event>)
crates/shared/src/order_creation_simulation.rs:322
↓ 5 callers
Function
request
(from: Pubkey, buy_token: Pubkey, receiver: Option<Pubkey>)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:913
↓ 5 callers
Function
rpc_transaction_json
The RPC wire form of a signed transaction, as `getTransaction` returns it with base64 encoding.
crates/solana-indexer/src/indexer/decoder/tests.rs:504
↓ 5 callers
Function
run
(test_case: TestCase)
crates/driver/src/tests/cases/solver_fee_pre_processing.rs:61
↓ 5 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
↓ 5 callers
Method
sell_amount
(self, sell_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:94
↓ 5 callers
Function
sell_of
(sell_amount: u64)
crates/solana-solvers/src/dto/solution.rs:321
↓ 5 callers
Function
selling
(sell_amount: dto::SellAmount)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:998
↓ 5 callers
Method
settlement_address
Ensure that the settlement contract is deployed to a specific address.
crates/driver/src/tests/setup/mod.rs:857
↓ 5 callers
Function
share_common_pool_state
An internal utility method for sharing the success value for an `anyhow::Result`. Typically, this is pretty trivial using `FutureExt::shared`. Howeve
crates/liquidity-sources/src/balancer_v2/pools/common.rs:326
↓ 5 callers
Method
sign_message
Sign a serialized message. The signature is verified locally, so a misconfigured signer fails here instead of at broadcast.
crates/cow-solana-signer/src/lib.rs:61
↓ 5 callers
Function
solution
(executed_sell: u64, executed_buy: u64)
crates/solana-driver/src/domain/protocol_fee.rs:152
↓ 5 callers
Function
solution
(trades: Vec<Trade>)
crates/solana-driver/src/domain/execution_cost.rs:260
↓ 5 callers
Method
solutions
(&self)
crates/driver/src/tests/setup/mod.rs:1361
↓ 5 callers
Method
solver
The solver which generated this solution.
crates/driver/src/domain/competition/solution/mod.rs:283
↓ 5 callers
Method
solver
(self, solver: eth::Address)
crates/driver/src/tests/setup/mod.rs:1778
↓ 5 callers
Method
solver
(&self)
crates/price-estimation/src/trade_finding/mod.rs:75
↓ 5 callers
Function
spawn_heap_dump_handler
Spawns a new async task that listens for connections to a UNIX socket at "/tmp/heap_dump_<process_name>.sock". When "dump" command is sent, it generat
crates/observe/src/heap_dump_handler.rs:32
↓ 5 callers
Function
spl_token_programs
Every mint of the settlement under the SPL Token program.
crates/solana-driver/src/domain/settlement.rs:1172
↓ 5 callers
Function
split_range
Splits range into two disjuctive consecutive ranges, second one containing last (up to) MAX_BLOCKS_QUERIED elements, first one containing the rest (if
crates/event-indexing/src/event_handler.rs:626
↓ 5 callers
Method
start_protocol_with_args_and_solver_fee
( &self, autopilot_config: configs::autopilot::Configuration, orderbook_config: config
crates/e2e/src/setup/services.rs:256
↓ 5 callers
Function
store
Append one event per order, skipping a label the order's latest event already carries: a looping order marks each state once, not once per cycle.
crates/autopilot-svm/src/infra/order_events.rs:29
↓ 5 callers
Method
store_quote
(&self, competition: QuoteCompetition)
crates/shared/src/order_quoting.rs:734
↓ 5 callers
Method
sub
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:145
↓ 5 callers
Function
swap
()
crates/solana-solvers/src/dto/solution.rs:257
↓ 5 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:136
↓ 5 callers
Function
tighten_limit
The limit leg a fill has to reach for the signed `limit` to hold once the volume fees among `policies` are taken: a sell order's minimum buy rises, a
crates/protocol-fees/src/lib.rs:306
↓ 5 callers
Function
to_db_integer
Slots and solution ids stay far below `i64::MAX`, the column type.
crates/autopilot-svm/src/infra/observation.rs:231
↓ 5 callers
Method
to_quote_data
Flattens the winning quote and metadata from the competition in a `QuoteData`.
crates/shared/src/order_quoting.rs:344
↓ 5 callers
Method
to_signature
(self, scheme: EcdsaSigningScheme)
crates/model/src/signature.rs:301
↓ 5 callers
Method
trades
Trades settled by this solution.
crates/driver/src/domain/competition/solution/mod.rs:248
↓ 5 callers
Method
uid
UID of the order that was settled in this trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:28
↓ 5 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:505
↓ 5 callers
Method
upscale
Scales the input token amount to the value that is used by the Balancer contract to execute math operations.
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:53
↓ 5 callers
Method
validate
(&self)
crates/driver/src/infra/solver/mod.rs:236
↓ 5 callers
Method
web3
Returns a reference to the underlying web3 client.
crates/driver/src/infra/blockchain/mod.rs:73
↓ 5 callers
Method
web3
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:638
↓ 5 callers
Function
windows
Windows over a tip that never moves.
crates/autopilot-svm/src/infra/observation.rs:267
↓ 5 callers
Method
with_early_return
Enables the estimator to return after it got the configured number of successful results instead of having to wait for all estimators to return a resu
crates/price-estimation/src/competition/mod.rs:69
↓ 5 callers
Method
with_env_filter
(mut self, env_filter: &str)
crates/observe/src/config.rs:37
↓ 5 callers
Method
with_protocol_fees
Applies the protocol fees to the existing fulfillment creating a new one.
crates/driver/src/domain/competition/solution/fee.rs:41
↓ 5 callers
Method
with_sell_amount
(mut self, sell_amount: U256)
crates/model/src/order.rs:92
↓ 5 callers
Method
with_valid_to
Set order expiration timestamp (absolute, seconds since epoch).
crates/e2e/tests/e2e/refunder.rs:152
↓ 4 callers
Method
accounts_snapshot
Fetch the accounts at `keys` in a single batched fetch (split into parallel requests above the server's per-request cap) and return them as a snapshot
crates/solana-driver/src/infra/blockchain/mod.rs:232
↓ 4 callers
Method
additional_cost
Returns the gas the settlement will consume on top of the quote's `gas_amount`: ERC-1271 signature verification and, for unverified quotes, the order'
crates/shared/src/order_quoting.rs:116
↓ 4 callers
Method
address
(&self)
crates/driver/src/infra/solver/mod.rs:116
↓ 4 callers
Function
address_bytes_list
(addresses: &[Address])
crates/pool-indexer/src/db/uniswap_v3.rs:16
↓ 4 callers
Function
adjust_bid_for_gas_costs
Adjusts quoted `(sell, buy)` for the quote's gas fee (denominated in the sell token), the same way the user-facing quote nets the fee out of the trade
crates/shared/src/fee.rs:184
↓ 4 callers
Function
advance_time_past_expiration
Advances the blockchain time past the given expiration timestamp.
crates/e2e/tests/e2e/refunder.rs:30
↓ 4 callers
Method
allow_multiple_solve_requests
(mut self)
crates/driver/src/tests/setup/mod.rs:1085
↓ 4 callers
Method
amount
The amount to quote: the sell amount for a `Sell`, the buy amount for a `Buy`.
crates/solana-solvers/src/dex/mod.rs:29
↓ 4 callers
Method
apply
Cuts every trade of `solution` by its order's rent and its share of `network_fee`, the settlement's network fee split evenly over the trades and round
crates/solana-driver/src/domain/execution_cost.rs:118
↓ 4 callers
Method
apply_to
Apply the slippage parameters to the given liquidity increasing the in amount by the appropriate slippage while keeping the out amount the same.
crates/driver/src/domain/competition/solution/slippage.rs:32
↓ 4 callers
Method
arbitrate
(&self, bids: Vec<Bid<Unscored>>, auction: &domain::Auction)
crates/autopilot/src/domain/competition/winner_selection.rs:61
↓ 4 callers
Method
auction_id
Set specific auction ID which will be used during test. Setting auction ID can be used to test various scenarios when handling competing solutions in
crates/driver/src/tests/setup/mod.rs:898
↓ 4 callers
Method
auction_outcome
( &self, order: &boundary::Order, quote: Option<&domain::Quote>, surplus_captu
crates/autopilot/src/fee_engine.rs:137
↓ 4 callers
Method
balance
(self, balance: eth::U256)
crates/driver/src/tests/setup/mod.rs:405
↓ 4 callers
Function
best_response
Returns the best native estimate with respect to the provided ranking and order kind.
crates/price-estimation/src/competition/native.rs:140
↓ 4 callers
Function
big_decimal_to_big_uint
(big_decimal: &BigDecimal)
crates/number/src/conversions.rs:11
↓ 4 callers
Function
big_int_to_u256
(input: &BigInt)
crates/number/src/conversions.rs:48
↓ 4 callers
Method
bind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-driver/src/infra/api/mod.rs:44
↓ 4 callers
Function
block_number_to_block_number_hash
( provider: &AlloyProvider, block_number: BlockNumberOrTag, )
crates/ethrpc/src/block_stream.rs:314
↓ 4 callers
Function
blockhash_valid
Whether `blockhash` is usable, waiting up to `catch_up` for the node to confirm it. The node reports a blockhash from a slot it has not confirmed yet
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:341
↓ 4 callers
Method
build
(self, onchain_components: &OnchainComponents)
crates/e2e/src/setup/services.rs:94
↓ 4 callers
Method
builder
Returns a `ClientBuilder` with the default settings.
crates/http-client/src/lib.rs:37
↓ 4 callers
Function
buy_token_destination_into
(destination: BuyTokenDestination)
crates/shared/src/db_order_conversions.rs:291
↓ 4 callers
Function
calc_in_given_out
https://github.com/balancer-labs/balancer-v2-monorepo/blob/ad1442113b26ec22081c2047e2ec95355a7f12ba/pkg/pool-stable/contracts/StableMath.sol#L152-L190
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:97
↓ 4 callers
Function
calc_out_given_in
https://github.com/balancer-labs/balancer-v2-monorepo/blob/ad1442113b26ec22081c2047e2ec95355a7f12ba/pkg/pool-stable/contracts/StableMath.sol#L109-L147
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:63
↓ 4 callers
Function
calculate_invariant_approx
https://github.com/balancer-labs/balancer-v2-monorepo/blob/stable-deployment/pvt/helpers/src/models/pools/stable/math.ts#L10
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:246
↓ 4 callers
Method
calculate_quote
( &self, parameters: QuoteParameters, )
crates/shared/src/order_quoting.rs:724
↓ 4 callers
Method
call_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/izeroex/src/lib.rs:703
↓ 4 callers
Method
clearing_price
Clearing price for the given token.
crates/driver/src/domain/competition/solution/mod.rs:690
↓ 4 callers
Method
compute_reference_scores
( &self, ranking: &Ranking<C>, context: &AuctionContext<C>, )
crates/winner-selection/src/arbitrator.rs:229
↓ 4 callers
Function
compute_volume_fee
Computes the volume fee amount charged against `base_volume` at the given `factor`. High-precision scaling ensures sub-BPS factors don't round to zero
crates/shared/src/fee.rs:144
↓ 4 callers
Function
config
Creates a temporary file containing the default config (buy orders disabled).
crates/solvers/src/tests/bitget/mod.rs:10
↓ 4 callers
Method
configure_response
Instructs the solver to return a new response from now on.
crates/e2e/src/setup/solver/mock.rs:36
↓ 4 callers
Method
configure_solution
Instructs the solver to return a new solution from now on.
crates/e2e/src/setup/solver/mock.rs:49
↓ 4 callers
Function
conversion_rate
Converts the result of `convertToAssets(10^vault_decimals)` into the per-atom factor (atoms of underlying per atom of vault) by dividing by `10^vault_
crates/price-estimation/src/native/eip4626.rs:254
← previous
next →
701–800 of 10,747, ranked by callers