four-flap-meme-sdk
Version:
SDK for Flap bonding curve and four.meme TokenManager
27 lines (26 loc) • 1.05 kB
TypeScript
import type { FourSignConfig } from './types.js';
/** ✅ 批量授权参数(直接提交到链上) */
export type ApproveFourTokenManagerBatchParams = {
privateKeys: string[];
tokenAddress: string;
amounts: string[];
config: FourSignConfig;
};
/** ✅ 批量授权结果(包含提交状态) */
export type ApproveFourTokenManagerBatchResult = {
success: boolean;
signedTransactions: string[];
approvedCount: number;
skippedCount: number;
txHashes?: string[];
message: string;
};
/**
* 批量授权代币给 TokenManager(用于 Private Buy/Sell)
* ✅ 直接通过 RPC 提交到链上并等待确认
* ✅ 不需要 Merkle API Key,使用普通 RPC 即可
* ✅ 专门用于授权给 TokenManagerOriginal 合约
* ✅ 用于 fourBatchPrivateSell 和 fourBatchSellWithBundleMerkle
* ✅ 优化:并行获取 gasPrice、decimals、allowances
*/
export declare function approveFourTokenManagerBatch(params: ApproveFourTokenManagerBatchParams): Promise<ApproveFourTokenManagerBatchResult>;