The Controller class, lines before the custom methods, includes all the
auto-generated code to manage the lifecycle of the NFT tokens. The following image
depicts the different areas covered by such methods with the following blocks.
Token Set-up by Admin:
- Initialize Tokens: Capability to create multiple token IDs (e.g.
VTOK-Euro, VTOK-USD etc.)
- Create Accounts: Create accounts based on Token ID, Org ID and User
ID
- Add Role: Assign minter/burner/notary roles to various accounts
Token Operations:
- Issue Tokens: Mints fungible tokens with validations
- Transfer Tokens: Transfers fungible tokens with validations
- Hold and ExecuteHold/ReleaseHold: Temporarily holds tokens in sender's
escrow. Transfers to recipient or returns to sender after a specified time
- Burn Tokens: Eliminates fungible tokens with validations