MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 8 callersMethoddata
Returns the order's data — i.e. the [`OrderCreation`] without the metadata: `signature`, `quote_id` and with the `app_data`'s hash.
crates/model/src/order.rs:339
↓ 8 callersMethoddomainSeparator
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3484
↓ 8 callersMethodend
(&self)
crates/event-indexing/src/block_retriever.rs:145
↓ 8 callersMethodestimate_gas
( &self, tx: T, overrides: Option<StateOverride>, block: BlockId, )
crates/simulator/src/ethereum/mod.rs:126
↓ 8 callersFunctionfast_path_test
Set up a fast-path quote test: a fast-path solver quoting `ab_order`.
crates/driver/src/tests/cases/quote.rs:120
↓ 8 callersFunctionfrom_domain
Takes the order by reference so callers that still need the domain order afterwards don't have to deep-clone it just to convert it.
crates/autopilot/src/infra/persistence/dto/order.rs:59
↓ 8 callersMethodget
Globally unique id communicated to the protocol.
crates/driver/src/domain/competition/solution/mod.rs:765
↓ 8 callersMethodget_balances
(&self, queries: &[Query])
crates/account-balances/src/cached.rs:168
↓ 8 callersFunctionget_vol_fee_adjusted_quote_data
Takes the volume fee out of the quote's amounts.
crates/orderbook/src/quoter.rs:469
↓ 8 callersMethodinput
(&self)
crates/solvers/src/domain/solver/baseline.rs:386
↓ 8 callersFunctioninsert_quote
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/orders.rs:466
↓ 8 callersMethodinto_domain
Convert this wire trade into a domain trade, deriving the counterpart leg from the clearing prices.
crates/solana-driver/src/infra/solver/dto/solution.rs:68
↓ 8 callersFunctionis_solver
(asserter: &Asserter, is_solver: bool)
crates/order-validation/src/wrappers.rs:94
↓ 8 callersMethodis_zero
Returns `true` if any of the available orders amounts are `0`, thus making the order not suitable to send to solvers. TODO: It would be ideal to proh
crates/driver/src/domain/competition/order/mod.rs:210
↓ 8 callersMethodlabeled
(&self, label: S)
crates/ethrpc/src/alloy/instrumentation.rs:154
↓ 8 callersFunctionlegacy
The legacy volume fees `[volume-fee]` with `default` and `buckets` give.
crates/orderbook/src/fee_engine.rs:399
↓ 8 callersFunctionlow_precision_now
The postgres database in our CI has different datetime precision than the `DateTime` uses. This leads to issues comparing round-tripped data. Work aro
crates/database/src/quotes.rs:205
↓ 8 callersFunctionmatched
(evaluation: &Evaluation<'r>)
crates/fee-engine/src/evaluator.rs:261
↓ 8 callersMethodmax
Returns the maximum valid timestamp for the specified order.
crates/shared/src/order_validation.rs:1193
↓ 8 callersFunctionnative_prices
The config of the given stages, with CoinGecko at `coingecko` when the stages name it.
crates/autopilot-svm/src/infra/prices.rs:910
↓ 8 callersFunctionnative_sol_order
A sell order buying native SOL into `wallet`, with its own sell token so every such order gets its own uid.
crates/solana-driver/src/domain/settlement.rs:2283
↓ 8 callersMethodopen_dispatched
Open a window for a dispatched settlement. `solution_uid` is the autopilot-generated uid the competition persisted.
crates/autopilot-svm/src/infra/observation.rs:72
↓ 8 callersFunctionorder
(uid: u8, buy_token_account: Pubkey)
crates/solana-driver/src/domain/auction.rs:416
↓ 8 callersFunctionorder_view
The order as rules see it: every field a rule can read, with amounts as doubles and hex in lowercase. Unset optional fields are absent, not `null`. Ex
crates/fee-engine/src/order_view/mod.rs:45
↓ 8 callersFunctionprovider
Nothing listens on the pool's port, so the detached event writes fail instead of landing anywhere.
crates/autopilot-svm/src/infra/provider.rs:634
↓ 8 callersFunctionpubkey
(byte: u8)
crates/solana-driver/src/infra/solver/dto/solution.rs:255
↓ 8 callersMethodpush_back
(&mut self, sender: ResponseSender)
crates/ethrpc/src/alloy/buffering.rs:116
↓ 8 callersFunctionready
Handle `GET /api/v1/ready`: 200 when the database answers, else 500.
crates/solana-orderbook/src/infra/api/routes/ready.rs:12
↓ 8 callersMethodrename
Rename the order.
crates/driver/src/tests/setup/mod.rs:157
↓ 8 callersMethodresolve_buy_token_accounts
Every token buy's buy token account classified against the chain, resolved once per auction: engines solving the same auction read the first one's loo
crates/solana-driver/src/domain/auction.rs:96
↓ 8 callersFunctionresponse_body
(response: axum::http::Response<axum::body::Body>)
crates/orderbook/src/api.rs:526
↓ 8 callersMethodrun_cycle
One iteration of the outer loop.
crates/autopilot-svm/src/run_loop.rs:229
↓ 8 callersFunctionsave_with_new_id
Stores `quote` under a freshly allocated id, the way the orderbook does: the id is minted before the quote is computed, and `save` is expected to hono
crates/database/src/quotes.rs:212
↓ 8 callersMethodscore
Extracts the score from the response. Since response can contain multiple solutions, it takes the score from the first solution.
crates/driver/src/tests/setup/mod.rs:1395
↓ 8 callersMethodsend_out_refunding_tx
( &mut self, uids_by_contract: HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, )
crates/refunder/src/refund_service.rs:196
↓ 8 callersMethodslot
Computes the `(contract, storage_slot)` pair for a specific `(owner, spender)` pair.
crates/balance-overrides/src/approval/mod.rs:131
↓ 8 callersFunctionsolve_request_priced_for_a_cut_of
The standard solve request pricing the buy token so that the execution cost at the ceiling comes to exactly `atoms` of its atoms.
crates/solana-driver/tests/api.rs:1028
↓ 8 callersFunctionsolver
A solver without batching.
crates/solana-solvers/src/domain/solver/mod.rs:467
↓ 8 callersFunctiontest_keys
(keys: impl IntoIterator<Item = usize>)
crates/liquidity-sources/src/recent_block_cache.rs:582
↓ 8 callersFunctionto_db_slot
Slots stay far below `i64::MAX`, the conversion to the database's `bigint` is lossless.
crates/solana-indexer/src/persistence.rs:25
↓ 8 callersFunctiontoken_account_json
An initialized SPL token account of `mint` owned by `owner`, in the JSON shape a `getMultipleAccounts` mock answers with.
crates/solana-testlib/src/lib.rs:117
↓ 8 callersMethodtry_to_refund_all_eligible_orders
Fetches refundable orders from DB, validates on-chain, and submits batch refunds. Individual failures are logged and skipped.
crates/refunder/src/refund_service.rs:172
↓ 8 callersFunctionuniswap
()
crates/solvers/src/tests/cases/buy_order_rounding.rs:7
↓ 8 callersFunctionvalidate_flashloan_order
Validates a flashloan order from an allowlisted lender with the given legacy check and simulation outcomes. Also returns the EIP-1271 gas that reached
crates/shared/src/order_validation.rs:3594
↓ 8 callersMethodvaultRelayer
(data: &[u8])
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4343
↓ 7 callersFunctionadd_settlement
Testing Trades with settlements
crates/database/src/trades.rs:715
↓ 7 callersFunctionadd_trade
( ex: &mut PgTransaction<'_>, owner: Address, order_uid: OrderUid, event_index
crates/database/src/trades.rs:344
↓ 7 callersMethodallowance
(&self)
crates/solvers/src/domain/dex/mod.rs:99
↓ 7 callersFunctionannotate
Attaches the RPC correlation headers to the packet. A batched packet coalesces several calls, so the calls header lists every `method:id` pair and th
crates/ethrpc/src/alloy/rpc_headers.rs:122
↓ 7 callersMethodas_any
(&self)
crates/solver/src/liquidity/mod.rs:340
↓ 7 callersFunctionattribute_gas_cost
( ex: &mut PgTransaction<'_>, settlement: EventIndex, gas_used: BigDecimal, effective_gas_pric
crates/database/src/trades.rs:240
↓ 7 callersMethodauthenticator
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:160
↓ 7 callersFunctionblockchain
Answers the classification's two `getMultipleAccounts` lookups in order: `mints` for the token buys' buy mints, then `accounts` for their buy token ac
crates/solana-driver/src/domain/auction.rs:459
↓ 7 callersMethodbuy_amount
(self, buy_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:90
↓ 7 callersMethodbuys_native_sol
Whether the order buys native SOL. The intent encodes it as the System Program ID in place of a buy mint.
crates/solana-driver/src/domain/auction.rs:362
↓ 7 callersFunctioncalculator
()
crates/autopilot/src/domain/penalty_cap.rs:183
↓ 7 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/liquoricesettlement/src/lib.rs:576
↓ 7 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/cowswapethflow/src/lib.rs:505
↓ 7 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/remoteerc20balances/src/lib.rs:1825
↓ 7 callersMethodchecked_orders
Drop orders whose settlement would revert: those on a mint the program cannot move, then those whose buy token account cannot receive the payout, then
crates/autopilot-svm/src/infra/provider.rs:98
↓ 7 callersMethodchecked_sub
(&self, v: &Self)
crates/autopilot/src/domain/competition/mod.rs:103
↓ 7 callersFunctioncost
( rent: &'a HashMap<OrderUid, u64>, prices: &'a HashMap<Pubkey, u64>, )
crates/solana-driver/src/domain/execution_cost.rs:284
↓ 7 callersFunctioncreate_order_parts
The `CreateOrder` instruction and the event its decode must produce.
crates/solana-indexer/src/indexer/decoder/tests.rs:420
↓ 7 callersFunctiondelegate_deployment
( callers: &[Address], )
crates/driver/src/infra/solver/eip7702.rs:85
↓ 7 callersFunctiondetect_reorg_path
Try to shorten the latest_blocks by detecting the reorg from previous event update. If no reorg can be detected (for example, when `handled_blocks` is
crates/event-indexing/src/event_handler.rs:599
↓ 7 callersFunctiondisplaced_mocks
Mocks for one `send_displaced` run: the account lookup answers `accounts`, every blockhash check of the `sends` passes, and the mock answers a send wi
crates/autopilot-svm/src/infra/sponsor.rs:413
↓ 7 callersMethodestimate
(&self, token: Address, timeout: Duration)
crates/price-estimation/src/native/eip4626.rs:85
↓ 7 callersMethodeth
(&self)
crates/driver/src/infra/api/mod.rs:213
↓ 7 callersMethodfetch
IPFS gateway behavior when a CID cannot be found is inconsistent and can be confusing: - The public ipfs.io gateway responds "504 Gateway Timeout" af
crates/orderbook/src/ipfs.rs:34
↓ 7 callersMethodfill_at
(mut self, execution: ExecutionAmount, price: PriceEncoding)
crates/simulator/src/simulation_builder.rs:673
↓ 7 callersMethodfilter
(&self)
crates/autopilot/src/database/ethflow_events/event_retriever.rs:37
↓ 7 callersMethodget
()
crates/shared/src/order_validation.rs:80
↓ 7 callersMethodget
()
crates/orderbook/src/database/mod.rs:164
↓ 7 callersMethodhash_struct
See <https://github.com/0xProject/protocol/blob/%400x/contracts-zero-ex%400.49.0/contracts/zero-ex/contracts/src/features/libs/LibNativeOrder.sol#L166
crates/e2e/src/api/zeroex.rs:149
↓ 7 callersMethodinto_inner
(self)
crates/driver/src/infra/solver/streaming/timed_writer.rs:32
↓ 7 callersMethodinto_vec
(self)
crates/price-estimation/src/lib.rs:269
↓ 7 callersFunctionmake_1271_order_creation
()
crates/shared/src/order_validation.rs:3277
↓ 7 callersMethodname
(&self)
crates/driver/src/infra/solver/mod.rs:309
↓ 7 callersFunctionnet
`quote` with its execution cost, `rent` plus its own network fee, and then the volume protocol fee at `factor`, taken out of the side the trader does
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:566
↓ 7 callersFunctionorder
(uid: u8, side: Side, sell_amount: u64, buy_amount: u64)
crates/solana-driver/src/domain/execution_cost.rs:229
↓ 7 callersFunctionorder
(side: dex::Side)
crates/solana-solvers/src/dto/solution.rs:246
↓ 7 callersFunctionorder
(buy_token_account: [u8; 32], created_on_chain: bool)
crates/autopilot-svm/src/infra/provider.rs:607
↓ 7 callersFunctionorder_kind_into
(kind: OrderKind)
crates/shared/src/db_order_conversions.rs:232
↓ 7 callersMethodorders
(&self)
crates/autopilot/src/domain/competition/mod.rs:49
↓ 7 callersFunctionpending_creation
A pending creation of `owner`'s order the funder pays for that opens `order_pda`.
crates/autopilot-svm/src/infra/sponsor.rs:384
↓ 7 callersMethodpersist_events
Save one slot's decoded events and advance the last indexed slot in one transaction.
crates/solana-indexer/src/persistence.rs:383
↓ 7 callersFunctionprices
The sell token is worth 2 lamports an atom and the buy token 0.5, so 1000 lamports are 500 sell atoms or 2000 buy atoms.
crates/solana-driver/src/domain/execution_cost.rs:277
↓ 7 callersMethodquote_id
The quote id the fast-path quote of this test was cached under.
crates/driver/src/tests/setup/mod.rs:1200
↓ 7 callersMethodreceiving_eth
(&mut self)
crates/refunder/src/traits.rs:117
↓ 7 callersMethodrecover
Recovers the owner of the specified signature. This method returns an error if there is an issue recovering an ECDSA signature, or `None` for on-chai
crates/model/src/signature.rs:98
↓ 7 callersMethodreduce_amount
Reduce the sell amount of this order by the given amount.
crates/driver/src/tests/setup/mod.rs:162
↓ 7 callersMethodrules
The rules in the order they are tried.
crates/fee-engine/src/rules.rs:354
↓ 7 callersMethodsaturating_sub
(self, v: Self)
crates/autopilot/src/domain/competition/mod.rs:97
↓ 7 callersFunctionseed_checkpoint
(db: &PgPool, factory: Address, block: u64)
crates/e2e/tests/e2e/pool_indexer.rs:181
↓ 7 callersFunctionserve
(listener: TcpListener, prices: NativePrices)
crates/autopilot-svm/src/infra/api.rs:42
↓ 7 callersMethodsingle_order
(&self, uid: &OrderUid)
crates/orderbook/src/database/orders.rs:306
↓ 7 callersMethodsolution
The solution encoded in this settlement.
crates/driver/src/domain/competition/solution/settlement.rs:259
↓ 7 callersMethodsolution
(&self)
crates/autopilot/src/domain/competition/bid.rs:30
↓ 7 callersMethodsolver
(&self)
crates/autopilot/src/domain/settlement/mod.rs:72
↓ 7 callersMethodspawn
Flushes the pre-startup backlog and then spawns the fast-path listener: pulls order uids off `receiver` and dispatches each one on a fresh task so a s
crates/autopilot/src/fast_path.rs:112
← previousnext →401–500 of 10,747, ranked by callers