MCPcopy Create free account

hub / github.com/chainstacklabs/pumpfun-bonkfun-bot / functions

Functions708 in github.com/chainstacklabs/pumpfun-bonkfun-bot

Functioncreate_legacy_token_info
Convert enhanced TokenInfo back to legacy TokenInfo if needed. This function allows the enhanced TokenInfo to be used with existing code that
src/trading/base.py:167
Functioncreate_lets_bonk_token_info
Convenience function to create LetsBonk TokenInfo with proper platform setting. Args: name: Token name symbol: Token symbol
src/trading/base.py:257
Functioncreate_pump_fun_token_info
Convenience function to create pump.fun TokenInfo with proper platform setting. Args: name: Token name symbol: Token symbol
src/trading/base.py:207
Methoddecode_event_data
Decode raw event data for a platform. Args: platform: Platform to use for decoding event_data: Raw event data bytes
src/utils/idl_manager.py:202
Functiondecode_event_from_logs
Convenience function to decode events from logs. Args: platform: Platform to use for decoding logs: List of log strings from tran
src/utils/idl_manager.py:347
Methoddecode_instruction
Decode instruction data using IDL definitions.
learning-examples/letsbonk-buy-sell/idl_parser.py:93
Methodderive_pool_address
Derive the bonding curve address for a token. For pump.fun, this is the bonding curve PDA derived from the mint. Args: b
src/platforms/pumpfun/address_provider.py:168
Methodderive_user_token_account
Derive user's token account address. Args: user: User's wallet address mint: Token mint address Returns:
src/interfaces/core.py:97
Methodexecute
Execute buy operation using platform-specific implementations.
src/trading/platform_aware.py:48
Methodexecute
Execute sell operation using platform-specific implementations. Args: token_info: Token information for the sell operation
src/trading/platform_aware.py:334
Methodfrom_dict
Create TokenInfo from dictionary. Args: data: Dictionary with token data Returns: TokenInfo_Legacy instance
src/trading/base.py:101
Methodget_account_key
(index: int)
src/utils/idl_parser.py:128
Methodget_account_key
(index)
src/platforms/pumpfun/event_parser.py:324
Methodget_account_key
(index)
src/platforms/letsbonk/event_parser.py:98
Methodget_account_key
(index: int)
learning-examples/letsbonk-buy-sell/idl_parser.py:125
Methodget_additional_accounts
Get platform-specific additional accounts needed for trading. Args: token_info: Token information Returns: D
src/interfaces/core.py:110
Methodget_address_provider
Get address provider for platform. Args: platform: Platform to get provider for client: Solana RPC client Re
src/platforms/__init__.py:252
Methodget_buy_compute_unit_limit
Get the recommended compute unit limit for pump.fun buy operations. Args: config_override: Optional override from configuration
src/platforms/pumpfun/instruction_builder.py:390
Methodget_buy_compute_unit_limit
Get the recommended compute unit limit for LetsBonk buy operations. Args: config_override: Optional override from configuration
src/platforms/letsbonk/instruction_builder.py:520
Methodget_curve_manager
Get curve manager for platform. Args: platform: Platform to get manager for client: Solana RPC client Return
src/platforms/__init__.py:286
Methodget_curve_progress
Get bonding curve completion progress information. Args: pool_address: Address of the bonding curve Returns:
src/platforms/pumpfun/curve_manager.py:286
Functionget_event_discriminators
Convenience function to get event discriminators for a platform. Args: platform: Platform to get event discriminators for Returns:
src/utils/idl_manager.py:323
Methodget_event_discriminators
Get a mapping of event names to their discriminators.
src/utils/idl_parser.py:151
Functionget_event_names
Convenience function to get event names for a platform. Args: platform: Platform to get event names for Returns: List of eve
src/utils/idl_manager.py:335
Methodget_event_parser
Get event parser for platform. Args: platform: Platform to get parser for client: Solana RPC client Returns:
src/platforms/__init__.py:303
Functionget_idl_parser
Convenience function to get an IDL parser for a platform. Args: platform: Platform to get parser for verbose: Whether to enable v
src/utils/idl_manager.py:283
Methodget_instruction_builder
Get instruction builder for platform. Args: platform: Platform to get builder for client: Solana RPC client
src/platforms/__init__.py:269
Methodget_instruction_discriminators
Get a mapping of instruction names to their discriminators.
src/utils/idl_parser.py:67
Methodget_instruction_discriminators
Get instruction discriminators for a platform. Args: platform: Platform to get discriminators for Returns: D
src/utils/idl_manager.py:134
Methodget_instruction_discriminators
Get instruction discriminators for token creation. Returns: List of discriminator bytes to match
src/interfaces/core.py:388
Methodget_instruction_discriminators
Get a mapping of instruction names to their discriminators.
learning-examples/letsbonk-buy-sell/idl_parser.py:64
Methodget_instruction_names
Get a list of all available instruction names.
learning-examples/letsbonk-buy-sell/idl_parser.py:68
Methodget_platform_capabilities
Get comprehensive capability information for a platform. Args: platform: Platform to get capabilities for Returns:
src/utils/idl_manager.py:222
Methodget_platform_compatible_listeners
Get list of listener types compatible with a specific platform. Args: platform: Platform to check compatibility for Retu
src/monitoring/listener_factory.py:140
Methodget_platform_implementations
Get cached platform implementations. Args: platform: Platform to get implementations for client_endpoint: Client endp
src/platforms/__init__.py:136
Functionget_platform_specific_fields
Get platform-specific fields from TokenInfo. Args: token_info: Token information Returns: Dictionary of platform-specific fi
src/trading/base.py:325
Functionget_platform_specific_required_config
Get platform-specific required configuration paths. Args: platform: Platform enum Returns: List of additional required confi
src/config_loader.py:282
Methodget_priority_fee
Fetch the recent priority fee using getRecentPrioritizationFees. Args: accounts: List of accounts to consider for the fe
src/core/priority_fee/dynamic_fee.py:24
Methodget_priority_fee
Return the fixed priority fee. Returns: Optional[int]: Fixed priority fee in microlamports, or None if fixed_fee is 0.
src/core/priority_fee/fixed_fee.py:16
Methodget_pumpportal_supported_platforms
Get list of platforms that support PumpPortal listener. Returns: List of platforms with PumpPortal support
src/monitoring/listener_factory.py:157
Methodget_required_accounts_for_buy
Get list of accounts required for buy operation (for priority fee calculation). Args: token_info: Token information u
src/platforms/pumpfun/instruction_builder.py:308
Methodget_required_accounts_for_buy
Get list of accounts required for buy operation (for priority fee calculation). Args: token_info: Token information u
src/platforms/letsbonk/instruction_builder.py:380
Methodget_required_accounts_for_sell
Get list of accounts required for sell operation (for priority fee calculation). Args: token_info: Token information
src/platforms/pumpfun/instruction_builder.py:339
Methodget_required_accounts_for_sell
Get list of accounts required for sell operation (for priority fee calculation). Args: token_info: Token information
src/platforms/letsbonk/instruction_builder.py:405
Methodget_reserves
Get current pool reserves. Args: pool_address: Address of the pool/curve Returns: Tuple of (base_reserves, q
src/interfaces/core.py:298
Methodget_reserves
Get current bonding curve reserves. Args: pool_address: Address of the bonding curve Returns: Tuple of (toke
src/platforms/pumpfun/curve_manager.py:153
Methodget_reserves
Get current pool reserves. Args: pool_address: Address of the pool state Returns: Tuple of (base_reserves, q
src/platforms/letsbonk/curve_manager.py:148
Methodget_sell_compute_unit_limit
Get the recommended compute unit limit for pump.fun sell operations. Args: config_override: Optional override from configuration
src/platforms/pumpfun/instruction_builder.py:404
Methodget_sell_compute_unit_limit
Get the recommended compute unit limit for LetsBonk sell operations. Args: config_override: Optional override from configuration
src/platforms/letsbonk/instruction_builder.py:534
Methodget_supported_listener_types
Get list of supported listener types. Returns: List of supported listener type strings
src/monitoring/listener_factory.py:131
Methodget_supported_platforms
Get list of supported platforms. Returns: List of registered platforms
src/platforms/__init__.py:151
Methodget_supported_platforms
Get list of supported platforms. Returns: List of supported platforms
src/platforms/__init__.py:318
Methodget_system_addresses
Get all system addresses required for this platform. Returns: Dictionary mapping address names to Pubkey objects
src/interfaces/core.py:73
Methodget_system_addresses
Get all system addresses required for pump.fun. Returns: Dictionary mapping address names to Pubkey objects
src/platforms/pumpfun/address_provider.py:145
Methodget_transaction_token_balance
Get the user's token balance after a transaction from postTokenBalances. Args: signature: Transaction signature user_
src/core/client.py:329
Functionget_user_base_token_account
Get the user's associated token account for the base token. In a real implementation, this should check if the account exists and create it
learning-examples/letsbonk-buy-sell/manual_buy_exact_in.py:378
Functionget_user_base_token_account
Get the user's associated token account for the base token. In a real implementation, this should check if the account exists and create it
learning-examples/letsbonk-buy-sell/manual_sell_exact_in.py:380
Functionget_user_base_token_account
Get the user's associated token account for the base token. In a real implementation, this should check if the account exists and create it
learning-examples/letsbonk-buy-sell/manual_buy_exact_out.py:380
Functionget_user_base_token_account
Get the user's associated token account for the base token. In a real implementation, this should check if the account exists and create it
learning-examples/letsbonk-buy-sell/manual_sell_exact_out.py:380
Methodget_wsol_account_creation_accounts
Get accounts needed for WSOL account creation and initialization. Args: user: User's wallet address wsol_account: WSO
src/platforms/letsbonk/address_provider.py:414
Methodis_curve_complete
Check if the bonding curve is complete (migrated to Raydium). Args: pool_address: Address of the bonding curve Returns:
src/platforms/pumpfun/curve_manager.py:274
Functionis_lets_bonk_token
Check if a TokenInfo is for LetsBonk platform. Args: token_info: Token information to check Returns: True if token is for Le
src/trading/base.py:313
Functionis_pump_fun_token
Check if a TokenInfo is for pump.fun platform. Args: token_info: Token information to check Returns: True if token is for pu
src/trading/base.py:301
Functionis_transaction_successful
Check if a transaction was successful based on log messages
learning-examples/listen-new-tokens/compare_listeners.py:431
Methodkeypair
Get the keypair for signing transactions.
src/core/wallet.py:31
Methodlisten_for_tokens
Listen for new token creations using Geyser subscription.
src/monitoring/universal_geyser_listener.py:116
Methodlisten_for_tokens
Listen for new token creations using PumpPortal WebSocket. Args: token_callback: Callback function for new tokens mat
src/monitoring/universal_pumpportal_listener.py:65
Methodlisten_for_tokens
Listen for new token creations using blockSubscribe. Args: token_callback: Callback function for new tokens match_str
src/monitoring/universal_block_listener.py:81
Methodlisten_for_tokens
Listen for new token creations using logsSubscribe. Args: token_callback: Callback function for new tokens match_stri
src/monitoring/universal_logs_listener.py:80
Functionload_idl_parser
Convenience function to load an IDL parser. Args: idl_path: Path to the IDL JSON file verbose: Whether to print debug inform
src/utils/idl_parser.py:545
Methodparse_token_creation_from_block
Parse token creation from block data (for block listener). Args: block_data: Block data from WebSocket Returns:
src/platforms/pumpfun/event_parser.py:463
Methodparse_token_creation_from_block
Parse token creation from block data (for block listener). Args: block_data: Block data from WebSocket Returns:
src/platforms/letsbonk/event_parser.py:270
Methodparse_token_creation_from_geyser
Parse token creation from Geyser transaction data. Args: transaction_info: Geyser transaction information Returns:
src/interfaces/core.py:351
Methodparse_token_creation_from_geyser
Parse token creation from Geyser transaction data. Args: transaction_info: Geyser transaction information Returns:
src/platforms/pumpfun/event_parser.py:397
Methodparse_token_creation_from_geyser
Parse token creation from Geyser transaction data. Args: transaction_info: Geyser transaction information Returns:
src/platforms/letsbonk/event_parser.py:195
Methodparse_token_creation_from_logs
Parse token creation from LetsBonk transaction logs. Args: logs: List of log strings from transaction signature: Tran
src/platforms/letsbonk/event_parser.py:60
Methodplatform
Get the platform this provider serves.
src/interfaces/core.py:62
Methodplatform
Get the platform this builder serves.
src/interfaces/core.py:127
Methodplatform
Get the platform this manager serves.
src/interfaces/core.py:239
Methodplatform
Get the platform this parser serves.
src/interfaces/core.py:315
Methodplatform
Get the platform this builder serves.
src/platforms/pumpfun/instruction_builder.py:41
Methodplatform
Get the platform this manager serves.
src/platforms/pumpfun/curve_manager.py:37
Methodplatform
Get the platform this provider serves.
src/platforms/pumpfun/address_provider.py:136
Methodplatform
Get the platform this parser serves.
src/platforms/pumpfun/event_parser.py:75
Methodplatform
Get the platform this processor handles.
src/platforms/pumpfun/pumpportal_processor.py:24
Methodplatform
Get the platform this builder serves.
src/platforms/letsbonk/instruction_builder.py:49
Methodplatform
Get the platform this manager serves.
src/platforms/letsbonk/curve_manager.py:39
Methodplatform
Get the platform this provider serves.
src/platforms/letsbonk/address_provider.py:49
Methodplatform
Get the platform this parser serves.
src/platforms/letsbonk/event_parser.py:56
Methodplatform
Get the platform this processor handles.
src/platforms/letsbonk/pumpportal_processor.py:24
Functionpreload_platform_idl
Preload IDL parser for a platform. Args: platform: Platform to preload parser for verbose: Whether to enable verbose logging
src/utils/idl_manager.py:308
Methodprocess_token_data
Process LetsBonk token data from PumpPortal. Args: token_data: Token data from PumpPortal WebSocket Returns:
src/platforms/letsbonk/pumpportal_processor.py:45
Methodprogram_id
Get the main program ID for this platform.
src/interfaces/core.py:68
Methodprogram_id
Get the main program ID for this platform.
src/platforms/pumpfun/address_provider.py:141
Methodprogram_id
Get the main program ID for this platform.
src/platforms/letsbonk/address_provider.py:54
Functionregister_platform_implementations
Register platform implementations with the global factory. Args: platform: Platform enum value address_provider_class: AddressPro
src/platforms/__init__.py:359
Functionrun_bot_process
(config_path)
src/bot_runner.py:166
Methodshould_process_token
Check if a token should be processed based on platform filter. Args: token_info: Token information Returns:
src/monitoring/base_listener.py:39
Methodsupported_pool_names
Get the pool names this processor supports from PumpPortal.
src/platforms/pumpfun/pumpportal_processor.py:29
Methodsupported_pool_names
Get the pool names this processor supports from PumpPortal.
src/platforms/letsbonk/pumpportal_processor.py:29
← previousnext →601–700 of 708, ranked by callers