Function validate_mint

Source
pub fn validate_mint(mint_info: &AccountInfo<'_>) -> Result<u16>
Expand description

Validates a WNS Token 2022 non-fungible mint account.

For non-fungibles assets, the validation consists of checking that the mint:

  • has no more than 1 supply
  • has 0 decimals
  • [TODO] has no mint authority (currently not possible to check)
  • ExtensionType::MetadataPointer is present and points to the mint account
  • ExtensionType::TransferHook is present and program id equals to WNS program