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
↓ 2 callers
Method
weth
(&self)
crates/driver/src/infra/blockchain/contracts.rs:134
↓ 2 callers
Method
weth
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:150
↓ 2 callers
Method
weth_address
(&self)
crates/driver/src/infra/blockchain/contracts.rs:138
↓ 2 callers
Function
with
(tx: Tx, block: eth::BlockNo)
crates/simulator/src/lib.rs:194
↓ 2 callers
Method
with_additional_cost
Adjusts the quote fee to include arbitrary additional costs.
crates/shared/src/order_quoting.rs:159
↓ 2 callers
Method
with_app_data
(mut self, app_data: [u8; 32])
crates/model/src/order.rs:107
↓ 2 callers
Method
with_buffers_internalizations
Returns `self` with eligible interactions internalized using the Settlement contract buffers. Currently, this internalizes all interactions with inpu
crates/solvers/src/domain/solution.rs:50
↓ 2 callers
Method
with_domain
(self, order: &dex::Order, slippage: &dex::Slippage)
crates/solvers/src/infra/dex/okx/dto.rs:76
↓ 2 callers
Method
with_key
(&self, request: reqwest::RequestBuilder)
crates/solana-solvers/src/dex/jupiter/mod.rs:122
↓ 2 callers
Method
with_metric_label
Clones self and returns an instance that captures metrics extended with the provided label.
crates/simulator/src/ethereum/mod.rs:83
↓ 2 callers
Function
with_middleware
Wraps all routes in the middleware every request passes through before reaching its handler.
crates/driver/src/infra/api/mod.rs:196
↓ 2 callers
Method
with_native_prices
A copy with `prices` applied to the matching tokens. Tokens absent from `prices` keep their existing price.
crates/driver/src/domain/competition/auction.rs:189
↓ 2 callers
Method
with_partially_fillable
(mut self, partially_fillable: bool)
crates/model/src/order.rs:127
↓ 2 callers
Method
with_presign
(mut self, owner: Address)
crates/model/src/order.rs:169
↓ 2 callers
Function
with_protocol_fees
( fulfillment: &Fulfillment, prices: ClearingPrices, )
crates/driver/src/domain/competition/solution/fee.rs:372
↓ 2 callers
Method
with_receiver
(mut self, receiver: Receiver)
crates/model/src/order.rs:112
↓ 2 callers
Method
with_scaled_sell_amount
Scales order buy amount to the specified sell amount. This allows scaling the quoted amounts to some lower sell amount accounting for fees (for quote
crates/shared/src/order_quoting.rs:181
↓ 2 callers
Method
with_score
(self, score: Score)
crates/winner-selection/src/state.rs:82
↓ 2 callers
Method
with_sell_amount
Set the sell amount for the order.
crates/e2e/tests/e2e/refunder.rs:140
↓ 2 callers
Method
with_solver_fee
Inject the configured solver fee (see [`crate::infra::Solver::solver_fee`]) so that the existing protocol fee machinery makes the delivered price corr
crates/driver/src/domain/competition/auction.rs:121
↓ 2 callers
Method
with_timeout
(mut self, timeout: Duration)
crates/e2e/src/setup/services.rs:89
↓ 2 callers
Method
with_valid_to
(mut self, valid_to: u32)
crates/model/src/order.rs:102
↓ 2 callers
Method
without_wallet
(&self)
crates/ethrpc/src/alloy/mod.rs:137
↓ 2 callers
Function
workspace_root
()
contracts/src/main.rs:67
↓ 2 callers
Method
wrapped
Treats native ETH like the wrapped native token, so that buckets and the price map don't need to contain the ETH marker address.
crates/autopilot/src/domain/penalty_cap.rs:136
↓ 2 callers
Method
wrapped_native_token
Wrapped version of the native token (e.g. WETH for Ethereum, WXDAI for Gnosis Chain)
crates/autopilot/src/infra/blockchain/contracts.rs:156
↓ 2 callers
Function
writable_accounts
The accounts a transaction of `instructions` paid by `payer` locks as writable, the payer first and each once: the accounts whose recent prioritizatio
crates/solana-driver/src/domain/settlement.rs:452
↓ 2 callers
Method
writable_accounts
The accounts the settlement transaction locks as writable, the fee payer first: the accounts whose recent prioritization fees price it.
crates/solana-driver/src/domain/settlement.rs:368
↓ 2 callers
Method
write_finalized_slot
Advance the finalized watermark. Update-only: before the first flush there is no state row and nothing indexed to finalize. A backward write is a no-o
crates/solana-indexer/src/persistence.rs:551
↓ 1 callers
Method
BALANCE_MANAGER
( data: &[u8], )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:7647
↓ 1 callers
Method
DOMAIN_SEPARATOR
(data: &[u8])
contracts/generated/contracts-generated/permit2/src/lib.rs:3608
↓ 1 callers
Method
SETTLEMENT
(data: &[u8])
contracts/generated/contracts-generated/icowwrapper/src/lib.rs:438
↓ 1 callers
Function
_ln
(mut a: I256)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:177
↓ 1 callers
Function
_ln_36
(mut x: I256)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point/logexpmath.rs:216
↓ 1 callers
Method
abi_only
Creates a context for vendoring only the contract ABI for generating bindings. This is preferred over [`Vendor::full`] for contracts that do not need
contracts/src/vendor.rs:253
↓ 1 callers
Method
absolute_cap_in_native
The absolute USD bound converted into native token using the last known price of the reference token. Returns `U256::MAX` if `absolute_cap_atoms * pri
crates/autopilot/src/domain/penalty_cap.rs:147
↓ 1 callers
Function
accept_by_simulation
Lets a passing settlement simulation accept a flashloan order that the signature or transfer check rejected. Every other simulation outcome keeps the
crates/shared/src/order_validation.rs:193
↓ 1 callers
Method
access_list_for_eth_transfer
Computes access list for sending native eth to the given receiver. This access list may be needed to make sending ETH to smart contract wallets possib
crates/simulator/src/lib.rs:84
↓ 1 callers
Method
account
The account which should be used to sign settlements for this solver.
crates/driver/src/infra/solver/mod.rs:329
↓ 1 callers
Function
account_count
Total accounts a transaction resolves to: its static keys plus every address loaded from its lookup tables.
crates/solana-driver/src/domain/competition.rs:1180
↓ 1 callers
Function
account_keys
The message's account keys in index order: the static keys, then the writable and the readonly addresses its lookup tables load.
crates/solana-orderbook/examples/decode_bundle.rs:119
↓ 1 callers
Function
account_update
(slot: u64, sig: u8)
crates/solana-indexer/src/indexer/ingester/tests.rs:60
↓ 1 callers
Function
accounts_to_create
The setup accounts the settlement must create before `BeginSettle`, each list sorted and deduplicated: the mints whose buffer PDA is missing on chain,
crates/solana-driver/src/domain/settlement.rs:503
↓ 1 callers
Method
active
Returns the inner pool data if it is active, `None` otherwise.
crates/liquidity-sources/src/balancer_v2/pools/mod.rs:62
↓ 1 callers
Method
actual_valid_to
Returns a materialized valid-to value for the specified validity.
crates/model/src/quote.rs:198
↓ 1 callers
Method
add_contract
(mut self, contract: Contract)
contracts/src/codegen.rs:81
↓ 1 callers
Method
add_ethflow_indexing
Registers all maintenance tasks that are necessary to correctly support ethflow orders.
crates/autopilot/src/maintenance.rs:248
↓ 1 callers
Method
add_submodule
(mut self, submodule: Submodule)
contracts/src/codegen.rs:86
↓ 1 callers
Function
address
(id: u64)
crates/autopilot/src/domain/competition/winner_selection.rs:1152
↓ 1 callers
Method
adjust_query
Builds the query forwarded to the inner estimator, substituting the native token for an ETH side and reporting the gas adjustment that has to be appli
crates/price-estimation/src/sanitized.rs:68
↓ 1 callers
Function
adjust_quote_to_order_limits
(order: Order, quote: Quote)
crates/autopilot/src/domain/settlement/trade/math.rs:571
↓ 1 callers
Method
adjusted_reserve_b
Restores reserve_b value from the given reserve_a and the quote. Reverse operation for the `blockchain::Pool::out` function <https://en.wikipedia.org/
crates/driver/src/tests/setup/mod.rs:449
↓ 1 callers
Function
advance_checkpoint
Moves the checkpoint from `from` to `to`. If the stored checkpoint no longer matches `from` (another writer already advanced it), this is a no-op and
crates/pool-indexer/src/db/uniswap_v3.rs:59
↓ 1 callers
Method
aggregate
(data: &[u8])
contracts/generated/contracts-generated/multicall3/src/lib.rs:4013
↓ 1 callers
Method
aggregate3
(data: &[u8])
contracts/generated/contracts-generated/multicall3/src/lib.rs:4075
↓ 1 callers
Function
all_settlement_tx_hashes
( ex: &mut PgConnection, )
crates/database/src/settlements.rs:127
↓ 1 callers
Method
all_solvable_orders
Finds solvable orders based on the order's min validity period.
crates/autopilot/src/infra/persistence/mod.rs:174
↓ 1 callers
Method
all_solvable_orders
(&self, min_valid_to: u32)
crates/autopilot/src/database/auction.rs:71
↓ 1 callers
Function
all_tables
()
crates/database/src/lib.rs:82
↓ 1 callers
Function
allow_failed_buy_token_transfer
The simulation requires the settlement contract to have enough buy tokens to pay out the order directly. But it's also possible that we fail to comput
crates/shared/src/order_creation_simulation.rs:259
↓ 1 callers
Function
allow_unfunded_presign_order
PreSign orders are currently the only ones that are allowed to be placed without any balance at all. If we detect a revert of the sell token transfer
crates/shared/src/order_creation_simulation.rs:289
↓ 1 callers
Method
allowance
( &self, owner: Address, token: Address, source: SellTokenSource, )
crates/account-balances/src/simulation.rs:135
↓ 1 callers
Method
allowance
Fetch the ERC20 allowance for the spender. See the allowance method in EIP-20. https://eips.ethereum.org/EIPS/eip-20#allowance
crates/driver/src/infra/blockchain/token.rs:30
↓ 1 callers
Method
allowances
Return the allowances in a normalized form, where there is only one allowance per [`eth::allowance::Spender`], and they're ordered deterministically.
crates/driver/src/domain/competition/solution/mod.rs:515
↓ 1 callers
Method
amount
Returns the order swapped amount as an asset. The token associated with the asset is dependent on the side of the DEX order.
crates/solvers/src/domain/dex/mod.rs:47
↓ 1 callers
Method
amount_in
(&self, amount_out: U256, reserve_in: U256, reserve_out: U256)
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:136
↓ 1 callers
Method
amount_out
(&self, amount_in: U256, reserve_in: U256, reserve_out: U256)
crates/liquidity-sources/src/uniswap_v2/pool_fetching.rs:119
↓ 1 callers
Function
analyze_simulation
Runs the simulation, handles errors caused by fundamental limitations of the simulation approach and returns a comprehensive report in case of an erro
crates/shared/src/order_creation_simulation.rs:158
↓ 1 callers
Function
anchor_error_name
The name an Anchor program logs with error `code`, from its `AnchorError ... Error Code: <name>. Error Number: <code>. ...` line. Anchor logs it right
crates/solana-driver/src/domain/program_error.rs:120
↓ 1 callers
Function
api_requests_counter
Parse the `pool_indexer_api_requests` Prometheus counter for a given route from the indexer's /metrics endpoint.
crates/e2e/tests/e2e/pool_indexer.rs:372
↓ 1 callers
Function
app
A solver router mounted like in [`Api::serve`], whose `/solve` handler streams the raw request body like the real one does.
crates/driver/src/infra/api/mod.rs:258
↓ 1 callers
Function
app_data
The app data of an order as the rules see it.
crates/shared/src/fee_engine.rs:38
↓ 1 callers
Method
append_custom_order_info_to_db
( &self, ex: &mut PgTransaction<'a>, custom_onchain_data: Vec<EthFlowDataForDb>, )
crates/autopilot/src/database/onchain_order_events/ethflow_events.rs:85
↓ 1 callers
Function
append_events
( transaction: &mut PgTransaction<'_>, events: Vec<(GPv2SettlementEvents, Log)>, )
crates/autopilot/src/database/events.rs:79
↓ 1 callers
Method
append_events
( &mut self, events: Vec<(BalancerV2BasePoolFactoryEvents, Log)>, )
crates/liquidity-sources/src/balancer_v2/pool_fetching/pool_storage.rs:201
↓ 1 callers
Method
append_main_interactions
( mut self, interactions: impl IntoIterator<Item = InteractionData>, )
crates/simulator/src/simulation_builder.rs:187
↓ 1 callers
Method
append_post_interactions
( mut self, interactions: impl IntoIterator<Item = InteractionData>, )
crates/simulator/src/simulation_builder.rs:195
↓ 1 callers
Method
append_pre_interactions
( mut self, interactions: impl IntoIterator<Item = InteractionData>, )
crates/simulator/src/simulation_builder.rs:179
↓ 1 callers
Function
apply_account_override
Applies `new` to the override map for `address`. If `address` already has an entry, the overrides are merged via [`merge_account_override`]. Returns
crates/simulator/src/encoding.rs:752
↓ 1 callers
Method
apply_policies
( &self, order: &boundary::Order, quote: &domain::Quote, partner_fees: Vec<Pol
crates/autopilot/src/domain/fee/mod.rs:246
↓ 1 callers
Method
apply_to
Multiplies an amount by this factor, using high precision scaling to support sub-basis-point factors. Returns `None` if the multiplication overflows.
crates/configs/src/autopilot/penalty_cap.rs:56
↓ 1 callers
Function
apply_to_trade
(policies: &[FeePolicy], trade: &Trade, order: &Order)
crates/solana-driver/src/domain/protocol_fee.rs:70
↓ 1 callers
Method
apply_to_trade
(self, trade: &Trade, order: &Order)
crates/solana-driver/src/domain/solver_fee.rs:122
↓ 1 callers
Method
approvals
Approval interactions necessary for encoding the settlement. To support tokens like USDT which first need to have their allowance set to 0 before it c
crates/driver/src/domain/competition/solution/mod.rs:359
↓ 1 callers
Function
approve_step
Pin a delegation to the order: the sell token account approves the settlement state PDA, signed by the order owner.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:1010
↓ 1 callers
Method
archive_auction
(&self, id: domain::auction::Id, auction: &domain::RawAuctionData)
crates/autopilot/src/infra/persistence/mod.rs:125
↓ 1 callers
Method
archive_auction_gzipped
Archives the auction body to S3 (fire and forget). The body is gzip-compressed while streaming to the solver; the compressed bytes arrive through `com
crates/driver/src/infra/persistence/mod.rs:64
↓ 1 callers
Method
archives_enabled
Whether auction archival to S3 is configured.
crates/driver/src/infra/persistence/mod.rs:57
↓ 1 callers
Method
artifacts_path
(&self, artifacts_dir: &Path)
contracts/src/codegen.rs:264
↓ 1 callers
Function
as_erc20
If the token is native, return the ERC20 wrapped version.
crates/chain-types/src/evm.rs:14
↓ 1 callers
Method
as_factor
Returns the slippage as a decimal factor.
crates/solvers/src/domain/dex/slippage.rs:74
↓ 1 callers
Method
as_jit
Return JIT order if it's a JIT order.
crates/autopilot/src/domain/settlement/trade/mod.rs:36
↓ 1 callers
Method
as_label
(self)
crates/observe/src/event_bus/mod.rs:214
↓ 1 callers
Method
as_percent
Returns the slippage as a percentage. e.g. 0.01 → 1.0.
crates/solvers/src/domain/dex/slippage.rs:85
↓ 1 callers
Method
ask
Ask one driver to quote `order`. An error is the `price_estimates` result the failure counts as.
crates/solana-orderbook/src/infra/quoter.rs:222
↓ 1 callers
Method
assemble_auction
(&self, tasks: &DataFetchingTasks)
crates/driver/src/domain/competition/mod.rs:682
↓ 1 callers
Method
assemble_fake_order
Builds a fake order that has the expected sell and buy token but has a limit price that is trivial to achieve. We do this to avoid reverts in case the
crates/price-estimation/src/trade_verifier.rs:448
↓ 1 callers
Method
assemble_flashloan_hints
( &self, auction: &Auction, )
crates/driver/src/infra/solver/mod.rs:537
↓ 1 callers
Method
assemble_tasks
(&self, request: Request<Body>)
crates/driver/src/domain/competition/pre_processing.rs:166
↓ 1 callers
Method
assemble_wrappers
(&self, auction: &Auction)
crates/driver/src/infra/solver/mod.rs:555
← previous
next →
2,201–2,300 of 10,747, ranked by callers