UNPKG

lotus-sdk

Version:

Central repository for several classes of tools for integrating with, and building for, the Lotusia ecosystem

21 lines 1.02 kB
import { Output } from '../../bitcore/transaction/output.js'; import type { Transaction } from '../../bitcore/transaction/index.js'; import type { BurnConfig } from './types.js'; export declare class SwapSigBurnMechanism { private config; constructor(config?: Partial<BurnConfig>); calculateBurnAmount(swapAmount: number, burnPercentage?: number): number; createBurnOutput(burnAmount: number, poolId: string, config?: BurnConfig): Output; validateBurn(tx: Transaction, expectedAmount: number, expectedPoolId: string, config?: BurnConfig): boolean; calculateTotalBurned(participantCount: number, denomination: number): number; calculateSybilAttackCost(fakeParticipants: number, denomination: number, feePerTx: number): { lockedFunds: number; burnedFunds: number; feesFunds: number; totalIrrecoverable: number; totalCost: number; }; getConfig(): BurnConfig; updateConfig(config: Partial<BurnConfig>): void; } //# sourceMappingURL=burn.d.ts.map