MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,747 in github.com/cowprotocol/services

↓ 33 callersMethodpubkey
The solver's on-chain identity, derived from its signer.
crates/solana-driver/src/infra/solver/mod.rs:48
↓ 33 callersMethodremove
(&mut self, query: &Query)
crates/account-balances/src/cached.rs:43
↓ 32 callersMethodsaturating_add
(self, v: Self)
crates/eth-domain-types/src/lib.rs:114
↓ 32 callersFunctionspawn_server
Spawn the API server on an ephemeral port and return its bound address.
crates/solana-driver/tests/api.rs:150
↓ 31 callersMethodchecked_sub
(&self, v: &Self)
crates/eth-domain-types/src/ether.rs:47
↓ 31 callersMethodorder
(&self)
crates/driver/src/domain/competition/solution/trade.rs:161
↓ 31 callersMethodsolve
Solves a raw JSON auction.
crates/solvers/src/tests/mod.rs:72
↓ 30 callersFunctionbuilder
Assemble the configured builder without dialing.
crates/solana-indexer/src/yellowstone.rs:45
↓ 30 callersMethodinstructions
Build the settlement instruction list.
crates/solana-driver/src/domain/settlement.rs:264
↓ 30 callersMethodinto_iter
(self)
crates/ethrpc/src/alloy/buffering.rs:130
↓ 30 callersMethodis_empty
An empty solution has no trades which is allowed to capture surplus and a score of 0.
crates/driver/src/domain/competition/solution/mod.rs:403
↓ 29 callersMethodexecute
(&self, auction_id: i64, ranking: &Ranking, tip: &u64, deadline: u64)
crates/autopilot-svm/src/infra/executor.rs:55
↓ 29 callersMethodis_zero
(&self)
crates/app-data/src/app_data_hash.rs:49
↓ 29 callersFunctionsolver_with_keypair
A solver client whose on-chain identity is a freshly generated keypair, so the test can register a matching settlement signer. Its engine prices the e
crates/solana-driver/tests/api.rs:208
↓ 28 callersMethodas_str
(&self)
crates/driver/src/infra/solver/mod.rs:51
↓ 28 callersFunctionget
Get the metrics instance.
crates/driver/src/infra/observe/metrics.rs:97
↓ 28 callersFunctionget
Get the metrics instance.
crates/solvers/src/infra/metrics.rs:57
↓ 28 callersMethodget_trades
(&self, order: &OrderUid)
crates/e2e/src/setup/services.rs:539
↓ 28 callersFunctioninsert_order
(ex: &mut PgConnection, order: &Order)
crates/database/src/orders.rs:211
↓ 28 callersMethodis_zero
(&self)
crates/eth-domain-types/src/ether.rs:57
↓ 28 callersFunctiontest_order_with
A default sell order with `customize` applied before the uid and order PDA are derived.
crates/solana-driver/src/domain/settlement.rs:1093
↓ 27 callersMethodbuild
(self)
crates/model/src/order.rs:175
↓ 27 callersFunctionspawn_mock_solver_engine
A tiny axum server that returns a fixed `/solve` response. It stands in for a solver engine.
crates/solana-driver/tests/api.rs:180
↓ 27 callersMethodto_be_bytes
(self)
crates/driver/src/domain/competition/auction.rs:304
↓ 26 callersFunctiontest_order
A default sell order.
crates/solana-driver/src/domain/settlement.rs:1121
↓ 25 callersFunctionquote_body
A quote body with the given validity fields, otherwise well formed.
crates/solana-orderbook/tests/api.rs:289
↓ 25 callersMethodstart_api
Start the api service in a background tasks. Wait until the service is responsive.
crates/e2e/src/setup/services.rs:221
↓ 25 callersFunctiontest_solver
()
crates/driver/src/tests/setup/mod.rs:359
↓ 25 callersMethodtry_into
(self)
crates/shared/src/order_quoting.rs:1080
↓ 24 callersMethodcalldata
(self)
crates/driver/src/tests/setup/mod.rs:1539
↓ 24 callersFunctionengine_response
A solver-engine `/solve` response with one solution per `(id, sell_price)` pair. The `sell_price` sets the clearing price of the sell mint, so `execut
crates/solana-driver/tests/api.rs:302
↓ 24 callersFunctionstart_driver
( contracts: &Contracts, solvers: Vec<SolverEngine>, liquidity: LiquidityProvider, )
crates/e2e/src/setup/colocation.rs:104
↓ 23 callersFunctionauction
Every mint of `orders` priced at the denominator, as by an autopilot without price sources.
crates/solana-solvers/src/domain/solver/mod.rs:411
↓ 23 callersMethodinsert
(&mut self, reason: OrderExcludedFromAuctionReason, uid: Uid)
crates/driver/src/domain/competition/mod.rs:1069
↓ 23 callersMethodpop
Pop the next call in round-robin order, if any.
crates/ethrpc/src/alloy/buffering.rs:289
↓ 23 callersFunctionspawn_mock_driver
A tiny axum server that answers `/quote` with a fixed response. It stands in for the driver.
crates/solana-orderbook/tests/api.rs:103
↓ 23 callersMethodto_bytes
(self)
crates/solvers/src/domain/order.rs:111
↓ 22 callersMethodas_str
Kebab-case slug used in URLs and per-network configs (pool-indexer API routes, DB database names, etc). Stable — other services parse it.
crates/chain/src/lib.rs:57
↓ 22 callersMethodevaluator
Evaluates orders at `now`. Cheap: lists and functions are bound once, in [`RuleSet::new`].
crates/fee-engine/src/rules.rs:366
↓ 22 callersMethodinto_response
(self)
crates/orderbook/src/api/post_order.rs:47
↓ 22 callersMethodlen
(&self)
crates/driver/src/domain/competition/mod.rs:1073
↓ 22 callersFunctionpool
()
crates/autopilot-svm/src/test_db.rs:5
↓ 22 callersFunctionpost
( state: State, path: Option<String>, query: Option<String>, req: serde_json::Value, )
crates/solvers/src/tests/mock/http.rs:227
↓ 22 callersMethodsend
(&self, driver: &infra::Driver, timeout: Duration)
crates/autopilot/src/settle_call.rs:54
↓ 22 callersFunctionweb3
Create a Web3 instance with a label for observability.
crates/shared/src/web3.rs:80
↓ 21 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/iswaprpair/src/lib.rs:5509
↓ 21 callersMethoddb
Returns the underlying postgres connection pool that can be used do execute raw SQL queries.
crates/e2e/src/setup/services.rs:899
↓ 21 callersFunctiondeployment_address
(chain_id: &u64)
contracts/generated/contracts-generated/weth9/src/lib.rs:3092
↓ 21 callersMethodget
()
crates/price-estimation/src/native/eip4626.rs:270
↓ 21 callersMethodmax
(&self)
crates/eth-domain-types/src/gas.rs:55
↓ 21 callersMethodname
(self, name: &str)
crates/driver/src/tests/setup/mod.rs:388
↓ 21 callersFunctionquery
(fast_path: bool)
crates/price-estimation/src/trade_finding/external.rs:388
↓ 21 callersFunctionreply
The response to a competition lookup: the competition, 404 without one, 500 on a failed read.
crates/solana-orderbook/src/infra/api/routes/solver_competition/mod.rs:79
↓ 21 callersMethodsolve
The solutions quoted before the deadline, one per batch of orders of one side on one directed mint pair. The autopilot's arbitrator picks at most one
crates/solana-solvers/src/domain/solver/mod.rs:97
↓ 21 callersMethodsolvers
(mut self, solvers: Vec<Solver>)
crates/driver/src/tests/setup/mod.rs:851
↓ 20 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/iuniswaplikepair/src/lib.rs:5335
↓ 20 callersMethodclone
(&self)
crates/price-estimation/src/trade_finding/mod.rs:342
↓ 20 callersMethoderr
(self)
crates/driver/src/tests/setup/mod.rs:1354
↓ 20 callersMethodfold
Folds every venue's newest frame into one override set, along with the newest stamp any of them quoted. Every venue keeps its lanes in the same share
crates/simulator/src/state_override_stream.rs:471
↓ 20 callersMethodlen
(&self)
crates/price-estimation/src/native_price_cache.rs:227
↓ 20 callersMethodread
Read one compute-budget instruction. Duplicates of a kind are rejected because the runtime rejects them too, so accepting one would price the transact
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:813
↓ 20 callersFunctionsponsored_intent
The order intent a sponsored transaction carries. `native` sells SOL through the wSOL mint with real associated token accounts, so preparation steps c
crates/solana-orderbook/tests/api.rs:1799
↓ 19 callersMethodencode
Encode the resolved settlement as a transaction signed by the payer.
crates/solana-driver/src/domain/settlement.rs:405
↓ 19 callersMethodfilter
(&self)
crates/autopilot/src/boundary/events/settlement.rs:30
↓ 19 callersMethodget
(&self, token: &eth::TokenAddress)
crates/solvers/src/domain/auction.rs:26
↓ 19 callersFunctionpubkey
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:53
↓ 19 callersFunctionquery_timer
Starts timing a query, recorded under `query` when the timer drops.
crates/autopilot-svm/src/infra/db.rs:806
↓ 19 callersMethodquote
(self, quote: OrderQuote)
crates/driver/src/tests/setup/mod.rs:268
↓ 19 callersFunctionserve
( addr: SocketAddr, estimator: Arc<dyn NativePriceEstimating>, max_timeout: Duration, shutdown
crates/autopilot/src/infra/api.rs:43
↓ 19 callersMethodsettle
Call the /settle endpoint.
crates/driver/src/tests/setup/mod.rs:1189
↓ 19 callersMethodvalidate_and_construct_order
( &self, order: OrderCreation, domain_separator: &DomainSeparator, settlement_
crates/shared/src/order_validation.rs:895
↓ 19 callersFunctionwrapper_validator
Wrapper validator whose RPC calls all fail, so it's only usable with orders that don't specify any wrappers.
crates/shared/src/order_validation.rs:1384
↓ 18 callersFunctionaccount_json
`account` in the JSON shape a `getMultipleAccounts` mock answers with.
crates/solana-testlib/src/lib.rs:98
↓ 18 callersMethodbuild
Finishes the simulation struct based on the configuration thus far.
crates/simulator/src/simulation_builder.rs:324
↓ 18 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/balancerv2composablestablepool/src/lib.rs:635
↓ 18 callersMethodget
Returns cached pools for the pairs, plus the ids of any that exist but aren't cached yet. Misses are recorded for the next maintenance run.
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:248
↓ 18 callersMethodget
()
crates/autopilot-svm/src/leader_lock_tracker.rs:106
↓ 18 callersFunctioninternal_error_reply
()
crates/orderbook/src/api.rs:449
↓ 18 callersFunctionpubkey
(byte: u8)
crates/solana-solvers/src/domain/solver/mod.rs:405
↓ 18 callersFunctionquery_timer
Starts timing a query, recorded under `query` when the timer drops.
crates/solana-orderbook/src/infra/db.rs:658
↓ 17 callersMethodas_str
The metric label values keep the EVM `market`/`limit` naming.
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:713
↓ 17 callersFunctionbig_decimal_to_u256
(big_decimal: &BigDecimal)
crates/number/src/conversions.rs:53
↓ 17 callersMethodbody
Get the JSON response body.
crates/driver/src/tests/setup/mod.rs:1630
↓ 17 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/balancerv2liquiditybootstrappingpool/src/lib.rs:4979
↓ 17 callersFunctioncall_solve_with
(addr: SocketAddr, request: serde_json::Value)
crates/solana-driver/tests/api.rs:328
↓ 17 callersFunctioncreation_tx
A partially signed sponsored creation transaction: the given preparation instructions in front of `CreateOrder`, the owner signed, the fee payer slot
crates/solana-orderbook/tests/api.rs:1912
↓ 17 callersMethodid
Extracts the solution id from the response. Since response can contain multiple solutions, it takes the id from the first solution.
crates/driver/src/tests/setup/mod.rs:1371
↓ 17 callersMethodorders
Check that the solution contains the expected orders.
crates/driver/src/tests/setup/mod.rs:1447
↓ 17 callersFunctionpool
()
crates/solana-indexer/src/test_db.rs:5
↓ 17 callersFunctionserialize
(bytes: T, serializer: S)
crates/bytes-hex/src/lib.rs:9
↓ 17 callersMethodstart_autopilot
Start the autopilot service in a background task. Uses [`Self::min_solve_deadline`] as the per-auction solve deadline.
crates/e2e/src/setup/services.rs:208
↓ 17 callersFunctionwipe
Empty every `solana.*` table a test can touch. Tests wipe at the start so a failure leaves its state behind for inspection.
crates/solana-indexer/src/test_db.rs:11
↓ 16 callersMethodas_str
(self)
crates/autopilot-svm/src/infra/provider.rs:422
↓ 16 callersFunctionassociated_token_address
Derive the ATA address for `owner` and `mint` under the mint's token `program`. The program is one of the seeds, so the two token programs derive diff
crates/solana-driver/src/infra/blockchain/token.rs:15
↓ 16 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/uniswapv3pool/src/lib.rs:5762
↓ 16 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/multicall3/src/lib.rs:4579
↓ 16 callersMethodchain
Returns the chain for the RPC connection.
crates/driver/src/infra/blockchain/mod.rs:68
↓ 16 callersMethodcreatePair
(data: &[u8])
contracts/generated/contracts-generated/uniswapv2factory/src/lib.rs:733
↓ 16 callersFunctionerror
(error_type: &'static str, description: impl AsRef<str>)
crates/orderbook/src/api.rs:421
↓ 16 callersMethodnext
(&mut self)
crates/e2e/src/setup/onchain_components/mod.rs:80
← previousnext →101–200 of 10,747, ranked by callers