github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/authz/v1beta1/authz.proto (about) 1 // Since: cosmos-sdk 0.43 2 syntax = "proto3"; 3 package cosmos.authz.v1beta1; 4 5 import "cosmos_proto/cosmos.proto"; 6 import "google/protobuf/timestamp.proto"; 7 import "gogoproto/gogo.proto"; 8 import "google/protobuf/any.proto"; 9 10 option go_package = "github.com/Finschia/finschia-sdk/x/authz"; 11 option (gogoproto.goproto_getters_all) = false; 12 13 // GenericAuthorization gives the grantee unrestricted permissions to execute 14 // the provided method on behalf of the granter's account. 15 message GenericAuthorization { 16 option (cosmos_proto.implements_interface) = "Authorization"; 17 18 // Msg, identified by it's type URL, to grant unrestricted permissions to execute 19 string msg = 1; 20 } 21 22 // Grant gives permissions to execute 23 // the provide method with expiration time. 24 message Grant { 25 google.protobuf.Any authorization = 1 [(cosmos_proto.accepts_interface) = "Authorization"]; 26 google.protobuf.Timestamp expiration = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; 27 } 28 29 // GrantAuthorization extends a grant with both the addresses of the grantee and granter. 30 // It is used in genesis.proto and query.proto 31 // 32 // Since: cosmos-sdk 0.45.2 33 message GrantAuthorization { 34 string granter = 1; 35 string grantee = 2; 36 37 google.protobuf.Any authorization = 3 [(cosmos_proto.accepts_interface) = "Authorization"]; 38 google.protobuf.Timestamp expiration = 4 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; 39 }