Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cakevm/kabu
/ functions
Functions
1,664 in github.com/cakevm/kabu
⨍
Functions
1,664
◇
Types & classes
333
↓ 609 callers
Method
clone
(&self)
crates/types/market/src/pool.rs:211
↓ 347 callers
Method
unwrap
(&self)
crates/types/swap/src/swap_line.rs:29
↓ 204 callers
Method
clone
(&self)
crates/defi/pools/src/curvepool.rs:47
↓ 124 callers
Method
insert
(&mut self, opcode: MulticallerCall)
crates/types/blockchain/src/opcodes.rs:156
↓ 110 callers
Method
unwrap_or_default
(&self)
crates/types/swap/src/swap_line.rs:36
↓ 100 callers
Method
len
(&self)
crates/types/swap/src/swap_step.rs:43
↓ 97 callers
Method
get
(&self, idx: usize)
crates/types/blockchain/src/opcodes.rs:166
↓ 71 callers
Method
call
(&mut self, req: RequestPacket)
crates/node/debug-provider/src/httpcached.rs:336
↓ 69 callers
Method
get_address
(&self)
crates/types/market/src/token.rs:108
↓ 48 callers
Method
as_ref
(&self)
crates/types/market/src/pool.rs:225
↓ 48 callers
Method
pools
Get all used pools in the swap line
crates/types/swap/src/swap_line.rs:161
↓ 45 callers
Method
add
(&mut self, swap_path: SwapLine)
crates/types/swap/src/swap_step.rs:69
↓ 44 callers
Method
read
(&self, method: String, index: B256)
crates/node/debug-provider/src/cachefolder.rs:28
↓ 43 callers
Method
add_call
(&mut self, to: A, call_data: T)
crates/types/market/src/required_state.rs:29
↓ 38 callers
Method
spawn
(self, executor: TaskExecutor)
crates/core/components/src/kabu_node.rs:20
↓ 38 callers
Method
to
(&self)
crates/types/market/src/swap_direction.rs:23
↓ 37 callers
Method
write
(&self, method: String, index: B256, data: String)
crates/node/debug-provider/src/cachefolder.rs:21
↓ 35 callers
Method
tokens
Get all involved tokens in the swap line
crates/types/swap/src/swap_line.rs:156
↓ 26 callers
Method
get_token_or_default
(&self, address: &Address)
crates/types/market/src/market.rs:84
↓ 24 callers
Method
is_none
(&self)
crates/types/events/src/tx_compose.rs:17
↓ 23 callers
Method
add_token
Add a [`Token`] reference to the market.
crates/types/market/src/market.rs:65
↓ 23 callers
Method
extend
(&mut self, path_vec: Vec<SwapPath>)
crates/types/market/src/swap_path_builder.rs:18
↓ 23 callers
Method
unwrap
(&self)
crates/types/events/src/tx_compose.rs:21
↓ 22 callers
Method
add_pool
Add a new pool to the market if it does not exist or the class is unknown.
crates/types/market/src/market.rs:105
↓ 22 callers
Method
get_coin_idx
(&self, address: Address)
crates/defi/pools/src/curvepool.rs:92
↓ 22 callers
Method
get_pool
(&self, address: &PoolId)
crates/types/market/src/market.rs:163
↓ 22 callers
Method
set_call_stack
(&mut self, is_relative: bool, stack_offset: u32, data_offset: u32, data_len: usize)
crates/types/blockchain/src/opcodes.rs:80
↓ 21 callers
Function
evm_call
Execute a call without any block validations
crates/evm/utils/src/evm.rs:49
↓ 21 callers
Method
insert_account_storage
insert account storage without overriding account info
crates/evm/db/src/kabu_db.rs:210
↓ 21 callers
Function
next_initialized_tick_within_one_word
Returns the next initialized tick contained in the same word (or adjacent word) as the tick that is either to the left (less than or equal to) or righ
crates/defi/uniswap-v3-math/src/tick_bitmap.rs:31
↓ 20 callers
Method
is_empty
(&self)
crates/types/swap/src/swap_step.rs:47
↓ 19 callers
Method
address
()
crates/evm/utils/src/nweth.rs:64
↓ 19 callers
Method
apply_geth_update
(&mut self, update: BTreeMap<Address, GethAccountState>)
crates/evm/db/src/kabu_db.rs:312
↓ 19 callers
Method
build
Build the final component set
crates/core/node/src/node.rs:261
↓ 19 callers
Method
get_out_amount
(&self)
crates/types/swap/src/swap_step.rs:369
↓ 19 callers
Function
mul_div
returns (uint256 result)
crates/defi/uniswap-v3-math/src/full_math.rs:13
↓ 19 callers
Method
swap_line_vec
(&self)
crates/types/swap/src/swap_step.rs:39
↓ 18 callers
Method
block_id
(&self)
crates/node/debug-provider/src/archiveprovider.rs:40
↓ 18 callers
Function
init_test_ticks
()
crates/defi/uniswap-v3-math/src/tick_bitmap.rs:177
↓ 18 callers
Function
initialized
(tick: i32, tick_provider: &T)
crates/defi/uniswap-v3-math/src/tick_bitmap.rs:186
↓ 17 callers
Function
flip_tick
Flips the initialized state for a given tick from false to true, or vice versa
crates/defi/uniswap-v3-math/src/tick_bitmap.rs:17
↓ 17 callers
Function
get_next_sqrt_price_from_output
returns (sqrtQX96)
crates/defi/uniswap-v3-math/src/sqrt_price_math.rs:34
↓ 16 callers
Method
get_block_by_number
(&self, number: BlockNumberOrTag)
crates/node/debug-provider/src/archiveprovider.rs:91
↓ 16 callers
Method
get_in_amount
(&self)
crates/types/swap/src/swap_step.rs:358
↓ 16 callers
Method
get_pool_id
(&self)
crates/types/market/src/mock_pool.rs:41
↓ 16 callers
Method
mut_ref
(&mut self)
crates/defi/uniswap-v3-math/src/tick_bitmap.rs:163
↓ 15 callers
Method
add_block_header
(&mut self, block_header: N::BlockHeader)
crates/types/entities/src/block_history/block_history_impl.rs:131
↓ 15 callers
Function
get_next_sqrt_price_from_input
returns (sqrtQX96)
crates/defi/uniswap-v3-math/src/sqrt_price_math.rs:14
↓ 15 callers
Method
get_token_token_pools
(&self, token_from_address: &Address, token_to_address: &Address)
crates/types/market/src/market.rs:225
↓ 14 callers
Method
contains_pool
(&self, pool: &PoolWrapper)
crates/types/market/src/swap_path.rs:115
↓ 14 callers
Method
get_class
(&self)
crates/defi/pools/src/curvepool.rs:220
↓ 14 callers
Method
is_pool_disabled
(&self, address: &PoolId)
crates/types/market/src/market.rs:219
↓ 14 callers
Method
len
(&self)
crates/types/market/src/swap_path.rs:157
↓ 14 callers
Method
merge
(&self)
crates/evm/db/src/in_memory_db.rs:17
↓ 13 callers
Function
_get_amount_0_delta
returns (uint256 amount0)
crates/defi/uniswap-v3-math/src/sqrt_price_math.rs:123
↓ 13 callers
Method
insert_account_storage
insert account storage without overriding account info
crates/evm/db/src/fast_cache_db.rs:98
↓ 13 callers
Function
match_abi
(code: &Bytes, selectors: Vec<[u8; 4]>)
crates/defi/pools/src/protocols/helper.rs:67
↓ 12 callers
Method
get_block_number
(self)
crates/node/debug-provider/src/httpcached.rs:142
↓ 12 callers
Method
get_dy
(&self, i: u32, j: u32, amount: U256)
crates/defi/pools/src/protocols/curve.rs:248
↓ 12 callers
Method
insert_account_info
Insert account info but not override storage
crates/evm/db/src/kabu_db.rs:204
↓ 12 callers
Method
pools
(&self)
crates/types/market/src/market.rs:175
↓ 11 callers
Function
compute_swap_step
//returns ( uint160 sqrtRatioNextX96, uint256 amountIn, uint256 amountOut, uint256 feeAmount )
crates/defi/uniswap-v3-math/src/swap_math.rs:15
↓ 11 callers
Method
finish
(&self)
crates/evm/db/src/fast_hasher.rs:76
↓ 11 callers
Method
market
Replace the market component
crates/core/node/src/node.rs:149
↓ 11 callers
Method
number
(&self)
crates/types/entities/src/block_history/block_history_impl.rs:50
↓ 11 callers
Method
spawn
(self, _executor: reth_tasks::TaskExecutor)
crates/core/node/src/traits.rs:19
↓ 11 callers
Method
with_ext_db
(self, ext_db: ExtDB)
crates/evm/db/src/kabu_db.rs:112
↓ 10 callers
Function
_get_amount_1_delta
returns (uint256 amount1)
crates/defi/uniswap-v3-math/src/sqrt_price_math.rs:149
↓ 10 callers
Method
arb_profit_eth
(&self)
crates/types/swap/src/swap.rs:61
↓ 10 callers
Function
broadcast_latest_block
( provider: &P, mock_canonical: &MockCanonicalProvider<P>, _bc: &Blockchain<EthPrimiti
crates/core/block-history/src/block_history_actor_test.rs:92
↓ 10 callers
Function
create_next_header
(parent: &Header, child_id: u64)
crates/types/entities/src/block_history/block_history_impl.rs:529
↓ 10 callers
Method
get
(&mut self, key: K, fx: F)
crates/types/entities/src/datafetcher.rs:78
↓ 10 callers
Method
set_return_stack
(&mut self, is_relative: bool, stack_offset: u32, data_offset: u32, data_len: usize)
crates/types/blockchain/src/opcodes.rs:104
↓ 9 callers
Method
block_on
(&self, f: F)
crates/evm/db/src/alloydb.rs:21
↓ 9 callers
Method
calculate_with_in_amount
( &mut self, db: &DB, evm_env: &EvmEnv, in_ammount: Option<U256>, )
crates/types/swap/src/swap_step.rs:380
↓ 9 callers
Method
encode
(&self)
crates/execution/multicaller/src/pool_opcodes_encoder/swap_opcodes_encoders.rs:36
↓ 9 callers
Function
get_protocol_by_factory
(factory_address: Address)
crates/types/market/src/pool.rs:20
↓ 9 callers
Method
get_swap_directions
(&self)
crates/defi/pools/src/curvepool.rs:244
↓ 9 callers
Method
get_tokens
(&self)
crates/defi/pools/src/curvepool.rs:240
↓ 9 callers
Method
hash
(&self, state: &mut H)
crates/evm/db/src/fast_hasher.rs:19
↓ 9 callers
Method
insert_account_info
Insert account info but not override storage
crates/evm/db/src/fast_cache_db.rs:75
↓ 9 callers
Method
is_weth
(&self)
crates/types/market/src/token.rs:113
↓ 9 callers
Method
market_events_channel
(&self)
crates/core/blockchain/src/blockchain.rs:96
↓ 8 callers
Method
address
(&self)
crates/execution/multicaller/src/deploy.rs:135
↓ 8 callers
Method
basic_ref
(&self, address: Address)
crates/evm/db/src/kabu_db.rs:507
↓ 8 callers
Method
calculate_out_amount
( &self, db: &dyn DatabaseRef<Error = KabuDBError>, evm_env: &EvmEnv, token_ad
crates/defi/pools/src/curvepool.rs:270
↓ 8 callers
Method
clear
(&mut self)
crates/defi/uniswap-v3-math/src/tick_bitmap.rs:166
↓ 8 callers
Function
default_swap_line
()
crates/types/swap/src/swap_line.rs:542
↓ 8 callers
Method
get_address
(&self)
crates/defi/pools/src/curvepool.rs:228
↓ 8 callers
Method
get_first_token
(&self)
crates/types/swap/src/swap_step.rs:336
↓ 8 callers
Method
get_last_token
Get the last token in the swap line
crates/types/swap/src/swap_line.rs:171
↓ 8 callers
Method
get_protocol
(&self)
crates/defi/pools/src/curvepool.rs:224
↓ 8 callers
Method
get_state_required
(&self)
crates/defi/pools/src/curvepool.rs:402
↓ 8 callers
Method
get_storage_at
(&self, address: Address, key: U256)
crates/node/debug-provider/src/archiveprovider.rs:85
↓ 8 callers
Method
get_token_tokens
(&self, token_from_address: &Address)
crates/types/market/src/market.rs:231
↓ 8 callers
Method
hash
(&self)
crates/types/entities/src/block_history/block_history_impl.rs:42
↓ 8 callers
Method
preswap_requirement
(&self)
crates/defi/pools/src/curvepool.rs:483
↓ 8 callers
Method
with_ro_db
(self, db: Option<KabuDB>)
crates/evm/db/src/kabu_db.rs:128
↓ 7 callers
Method
add_testkey
(&mut self)
crates/types/entities/src/signers.rs:95
↓ 7 callers
Method
anvil
(&self)
crates/node/debug-provider/src/debugprovider.rs:105
next →
1–100 of 1,664, ranked by callers