Skip to main content

Class: SimpleTokenScheme

A simple token scheme.

Hierarchy​

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

• new SimpleTokenScheme(mintedTokens, meltedTokens, maximumSupply)

Parameters​

NameTypeDescription
mintedTokensbigintThe number of tokens that were minted.
meltedTokensbigintThe number of tokens that were melted.
maximumSupplybigintThe maximum supply of the token.

Overrides​

TokenScheme.constructor

Properties​

type​

• Readonly type: Simple

Inherited from​

TokenScheme.type


mintedTokens​

• Readonly mintedTokens: bigint


meltedTokens​

• Readonly meltedTokens: bigint


maximumSupply​

• Readonly maximumSupply: bigint

Methods​

getType​

▸ getType(): Simple

Get the type of token scheme.

Returns​

Simple

Inherited from​

TokenScheme.getType


getMintedTokens​

▸ getMintedTokens(): bigint

Get the amount of tokens minted.

Returns​

bigint


getMeltedTokens​

▸ getMeltedTokens(): bigint

Get the amount of tokens melted.

Returns​

bigint


getMaximumSupply​

▸ getMaximumSupply(): bigint

Get the maximum supply of tokens.

Returns​

bigint