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
↓ 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/gnosissafecompatibilityfallbackhandler/src/lib.rs:1345
↓ 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/cowammconstantproductfactory/src/lib.rs:357
↓ 5 callers
Function
clear_pool_indexer_tables
Truncates the indexer's tables between tests. The schema itself is provisioned by flyway (`migrations-pool-indexer`), so this just clears rows.
crates/e2e/tests/e2e/pool_indexer.rs:170
↓ 5 callers
Method
common
(&self)
crates/liquidity-sources/src/balancer_v2/pools/stable.rs:32
↓ 5 callers
Method
configure_solution
Instructs the solver to return a new solution from now on.
crates/e2e/src/setup/solver/mock.rs:50
↓ 5 callers
Method
contains
(&self, address: &Address)
crates/shared/src/token_list.rs:100
↓ 5 callers
Method
count
(&self, owner: Address)
crates/orderbook/src/database/orders.rs:493
↓ 5 callers
Function
create_limit_order
(maker_amount: U256, taker_amount: U256, fee_amount: U256)
crates/solvers/src/boundary/liquidity/limit_order.rs:58
↓ 5 callers
Method
created
(self, created: u32)
crates/driver/src/tests/setup/mod.rs:273
↓ 5 callers
Method
data
(&self)
crates/e2e/src/setup/solver/solution.rs:25
↓ 5 callers
Method
estimate_native_price
( &self, token: Address, timeout: Duration, )
crates/price-estimation/src/buffered.rs:87
↓ 5 callers
Function
exp10
(n: u8)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:30
↓ 5 callers
Method
fee
(&self)
crates/shared/src/fee.rs:37
↓ 5 callers
Method
fee_handler
(mut self, fee_handler: FeeHandler)
crates/driver/src/tests/setup/mod.rs:426
↓ 5 callers
Method
fetch_native_prices
( &'_ self, tokens: HashSet<Token>, timeout: Duration, )
crates/price-estimation/src/native/coingecko.rs:227
↓ 5 callers
Method
filter
(&self)
crates/liquidity-sources/src/uniswap_v3/event_fetching.rs:26
↓ 5 callers
Method
filter
(&self)
crates/autopilot/src/boundary/events/settlement.rs:30
↓ 5 callers
Method
finalize
(self)
crates/driver/src/infra/solver/streaming/mod.rs:151
↓ 5 callers
Method
get
()
crates/solver/src/liquidity_collector.rs:139
↓ 5 callers
Method
get
()
crates/request-sharing/src/lib.rs:177
↓ 5 callers
Method
get
()
crates/orderbook/src/orderbook.rs:72
↓ 5 callers
Method
get_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:448
↓ 5 callers
Method
get_native_price
( &self, token: &Address, )
crates/e2e/src/setup/services.rs:587
↓ 5 callers
Function
get_useful_orders
Get the `orders_per_type` best priced and biggest volume orders.
crates/solver/src/liquidity/zeroex.rs:152
↓ 5 callers
Function
group_by_token_pair
( orders: impl Iterator<Item = OrderRecord>, )
crates/solver/src/liquidity/zeroex.rs:136
↓ 5 callers
Method
id
(&self)
crates/autopilot/src/domain/competition/mod.rs:37
↓ 5 callers
Function
initialize_reentrant
Like [`initialize`], but can be called multiple times in a row. Later calls are ignored. Useful for tests.
crates/observe/src/tracing/init.rs:43
↓ 5 callers
Function
insert_onchain_invalidation
( ex: &mut PgConnection, index: &EventIndex, order_uid: &OrderUid, )
crates/database/src/onchain_invalidations.rs:56
↓ 5 callers
Function
insert_or_overwrite_orders
( ex: &mut PgTransaction<'_>, events: &[EthOrderPlacement], )
crates/database/src/ethflow_orders.rs:15
↓ 5 callers
Function
insert_refund_tx_hash
( ex: &mut PgTransaction<'_>, refund: &Refund, )
crates/database/src/ethflow_orders.rs:110
↓ 5 callers
Method
interactions
(&self)
crates/price-estimation/src/trade_finding/mod.rs:103
↓ 5 callers
Method
is_node_error
(&self)
crates/ethrpc/src/alloy/errors.rs:32
↓ 5 callers
Function
make_1271_order_creation
()
crates/shared/src/order_validation.rs:3051
↓ 5 callers
Method
metadata
(&self)
crates/liquidity-sources/src/zeroex.rs:213
↓ 5 callers
Method
mul_down
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:149
↓ 5 callers
Method
mul_up
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:155
↓ 5 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/izeroex/src/lib.rs:606
↓ 5 callers
Function
new
( address: alloy_sol_types::private::Address, __provider: P, )
contracts/generated/contracts-generated/cowamm/src/lib.rs:293
↓ 5 callers
Function
next_block
Awaits and returns the next block that will be pushed into the stream.
crates/ethrpc/src/block_stream.rs:357
↓ 5 callers
Method
order
Get a reference to the traded order.
crates/solvers/src/domain/solution.rs:369
↓ 5 callers
Method
pop_front
(&mut self)
crates/ethrpc/src/alloy/buffering.rs:104
↓ 5 callers
Method
pre_interactions
(&self)
crates/price-estimation/src/trade_finding/mod.rs:110
↓ 5 callers
Method
provide_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:278
↓ 5 callers
Method
provider
(&self)
crates/liquidity-sources/src/balancer_v2/pool_fetching/mod.rs:208
↓ 5 callers
Method
provider
(&self)
crates/simulator/src/simulation_builder.rs:88
↓ 5 callers
Function
pubkey
(n: u8)
crates/solana-indexer/src/indexer/decoder/tests.rs:25
↓ 5 callers
Function
quote_metadata
Returns quote.
crates/e2e/tests/e2e/database.rs:24
↓ 5 callers
Function
read_order
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:219
↓ 5 callers
Function
read_quote
( ex: &mut PgConnection, id: &OrderUid, )
crates/database/src/orders.rs:432
↓ 5 callers
Method
reduce
Returns a new deadline with the specified duration subtracted.
crates/solvers/src/domain/auction.rs:101
↓ 5 callers
Function
relevant_instructions
Resolve every instruction against `account_keys` and keep only those whose program is the settlement or SolFlow program, where settlement is often rea
crates/solana-indexer/src/indexer/decoder.rs:183
↓ 5 callers
Function
report_with_revert
(events: Vec<Event>)
crates/shared/src/order_creation_simulation.rs:325
↓ 5 callers
Function
run
(test_case: TestCase)
crates/driver/src/tests/cases/haircut_pre_processing.rs:61
↓ 5 callers
Function
seed_checkpoint
(db: &PgPool, factory: Address, block: u64)
crates/e2e/tests/e2e/pool_indexer.rs:180
↓ 5 callers
Method
sell_amount
(self, sell_amount: eth::U256)
crates/driver/src/tests/setup/mod.rs:94
↓ 5 callers
Function
serve_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
↓ 5 callers
Method
settlement_address
Ensure that the settlement contract is deployed to a specific address.
crates/driver/src/tests/setup/mod.rs:859
↓ 5 callers
Function
share_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 callers
Method
shared_or_else
Returns an existing in flight future or creates and uses a new future from the specified closure.
crates/request-sharing/src/lib.rs:126
↓ 5 callers
Method
solutions
(&self)
crates/driver/src/tests/setup/mod.rs:1285
↓ 5 callers
Method
solver
(&self)
crates/driver/src/infra/api/mod.rs:195
↓ 5 callers
Method
solver
(self, solver: eth::Address)
crates/driver/src/tests/setup/mod.rs:1674
↓ 5 callers
Method
solver
(&self)
crates/price-estimation/src/trade_finding/mod.rs:70
↓ 5 callers
Method
solver
(&self)
crates/autopilot/src/domain/settlement/mod.rs:72
↓ 5 callers
Function
spawn_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 callers
Function
split_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:616
↓ 5 callers
Method
store_quote
(&self, quote: Quote)
crates/shared/src/order_quoting.rs:539
↓ 5 callers
Method
sub
(self, other: Self)
crates/liquidity-sources/src/balancer_v2/swap/fixed_point.rs:145
↓ 5 callers
Function
submit_order
( ethflow_order: &ExtendedEthFlowOrder, user: Address, contracts: &Contracts, ethflow_contract
crates/e2e/tests/e2e/ethflow.rs:652
↓ 5 callers
Function
test_keys
(keys: impl IntoIterator<Item = usize>)
crates/liquidity-sources/src/recent_block_cache.rs:537
↓ 5 callers
Method
to_signature
(self, scheme: EcdsaSigningScheme)
crates/model/src/signature.rs:300
↓ 5 callers
Method
trades
Trades settled by this solution.
crates/driver/src/domain/competition/solution/mod.rs:204
↓ 5 callers
Method
uid
UID of the order that was settled in this trade.
crates/autopilot/src/domain/settlement/trade/mod.rs:28
↓ 5 callers
Function
update
( ex: &mut PgConnection, contract: &str, last_indexed_block: i64, )
crates/database/src/last_indexed_blocks.rs:7
↓ 5 callers
Method
update
(&self, block: u64, store_events: bool)
crates/autopilot/src/solvable_orders.rs:204
↓ 5 callers
Function
update_settlement_solver
( ex: &mut PgConnection, block_number: i64, log_index: i64, solver: Address, solution_uid:
crates/database/src/settlements.rs:70
↓ 5 callers
Method
upscale
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 callers
Method
web3
Returns a reference to the underlying web3 client.
crates/driver/src/infra/blockchain/mod.rs:71
↓ 5 callers
Method
web3
(&self)
crates/e2e/src/setup/onchain_components/mod.rs:636
↓ 5 callers
Method
with_class
(mut self, class: OrderClass)
crates/model/src/order.rs:184
↓ 5 callers
Method
with_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:75
↓ 5 callers
Method
with_env_filter
(mut self, env_filter: &str)
crates/observe/src/config.rs:37
↓ 5 callers
Method
with_fee_amount
(mut self, fee_amount: U256)
crates/model/src/order.rs:126
↓ 5 callers
Method
with_kind
(mut self, kind: OrderKind)
crates/model/src/order.rs:131
↓ 5 callers
Method
with_valid_to
Set order expiration timestamp (absolute, seconds since epoch).
crates/e2e/tests/e2e/refunder.rs:152
↓ 4 callers
Method
add_unwrap
(&mut self, unwrap: UnwrapWethInteraction)
crates/solver/src/settlement/settlement_encoder.rs:363
↓ 4 callers
Method
additional_cost
(&self)
crates/shared/src/order_quoting.rs:70
↓ 4 callers
Method
address
(&self)
crates/driver/src/infra/solver/mod.rs:118
↓ 4 callers
Function
address_bytes_list
(addresses: &[Address])
crates/pool-indexer/src/db/uniswap_v3.rs:15
↓ 4 callers
Function
advance_time_past_expiration
Advances the blockchain time past the given expiration timestamp.
crates/e2e/tests/e2e/refunder.rs:30
↓ 4 callers
Method
allow_multiple_solve_requests
(mut self)
crates/driver/src/tests/setup/mod.rs:1067
↓ 4 callers
Method
apply_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 callers
Method
arbitrate
(&self, bids: Vec<Bid<Unscored>>, auction: &domain::Auction)
crates/autopilot/src/domain/competition/winner_selection.rs:61
↓ 4 callers
Function
available
(sell_amount: eth::U256, buy_amount: eth::U256)
crates/driver/src/infra/solver/dto/auction.rs:466
↓ 4 callers
Function
best_response
Returns the best native estimate with respect to the provided ranking and order kind.
crates/price-estimation/src/competition/native.rs:92
↓ 4 callers
Function
big_decimal_to_big_uint
(big_decimal: &BigDecimal)
crates/number/src/conversions.rs:11
↓ 4 callers
Function
block_number_to_block_number_hash
( provider: &AlloyProvider, block_number: BlockNumberOrTag, )
crates/ethrpc/src/block_stream.rs:311
↓ 4 callers
Method
build
(self, onchain_components: &OnchainComponents)
crates/e2e/src/setup/services.rs:90
↓ 4 callers
Method
builder
Returns a `ClientBuilder` with the default settings.
crates/http-client/src/lib.rs:37
↓ 4 callers
Method
buy_amount
The effective amount the user received after all fees. Settlement contract uses `ceil` division for buy amount calculation.
crates/driver/src/domain/competition/solution/trade.rs:82
← previous
next →
401–500 of 8,522, ranked by callers