UNPKG

@ecash/lib

Version:

Library for eCash transaction building

28 lines 1.32 kB
import { Amount, GenesisInfo } from './common.js'; /** LOKAD ID for ALP */ export declare const ALP_LOKAD_ID: Uint8Array; /** ALP standard token type number */ export declare const ALP_STANDARD = 0; /** Mint data specifying mint amounts and batons of a GENESIS/MINT tx */ export interface MintData { /** * List of amounts to be minted by this tx, each having their own tx output. */ amounts: Amount[]; /** Number of mint batons to create, each having their own tx output. */ numBatons: number; } /** Build an ALP GENESIS pushdata section, creating a new ALP token */ export declare function alpGenesis(tokenType: number, genesisInfo: GenesisInfo, mintData: MintData): Uint8Array; /** * Build an ALP MINT pushdata section, creating new ALP tokens and mint batons * of the given token ID. **/ export declare function alpMint(tokenId: string, tokenType: number, mintData: MintData): Uint8Array; /** * Build an ALP SEND pushdata section, moving ALP tokens to different outputs **/ export declare function alpSend(tokenId: string, tokenType: number, sendAmounts: Amount[]): Uint8Array; /** Build an ALP BURN pushdata section, intentionally burning ALP tokens. */ export declare function alpBurn(tokenId: string, tokenType: number, burnAmount: Amount): Uint8Array; //# sourceMappingURL=alp.d.ts.map