@agoric/cosmic-proto 0.5.0-u18a.0 → 0.5.0-u19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/codegen/agoric/bundle.d.ts +165 -165
  2. package/dist/codegen/circle/bundle.d.ts +1363 -0
  3. package/dist/codegen/circle/bundle.js +40 -0
  4. package/dist/codegen/circle/bundle.js.map +1 -0
  5. package/dist/codegen/circle/cctp/v1/attester.d.ts +31 -0
  6. package/dist/codegen/circle/cctp/v1/attester.js +63 -0
  7. package/dist/codegen/circle/cctp/v1/attester.js.map +1 -0
  8. package/dist/codegen/circle/cctp/v1/burn_message.d.ts +47 -0
  9. package/dist/codegen/circle/cctp/v1/burn_message.js +117 -0
  10. package/dist/codegen/circle/cctp/v1/burn_message.js.map +1 -0
  11. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.d.ts +31 -0
  12. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +63 -0
  13. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js.map +1 -0
  14. package/dist/codegen/circle/cctp/v1/events.d.ts +730 -0
  15. package/dist/codegen/circle/cctp/v1/events.js +1612 -0
  16. package/dist/codegen/circle/cctp/v1/events.js.map +1 -0
  17. package/dist/codegen/circle/cctp/v1/genesis.d.ts +60 -0
  18. package/dist/codegen/circle/cctp/v1/genesis.js +295 -0
  19. package/dist/codegen/circle/cctp/v1/genesis.js.map +1 -0
  20. package/dist/codegen/circle/cctp/v1/max_message_body_size.d.ts +31 -0
  21. package/dist/codegen/circle/cctp/v1/max_message_body_size.js +69 -0
  22. package/dist/codegen/circle/cctp/v1/max_message_body_size.js.map +1 -0
  23. package/dist/codegen/circle/cctp/v1/message.d.ts +69 -0
  24. package/dist/codegen/circle/cctp/v1/message.js +160 -0
  25. package/dist/codegen/circle/cctp/v1/message.js.map +1 -0
  26. package/dist/codegen/circle/cctp/v1/nonce.d.ts +39 -0
  27. package/dist/codegen/circle/cctp/v1/nonce.js +80 -0
  28. package/dist/codegen/circle/cctp/v1/nonce.js.map +1 -0
  29. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.d.ts +39 -0
  30. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +73 -0
  31. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js.map +1 -0
  32. package/dist/codegen/circle/cctp/v1/query.d.ts +1101 -0
  33. package/dist/codegen/circle/cctp/v1/query.js +2421 -0
  34. package/dist/codegen/circle/cctp/v1/query.js.map +1 -0
  35. package/dist/codegen/circle/cctp/v1/remote_token_messenger.d.ts +33 -0
  36. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +77 -0
  37. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js.map +1 -0
  38. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.d.ts +31 -0
  39. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +63 -0
  40. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js.map +1 -0
  41. package/dist/codegen/circle/cctp/v1/signature_threshold.d.ts +33 -0
  42. package/dist/codegen/circle/cctp/v1/signature_threshold.js +63 -0
  43. package/dist/codegen/circle/cctp/v1/signature_threshold.js.map +1 -0
  44. package/dist/codegen/circle/cctp/v1/token_pair.d.ts +45 -0
  45. package/dist/codegen/circle/cctp/v1/token_pair.js +91 -0
  46. package/dist/codegen/circle/cctp/v1/token_pair.js.map +1 -0
  47. package/dist/codegen/circle/cctp/v1/tx.d.ts +1102 -0
  48. package/dist/codegen/circle/cctp/v1/tx.js +3264 -0
  49. package/dist/codegen/circle/cctp/v1/tx.js.map +1 -0
  50. package/dist/codegen/cosmos/bundle.d.ts +4005 -4005
  51. package/dist/codegen/cosmos/bundle.js +126 -126
  52. package/dist/codegen/cosmos_proto/bundle.d.ts +21 -21
  53. package/dist/codegen/cosmos_proto/bundle.js +2 -2
  54. package/dist/codegen/gogoproto/bundle.js +2 -2
  55. package/dist/codegen/google/bundle.d.ts +277 -277
  56. package/dist/codegen/google/bundle.js +10 -10
  57. package/dist/codegen/google/bundle.js.map +1 -1
  58. package/dist/codegen/ibc/bundle.d.ts +1662 -1662
  59. package/dist/codegen/ibc/bundle.js +64 -64
  60. package/dist/codegen/ibc/bundle.js.map +1 -1
  61. package/dist/codegen/icq/bundle.d.ts +85 -85
  62. package/dist/codegen/icq/bundle.js +10 -10
  63. package/dist/codegen/ics23/bundle.d.ts +113 -113
  64. package/dist/codegen/ics23/bundle.js +2 -2
  65. package/dist/codegen/index.d.ts +2 -0
  66. package/dist/codegen/index.js +2 -0
  67. package/dist/codegen/index.js.map +1 -1
  68. package/dist/codegen/stride/bundle.d.ts +2607 -0
  69. package/dist/codegen/stride/bundle.js +71 -0
  70. package/dist/codegen/stride/bundle.js.map +1 -0
  71. package/dist/codegen/stride/epochs/genesis.d.ts +60 -0
  72. package/dist/codegen/stride/epochs/genesis.js +227 -0
  73. package/dist/codegen/stride/epochs/genesis.js.map +1 -0
  74. package/dist/codegen/stride/epochs/query.d.ts +132 -0
  75. package/dist/codegen/stride/epochs/query.js +398 -0
  76. package/dist/codegen/stride/epochs/query.js.map +1 -0
  77. package/dist/codegen/stride/records/callbacks.d.ts +45 -0
  78. package/dist/codegen/stride/records/callbacks.js +136 -0
  79. package/dist/codegen/stride/records/callbacks.js.map +1 -0
  80. package/dist/codegen/stride/records/genesis.d.ts +41 -0
  81. package/dist/codegen/stride/records/genesis.js +186 -0
  82. package/dist/codegen/stride/records/genesis.js.map +1 -0
  83. package/dist/codegen/stride/records/params.d.ts +23 -0
  84. package/dist/codegen/stride/records/params.js +50 -0
  85. package/dist/codegen/stride/records/params.js.map +1 -0
  86. package/dist/codegen/stride/records/query.d.ts +494 -0
  87. package/dist/codegen/stride/records/query.js +1552 -0
  88. package/dist/codegen/stride/records/query.js.map +1 -0
  89. package/dist/codegen/stride/records/records.d.ts +228 -0
  90. package/dist/codegen/stride/records/records.js +939 -0
  91. package/dist/codegen/stride/records/records.js.map +1 -0
  92. package/dist/codegen/stride/stakedym/genesis.d.ts +92 -0
  93. package/dist/codegen/stride/stakedym/genesis.js +312 -0
  94. package/dist/codegen/stride/stakedym/genesis.js.map +1 -0
  95. package/dist/codegen/stride/stakedym/query.d.ts +302 -0
  96. package/dist/codegen/stride/stakedym/query.js +887 -0
  97. package/dist/codegen/stride/stakedym/query.js.map +1 -0
  98. package/dist/codegen/stride/stakedym/stakedym.d.ts +303 -0
  99. package/dist/codegen/stride/stakedym/stakedym.js +909 -0
  100. package/dist/codegen/stride/stakedym/stakedym.js.map +1 -0
  101. package/dist/codegen/stride/stakedym/tx.d.ts +595 -0
  102. package/dist/codegen/stride/stakedym/tx.js +1661 -0
  103. package/dist/codegen/stride/stakedym/tx.js.map +1 -0
  104. package/dist/codegen/stride/stakeibc/address_unbonding.d.ts +35 -0
  105. package/dist/codegen/stride/stakeibc/address_unbonding.js +135 -0
  106. package/dist/codegen/stride/stakeibc/address_unbonding.js.map +1 -0
  107. package/dist/codegen/stride/stakeibc/callbacks.d.ts +357 -0
  108. package/dist/codegen/stride/stakeibc/callbacks.js +1191 -0
  109. package/dist/codegen/stride/stakeibc/callbacks.js.map +1 -0
  110. package/dist/codegen/stride/stakeibc/epoch_tracker.d.ts +29 -0
  111. package/dist/codegen/stride/stakeibc/epoch_tracker.js +115 -0
  112. package/dist/codegen/stride/stakeibc/epoch_tracker.js.map +1 -0
  113. package/dist/codegen/stride/stakeibc/genesis.d.ts +37 -0
  114. package/dist/codegen/stride/stakeibc/genesis.js +135 -0
  115. package/dist/codegen/stride/stakeibc/genesis.js.map +1 -0
  116. package/dist/codegen/stride/stakeibc/gov.d.ts +61 -0
  117. package/dist/codegen/stride/stakeibc/gov.js +212 -0
  118. package/dist/codegen/stride/stakeibc/gov.js.map +1 -0
  119. package/dist/codegen/stride/stakeibc/host_zone.d.ts +184 -0
  120. package/dist/codegen/stride/stakeibc/host_zone.js +544 -0
  121. package/dist/codegen/stride/stakeibc/host_zone.js.map +1 -0
  122. package/dist/codegen/stride/stakeibc/ica_account.d.ts +43 -0
  123. package/dist/codegen/stride/stakeibc/ica_account.js +165 -0
  124. package/dist/codegen/stride/stakeibc/ica_account.js.map +1 -0
  125. package/dist/codegen/stride/stakeibc/packet.d.ts +42 -0
  126. package/dist/codegen/stride/stakeibc/packet.js +113 -0
  127. package/dist/codegen/stride/stakeibc/packet.js.map +1 -0
  128. package/dist/codegen/stride/stakeibc/params.d.ts +62 -0
  129. package/dist/codegen/stride/stakeibc/params.js +317 -0
  130. package/dist/codegen/stride/stakeibc/params.js.map +1 -0
  131. package/dist/codegen/stride/stakeibc/query.d.ts +492 -0
  132. package/dist/codegen/stride/stakeibc/query.js +1372 -0
  133. package/dist/codegen/stride/stakeibc/query.js.map +1 -0
  134. package/dist/codegen/stride/stakeibc/trade_route.d.ts +170 -0
  135. package/dist/codegen/stride/stakeibc/trade_route.js +377 -0
  136. package/dist/codegen/stride/stakeibc/trade_route.js.map +1 -0
  137. package/dist/codegen/stride/stakeibc/tx.d.ts +1210 -0
  138. package/dist/codegen/stride/stakeibc/tx.js +3392 -0
  139. package/dist/codegen/stride/stakeibc/tx.js.map +1 -0
  140. package/dist/codegen/stride/stakeibc/validator.d.ts +39 -0
  141. package/dist/codegen/stride/stakeibc/validator.js +170 -0
  142. package/dist/codegen/stride/stakeibc/validator.js.map +1 -0
  143. package/dist/codegen/stride/staketia/genesis.d.ts +92 -0
  144. package/dist/codegen/stride/staketia/genesis.js +312 -0
  145. package/dist/codegen/stride/staketia/genesis.js.map +1 -0
  146. package/dist/codegen/stride/staketia/query.d.ts +302 -0
  147. package/dist/codegen/stride/staketia/query.js +887 -0
  148. package/dist/codegen/stride/staketia/query.js.map +1 -0
  149. package/dist/codegen/stride/staketia/staketia.d.ts +285 -0
  150. package/dist/codegen/stride/staketia/staketia.js +819 -0
  151. package/dist/codegen/stride/staketia/staketia.js.map +1 -0
  152. package/dist/codegen/stride/staketia/tx.d.ts +611 -0
  153. package/dist/codegen/stride/staketia/tx.js +1671 -0
  154. package/dist/codegen/stride/staketia/tx.js.map +1 -0
  155. package/dist/codegen/tendermint/bundle.d.ts +716 -716
  156. package/dist/codegen/tendermint/bundle.js +22 -22
  157. package/package.json +24 -8
@@ -0,0 +1,909 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from '../../binary.js';
3
+ import { Decimal, isSet } from '../../helpers.js';
4
+ import {} from '../../json-safe.js';
5
+ /**
6
+ * Status fields for a delegation record
7
+ * Note: There is an important assumption here that tokens in the deposit
8
+ * account should not be tracked by these records. The record is created as soon
9
+ * as the tokens leave stride
10
+ * Additionally, the GetActiveDelegationRecords query filters for records that
11
+ * are either TRANSFER_IN_PROGERSS or DELEGATION_QUEUE. If a new active status
12
+ * is added, the keeper must be modified
13
+ */
14
+ export var DelegationRecordStatus;
15
+ (function (DelegationRecordStatus) {
16
+ /**
17
+ * TRANSFER_IN_PROGRESS - TRANSFER_IN_PROGRESS indicates the native tokens are being sent from the
18
+ * deposit account to the delegation account
19
+ */
20
+ DelegationRecordStatus[DelegationRecordStatus["TRANSFER_IN_PROGRESS"] = 0] = "TRANSFER_IN_PROGRESS";
21
+ /**
22
+ * TRANSFER_FAILED - TRANSFER_FAILED indicates that the transfer either timed out or was an ack
23
+ * failure
24
+ */
25
+ DelegationRecordStatus[DelegationRecordStatus["TRANSFER_FAILED"] = 1] = "TRANSFER_FAILED";
26
+ /**
27
+ * DELEGATION_QUEUE - DELEGATION_QUEUE indicates the tokens have landed on the host zone and are
28
+ * ready to be delegated
29
+ */
30
+ DelegationRecordStatus[DelegationRecordStatus["DELEGATION_QUEUE"] = 2] = "DELEGATION_QUEUE";
31
+ /** DELEGATION_COMPLETE - DELEGATION_COMPLETE indicates the delegation has been completed */
32
+ DelegationRecordStatus[DelegationRecordStatus["DELEGATION_COMPLETE"] = 3] = "DELEGATION_COMPLETE";
33
+ DelegationRecordStatus[DelegationRecordStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
34
+ })(DelegationRecordStatus || (DelegationRecordStatus = {}));
35
+ export const DelegationRecordStatusSDKType = DelegationRecordStatus;
36
+ export function delegationRecordStatusFromJSON(object) {
37
+ switch (object) {
38
+ case 0:
39
+ case 'TRANSFER_IN_PROGRESS':
40
+ return DelegationRecordStatus.TRANSFER_IN_PROGRESS;
41
+ case 1:
42
+ case 'TRANSFER_FAILED':
43
+ return DelegationRecordStatus.TRANSFER_FAILED;
44
+ case 2:
45
+ case 'DELEGATION_QUEUE':
46
+ return DelegationRecordStatus.DELEGATION_QUEUE;
47
+ case 3:
48
+ case 'DELEGATION_COMPLETE':
49
+ return DelegationRecordStatus.DELEGATION_COMPLETE;
50
+ case -1:
51
+ case 'UNRECOGNIZED':
52
+ default:
53
+ return DelegationRecordStatus.UNRECOGNIZED;
54
+ }
55
+ }
56
+ export function delegationRecordStatusToJSON(object) {
57
+ switch (object) {
58
+ case DelegationRecordStatus.TRANSFER_IN_PROGRESS:
59
+ return 'TRANSFER_IN_PROGRESS';
60
+ case DelegationRecordStatus.TRANSFER_FAILED:
61
+ return 'TRANSFER_FAILED';
62
+ case DelegationRecordStatus.DELEGATION_QUEUE:
63
+ return 'DELEGATION_QUEUE';
64
+ case DelegationRecordStatus.DELEGATION_COMPLETE:
65
+ return 'DELEGATION_COMPLETE';
66
+ case DelegationRecordStatus.UNRECOGNIZED:
67
+ default:
68
+ return 'UNRECOGNIZED';
69
+ }
70
+ }
71
+ /** Status fields for an unbonding record */
72
+ export var UnbondingRecordStatus;
73
+ (function (UnbondingRecordStatus) {
74
+ /**
75
+ * ACCUMULATING_REDEMPTIONS - ACCUMULATING_REDEMPTIONS indicates redemptions are still being accumulated
76
+ * on this record
77
+ */
78
+ UnbondingRecordStatus[UnbondingRecordStatus["ACCUMULATING_REDEMPTIONS"] = 0] = "ACCUMULATING_REDEMPTIONS";
79
+ /**
80
+ * UNBONDING_QUEUE - UNBONDING_QUEUE indicates the unbond amount for this epoch has been froze
81
+ * and the tokens are ready to be unbonded on the host zone
82
+ */
83
+ UnbondingRecordStatus[UnbondingRecordStatus["UNBONDING_QUEUE"] = 1] = "UNBONDING_QUEUE";
84
+ /**
85
+ * UNBONDING_IN_PROGRESS - UNBONDING_IN_PROGRESS indicates the unbonding is currently in progress on
86
+ * the host zone
87
+ */
88
+ UnbondingRecordStatus[UnbondingRecordStatus["UNBONDING_IN_PROGRESS"] = 2] = "UNBONDING_IN_PROGRESS";
89
+ /**
90
+ * UNBONDED - UNBONDED indicates the unbonding is finished on the host zone and the
91
+ * tokens are still in the delegation account
92
+ */
93
+ UnbondingRecordStatus[UnbondingRecordStatus["UNBONDED"] = 3] = "UNBONDED";
94
+ /**
95
+ * CLAIMABLE - CLAIMABLE indicates the unbonded tokens have been swept to stride and are
96
+ * ready to be distributed to users
97
+ */
98
+ UnbondingRecordStatus[UnbondingRecordStatus["CLAIMABLE"] = 4] = "CLAIMABLE";
99
+ /** CLAIMED - CLAIMED indicates the full unbonding cycle has been completed */
100
+ UnbondingRecordStatus[UnbondingRecordStatus["CLAIMED"] = 5] = "CLAIMED";
101
+ UnbondingRecordStatus[UnbondingRecordStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
102
+ })(UnbondingRecordStatus || (UnbondingRecordStatus = {}));
103
+ export const UnbondingRecordStatusSDKType = UnbondingRecordStatus;
104
+ export function unbondingRecordStatusFromJSON(object) {
105
+ switch (object) {
106
+ case 0:
107
+ case 'ACCUMULATING_REDEMPTIONS':
108
+ return UnbondingRecordStatus.ACCUMULATING_REDEMPTIONS;
109
+ case 1:
110
+ case 'UNBONDING_QUEUE':
111
+ return UnbondingRecordStatus.UNBONDING_QUEUE;
112
+ case 2:
113
+ case 'UNBONDING_IN_PROGRESS':
114
+ return UnbondingRecordStatus.UNBONDING_IN_PROGRESS;
115
+ case 3:
116
+ case 'UNBONDED':
117
+ return UnbondingRecordStatus.UNBONDED;
118
+ case 4:
119
+ case 'CLAIMABLE':
120
+ return UnbondingRecordStatus.CLAIMABLE;
121
+ case 5:
122
+ case 'CLAIMED':
123
+ return UnbondingRecordStatus.CLAIMED;
124
+ case -1:
125
+ case 'UNRECOGNIZED':
126
+ default:
127
+ return UnbondingRecordStatus.UNRECOGNIZED;
128
+ }
129
+ }
130
+ export function unbondingRecordStatusToJSON(object) {
131
+ switch (object) {
132
+ case UnbondingRecordStatus.ACCUMULATING_REDEMPTIONS:
133
+ return 'ACCUMULATING_REDEMPTIONS';
134
+ case UnbondingRecordStatus.UNBONDING_QUEUE:
135
+ return 'UNBONDING_QUEUE';
136
+ case UnbondingRecordStatus.UNBONDING_IN_PROGRESS:
137
+ return 'UNBONDING_IN_PROGRESS';
138
+ case UnbondingRecordStatus.UNBONDED:
139
+ return 'UNBONDED';
140
+ case UnbondingRecordStatus.CLAIMABLE:
141
+ return 'CLAIMABLE';
142
+ case UnbondingRecordStatus.CLAIMED:
143
+ return 'CLAIMED';
144
+ case UnbondingRecordStatus.UNRECOGNIZED:
145
+ default:
146
+ return 'UNRECOGNIZED';
147
+ }
148
+ }
149
+ function createBaseHostZone() {
150
+ return {
151
+ chainId: '',
152
+ nativeTokenDenom: '',
153
+ nativeTokenIbcDenom: '',
154
+ transferChannelId: '',
155
+ delegationAddress: '',
156
+ rewardAddress: '',
157
+ depositAddress: '',
158
+ redemptionAddress: '',
159
+ claimAddress: '',
160
+ operatorAddressOnStride: '',
161
+ safeAddressOnStride: '',
162
+ lastRedemptionRate: '',
163
+ redemptionRate: '',
164
+ minRedemptionRate: '',
165
+ maxRedemptionRate: '',
166
+ minInnerRedemptionRate: '',
167
+ maxInnerRedemptionRate: '',
168
+ delegatedBalance: '',
169
+ unbondingPeriodSeconds: BigInt(0),
170
+ halted: false,
171
+ };
172
+ }
173
+ export const HostZone = {
174
+ typeUrl: '/stride.stakedym.HostZone',
175
+ encode(message, writer = BinaryWriter.create()) {
176
+ if (message.chainId !== '') {
177
+ writer.uint32(10).string(message.chainId);
178
+ }
179
+ if (message.nativeTokenDenom !== '') {
180
+ writer.uint32(18).string(message.nativeTokenDenom);
181
+ }
182
+ if (message.nativeTokenIbcDenom !== '') {
183
+ writer.uint32(26).string(message.nativeTokenIbcDenom);
184
+ }
185
+ if (message.transferChannelId !== '') {
186
+ writer.uint32(34).string(message.transferChannelId);
187
+ }
188
+ if (message.delegationAddress !== '') {
189
+ writer.uint32(42).string(message.delegationAddress);
190
+ }
191
+ if (message.rewardAddress !== '') {
192
+ writer.uint32(50).string(message.rewardAddress);
193
+ }
194
+ if (message.depositAddress !== '') {
195
+ writer.uint32(58).string(message.depositAddress);
196
+ }
197
+ if (message.redemptionAddress !== '') {
198
+ writer.uint32(66).string(message.redemptionAddress);
199
+ }
200
+ if (message.claimAddress !== '') {
201
+ writer.uint32(74).string(message.claimAddress);
202
+ }
203
+ if (message.operatorAddressOnStride !== '') {
204
+ writer.uint32(82).string(message.operatorAddressOnStride);
205
+ }
206
+ if (message.safeAddressOnStride !== '') {
207
+ writer.uint32(90).string(message.safeAddressOnStride);
208
+ }
209
+ if (message.lastRedemptionRate !== '') {
210
+ writer
211
+ .uint32(98)
212
+ .string(Decimal.fromUserInput(message.lastRedemptionRate, 18).atomics);
213
+ }
214
+ if (message.redemptionRate !== '') {
215
+ writer
216
+ .uint32(106)
217
+ .string(Decimal.fromUserInput(message.redemptionRate, 18).atomics);
218
+ }
219
+ if (message.minRedemptionRate !== '') {
220
+ writer
221
+ .uint32(114)
222
+ .string(Decimal.fromUserInput(message.minRedemptionRate, 18).atomics);
223
+ }
224
+ if (message.maxRedemptionRate !== '') {
225
+ writer
226
+ .uint32(122)
227
+ .string(Decimal.fromUserInput(message.maxRedemptionRate, 18).atomics);
228
+ }
229
+ if (message.minInnerRedemptionRate !== '') {
230
+ writer
231
+ .uint32(130)
232
+ .string(Decimal.fromUserInput(message.minInnerRedemptionRate, 18).atomics);
233
+ }
234
+ if (message.maxInnerRedemptionRate !== '') {
235
+ writer
236
+ .uint32(138)
237
+ .string(Decimal.fromUserInput(message.maxInnerRedemptionRate, 18).atomics);
238
+ }
239
+ if (message.delegatedBalance !== '') {
240
+ writer.uint32(146).string(message.delegatedBalance);
241
+ }
242
+ if (message.unbondingPeriodSeconds !== BigInt(0)) {
243
+ writer.uint32(152).uint64(message.unbondingPeriodSeconds);
244
+ }
245
+ if (message.halted === true) {
246
+ writer.uint32(160).bool(message.halted);
247
+ }
248
+ return writer;
249
+ },
250
+ decode(input, length) {
251
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
252
+ let end = length === undefined ? reader.len : reader.pos + length;
253
+ const message = createBaseHostZone();
254
+ while (reader.pos < end) {
255
+ const tag = reader.uint32();
256
+ switch (tag >>> 3) {
257
+ case 1:
258
+ message.chainId = reader.string();
259
+ break;
260
+ case 2:
261
+ message.nativeTokenDenom = reader.string();
262
+ break;
263
+ case 3:
264
+ message.nativeTokenIbcDenom = reader.string();
265
+ break;
266
+ case 4:
267
+ message.transferChannelId = reader.string();
268
+ break;
269
+ case 5:
270
+ message.delegationAddress = reader.string();
271
+ break;
272
+ case 6:
273
+ message.rewardAddress = reader.string();
274
+ break;
275
+ case 7:
276
+ message.depositAddress = reader.string();
277
+ break;
278
+ case 8:
279
+ message.redemptionAddress = reader.string();
280
+ break;
281
+ case 9:
282
+ message.claimAddress = reader.string();
283
+ break;
284
+ case 10:
285
+ message.operatorAddressOnStride = reader.string();
286
+ break;
287
+ case 11:
288
+ message.safeAddressOnStride = reader.string();
289
+ break;
290
+ case 12:
291
+ message.lastRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
292
+ break;
293
+ case 13:
294
+ message.redemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
295
+ break;
296
+ case 14:
297
+ message.minRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
298
+ break;
299
+ case 15:
300
+ message.maxRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
301
+ break;
302
+ case 16:
303
+ message.minInnerRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
304
+ break;
305
+ case 17:
306
+ message.maxInnerRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
307
+ break;
308
+ case 18:
309
+ message.delegatedBalance = reader.string();
310
+ break;
311
+ case 19:
312
+ message.unbondingPeriodSeconds = reader.uint64();
313
+ break;
314
+ case 20:
315
+ message.halted = reader.bool();
316
+ break;
317
+ default:
318
+ reader.skipType(tag & 7);
319
+ break;
320
+ }
321
+ }
322
+ return message;
323
+ },
324
+ fromJSON(object) {
325
+ return {
326
+ chainId: isSet(object.chainId) ? String(object.chainId) : '',
327
+ nativeTokenDenom: isSet(object.nativeTokenDenom)
328
+ ? String(object.nativeTokenDenom)
329
+ : '',
330
+ nativeTokenIbcDenom: isSet(object.nativeTokenIbcDenom)
331
+ ? String(object.nativeTokenIbcDenom)
332
+ : '',
333
+ transferChannelId: isSet(object.transferChannelId)
334
+ ? String(object.transferChannelId)
335
+ : '',
336
+ delegationAddress: isSet(object.delegationAddress)
337
+ ? String(object.delegationAddress)
338
+ : '',
339
+ rewardAddress: isSet(object.rewardAddress)
340
+ ? String(object.rewardAddress)
341
+ : '',
342
+ depositAddress: isSet(object.depositAddress)
343
+ ? String(object.depositAddress)
344
+ : '',
345
+ redemptionAddress: isSet(object.redemptionAddress)
346
+ ? String(object.redemptionAddress)
347
+ : '',
348
+ claimAddress: isSet(object.claimAddress)
349
+ ? String(object.claimAddress)
350
+ : '',
351
+ operatorAddressOnStride: isSet(object.operatorAddressOnStride)
352
+ ? String(object.operatorAddressOnStride)
353
+ : '',
354
+ safeAddressOnStride: isSet(object.safeAddressOnStride)
355
+ ? String(object.safeAddressOnStride)
356
+ : '',
357
+ lastRedemptionRate: isSet(object.lastRedemptionRate)
358
+ ? String(object.lastRedemptionRate)
359
+ : '',
360
+ redemptionRate: isSet(object.redemptionRate)
361
+ ? String(object.redemptionRate)
362
+ : '',
363
+ minRedemptionRate: isSet(object.minRedemptionRate)
364
+ ? String(object.minRedemptionRate)
365
+ : '',
366
+ maxRedemptionRate: isSet(object.maxRedemptionRate)
367
+ ? String(object.maxRedemptionRate)
368
+ : '',
369
+ minInnerRedemptionRate: isSet(object.minInnerRedemptionRate)
370
+ ? String(object.minInnerRedemptionRate)
371
+ : '',
372
+ maxInnerRedemptionRate: isSet(object.maxInnerRedemptionRate)
373
+ ? String(object.maxInnerRedemptionRate)
374
+ : '',
375
+ delegatedBalance: isSet(object.delegatedBalance)
376
+ ? String(object.delegatedBalance)
377
+ : '',
378
+ unbondingPeriodSeconds: isSet(object.unbondingPeriodSeconds)
379
+ ? BigInt(object.unbondingPeriodSeconds.toString())
380
+ : BigInt(0),
381
+ halted: isSet(object.halted) ? Boolean(object.halted) : false,
382
+ };
383
+ },
384
+ toJSON(message) {
385
+ const obj = {};
386
+ message.chainId !== undefined && (obj.chainId = message.chainId);
387
+ message.nativeTokenDenom !== undefined &&
388
+ (obj.nativeTokenDenom = message.nativeTokenDenom);
389
+ message.nativeTokenIbcDenom !== undefined &&
390
+ (obj.nativeTokenIbcDenom = message.nativeTokenIbcDenom);
391
+ message.transferChannelId !== undefined &&
392
+ (obj.transferChannelId = message.transferChannelId);
393
+ message.delegationAddress !== undefined &&
394
+ (obj.delegationAddress = message.delegationAddress);
395
+ message.rewardAddress !== undefined &&
396
+ (obj.rewardAddress = message.rewardAddress);
397
+ message.depositAddress !== undefined &&
398
+ (obj.depositAddress = message.depositAddress);
399
+ message.redemptionAddress !== undefined &&
400
+ (obj.redemptionAddress = message.redemptionAddress);
401
+ message.claimAddress !== undefined &&
402
+ (obj.claimAddress = message.claimAddress);
403
+ message.operatorAddressOnStride !== undefined &&
404
+ (obj.operatorAddressOnStride = message.operatorAddressOnStride);
405
+ message.safeAddressOnStride !== undefined &&
406
+ (obj.safeAddressOnStride = message.safeAddressOnStride);
407
+ message.lastRedemptionRate !== undefined &&
408
+ (obj.lastRedemptionRate = message.lastRedemptionRate);
409
+ message.redemptionRate !== undefined &&
410
+ (obj.redemptionRate = message.redemptionRate);
411
+ message.minRedemptionRate !== undefined &&
412
+ (obj.minRedemptionRate = message.minRedemptionRate);
413
+ message.maxRedemptionRate !== undefined &&
414
+ (obj.maxRedemptionRate = message.maxRedemptionRate);
415
+ message.minInnerRedemptionRate !== undefined &&
416
+ (obj.minInnerRedemptionRate = message.minInnerRedemptionRate);
417
+ message.maxInnerRedemptionRate !== undefined &&
418
+ (obj.maxInnerRedemptionRate = message.maxInnerRedemptionRate);
419
+ message.delegatedBalance !== undefined &&
420
+ (obj.delegatedBalance = message.delegatedBalance);
421
+ message.unbondingPeriodSeconds !== undefined &&
422
+ (obj.unbondingPeriodSeconds = (message.unbondingPeriodSeconds || BigInt(0)).toString());
423
+ message.halted !== undefined && (obj.halted = message.halted);
424
+ return obj;
425
+ },
426
+ fromPartial(object) {
427
+ const message = createBaseHostZone();
428
+ message.chainId = object.chainId ?? '';
429
+ message.nativeTokenDenom = object.nativeTokenDenom ?? '';
430
+ message.nativeTokenIbcDenom = object.nativeTokenIbcDenom ?? '';
431
+ message.transferChannelId = object.transferChannelId ?? '';
432
+ message.delegationAddress = object.delegationAddress ?? '';
433
+ message.rewardAddress = object.rewardAddress ?? '';
434
+ message.depositAddress = object.depositAddress ?? '';
435
+ message.redemptionAddress = object.redemptionAddress ?? '';
436
+ message.claimAddress = object.claimAddress ?? '';
437
+ message.operatorAddressOnStride = object.operatorAddressOnStride ?? '';
438
+ message.safeAddressOnStride = object.safeAddressOnStride ?? '';
439
+ message.lastRedemptionRate = object.lastRedemptionRate ?? '';
440
+ message.redemptionRate = object.redemptionRate ?? '';
441
+ message.minRedemptionRate = object.minRedemptionRate ?? '';
442
+ message.maxRedemptionRate = object.maxRedemptionRate ?? '';
443
+ message.minInnerRedemptionRate = object.minInnerRedemptionRate ?? '';
444
+ message.maxInnerRedemptionRate = object.maxInnerRedemptionRate ?? '';
445
+ message.delegatedBalance = object.delegatedBalance ?? '';
446
+ message.unbondingPeriodSeconds =
447
+ object.unbondingPeriodSeconds !== undefined &&
448
+ object.unbondingPeriodSeconds !== null
449
+ ? BigInt(object.unbondingPeriodSeconds.toString())
450
+ : BigInt(0);
451
+ message.halted = object.halted ?? false;
452
+ return message;
453
+ },
454
+ fromProtoMsg(message) {
455
+ return HostZone.decode(message.value);
456
+ },
457
+ toProto(message) {
458
+ return HostZone.encode(message).finish();
459
+ },
460
+ toProtoMsg(message) {
461
+ return {
462
+ typeUrl: '/stride.stakedym.HostZone',
463
+ value: HostZone.encode(message).finish(),
464
+ };
465
+ },
466
+ };
467
+ function createBaseDelegationRecord() {
468
+ return {
469
+ id: BigInt(0),
470
+ nativeAmount: '',
471
+ status: 0,
472
+ txHash: '',
473
+ };
474
+ }
475
+ export const DelegationRecord = {
476
+ typeUrl: '/stride.stakedym.DelegationRecord',
477
+ encode(message, writer = BinaryWriter.create()) {
478
+ if (message.id !== BigInt(0)) {
479
+ writer.uint32(8).uint64(message.id);
480
+ }
481
+ if (message.nativeAmount !== '') {
482
+ writer.uint32(18).string(message.nativeAmount);
483
+ }
484
+ if (message.status !== 0) {
485
+ writer.uint32(24).int32(message.status);
486
+ }
487
+ if (message.txHash !== '') {
488
+ writer.uint32(34).string(message.txHash);
489
+ }
490
+ return writer;
491
+ },
492
+ decode(input, length) {
493
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
494
+ let end = length === undefined ? reader.len : reader.pos + length;
495
+ const message = createBaseDelegationRecord();
496
+ while (reader.pos < end) {
497
+ const tag = reader.uint32();
498
+ switch (tag >>> 3) {
499
+ case 1:
500
+ message.id = reader.uint64();
501
+ break;
502
+ case 2:
503
+ message.nativeAmount = reader.string();
504
+ break;
505
+ case 3:
506
+ message.status = reader.int32();
507
+ break;
508
+ case 4:
509
+ message.txHash = reader.string();
510
+ break;
511
+ default:
512
+ reader.skipType(tag & 7);
513
+ break;
514
+ }
515
+ }
516
+ return message;
517
+ },
518
+ fromJSON(object) {
519
+ return {
520
+ id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0),
521
+ nativeAmount: isSet(object.nativeAmount)
522
+ ? String(object.nativeAmount)
523
+ : '',
524
+ status: isSet(object.status)
525
+ ? delegationRecordStatusFromJSON(object.status)
526
+ : -1,
527
+ txHash: isSet(object.txHash) ? String(object.txHash) : '',
528
+ };
529
+ },
530
+ toJSON(message) {
531
+ const obj = {};
532
+ message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString());
533
+ message.nativeAmount !== undefined &&
534
+ (obj.nativeAmount = message.nativeAmount);
535
+ message.status !== undefined &&
536
+ (obj.status = delegationRecordStatusToJSON(message.status));
537
+ message.txHash !== undefined && (obj.txHash = message.txHash);
538
+ return obj;
539
+ },
540
+ fromPartial(object) {
541
+ const message = createBaseDelegationRecord();
542
+ message.id =
543
+ object.id !== undefined && object.id !== null
544
+ ? BigInt(object.id.toString())
545
+ : BigInt(0);
546
+ message.nativeAmount = object.nativeAmount ?? '';
547
+ message.status = object.status ?? 0;
548
+ message.txHash = object.txHash ?? '';
549
+ return message;
550
+ },
551
+ fromProtoMsg(message) {
552
+ return DelegationRecord.decode(message.value);
553
+ },
554
+ toProto(message) {
555
+ return DelegationRecord.encode(message).finish();
556
+ },
557
+ toProtoMsg(message) {
558
+ return {
559
+ typeUrl: '/stride.stakedym.DelegationRecord',
560
+ value: DelegationRecord.encode(message).finish(),
561
+ };
562
+ },
563
+ };
564
+ function createBaseUnbondingRecord() {
565
+ return {
566
+ id: BigInt(0),
567
+ status: 0,
568
+ stTokenAmount: '',
569
+ nativeAmount: '',
570
+ unbondingCompletionTimeSeconds: BigInt(0),
571
+ undelegationTxHash: '',
572
+ unbondedTokenSweepTxHash: '',
573
+ };
574
+ }
575
+ export const UnbondingRecord = {
576
+ typeUrl: '/stride.stakedym.UnbondingRecord',
577
+ encode(message, writer = BinaryWriter.create()) {
578
+ if (message.id !== BigInt(0)) {
579
+ writer.uint32(8).uint64(message.id);
580
+ }
581
+ if (message.status !== 0) {
582
+ writer.uint32(16).int32(message.status);
583
+ }
584
+ if (message.stTokenAmount !== '') {
585
+ writer.uint32(26).string(message.stTokenAmount);
586
+ }
587
+ if (message.nativeAmount !== '') {
588
+ writer.uint32(34).string(message.nativeAmount);
589
+ }
590
+ if (message.unbondingCompletionTimeSeconds !== BigInt(0)) {
591
+ writer.uint32(40).uint64(message.unbondingCompletionTimeSeconds);
592
+ }
593
+ if (message.undelegationTxHash !== '') {
594
+ writer.uint32(50).string(message.undelegationTxHash);
595
+ }
596
+ if (message.unbondedTokenSweepTxHash !== '') {
597
+ writer.uint32(58).string(message.unbondedTokenSweepTxHash);
598
+ }
599
+ return writer;
600
+ },
601
+ decode(input, length) {
602
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
603
+ let end = length === undefined ? reader.len : reader.pos + length;
604
+ const message = createBaseUnbondingRecord();
605
+ while (reader.pos < end) {
606
+ const tag = reader.uint32();
607
+ switch (tag >>> 3) {
608
+ case 1:
609
+ message.id = reader.uint64();
610
+ break;
611
+ case 2:
612
+ message.status = reader.int32();
613
+ break;
614
+ case 3:
615
+ message.stTokenAmount = reader.string();
616
+ break;
617
+ case 4:
618
+ message.nativeAmount = reader.string();
619
+ break;
620
+ case 5:
621
+ message.unbondingCompletionTimeSeconds = reader.uint64();
622
+ break;
623
+ case 6:
624
+ message.undelegationTxHash = reader.string();
625
+ break;
626
+ case 7:
627
+ message.unbondedTokenSweepTxHash = reader.string();
628
+ break;
629
+ default:
630
+ reader.skipType(tag & 7);
631
+ break;
632
+ }
633
+ }
634
+ return message;
635
+ },
636
+ fromJSON(object) {
637
+ return {
638
+ id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0),
639
+ status: isSet(object.status)
640
+ ? unbondingRecordStatusFromJSON(object.status)
641
+ : -1,
642
+ stTokenAmount: isSet(object.stTokenAmount)
643
+ ? String(object.stTokenAmount)
644
+ : '',
645
+ nativeAmount: isSet(object.nativeAmount)
646
+ ? String(object.nativeAmount)
647
+ : '',
648
+ unbondingCompletionTimeSeconds: isSet(object.unbondingCompletionTimeSeconds)
649
+ ? BigInt(object.unbondingCompletionTimeSeconds.toString())
650
+ : BigInt(0),
651
+ undelegationTxHash: isSet(object.undelegationTxHash)
652
+ ? String(object.undelegationTxHash)
653
+ : '',
654
+ unbondedTokenSweepTxHash: isSet(object.unbondedTokenSweepTxHash)
655
+ ? String(object.unbondedTokenSweepTxHash)
656
+ : '',
657
+ };
658
+ },
659
+ toJSON(message) {
660
+ const obj = {};
661
+ message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString());
662
+ message.status !== undefined &&
663
+ (obj.status = unbondingRecordStatusToJSON(message.status));
664
+ message.stTokenAmount !== undefined &&
665
+ (obj.stTokenAmount = message.stTokenAmount);
666
+ message.nativeAmount !== undefined &&
667
+ (obj.nativeAmount = message.nativeAmount);
668
+ message.unbondingCompletionTimeSeconds !== undefined &&
669
+ (obj.unbondingCompletionTimeSeconds = (message.unbondingCompletionTimeSeconds || BigInt(0)).toString());
670
+ message.undelegationTxHash !== undefined &&
671
+ (obj.undelegationTxHash = message.undelegationTxHash);
672
+ message.unbondedTokenSweepTxHash !== undefined &&
673
+ (obj.unbondedTokenSweepTxHash = message.unbondedTokenSweepTxHash);
674
+ return obj;
675
+ },
676
+ fromPartial(object) {
677
+ const message = createBaseUnbondingRecord();
678
+ message.id =
679
+ object.id !== undefined && object.id !== null
680
+ ? BigInt(object.id.toString())
681
+ : BigInt(0);
682
+ message.status = object.status ?? 0;
683
+ message.stTokenAmount = object.stTokenAmount ?? '';
684
+ message.nativeAmount = object.nativeAmount ?? '';
685
+ message.unbondingCompletionTimeSeconds =
686
+ object.unbondingCompletionTimeSeconds !== undefined &&
687
+ object.unbondingCompletionTimeSeconds !== null
688
+ ? BigInt(object.unbondingCompletionTimeSeconds.toString())
689
+ : BigInt(0);
690
+ message.undelegationTxHash = object.undelegationTxHash ?? '';
691
+ message.unbondedTokenSweepTxHash = object.unbondedTokenSweepTxHash ?? '';
692
+ return message;
693
+ },
694
+ fromProtoMsg(message) {
695
+ return UnbondingRecord.decode(message.value);
696
+ },
697
+ toProto(message) {
698
+ return UnbondingRecord.encode(message).finish();
699
+ },
700
+ toProtoMsg(message) {
701
+ return {
702
+ typeUrl: '/stride.stakedym.UnbondingRecord',
703
+ value: UnbondingRecord.encode(message).finish(),
704
+ };
705
+ },
706
+ };
707
+ function createBaseRedemptionRecord() {
708
+ return {
709
+ unbondingRecordId: BigInt(0),
710
+ redeemer: '',
711
+ stTokenAmount: '',
712
+ nativeAmount: '',
713
+ };
714
+ }
715
+ export const RedemptionRecord = {
716
+ typeUrl: '/stride.stakedym.RedemptionRecord',
717
+ encode(message, writer = BinaryWriter.create()) {
718
+ if (message.unbondingRecordId !== BigInt(0)) {
719
+ writer.uint32(8).uint64(message.unbondingRecordId);
720
+ }
721
+ if (message.redeemer !== '') {
722
+ writer.uint32(18).string(message.redeemer);
723
+ }
724
+ if (message.stTokenAmount !== '') {
725
+ writer.uint32(26).string(message.stTokenAmount);
726
+ }
727
+ if (message.nativeAmount !== '') {
728
+ writer.uint32(34).string(message.nativeAmount);
729
+ }
730
+ return writer;
731
+ },
732
+ decode(input, length) {
733
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
734
+ let end = length === undefined ? reader.len : reader.pos + length;
735
+ const message = createBaseRedemptionRecord();
736
+ while (reader.pos < end) {
737
+ const tag = reader.uint32();
738
+ switch (tag >>> 3) {
739
+ case 1:
740
+ message.unbondingRecordId = reader.uint64();
741
+ break;
742
+ case 2:
743
+ message.redeemer = reader.string();
744
+ break;
745
+ case 3:
746
+ message.stTokenAmount = reader.string();
747
+ break;
748
+ case 4:
749
+ message.nativeAmount = reader.string();
750
+ break;
751
+ default:
752
+ reader.skipType(tag & 7);
753
+ break;
754
+ }
755
+ }
756
+ return message;
757
+ },
758
+ fromJSON(object) {
759
+ return {
760
+ unbondingRecordId: isSet(object.unbondingRecordId)
761
+ ? BigInt(object.unbondingRecordId.toString())
762
+ : BigInt(0),
763
+ redeemer: isSet(object.redeemer) ? String(object.redeemer) : '',
764
+ stTokenAmount: isSet(object.stTokenAmount)
765
+ ? String(object.stTokenAmount)
766
+ : '',
767
+ nativeAmount: isSet(object.nativeAmount)
768
+ ? String(object.nativeAmount)
769
+ : '',
770
+ };
771
+ },
772
+ toJSON(message) {
773
+ const obj = {};
774
+ message.unbondingRecordId !== undefined &&
775
+ (obj.unbondingRecordId = (message.unbondingRecordId || BigInt(0)).toString());
776
+ message.redeemer !== undefined && (obj.redeemer = message.redeemer);
777
+ message.stTokenAmount !== undefined &&
778
+ (obj.stTokenAmount = message.stTokenAmount);
779
+ message.nativeAmount !== undefined &&
780
+ (obj.nativeAmount = message.nativeAmount);
781
+ return obj;
782
+ },
783
+ fromPartial(object) {
784
+ const message = createBaseRedemptionRecord();
785
+ message.unbondingRecordId =
786
+ object.unbondingRecordId !== undefined &&
787
+ object.unbondingRecordId !== null
788
+ ? BigInt(object.unbondingRecordId.toString())
789
+ : BigInt(0);
790
+ message.redeemer = object.redeemer ?? '';
791
+ message.stTokenAmount = object.stTokenAmount ?? '';
792
+ message.nativeAmount = object.nativeAmount ?? '';
793
+ return message;
794
+ },
795
+ fromProtoMsg(message) {
796
+ return RedemptionRecord.decode(message.value);
797
+ },
798
+ toProto(message) {
799
+ return RedemptionRecord.encode(message).finish();
800
+ },
801
+ toProtoMsg(message) {
802
+ return {
803
+ typeUrl: '/stride.stakedym.RedemptionRecord',
804
+ value: RedemptionRecord.encode(message).finish(),
805
+ };
806
+ },
807
+ };
808
+ function createBaseSlashRecord() {
809
+ return {
810
+ id: BigInt(0),
811
+ time: BigInt(0),
812
+ nativeAmount: '',
813
+ validatorAddress: '',
814
+ };
815
+ }
816
+ export const SlashRecord = {
817
+ typeUrl: '/stride.stakedym.SlashRecord',
818
+ encode(message, writer = BinaryWriter.create()) {
819
+ if (message.id !== BigInt(0)) {
820
+ writer.uint32(8).uint64(message.id);
821
+ }
822
+ if (message.time !== BigInt(0)) {
823
+ writer.uint32(16).uint64(message.time);
824
+ }
825
+ if (message.nativeAmount !== '') {
826
+ writer.uint32(26).string(message.nativeAmount);
827
+ }
828
+ if (message.validatorAddress !== '') {
829
+ writer.uint32(34).string(message.validatorAddress);
830
+ }
831
+ return writer;
832
+ },
833
+ decode(input, length) {
834
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
835
+ let end = length === undefined ? reader.len : reader.pos + length;
836
+ const message = createBaseSlashRecord();
837
+ while (reader.pos < end) {
838
+ const tag = reader.uint32();
839
+ switch (tag >>> 3) {
840
+ case 1:
841
+ message.id = reader.uint64();
842
+ break;
843
+ case 2:
844
+ message.time = reader.uint64();
845
+ break;
846
+ case 3:
847
+ message.nativeAmount = reader.string();
848
+ break;
849
+ case 4:
850
+ message.validatorAddress = reader.string();
851
+ break;
852
+ default:
853
+ reader.skipType(tag & 7);
854
+ break;
855
+ }
856
+ }
857
+ return message;
858
+ },
859
+ fromJSON(object) {
860
+ return {
861
+ id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0),
862
+ time: isSet(object.time) ? BigInt(object.time.toString()) : BigInt(0),
863
+ nativeAmount: isSet(object.nativeAmount)
864
+ ? String(object.nativeAmount)
865
+ : '',
866
+ validatorAddress: isSet(object.validatorAddress)
867
+ ? String(object.validatorAddress)
868
+ : '',
869
+ };
870
+ },
871
+ toJSON(message) {
872
+ const obj = {};
873
+ message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString());
874
+ message.time !== undefined &&
875
+ (obj.time = (message.time || BigInt(0)).toString());
876
+ message.nativeAmount !== undefined &&
877
+ (obj.nativeAmount = message.nativeAmount);
878
+ message.validatorAddress !== undefined &&
879
+ (obj.validatorAddress = message.validatorAddress);
880
+ return obj;
881
+ },
882
+ fromPartial(object) {
883
+ const message = createBaseSlashRecord();
884
+ message.id =
885
+ object.id !== undefined && object.id !== null
886
+ ? BigInt(object.id.toString())
887
+ : BigInt(0);
888
+ message.time =
889
+ object.time !== undefined && object.time !== null
890
+ ? BigInt(object.time.toString())
891
+ : BigInt(0);
892
+ message.nativeAmount = object.nativeAmount ?? '';
893
+ message.validatorAddress = object.validatorAddress ?? '';
894
+ return message;
895
+ },
896
+ fromProtoMsg(message) {
897
+ return SlashRecord.decode(message.value);
898
+ },
899
+ toProto(message) {
900
+ return SlashRecord.encode(message).finish();
901
+ },
902
+ toProtoMsg(message) {
903
+ return {
904
+ typeUrl: '/stride.stakedym.SlashRecord',
905
+ value: SlashRecord.encode(message).finish(),
906
+ };
907
+ },
908
+ };
909
+ //# sourceMappingURL=stakedym.js.map