Changeset View
Changeset View
Standalone View
Standalone View
modules/ecash-lib/src/token/slp.ts
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | export type SlpTokenType_Number = | ||||
| | typeof SLP_NFT1_GROUP; | | typeof SLP_NFT1_GROUP; | ||||
| export const SLP_TOKEN_TYPE_FUNGIBLE: SlpTokenType = { | export const SLP_TOKEN_TYPE_FUNGIBLE: SlpTokenType = { | ||||
| protocol: 'SLP', | protocol: 'SLP', | ||||
| type: 'SLP_TOKEN_TYPE_FUNGIBLE', | type: 'SLP_TOKEN_TYPE_FUNGIBLE', | ||||
| number: SLP_FUNGIBLE, | number: SLP_FUNGIBLE, | ||||
| }; | }; | ||||
| export const SLP_TOKEN_TYPE_MINT_VAULT: SlpTokenType = { | |||||
| protocol: 'SLP', | |||||
| type: 'SLP_TOKEN_TYPE_MINT_VAULT', | |||||
| number: SLP_MINT_VAULT, | |||||
| }; | |||||
| export const SLP_TOKEN_TYPE_NFT1_GROUP: SlpTokenType = { | |||||
| protocol: 'SLP', | |||||
| type: 'SLP_TOKEN_TYPE_NFT1_GROUP', | |||||
| number: SLP_NFT1_GROUP, | |||||
| }; | |||||
| export const SLP_TOKEN_TYPE_NFT1_CHILD: SlpTokenType = { | |||||
| protocol: 'SLP', | |||||
| type: 'SLP_TOKEN_TYPE_NFT1_CHILD', | |||||
| number: SLP_NFT1_CHILD, | |||||
| }; | |||||
| /** Build an SLP GENESIS OP_RETURN, creating a new SLP token */ | /** Build an SLP GENESIS OP_RETURN, creating a new SLP token */ | ||||
| export function slpGenesis( | export function slpGenesis( | ||||
| tokenType: number, | tokenType: number, | ||||
| genesisInfo: GenesisInfo, | genesisInfo: GenesisInfo, | ||||
| initialQuantity: bigint, | initialQuantity: bigint, | ||||
| mintBatonOutIdx?: number, | mintBatonOutIdx?: number, | ||||
| ): Script { | ): Script { | ||||
| verifyTokenType(tokenType); | verifyTokenType(tokenType); | ||||
| ▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines | |||||