You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current permission logic on the supply is rigid. Extend it to allow users to define multiple custom permissions for a ModuleAccount
Problem Definition
As part of #4255, @alexanderbez suggested extending the current rigid permission logic to allow modules to register multiple permissions with their own functions:
I foresee the ability to register arbitrary permissionS with arbitrary function calls for each permission (e.g. burn coins)
Proposal
Change ModuleAccountPermission and extend it to have multiple Permissions as []string.
Register a map to the supply keeper with name as Key and PermissionsAddress as value.
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Yes, precisely. What I had in mind is the following:
The supply keeper takes a map[string][]string which maps module account names to a set of permissions. Each name is also mapped to an underlying address (I think this is already the case?).
Furthermore, the supply keeper right now has MintCoins and BurnCoins. We should think of ways we can make it easier to extend this functionality by registering new "methods" with their corresponding permission(s).
Summary
The current permission logic on the supply is rigid. Extend it to allow users to define multiple custom permissions for a
ModuleAccount
Problem Definition
As part of #4255, @alexanderbez suggested extending the current rigid permission logic to allow modules to register multiple permissions with their own functions:
Proposal
ModuleAccount
Permission
and extend it to have multiplePermissions
as[]string
.name
as Key andPermissionsAddress
as value.For Admin Use
The text was updated successfully, but these errors were encountered: