@ecash/lib
Version:
Library for eCash transaction building
35 lines • 1.7 kB
TypeScript
import { Script } from '../script.js';
import { Amount, GenesisInfo } from './common.js';
/** LOKAD ID for SLP */
export declare const SLP_LOKAD_ID: Uint8Array;
/** SLP fungible token type number */
export declare const SLP_FUNGIBLE = 1;
/** SLP MINT Vault token type number */
export declare const SLP_MINT_VAULT = 2;
/** SLP NFT1 Child token type number */
export declare const SLP_NFT1_CHILD = 65;
/** SLP NFT1 Group token type number */
export declare const SLP_NFT1_GROUP = 129;
/** Build an SLP GENESIS OP_RETURN, creating a new SLP token */
export declare function slpGenesis(tokenType: number, genesisInfo: GenesisInfo, initialQuantity: Amount, mintBatonOutIdx?: number): Script;
/**
* Build an SLP MINT pushdata section, creating new SLP tokens and mint batons
* of the given token ID.
**/
export declare function slpMint(tokenId: string, tokenType: number, additionalQuantity: Amount, mintBatonOutIdx?: number): Script;
/**
* Build an SLP MINT VAULT pushdata section, creating new SLP tokens and mint batons
* of the given token ID.
**/
export declare function slpMintVault(tokenId: string, additionalQuantities: Amount[]): Script;
/**
* Build an SLP SEND pushdata section, moving SLP tokens to different outputs
**/
export declare function slpSend(tokenId: string, tokenType: number, sendAmounts: Amount[]): Script;
/**
* Build an SLP BURN pushdata section, intentionally burning SLP tokens.
* See https://github.com/badger-cash/slp-self-mint-protocol/blob/master/token-type1-burn.md
**/
export declare function slpBurn(tokenId: string, tokenType: number, burnAmount: Amount): Script;
export declare function slpAmount(amount: Amount): Uint8Array;
//# sourceMappingURL=slp.d.ts.map