Mint constructor

const Mint({
  1. required Ed25519HDPublicKey address,
  2. required BigInt supply,
  3. required int decimals,
  4. Ed25519HDPublicKey? mintAuthority,
  5. required bool isInitialized,
  6. Ed25519HDPublicKey? freezeAuthority,
})

Implementation

const factory Mint({
  /// Address of the mint
  required Ed25519HDPublicKey address,

  /// Total supply of tokens.
  required BigInt supply,

  /// Number of base 10 digits to the right of the decimal place.
  required int decimals,

  /// Optional authority used to mint new tokens.
  ///
  /// The mint authority may only be provided during mint creation. If no mint
  /// authority is present then the mint has a fixed supply and no further
  /// tokens may be minted.
  Ed25519HDPublicKey? mintAuthority,

  /// Is this mint initialized
  required bool isInitialized,

  /// Optional authority to freeze token accounts.
  Ed25519HDPublicKey? freezeAuthority,
}) = _Mint;