MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions10,749 in github.com/cowprotocol/services

↓ 5 callersFunctionnext_block
Awaits and returns the next block that will be pushed into the stream.
crates/ethrpc/src/block_stream.rs:394
↓ 5 callersFunctionorder
(side: Side, sell_amount: u64, buy_amount: u64)
crates/solana-driver/src/domain/protocol_fee.rs:121
↓ 5 callersFunctionorder
(side: Side, sell_amount: u64, buy_amount: u64)
crates/solana-solvers/src/dex/mod.rs:188
↓ 5 callersFunctionorder
Sells 1000 `sell_token` for 900 `buy_token` or more.
crates/autopilot/src/fee_engine.rs:390
↓ 5 callersFunctionorders
(order: &Order)
crates/solana-driver/src/domain/protocol_fee.rs:163
↓ 5 callersFunctionpending
The pending events, with the thread that logs them once a period started.
crates/fee-engine/src/report.rs:85
↓ 5 callersFunctionpost_solve
(addr: SocketAddr, request: &serde_json::Value)
crates/solana-driver/tests/api.rs:399
↓ 5 callersMethodpre_interactions
(&self)
crates/price-estimation/src/trade_finding/mod.rs:139
↓ 5 callersMethodprocessing_stage_timer
(&self, stage: &str)
crates/driver/src/infra/observe/metrics.rs:84
↓ 5 callersFunctionprod_buckets
()
crates/orderbook/src/fee_engine.rs:323
↓ 5 callersMethodprogram_id
The settlement program id this driver settles against.
crates/solana-driver/src/infra/blockchain/mod.rs:87
↓ 5 callersFunctionprotocol_fees_by_policy
The fee each of `policies` took from the fill `order` describes, in list order and in the surplus token, recovered from the settled legs. The last pol
crates/protocol-fees/src/lib.rs:106
↓ 5 callersMethodprovide_sufficient_buy_tokens
Instructs the builder to override the settlement contract's buy-token balances so it can pay out every order. The exact amounts are derived from the c
crates/simulator/src/simulation_builder.rs:296
↓ 5 callersMethodprovider
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:208
↓ 5 callersMethodquote_id
The quote id the request producing this trade was sent with.
crates/price-estimation/src/trade_finding/mod.rs:90
↓ 5 callersFunctionquote_metadata
Returns quote.
crates/e2e/tests/e2e/database.rs:65
↓ 5 callersFunctionquote_verified
Post the `quote_body` sell and return the HTTP status and the parsed body.
crates/solana-orderbook/tests/api.rs:1002
↓ 5 callersFunctionrank
Every quote paired with its [`net`] self, best first. With `prefer_verified`, a verified quote ranks ahead of any unverified one whatever its amount.
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:289
↓ 5 callersFunctionread_quote
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:484
↓ 5 callersMethodrecord
(&self, content_encoding: Option<&str>, body: &[u8])
crates/e2e/tests/e2e/solve_request_compression.rs:78
↓ 5 callersMethodrecord_decode_failure
Record a transaction whose decode failed so recovery can replay it by signature.
crates/solana-indexer/src/persistence.rs:570
↓ 5 callersMethodregister
Registers an app-data document matching the specified app-data hash to the registry, ensuring that there exists an entry linking the specified app dat
crates/orderbook/src/app_data.rs:62
↓ 5 callersFunctionreport_with_revert
(events: Vec<Event>)
crates/shared/src/order_creation_simulation.rs:322
↓ 5 callersFunctionrequest
(from: Pubkey, buy_token: Pubkey, receiver: Option<Pubkey>)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:913
↓ 5 callersFunctionrpc_transaction_json
The RPC wire form of a signed transaction, as `getTransaction` returns it with base64 encoding.
crates/solana-indexer/src/indexer/decoder/tests.rs:504
↓ 5 callersFunctionrun
(test_case: TestCase)
crates/driver/src/tests/cases/solver_fee_pre_processing.rs:61
↓ 5 callersMethodsell_amount
The effective amount that left the user's wallet including all fees.
crates/driver/src/domain/competition/solution/trade.rs:69
↓ 5 callersMethodsell_amount
(self, sell_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:94
↓ 5 callersFunctionsell_of
(sell_amount: u64)
crates/solana-solvers/src/dto/solution.rs:321
↓ 5 callersFunctionselling
(sell_amount: dto::SellAmount)
crates/solana-orderbook/src/infra/api/routes/quote/mod.rs:998
↓ 5 callersMethodsettlement_address
Ensure that the settlement contract is deployed to a specific address.
crates/driver/src/tests/setup/mod.rs:857
↓ 5 callersFunctionshare_common_pool_state
An internal utility method for sharing the success value for an `anyhow::Result`. Typically, this is pretty trivial using `FutureExt::shared`. Howeve
crates/liquidity-sources/src/balancer_v2/pools/common.rs:326
↓ 5 callersMethodsign_message
Sign a serialized message. The signature is verified locally, so a misconfigured signer fails here instead of at broadcast.
crates/cow-solana-signer/src/lib.rs:61
↓ 5 callersFunctionsolution
(executed_sell: u64, executed_buy: u64)
crates/solana-driver/src/domain/protocol_fee.rs:152
↓ 5 callersFunctionsolution
(trades: Vec<Trade>)
crates/solana-driver/src/domain/execution_cost.rs:260
↓ 5 callersMethodsolutions
(&self)
crates/driver/src/tests/setup/mod.rs:1361
↓ 5 callersMethodsolver
The solver which generated this solution.
crates/driver/src/domain/competition/solution/mod.rs:283
↓ 5 callersMethodsolver
(self, solver: eth::Address)
crates/driver/src/tests/setup/mod.rs:1778
↓ 5 callersMethodsolver
(&self)
crates/price-estimation/src/trade_finding/mod.rs:75
↓ 5 callersFunctionspawn_heap_dump_handler
Spawns a new async task that listens for connections to a UNIX socket at "/tmp/heap_dump_<process_name>.sock". When "dump" command is sent, it generat
crates/observe/src/heap_dump_handler.rs:32
↓ 5 callersFunctionspl_token_programs
Every mint of the settlement under the SPL Token program.
crates/solana-driver/src/domain/settlement.rs:1172
↓ 5 callersFunctionsplit_range
Splits range into two disjuctive consecutive ranges, second one containing last (up to) MAX_BLOCKS_QUERIED elements, first one containing the rest (if
crates/event-indexing/src/event_handler.rs:626
↓ 5 callersMethodstart_protocol_with_args_and_solver_fee
( &self, autopilot_config: configs::autopilot::Configuration, orderbook_config: config
crates/e2e/src/setup/services.rs:256
↓ 5 callersFunctionstore
Append one event per order, skipping a label the order's latest event already carries: a looping order marks each state once, not once per cycle.
crates/autopilot-svm/src/infra/order_events.rs:29
↓ 5 callersMethodstore_quote
(&self, competition: QuoteCompetition)
crates/shared/src/order_quoting.rs:734
↓ 5 callersMethodsub
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:145
↓ 5 callersFunctionswap
()
crates/solana-solvers/src/dto/solution.rs:257
↓ 5 callersMethodtarget
The buy amount for [`Side::Buy`] orders, or the sell amount for [`Side::Sell`] orders.
crates/driver/src/domain/competition/order/mod.rs:136
↓ 5 callersFunctiontighten_limit
The limit leg a fill has to reach for the signed `limit` to hold once the volume fees among `policies` are taken: a sell order's minimum buy rises, a
crates/protocol-fees/src/lib.rs:306
↓ 5 callersFunctionto_db_integer
Slots and solution ids stay far below `i64::MAX`, the column type.
crates/autopilot-svm/src/infra/observation.rs:231
↓ 5 callersMethodto_quote_data
Flattens the winning quote and metadata from the competition in a `QuoteData`.
crates/shared/src/order_quoting.rs:344
↓ 5 callersMethodto_signature
(self, scheme: EcdsaSigningScheme)
crates/model/src/signature.rs:301
↓ 5 callersMethodtrades
Trades settled by this solution.
crates/driver/src/domain/competition/solution/mod.rs:248
↓ 5 callersMethoduid
UID of the order that was settled in this trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:28
↓ 5 callersMethodupdate_tokens_and_fetch_prices
Replaces the full set of tokens that should be maintained by the background task and fetches their current prices.
crates/price-estimation/src/native_price_cache.rs:505
↓ 5 callersMethodupscale
Scales the input token amount to the value that is used by the Balancer contract to execute math operations.
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:53
↓ 5 callersMethodvalidate
(&self)
crates/driver/src/infra/solver/mod.rs:236
↓ 5 callersMethodweb3
Returns a reference to the underlying web3 client.
crates/driver/src/infra/blockchain/mod.rs:73
↓ 5 callersMethodweb3
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:638
↓ 5 callersFunctionwindows
Windows over a tip that never moves.
crates/autopilot-svm/src/infra/observation.rs:267
↓ 5 callersMethodwith_early_return
Enables the estimator to return after it got the configured number of successful results instead of having to wait for all estimators to return a resu
crates/price-estimation/src/competition/mod.rs:69
↓ 5 callersMethodwith_env_filter
(mut self, env_filter: &str)
crates/observe/src/config.rs:37
↓ 5 callersMethodwith_protocol_fees
Applies the protocol fees to the existing fulfillment creating a new one.
crates/driver/src/domain/competition/solution/fee.rs:41
↓ 5 callersMethodwith_sell_amount
(mut self, sell_amount: U256)
crates/model/src/order.rs:92
↓ 5 callersMethodwith_valid_to
Set order expiration timestamp (absolute, seconds since epoch).
crates/e2e/tests/e2e/refunder.rs:152
↓ 4 callersMethodaccounts_snapshot
Fetch the accounts at `keys` in a single batched fetch (split into parallel requests above the server's per-request cap) and return them as a snapshot
crates/solana-driver/src/infra/blockchain/mod.rs:232
↓ 4 callersMethodadditional_cost
Returns the gas the settlement will consume on top of the quote's `gas_amount`: ERC-1271 signature verification and, for unverified quotes, the order'
crates/shared/src/order_quoting.rs:116
↓ 4 callersMethodaddress
(&self)
crates/driver/src/infra/solver/mod.rs:116
↓ 4 callersFunctionaddress_bytes_list
(addresses: &[Address])
crates/pool-indexer/src/db/uniswap_v3.rs:16
↓ 4 callersFunctionadjust_bid_for_gas_costs
Adjusts quoted `(sell, buy)` for the quote's gas fee (denominated in the sell token), the same way the user-facing quote nets the fee out of the trade
crates/shared/src/fee.rs:184
↓ 4 callersFunctionadvance_time_past_expiration
Advances the blockchain time past the given expiration timestamp.
crates/e2e/tests/e2e/refunder.rs:30
↓ 4 callersMethodallow_multiple_solve_requests
(mut self)
crates/driver/src/tests/setup/mod.rs:1085
↓ 4 callersMethodamount
The amount to quote: the sell amount for a `Sell`, the buy amount for a `Buy`.
crates/solana-solvers/src/dex/mod.rs:29
↓ 4 callersMethodapply
Cuts every trade of `solution` by its order's rent and its share of `network_fee`, the settlement's network fee split evenly over the trades and round
crates/solana-driver/src/domain/execution_cost.rs:118
↓ 4 callersMethodapply_to
Apply the slippage parameters to the given liquidity increasing the in amount by the appropriate slippage while keeping the out amount the same.
crates/driver/src/domain/competition/solution/slippage.rs:32
↓ 4 callersMethodarbitrate
(&self, bids: Vec<Bid<Unscored>>, auction: &domain::Auction)
crates/autopilot/src/domain/competition/winner_selection.rs:61
↓ 4 callersMethodauction_id
Set specific auction ID which will be used during test. Setting auction ID can be used to test various scenarios when handling competing solutions in
crates/driver/src/tests/setup/mod.rs:898
↓ 4 callersMethodauction_outcome
( &self, order: &boundary::Order, quote: Option<&domain::Quote>, surplus_captu
crates/autopilot/src/fee_engine.rs:137
↓ 4 callersMethodbalance
(self, balance: eth::U256)
crates/driver/src/tests/setup/mod.rs:405
↓ 4 callersFunctionbest_response
Returns the best native estimate with respect to the provided ranking and order kind.
crates/price-estimation/src/competition/native.rs:140
↓ 4 callersFunctionbig_decimal_to_big_uint
(big_decimal: &BigDecimal)
crates/number/src/conversions.rs:11
↓ 4 callersFunctionbig_int_to_u256
(input: &BigInt)
crates/number/src/conversions.rs:48
↓ 4 callersMethodbind
Bind to the configured address, returning the listener and the actual bound address (which differs from `addr` when binding to port 0).
crates/solana-driver/src/infra/api/mod.rs:44
↓ 4 callersFunctionblock_number_to_block_number_hash
( provider: &AlloyProvider, block_number: BlockNumberOrTag, )
crates/ethrpc/src/block_stream.rs:314
↓ 4 callersFunctionblockhash_valid
Whether `blockhash` is usable, waiting up to `catch_up` for the node to confirm it. The node reports a blockhash from a slot it has not confirmed yet
crates/solana-orderbook/src/infra/api/routes/create_order/mod.rs:341
↓ 4 callersMethodbuild
(self, onchain_components: &OnchainComponents)
crates/e2e/src/setup/services.rs:94
↓ 4 callersMethodbuilder
Returns a `ClientBuilder` with the default settings.
crates/http-client/src/lib.rs:37
↓ 4 callersFunctionbuy_token_destination_into
(destination: BuyTokenDestination)
crates/shared/src/db_order_conversions.rs:291
↓ 4 callersFunctioncalc_in_given_out
https://github.com/balancer-labs/balancer-v2-monorepo/blob/ad1442113b26ec22081c2047e2ec95355a7f12ba/pkg/pool-stable/contracts/StableMath.sol#L152-L190
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:97
↓ 4 callersFunctioncalc_out_given_in
https://github.com/balancer-labs/balancer-v2-monorepo/blob/ad1442113b26ec22081c2047e2ec95355a7f12ba/pkg/pool-stable/contracts/StableMath.sol#L109-L147
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:63
↓ 4 callersFunctioncalculate_invariant_approx
https://github.com/balancer-labs/balancer-v2-monorepo/blob/stable-deployment/pvt/helpers/src/models/pools/stable/math.ts#L10
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:246
↓ 4 callersMethodcalculate_quote
( &self, parameters: QuoteParameters, )
crates/shared/src/order_quoting.rs:724
↓ 4 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/izeroex/src/lib.rs:703
↓ 4 callersMethodclearing_price
Clearing price for the given token.
crates/driver/src/domain/competition/solution/mod.rs:690
↓ 4 callersMethodcompute_reference_scores
( &self, ranking: &Ranking<C>, context: &AuctionContext<C>, )
crates/winner-selection/src/arbitrator.rs:229
↓ 4 callersFunctioncompute_volume_fee
Computes the volume fee amount charged against `base_volume` at the given `factor`. High-precision scaling ensures sub-BPS factors don't round to zero
crates/shared/src/fee.rs:144
↓ 4 callersFunctionconfig
Creates a temporary file containing the default config (buy orders disabled).
crates/solvers/src/tests/bitget/mod.rs:10
↓ 4 callersMethodconfigure_response
Instructs the solver to return a new response from now on.
crates/e2e/src/setup/solver/mock.rs:36
↓ 4 callersMethodconfigure_solution
Instructs the solver to return a new solution from now on.
crates/e2e/src/setup/solver/mock.rs:49
↓ 4 callersFunctionconversion_rate
Converts the result of `convertToAssets(10^vault_decimals)` into the per-atom factor (atoms of underlying per atom of vault) by dividing by `10^vault_
crates/price-estimation/src/native/eip4626.rs:254
← previousnext →701–800 of 10,749, ranked by callers