MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,776 in github.com/cowprotocol/services

↓ 1 callersMethodfrom
(err: SimulationError)
crates/driver/src/infra/blockchain/mod.rs:406
↓ 1 callersMethodfrom
(value: simulator::Error)
crates/driver/src/domain/competition/solution/mod.rs:833
↓ 1 callersMethodfrom
(err: anyhow::Error)
crates/price-estimation/src/native/coingecko.rs:304
↓ 1 callersMethodfrom
(interaction: InteractionData)
crates/simulator/src/encoding.rs:253
↓ 1 callersFunctionfrom_db_slot
The database never stores a negative slot, `to_db_slot` is the only writer.
crates/solana-indexer/src/persistence.rs:36
↓ 1 callersFunctionfrom_domain
Creates a new solution DTO from its domain object.
crates/solvers/src/api/routes/solve/dto/solution.rs:7
↓ 1 callersMethodfrom_eth
Convert an amount of ETH into a token amount using this price. Converting 1 ETH into a token worth 0.1 ETH (like GNO) # Examples ``` use {driver::do
crates/driver/src/domain/competition/auction.rs:280
↓ 1 callersFunctionfrom_normalized_price
Convert from normalized price to floating point price
crates/price-estimation/src/native/mod.rs:33
↓ 1 callersFunctionfrom_query
Deserialize a query string the way the `/quote` route does.
crates/driver/src/infra/api/routes/quote/dto/order.rs:76
↓ 1 callersFunctionfrozen_token_account_json
(mint: &Pubkey, owner: &Pubkey)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:1081
↓ 1 callersMethodfulfill
Set up the blockchain context and return the interactions needed to fulfill the orders.
crates/driver/src/tests/setup/blockchain.rs:750
↓ 1 callersMethodfull
Creates a context for vendoring "full" contract data, including bytecode used for deploying the contract for end-to-end test.
contracts/src/vendor.rs:232
↓ 1 callersFunctionfull_app_data_with_signer
(signer: Address)
crates/e2e/tests/e2e/app_data_signer.rs:121
↓ 1 callersMethodfull_scalar_mul
(&self, scalar: U256)
crates/number/src/ratio_ext.rs:30
↓ 1 callersFunctionfunded_orders
Drop orders whose sell token account cannot fund a fill: their settlement would revert at `BeginSettle`. A fill-or-kill order needs its whole sell amo
crates/autopilot-svm/src/infra/provider.rs:478
↓ 1 callersFunctionfunded_sell_balance
What the account can fund of the order's sell side: the amount both held and approved to the settlement state PDA, in an initialized, unfrozen account
crates/autopilot-svm/src/infra/provider.rs:513
↓ 1 callersMethodfunding
What funds a simulated sell of the order's sell mint: the pair's cached read, unless its holders fund no sell of `needed` and their lookup is due.
crates/solana-orderbook/src/infra/verifier.rs:448
↓ 1 callersMethodgas_cost
(&self)
crates/solvers/src/boundary/baseline.rs:311
↓ 1 callersMethodgas_estimator
(&self)
crates/driver/src/infra/blockchain/mod.rs:205
↓ 1 callersMethodgas_fee_override
Set custom gas fee overrides for the solution.
crates/driver/src/tests/setup/mod.rs:625
↓ 1 callersFunctiongasprice
(app: axum::Router<Ethereum>)
crates/driver/src/infra/api/routes/gasprice.rs:8
↓ 1 callersMethodgenerate
(&self, n: usize)
crates/orderbook/src/database/quotes.rs:60
↓ 1 callersMethodgenerate
Generate contract crates under `output_dir`: - `contracts-generated/<name>/` per-contract crates - `contracts-facade/` facade crate that re-exports al
contracts/src/codegen.rs:94
↓ 1 callersFunctiongenerate_and_stream_dump
(socket: &mut UnixStream)
crates/observe/src/heap_dump_handler.rs:143
↓ 1 callersFunctiongenerate_binding
(instance: &mut SolMacroGen, all_derives: bool)
contracts/src/codegen.rs:382
↓ 1 callersMethodgenerate_code
Generate the Rust code for this contract's bindings.
contracts/src/codegen.rs:269
↓ 1 callersMethodgenerate_signature
Generate HMAC-SHA256 signature for the Bitget API. The signature is computed over a JSON object with alphabetically sorted keys containing: the API p
crates/solvers/src/infra/dex/bitget/mod.rs:332
↓ 1 callersMethodgenerate_signature
OKX requires signature of the request to be added as dedicated HTTP Header. More information on generating the signature can be found in OKX documenta
crates/solvers/src/infra/dex/okx/mod.rs:367
↓ 1 callersFunctionget
(state: State, path: Option<String>, query: Option<String>)
crates/solvers/src/tests/mock/http.rs:211
↓ 1 callersMethodget
Get the inner value
crates/configs/src/fee_factor.rs:49
↓ 1 callersMethodget
()
crates/solver/src/liquidity_collector.rs:139
↓ 1 callersMethodget
()
crates/order-validation/src/banned/metrics.rs:27
↓ 1 callersMethodget
()
crates/fee-engine/src/report.rs:32
↓ 1 callersMethodget
()
crates/request-sharing/src/lib.rs:177
↓ 1 callersMethodget
()
crates/autopilot/src/database/mod.rs:165
↓ 1 callersMethodget
()
crates/autopilot/src/domain/penalty_cap.rs:165
↓ 1 callersMethodget
(&self)
crates/solvers/src/domain/dex/mod.rs:203
↓ 1 callersMethodget
()
crates/simulator/src/tenderly/mod.rs:349
↓ 1 callersMethodgetLimitOrderRelevantState
( data: &[u8], )
contracts/generated/contracts-generated/izeroex/src/lib.rs:7306
↓ 1 callersMethodgetPausedState
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:6169
↓ 1 callersMethodgetPoolId
(data: &[u8])
contracts/generated/contracts-generated/balancerv2basepool/src/lib.rs:3212
↓ 1 callersMethodgetReserves
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4766
↓ 1 callersMethodgetScalingFactors
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2composablestablepool/src/lib.rs:5503
↓ 1 callersMethodgetSwapEnabled
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpool/src/lib.rs:4238
↓ 1 callersMethodgetSwapFeePercentage
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2basepool/src/lib.rs:3219
↓ 1 callersFunctionget_all
( ex: &mut PgConnection, order: &OrderUid, )
crates/database/src/order_events.rs:170
↓ 1 callersMethodget_amount_in
( &self, in_token: Address, (out_amount, out_token): (alloy::primitives::U256, Address
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:121
↓ 1 callersMethodget_amount_in
( &self, in_token: Address, out: (alloy::primitives::U256, Address), )
crates/solvers/src/boundary/baseline.rs:295
↓ 1 callersMethodget_amount_out
( &self, out_token: Address, (in_amount, in_token): (alloy::primitives::U256, Address)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:113
↓ 1 callersMethodget_api_version
Get API version
crates/e2e/src/setup/services.rs:827
↓ 1 callersMethodget_app_data_document
( &self, app_data: AppDataHash, )
crates/e2e/src/setup/services.rs:706
↓ 1 callersMethodget_auction
Get auction data to post-process the given trades.
crates/autopilot/src/infra/persistence/mod.rs:417
↓ 1 callersMethodget_auction
(&self)
crates/orderbook/src/orderbook.rs:532
↓ 1 callersMethodget_back_off_duration_if_limited
(&self)
crates/rate-limit/src/lib.rs:198
↓ 1 callersFunctionget_by_tx
( ex: &mut PgConnection, tx_hash: &TransactionHash, )
crates/database/src/jit_orders.rs:69
↓ 1 callersMethodget_cached
Returns all values that are currently cached.
crates/driver/src/domain/competition/order/app_data.rs:47
↓ 1 callersMethodget_cached_balance
Retrieves cached balance and updates the `requested_at` field.
crates/account-balances/src/cached.rs:24
↓ 1 callersMethodget_cached_balances
(&self, queries: &[Query])
crates/account-balances/src/cached.rs:88
↓ 1 callersMethodget_cached_prices
Only returns prices that are currently cached.
crates/price-estimation/src/native_price_cache.rs:245
↓ 1 callersFunctionget_chain
(rpc: Url)
crates/driver/src/run.rs:223
↓ 1 callersMethodget_current_backend
Returns the current active backend URL.
crates/e2e/src/setup/proxy.rs:45
↓ 1 callersMethodget_ethflow_order_data
(&self, uid: &OrderUid)
crates/refunder/src/infra/database.rs:52
↓ 1 callersMethodget_events_by_block_hash
(&self, block_hash: B256)
crates/event-indexing/src/event_handler.rs:107
↓ 1 callersMethodget_events_by_block_range
Unfortunately, alloy's `watch_logs` does not support pagination yet, so it is implemented manually here
crates/event-indexing/src/event_handler.rs:126
↓ 1 callersMethodget_full_app_data
Returns the full app data stored in the database for the given hash.
crates/orderbook/src/app_data.rs:97
↓ 1 callersMethodget_full_app_data
( &self, contract_app_data: &AppDataHash, )
crates/orderbook/src/database/app_data.rs:9
↓ 1 callersFunctionget_invalidation_events
( events: Vec<(ContractEvent, Log)>, )
crates/autopilot/src/database/onchain_order_events/mod.rs:437
↓ 1 callersFunctionget_latest_indexed_block
The block every configured factory is indexed through, so every served pool is current at least to here. Scoped to `factories` so a decommissioned fac
crates/pool-indexer/src/db/uniswap_v3.rs:642
↓ 1 callersMethodget_liquidity
( &self, pairs: HashSet<TokenPair>, _block: Block, )
crates/solver/src/liquidity/zeroex.rs:117
↓ 1 callersMethodget_many
The cached price for each of `tokens`, skipping the ones not cached.
crates/driver/src/domain/competition/native_price_cache.rs:41
↓ 1 callersFunctionget_native_prices
( tokens: HashSet<Address>, native_price_estimator: &NativePriceUpdater, timeout: Duration, )
crates/autopilot/src/solvable_orders.rs:540
↓ 1 callersFunctionget_nonce
Fetches the transaction count (nonce) of `address` at `block`, or at alloy's default (`latest`) when `None`.
crates/driver/src/infra/mempool/mod.rs:190
↓ 1 callersMethodget_nonce
Fetches the transaction count (nonce) for the given address at the specified block number. If no block number is provided in the config, uses the allo
crates/driver/src/infra/mempool/mod.rs:82
↓ 1 callersMethodget_order_status
( &self, ethflow_address: Address, order_hash: alloy::primitives::B256, )
crates/refunder/src/infra/chain.rs:51
↓ 1 callersMethodget_order_status
( &self, uid: &OrderUid, )
crates/orderbook/src/orderbook.rs:559
↓ 1 callersFunctionget_order_uids
( ex: &mut PgConnection, auction_id: AuctionId, )
crates/database/src/auction.rs:111
↓ 1 callersMethodget_orders
( &self, query: &OrdersQuery, )
crates/liquidity-sources/src/zeroex.rs:370
↓ 1 callersMethodget_orders
(&self, uids: &[OrderUid])
crates/orderbook/src/orderbook.rs:512
↓ 1 callersMethodget_orders_for_owner
( &self, owner: &Address, offset: u64, limit: u64, )
crates/e2e/src/setup/services.rs:681
↓ 1 callersMethodget_orders_for_tx
( &self, tx_hash: &B256, )
crates/e2e/src/setup/services.rs:661
↓ 1 callersMethodget_orders_for_tx
(&self, hash: &B256)
crates/orderbook/src/orderbook.rs:522
↓ 1 callersFunctionget_quote
Looks up a quote by id.
crates/shared/src/quote_storage.rs:88
↓ 1 callersMethodget_quote
(&self, query: &Query)
crates/price-estimation/src/trade_finding/external.rs:472
↓ 1 callersMethodget_refundable_ethflow_orders_from_db
Fetches expired EthFlow orders that haven't been refunded, invalidated, or filled.
crates/refunder/src/refund_service.rs:184
↓ 1 callersMethodget_refundable_orders
( &self, block_time: i64, min_validity_duration: i64, min_price_deviation: f64
crates/refunder/src/infra/database.rs:34
↓ 1 callersMethodget_registered_pools
( &self, _target_block: BlockTarget, )
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:837
↓ 1 callersMethodget_registered_pools
Retrieves the list of registered pools from the subgraph.
crates/liquidity-sources/src/balancer_v2/graph_api.rs:43
↓ 1 callersMethodget_replaced_order
Using the provided app data, finds the order to be replaced. Validates the provided app data before searching for the order to be replaced.
crates/orderbook/src/orderbook.rs:425
↓ 1 callersFunctionget_request
(router: Router, path: &str)
crates/orderbook/src/api.rs:671
↓ 1 callersMethodget_safe_block
Retrieves a recent block number for which it is safe to assume no reorgs will happen.
crates/liquidity-sources/src/balancer_v2/graph_api.rs:87
↓ 1 callersMethodget_settlements_without_auction
Returns the oldest settlement event for which the accociated auction is not yet populated in the database.
crates/autopilot/src/infra/persistence/mod.rs:708
↓ 1 callersMethodget_sol_input
(&self)
contracts/src/codegen.rs:450
↓ 1 callersMethodget_solvable_orders
Returns currently solvable orders.
crates/autopilot/src/solvable_orders.rs:401
↓ 1 callersMethodget_solver_competition_unfiltered
( &self, auction_id: AuctionId, )
crates/e2e/src/setup/services.rs:517
↓ 1 callersMethodget_state
(&self)
crates/e2e/src/api/liquorice/server.rs:53
↓ 1 callersMethodget_submission_nonce
(&self)
crates/refunder/src/submitter.rs:95
↓ 1 callersFunctionget_ticks
(pool: &PgPool, pool_address: &Address)
crates/pool-indexer/src/db/uniswap_v3.rs:498
↓ 1 callersMethodget_token_quality
(&self, token: eth::TokenAddress)
crates/driver/src/domain/competition/risk_detector/mod.rs:125
↓ 1 callersFunctionget_tokens_missing_decimals
All distinct token addresses with no `decimals` recorded.
crates/pool-indexer/src/db/uniswap_v3.rs:538
↓ 1 callersFunctionget_tokens_missing_symbols
All distinct token addresses with no `symbol` recorded.
crates/pool-indexer/src/db/uniswap_v3.rs:520
← previousnext →2,901–3,000 of 10,776, ranked by callers