Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,486 in github.com/cowprotocol/services
⨍
Functions
8,486
◇
Types & classes
3,061
↓ 3 callers
Function
frame_with
( venue: Address, account: Address, balance: Option<U256>, slot: Option<B256>,
crates/simulator/src/state_override_stream.rs:289
↓ 3 callers
Method
from
(value: Kind)
crates/driver/src/infra/api/error.rs:45
↓ 3 callers
Function
full_order_into_model_order
(order: FullOrder)
crates/orderbook/src/database/orders.rs:563
↓ 3 callers
Function
full_order_with_quote_into_model_order
If quote is provided, then it is used to extract quote metadata field value.
crates/orderbook/src/database/orders.rs:568
↓ 3 callers
Method
fund
(&self, to: Address, amount: U256)
crates/e2e/src/setup/onchain_components/mod.rs:128
↓ 3 callers
Method
gas
(&self)
crates/driver/src/domain/competition/solution/mod.rs:284
↓ 3 callers
Method
gas_limit
(&self)
crates/app-data/src/hooks.rs:20
↓ 3 callers
Function
generate_settlement_report
(context: Context, trace: CallFrame)
crates/simulator/src/report.rs:93
↓ 3 callers
Method
get
(&mut self, key: K, block: Option<u64>)
crates/liquidity-sources/src/recent_block_cache.rs:396
↓ 3 callers
Method
get
()
crates/autopilot/src/run_loop.rs:1189
↓ 3 callers
Method
get
()
crates/simulator/src/state_override_stream.rs:242
↓ 3 callers
Method
get_app_data
( &self, app_data: AppDataHash, )
crates/e2e/src/setup/services.rs:713
↓ 3 callers
Method
get_applicable_volume_fee_factor
Determines the applicable volume fee factor for a token pair, considering same-token trade configuration, token bucket overrides and default fee facto
crates/shared/src/fee.rs:80
↓ 3 callers
Function
get_checkpoint
(pool: &PgPool, contract: &Address)
crates/pool-indexer/src/db/uniswap_v3.rs:23
↓ 3 callers
Function
get_latest
( ex: &mut PgConnection, order: &OrderUid, )
crates/database/src/order_events.rs:157
↓ 3 callers
Method
get_list
(&self, tokens: Vec<TokenModel>)
crates/shared/src/token_list.rs:35
↓ 3 callers
Function
get_next_auction_id
(ex: &mut PgConnection)
crates/database/src/auction.rs:31
↓ 3 callers
Method
get_next_auction_id
Fetches the ID that should be used for the next auction.
crates/autopilot/src/infra/persistence/mod.rs:103
↓ 3 callers
Method
get_order
(&self, uid: &OrderUid)
crates/orderbook/src/orderbook.rs:492
↓ 3 callers
Function
get_order_by_uid_response
(result: Result<Option<Order>>)
crates/orderbook/src/api/get_order_by_uid.rs:21
↓ 3 callers
Method
get_order_status
( &self, uid: &OrderUid, )
crates/e2e/src/setup/services.rs:626
↓ 3 callers
Method
get_orders
( &self, pairs: HashSet<TokenPair>, block: Block, )
crates/solver/src/liquidity/balancer_v2.rs:48
↓ 3 callers
Method
get_quality
Returns the quality of the token if the cached value has not expired yet.
crates/driver/src/domain/competition/risk_detector/bad_tokens/cache.rs:71
↓ 3 callers
Function
get_registry
Get the global instance of the metrics registry.
crates/observe/src/metrics.rs:59
↓ 3 callers
Method
get_token_info
(&self, address: Address)
crates/token-info/src/lib.rs:79
↓ 3 callers
Method
haircut_fee
Returns the haircut fee for conservative bidding.
crates/driver/src/domain/competition/solution/trade.rs:213
↓ 3 callers
Method
hide_competition_before_block
When the feature is enabled, returns the current block number so DB queries can hide competition data whose deadline hasn't passed yet. Returns `None`
crates/orderbook/src/api.rs:82
↓ 3 callers
Method
id
The ID of this solution.
crates/driver/src/domain/competition/solution/mod.rs:240
↓ 3 callers
Method
id
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:153
↓ 3 callers
Method
id
(&self)
crates/autopilot/src/domain/competition/mod.rs:37
↓ 3 callers
Method
id
Get the solution ID.
crates/winner-selection/src/solution.rs:38
↓ 3 callers
Function
ignore_non_node_error
Bubbles up node errors, ignoring all other errors.
crates/ethrpc/src/alloy/errors.rs:4
↓ 3 callers
Method
in_eth
Apply this price to some token amount, converting that token into ETH. # Examples Converting 1 ETH expressed in `eth::TokenAmount` into `eth::Ether`
crates/driver/src/domain/competition/auction.rs:220
↓ 3 callers
Method
increase_gas
Increase the solution gas consumption by at least `units`.
crates/driver/src/tests/setup/mod.rs:613
↓ 3 callers
Method
index_pool_creation
Indexes a new pool creation event.
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:130
↓ 3 callers
Function
insert_interaction
( ex: &mut PgConnection, order: &OrderUid, interaction: &Interaction, )
crates/database/src/orders.rs:281
↓ 3 callers
Function
insert_onchain_invalidations
( ex: &mut PgTransaction<'_>, events: &[(EventIndex, OrderUid)], )
crates/database/src/onchain_invalidations.rs:21
↓ 3 callers
Function
insert_or_overwrite_interaction
( ex: &mut PgConnection, interaction: &Interaction, order_uid: &OrderUid, )
crates/database/src/orders.rs:321
↓ 3 callers
Function
insert_orders_and_ignore_conflicts
( ex: &mut PgConnection, orders: &[Order], )
crates/database/src/orders.rs:107
↓ 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:391
↓ 3 callers
Function
insert_refund_tx_hashes
( ex: &mut PgTransaction<'_>, refunds: &[Refund], )
crates/database/src/ethflow_orders.rs:99
↓ 3 callers
Function
instruction_account_keys
Resolve an instruction's account-list indices to their pubkeys, in order, so the interface parser can read them positionally. Fails if any index is ou
crates/solana-indexer/src/indexer/decoder.rs:593
↓ 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:1675
↓ 3 callers
Method
into_iter
(self)
crates/eth-domain-types/src/access_list.rs:37
↓ 3 callers
Method
into_response
(self)
crates/pool-indexer/src/api/mod.rs:42
↓ 3 callers
Method
into_response
(self)
crates/orderbook/src/api/cancel_order.rs:32
↓ 3 callers
Method
into_response
(self)
crates/orderbook/src/api/post_quote.rs:32
↓ 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
key
( &self, order: &order::Order, tokens: &Tokens, _solver: ð::Address,
crates/driver/src/domain/competition/sorting.rs:34
↓ 3 callers
Method
limit
Make this a limit order.
crates/driver/src/tests/setup/mod.rs:210
↓ 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
Method
max
Returns the maximum valid timestamp for the specified order.
crates/shared/src/order_validation.rs:1092
↓ 3 callers
Method
max_age
(&self)
crates/price-estimation/src/native_price_cache.rs:193
↓ 3 callers
Method
merge
Tries to merge the specified unwrap with the current one, returning `true` if the merge was successful, and `false` otherwise. Returns an error on ar
crates/solver/src/interactions/weth.rs:19
↓ 3 callers
Method
merge
( &self, other: &Self, max_orders_per_merged_solution: usize, )
crates/driver/src/domain/competition/solution/mod.rs:402
↓ 3 callers
Method
mine_order_creation
( &self, owner: Address, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:949
↓ 3 callers
Function
mock_provider
(asserter: Asserter)
crates/gas-price-estimation/src/configurable_alloy.rs:138
↓ 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:119
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/chainalysisoracle/src/lib.rs:1562
↓ 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:1272
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/iuniswapv3factory/src/lib.rs:1140
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv3/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv5/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv4/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2stablepoolfactoryv2/src/lib.rs:1018
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2noprotocolfeeliquiditybootstrappingpoolfactory/src/lib.rs:739
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpoolfactory/src/lib.rs:729
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/erc20mintable/src/lib.rs:2117
↓ 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/gnosissafeproxyfactory/src/lib.rs:591
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactory/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/swapper/src/lib.rs:1353
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv4/src/lib.rs:1272
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv6/src/lib.rs:1309
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2authorizer/src/lib.rs:1236
↓ 3 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:165
↓ 3 callers
Method
now
(&self)
crates/shared/src/order_quoting.rs:507
↓ 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:872
↓ 3 callers
Function
order
(side: Side)
crates/solana-solvers/src/dex/jupiter/mod.rs:183
↓ 3 callers
Method
order_ids
(&self)
crates/autopilot/src/domain/competition/mod.rs:45
↓ 3 callers
Function
order_kind_from
(kind: DbOrderKind)
crates/shared/src/db_order_conversions.rs:197
↓ 3 callers
Method
orders
Get the orders.
crates/winner-selection/src/solution.rs:48
↓ 3 callers
Function
orders_with_balance
( mut orders: Vec<&'a Order>, balances: &Balances, settlement_contract: Address, filter_bypass
crates/autopilot/src/solvable_orders.rs:562
↓ 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
Method
partial
(self, already_executed: eth::U256)
crates/driver/src/tests/setup/mod.rs:260
↓ 3 callers
Method
partial_validate
(&self, order: PreOrderData)
crates/shared/src/order_validation.rs:659
↓ 3 callers
Method
parts
Splits an order UID into its parts.
crates/autopilot/src/domain/auction/order.rs:42
↓ 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:249
↓ 3 callers
Function
price
(out_amount: u128, gas: u64)
crates/price-estimation/src/competition/quote.rs:363
↓ 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:77
↓ 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_pri
crates/gas-price-estimation/src/configurable_alloy.rs:162
↓ 3 callers
Method
query
TODO explain why we use BUY order type (shallow liquidity)
crates/price-estimation/src/native/mod.rs:90
← previous
next →
801–900 of 8,486, ranked by callers