Skip to content

Commit

Permalink
feat!: make grant expiration optional
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Feb 24, 2022
1 parent 6324b5a commit ecc83c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions proto/cosmos/authz/v1beta1/authz.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ message GenericAuthorization {
// Grant gives permissions to execute
// the provide method with expiration time.
message Grant {
google.protobuf.Any authorization = 1 [(cosmos_proto.accepts_interface) = "Authorization"];
google.protobuf.Timestamp expiration = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Any authorization = 1 [(cosmos_proto.accepts_interface) = "Authorization"];
// time when the grant will expire and will be pruned. If null, then the grant
// doesn't have a time expiration (other conditions in `authorization`
// may apply to invalidate the grant)
google.protobuf.Timestamp expiration = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = true];
}

// GrantAuthorization extends a grant with both the addresses of the grantee and granter.
Expand Down

0 comments on commit ecc83c1

Please sign in to comment.