Define message proto
This commit is contained in:
parent
02ade535b7
commit
615fcd7645
File diff suppressed because it is too large
Load Diff
|
@ -5,12 +5,16 @@ import "third_party/proto/cosmos-proto/cosmos.proto";
|
||||||
import "third_party/proto/gogoproto/gogo.proto";
|
import "third_party/proto/gogoproto/gogo.proto";
|
||||||
import "x/auth/types/types.proto";
|
import "x/auth/types/types.proto";
|
||||||
import "x/auth/vesting/types/types.proto";
|
import "x/auth/vesting/types/types.proto";
|
||||||
|
import "x/bank/types/types.proto";
|
||||||
|
import "x/crisis/types/types.proto";
|
||||||
|
import "x/distribution/types/types.proto";
|
||||||
import "x/supply/types/types.proto";
|
import "x/supply/types/types.proto";
|
||||||
import "x/evidence/types/types.proto";
|
import "x/evidence/types/types.proto";
|
||||||
import "x/gov/types/types.proto";
|
import "x/gov/types/types.proto";
|
||||||
|
import "x/slashing/types/types.proto";
|
||||||
|
import "x/staking/types/types.proto";
|
||||||
import "x/params/types/proposal/types.proto";
|
import "x/params/types/proposal/types.proto";
|
||||||
import "x/upgrade/types/types.proto";
|
import "x/upgrade/types/types.proto";
|
||||||
import "x/distribution/types/types.proto";
|
|
||||||
|
|
||||||
option go_package = "github.com/cosmos/cosmos-sdk/codec/std";
|
option go_package = "github.com/cosmos/cosmos-sdk/codec/std";
|
||||||
|
|
||||||
|
@ -95,3 +99,30 @@ message Content {
|
||||||
cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal community_pool_spend = 5;
|
cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal community_pool_spend = 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Message defines the set of valid concrete message types that can be used to
|
||||||
|
// construct a transaction.
|
||||||
|
message Message {
|
||||||
|
option (cosmos_proto.interface_type) = "github.com/cosmos/cosmos-sdk/types.Msg";
|
||||||
|
|
||||||
|
// sum defines the set of all allowed valid messages defined in modules.
|
||||||
|
oneof sum {
|
||||||
|
cosmos_sdk.x.bank.v1.MsgSend msg_send = 1;
|
||||||
|
cosmos_sdk.x.bank.v1.MsgMultiSend msg_multi_send = 2;
|
||||||
|
cosmos_sdk.x.crisis.v1.MsgVerifyInvariant msg_verify_invariant = 3;
|
||||||
|
cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress msg_set_withdraw_address = 4;
|
||||||
|
cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward msg_withdraw_delegator_reward = 5;
|
||||||
|
cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission msg_withdraw_validator_commission = 6;
|
||||||
|
cosmos_sdk.x.distribution.v1.MsgFundCommunityPool msg_fund_community_pool = 7;
|
||||||
|
MsgSubmitEvidence msg_submit_evidence = 8;
|
||||||
|
MsgSubmitProposal msg_submit_proposal = 9;
|
||||||
|
cosmos_sdk.x.gov.v1.MsgVote msg_vote = 10;
|
||||||
|
cosmos_sdk.x.gov.v1.MsgDeposit msg_deposit = 11;
|
||||||
|
cosmos_sdk.x.slashing.v1.MsgUnjail msg_unjail = 12;
|
||||||
|
cosmos_sdk.x.staking.v1.MsgCreateValidator msg_create_validator = 13;
|
||||||
|
cosmos_sdk.x.staking.v1.MsgEditValidator msg_edit_validator = 14;
|
||||||
|
cosmos_sdk.x.staking.v1.MsgDelegate msg_delegate = 15;
|
||||||
|
cosmos_sdk.x.staking.v1.MsgBeginRedelegate msg_begin_redelegate = 16;
|
||||||
|
cosmos_sdk.x.staking.v1.MsgUndelegate msg_undelegate = 17;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue