chore: Clean up {accept,implement}_interface (#14476)
This commit is contained in:
@@ -16,7 +16,7 @@ message BaseAccount {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
option (gogoproto.equal) = false;
|
||||
|
||||
option (cosmos_proto.implements_interface) = "AccountI";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.auth.v1beta1.AccountI";
|
||||
|
||||
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
google.protobuf.Any pub_key = 2 [(gogoproto.jsontag) = "public_key,omitempty", (amino.field_name) = "public_key"];
|
||||
@@ -28,7 +28,7 @@ message BaseAccount {
|
||||
message ModuleAccount {
|
||||
option (amino.name) = "cosmos-sdk/ModuleAccount";
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
option (cosmos_proto.implements_interface) = "ModuleAccountI";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.auth.v1beta1.ModuleAccountI";
|
||||
|
||||
BaseAccount base_account = 1 [(gogoproto.embed) = true];
|
||||
string name = 2;
|
||||
|
||||
@@ -101,7 +101,7 @@ message QueryAccountsRequest {
|
||||
// Since: cosmos-sdk 0.43
|
||||
message QueryAccountsResponse {
|
||||
// accounts are the existing accounts
|
||||
repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface) = "AccountI"];
|
||||
repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface) = "cosmos.auth.v1beta1.AccountI"];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||
@@ -119,7 +119,7 @@ message QueryAccountRequest {
|
||||
// QueryAccountResponse is the response type for the Query/Account RPC method.
|
||||
message QueryAccountResponse {
|
||||
// account defines the account of the corresponding address.
|
||||
google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "AccountI"];
|
||||
google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "cosmos.auth.v1beta1.AccountI"];
|
||||
}
|
||||
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
@@ -140,7 +140,7 @@ message QueryModuleAccountsRequest {}
|
||||
//
|
||||
// Since: cosmos-sdk 0.46
|
||||
message QueryModuleAccountsResponse {
|
||||
repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface) = "ModuleAccountI"];
|
||||
repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface) = "cosmos.auth.v1beta1.ModuleAccountI"];
|
||||
}
|
||||
|
||||
// QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.
|
||||
@@ -150,7 +150,7 @@ message QueryModuleAccountByNameRequest {
|
||||
|
||||
// QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.
|
||||
message QueryModuleAccountByNameResponse {
|
||||
google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "ModuleAccountI"];
|
||||
google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "cosmos.auth.v1beta1.ModuleAccountI"];
|
||||
}
|
||||
|
||||
// Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
|
||||
|
||||
@@ -15,7 +15,7 @@ option (gogoproto.goproto_getters_all) = false;
|
||||
// the provided method on behalf of the granter's account.
|
||||
message GenericAuthorization {
|
||||
option (amino.name) = "cosmos-sdk/GenericAuthorization";
|
||||
option (cosmos_proto.implements_interface) = "Authorization";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.authz.v1beta1.Authorization";
|
||||
|
||||
// Msg, identified by it's type URL, to grant unrestricted permissions to execute
|
||||
string msg = 1;
|
||||
@@ -24,7 +24,7 @@ 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.Any authorization = 1 [(cosmos_proto.accepts_interface) = "cosmos.authz.v1beta1.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)
|
||||
@@ -37,7 +37,7 @@ message GrantAuthorization {
|
||||
string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
|
||||
google.protobuf.Any authorization = 3 [(cosmos_proto.accepts_interface) = "Authorization"];
|
||||
google.protobuf.Any authorization = 3 [(cosmos_proto.accepts_interface) = "cosmos.authz.v1beta1.Authorization"];
|
||||
google.protobuf.Timestamp expiration = 4 [(gogoproto.stdtime) = true];
|
||||
}
|
||||
|
||||
|
||||
@@ -57,10 +57,10 @@ message MsgExec {
|
||||
option (amino.name) = "cosmos-sdk/MsgExec";
|
||||
|
||||
string grantee = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
// Authorization Msg requests to execute. Each msg must implement Authorization interface
|
||||
// Execute Msg.
|
||||
// The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
|
||||
// triple and validate it.
|
||||
repeated google.protobuf.Any msgs = 2 [(cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"];
|
||||
repeated google.protobuf.Any msgs = 2 [(cosmos_proto.accepts_interface) = "cosmos.base.v1beta1.Msg"];
|
||||
}
|
||||
|
||||
// MsgGrantResponse defines the Msg/MsgGrant response type.
|
||||
|
||||
@@ -13,7 +13,7 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
|
||||
//
|
||||
// Since: cosmos-sdk 0.43
|
||||
message SendAuthorization {
|
||||
option (cosmos_proto.implements_interface) = "Authorization";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.authz.v1beta1.Authorization";
|
||||
option (amino.name) = "cosmos-sdk/SendAuthorization";
|
||||
|
||||
repeated cosmos.base.v1beta1.Coin spend_limit = 1 [
|
||||
|
||||
@@ -66,7 +66,7 @@ message Supply {
|
||||
option (gogoproto.equal) = true;
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
option (cosmos_proto.implements_interface) = "SupplyI";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.bank.v1beta1.SupplyI";
|
||||
|
||||
repeated cosmos.base.v1beta1.Coin total = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
|
||||
@@ -32,7 +32,7 @@ message MsgSubmitEvidence {
|
||||
string submitter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
|
||||
// evidence defines the evidence of misbehavior.
|
||||
google.protobuf.Any evidence = 2 [(cosmos_proto.accepts_interface) = "Evidence"];
|
||||
google.protobuf.Any evidence = 2 [(cosmos_proto.accepts_interface) = "cosmos.evidence.v1beta1.Evidence"];
|
||||
}
|
||||
|
||||
// MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.
|
||||
|
||||
@@ -15,7 +15,7 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/feegrant";
|
||||
// BasicAllowance implements Allowance with a one-time grant of coins
|
||||
// that optionally expires. The grantee can use up to SpendLimit to cover fees.
|
||||
message BasicAllowance {
|
||||
option (cosmos_proto.implements_interface) = "FeeAllowanceI";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI";
|
||||
option (amino.name) = "cosmos-sdk/BasicAllowance";
|
||||
|
||||
// spend_limit specifies the maximum amount of coins that can be spent
|
||||
@@ -34,7 +34,7 @@ message BasicAllowance {
|
||||
// PeriodicAllowance extends Allowance to allow for both a maximum cap,
|
||||
// as well as a limit per time period.
|
||||
message PeriodicAllowance {
|
||||
option (cosmos_proto.implements_interface) = "FeeAllowanceI";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI";
|
||||
option (amino.name) = "cosmos-sdk/PeriodicAllowance";
|
||||
|
||||
// basic specifies a struct of `BasicAllowance`
|
||||
@@ -70,11 +70,11 @@ message PeriodicAllowance {
|
||||
// AllowedMsgAllowance creates allowance only for specified message types.
|
||||
message AllowedMsgAllowance {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
option (cosmos_proto.implements_interface) = "FeeAllowanceI";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI";
|
||||
option (amino.name) = "cosmos-sdk/AllowedMsgAllowance";
|
||||
|
||||
// allowance can be any of basic and periodic fee allowance.
|
||||
google.protobuf.Any allowance = 1 [(cosmos_proto.accepts_interface) = "FeeAllowanceI"];
|
||||
google.protobuf.Any allowance = 1 [(cosmos_proto.accepts_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"];
|
||||
|
||||
// allowed_messages are the messages for which the grantee has the access.
|
||||
repeated string allowed_messages = 2;
|
||||
@@ -89,5 +89,5 @@ message Grant {
|
||||
string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
|
||||
// allowance can be any of basic, periodic, allowed fee allowance.
|
||||
google.protobuf.Any allowance = 3 [(cosmos_proto.accepts_interface) = "FeeAllowanceI"];
|
||||
google.protobuf.Any allowance = 3 [(cosmos_proto.accepts_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"];
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ message MsgGrantAllowance {
|
||||
string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
|
||||
// allowance can be any of basic, periodic, allowed fee allowance.
|
||||
google.protobuf.Any allowance = 3 [(cosmos_proto.accepts_interface) = "FeeAllowanceI"];
|
||||
google.protobuf.Any allowance = 3 [(cosmos_proto.accepts_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"];
|
||||
}
|
||||
|
||||
// MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type.
|
||||
|
||||
@@ -77,7 +77,7 @@ message MsgExecLegacyContent {
|
||||
option (amino.name) = "cosmos-sdk/v1/MsgExecLegacyContent";
|
||||
|
||||
// content is the proposal's content.
|
||||
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"];
|
||||
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"];
|
||||
// authority must be the gov module address.
|
||||
string authority = 2;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ message WeightedVoteOption {
|
||||
// TextProposal defines a standard text proposal whose changes need to be
|
||||
// manually updated in case of approval.
|
||||
message TextProposal {
|
||||
option (cosmos_proto.implements_interface) = "Content";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content";
|
||||
option (amino.name) = "cosmos-sdk/TextProposal";
|
||||
|
||||
option (gogoproto.equal) = true;
|
||||
@@ -87,7 +87,7 @@ message Proposal {
|
||||
uint64 proposal_id = 1;
|
||||
|
||||
// content is the proposal's content.
|
||||
google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "Content"];
|
||||
google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"];
|
||||
|
||||
// status defines the proposal status.
|
||||
ProposalStatus status = 3;
|
||||
|
||||
@@ -40,7 +40,7 @@ message MsgSubmitProposal {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
// content is the proposal's content.
|
||||
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"];
|
||||
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"];
|
||||
|
||||
// initial_deposit is the deposit value that must be paid at proposal submission.
|
||||
repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [
|
||||
|
||||
@@ -52,7 +52,7 @@ message MemberRequest {
|
||||
// 2. The voting and execution periods of the proposal respect the parameters
|
||||
// given by `windows`.
|
||||
message ThresholdDecisionPolicy {
|
||||
option (cosmos_proto.implements_interface) = "DecisionPolicy";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.group.v1.DecisionPolicy";
|
||||
option (amino.name) = "cosmos-sdk/ThresholdDecisionPolicy";
|
||||
|
||||
// threshold is the minimum weighted sum of `YES` votes that must be met or
|
||||
@@ -70,7 +70,7 @@ message ThresholdDecisionPolicy {
|
||||
// 2. The voting and execution periods of the proposal respect the parameters
|
||||
// given by `windows`.
|
||||
message PercentageDecisionPolicy {
|
||||
option (cosmos_proto.implements_interface) = "DecisionPolicy";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.group.v1.DecisionPolicy";
|
||||
option (amino.name) = "cosmos-sdk/PercentageDecisionPolicy";
|
||||
|
||||
// percentage is the minimum percentage of the weighted sum of `YES` votes must
|
||||
|
||||
@@ -12,7 +12,7 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types";
|
||||
//
|
||||
// Since: cosmos-sdk 0.43
|
||||
message StakeAuthorization {
|
||||
option (cosmos_proto.implements_interface) = "Authorization";
|
||||
option (cosmos_proto.implements_interface) = "cosmos.authz.v1beta1.Authorization";
|
||||
option (amino.name) = "cosmos-sdk/StakeAuthorization";
|
||||
|
||||
// max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is
|
||||
|
||||
Reference in New Issue
Block a user