UNPKG

pumpdotfun-sdk-repumped

Version:

Pumpfun SDK — create, buy, sell tokens with support for Jito bundles and multiple relayer integrations. Rebuilt and fixed pumpdotfun-sdk.

46 lines (43 loc) 1.88 kB
import { Region } from './pumpFun.types.mjs'; const MPL_TOKEN_METADATA_PROGRAM_ID = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"; const GLOBAL_ACCOUNT_SEED = "global"; const MINT_AUTHORITY_SEED = "mint-authority"; const BONDING_CURVE_SEED = "bonding-curve"; const METADATA_SEED = "metadata"; const EVENT_AUTHORITY_SEED = "__event_authority"; const GLOBAL_VOLUME_SEED = "global_volume_accumulator"; const USER_VOLUME_SEED = "user_volume_accumulator"; const DEFAULT_DECIMALS = 6; const DEFAULT_COMMITMENT = "finalized"; const DEFAULT_FINALITY = "finalized"; const SLOT_ENDPOINT_BY_REGION = { [Region.Frankfurt]: "de1.0slot.trade", [Region.NY]: "ny1.0slot.trade", [Region.Tokyo]: "jp.0slot.trade", [Region.Amsterdam]: "ams1.0slot.trade", [Region.LosAngeles]: "la1.0slot.trade", }; const ASTRA_ENDPOINT_BY_REGION = { [Region.Frankfurt]: "fr.gateway.astralane.io", [Region.NY]: "ny.gateway.astralane.io", [Region.Tokyo]: "jp.gateway.astralane.io", [Region.Amsterdam]: "ams.gateway.astralane.io", }; const NODE1_ENDPOINT_BY_REGION = { [Region.NY]: "ny.node1.me", [Region.Tokyo]: "ny.node1.me", [Region.Amsterdam]: "ams.node1.me", [Region.Frankfurt]: "fra.node1.me", }; const NEXTBLOCK_ENDPOINT_BY_REGION = { [Region.Tokyo]: "tokyo.nextblock.io", [Region.Frankfurt]: "fra.nextblock.io", [Region.NY]: "ny.nextblock.io", }; const getHealthBody = JSON.stringify({ jsonrpc: "2.0", id: 1, method: "getHealth", }); export { ASTRA_ENDPOINT_BY_REGION, BONDING_CURVE_SEED, DEFAULT_COMMITMENT, DEFAULT_DECIMALS, DEFAULT_FINALITY, EVENT_AUTHORITY_SEED, GLOBAL_ACCOUNT_SEED, GLOBAL_VOLUME_SEED, METADATA_SEED, MINT_AUTHORITY_SEED, MPL_TOKEN_METADATA_PROGRAM_ID, NEXTBLOCK_ENDPOINT_BY_REGION, NODE1_ENDPOINT_BY_REGION, SLOT_ENDPOINT_BY_REGION, USER_VOLUME_SEED, getHealthBody }; //# sourceMappingURL=pumpFun.consts.mjs.map