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
JavaScript
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 = {
[]: "de1.0slot.trade",
[]: "ny1.0slot.trade",
[]: "jp.0slot.trade",
[]: "ams1.0slot.trade",
[]: "la1.0slot.trade",
};
const ASTRA_ENDPOINT_BY_REGION = {
[]: "fr.gateway.astralane.io",
[]: "ny.gateway.astralane.io",
[]: "jp.gateway.astralane.io",
[]: "ams.gateway.astralane.io",
};
const NODE1_ENDPOINT_BY_REGION = {
[]: "ny.node1.me",
[]: "ny.node1.me",
[]: "ams.node1.me",
[]: "fra.node1.me",
};
const NEXTBLOCK_ENDPOINT_BY_REGION = {
[]: "tokyo.nextblock.io",
[]: "fra.nextblock.io",
[]: "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