-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_types_msg_type.go
260 lines (238 loc) · 8.53 KB
/
model_types_msg_type.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
/*
Celenium API
Celenium API is a powerful tool to access all blockchain data that is processed and indexed by our proprietary indexer. With Celenium API you can retrieve all historical data, off-chain data, blobs and statistics through our REST API. Celenium API indexer are open source, which allows you to not depend on third-party services. You can clone, build and run them independently, giving you full control over all components. If you have any questions or feature requests, please feel free to contact us. We appreciate your feedback!
API version: 1.0
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package celenium
import (
"encoding/json"
"fmt"
)
// TypesMsgType the model 'TypesMsgType'
type TypesMsgType string
// List of types.MsgType
const (
MsgUnknown TypesMsgType = "MsgUnknown"
MsgSetWithdrawAddress TypesMsgType = "MsgSetWithdrawAddress"
MsgWithdrawDelegatorReward TypesMsgType = "MsgWithdrawDelegatorReward"
MsgWithdrawValidatorCommission TypesMsgType = "MsgWithdrawValidatorCommission"
MsgFundCommunityPool TypesMsgType = "MsgFundCommunityPool"
MsgCreateValidator TypesMsgType = "MsgCreateValidator"
MsgEditValidator TypesMsgType = "MsgEditValidator"
MsgDelegate TypesMsgType = "MsgDelegate"
MsgBeginRedelegate TypesMsgType = "MsgBeginRedelegate"
MsgUndelegate TypesMsgType = "MsgUndelegate"
MsgCancelUnbondingDelegation TypesMsgType = "MsgCancelUnbondingDelegation"
MsgUnjail TypesMsgType = "MsgUnjail"
MsgSend TypesMsgType = "MsgSend"
MsgMultiSend TypesMsgType = "MsgMultiSend"
MsgCreateVestingAccount TypesMsgType = "MsgCreateVestingAccount"
MsgCreatePermanentLockedAccount TypesMsgType = "MsgCreatePermanentLockedAccount"
MsgCreatePeriodicVestingAccount TypesMsgType = "MsgCreatePeriodicVestingAccount"
MsgPayForBlobs TypesMsgType = "MsgPayForBlobs"
MsgGrant TypesMsgType = "MsgGrant"
MsgExec TypesMsgType = "MsgExec"
MsgRevoke TypesMsgType = "MsgRevoke"
MsgGrantAllowance TypesMsgType = "MsgGrantAllowance"
MsgRevokeAllowance TypesMsgType = "MsgRevokeAllowance"
MsgRegisterEVMAddress TypesMsgType = "MsgRegisterEVMAddress"
MsgSubmitProposal TypesMsgType = "MsgSubmitProposal"
MsgExecLegacyContent TypesMsgType = "MsgExecLegacyContent"
MsgVote TypesMsgType = "MsgVote"
MsgVoteWeighted TypesMsgType = "MsgVoteWeighted"
MsgDeposit TypesMsgType = "MsgDeposit"
IBCTransfer TypesMsgType = "IBCTransfer"
MsgVerifyInvariant TypesMsgType = "MsgVerifyInvariant"
MsgSubmitEvidence TypesMsgType = "MsgSubmitEvidence"
MsgSendNFT TypesMsgType = "MsgSendNFT"
MsgCreateGroup TypesMsgType = "MsgCreateGroup"
MsgUpdateGroupMembers TypesMsgType = "MsgUpdateGroupMembers"
MsgUpdateGroupAdmin TypesMsgType = "MsgUpdateGroupAdmin"
MsgUpdateGroupMetadata TypesMsgType = "MsgUpdateGroupMetadata"
MsgCreateGroupPolicy TypesMsgType = "MsgCreateGroupPolicy"
MsgUpdateGroupPolicyAdmin TypesMsgType = "MsgUpdateGroupPolicyAdmin"
MsgCreateGroupWithPolicy TypesMsgType = "MsgCreateGroupWithPolicy"
MsgUpdateGroupPolicyDecisionPolicy TypesMsgType = "MsgUpdateGroupPolicyDecisionPolicy"
MsgUpdateGroupPolicyMetadata TypesMsgType = "MsgUpdateGroupPolicyMetadata"
MsgSubmitProposalGroup TypesMsgType = "MsgSubmitProposalGroup"
MsgWithdrawProposal TypesMsgType = "MsgWithdrawProposal"
MsgVoteGroup TypesMsgType = "MsgVoteGroup"
MsgExecGroup TypesMsgType = "MsgExecGroup"
MsgLeaveGroup TypesMsgType = "MsgLeaveGroup"
MsgSoftwareUpgrade TypesMsgType = "MsgSoftwareUpgrade"
MsgCancelUpgrade TypesMsgType = "MsgCancelUpgrade"
MsgRegisterInterchainAccount TypesMsgType = "MsgRegisterInterchainAccount"
MsgSendTx TypesMsgType = "MsgSendTx"
MsgRegisterPayee TypesMsgType = "MsgRegisterPayee"
MsgRegisterCounterpartyPayee TypesMsgType = "MsgRegisterCounterpartyPayee"
MsgPayPacketFee TypesMsgType = "MsgPayPacketFee"
MsgPayPacketFeeAsync TypesMsgType = "MsgPayPacketFeeAsync"
MsgTransfer TypesMsgType = "MsgTransfer"
MsgCreateClient TypesMsgType = "MsgCreateClient"
MsgUpdateClient TypesMsgType = "MsgUpdateClient"
MsgUpgradeClient TypesMsgType = "MsgUpgradeClient"
MsgSubmitMisbehaviour TypesMsgType = "MsgSubmitMisbehaviour"
MsgConnectionOpenInit TypesMsgType = "MsgConnectionOpenInit"
MsgConnectionOpenTry TypesMsgType = "MsgConnectionOpenTry"
MsgConnectionOpenAck TypesMsgType = "MsgConnectionOpenAck"
MsgConnectionOpenConfirm TypesMsgType = "MsgConnectionOpenConfirm"
MsgChannelOpenInit TypesMsgType = "MsgChannelOpenInit"
MsgChannelOpenTry TypesMsgType = "MsgChannelOpenTry"
MsgChannelOpenAck TypesMsgType = "MsgChannelOpenAck"
MsgChannelOpenConfirm TypesMsgType = "MsgChannelOpenConfirm"
MsgChannelCloseInit TypesMsgType = "MsgChannelCloseInit"
MsgChannelCloseConfirm TypesMsgType = "MsgChannelCloseConfirm"
MsgRecvPacket TypesMsgType = "MsgRecvPacket"
MsgTimeout TypesMsgType = "MsgTimeout"
MsgTimeoutOnClose TypesMsgType = "MsgTimeoutOnClose"
MsgAcknowledgement TypesMsgType = "MsgAcknowledgement"
MsgSignalVersion TypesMsgType = "MsgSignalVersion"
MsgTryUpgrade TypesMsgType = "MsgTryUpgrade"
)
// All allowed values of TypesMsgType enum
var AllowedTypesMsgTypeEnumValues = []TypesMsgType{
"MsgUnknown",
"MsgSetWithdrawAddress",
"MsgWithdrawDelegatorReward",
"MsgWithdrawValidatorCommission",
"MsgFundCommunityPool",
"MsgCreateValidator",
"MsgEditValidator",
"MsgDelegate",
"MsgBeginRedelegate",
"MsgUndelegate",
"MsgCancelUnbondingDelegation",
"MsgUnjail",
"MsgSend",
"MsgMultiSend",
"MsgCreateVestingAccount",
"MsgCreatePermanentLockedAccount",
"MsgCreatePeriodicVestingAccount",
"MsgPayForBlobs",
"MsgGrant",
"MsgExec",
"MsgRevoke",
"MsgGrantAllowance",
"MsgRevokeAllowance",
"MsgRegisterEVMAddress",
"MsgSubmitProposal",
"MsgExecLegacyContent",
"MsgVote",
"MsgVoteWeighted",
"MsgDeposit",
"IBCTransfer",
"MsgVerifyInvariant",
"MsgSubmitEvidence",
"MsgSendNFT",
"MsgCreateGroup",
"MsgUpdateGroupMembers",
"MsgUpdateGroupAdmin",
"MsgUpdateGroupMetadata",
"MsgCreateGroupPolicy",
"MsgUpdateGroupPolicyAdmin",
"MsgCreateGroupWithPolicy",
"MsgUpdateGroupPolicyDecisionPolicy",
"MsgUpdateGroupPolicyMetadata",
"MsgSubmitProposalGroup",
"MsgWithdrawProposal",
"MsgVoteGroup",
"MsgExecGroup",
"MsgLeaveGroup",
"MsgSoftwareUpgrade",
"MsgCancelUpgrade",
"MsgRegisterInterchainAccount",
"MsgSendTx",
"MsgRegisterPayee",
"MsgRegisterCounterpartyPayee",
"MsgPayPacketFee",
"MsgPayPacketFeeAsync",
"MsgTransfer",
"MsgCreateClient",
"MsgUpdateClient",
"MsgUpgradeClient",
"MsgSubmitMisbehaviour",
"MsgConnectionOpenInit",
"MsgConnectionOpenTry",
"MsgConnectionOpenAck",
"MsgConnectionOpenConfirm",
"MsgChannelOpenInit",
"MsgChannelOpenTry",
"MsgChannelOpenAck",
"MsgChannelOpenConfirm",
"MsgChannelCloseInit",
"MsgChannelCloseConfirm",
"MsgRecvPacket",
"MsgTimeout",
"MsgTimeoutOnClose",
"MsgAcknowledgement",
"MsgSignalVersion",
"MsgTryUpgrade",
}
func (v *TypesMsgType) UnmarshalJSON(src []byte) error {
var value string
err := json.Unmarshal(src, &value)
if err != nil {
return err
}
enumTypeValue := TypesMsgType(value)
for _, existing := range AllowedTypesMsgTypeEnumValues {
if existing == enumTypeValue {
*v = enumTypeValue
return nil
}
}
return fmt.Errorf("%+v is not a valid TypesMsgType", value)
}
// NewTypesMsgTypeFromValue returns a pointer to a valid TypesMsgType
// for the value passed as argument, or an error if the value passed is not allowed by the enum
func NewTypesMsgTypeFromValue(v string) (*TypesMsgType, error) {
ev := TypesMsgType(v)
if ev.IsValid() {
return &ev, nil
} else {
return nil, fmt.Errorf("invalid value '%v' for TypesMsgType: valid values are %v", v, AllowedTypesMsgTypeEnumValues)
}
}
// IsValid return true if the value is valid for the enum, false otherwise
func (v TypesMsgType) IsValid() bool {
for _, existing := range AllowedTypesMsgTypeEnumValues {
if existing == v {
return true
}
}
return false
}
// Ptr returns reference to types.MsgType value
func (v TypesMsgType) Ptr() *TypesMsgType {
return &v
}
type NullableTypesMsgType struct {
value *TypesMsgType
isSet bool
}
func (v NullableTypesMsgType) Get() *TypesMsgType {
return v.value
}
func (v *NullableTypesMsgType) Set(val *TypesMsgType) {
v.value = val
v.isSet = true
}
func (v NullableTypesMsgType) IsSet() bool {
return v.isSet
}
func (v *NullableTypesMsgType) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTypesMsgType(val *TypesMsgType) *NullableTypesMsgType {
return &NullableTypesMsgType{value: val, isSet: true}
}
func (v NullableTypesMsgType) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTypesMsgType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}