import { PublicKey, Signer } from '@solana/web3.js'; import { bS as ComputeBudgetConfig, bT as TxTipConfig } from '../../api-1cb0d152.js'; import BN__default from 'bn.js'; import { TxVersion } from '../../common/txTool/txType.js'; import { LaunchpadPool, LaunchpadConfig, PlatformConfig } from './layout.js'; import 'axios'; import '../../solana/type.js'; import '@solana/spl-token'; import '../../api/url.js'; import '../../common/owner.js'; import '../../common/txTool/lookupTable.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'; interface CreateLaunchPad { mintA: PublicKey; name: string; symbol: string; buyAmount: BN__default; platformId?: PublicKey; programId?: PublicKey; authProgramId?: PublicKey; decimals?: number; mintBDecimals?: number; curType?: number; configId: PublicKey; configInfo?: LaunchpadConfigInfo; minMintAAmount?: BN__default; slippage?: BN__default; uri: string; migrateType: "amm" | "cpmm"; supply?: BN__default; totalSellA?: BN__default; totalFundRaisingB?: BN__default; totalLockedAmount?: BN__default; cliffPeriod?: BN__default; unlockPeriod?: BN__default; shareFeeRate?: BN__default; shareFeeReceiver?: PublicKey; platformFeeRate?: BN__default; createOnly?: boolean; computeBudgetConfig?: ComputeBudgetConfig; txTipConfig?: TxTipConfig; txVersion?: T; feePayer?: PublicKey; associatedOnly?: boolean; checkCreateATAOwner?: boolean; extraSigners?: Signer[]; } interface BuyToken { mintA: PublicKey; buyAmount: BN__default; programId?: PublicKey; authProgramId?: PublicKey; mintB?: PublicKey; poolInfo?: LaunchpadPoolInfo; minMintAAmount?: BN__default; slippage?: BN__default; shareFeeRate?: BN__default; shareFeeReceiver?: PublicKey; configInfo?: LaunchpadConfigInfo; platformFeeRate?: BN__default; computeBudgetConfig?: ComputeBudgetConfig; txTipConfig?: TxTipConfig; txVersion?: T; feePayer?: PublicKey; associatedOnly?: boolean; checkCreateATAOwner?: boolean; } interface SellToken { mintA: PublicKey; sellAmount: BN__default; slippage?: BN__default; programId?: PublicKey; authProgramId?: PublicKey; poolInfo?: LaunchpadPoolInfo; mintB?: PublicKey; minAmountB?: BN__default; shareFeeRate?: BN__default; shareFeeReceiver?: PublicKey; configInfo?: LaunchpadConfigInfo; platformFeeRate?: BN__default; computeBudgetConfig?: ComputeBudgetConfig; txTipConfig?: TxTipConfig; txVersion?: T; feePayer?: PublicKey; associatedOnly?: boolean; checkCreateATAOwner?: boolean; } interface CreatePlatform { programId?: PublicKey; platformAdmin: PublicKey; platformClaimFeeWallet: PublicKey; platformLockNftWallet: PublicKey; cpConfigId: PublicKey; migrateCpLockNftScale: { platformScale: BN__default; creatorScale: BN__default; burnScale: BN__default; }; feeRate: BN__default; name: string; web: string; img: string; computeBudgetConfig?: ComputeBudgetConfig; txTipConfig?: TxTipConfig; txVersion?: T; feePayer?: PublicKey; } interface UpdatePlatform { programId?: PublicKey; platformAdmin: PublicKey; platformId?: PublicKey; updateInfo: { type: "updateClaimFeeWallet"; value: PublicKey; } | { type: "updateFeeRate"; value: BN__default; } | { type: "updateName" | "updateImg" | "updateWeb"; value: string; } | { type: "migrateCpLockNftScale"; value: { platformScale: BN__default; creatorScale: BN__default; burnScale: BN__default; }; } | { type: 'updateCpConfigId'; value: PublicKey; }; computeBudgetConfig?: ComputeBudgetConfig; txTipConfig?: TxTipConfig; txVersion?: T; feePayer?: PublicKey; } interface ClaimPlatformFee { programId?: PublicKey; authProgramId?: PublicKey; platformId: PublicKey; platformClaimFeeWallet: PublicKey; poolId: PublicKey; mintB?: PublicKey; vaultB?: PublicKey; mintBProgram?: PublicKey; computeBudgetConfig?: ComputeBudgetConfig; txTipConfig?: TxTipConfig; txVersion?: T; feePayer?: PublicKey; associatedOnly?: boolean; checkCreateATAOwner?: boolean; } interface CreateVesting { programId?: PublicKey; poolId: PublicKey; beneficiary: PublicKey; shareAmount: BN__default; computeBudgetConfig?: ComputeBudgetConfig; txTipConfig?: TxTipConfig; txVersion?: T; feePayer?: PublicKey; } interface ClaimVesting { programId?: PublicKey; poolId: PublicKey; poolInfo?: LaunchpadPoolInfo; computeBudgetConfig?: ComputeBudgetConfig; txTipConfig?: TxTipConfig; txVersion?: T; feePayer?: PublicKey; associatedOnly?: boolean; checkCreateATAOwner?: boolean; } type LaunchpadPoolInfo = ReturnType; type LaunchpadConfigInfo = ReturnType; type LaunchpadPlatformInfo = ReturnType; export { BuyToken, ClaimPlatformFee, ClaimVesting, CreateLaunchPad, CreatePlatform, CreateVesting, LaunchpadConfigInfo, LaunchpadPlatformInfo, LaunchpadPoolInfo, SellToken, UpdatePlatform };