MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 6 callersFunctionspawn_server_with_mocks
(solvers: Vec<Solver>, mocks: impl Into<MocksMap>)
crates/solana-driver/tests/api.rs:154
↓ 6 callersFunctionspawn_verifying_server
(drivers: Vec<SocketAddr>, verifier: Verifier)
crates/solana-orderbook/tests/api.rs:967
↓ 6 callersFunctionstart
The driver entry-point. This function exists in order to be able to run the driver from multiple binaries.
crates/driver/src/run.rs:29
↓ 6 callersFunctionsubmit_order
( ethflow_order: &ExtendedEthFlowOrder, user: Address, contracts: &Contracts, ethflow_contract
crates/e2e/tests/e2e/ethflow.rs:668
↓ 6 callersMethodsum
(iter: I)
crates/eth-domain-types/src/ether.rs:63
↓ 6 callersMethodto_final_quote
Produces the final `Quote` for this competition. Applies additional-cost adjustments, and scales sell/buy amounts when the caller asked for a `SellAmo
crates/shared/src/order_quoting.rs:368
↓ 6 callersFunctiontracing_headers
()
crates/observe/src/tracing/distributed/headers.rs:9
↓ 6 callersMethodtry_mul_f64
(self, factor: f64)
crates/chain-types/src/evm.rs:85
↓ 6 callersMethodtry_sub
`self - rhs`, `Negative` when the result would go below zero.
crates/chain-types/src/lib.rs:66
↓ 6 callersFunctiontx_info
Build a transaction-update fixture: static account keys, ALT-loaded writable and readonly addresses, top-level instructions, and inner-instruction gro
crates/solana-indexer/src/indexer/decoder/tests.rs:108
↓ 6 callersFunctionu256_to_big_uint
(input: &U256)
crates/number/src/conversions.rs:66
↓ 6 callersFunctionuid
The autopilot's own literal order uid, derived from the canonical order intent so it passes settlement validation.
crates/solana-driver/tests/api.rs:77
↓ 6 callersFunctionupdate_settlement_auction
( ex: &mut PgConnection, block_number: i64, log_index: i64, auction_id: i64, )
crates/database/src/settlements.rs:50
↓ 6 callersMethoduser_trades
Return the trades which fulfill non-liquidity auction orders. These are the orders placed by end users.
crates/driver/src/domain/competition/solution/mod.rs:505
↓ 6 callersFunctionv3_api
Builds a URL against the pool-indexer's Uniswap V3 API (all test fixtures index `mainnet`), so call sites don't repeat the route prefix by hand.
crates/e2e/tests/e2e/pool_indexer.rs:135
↓ 6 callersFunctionverifier
A verifier preferring verified quotes, with a 1% inaccuracy limit, over mock nodes: `rpc` answers the account reads in queue order, `bundle` up to two
crates/solana-orderbook/tests/api.rs:921
↓ 6 callersFunctionwait_for_indexer
Polls `/pools` until the indexer has reached `head` and surfaced at least `min_pools` pools. `min_pools = 0` means "any state is fine, just check bloc
crates/e2e/tests/e2e/pool_indexer.rs:265
↓ 6 callersMethodwinners
All solutions that won the right to get executed.
crates/autopilot/src/domain/competition/winner_selection.rs:256
↓ 6 callersMethodwith_buy_amount
(mut self, buy_amount: U256)
crates/model/src/order.rs:97
↓ 6 callersMethodwith_default_ethflow_order_data
(&mut self)
crates/refunder/src/traits.rs:130
↓ 6 callersMethodwith_order_status
(&mut self, status: RefundStatus)
crates/refunder/src/traits.rs:111
↓ 6 callersMethodwith_orders
(mut self, orders: impl IntoIterator<Item = Order>)
crates/simulator/src/simulation_builder.rs:174
↓ 5 callersMethodaddSolver
( data: &[u8], )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1521
↓ 5 callersFunctionapp_code
Extracts the `appCode` from a full app-data document, if present. `appCode` sits at the document root, next to (not inside) the protocol `metadata`,
crates/app-data/src/app_data.rs:391
↓ 5 callersMethodas_pool_ref
(&self)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:367
↓ 5 callersMethodas_str
(&self)
crates/solana-indexer/src/persistence.rs:56
↓ 5 callersMethodas_u8
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:56
↓ 5 callersMethodat_block
(mut self, block: Block)
crates/simulator/src/simulation_builder.rs:218
↓ 5 callersFunctionbig_rational_to_u256
(ratio: &BigRational)
crates/number/src/conversions.rs:61
↓ 5 callersFunctionbig_uint_to_u256
(input: &BigUint)
crates/number/src/conversions.rs:42
↓ 5 callersFunctionbuild_event
((block_number, log_index): (u64, usize))
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:140
↓ 5 callersFunctionbytes_to_order_uid
(bytes: &[u8])
crates/autopilot/src/database/events.rs:122
↓ 5 callersFunctioncalculate_invariant
https://github.com/balancer-labs/balancer-v2-monorepo/blob/9eb7e44a4e9ebbadfe3c6242a086118298cadc9f/pkg/pool-stable-phantom/contracts/StableMath.sol#L
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:15
↓ 5 callersMethodcalculate_quote_stream
( &self, parameters: QuoteParameters, )
crates/shared/src/order_quoting.rs:814
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1640
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1446
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1470
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/iuniswaplikerouter/src/lib.rs:1454
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/baoswaprouter/src/lib.rs:1446
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/honeyswaprouter/src/lib.rs:1446
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/permit2/src/lib.rs:613
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:883
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1446
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/sushiswaprouter/src/lib.rs:1446
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:260
↓ 5 callersMethodcall_builder
Creates a new call builder using this contract instance's provider and address. Note that the call can be any function call, not just those defined i
contracts/generated/contracts-generated/gnosissafecompatibilityfallbackhandler/src/lib.rs:1344
↓ 5 callersMethodcancel
Cancel a pending settlement by sending a transaction to self with a slightly higher gas price than the existing one.
crates/driver/src/domain/mempools.rs:300
↓ 5 callersMethodchecked_mul_ratio_ceil
(&self, mul: &Self, div: &Self)
crates/number/src/u256_ext.rs:87
↓ 5 callersFunctionclose_landed_windows
Close the auction's windows against the settlements the indexer recorded. A settlement carries no solution uid, so a window is matched through its sol
crates/autopilot-svm/src/infra/db.rs:355
↓ 5 callersMethodcommon
(&self)
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:32
↓ 5 callersMethodcompetition
(&self)
crates/driver/src/infra/api/mod.rs:221
↓ 5 callersFunctioncompetition_results
Runs all provided estimators and returns all ranked quotes best-first, or the highest-priority error if every estimator failed. `in_amount` is the qu
crates/price-estimation/src/competition/quote.rs:450
↓ 5 callersMethodcontracts
(&self)
crates/autopilot/src/infra/blockchain/mod.rs:112
↓ 5 callersFunctionconvert
Rebuild the stream's wire shape from an RPC-fetched transaction, mapping exactly what the decoder reads: account keys with the ALT-loaded addresses, t
crates/solana-indexer/src/indexer/decoder/backfill.rs:174
↓ 5 callersMethodcreate
Creates a new HTTP client with the default settings.
crates/http-client/src/lib.rs:27
↓ 5 callersFunctioncreate_associated_token_account_idempotent
Create the idempotent instruction that makes `owner`'s ATA for `mint` under the mint's token `program`. The instruction is a no-op on chain when the A
crates/solana-driver/src/infra/blockchain/token.rs:27
↓ 5 callersFunctioncreate_limit_order
(maker_amount: U256, taker_amount: U256, fee_amount: U256)
crates/solvers/src/boundary/liquidity/limit_order.rs:58
↓ 5 callersMethodcreated
(self, created: u32)
crates/driver/src/tests/setup/mod.rs:260
↓ 5 callersMethoddata
(&self)
crates/e2e/src/setup/solver/solution.rs:25
↓ 5 callersFunctiondeploy_builder
( __provider: P, )
contracts/generated/contracts-generated/weth9/src/lib.rs:2792
↓ 5 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/buffered.rs:87
↓ 5 callersMethodestimate_stream
Runs every estimator concurrently across all stages and forwards a quote only when it ranks strictly better than the best one already sent, so the cli
crates/price-estimation/src/competition/quote.rs:125
↓ 5 callersMethodestimates
( &self, mut query: Arc<Query>, )
crates/price-estimation/src/competition/quote.rs:41
↓ 5 callersFunctionevm_uid
(digest: u8, owner: u8)
crates/winner-selection/src/tests.rs:19
↓ 5 callersFunctionexp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:30
↓ 5 callersFunctionfactor
(v: f64)
crates/shared/src/fee.rs:529
↓ 5 callersFunctionfee
(slot: u64, prioritization_fee: u64)
crates/solana-driver/src/domain/priority_fee.rs:181
↓ 5 callersMethodfetch_native_prices
( &'_ self, tokens: HashSet<Token>, timeout: Duration, )
crates/price-estimation/src/native/coingecko.rs:230
↓ 5 callersMethodfinalize
Advance the finalized watermark to `slot`, first auditing the rows that finalization would freeze: every transaction indexed in the newly final range
crates/solana-indexer/src/indexer/decoder.rs:188
↓ 5 callersMethodfind_invalid
Returns the first of the `wrappers` that can't be trusted to settle orders, if any. Errors if the RPC calls needed to decide that fail. Wrappers get
crates/order-validation/src/wrappers.rs:37
↓ 5 callersMethodget
(&self, price_quality: PriceQuality)
crates/orderbook/src/quoter.rs:82
↓ 5 callersFunctionget_block_at_id
(provider: &AlloyProvider, id: BlockId)
crates/ethrpc/src/block_stream.rs:282
↓ 5 callersMethodget_native_price
( &self, token: &Address, )
crates/e2e/src/setup/services.rs:600
↓ 5 callersFunctionget_registry
Get the global instance of the metrics registry.
crates/observe/src/metrics.rs:59
↓ 5 callersFunctionget_useful_orders
Get the `orders_per_type` best priced and biggest volume orders.
crates/solver/src/liquidity/zeroex.rs:150
↓ 5 callersFunctiongroup_by_token_pair
( orders: impl Iterator<Item = OrderRecord>, )
crates/solver/src/liquidity/zeroex.rs:134
↓ 5 callersMethodhash
Returns the app data hash. Does not validate expectation.
crates/app-data/src/order_creation.rs:49
↓ 5 callersMethodid
The auction or quote id.
crates/solvers-dto/src/auction.rs:57
↓ 5 callersMethodinclude_slippage_bps
(&self, slippage: u16)
crates/e2e/tests/e2e/ethflow.rs:910
↓ 5 callersFunctioninsert_execution
A persisted execution of order `[order; 32]` inside solution `uid` of the auction.
crates/autopilot-svm/src/infra/observation.rs:285
↓ 5 callersFunctioninsert_onchain_invalidation
( ex: &mut PgConnection, index: &EventIndex, order_uid: &OrderUid, )
crates/database/src/onchain_invalidations.rs:57
↓ 5 callersFunctioninsert_or_overwrite_orders
( ex: &mut PgTransaction<'_>, events: &[EthOrderPlacement], )
crates/database/src/ethflow_orders.rs:15
↓ 5 callersFunctioninsert_refund_tx_hash
( ex: &mut PgTransaction<'_>, refund: &Refund, )
crates/database/src/ethflow_orders.rs:110
↓ 5 callersFunctioninsert_settlement
( ex: &mut PgConnection, index: &EventIndex, event: &Settlement, )
crates/database/src/events.rs:134
↓ 5 callersFunctioninsert_settlement
A landed settlement of the auction by solver 7 under signature `[signature; 64]`, trading the given orders. The trades go in first: the indexer commit
crates/autopilot-svm/src/infra/observation.rs:302
↓ 5 callersMethodintent
The intent, `None` for a zero amount, which the program refuses.
crates/solana-token/src/quote.rs:55
↓ 5 callersMethodinteractions
(&self)
crates/price-estimation/src/trade_finding/mod.rs:132
↓ 5 callersMethodinto_domain
The domain policy, refused when a factor lies outside `[0, 1)`: a fee at or past the whole fill, or a negative one, is no fee.
crates/solana-driver/src/infra/api/routes/solve/dto/solve_request.rs:159
↓ 5 callersMethodis_node_error
(&self)
crates/ethrpc/src/alloy/errors.rs:32
↓ 5 callersFunctionload_rules_from_str
Parses a whole rules file, then loads it as [`load_rules_toml`] does.
crates/fee-engine/src/loader.rs:64
↓ 5 callersFunctionmake_query
()
crates/price-estimation/src/competition/mod.rs:646
↓ 5 callersMethodmatom
Converts this value from Mwei to wei (multiplies by 1e6).
crates/number/src/units.rs:8
↓ 5 callersMethodmetadata
(&self)
crates/liquidity-sources/src/zeroex.rs:213
↓ 5 callersFunctionmetrics
()
crates/solana-driver/src/domain/competition.rs:1141
↓ 5 callersFunctionmintable_reads
The mock account reads of a verification whose sell mint `authority` can mint: the two mints, then the authority, a plain wallet.
crates/solana-orderbook/tests/api.rs:946
↓ 5 callersMethodmul_down
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:149
↓ 5 callersMethodmul_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:155
↓ 5 callersMethodname
(&self)
crates/order-validation/src/banned/hermod.rs:98
↓ 5 callersFunctionnative_buy_intent
A sponsored intent buying `buy_amount` lamports of native SOL into the owner's wallet.
crates/solana-orderbook/tests/api.rs:1839
↓ 5 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/izeroex/src/lib.rs:606
← previousnext →601–700 of 10,747, ranked by callers