2021-04-18 15:54:18 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package cosmos.authz.v1beta1;
|
|
|
|
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
|
2021-08-23 13:15:55 +00:00
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/authz";
|
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
2021-04-18 15:54:18 +00:00
|
|
|
|
|
|
|
// GenericAuthorization gives the grantee unrestricted permissions to execute
|
|
|
|
// the provided method on behalf of the granter's account.
|
|
|
|
message GenericAuthorization {
|
|
|
|
option (cosmos_proto.implements_interface) = "Authorization";
|
|
|
|
|
2021-08-23 13:15:55 +00:00
|
|
|
// Msg, identified by it's type URL, to grant unrestricted permissions to execute
|
|
|
|
string msg = 1;
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
|
2021-08-23 13:15:55 +00:00
|
|
|
// Grant gives permissions to execute
|
2021-04-18 15:54:18 +00:00
|
|
|
// the provide method with expiration time.
|
2021-08-23 13:15:55 +00:00
|
|
|
message Grant {
|
2021-04-18 15:54:18 +00:00
|
|
|
google.protobuf.Any authorization = 1 [(cosmos_proto.accepts_interface) = "Authorization"];
|
|
|
|
google.protobuf.Timestamp expiration = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
|
|
}
|