MCPcopy Create free account

hub / github.com/DexCrancer/solana-copytrading-bot / functions

Functions39 in github.com/DexCrancer/solana-copytrading-bot

↓ 7 callersFunctionimport_env_var
(key: &str)
src/common/utils.rs:54
↓ 2 callersFunctionnew_signed_and_send
( client: &RpcClient, keypair: &Keypair, mut instructions: Vec<Instruction>, jito_client: Arc<
src/core/tx.rs:48
↓ 2 callersFunctionswap_to_events_on_pump
( mint: String, amount_in: u64, dirs: String, timestamp: Instant, jito_client: Arc<JitoRpc
src/main.rs:186
↓ 2 callersFunctionswap_to_events_on_raydium
( mint: String, amount_in: u64, dirs: String, pool_id: String, timestamp: Instant, jit
src/main.rs:210
↓ 1 callersFunctioncreate_arc_rpc_client
()
src/common/utils.rs:66
↓ 1 callersFunctioncreate_nonblocking_rpc_client
( )
src/common/utils.rs:75
↓ 1 callersFunctionimport_arc_wallet
()
src/common/utils.rs:96
↓ 1 callersFunctionjito_confirm
( keypair: &Keypair, version_tx: VersionedTransaction, recent_block_hash: &Hash, )
src/core/tx.rs:40
↓ 1 callersFunctionlog_message
(message: &str)
src/common/utils.rs:26
↓ 1 callersFunctionpump_swap
( state: AppState, amount_in: u64, swap_direction: &str, slippage: u64, mint: &str, ji
src/engine/swap.rs:40
↓ 1 callersFunctionraydium_swap
( state: AppState, amount_in: u64, swap_direction: &str, pool_id: String, slippage: u64,
src/engine/swap.rs:82
↓ 1 callersMethodswap
( &self, mint: &str, amount_in: u64, swap_direction: SwapDirection, sl
src/dex/pump.rs:58
↓ 1 callersMethodswap_by_mint
( &self, mint_str: &str, swap_direction: SwapDirection, amount_in: u64,
src/dex/raydium.rs:101
↓ 1 callersFunctiontx_pump
( json: Value, target: String, timestamp: Instant, state: AppState, jito_client: Arc<JitoR
src/main.rs:147
↓ 1 callersFunctiontx_ray
( json: Value, target: String, timestamp: Instant, state: AppState, jito_client: Arc<JitoR
src/main.rs:111
Functionamm_swap
( amm_program: &Pubkey, result: AmmSwapInfoResult, user_owner: &Pubkey, user_source: &Pubkey,
src/dex/raydium.rs:123
Functioncreate_rpc_client
()
src/common/utils.rs:58
Methodfrom
(value: SwapDirection)
src/engine/swap.rs:22
Functionget_account_info
( client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, address: &Pubkey, account: &Pubk
src/core/token.rs:31
Functionget_associated_token_address
( client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, keypair: Arc<Keypair>, address:
src/core/token.rs:12
Functionget_bonding_curve_account
( rpc_client: Arc<solana_client::rpc_client::RpcClient>, mint: &Pubkey, program_id: &Pubkey, )
src/dex/pump.rs:124
Functionget_mint_info
( client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, _keypair: Arc<Keypair>, address:
src/core/token.rs:58
Functionget_pda
(mint: &Pubkey, program_id: &Pubkey)
src/dex/pump.rs:136
Methodget_pool
(&self)
src/dex/raydium.rs:54
Functionget_pool_info
get pool info https://api-v3.raydium.io/pools/info/mint?mint1=So11111111111111111111111111111111111111112&mint2=EzM2d8JVpzfhV7km3tUsR1U1S4xwkrPnWkM4QF
src/dex/raydium.rs:212
Functionget_pool_state
( rpc_client: Arc<solana_client::rpc_client::RpcClient>, pool_id: Option<&str>, mint: Option<&str>
src/dex/raydium.rs:136
Functionget_pool_state_by_mint
( rpc_client: Arc<solana_client::rpc_client::RpcClient>, mint: &str, )
src/dex/raydium.rs:148
Functionget_pump_info
( rpc_client: Arc<solana_client::rpc_client::RpcClient>, mint: &str, )
src/dex/pump.rs:142
Functionget_unit_limit
()
src/core/tx.rs:34
Functionget_unit_price
prioritization fee = UNIT_PRICE * UNIT_LIMIT
src/core/tx.rs:27
Functionimport_wallet
()
src/common/utils.rs:85
Functionmain
()
src/main.rs:36
Functionmax_amount_with_slippage
(input_amount: u64, slippage_bps: u64)
src/dex/pump.rs:87
Functionmin_amount_with_slippage
(input_amount: u64, slippage_bps: u64)
src/dex/pump.rs:80
Methodnew
( rpc_nonblocking_client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, rpc_client:
src/dex/pump.rs:46
Methodnew
( rpc_nonblocking_client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, rpc_client:
src/dex/raydium.rs:88
Functionnew_progress_bar
()
src/services/jito.rs:44
Functionread_log
()
src/common/utils.rs:45
Functionswap_on_jup
(mint: String, dir: String, amount: u64)
src/main.rs:182