Derive Macro near_contract_tools::Nep148

source ·
#[derive(Nep148)]
{
    // Attributes available to this derive:
    #[nep148]
}
Expand description

Adds NEP-148 fungible token metadata functionality to a contract. Metadata is hardcoded into the contract code, and is therefore not stored in storage.

Specify metadata using the #[nep148(...)] attribute.

Fields:

  • name
  • symbol
  • decimals
  • spec (optional)
  • icon (optional)
  • reference (optional)
  • reference_hash (optional)