MCPcopy Create free account

hub / github.com/cowprotocol/services / functions

Functions8,522 in github.com/cowprotocol/services

↓ 11 callersMethodwith_buy_amount
(mut self, buy_amount: U256)
crates/model/src/order.rs:106
↓ 11 callersMethodwrite
(&mut self, buf: &[u8])
crates/s3/src/lib.rs:44
↓ 10 callersMethodaddress
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:189
↓ 10 callersMethodappend
(&mut self, label: &str)
crates/ethrpc/src/alloy/instrumentation.rs:191
↓ 10 callersMethodbuild
(config: &Config)
crates/driver/src/infra/persistence/mod.rs:46
↓ 10 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/gpv2settlement/src/lib.rs:357
↓ 10 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/weth9/src/lib.rs:2913
↓ 10 callersFunctionget
Get the metrics instance.
crates/solvers/src/infra/metrics.rs:57
↓ 10 callersMethodget
(&self, address: &eth::TokenAddress)
crates/driver/src/domain/competition/auction.rs:141
↓ 10 callersMethodget
TODO: Remove this method and use the `in_eth` function instead.
crates/autopilot/src/domain/auction/mod.rs:61
↓ 10 callersFunctioninsert
Tries to associate the contract app data with the full app data. If this contract app data already existed then the existing full app data is returne
crates/database/src/app_data.rs:7
↓ 10 callersMethodis_zero
(&self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:135
↓ 10 callersMethodmax
(&self)
crates/eth-domain-types/src/gas.rs:55
↓ 10 callersFunctionmetrics
(app: axum::Router<()>)
crates/driver/src/infra/api/routes/metrics.rs:1
↓ 10 callersFunctionnew
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/erc20/src/lib.rs:2234
↓ 10 callersMethodnotify
Make a fire and forget POST request to notify the solver about an event.
crates/driver/src/infra/solver/mod.rs:537
↓ 10 callersMethodreveal
Call the /reveal endpoint.
crates/driver/src/tests/setup/mod.rs:1117
↓ 10 callersMethodside
Set the order side.
crates/driver/src/tests/setup/mod.rs:200
↓ 10 callersMethoduid
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:1002
↓ 10 callersMethodwith_sell_amount
(mut self, sell_amount: U256)
crates/model/src/order.rs:101
↓ 9 callersMethodall
(&self)
crates/shared/src/token_list.rs:104
↓ 9 callersMethodcmp
(&self, other: &Self)
crates/driver/src/domain/competition/sorting.rs:69
↓ 9 callersFunctionconfig
Creates a temporary file containing the config of the given solver.
crates/solvers/src/tests/okx/mod.rs:9
↓ 9 callersMethodend
(&self)
crates/event-indexing/src/block_retriever.rs:145
↓ 9 callersMethoderr
(self)
crates/driver/src/tests/setup/mod.rs:1278
↓ 9 callersMethodestimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/native/fallback.rs:211
↓ 9 callersFunctionfrom_current_span
Looks up the request id from the current tracing span.
crates/observe/src/tracing/distributed/request_id.rs:60
↓ 9 callersFunctiongenerate_owners_and_order_ids
Generates 1 unique user and the provided number of unique orders for that user.
crates/database/src/trades.rs:199
↓ 9 callersMethodget
Globally unique id communicated to the protocol.
crates/driver/src/domain/competition/solution/mod.rs:649
↓ 9 callersFunctionhash_full_app_data
Hash full app data to get the bytes expected to be set as the contract level app data.
crates/app-data/src/app_data_hash.rs:108
↓ 9 callersMethodinput
(&self)
crates/solvers/src/domain/solver/baseline.rs:390
↓ 9 callersFunctioninstall
Install a panic hook that first calls the previous panic hook and then exits the process. This prevents the situation where a background task/thread
crates/observe/src/panic_hook.rs:11
↓ 9 callersFunctionpost
( state: State, path: Option<String>, query: Option<String>, req: serde_json::Value, )
crates/solvers/src/tests/mock/http.rs:227
↓ 9 callersMethodquote
(self, quote: OrderQuote)
crates/driver/src/tests/setup/mod.rs:281
↓ 9 callersMethodregister_signer
Calls the inner [`EthereumWallet`]'s [`register_signer`](EthereumWallet::register_signer), if no default signer has been setup (i.e. the wallet was cr
crates/ethrpc/src/alloy/wallet.rs:29
↓ 9 callersFunctionserve
( addr: SocketAddr, estimator: Arc<dyn NativePriceEstimating>, max_timeout: Duration, shutdown
crates/autopilot/src/infra/api.rs:43
↓ 9 callersFunctiontoken
(u: u64)
crates/price-estimation/src/native_price_cache.rs:561
↓ 8 callersFunctionadd_order_and_trade
( ex: &mut PgTransaction<'_>, owner: Address, order_uid: OrderUid, event_index
crates/database/src/trades.rs:252
↓ 8 callersMethodadd_trade
Adds the passed trade to the execution plan. Handles specifics of market, limit and liquidity orders internally.
crates/solver/src/settlement/settlement_encoder.rs:205
↓ 8 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/erc20/src/lib.rs:2329
↓ 8 callersMethodchain
Returns the chain for the RPC connection.
crates/autopilot/src/infra/blockchain/mod.rs:46
↓ 8 callersMethodchecked_mul_f64
(&self, factor: f64)
crates/number/src/u256_ext.rs:58
↓ 8 callersFunctionclear_DANGER
(pool: &PgPool)
crates/database/src/lib.rs:105
↓ 8 callersMethodcurrent_block
Returns a stream that monitors the block chain to inform about the current and new blocks.
crates/autopilot/src/infra/blockchain/mod.rs:106
↓ 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:354
↓ 8 callersMethoddomainSeparator
(data: &[u8])
contracts/generated/contracts-generated/gnosissafe/src/lib.rs:3485
↓ 8 callersFunctionget_vol_fee_adjusted_quote_data
Calculates the protocol fee based on volume fee and adjusts quote amounts.
crates/orderbook/src/quoter.rs:397
↓ 8 callersFunctioningester
( stream: impl stream::Stream<Item = Result<SubscribeUpdate, Status>> + Unpin + Send, )
crates/solana-indexer/src/indexer/ingester/tests.rs:90
↓ 8 callersFunctioninsert_onchain_order
( ex: &mut PgConnection, index: &EventIndex, event: &OnchainOrderPlacement, )
crates/database/src/onchain_broadcasted_orders.rs:79
↓ 8 callersMethodinsert_order
(&self, order: &Order)
crates/orderbook/src/database/orders.rs:217
↓ 8 callersFunctioninsert_quote
(ex: &mut PgConnection, quote: &Quote)
crates/database/src/orders.rs:415
↓ 8 callersMethodinto_inner
(self)
crates/event-indexing/src/block_retriever.rs:149
↓ 8 callersMethodlabeled
(&self, label: S)
crates/ethrpc/src/alloy/instrumentation.rs:154
↓ 8 callersMethodlayer
(&self, inner: S)
crates/ethrpc/src/alloy/buffering.rs:57
↓ 8 callersFunctionmock_single_block
A method for creating a block stream with an initial value that never observes any new blocks. This is useful for testing and creating "mock" componen
crates/ethrpc/src/block_stream.rs:266
↓ 8 callersMethodrename
Rename the order.
crates/driver/src/tests/setup/mod.rs:157
↓ 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:1319
↓ 8 callersMethodsend_out_refunding_tx
( &mut self, uids_by_contract: HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, )
crates/refunder/src/refund_service.rs:195
↓ 8 callersMethodslot
Computes the `(contract, storage_slot)` pair for a specific `(owner, spender)` pair.
crates/balance-overrides/src/approval/mod.rs:131
↓ 8 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
↓ 8 callersFunctiontimestamp_of_current_block_in_seconds
(provider: &AlloyProvider)
crates/ethrpc/src/block_stream.rs:306
↓ 8 callersFunctiontoken
(u: u64)
crates/price-estimation/src/buffered.rs:278
↓ 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:171
↓ 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
↓ 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:269
↓ 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 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/cowamm/src/lib.rs:390
↓ 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 callersMethodchecked_sub
(&self, v: &Self)
crates/autopilot/src/domain/competition/mod.rs:103
↓ 7 callersFunctioncreate_caching_estimator
Helper to create a CachingNativePriceEstimator with its own Cache (convenience for tests that don't need a separate Cache).
crates/price-estimation/src/native_price_cache.rs:567
↓ 7 callersFunctioncreate_test_quote
(sell_amount: U256, buy_amount: U256)
crates/orderbook/src/quoter.rs:516
↓ 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:589
↓ 7 callersMethodestimate_gas
(&self, tx: T)
crates/simulator/src/ethereum/mod.rs:123
↓ 7 callersMethodeth
(&self)
crates/driver/src/infra/api/mod.rs:191
↓ 7 callersMethodexecuted
(&self)
crates/driver/src/domain/competition/solution/trade.rs:40
↓ 7 callersFunctionfetch
(ex: &mut PgConnection, id: AuctionId)
crates/database/src/auction.rs:88
↓ 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:654
↓ 7 callersMethodget
()
crates/orderbook/src/database/mod.rs:113
↓ 7 callersMethodget_balances
(&self, queries: &[Query])
crates/account-balances/src/cached.rs:162
↓ 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 callersFunctioninsert_order_event
Inserts a row into the `order_events` table only if the latest event for the corresponding order UID has a different label than the provided event.
crates/database/src/order_events.rs:89
↓ 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:175
↓ 7 callersFunctionmetrics
()
crates/autopilot/src/maintenance.rs:313
↓ 7 callersMethodpath
(&self, suffix: &str)
crates/liquidity-sources/src/uniswap_v3/pool_indexer.rs:57
↓ 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:521
← previousnext →201–300 of 8,522, ranked by callers