Create a multi-authorization. #2207
Labels
authz
cosmos-sdk
Issues/PRs related to our fork of the Cosmos-SDK
enhancement
New feature or request
good first issue
Good for newcomers
Milestone
Summary
Create a
MultiAuthorization
with amsg
(type url) and a list of sub-authorizations.Problem Definition
Currently, we have a few different authz authorization types, but each is narrowly defined and sometimes we want it to have extra restrictions.
Proposal
Create a
MultiAuthorization
with amsg
(type url) and a list ofsub_authorizations
.When accepting a
MultiAuthorization
, callAccept
on each sub-authorization. If any return adelete
, the parent also returns that. If any return anupdate
, the parent should return an updated version of itself with the updated sub-authorizations. The parent only returnsaccept
if all sub-messages also do.The
MsgTypeUrl
of eachsub_authorization
must equal the parent's.The
sub_authorizations
should berepeated Any
unless there's a more specific type or interface that we can use for it.For Admin Use
The text was updated successfully, but these errors were encountered: