π»Creating Contract using UI
Last updated
Last updated
Guardian instance out of the box contains implementations for βWipingβ and βRetirementβ contracts which can be deployed/enabled from the UI.
Each SR has its own contract permissions. Since contracts are deployed on Hedera and their methods can be called independently via 3rd party systems but the status of these contracts can change without Guardianβs knowledge. SRs can action a βrefreshβ of their permissions by clicking on the refresh sign (chargeable Hedera operation, costs < 1 hbar)
OWNER
Add/Remove ADMIN
Clear Requests
ADMIN
Enable/Disable Wiper Requests
Add/Remove MANAGER
MANAGER
Add/Remove WIPER
Approve/Reject/Ban WIPER requests
WIPER
Wipe Tokens
OWNER
Add/Remove ADMIN
Clear Retire Requests/Pools
ADMIN
Set/Unset Pools
Approve/Unset Retire Requests
4) At the token creation the system can be configured to delegate all permissions for wiping tokens to a specific wiping contract
5) SRs can add pools with tokens which have a wipe contract (Set pool operation in retire contract).
Also you can check βwithout approvalβ to set retirement tokens as immediate operation (without approval).
6) SRs can check/delete/refresh pools (Pools operation in retirement contract). Not enabled means that the retirement contract has no wiper permissions in the appropriate wipe contract. It will be changed to enabled automatically when the SR approves a request for a wiper role from this retirement contract. If the wipe contract is not in Guardian a manual refresh is required to update the instance permissions status.
7) SRs can check/approve/reject/ban requests for the wiper role in the wipe contract (Requests operation in wipe contract).
Now, we should be able to configure Hedera and Token Identifier during creation oof Wipe requests.
8) To execute the retirement Guardian users which hold USER role navigate to the βRetireβ tab and click on βRetireβ button, choose appropriate pool and set token count/serials
9) If a token retirement requires approval, users which hold USER role can see their requests by clicking on the βRequestsβ button.
10) Contract owners can also see these requests and approve or reject (Requests operation on retirement contract).
11) After approval or rejection of the requests users which hold USER role can see retire VCs on βRetireβ tab
Old Wipe Contract and New Retire Contract are compatible
Old Retire Contract and New Wipe Contract are incompatible