-
Notifications
You must be signed in to change notification settings - Fork 98
/
internal_msgs.go
149 lines (127 loc) · 7.37 KB
/
internal_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
package msgs
import (
sdk "github.com/cosmos/cosmos-sdk/types"
auth "github.com/cosmos/cosmos-sdk/x/auth/types"
bank "github.com/cosmos/cosmos-sdk/x/bank/types"
consensus "github.com/cosmos/cosmos-sdk/x/consensus/types"
crisis "github.com/cosmos/cosmos-sdk/x/crisis/types"
distribution "github.com/cosmos/cosmos-sdk/x/distribution/types"
gov "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
slashing "github.com/cosmos/cosmos-sdk/x/slashing/types"
staking "github.com/cosmos/cosmos-sdk/x/staking/types"
upgrade "github.com/cosmos/cosmos-sdk/x/upgrade/types"
"github.com/dydxprotocol/v4-chain/protocol/lib"
blocktime "github.com/dydxprotocol/v4-chain/protocol/x/blocktime/types"
bridge "github.com/dydxprotocol/v4-chain/protocol/x/bridge/types"
clob "github.com/dydxprotocol/v4-chain/protocol/x/clob/types"
delaymsg "github.com/dydxprotocol/v4-chain/protocol/x/delaymsg/types"
feetiers "github.com/dydxprotocol/v4-chain/protocol/x/feetiers/types"
perpetuals "github.com/dydxprotocol/v4-chain/protocol/x/perpetuals/types"
prices "github.com/dydxprotocol/v4-chain/protocol/x/prices/types"
rewards "github.com/dydxprotocol/v4-chain/protocol/x/rewards/types"
sending "github.com/dydxprotocol/v4-chain/protocol/x/sending/types"
stats "github.com/dydxprotocol/v4-chain/protocol/x/stats/types"
vest "github.com/dydxprotocol/v4-chain/protocol/x/vest/types"
)
var (
// InternalMsgSamplesAll are msgs that are used only used internally.
InternalMsgSamplesAll = lib.MergeAllMapsMustHaveDistinctKeys(InternalMsgSamplesGovAuth)
// InternalMsgSamplesGovAuth are msgs that are used only used internally.
// GovAuth means that these messages must originate from the gov module and
// signed by gov module account.
InternalMsgSamplesGovAuth = map[string]sdk.Msg{
// ------- CosmosSDK default modules
// auth
"/cosmos.auth.v1beta1.MsgUpdateParams": &auth.MsgUpdateParams{},
// bank
"/cosmos.bank.v1beta1.MsgSetSendEnabled": &bank.MsgSetSendEnabled{},
"/cosmos.bank.v1beta1.MsgSetSendEnabledResponse": nil,
"/cosmos.bank.v1beta1.MsgUpdateParams": &bank.MsgUpdateParams{},
"/cosmos.bank.v1beta1.MsgUpdateParamsResponse": nil,
// consensus
"/cosmos.consensus.v1.MsgUpdateParams": &consensus.MsgUpdateParams{},
"/cosmos.consensus.v1.MsgUpdateParamsResponse": nil,
// crisis
"/cosmos.crisis.v1beta1.MsgUpdateParams": &crisis.MsgUpdateParams{},
"/cosmos.crisis.v1beta1.MsgUpdateParamsResponse": nil,
// distribution
"/cosmos.distribution.v1beta1.MsgCommunityPoolSpend": &distribution.MsgCommunityPoolSpend{},
"/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse": nil,
"/cosmos.distribution.v1beta1.MsgUpdateParams": &distribution.MsgUpdateParams{},
"/cosmos.distribution.v1beta1.MsgUpdateParamsResponse": nil,
// gov
"/cosmos.gov.v1.MsgExecLegacyContent": &gov.MsgExecLegacyContent{},
"/cosmos.gov.v1.MsgExecLegacyContentResponse": nil,
"/cosmos.gov.v1.MsgUpdateParams": &gov.MsgUpdateParams{},
"/cosmos.gov.v1.MsgUpdateParamsResponse": nil,
// slashing
"/cosmos.slashing.v1beta1.MsgUpdateParams": &slashing.MsgUpdateParams{},
"/cosmos.slashing.v1beta1.MsgUpdateParamsResponse": nil,
// staking
"/cosmos.staking.v1beta1.MsgUpdateParams": &staking.MsgUpdateParams{},
"/cosmos.staking.v1beta1.MsgUpdateParamsResponse": nil,
// upgrade
"/cosmos.upgrade.v1beta1.MsgCancelUpgrade": &upgrade.MsgCancelUpgrade{},
"/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse": nil,
"/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": &upgrade.MsgSoftwareUpgrade{},
"/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse": nil,
// ------- Custom modules
// blocktime
"/dydxprotocol.blocktime.MsgUpdateDowntimeParams": &blocktime.MsgUpdateDowntimeParams{},
"/dydxprotocol.blocktime.MsgUpdateDowntimeParamsResponse": nil,
// bridge
"/dydxprotocol.bridge.MsgCompleteBridge": &bridge.MsgCompleteBridge{},
"/dydxprotocol.bridge.MsgCompleteBridgeResponse": nil,
"/dydxprotocol.bridge.MsgUpdateEventParams": &bridge.MsgUpdateEventParams{},
"/dydxprotocol.bridge.MsgUpdateEventParamsResponse": nil,
"/dydxprotocol.bridge.MsgUpdateProposeParams": &bridge.MsgUpdateProposeParams{},
"/dydxprotocol.bridge.MsgUpdateProposeParamsResponse": nil,
"/dydxprotocol.bridge.MsgUpdateSafetyParams": &bridge.MsgUpdateSafetyParams{},
"/dydxprotocol.bridge.MsgUpdateSafetyParamsResponse": nil,
// clob
"/dydxprotocol.clob.MsgCreateClobPair": &clob.MsgCreateClobPair{},
"/dydxprotocol.clob.MsgCreateClobPairResponse": nil,
"/dydxprotocol.clob.MsgUpdateBlockRateLimitConfiguration": &clob.MsgUpdateBlockRateLimitConfiguration{},
"/dydxprotocol.clob.MsgUpdateBlockRateLimitConfigurationResponse": nil,
"/dydxprotocol.clob.MsgUpdateClobPair": &clob.MsgUpdateClobPair{},
"/dydxprotocol.clob.MsgUpdateClobPairResponse": nil,
"/dydxprotocol.clob.MsgUpdateEquityTierLimitConfiguration": &clob.MsgUpdateEquityTierLimitConfiguration{},
"/dydxprotocol.clob.MsgUpdateEquityTierLimitConfigurationResponse": nil,
"/dydxprotocol.clob.MsgUpdateLiquidationsConfig": &clob.MsgUpdateLiquidationsConfig{},
"/dydxprotocol.clob.MsgUpdateLiquidationsConfigResponse": nil,
// delaymsg
"/dydxprotocol.delaymsg.MsgDelayMessage": &delaymsg.MsgDelayMessage{},
"/dydxprotocol.delaymsg.MsgDelayMessageResponse": nil,
// feetiers
"/dydxprotocol.feetiers.MsgUpdatePerpetualFeeParams": &feetiers.MsgUpdatePerpetualFeeParams{},
"/dydxprotocol.feetiers.MsgUpdatePerpetualFeeParamsResponse": nil,
// perpetuals
"/dydxprotocol.perpetuals.MsgCreatePerpetual": &perpetuals.MsgCreatePerpetual{},
"/dydxprotocol.perpetuals.MsgCreatePerpetualResponse": nil,
"/dydxprotocol.perpetuals.MsgSetLiquidityTier": &perpetuals.MsgSetLiquidityTier{},
"/dydxprotocol.perpetuals.MsgSetLiquidityTierResponse": nil,
"/dydxprotocol.perpetuals.MsgUpdateParams": &perpetuals.MsgUpdateParams{},
"/dydxprotocol.perpetuals.MsgUpdateParamsResponse": nil,
"/dydxprotocol.perpetuals.MsgUpdatePerpetualParams": &perpetuals.MsgUpdatePerpetualParams{},
"/dydxprotocol.perpetuals.MsgUpdatePerpetualParamsResponse": nil,
// prices
"/dydxprotocol.prices.MsgCreateOracleMarket": &prices.MsgCreateOracleMarket{},
"/dydxprotocol.prices.MsgCreateOracleMarketResponse": nil,
"/dydxprotocol.prices.MsgUpdateMarketParam": &prices.MsgUpdateMarketParam{},
"/dydxprotocol.prices.MsgUpdateMarketParamResponse": nil,
// rewards
"/dydxprotocol.rewards.MsgUpdateParams": &rewards.MsgUpdateParams{},
"/dydxprotocol.rewards.MsgUpdateParamsResponse": nil,
// sending
"/dydxprotocol.sending.MsgSendFromModuleToAccount": &sending.MsgSendFromModuleToAccount{},
"/dydxprotocol.sending.MsgSendFromModuleToAccountResponse": nil,
// stats
"/dydxprotocol.stats.MsgUpdateParams": &stats.MsgUpdateParams{},
"/dydxprotocol.stats.MsgUpdateParamsResponse": nil,
// vest
"/dydxprotocol.vest.MsgSetVestEntry": &vest.MsgSetVestEntry{},
"/dydxprotocol.vest.MsgSetVestEntryResponse": nil,
"/dydxprotocol.vest.MsgDeleteVestEntry": &vest.MsgDeleteVestEntry{},
"/dydxprotocol.vest.MsgDeleteVestEntryResponse": nil,
}
)