MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions9,022 in github.com/cowprotocol/services

↓ 8 callersMethodserve
Serve the API on the given listener until `shutdown` resolves, then drain in-flight requests before returning.
crates/solana-driver/src/infra/api/mod.rs:44
↓ 8 callersFunctionserve_metrics
Serves metrics on a dedicated server at the given address. Spawns a background task and returns its handle.
crates/observe/src/metrics.rs:100
↓ 8 callersMethodslot
Computes the `(contract, storage_slot)` pair for a specific `(owner, spender)` pair.
crates/balance-overrides/src/approval/mod.rs:131
↓ 8 callersFunctiontimestamp_of_current_block_in_seconds
(provider: &AlloyProvider)
crates/ethrpc/src/block_stream.rs:306
↓ 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 callersMethodvaultRelayer
(data: &[u8])
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4344
↓ 8 callersMethodwrite
(&mut self, buf: &[u8])
crates/s3/src/lib.rs:44
↓ 7 callersMethodab_order_executed
Ensure that the onchain balances changed in accordance with the [`ab_order`].
crates/driver/src/tests/setup/mod.rs:1848
↓ 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 callersMethodapply_factor
Applies a factor to the token amount.
crates/eth-domain-types/src/token_amount.rs:15
↓ 7 callersMethodas_any
(&self)
crates/solver/src/liquidity/mod.rs:448
↓ 7 callersFunctionassert_trades
( db: &mut PgConnection, owner_filter: Option<&Address>, order_uid_filter: Option<&Ord
crates/database/src/trades.rs:339
↓ 7 callersMethodauthenticator
(&self)
crates/autopilot/src/infra/blockchain/contracts.rs:160
↓ 7 callersMethodbuy_amount
(self, buy_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:90
↓ 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:1826
↓ 7 callersMethodchain
Returns the chain for the RPC connection.
crates/autopilot/src/infra/blockchain/mod.rs:48
↓ 7 callersMethodchecked_mul_f64
(&self, factor: f64)
crates/number/src/u256_ext.rs:105
↓ 7 callersMethodchecked_sub
(&self, v: &Self)
crates/autopilot/src/domain/competition/mod.rs:103
↓ 7 callersFunctionclear_DANGER
(pool: &PgPool)
crates/database/src/lib.rs:100
↓ 7 callersFunctioncreate_test_quote
(sell_amount: U256, buy_amount: U256)
crates/orderbook/src/quoter.rs:525
↓ 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 callersMethodestimate
(&self, token: Address, timeout: Duration)
crates/price-estimation/src/native/eip4626.rs:84
↓ 7 callersMethodeth
(&self)
crates/driver/src/infra/api/mod.rs:195
↓ 7 callersMethodexecuted
(&self)
crates/driver/src/domain/competition/solution/trade.rs:40
↓ 7 callersFunctionfetch
(ex: &mut PgConnection, id: AuctionId)
crates/database/src/auction.rs:95
↓ 7 callersMethodfetch
(&self, keys: impl IntoIterator<Item = K>, block: Block)
crates/liquidity-sources/src/recent_block_cache.rs:197
↓ 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:666
↓ 7 callersMethodget
()
crates/orderbook/src/database/mod.rs:111
↓ 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 callersMethodid
Returns the chain's chain ID
crates/chain/src/lib.rs:28
↓ 7 callersMethodinstructions
Build the settlement instruction list.
crates/solana-driver/src/domain/settlement.rs:153
↓ 7 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:178
↓ 7 callersMethodpop_front
(&mut self)
crates/ethrpc/src/alloy/buffering.rs:126
↓ 7 callersMethodpush_back
(&mut self, sender: ResponseSender)
crates/ethrpc/src/alloy/buffering.rs:116
↓ 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 callersFunctionresponse_body
(response: axum::http::Response<axum::body::Body>)
crates/orderbook/src/api.rs:528
↓ 7 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:1400
↓ 7 callersFunctionseed_checkpoint
(db: &PgPool, factory: Address, block: u64)
crates/e2e/tests/e2e/pool_indexer.rs:181
↓ 7 callersMethodsingle_order
(&self, uid: &OrderUid)
crates/orderbook/src/database/orders.rs:294
↓ 7 callersMethodsolution
(&self)
crates/autopilot/src/domain/competition/bid.rs:30
↓ 7 callersMethodsolution_id
The id of the cached fast-path solution. Present only when the solution was successfully cached for a later `/settle`.
crates/driver/src/tests/setup/mod.rs:1621
↓ 7 callersMethodsolver_fee
Set the solver fee.
crates/driver/src/tests/setup/mod.rs:205
↓ 7 callersMethodstart
Start a new proxy server with automatic failover between backends # Panics Panics if `backends` is empty. At least one backend URL is required.
crates/e2e/src/setup/proxy.rs:76
↓ 7 callersMethodstate_override
( &self, holder: &Address, amount: &U256, )
crates/balance-overrides/src/balance/mod.rs:141
↓ 7 callersMethodto_f64_lossy
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:102
↓ 7 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:498
↓ 7 callersMethodvalidate
(&self)
crates/orderbook/src/api/get_trades.rs:38
↓ 7 callersMethodwith_metric_label
Clones self and returns an instance that captures metrics extended with the provided label.
crates/driver/src/infra/blockchain/mod.rs:172
↓ 7 callersFunctionwith_pool_indexer_at
Runs `body` with a freshly-started pool-indexer. The indexer is spawned before the closure runs, then `abort`ed and `await`ed after — so the port is f
crates/e2e/tests/e2e/pool_indexer.rs:250
↓ 7 callersMethodwith_signature
(mut self, owner: Address, signature: Signature)
crates/simulator/src/simulation_builder.rs:660
↓ 6 callersMethodadd
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:140
↓ 6 callersFunctionadd_settlement
Testing Trades with settlements
crates/database/src/trades.rs:598
↓ 6 callersFunctionadjust_quote_to_order_limits
This function adjusts quote amounts to directly compare them with the order's limits, ensuring a meaningful comparison for potential price improvement
crates/driver/src/domain/competition/solution/fee.rs:249
↓ 6 callersFunctionappend_events
For a given checkpoint, append events to get a new checkpoint
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:499
↓ 6 callersMethodarbitrate
( &self, solutions: Vec<Solution<Unscored, C>>, context: &AuctionContext<C>, )
crates/winner-selection/src/arbitrator.rs:40
↓ 6 callersMethodas_erc20
If the token is ETH, return WETH, thereby converting it to erc20.
crates/eth-domain-types/src/lib.rs:44
↓ 6 callersFunctionassert_orders_by_contract
( result: &HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, contract: Address, expected_
crates/refunder/src/refund_service.rs:312
↓ 6 callersMethodbalance_override
( &self, request: BalanceOverrideRequest, )
crates/balance-overrides/src/lib.rs:68
↓ 6 callersFunctionbig_decimal_to_big_rational
(value: &BigDecimal)
crates/number/src/conversions.rs:28
↓ 6 callersFunctionbytes_to_addr
(b: Vec<u8>)
crates/pool-indexer/src/db/uniswap_v3.rs:12
↓ 6 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/uniswapv3quoterv2/src/lib.rs:691
↓ 6 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/gpv2allowlistauthentication/src/lib.rs:1976
↓ 6 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/erc20mintable/src/lib.rs:2265
↓ 6 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/nonstandarderc20balances/src/lib.rs:1564
↓ 6 callersMethodchecked_mul_ratio
(&self, mul: &Self, div: &Self)
crates/number/src/u256_ext.rs:75
↓ 6 callersMethodcontains
(&self, address: &Address)
crates/shared/src/token_list.rs:100
↓ 6 callersFunctiondeploy_univ3
Deploy mock V3 contracts and set up a pool with liquidity.
crates/e2e/tests/e2e/pool_indexer.rs:354
↓ 6 callersMethoddetect
Returns the cached detection result for `(token, holder)`, running detection if not yet cached.
crates/balance-overrides/src/balance/mod.rs:329
↓ 6 callersMethoddiv_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:175
↓ 6 callersMethodencode
Encodes the settlement's order_trade as a tuple, as expected by the smart contract.
crates/solver/src/settlement/mod.rs:87
↓ 6 callersFunctionfast_path_test
Set up a fast-path quote test: a fast-path solver quoting `ab_order`.
crates/driver/src/tests/cases/quote.rs:133
↓ 6 callersMethodfetch
Fetches liquidity for the specified auction.
crates/driver/src/boundary/liquidity/mod.rs:128
↓ 6 callersMethodfilter
(&self)
crates/autopilot/src/database/ethflow_events/event_retriever.rs:37
↓ 6 callersMethodfilter
(&self)
crates/autopilot/src/boundary/events/settlement.rs:30
↓ 6 callersMethodfrom_solver
(mut self, solver: Solver)
crates/simulator/src/simulation_builder.rs:203
↓ 6 callersMethodget
()
crates/price-estimation/src/native/coingecko.rs:307
↓ 6 callersMethodget
()
crates/shared/src/order_validation.rs:73
↓ 6 callersMethodget_auction
Fetches the current auction. Don't use this as a synchronization mechanism in tests because that is prone to race conditions which would make tests fl
crates/e2e/src/setup/services.rs:449
↓ 6 callersFunctionget_confirmed_transaction
( account: Address, web3: &Web3, block_hash_stream: PollerStream<Vec<B256>>, )
crates/e2e/tests/e2e/submission.rs:1006
↓ 6 callersFunctionget_pending_tx
(account: Address, web3: &Web3)
crates/e2e/tests/e2e/submission.rs:997
↓ 6 callersFunctionget_quote
( services: &Services<'_>, sell_token: Address, buy_token: Address, kind: OrderKind, amoun
crates/e2e/tests/e2e/protocol_fee.rs:646
↓ 6 callersMethodhash
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:982
↓ 6 callersFunctioninit_tracing
(env_filter: &str)
crates/observe/src/tracing/distributed/request_id.rs:128
↓ 6 callersFunctioninsert_or_overwrite_ethflow_order
( ex: &mut PgTransaction<'_>, event: &EthOrderPlacement, )
crates/database/src/ethflow_orders.rs:26
↓ 6 callersMethodinto_array
(self)
crates/simulator/src/encoding.rs:54
↓ 6 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
↓ 6 callersMethodinto_vec
(self)
crates/price-estimation/src/lib.rs:261
↓ 6 callersMethodis_empty
(&self)
crates/ethrpc/src/alloy/buffering.rs:312
↓ 6 callersMethodlookup_table
Return the address lookup table at `key` for the v0 message compiler. # Requirements - The account must exist. - The address-lookup-table program mu
crates/solana-driver/src/infra/blockchain/accounts.rs:62
↓ 6 callersFunctionmake_log
(address: Address, block: u64, event: impl SolEvent)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1115
↓ 6 callersFunctionmapping_slot_hash
`keccak256(pad32(holder) ++ map_slot)` — the storage slot of `mapping(address => _)` entries in Solidity.
crates/balance-overrides/src/detector.rs:91
← previousnext →301–400 of 9,022, ranked by callers