SORA is a new economic system aimed at creating a supranational, world economic system with built-in tools for decentralized finance (DeFi). The SORA network implements a new way of parachain architecture on Polkadot and Kusama network, with the capability to bridge external blockchains (like Ethereum) to the Polkadot ecosystem.
[x] Add SBT tokens support to Regulated assets pallet
Added more fieldsSoulboundTokenMetdata concerning Data Model in tech requirement.
Added update_sbt_expiration extrinsic. (This requirement is mentioned HERE)
Modified issue_sbt extrinsic with the new fields, added validation to allowed_assets and expires_at, and reverted the ISSUE_SBT permission checking.
Added check in regulate_asset extrinsic to not allow to regulate SBT.
[x] Deny transfers for SBT tokens
Added this logic in AssetRegulator.check_permission(..)
[x] Add expiration to SBT tokens
The expires_at field is optional, which achieves the optionality of expirable support.
Added expiration checking logic in AssetRegulator.check_permission(..)
Thorough unit tests have been added to validate the new functionalities. These tests cover a wide range of scenarios to ensure robustness and correctness.
Changes
[x] Add SBT tokens support to Regulated assets pallet
SoulboundTokenMetdata
concerning Data Model in tech requirement.update_sbt_expiration
extrinsic. (This requirement is mentioned HERE)issue_sbt
extrinsic with the new fields, added validation toallowed_assets
andexpires_at
, and reverted theISSUE_SBT
permission checking.regulate_asset
extrinsic to not allow to regulate SBT.[x] Deny transfers for SBT tokens
AssetRegulator.check_permission(..)
[x] Add expiration to SBT tokens
expires_at
field is optional, which achieves the optionality of expirable support.AssetRegulator.check_permission(..)
Thorough unit tests have been added to validate the new functionalities. These tests cover a wide range of scenarios to ensure robustness and correctness.