import type { FourTokenTaxInfo } from '../../../core/clients/four.js'; import type { FourRaisedToken } from '../../../domains/four/raised-token.js'; import type { FourBundleMerkleConfig, FourSignConfig, MerkleSignedResult } from './config.js'; /** ✅ 创建代币 + 购买参数(Merkle 版本 - 完整) */ export type FourCreateWithBundleBuyMerkleParams = { privateKeys: string[]; buyAmounts: string[]; b0Amount?: string; tokenInfo: { name: string; symbol: string; description: string; imageUrl?: string; imageFile?: Blob; label?: 'Meme' | 'AI' | 'Defi' | 'Games' | 'Infra' | 'De-Sci' | 'Social' | 'Depin' | 'Charity' | 'Others'; preSale?: string; webUrl?: string; twitterUrl?: string; telegramUrl?: string; /** ✅ AntiSniperFeeMode(开盘高税模式) */ feePlan?: boolean; /** ✅ 税币配置(Tax Token, creatorType=5) */ tokenTaxInfo?: FourTokenTaxInfo; /** 官网计价币 symbol,如 BNB / USDT / USD1 */ quoteSymbol?: string; raisedToken?: FourRaisedToken; }; config: FourBundleMerkleConfig; }; /** ✅ 创建代币 + 购买参数(仅签名版本 - 精简) */ export type FourCreateWithBundleBuySignParams = { privateKeys: string[]; buyAmounts: string[]; b0Amount?: string; tokenInfo: { name: string; symbol: string; description: string; imageUrl?: string; imageFile?: Blob; label?: 'Meme' | 'AI' | 'Defi' | 'Games' | 'Infra' | 'De-Sci' | 'Social' | 'Depin' | 'Charity' | 'Others'; preSale?: string; webUrl?: string; twitterUrl?: string; telegramUrl?: string; /** ✅ AntiSniperFeeMode(开盘高税模式) */ feePlan?: boolean; /** ✅ 税币配置(Tax Token, creatorType=5) */ tokenTaxInfo?: FourTokenTaxInfo; quoteSymbol?: string; raisedToken?: FourRaisedToken; }; config: FourSignConfig; }; /** * ✅ 创建代币 + 购买结果(简化版) * 包含 tokenAddress 用于返回创建的代币地址 */ export type FourCreateWithBundleBuyMerkleResult = MerkleSignedResult; /** ✅ 批量购买参数(Merkle 版本 - 完整) */ export type FourBatchBuyMerkleParams = { privateKeys: string[]; buyAmounts: string[]; tokenAddress: string; config: FourBundleMerkleConfig; }; /** ✅ 批量购买参数(仅签名版本 - 精简) */ export type FourBatchBuySignParams = { privateKeys: string[]; buyAmounts: string[]; tokenAddress: string; config: FourSignConfig; }; /** ✅ 批量购买结果(简化版) */ export type FourBatchBuyMerkleResult = MerkleSignedResult; /** ✅ 批量卖出参数(Merkle 版本 - 完整) */ export type FourBatchSellMerkleParams = { privateKeys: string[]; sellAmounts: string[]; tokenAddress: string; minOutputAmounts?: (string | bigint)[]; config: FourBundleMerkleConfig; }; /** ✅ 批量卖出参数(仅签名版本 - 精简) */ export type FourBatchSellSignParams = { privateKeys: string[]; sellAmounts: string[]; tokenAddress: string; minOutputAmounts?: (string | bigint)[]; config: FourSignConfig; }; /** ✅ 批量卖出结果(简化版) */ export type FourBatchSellMerkleResult = MerkleSignedResult; /** ✅ 私有交易基础配置(Merkle 版本 - 完整) */ export type FourPrivateMerkleBase = { config: FourBundleMerkleConfig; }; /** ✅ 私有交易基础配置(仅签名版本 - 精简) */ export type FourPrivateSignBase = { config: FourSignConfig; }; /** ✅ 私有购买参数(Merkle 版本 - 完整) */ export type FourPrivateBuyMerkleParams = FourPrivateMerkleBase & { privateKey: string; tokenAddress: string; funds: string; to?: string; }; /** ✅ 私有购买参数(仅签名版本 - 精简) */ export type FourPrivateBuySignParams = FourPrivateSignBase & { privateKey: string; tokenAddress: string; funds: string; to?: string; /** ERC20 计价跟买;不传则按 BNB `msg.value` */ quoteTokenAddress?: string; quoteDecimals?: number; }; /** ✅ 私有卖出参数(Merkle 版本 - 完整) */ export type FourPrivateSellMerkleParams = FourPrivateMerkleBase & { privateKey: string; tokenAddress: string; amount: string; minFunds?: bigint; }; /** ✅ 私有卖出参数(仅签名版本 - 精简) */ export type FourPrivateSellSignParams = FourPrivateSignBase & { privateKey: string; tokenAddress: string; amount: string; minFunds?: bigint; }; /** ✅ 私有交易结果(简化版) */ export type FourPrivateTransactionResult = MerkleSignedResult; /** ✅ 批量私有购买参数(Merkle 版本 - 完整) */ export type FourBatchPrivateBuyMerkleParams = FourPrivateMerkleBase & { privateKeys: string[]; fundsList: string[]; tokenAddress: string; quoteTokenAddress?: string; quoteDecimals?: number; }; /** ✅ 批量私有购买参数(仅签名版本 - 精简) */ export type FourBatchPrivateBuySignParams = FourPrivateSignBase & { privateKeys: string[]; fundsList: string[]; tokenAddress: string; quoteTokenAddress?: string; quoteDecimals?: number; }; /** ✅ 批量私有卖出参数(Merkle 版本 - 完整) */ export type FourBatchPrivateSellMerkleParams = FourPrivateMerkleBase & { privateKeys: string[]; amounts: string[]; tokenAddress: string; minFundsEach?: bigint; }; /** ✅ 批量私有卖出参数(仅签名版本 - 精简) */ export type FourBatchPrivateSellSignParams = FourPrivateSignBase & { privateKeys: string[]; amounts: string[]; tokenAddress: string; minFundsEach?: bigint; }; /** ✅ 批量私有交易结果(简化版) */ export type FourBatchPrivateMerkleResult = MerkleSignedResult;