MCPcopy Create free account

hub / github.com/blueshift-gg/beethoven / functions

Functions295 in github.com/blueshift-gg/beethoven

↓ 142 callersFunctionload_and_set_json_fixture
Load JSON fixture and set it in the SVM
tests/helper.rs:508
↓ 98 callersFunctionget_associated_token_address
Helper to get the associated token account address.
crates/client/src/lib.rs:17
↓ 88 callersFunctionread_pubkey
Read a 32-byte pubkey from a byte slice at a given offset.
crates/client/src/lib.rs:152
↓ 40 callersFunctionload_program
Load and deploy a program from .so file
tests/helper.rs:515
↓ 36 callersFunctionget_token_balance
(svm: &LiteSVM, token_account: &Address)
tests/helper.rs:524
↓ 31 callersFunctionresolve_swap
( rpc: &RpcClient, protocol: &SwapProtocol, mint_a: &Address, mint_b: &Address, user: &Add
crates/client/src/swap/mod.rs:158
↓ 29 callersFunctioncreate_token_account
Create and set a token account in the SVM
tests/helper.rs:114
↓ 23 callersFunctionsetup_svm
()
tests/helper.rs:64
↓ 21 callersFunctionresolve
( rpc: &RpcClient, market: Option<&Address>, is_quote_to_base: bool, mint_a: &Address, min
crates/client/src/swap/solfi.rs:60
↓ 18 callersFunctionbeethoven_program_path
()
tests/helper.rs:602
↓ 17 callersFunctionget_token_program_for_mint
( rpc: &solana_rpc_client::nonblocking::rpc_client::RpcClient, mint: &Address, )
crates/client/src/lib.rs:60
↓ 17 callersFunctionsend_transaction
( svm: &mut LiteSVM, payer: &Keypair, instruction: Instruction, )
tests/helper.rs:383
↓ 15 callersFunctionbuild_swap_instruction
( accounts: Vec<AccountMeta>, in_amount: u64, min_out_amount: u64, protocol_tag: SwapProtocolT
tests/helper.rs:291
↓ 15 callersFunctionvalidate_tagged_program_account
( program_account: &AccountView, expected_program_id: &Address, )
src/context.rs:80
↓ 12 callersFunctiondiscover_pool_with_flip
( rpc: &solana_rpc_client::nonblocking::rpc_client::RpcClient, program_id: &Address, offset_a: usi
crates/client/src/lib.rs:134
↓ 11 callersFunctionsplit_data_checked
(data: &[u8], count: usize)
src/context.rs:100
↓ 9 callersFunctioncreate_token_account_at
Create and set a token account at a specific address
tests/helper.rs:140
↓ 5 callersFunctiontry_from_tagged_swap_context
( tag: SwapProtocolTag, accounts: &'info [AccountView], remaining_accounts_len: usize, )
src/context.rs:626
↓ 4 callersFunctionbuild_accounts
( total_accounts: usize, first_account: Address, )
tests/swap/tagged.rs:28
↓ 4 callersFunctionprocess
(accounts: &[AccountView], data: &[u8])
program-test/src/swap.rs:130
↓ 4 callersFunctionvirtual_stable_pair_x_mint_offset
(pair_index: u8)
crates/client/src/swap/perena.rs:34
↓ 3 callersFunctionappend_swap_leg_header
( data: &mut Vec<u8>, protocol_tag: SwapProtocolTag, accounts_len: usize, extra_data_len: usiz
tests/helper.rs:248
↓ 3 callersFunctionbuild_instruction_data
( side: ScaleVmmSide, in_amount: u64, minimum_out_amount: u64, )
crates/swap/scale-vmm/src/lib.rs:128
↓ 3 callersFunctionbuild_instruction_data
( side: ScaleAmmSide, in_amount: u64, minimum_out_amount: u64, )
crates/swap/scale-amm/src/lib.rs:120
↓ 3 callersFunctiondiscover_pool
( rpc: &solana_rpc_client::nonblocking::rpc_client::RpcClient, program_id: &Address, filters: &[(u
crates/client/src/lib.rs:83
↓ 3 callersFunctionget_rpc_url
()
tests/helper.rs:533
↓ 3 callersFunctionparse_tagged_swap_context_and_data
( accounts: &'a [AccountView], data: &'a [u8], )
program-test/src/swap.rs:73
↓ 2 callersFunctionamm_vault_pda
(pool: &Address, mint: &Address)
crates/client/src/swap/scale_vmm.rs:127
↓ 2 callersFunctionbuild_route_instruction
( initial_in_amount: u64, minimum_final_out_amount: u64, legs: Vec<RouteLeg>, )
tests/helper.rs:349
↓ 2 callersFunctioncreate_account_for_mint
Create an Account for a Mint
tests/helper.rs:79
↓ 2 callersFunctioncreate_account_for_token_account
Create an Account for a Token Account
tests/helper.rs:93
↓ 2 callersMethodfixed_account_count
(self)
src/context.rs:51
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/raydium_cpmm.rs:19
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/hadron.rs:33
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/gamma_discover.rs:22
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/solfi.rs:16
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/heaven.rs:22
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/futarchy.rs:17
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/aldrin.rs:22
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/manifest.rs:17
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/omnipair.rs:24
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/scale_vmm.rs:22
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/perena.rs:21
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/scale_amm.rs:20
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/aldrin_v2.rs:22
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/raydium_clmm.rs:18
↓ 2 callersFunctionget_rpc_url
()
crates/client/tests/swap/solfi_v2.rs:18
↓ 2 callersFunctionload_accounts_from_rpc
( svm: &mut litesvm::LiteSVM, rpc: &RpcClient, accounts: &[AccountMeta], excluded_accounts: &[
tests/swap/route.rs:41
↓ 2 callersFunctionload_fixture_bytes
(path: &str)
tests/helper.rs:457
↓ 2 callersFunctionpool_vault_pda
(pool: &Address, mint: &Address)
crates/client/src/swap/scale_amm.rs:100
↓ 2 callersFunctionread_token_account_amount
(account: &AccountView)
program-test/src/route.rs:41
↓ 2 callersFunctionread_u8
(data: &[u8], offset: usize)
crates/client/src/lib.rs:165
↓ 2 callersFunctionsend_transaction_with_instructions
( svm: &mut LiteSVM, payer: &Keypair, instructions: &[Instruction], )
tests/helper.rs:391
↓ 2 callersFunctionsplit_data_checked
(data: &[u8], count: usize)
program-test/src/swap.rs:49
↓ 2 callersFunctionvirtual_stable_pair_x_is_2022_offset
(pair_index: u8)
crates/client/src/swap/perena.rs:48
↓ 2 callersFunctionvirtual_stable_pair_x_vault_offset
(pair_index: u8)
crates/client/src/swap/perena.rs:41
↓ 2 callersFunctionvmm_vault_pda
(pair: &Address, mint: &Address)
crates/client/src/swap/scale_vmm.rs:122
↓ 1 callersFunctionamm_config_pda
()
crates/client/src/swap/scale_vmm.rs:132
↓ 1 callersFunctionbuild_accounts
(input: &RaydiumCpmmSwapInput)
crates/client/src/swap/raydium_cpmm.rs:50
↓ 1 callersFunctionbuild_accounts
Build SolFi swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/solfi.rs:36
↓ 1 callersFunctionbuild_accounts
(input: &HeavenSwapInput)
crates/client/src/swap/heaven.rs:86
↓ 1 callersFunctionbuild_accounts
Build Gamma swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/gamma.rs:50
↓ 1 callersFunctionbuild_accounts
Build Hadron swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/hadron.rs:54
↓ 1 callersFunctionbuild_accounts
Build Aldrin swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/aldrin.rs:57
↓ 1 callersFunctionbuild_accounts
Build Manifest swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/manifest.rs:45
↓ 1 callersFunctionbuild_accounts
Build Omnipair swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/omnipair.rs:47
↓ 1 callersFunctionbuild_accounts
Build Scale VMM swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/scale_vmm.rs:77
↓ 1 callersFunctionbuild_accounts
Build Perena Numeraire swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/perena.rs:68
↓ 1 callersFunctionbuild_accounts
Build Scale AMM swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/scale_amm.rs:64
↓ 1 callersFunctionbuild_accounts
Build Aldrin v2 swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/aldrin_v2.rs:55
↓ 1 callersFunctionbuild_accounts
(input: &RaydiumClmmSwapInput)
crates/client/src/swap/raydium_clmm.rs:48
↓ 1 callersFunctionbuild_accounts
Build SolFi v2 swap AccountMeta list from pre-resolved addresses (no RPC needed).
crates/client/src/swap/solfi_v2.rs:46
↓ 1 callersFunctionbuild_extra_data
SolFi extra data: [is_quote_to_base]
crates/client/src/swap/solfi.rs:51
↓ 1 callersFunctionbuild_extra_data
Build Heaven extra data: [direction, ...encoded_user_defined_event_data].
crates/client/src/swap/heaven.rs:109
↓ 1 callersFunctionbuild_extra_data
Gamma swap has no extra data.
crates/client/src/swap/gamma.rs:70
↓ 1 callersFunctionbuild_extra_data
Build Hadron extra data: [is_x, expiration].
crates/client/src/swap/hadron.rs:86
↓ 1 callersFunctionbuild_extra_data
(swap_type: SwapType)
crates/client/src/swap/futarchy.rs:22
↓ 1 callersFunctionbuild_extra_data
Build Aldrin extra data: [side].
crates/client/src/swap/aldrin.rs:74
↓ 1 callersFunctionbuild_extra_data
Build Manifest extra data: [is_base_in, is_exact_in].
crates/client/src/swap/manifest.rs:66
↓ 1 callersFunctionbuild_extra_data
Scale VMM extra data: [side]
crates/client/src/swap/scale_vmm.rs:112
↓ 1 callersFunctionbuild_extra_data
Build Perena Numeraire extra data: [in_index, out_index].
crates/client/src/swap/perena.rs:86
↓ 1 callersFunctionbuild_extra_data
Scale AMM extra data: [side]
crates/client/src/swap/scale_amm.rs:95
↓ 1 callersFunctionbuild_extra_data
Build Aldrin v2 extra data: [side].
crates/client/src/swap/aldrin_v2.rs:73
↓ 1 callersFunctionbuild_extra_data
Build Raydium CLMM swap_v2 extra data: [sqrt_price_limit_x64, is_base_input].
crates/client/src/swap/raydium_clmm.rs:68
↓ 1 callersFunctionbuild_extra_data
SolFi v2 extra data: [is_quote_to_base]
crates/client/src/swap/solfi_v2.rs:66
↓ 1 callersFunctionbuild_multi_swap_instruction
(legs: Vec<SwapLeg>)
tests/helper.rs:319
↓ 1 callersFunctioncompute_amm_field_offsets
( pool_state_variant: u8, )
crates/client/src/swap/futarchy.rs:46
↓ 1 callersFunctionconfig_pda
()
crates/client/src/swap/scale_vmm.rs:117
↓ 1 callersFunctionconfig_pda
()
crates/client/src/swap/scale_amm.rs:105
↓ 1 callersFunctionload_gamma_route_programs
(svm: &mut litesvm::LiteSVM)
tests/swap/route.rs:32
↓ 1 callersFunctionload_json_fixture
Load a JSON fixture exported by `solana account --output json-compact` Returns (pubkey, Account)
tests/helper.rs:474
↓ 1 callersFunctionload_route_fixtures
(svm: &mut litesvm::LiteSVM)
tests/swap/route.rs:70
↓ 1 callersFunctionmake_account
(address: Address)
tests/swap/tagged.rs:8
↓ 1 callersFunctionparse_swap_leg_header
(data: &[u8])
program-test/src/swap.rs:54
↓ 1 callersMethodprocess
(&self)
program-test/src/swap.rs:120
↓ 1 callersMethodprocess
(&self)
program-test/src/deposit.rs:54
↓ 1 callersFunctionread_fee_beneficiary_wallets
(pair_data: &[u8])
crates/client/src/swap/scale_vmm.rs:137
↓ 1 callersFunctionread_fee_beneficiary_wallets
(pool_data: &[u8])
crates/client/src/swap/scale_amm.rs:110
↓ 1 callersFunctionsend_transaction_with_signers
( svm: &mut LiteSVM, payer: &Keypair, signers: &[&Keypair], instruction: Instruction, )
tests/helper.rs:420
↓ 1 callersFunctionset_compute_unit_limit_instruction
(units: u32)
tests/swap/route.rs:20
next →1–100 of 295, ranked by callers