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
↓ 3 callers
Function
insert_or_overwrite_interaction
( ex: &mut PgConnection, interaction: &Interaction, order_uid: &OrderUid, )
crates/database/src/orders.rs:363
↓ 3 callers
Function
insert_orders_and_ignore_conflicts
( ex: &mut PgConnection, orders: &[Order], )
crates/database/src/orders.rs:99
↓ 3 callers
Method
insert_pool
(&mut self, pool: Factory::PoolInfo)
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:119
↓ 3 callers
Function
insert_quote_and_update_on_conflict
( ex: &mut PgConnection, quote: &Quote, )
crates/database/src/orders.rs:433
↓ 3 callers
Function
insert_refund_tx_hashes
( ex: &mut PgTransaction<'_>, refunds: &[Refund], )
crates/database/src/ethflow_orders.rs:99
↓ 3 callers
Function
insert_sponsored_order
Insert a sponsored order, its quote copy when one matched, its app data `document`, and its `created` event in one transaction. A duplicate uid or ord
crates/solana-orderbook/src/infra/db.rs:217
↓ 3 callers
Method
instruction
The instruction filling `order`'s sell token account with its sell amount. `None` when no holder holds that much.
crates/solana-orderbook/src/infra/verifier.rs:152
↓ 3 callers
Method
interactions
Interactions executed by this solution.
crates/driver/src/domain/competition/solution/mod.rs:270
↓ 3 callers
Method
interactions
Check that the quote returns the expected interactions. This is based on the state of the blockchain and the test setup.
crates/driver/src/tests/setup/mod.rs:1684
↓ 3 callers
Method
internalize
Should the interaction be internalized?
crates/driver/src/domain/competition/solution/interaction.rs:18
↓ 3 callers
Method
into_inner
(self)
crates/event-indexing/src/block_retriever.rs:149
↓ 3 callers
Method
into_iter
(self)
crates/eth-domain-types/src/access_list.rs:37
↓ 3 callers
Method
into_quote
The quote for `order`, bidding `minAmount`, keeping the route to build its swap.
crates/solana-solvers/src/dex/bitget/dto.rs:107
↓ 3 callers
Method
into_response
(self)
crates/pool-indexer/src/api/mod.rs:47
↓ 3 callers
Method
into_response
(self)
crates/orderbook/src/api/cancel_order.rs:32
↓ 3 callers
Method
isSolver
(data: &[u8])
contracts/generated/contracts-generated/anyoneauthenticator/src/lib.rs:280
↓ 3 callers
Function
is_accumulating_error
Estimator errors that may go away on retry. They only get served from the cache once they have repeated `ACCUMULATIVE_ERRORS_THRESHOLD` times in a row
crates/price-estimation/src/native_price_cache.rs:106
↓ 3 callers
Method
is_blockhash_valid
Whether the blockhash is still usable for a new transaction at confirmed commitment.
crates/cow-solana-rpc/src/lib.rs:383
↓ 3 callers
Method
is_contract_revert
(&self)
crates/ethrpc/src/alloy/errors.rs:66
↓ 3 callers
Method
is_default
Whether this is the zero-address sentinel (= "pay the owner").
crates/eth-domain-types/src/receiver.rs:48
↓ 3 callers
Method
is_timeout
(&self)
crates/driver/src/infra/solver/mod.rs:725
↓ 3 callers
Function
join
Joins 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 on
crates/autopilot/src/util/mod.rs:5
↓ 3 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/price-estimation/src/utils/mod.rs:13
↓ 3 callers
Method
keys_of_recently_used_entries
(&self)
crates/liquidity-sources/src/recent_block_cache.rs:512
↓ 3 callers
Method
kind_and_amount
The side and the amount it fixes.
crates/solana-orderbook/src/infra/api/routes/quote/dto.rs:100
↓ 3 callers
Method
last_indexed_block
(&self)
crates/pool-indexer/src/indexer/uniswap_v3.rs:235
↓ 3 callers
Function
legacy
(volume: f64)
crates/autopilot/src/fee_engine.rs:373
↓ 3 callers
Function
live_block_watcher
(provider: ethrpc::AlloyProvider)
crates/simulator/src/state_override_stream.rs:1320
↓ 3 callers
Function
live_stream_config
()
crates/simulator/src/state_override_stream.rs:1327
↓ 3 callers
Method
lookup
(&self, tokens: HashSet<Pubkey>)
crates/autopilot-svm/src/infra/prices.rs:359
↓ 3 callers
Function
map_custom_solver_error
(custom_err: &solvers_dto::solution::SolverError)
crates/driver/src/infra/api/error.rs:93
↓ 3 callers
Function
mark_as_reorged
( ex: &mut PgTransaction<'_>, mark_from_block_number: i64, )
crates/database/src/onchain_broadcasted_orders.rs:56
↓ 3 callers
Function
mark_started
Report `/startup` ready. The indexer has caught up when the first backfill is complete, or at once when a `--start-slot` override skips that backfill.
crates/solana-indexer/src/run.rs:224
↓ 3 callers
Method
max_age
(&self)
crates/price-estimation/src/native_price_cache.rs:203
↓ 3 callers
Method
max_native_shortfall
The largest share of the native SOL payouts the solver's own SOL covers, `None` when it covers none.
crates/solana-driver/src/infra/solver/mod.rs:74
↓ 3 callers
Method
merge
( &self, other: &Self, max_orders_per_merged_solution: usize, )
crates/driver/src/domain/competition/solution/mod.rs:410
↓ 3 callers
Method
message
(&self, blockhash: Hash, priority_fee: Estimate)
crates/solana-driver/src/domain/settlement.rs:382
↓ 3 callers
Function
metrics
()
crates/cow-solana-rpc/src/lib.rs:598
↓ 3 callers
Function
metrics
()
crates/autopilot-svm/src/infra/provider.rs:447
↓ 3 callers
Method
mint_token_to_weth_uni_v2_pool
Mints `amount` tokens to its `token`-WETH Uniswap V2 pool. This can be used to modify the pool reserves during a test.
crates/e2e/src/setup/onchain_components/mod.rs:495
↓ 3 callers
Method
mints
Every mint the settlement moves: the sell mints, the token buy mints, and wSOL when an order buys native SOL.
crates/solana-driver/src/domain/settlement.rs:194
↓ 3 callers
Function
mismatch
(group: &str, example: &str)
crates/fee-engine/src/report.rs:252
↓ 3 callers
Function
mock_provider
(asserter: Asserter)
crates/gas-price-estimation/src/configurable_alloy.rs:140
↓ 3 callers
Method
native_prices
Prices used to convert token amounts to an equivalent amount of the native asset (e.g. ETH on ethereum, or xdai on gnosis chain).
crates/driver/src/domain/competition/auction.rs:157
↓ 3 callers
Method
network_fee
The network fee of settling `solution`, in lamports: the signature fee plus the priority fee over the accounts its interactions write, at its compute
crates/solana-driver/src/domain/competition.rs:566
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1560
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv3swaprouterv2/src/lib.rs:359
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/uniswapv3quoterv2/src/lib.rs:594
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv3/src/lib.rs:1270
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iuniswapv3factory/src/lib.rs:1138
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv3/src/lib.rs:1307
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv5/src/lib.rs:1307
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv4/src/lib.rs:1307
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2stablepoolfactoryv2/src/lib.rs:1016
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2noprotocolfeeliquiditybootstrappingpoolfactory/src/lib.rs:737
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpoolfactory/src/lib.rs:727
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/erc20mintable/src/lib.rs:2115
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerqueries/src/lib.rs:707
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/multicall3/src/lib.rs:4431
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafeproxyfactory/src/lib.rs:589
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactory/src/lib.rs:1307
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/swapper/src/lib.rs:1352
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv4/src/lib.rs:1270
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv6/src/lib.rs:1307
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2authorizer/src/lib.rs:1234
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:165
↓ 3 callers
Function
next_id
(ex: &mut PgConnection)
crates/database/src/quotes.rs:45
↓ 3 callers
Function
non_empty_snapshot
(block_number: u64, received_at: Instant)
crates/simulator/src/state_override_stream.rs:809
↓ 3 callers
Function
now_unix
()
crates/solana-orderbook/src/infra/api/routes/order/mod.rs:40
↓ 3 callers
Function
open_orders_by_time_or_uids
( ex: &'a mut PgConnection, uids: &'a [OrderUid], after_timestamp: DateTime<Utc>, now: i64, )
crates/database/src/orders.rs:933
↓ 3 callers
Function
order
`owner`'s order that `trade` fills exactly, in place of the placeholder `quoted`. The orderbook creates the same order in simulation, see [`QuoteOrder
crates/solana-driver/src/domain/quote.rs:17
↓ 3 callers
Function
order
(side: Side)
crates/solana-solvers/src/dex/jupiter/mod.rs:204
↓ 3 callers
Function
order
(sell: Address, buy: Address)
crates/fee-engine/tests/load.rs:31
↓ 3 callers
Method
order_ids
(&self)
crates/autopilot/src/domain/competition/mod.rs:45
↓ 3 callers
Function
order_uid
(byte: u8)
crates/solvers-dto/src/solution.rs:359
↓ 3 callers
Method
orders
Get the orders.
crates/winner-selection/src/solution.rs:50
↓ 3 callers
Function
orders_by_uid
(orders: &[Order])
crates/solana-driver/src/domain/competition.rs:981
↓ 3 callers
Function
orders_with_balance
( mut orders: Vec<&'a Order>, balances: &Balances, settlement_contract: Address, filter_bypass
crates/autopilot/src/solvable_orders.rs:574
↓ 3 callers
Function
pack_user_state
Packs a `UserState { uint128 balance; uint128 additionalData }` into a 32-byte word. The balance occupies the lower 128 bits; `additional_data` sits i
crates/balance-overrides/src/balance/aave.rs:113
↓ 3 callers
Method
pair_address
(&self, pair: &TokenPair)
crates/liquidity-sources/src/uniswap_v2/pair_provider.rs:13
↓ 3 callers
Function
parse_quote
Jupiter's `inAmount` and `outAmount` are what it expects the route to move; its swap instruction enforces only `otherAmountThreshold`, that expectatio
crates/solana-solvers/src/dex/jupiter/mod.rs:166
↓ 3 callers
Method
partial
(self, already_executed: eth::U256)
crates/driver/src/tests/setup/mod.rs:247
↓ 3 callers
Method
parts
Splits an order UID into its parts.
crates/autopilot/src/domain/auction/order.rs:45
↓ 3 callers
Method
ping
(&mut self)
crates/database/src/leader_pg_lock.rs:12
↓ 3 callers
Function
pool_init_data
This can be made cleaner by making the start and end be u8's but the B256 doesn't support for a from(u8) so this needs to be reviewed upon migration
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:250
↓ 3 callers
Function
post_solve
(body: Vec<u8>, content_encoding: Option<&str>)
crates/driver/src/infra/api/mod.rs:270
↓ 3 callers
Function
prepare_submission
In EIP-7702 mode, reroute the tx through the solver EOA's delegate. Its fallback expects the 20-byte target address followed by target calldata. `from
crates/driver/src/domain/mempools.rs:542
↓ 3 callers
Function
priced_with
(prices: &[(Pubkey, u64)])
crates/solana-solvers/src/domain/solver/mod.rs:1112
↓ 3 callers
Function
probe_asserter
Builds an `Asserter` primed with the three responses the probe expects, in order: `UNDERLYING_ASSET_ADDRESS()`, `POOL()`, and `getReserveData(underlyi
crates/balance-overrides/src/balance/aave.rs:235
↓ 3 callers
Function
protocol_app_data_into_validated
(protocol: ProtocolAppData)
crates/driver/src/tests/cases/flashloan_hints.rs:134
↓ 3 callers
Function
provider
Creates a provider with the provided URL and an empty [`MutWallet`]. Returns a copy of the [`MutWallet`] so the caller can modify it later.
crates/ethrpc/src/alloy/mod.rs:93
↓ 3 callers
Function
pure_decoder
A decoder over a lazy pool that never connects: `decode` is pure, tests of it stay database-free.
crates/solana-indexer/src/indexer/decoder/tests.rs:682
↓ 3 callers
Function
push_fee_history
Pushes a fee_history JSON response where `latest_block_base_fee()` returns `base_fee` and the reward is `tip`. The resulting estimate will be: max_p
crates/gas-price-estimation/src/configurable_alloy.rs:164
↓ 3 callers
Method
query
TODO explain why we use BUY order type (shallow liquidity)
crates/price-estimation/src/native/mod.rs:90
↓ 3 callers
Method
quote
Price `order`: one `/quote` request, the swap is built later from it.
crates/solana-solvers/src/dex/jupiter/mod.rs:56
↓ 3 callers
Function
quote_json
Post `body` to the quote route and return the HTTP status and the parsed body.
crates/solana-orderbook/tests/api.rs:987
↓ 3 callers
Method
quote_volume_fee
( &self, order: &Order, quote: &Quote, app_data: &ValidatedAppData, ap
crates/orderbook/src/fee_engine.rs:183
↓ 3 callers
Method
ranked
All solutions that passed the filtering step.
crates/autopilot/src/domain/competition/winner_selection.rs:271
↓ 3 callers
Method
rate_limiting
The back-off applied to rate-limited DEX responses. # Panics Panics on inverted back-off bounds or a growth factor below one: a bad config is a star
crates/solana-solvers/src/config.rs:46
↓ 3 callers
Function
read_onchain_invalidation
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/onchain_invalidations.rs:76
← previous
next →
1,201–1,300 of 10,747, ranked by callers