-
Notifications
You must be signed in to change notification settings - Fork 0
/
normal_msgs.go
213 lines (185 loc) · 10.7 KB
/
normal_msgs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
package msgs
import (
sdk "github.com/cosmos/cosmos-sdk/types"
bank "github.com/cosmos/cosmos-sdk/x/bank/types"
crisis "github.com/cosmos/cosmos-sdk/x/crisis/types"
distr "github.com/cosmos/cosmos-sdk/x/distribution/types"
evidence "github.com/cosmos/cosmos-sdk/x/evidence/types"
feegrant "github.com/cosmos/cosmos-sdk/x/feegrant"
gov "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
govbeta "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
slashing "github.com/cosmos/cosmos-sdk/x/slashing/types"
staking "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctransfer "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
ibcclient "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
ibcconn "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types"
ibccore "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
clob "github.com/jinxprotocol/v4-chain/protocol/x/clob/types"
sending "github.com/jinxprotocol/v4-chain/protocol/x/sending/types"
)
var (
// NormalMsgs are messages that can be submitted by external users.
NormalMsgs = map[string]sdk.Msg{
// auth
"/cosmos.auth.v1beta1.BaseAccount": nil,
"/cosmos.auth.v1beta1.ModuleAccount": nil,
"/cosmos.auth.v1beta1.ModuleCredential": nil,
// bank
"/cosmos.bank.v1beta1.MsgMultiSend": &bank.MsgMultiSend{},
"/cosmos.bank.v1beta1.MsgMultiSendResponse": nil,
"/cosmos.bank.v1beta1.MsgSend": &bank.MsgSend{},
"/cosmos.bank.v1beta1.MsgSendResponse": nil,
"/cosmos.bank.v1beta1.SendAuthorization": nil,
"/cosmos.bank.v1beta1.Supply": nil,
// consensus
// crisis
"/cosmos.crisis.v1beta1.MsgVerifyInvariant": &crisis.MsgVerifyInvariant{},
"/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse": nil,
// crypto
"/cosmos.crypto.ed25519.PrivKey": nil,
"/cosmos.crypto.ed25519.PubKey": nil,
"/cosmos.crypto.multisig.LegacyAminoPubKey": nil,
"/cosmos.crypto.secp256k1.PrivKey": nil,
"/cosmos.crypto.secp256k1.PubKey": nil,
"/cosmos.crypto.secp256r1.PubKey": nil,
// distribution
"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal": nil,
"/cosmos.distribution.v1beta1.MsgFundCommunityPool": &distr.MsgFundCommunityPool{},
"/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse": nil,
"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": &distr.MsgSetWithdrawAddress{},
"/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse": nil,
"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": &distr.MsgWithdrawDelegatorReward{},
"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse": nil,
"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": &distr.MsgWithdrawValidatorCommission{},
"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse": nil,
// evidence
"/cosmos.evidence.v1beta1.Equivocation": nil,
"/cosmos.evidence.v1beta1.MsgSubmitEvidence": &evidence.MsgSubmitEvidence{},
"/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse": nil,
// feegrant
"/cosmos.feegrant.v1beta1.AllowedMsgAllowance": nil,
"/cosmos.feegrant.v1beta1.BasicAllowance": nil,
"/cosmos.feegrant.v1beta1.MsgGrantAllowance": &feegrant.MsgGrantAllowance{},
"/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse": nil,
"/cosmos.feegrant.v1beta1.MsgRevokeAllowance": &feegrant.MsgRevokeAllowance{},
"/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse": nil,
"/cosmos.feegrant.v1beta1.PeriodicAllowance": nil,
// gov
"/cosmos.gov.v1.MsgDeposit": &gov.MsgDeposit{},
"/cosmos.gov.v1.MsgDepositResponse": nil,
"/cosmos.gov.v1.MsgVote": &gov.MsgVote{},
"/cosmos.gov.v1.MsgVoteResponse": nil,
"/cosmos.gov.v1.MsgVoteWeighted": &gov.MsgVoteWeighted{},
"/cosmos.gov.v1.MsgVoteWeightedResponse": nil,
"/cosmos.gov.v1beta1.MsgDeposit": &govbeta.MsgDeposit{},
"/cosmos.gov.v1beta1.MsgDepositResponse": nil,
"/cosmos.gov.v1beta1.MsgVote": &govbeta.MsgVote{},
"/cosmos.gov.v1beta1.MsgVoteResponse": nil,
"/cosmos.gov.v1beta1.MsgVoteWeighted": &govbeta.MsgVoteWeighted{},
"/cosmos.gov.v1beta1.MsgVoteWeightedResponse": nil,
"/cosmos.gov.v1beta1.TextProposal": nil,
// params
"/cosmos.params.v1beta1.ParameterChangeProposal": nil,
// slashing
"/cosmos.slashing.v1beta1.MsgUnjail": &slashing.MsgUnjail{},
"/cosmos.slashing.v1beta1.MsgUnjailResponse": nil,
// staking
"/cosmos.staking.v1beta1.MsgBeginRedelegate": &staking.MsgBeginRedelegate{},
"/cosmos.staking.v1beta1.MsgBeginRedelegateResponse": nil,
"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": &staking.MsgCancelUnbondingDelegation{},
"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse": nil,
"/cosmos.staking.v1beta1.MsgCreateValidator": &staking.MsgCreateValidator{},
"/cosmos.staking.v1beta1.MsgCreateValidatorResponse": nil,
"/cosmos.staking.v1beta1.MsgDelegate": &staking.MsgDelegate{},
"/cosmos.staking.v1beta1.MsgDelegateResponse": nil,
"/cosmos.staking.v1beta1.MsgEditValidator": &staking.MsgEditValidator{},
"/cosmos.staking.v1beta1.MsgEditValidatorResponse": nil,
"/cosmos.staking.v1beta1.MsgUndelegate": &staking.MsgUndelegate{},
"/cosmos.staking.v1beta1.MsgUndelegateResponse": nil,
"/cosmos.staking.v1beta1.StakeAuthorization": nil,
// tx
"/cosmos.tx.v1beta1.Tx": nil,
// upgrade
"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal": nil,
"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal": nil,
// clob
"/jinxprotocol.clob.MsgCancelOrder": &clob.MsgCancelOrder{},
"/jinxprotocol.clob.MsgCancelOrderResponse": nil,
"/jinxprotocol.clob.MsgPlaceOrder": &clob.MsgPlaceOrder{},
"/jinxprotocol.clob.MsgPlaceOrderResponse": nil,
// perpetuals
// prices
// sending
"/jinxprotocol.sending.MsgCreateTransfer": &sending.MsgCreateTransfer{},
"/jinxprotocol.sending.MsgCreateTransferResponse": nil,
"/jinxprotocol.sending.MsgDepositToSubaccount": &sending.MsgDepositToSubaccount{},
"/jinxprotocol.sending.MsgDepositToSubaccountResponse": nil,
"/jinxprotocol.sending.MsgWithdrawFromSubaccount": &sending.MsgWithdrawFromSubaccount{},
"/jinxprotocol.sending.MsgWithdrawFromSubaccountResponse": nil,
// ibc.applications
"/ibc.applications.transfer.v1.MsgTransfer": &ibctransfer.MsgTransfer{},
"/ibc.applications.transfer.v1.MsgTransferResponse": nil,
"/ibc.applications.transfer.v1.TransferAuthorization": nil,
// ibc.core.channel
"/ibc.core.channel.v1.Channel": nil,
"/ibc.core.channel.v1.Counterparty": nil,
"/ibc.core.channel.v1.MsgAcknowledgement": &ibccore.MsgAcknowledgement{},
"/ibc.core.channel.v1.MsgAcknowledgementResponse": nil,
"/ibc.core.channel.v1.MsgChannelCloseConfirm": &ibccore.MsgChannelCloseConfirm{},
"/ibc.core.channel.v1.MsgChannelCloseConfirmResponse": nil,
"/ibc.core.channel.v1.MsgChannelCloseInit": &ibccore.MsgChannelCloseInit{},
"/ibc.core.channel.v1.MsgChannelCloseInitResponse": nil,
"/ibc.core.channel.v1.MsgChannelOpenAck": &ibccore.MsgChannelOpenAck{},
"/ibc.core.channel.v1.MsgChannelOpenAckResponse": nil,
"/ibc.core.channel.v1.MsgChannelOpenConfirm": &ibccore.MsgChannelOpenConfirm{},
"/ibc.core.channel.v1.MsgChannelOpenConfirmResponse": nil,
"/ibc.core.channel.v1.MsgChannelOpenInit": &ibccore.MsgChannelOpenInit{},
"/ibc.core.channel.v1.MsgChannelOpenInitResponse": nil,
"/ibc.core.channel.v1.MsgChannelOpenTry": &ibccore.MsgChannelOpenTry{},
"/ibc.core.channel.v1.MsgChannelOpenTryResponse": nil,
"/ibc.core.channel.v1.MsgRecvPacket": &ibccore.MsgRecvPacket{},
"/ibc.core.channel.v1.MsgRecvPacketResponse": nil,
"/ibc.core.channel.v1.MsgTimeout": &ibccore.MsgTimeout{},
"/ibc.core.channel.v1.MsgTimeoutOnClose": &ibccore.MsgTimeoutOnClose{},
"/ibc.core.channel.v1.MsgTimeoutOnCloseResponse": nil,
"/ibc.core.channel.v1.MsgTimeoutResponse": nil,
"/ibc.core.channel.v1.Packet": nil,
// ibc.core.client
"/ibc.core.client.v1.ClientUpdateProposal": nil,
"/ibc.core.client.v1.Height": nil,
"/ibc.core.client.v1.MsgCreateClient": &ibcclient.MsgCreateClient{},
"/ibc.core.client.v1.MsgCreateClientResponse": nil,
"/ibc.core.client.v1.MsgSubmitMisbehaviour": &ibcclient.MsgSubmitMisbehaviour{},
"/ibc.core.client.v1.MsgSubmitMisbehaviourResponse": nil,
"/ibc.core.client.v1.MsgUpdateClient": &ibcclient.MsgUpdateClient{},
"/ibc.core.client.v1.MsgUpdateClientResponse": nil,
"/ibc.core.client.v1.MsgUpgradeClient": &ibcclient.MsgUpgradeClient{},
"/ibc.core.client.v1.MsgUpgradeClientResponse": nil,
"/ibc.core.client.v1.UpgradeProposal": nil,
// ibc.core.commitment
"/ibc.core.commitment.v1.MerklePath": nil,
"/ibc.core.commitment.v1.MerklePrefix": nil,
"/ibc.core.commitment.v1.MerkleProof": nil,
"/ibc.core.commitment.v1.MerkleRoot": nil,
// ibc.core.connection
"/ibc.core.connection.v1.ConnectionEnd": nil,
"/ibc.core.connection.v1.Counterparty": nil,
"/ibc.core.connection.v1.MsgConnectionOpenAck": &ibcconn.MsgConnectionOpenAck{},
"/ibc.core.connection.v1.MsgConnectionOpenAckResponse": nil,
"/ibc.core.connection.v1.MsgConnectionOpenConfirm": &ibcconn.MsgConnectionOpenConfirm{},
"/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse": nil,
"/ibc.core.connection.v1.MsgConnectionOpenInit": &ibcconn.MsgConnectionOpenInit{},
"/ibc.core.connection.v1.MsgConnectionOpenInitResponse": nil,
"/ibc.core.connection.v1.MsgConnectionOpenTry": &ibcconn.MsgConnectionOpenTry{},
"/ibc.core.connection.v1.MsgConnectionOpenTryResponse": nil,
"/ibc.core.connection.v1.Version": nil,
// ibc.lightclients
"/ibc.lightclients.localhost.v2.ClientState": nil,
"/ibc.lightclients.tendermint.v1.ClientState": nil,
"/ibc.lightclients.tendermint.v1.ConsensusState": nil,
"/ibc.lightclients.tendermint.v1.Header": nil,
"/ibc.lightclients.tendermint.v1.Misbehaviour": nil,
// ica
"/ibc.applications.interchain_accounts.v1.InterchainAccount": nil,
}
)