mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-08-04 03:07:44 +00:00
fix: align learning examples with refactored modules
This commit is contained in:
@@ -10,11 +10,14 @@ from solana.rpc.async_api import AsyncClient
|
||||
from solders.pubkey import Pubkey
|
||||
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||
from config import PUMP_PROGRAM, RPC_ENDPOINT
|
||||
|
||||
from core.pubkeys import PumpAddresses
|
||||
|
||||
# Constants
|
||||
EXPECTED_DISCRIMINATOR: Final[bytes] = struct.pack("<Q", 6966180631402821399)
|
||||
|
||||
RPC_ENDPOINT = os.environ.get("SOLANA_NODE_RPC_ENDPOINT")
|
||||
|
||||
|
||||
class BondingCurveState:
|
||||
_STRUCT = Struct(
|
||||
@@ -60,7 +63,7 @@ async def check_token_status(mint_address: str) -> None:
|
||||
|
||||
# Get the associated bonding curve address
|
||||
bonding_curve_address, bump = get_associated_bonding_curve_address(
|
||||
mint, PUMP_PROGRAM
|
||||
mint, PumpAddresses.PROGRAM
|
||||
)
|
||||
|
||||
print("\nToken Status:")
|
||||
|
||||
Reference in New Issue
Block a user