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
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/deadlinecheck/src/lib.rs:762
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/baoswaprouter/src/lib.rs:1544
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/honeyswaprouter/src/lib.rs:1544
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv3/src/lib.rs:1489
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/permit2/src/lib.rs:4630
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv5/src/lib.rs:1489
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv4/src/lib.rs:1489
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:4673
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:9567
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2stablepoolfactoryv2/src/lib.rs:1181
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/hookstrampoline/src/lib.rs:1250
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/weth9/src/lib.rs:3035
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2noprotocolfeeliquiditybootstrappingpoolfactory/src/lib.rs:907
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpoolfactory/src/lib.rs:891
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/flashloanrouter/src/lib.rs:1274
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1544
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerqueries/src/lib.rs:1691
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/sushiswaprouter/src/lib.rs:1544
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactory/src/lib.rs:1489
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:7197
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2weightedpool2tokensfactory/src/lib.rs:965
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2weightedpoolfactory/src/lib.rs:941
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balances/src/lib.rs:1200
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2weightedpoolfactoryv4/src/lib.rs:1444
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:1124
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:5253
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/balancerv2composablestablepoolfactoryv6/src/lib.rs:1489
↓ 3 callers
Function
deployment_info
(chain_id: u64)
contracts/generated/contracts-generated/cowprotocoltoken/src/lib.rs:4131
↓ 3 callers
Function
deserialize_solana_pubkey_b58
Deserializes a base58-encoded Solana public key from a string.
crates/serde-ext/src/pubkey.rs:7
↓ 3 callers
Method
div_down
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:165
↓ 3 callers
Method
driver
(&self)
crates/autopilot/src/domain/competition/bid.rs:34
↓ 3 callers
Function
driver_server
Serve one fixed driver quote: the probe the request asks for sells into `buy_amount` token atoms.
crates/autopilot-svm/src/infra/prices.rs:984
↓ 3 callers
Method
drop_landed_creations
Drop the creations whose order PDA already exists on chain: an earlier settlement attempt landed them and the autopilot still ships them until the ind
crates/solana-driver/src/domain/auction.rs:182
↓ 3 callers
Method
encode_swap
(&self)
crates/solver/src/interactions/uniswap_v2.rs:27
↓ 3 callers
Function
ensure_settleable
Answer `UnsupportedToken` for the first of `mints` the settlement program cannot move, by its verdict in `verdicts`. A mint without a verdict counts a
crates/solana-orderbook/src/infra/api/routes/mint.rs:30
↓ 3 callers
Function
error_to_response
(err: PriceEstimationError)
crates/autopilot/src/infra/api.rs:103
↓ 3 callers
Function
estimate
(amount: u64)
crates/price-estimation/src/competition/mod.rs:440
↓ 3 callers
Method
estimate
Estimates the gas price for a transaction. If additional tip is configured, it will be added to the gas price. This is to increase the chance of a tra
crates/driver/src/infra/blockchain/gas.rs:53
↓ 3 callers
Method
estimate
(&self)
crates/gas-price-estimation/src/priority.rs:66
↓ 3 callers
Function
estimate_buy_amount
Given a path and sell amount (first token of the path) estimates the buy amount (last token of the path) and the path of liquidity that yields this re
crates/solvers/src/boundary/routing.rs:39
↓ 3 callers
Function
estimate_sell_amount
Given a path and buy amount (last token of the path) estimates the sell amount (first token of the path) and the path of liquidity that yields this re
crates/solvers/src/boundary/routing.rs:76
↓ 3 callers
Method
eth_order_executed
Ensure that the onchain balances changed in accordance with the [`eth_order`].
crates/driver/src/tests/setup/mod.rs:1883
↓ 3 callers
Function
ethereum
( web3: Web3, unbuffered_web3: Web3, chain: &Chain, url: Url, contracts: infra::blockchain
crates/autopilot/src/run.rs:112
↓ 3 callers
Method
exec_alloy_call
(&self, tx: TransactionRequest)
crates/e2e/src/setup/onchain_components/safe.rs:137
↓ 3 callers
Method
executed
(self, executed: Option<eth::U256>)
crates/driver/src/tests/setup/mod.rs:256
↓ 3 callers
Function
exp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/weighted_math.rs:11
↓ 3 callers
Method
expected_amounts
(self, expected_amounts: ExpectedOrderAmounts)
crates/driver/src/tests/setup/mod.rs:226
↓ 3 callers
Function
extensions
(auction_deltas: bool, compression: bool)
crates/autopilot/src/run_loop.rs:1296
↓ 3 callers
Function
factor
(value: f64)
crates/orderbook/src/fee_engine.rs:312
↓ 3 callers
Method
factor
Reads `argument` as a fee factor.
crates/fee-engine/src/fee.rs:240
↓ 3 callers
Method
fee_breakdown
All fees broke down into protocol fees per policy and total fee.
crates/autopilot/src/domain/settlement/trade/mod.rs:66
↓ 3 callers
Method
fee_into_sell_token
Converts given surplus fee into sell token fee at the given prices.
crates/autopilot/src/domain/settlement/trade/math.rs:87
↓ 3 callers
Method
fee_with_additional_cost
(&self, additional_cost: u64)
crates/shared/src/fee.rs:54
↓ 3 callers
Function
fees
(trade: &Trade)
crates/driver/src/domain/competition/solution/scoring.rs:392
↓ 3 callers
Method
fees
The fees to serve: the engine's on a match, else the legacy ones.
crates/fee-engine/src/report.rs:126
↓ 3 callers
Function
fees_from_value
The fees a `fee` expression evaluated to: one, or a list to stack.
crates/fee-engine/src/fee.rs:184
↓ 3 callers
Method
fetch
(&self, pairs: HashSet<TokenPair>, block: Block)
crates/liquidity-sources/src/uniswap_v2/pool_cache.rs:49
↓ 3 callers
Function
fetch_all
( ex: &mut PgConnection, keys_filter: &[Execution], )
crates/database/src/fee_policies.rs:71
↓ 3 callers
Method
fetch_common_pool_state
( &self, pool: &PoolInfo, block: BlockId, )
crates/liquidity-sources/src/balancer_v2/pools/common.rs:109
↓ 3 callers
Function
fetch_latest_prices
(ex: &mut PgConnection)
crates/database/src/auction.rs:142
↓ 3 callers
Function
fetch_solver_winning_solutions
( ex: &mut PgConnection, auction_id: AuctionId, solver: Address, )
crates/database/src/solver_competition_v2.rs:411
↓ 3 callers
Method
fill
The fill as the generic fee math sees it: the signed limit and the legs the custom prices settle it at.
crates/driver/src/domain/competition/solution/scoring.rs:124
↓ 3 callers
Method
finalize_through
Advance the finalized watermark past slots whose transactions all still exist, reverting the rows of the `vanished` ones in the same SQL transaction:
crates/solana-indexer/src/persistence.rs:442
↓ 3 callers
Function
find
The document stored under `hash`. The zero hash names the empty document by protocol convention.
crates/solana-orderbook/src/infra/api/routes/app_data/mod.rs:108
↓ 3 callers
Method
find
( &self, params: QuoteSearchParameters, expiration: DateTime<Utc>, )
crates/autopilot/src/database/auction.rs:45
↓ 3 callers
Method
find_order_for_cancellation
Finds an order for cancellation. Returns an error if the order cannot be found or cannot be cancelled (for example, orders using PreSign).
crates/orderbook/src/orderbook.rs:338
↓ 3 callers
Function
find_state_pda
The settlement state PDA of `program_id` and its bump: the delegate of every user token account and the buffers' SPL authority.
crates/solana-driver/src/domain/settlement.rs:888
↓ 3 callers
Method
flashloan
(mut self, order: order::Uid, flashloan: Flashloan)
crates/driver/src/tests/setup/mod.rs:619
↓ 3 callers
Method
flush_slot
Persist one slot's batch. Dead letters go first: once the last indexed slot passes a slot it is never replayed wholesale, so its replay markers must a
crates/solana-indexer/src/indexer/decoder.rs:260
↓ 3 callers
Function
from_toml
(toml: &str)
crates/autopilot-svm/src/domain/fee.rs:139
↓ 3 callers
Function
full_order_into_model_order
(order: FullOrder)
crates/orderbook/src/database/orders.rs:581
↓ 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:586
↓ 3 callers
Function
fully_set_order
An order with every option set, the view's fields at their fullest.
crates/fee-engine/src/order_view/mod.rs:230
↓ 3 callers
Method
gas
(&self)
crates/driver/src/domain/competition/solution/mod.rs:287
↓ 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
()
crates/order-validation/src/banned/metrics.rs:41
↓ 3 callers
Method
get
Returns the wrapped token pair as a tuple.
crates/driver/src/domain/liquidity/mod.rs:85
↓ 3 callers
Method
get
()
crates/observe/src/future.rs:82
↓ 3 callers
Method
get
()
crates/autopilot/src/run_loop.rs:1025
↓ 3 callers
Method
get
()
crates/autopilot/src/solvable_orders.rs:75
↓ 3 callers
Method
get_app_data
( &self, app_data: AppDataHash, )
crates/e2e/src/setup/services.rs:726
↓ 3 callers
Function
get_block_numbers_of_events
( provider: &AlloyProvider, events: &[(ContractEvent, Log)], )
crates/autopilot/src/database/onchain_order_events/mod.rs:401
↓ 3 callers
Function
get_checkpoint
(pool: &PgPool, contract: &Address)
crates/pool-indexer/src/db/uniswap_v3.rs:24
↓ 3 callers
Method
get_estimators
( &mut self, solvers: &[ExternalSolver], select: impl Fn(&EstimatorEntry) -> &Arc<dyn
crates/price-estimation/src/factory.rs:332
↓ 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
Method
get_order
(&self, uid: &OrderUid)
crates/orderbook/src/orderbook.rs:504
↓ 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_orders
( &self, pairs: HashSet<TokenPair>, block: Block, )
crates/solver/src/liquidity/balancer_v2.rs:41
↓ 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:81
↓ 3 callers
Method
id
The ID of this solution.
crates/driver/src/domain/competition/solution/mod.rs:243
↓ 3 callers
Method
id
(&self)
crates/autopilot/src/infra/solvers/dto/solve.rs:215
↓ 3 callers
Method
id
(&self)
crates/autopilot-svm/src/domain/auction.rs:182
↓ 3 callers
Method
id
Get the solution ID.
crates/winner-selection/src/solution.rs:40
↓ 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:258
↓ 3 callers
Method
increase_gas
Increase the solution gas consumption by at least `units`.
crates/driver/src/tests/setup/mod.rs:585
↓ 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
init
Observability for the Solana driver, built on the shared `observe` crate. Set up the observability. The `obs_config` argument configures the tokio tra
crates/solana-driver/src/infra/observe/mod.rs:5
↓ 3 callers
Function
insert_interaction
( ex: &mut PgConnection, order: &OrderUid, interaction: &Interaction, )
crates/database/src/orders.rs:323
← previous
next →
1,101–1,200 of 10,749, ranked by callers