sora2-network
sora2-network copied to clipboard
[Tech]: Add mechanism for external regulation for assets operations
Problem statement
We want to support regulated assets
Description
Currently we work with permissions pallet directly, but to make assets regulation for extensible we should move all checks to Config trait associated type
Definition of Done
- [ ] Add trait for assets operations regulation
- [ ] Move permissions pallet logic used in assets pallet to this trait
Requirements
- New trait should be implemented for tuples like
(A, B)
- New trait should contain method for each assets operation like
mint
,burn
,transfer
, etc.