four-flap-meme-sdk
Version:
SDK for Flap bonding curve and four.meme TokenManager
29 lines (28 loc) • 1.42 kB
TypeScript
/**
* PancakeSwap 官方 Router 交易模块
*
* ✅ 使用官方 PancakeSwap V2/V3 Router(非代理合约)
* - V2 Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E
* - V3 Router: 0x13f4EA83D0bd40E75C8222255bc855a974568Dd4
* - V3 Quoter: 0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997
*/
import { FourPancakeProxyBatchBuySignParams, FourPancakeProxyBatchBuyResult, FourPancakeProxyBatchSellSignParams, FourPancakeProxyBatchSellResult, FourPancakeProxyApprovalParams, FourPancakeProxyApprovalBatchParams, FourPancakeProxyApprovalBatchResult } from './types.js';
/**
* ✅ 授权代币给 PancakeSwap Router(根据 routeType 选择 V2/V3)
*/
export declare function approveFourPancakeProxy(params: FourPancakeProxyApprovalParams): Promise<{
txHash: string;
approved: boolean;
}>;
/**
* ✅ 批量授权代币给 PancakeSwap Router
*/
export declare function approveFourPancakeProxyBatch(params: FourPancakeProxyApprovalBatchParams): Promise<FourPancakeProxyApprovalBatchResult>;
/**
* ✅ 使用 PancakeSwap 官方 Router 批量购买代币
*/
export declare function fourPancakeProxyBatchBuyMerkle(params: FourPancakeProxyBatchBuySignParams): Promise<FourPancakeProxyBatchBuyResult>;
/**
* ✅ 使用 PancakeSwap 官方 Router 批量卖出代币
*/
export declare function fourPancakeProxyBatchSellMerkle(params: FourPancakeProxyBatchSellSignParams): Promise<FourPancakeProxyBatchSellResult>;