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::MetadataPointeris present and points to the mint accountExtensionType::TransferHookis present and program id equals to WNS program