ecash-lib
Version:
Library for eCash transaction building
34 lines • 1.62 kB
TypeScript
import { GenesisInfo } from './common.js';
/** LOKAD ID for ALP as string */
export declare const ALP_LOKAD_ID_STR = "SLP2";
/** LOKAD ID for ALP */
export declare const ALP_LOKAD_ID: Uint8Array;
/** ALP standard token type number */
export declare const ALP_STANDARD = 0;
/** Supported ALP token types */
export type AlpTokenType = typeof ALP_STANDARD;
/** ALP limits lengths/sizes to this number, e.g. the number of outputs */
export declare const ALP_MAX_SIZE = 127;
/** Mint data specifying mint amounts (in atoms) and batons of a GENESIS/MINT tx */
export interface MintData {
/**
* Array of amounts in atoms to be minted by this tx, each having their own tx output.
*/
atomsArray: bigint[];
/** 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, sendAtomsArray: bigint[]): Uint8Array;
/** Build an ALP BURN pushdata section, intentionally burning ALP tokens. */
export declare function alpBurn(tokenId: string, tokenType: number, burnAtoms: bigint): Uint8Array;
//# sourceMappingURL=alp.d.ts.map