Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowprotocol/services
/ functions
Functions
10,776 in github.com/cowprotocol/services
⨍
Functions
10,776
◇
Types & classes
3,479
Function
surplus_protocol_fee_jit_order_not_capped
()
crates/driver/src/tests/cases/jit_orders.rs:168
Function
surplus_protocol_fee_partial_buy_order_capped
()
crates/driver/src/tests/cases/protocol_fees.rs:546
Function
surplus_protocol_fee_partial_buy_order_not_capped
()
crates/driver/src/tests/cases/protocol_fees.rs:417
Function
surplus_protocol_fee_partial_sell_order_capped
()
crates/driver/src/tests/cases/protocol_fees.rs:577
Function
surplus_protocol_fee_partial_sell_order_not_capped
()
crates/driver/src/tests/cases/protocol_fees.rs:450
Function
surplus_protocol_fee_sell_order_capped
()
crates/driver/src/tests/cases/protocol_fees.rs:515
Function
surplus_protocol_fee_sell_order_not_capped
()
crates/driver/src/tests/cases/protocol_fees.rs:386
Function
surplus_survives_hugely_scaled_clearing_prices
()
crates/autopilot/src/domain/settlement/trade/math.rs:309
Method
sushi_swap
Returns the liquidity configuration for SushiSwap.
crates/driver/src/infra/liquidity/config.rs:89
Function
swallows_inner_failure
()
crates/driver/src/infra/solver/streaming/best_effort_sink.rs:51
Method
swap
( &self, input_max: TokenAmount, output: TokenAmount, )
crates/solver/src/liquidity/balancer_v2.rs:132
Method
swap
Encodes a pool swap as an interaction. Returns `Err` if the swap parameters are invalid for the pool, specifically if the input and output tokens don'
crates/driver/src/domain/liquidity/uniswap/v2.rs:30
Method
swap
Encodes a pool swap as an interaction. Returns `None` if the swap parameters are invalid for the pool, specifically if the input and output tokens don
crates/driver/src/domain/liquidity/uniswap/v3.rs:62
Method
swap
Encodes a pool swap as an interaction. Returns `Err` if the swap parameters are invalid for the pool, specifically if the input and output tokens do n
crates/driver/src/domain/liquidity/balancer/v2/weighted.rs:36
Method
swap
Encodes a pool swap as an interaction. Returns `Err` if the swap parameters are invalid for the pool, specifically if the input and output tokens do n
crates/driver/src/domain/liquidity/balancer/v2/stable.rs:31
Method
swap
( &self, order: &dex::Order, slippage: &dex::Slippage, tokens: &auction::Token
crates/solvers/src/infra/dex/bitget/mod.rs:141
Method
swap
( &self, order: &dex::Order, slippage: &dex::Slippage, )
crates/solvers/src/infra/dex/okx/mod.rs:169
Method
swap
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4752
Method
swap
(data: &[u8])
contracts/generated/contracts-generated/gpv2settlement/src/lib.rs:4321
Method
swap
(data: &[u8])
contracts/generated/contracts-generated/solver/src/lib.rs:620
Method
swap
(data: &[u8])
contracts/generated/contracts-generated/uniswapv3pool/src/lib.rs:5047
Method
swap
(data: &[u8])
contracts/generated/contracts-generated/balancerv2vault/src/lib.rs:6178
Method
swap
(data: &[u8])
contracts/generated/contracts-generated/swapper/src/lib.rs:1271
Method
swap
(data: &[u8])
contracts/generated/contracts-generated/iuniswaplikepair/src/lib.rs:4594
Method
swapExactIn
( data: &[u8], )
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:3619
Method
swapExactOut
( data: &[u8], )
contracts/generated/contracts-generated/balancerv3batchrouter/src/lib.rs:3644
Method
swapTokensForExactTokens
( data: &[u8], )
contracts/generated/contracts-generated/uniswapv2router02/src/lib.rs:1298
Method
swapTokensForExactTokens
( data: &[u8], )
contracts/generated/contracts-generated/pancakerouter/src/lib.rs:1182
Method
swapTokensForExactTokens
( data: &[u8], )
contracts/generated/contracts-generated/testnetuniswapv2router02/src/lib.rs:1185
Method
swapTokensForExactTokens
( data: &[u8], )
contracts/generated/contracts-generated/iuniswaplikerouter/src/lib.rs:1185
Method
swapTokensForExactTokens
( data: &[u8], )
contracts/generated/contracts-generated/baoswaprouter/src/lib.rs:1182
Method
swapTokensForExactTokens
( data: &[u8], )
contracts/generated/contracts-generated/honeyswaprouter/src/lib.rs:1182
Method
swapTokensForExactTokens
( data: &[u8], )
contracts/generated/contracts-generated/swaprrouter/src/lib.rs:1182
Method
swapTokensForExactTokens
( data: &[u8], )
contracts/generated/contracts-generated/sushiswaprouter/src/lib.rs:1182
Function
swap_api_error
To run this test, set the following environment variables accordingly to your OKX setup: OKX_PROJECT_ID, OKX_API_KEY, OKX_SECRET_KEY, OKX_PASSPHRASE
crates/solvers/src/tests/okx/api_calls.rs:145
Function
swap_buy_all_chains
()
crates/solvers/src/tests/bitget/api_calls.rs:163
Function
swap_buy_disabled
()
crates/solvers/src/tests/bitget/api_calls.rs:249
Function
swap_buy_disabled
()
crates/solvers/src/tests/okx/api_calls.rs:58
Function
swap_buy_enabled
To run this test, set the following environment variables accordingly to your OKX setup: OKX_PROJECT_ID, OKX_API_KEY, OKX_SECRET_KEY, OKX_PASSPHRASE
crates/solvers/src/tests/okx/api_calls.rs:98
Function
swap_buy_insufficient_liquidity
To run this test, set the following environment variables accordingly to your OKX setup: OKX_PROJECT_ID, OKX_API_KEY, OKX_SECRET_KEY, OKX_PASSPHRASE
crates/solvers/src/tests/okx/api_calls.rs:227
Function
swap_creates_full_state
()
crates/pool-indexer/src/indexer/uniswap_v3.rs:1283
Function
swap_of
(in_amount: u64)
crates/solana-solvers/src/dex/mod.rs:199
Function
swap_sell_all_chains
()
crates/solvers/src/tests/bitget/api_calls.rs:79
Function
swap_sell_insufficient_liquidity
To run this test, set the following environment variables accordingly to your OKX setup: OKX_PROJECT_ID, OKX_API_KEY, OKX_SECRET_KEY, OKX_PASSPHRASE
crates/solvers/src/tests/okx/api_calls.rs:186
Function
swap_sell_regular
To run this test, set the following environment variables accordingly to your OKX setup: OKX_PROJECT_ID, OKX_API_KEY, OKX_SECRET_KEY, OKX_PASSPHRASE
crates/solvers/src/tests/okx/api_calls.rs:16
Method
swapr
(chain: Chain)
crates/driver/src/infra/liquidity/config.rs:166
Function
switches_to_fallback_on_protocol_internal
()
crates/price-estimation/src/native/fallback.rs:251
Method
symbol
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4850
Method
symbol
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2liquiditybootstrappingpool/src/lib.rs:4278
Method
symbol
(data: &[u8])
contracts/generated/contracts-generated/balancerv2weightedpool/src/lib.rs:3621
Method
symbol
(data: &[u8])
contracts/generated/contracts-generated/balancerv2basepool/src/lib.rs:3242
Method
symbol
(data: &[u8])
contracts/generated/contracts-generated/erc20/src/lib.rs:1948
Method
symbol
(data: &[u8])
contracts/generated/contracts-generated/weth9/src/lib.rs:2411
Method
symbol
( data: &[u8], )
contracts/generated/contracts-generated/balancerv2composablestablepool/src/lib.rs:5615
Method
symbol
(data: &[u8])
contracts/generated/contracts-generated/balancerv2stablepool/src/lib.rs:3948
Method
symbol
(data: &[u8])
contracts/generated/contracts-generated/iuniswaplikepair/src/lib.rs:4687
Method
symbol
(data: &[u8])
contracts/generated/contracts-generated/cowprotocoltoken/src/lib.rs:3188
Method
sync
(data: &[u8])
contracts/generated/contracts-generated/iswaprpair/src/lib.rs:4892
Method
sync
(data: &[u8])
contracts/generated/contracts-generated/iuniswaplikepair/src/lib.rs:4729
Method
sync_to_tip
The order data is push-fed by the indexer, there is no cache to refresh.
crates/autopilot-svm/src/infra/provider.rs:253
Method
take_errors
(&self)
crates/leader-lock/src/test_util.rs:18
Method
target
(data: &[u8])
contracts/generated/contracts-generated/remoteerc20balances/src/lib.rs:1494
Function
task_terminates_gracefully
()
crates/event-indexing/src/maintenance.rs:277
Method
tenderly
(&self)
crates/simulator/src/simulation_builder.rs:121
Function
terminal_grpc_status_returns_stream_error
()
crates/solana-indexer/src/indexer/ingester/tests.rs:235
Function
test
()
crates/driver/src/tests/cases/buy_eth.rs:9
Function
test
()
crates/driver/src/tests/cases/example_config.rs:7
Function
test
()
crates/solvers/src/tests/cases/partial_fill.rs:7
Function
test
()
crates/solvers/src/tests/cases/direct_swap.rs:7
Function
test
(web3: Web3)
crates/e2e/tests/e2e/partial_fill.rs:20
Function
test
(web3: Web3)
crates/e2e/tests/e2e/eth_safe.rs:19
Function
test
(web3: Web3)
crates/e2e/tests/e2e/tracking_insufficient_funds.rs:19
Function
test
Tests that a user can create an order without holding any sell-token balance as long as they have already set a sufficient on-chain approval to the va
crates/e2e/tests/e2e/uncovered_order.rs:29
Function
test
(web3: Web3)
crates/e2e/tests/e2e/partially_fillable_balance.rs:19
Function
test
(web3: Web3)
crates/e2e/tests/e2e/partially_fillable_pool.rs:18
Method
test
(name: &str, address: Address)
crates/configs/src/autopilot/solver.rs:83
Method
test
(name: &str, solver_address: alloy_primitives::Address)
crates/configs/src/autopilot/mod.rs:273
Method
test
Create a 0x HTTP API client for testing using the default HTTP client. This method will attempt to read the `ZEROEX_URL` (falling back to the default
crates/liquidity-sources/src/zeroex.rs:308
Method
test
Create a testing rate limiter.
crates/rate-limit/src/lib.rs:130
Function
test_adjust_quote_to_in_market_buy_order_limits
()
crates/driver/src/domain/competition/solution/fee.rs:342
Function
test_adjust_quote_to_in_market_sell_order_limits
()
crates/driver/src/domain/competition/solution/fee.rs:316
Function
test_adjust_quote_to_out_market_buy_order_limits
()
crates/driver/src/domain/competition/solution/fee.rs:290
Function
test_adjust_quote_to_out_market_sell_order_limits
()
crates/driver/src/domain/competition/solution/fee.rs:265
Function
test_all_orders_already_refunded
()
crates/refunder/src/refund_service.rs:451
Function
test_approve
()
crates/driver/src/domain/competition/solution/encoding.rs:481
Function
test_array_override
()
crates/e2e/src/setup/colocation/utils/toml.rs:116
Function
test_batch_request_entry_add_element_pop_thrice
()
crates/ethrpc/src/alloy/buffering.rs:584
Function
test_batch_request_entry_pop_twice
()
crates/ethrpc/src/alloy/buffering.rs:572
Function
test_blocks_in
()
crates/chain/src/lib.rs:212
Function
test_bucket_listing_eth_marker_matches_wrapped_native_token
()
crates/shared/src/fee.rs:466
Function
test_calculate_submission_gas_price
()
crates/refunder/src/submitter.rs:164
Function
test_cancel_on_expiry
(web3: Web3)
crates/e2e/tests/e2e/submission.rs:66
Function
test_checked_ceil_div
()
crates/number/src/u256_ext.rs:151
Function
test_checked_mul_f64
()
crates/number/src/u256_ext.rs:202
Function
test_contract_address_extraction_from_uid
(#[case] contract: Address)
crates/refunder/src/refund_service.rs:937
Function
test_contract_error
()
crates/ethrpc/src/alloy/errors.rs:135
Function
test_convert_onchain_limit_order_placement
()
crates/autopilot/src/database/onchain_order_events/mod.rs:1134
Function
test_convert_onchain_order_placement_with_non_zero_fee
()
crates/autopilot/src/database/onchain_order_events/mod.rs:1020
Function
test_convert_to_quote_id_and_user_valid_to
()
crates/autopilot/src/database/onchain_order_events/ethflow_events.rs:302
Function
test_create2_mainnet
()
crates/liquidity-sources/src/uniswap_v2/pair_provider.rs:44
← previous
next →
9,701–9,800 of 10,776, ranked by callers