UNPKG

solana-presale-sdk

Version:

SDK for Solana Presale Program

15 lines (14 loc) 596 B
import { PublicKey } from "@solana/web3.js"; import * as anchor from "@coral-xyz/anchor"; export declare const shortenAddress: (address: string) => string; export declare const derivePresaleAddress: () => Promise<{ presaleAddress: PublicKey; bump: number; }>; export declare const derivePresaleVaultAddress: () => Promise<{ presaleVault: PublicKey; bump: number; }>; export declare const deriveUserInfoAddress: (userPublicKey: PublicKey) => Promise<PublicKey>; export declare function parseSol(sol: string): anchor.BN; export declare function formatSol(lamports: bigint): string;