Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
8,522 in github.com/cowprotocol/services
⨍
Functions
8,522
◇
Types & classes
3,082
↓ 7 callers
Method
scheme
(&self)
crates/model/src/signature.rs:145
↓ 7 callers
Method
single_order
(&self, uid: &OrderUid)
crates/orderbook/src/database/orders.rs:292
↓ 7 callers
Method
solution
(&self)
crates/autopilot/src/domain/competition/bid.rs:30
↓ 7 callers
Method
solver_fee
Set the solver fee.
crates/driver/src/tests/setup/mod.rs:205
↓ 7 callers
Method
state_override
( &self, holder: &Address, amount: &U256, )
crates/balance-overrides/src/balance/mod.rs:141
↓ 7 callers
Method
to_f64_lossy
(self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:102
↓ 7 callers
Function
update_settlement_auction
( ex: &mut PgConnection, block_number: i64, log_index: i64, auction_id: i64, )
crates/database/src/settlements.rs:49
↓ 7 callers
Method
validate
(&self)
crates/orderbook/src/api/get_trades.rs:38
↓ 7 callers
Method
with_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 callers
Method
with_signature
(mut self, owner: Address, signature: Signature)
crates/simulator/src/simulation_builder.rs:648
↓ 6 callers
Method
ab_order_executed
Ensure that the onchain balances changed in accordance with the [`ab_order`].
crates/driver/src/tests/setup/mod.rs:1750
↓ 6 callers
Method
add
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:140
↓ 6 callers
Function
adjust_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:256
↓ 6 callers
Function
append_events
For a given checkpoint, append events to get a new checkpoint
crates/liquidity-sources/src/uniswap_v3/pool_fetching.rs:493
↓ 6 callers
Function
assert_orders_by_contract
( result: &HashMap<CoWSwapEthFlowAddress, Vec<OrderUid>>, contract: Address, expected_
crates/refunder/src/refund_service.rs:311
↓ 6 callers
Method
balance_override
( &self, request: BalanceOverrideRequest, )
crates/balance-overrides/src/lib.rs:68
↓ 6 callers
Function
big_decimal_to_big_rational
(value: &BigDecimal)
crates/number/src/conversions.rs:28
↓ 6 callers
Function
bytes_to_addr
(b: Vec<u8>)
crates/pool-indexer/src/db/uniswap_v3.rs:11
↓ 6 callers
Method
call_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 callers
Method
call_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 callers
Method
call_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 callers
Method
call_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 callers
Method
create
Creates a new HTTP client with the default settings.
crates/http-client/src/lib.rs:27
↓ 6 callers
Method
detect
Returns the cached detection result for `(token, holder)`, running detection if not yet cached.
crates/balance-overrides/src/balance/mod.rs:329
↓ 6 callers
Method
div_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:175
↓ 6 callers
Method
encode
Encodes the settlement's order_trade as a tuple, as expected by the smart contract.
crates/solver/src/settlement/mod.rs:87
↓ 6 callers
Method
estimate
(&self, mut query: Arc<Query>)
crates/price-estimation/src/competition/quote.rs:30
↓ 6 callers
Method
fee
(&self)
crates/driver/src/domain/competition/solution/trade.rs:47
↓ 6 callers
Method
fetch
Fetches liquidity for the specified auction.
crates/driver/src/boundary/liquidity/mod.rs:128
↓ 6 callers
Method
filter
(&self)
crates/event-indexing/src/event_handler.rs:694
↓ 6 callers
Method
filter
(&self)
crates/autopilot/src/database/ethflow_events/event_retriever.rs:37
↓ 6 callers
Method
from_solver
(mut self, solver: Solver)
crates/simulator/src/simulation_builder.rs:191
↓ 6 callers
Method
get
()
crates/price-estimation/src/native/coingecko.rs:305
↓ 6 callers
Method
get
()
crates/shared/src/order_validation.rs:72
↓ 6 callers
Function
get_confirmed_transaction
( account: Address, web3: &Web3, block_hash_stream: PollerStream<Vec<B256>>, )
crates/e2e/tests/e2e/submission.rs:1005
↓ 6 callers
Function
get_pending_tx
(account: Address, web3: &Web3)
crates/e2e/tests/e2e/submission.rs:996
↓ 6 callers
Function
get_quote
( services: &Services<'_>, sell_token: Address, buy_token: Address, kind: OrderKind, amoun
crates/e2e/tests/e2e/protocol_fee.rs:645
↓ 6 callers
Method
hash
( &self, contracts: &Contracts, ethflow_contract: &CoWSwapEthFlow::Instance, )
crates/e2e/tests/e2e/ethflow.rs:979
↓ 6 callers
Function
init_tracing
(env_filter: &str)
crates/observe/src/tracing/distributed/request_id.rs:128
↓ 6 callers
Function
insert_or_overwrite_ethflow_order
( ex: &mut PgTransaction<'_>, event: &EthOrderPlacement, )
crates/database/src/ethflow_orders.rs:26
↓ 6 callers
Function
insert_settlement
( ex: &mut PgConnection, index: &EventIndex, event: &Settlement, )
crates/database/src/events.rs:134
↓ 6 callers
Method
into_array
(self)
crates/simulator/src/encoding.rs:54
↓ 6 callers
Function
make_log
(address: Address, block: u64, event: impl SolEvent)
crates/pool-indexer/src/indexer/uniswap_v3.rs:1078
↓ 6 callers
Function
mapping_slot_hash
`keccak256(pad32(holder) ++ map_slot)` — the storage slot of `mapping(address => _)` entries in Solidity.
crates/balance-overrides/src/detector.rs:91
↓ 6 callers
Method
matom
Converts this value from Mwei to wei (multiplies by 1e6).
crates/number/src/units.rs:8
↓ 6 callers
Method
name
(&self)
crates/driver/src/infra/solver/mod.rs:292
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:260
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowammlegacyhelper/src/lib.rs:260
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/permit2/src/lib.rs:516
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/liquoricesettlement/src/lib.rs:479
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:1545
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowswapethflow/src/lib.rs:408
↓ 6 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowammconstantproductfactory/src/lib.rs:260
↓ 6 callers
Method
new_simulation_builder
(&self)
crates/simulator/src/simulation_builder.rs:108
↓ 6 callers
Method
nonce
(&self, web3: &Web3)
crates/e2e/src/setup/onchain_components/mod.rs:56
↓ 6 callers
Function
order_kind_into
(kind: OrderKind)
crates/shared/src/db_order_conversions.rs:185
↓ 6 callers
Method
out_amount
(&self, query: &PriceQuery)
crates/price-estimation/src/trade_finding/mod.rs:88
↓ 6 callers
Method
parameters_from_app_data
Parses the app data JSON and configures the builder accordingly: - Pre/post hooks are encoded as interactions via the [`HooksTrampoline`] - Flashloan/
crates/simulator/src/simulation_builder.rs:209
↓ 6 callers
Method
processing_stage_timer
(&self, stage: &str)
crates/driver/src/infra/observe/metrics.rs:73
↓ 6 callers
Method
query
Performs the specified GraphQL query on the current subgraph.
crates/liquidity-sources/src/subgraph.rs:49
↓ 6 callers
Method
remaining
Returns the amount of time remaining to solve, or `None` if time's up.
crates/solvers/src/domain/auction.rs:93
↓ 6 callers
Method
simulate
( &self, tx: T, block: BlockNo, generate_access_list: GenerateAccessList,
crates/simulator/src/tenderly/mod.rs:67
↓ 6 callers
Method
solution
The solution encoded in this settlement.
crates/driver/src/domain/competition/solution/settlement.rs:248
↓ 6 callers
Function
tracing_headers
()
crates/observe/src/tracing/distributed/headers.rs:9
↓ 6 callers
Function
trades
( ex: &'a mut PgConnection, owner_filter: Option<&'a Address>, order_uid_filter: Option<&'a OrderU
crates/database/src/trades.rs:23
↓ 6 callers
Function
u256_to_big_int
(input: &U256)
crates/number/src/conversions.rs:70
↓ 6 callers
Function
u256_to_big_uint
(input: &U256)
crates/number/src/conversions.rs:66
↓ 6 callers
Method
user_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:453
↓ 6 callers
Method
with_default_ethflow_order_data
(&mut self)
crates/refunder/src/traits.rs:130
↓ 6 callers
Method
with_order_status
(&mut self, status: RefundStatus)
crates/refunder/src/traits.rs:111
↓ 6 callers
Method
with_orders
(mut self, orders: impl IntoIterator<Item = Order>)
crates/simulator/src/simulation_builder.rs:157
↓ 5 callers
Method
access_list
Simulate the access list needed by a transaction. If the transaction already has an access list, the returned access list will be a superset of the ex
crates/simulator/src/lib.rs:73
↓ 5 callers
Method
addSolver
( data: &[u8], )
contracts/generated/contracts-generated/gpv2allowlistauthentication/src/lib.rs:1522
↓ 5 callers
Method
address
Returns the [`eth::TokenAddress`] of the ERC20.
crates/driver/src/infra/blockchain/token.rs:22
↓ 5 callers
Method
all
All solutions including the ones that got filtered out.
crates/autopilot/src/domain/competition/winner_selection.rs:247
↓ 5 callers
Method
append_to_execution_plan_internalizable
( &mut self, interaction: Arc<dyn Interaction>, internalizable: bool, )
crates/solver/src/settlement/settlement_encoder.rs:354
↓ 5 callers
Function
apply_haircut
The driver applies a haircut to the solver's solution after it is returned (see `Solutions::into_domain`). This reduces the user's effective buy amoun
crates/driver/src/infra/solver/dto/auction.rs:418
↓ 5 callers
Method
as_erc20
If the token is ETH, return WETH, thereby converting it to erc20.
crates/eth-domain-types/src/lib.rs:44
↓ 5 callers
Method
as_pool_ref
(&self)
crates/liquidity-sources/src/balancer_v2/swap/mod.rs:367
↓ 5 callers
Method
as_u8
(&self)
crates/autopilot/src/domain/settlement/transaction/tokenized.rs:56
↓ 5 callers
Method
at_block
(mut self, block: Block)
crates/simulator/src/simulation_builder.rs:201
↓ 5 callers
Function
best_response
Returns the best estimate with respect to the provided ranking and order kind.
crates/price-estimation/src/competition/quote.rs:289
↓ 5 callers
Function
big_int_to_u256
(input: &BigInt)
crates/number/src/conversions.rs:48
↓ 5 callers
Function
big_rational_to_u256
(ratio: &BigRational)
crates/number/src/conversions.rs:61
↓ 5 callers
Function
build_1271_validator
( signature_validator: MockSignatureValidating, order_simulator: Option<OrderSimulator>,
crates/shared/src/order_validation.rs:3075
↓ 5 callers
Function
build_event
((block_number, log_index): (u64, usize))
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:140
↓ 5 callers
Function
bytes_to_order_uid
(bytes: &[u8])
crates/autopilot/src/database/events.rs:122
↓ 5 callers
Function
calculate_invariant
https://github.com/balancer-labs/balancer-v2-monorepo/blob/9eb7e44a4e9ebbadfe3c6242a086118298cadc9f/pkg/pool-stable-phantom/contracts/StableMath.sol#L
crates/liquidity-sources/src/balancer_v2/swap/stable_math.rs:15
↓ 5 callers
Method
calculate_quote_stream
( &self, parameters: QuoteParameters, )
crates/shared/src/order_quoting.rs:616
↓ 5 callers
Method
call_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/uniswapv2router02/src/lib.rs:1641
↓ 5 callers
Method
call_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/pancakerouter/src/lib.rs:1447
↓ 5 callers
Method
call_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/testnetuniswapv2router02/src/lib.rs:1471
↓ 5 callers
Method
call_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/iuniswaplikerouter/src/lib.rs:1455
↓ 5 callers
Method
call_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/baoswaprouter/src/lib.rs:1447
↓ 5 callers
Method
call_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/honeyswaprouter/src/lib.rs:1447
↓ 5 callers
Method
call_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/permit2/src/lib.rs:613
↓ 5 callers
Method
call_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/balancerv3batchrouter/src/lib.rs:883
↓ 5 callers
Method
call_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/swaprrouter/src/lib.rs:1447
↓ 5 callers
Method
call_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/sushiswaprouter/src/lib.rs:1447
↓ 5 callers
Method
call_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/gnosissafe/src/lib.rs:260
← previous
next →
301–400 of 8,522, ranked by callers