metaboss icon indicating copy to clipboard operation
metaboss copied to clipboard

feat: Implement Token 22 Extensions for Mint and Token Accounts

Open sunguru98 opened this issue 9 months ago • 0 comments

This PR adds the functionality for metaboss to support Token22 for creating both mint and token accounts, via a json config file.

create fungible-22 allows you to create mint accounts. The following extensions are available.

{
  "close_authority": "",
  "permanent_delegate": "",
  "non_transferrable": true,
  // cannot be used if non_transferrable is set to true
  "transfer_fee": {
    "transfer_fee_config_authority": "",
    "withdraw_withheld_authority": "",
    "fee_basis_points": 100,
    "max_fee": 10
  },
  // cannot be used if non_transferrable is set to true
  "transfer_hook": {
    "program_id": "",
    "authority": ""
  },
  "interest_bearing": {
    "rate_authority": "",
    "rate": 0
  },
  "metadata": {
    "name": "",
    "symbol": "",
    "uri": "",
    "additional_metadata": [["", ""]]
  }
}
Screenshot 2024-04-28 at 9 01 21 PM

create fungible-token-22 allows the creation of token accounts. The following extensions are available.

{
  "require_memo": true,
  "cpi_guard": true
}
Screenshot 2024-04-28 at 9 06 10 PM

The mint fungible command now supports Token22 program as well

Screenshot 2024-04-28 at 9 12 11 PM

sunguru98 avatar Apr 28 '24 15:04 sunguru98