UNPKG

@raydium-io/raydium-sdk-v2

Version:

An SDK for building applications on top of Raydium.

35 lines (32 loc) 1.86 kB
import { PublicKey } from '@solana/web3.js'; import { ProgramAddress } from '../../common/txTool/txUtils.js'; import '../../common/txTool/lookupTable.js'; import '../../api-6a529105.js'; import 'axios'; import '../../solana/type.js'; import 'bn.js'; import '@solana/spl-token'; import '../../api/url.js'; import '../../common/owner.js'; import '../../common/txTool/txType.js'; import 'decimal.js'; import '../../module/token.js'; import '../../common/pubKey.js'; import '../../common/logger.js'; import '../../module/currency.js'; import '../../marshmallow/index.js'; import '../../marshmallow/buffer-layout.js'; declare const LAUNCHPAD_AUTH_SEED: Buffer; declare const LAUNCHPAD_CONFIG_SEED: Buffer; declare const LAUNCHPAD_POOL_SEED: Buffer; declare const LAUNCHPAD_POOL_VAULT_SEED: Buffer; declare const LAUNCHPAD_POOL_VESTING_SEED: Buffer; declare const LAUNCHPAD_POOL_PLATFORM_SEED: Buffer; declare function getPdaLaunchpadAuth(programId: PublicKey): ProgramAddress; declare function getPdaLaunchpadConfigId(programId: PublicKey, mintB: PublicKey, curveType: number, index: number): ProgramAddress; declare function getPdaLaunchpadPoolId(programId: PublicKey, mintA: PublicKey, mintB: PublicKey): ProgramAddress; declare function getPdaLaunchpadVaultId(programId: PublicKey, poolId: PublicKey, mint: PublicKey): ProgramAddress; declare function u8ToBytes(num: number): Uint8Array; declare function getPdaCpiEvent(programId: PublicKey): ProgramAddress; declare function getPdaPlatformId(programId: PublicKey, platformAdminWallet: PublicKey): ProgramAddress; export { LAUNCHPAD_AUTH_SEED, LAUNCHPAD_CONFIG_SEED, LAUNCHPAD_POOL_PLATFORM_SEED, LAUNCHPAD_POOL_SEED, LAUNCHPAD_POOL_VAULT_SEED, LAUNCHPAD_POOL_VESTING_SEED, getPdaCpiEvent, getPdaLaunchpadAuth, getPdaLaunchpadConfigId, getPdaLaunchpadPoolId, getPdaLaunchpadVaultId, getPdaPlatformId, u8ToBytes };