mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 08:45:19 +00:00
5110fea008
* Update third party protos for tendermint, cosmos updates * fix proto gen scripts for go 1.18 * update ibc go swagger for v3.3.0 * update generated files * update swagger * update grpc and protobuf deps
40 lines
1.4 KiB
Protocol Buffer
40 lines
1.4 KiB
Protocol Buffer
// Since: cosmos-sdk 0.43
|
|
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";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/authz";
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
// 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";
|
|
|
|
// Msg, identified by it's type URL, to grant unrestricted permissions to execute
|
|
string msg = 1;
|
|
}
|
|
|
|
// 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];
|
|
}
|
|
|
|
// GrantAuthorization extends a grant with both the addresses of the grantee and granter.
|
|
// It is used in genesis.proto and query.proto
|
|
//
|
|
// Since: cosmos-sdk 0.45.2
|
|
message GrantAuthorization {
|
|
string granter = 1;
|
|
string grantee = 2;
|
|
|
|
google.protobuf.Any authorization = 3 [(cosmos_proto.accepts_interface) = "Authorization"];
|
|
google.protobuf.Timestamp expiration = 4 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
|
}
|