@agoric/cosmic-proto 0.4.1-dev-9f8732f.0 → 0.4.1-dev-1cee3dd.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 (205) hide show
  1. package/dist/address-hooks.js +1 -217
  2. package/dist/codegen/agoric/bundle.js +1 -51
  3. package/dist/codegen/agoric/lien/genesis.js +1 -143
  4. package/dist/codegen/agoric/lien/lien.js +1 -87
  5. package/dist/codegen/agoric/swingset/genesis.js +1 -181
  6. package/dist/codegen/agoric/swingset/msgs.js +1 -700
  7. package/dist/codegen/agoric/swingset/query.js +1 -356
  8. package/dist/codegen/agoric/swingset/swingset.js +1 -816
  9. package/dist/codegen/agoric/vbank/genesis.js +1 -82
  10. package/dist/codegen/agoric/vbank/msgs.js +1 -2
  11. package/dist/codegen/agoric/vbank/query.js +1 -222
  12. package/dist/codegen/agoric/vbank/vbank.js +1 -237
  13. package/dist/codegen/agoric/vibc/msgs.js +1 -127
  14. package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
  15. package/dist/codegen/agoric/vstorage/genesis.js +1 -138
  16. package/dist/codegen/agoric/vstorage/query.js +1 -441
  17. package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
  18. package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
  19. package/dist/codegen/amino/amino.js +1 -2
  20. package/dist/codegen/amino/bundle.js +1 -6
  21. package/dist/codegen/binary.js +1 -367
  22. package/dist/codegen/circle/bundle.js +1 -40
  23. package/dist/codegen/circle/cctp/v1/attester.js +1 -63
  24. package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
  25. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
  26. package/dist/codegen/circle/cctp/v1/events.js +1 -1612
  27. package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
  28. package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
  29. package/dist/codegen/circle/cctp/v1/message.js +1 -160
  30. package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
  31. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
  32. package/dist/codegen/circle/cctp/v1/query.js +1 -2421
  33. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
  34. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
  35. package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
  36. package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
  37. package/dist/codegen/circle/cctp/v1/tx.js +1 -356
  38. package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
  39. package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
  40. package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
  41. package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
  42. package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
  43. package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
  44. package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
  45. package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
  46. package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
  47. package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
  48. package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
  49. package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
  50. package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
  51. package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
  52. package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
  53. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
  54. package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
  55. package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
  56. package/dist/codegen/cosmos/bundle.js +1 -249
  57. package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
  58. package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
  59. package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
  60. package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
  61. package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
  62. package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
  63. package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
  64. package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
  65. package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
  66. package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
  67. package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
  68. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
  69. package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
  70. package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
  71. package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
  72. package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
  73. package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
  74. package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
  75. package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
  76. package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
  77. package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
  78. package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
  79. package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
  80. package/dist/codegen/cosmos/group/v1/events.js +1 -696
  81. package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
  82. package/dist/codegen/cosmos/group/v1/query.js +1 -2096
  83. package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
  84. package/dist/codegen/cosmos/group/v1/types.js +1 -1387
  85. package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
  86. package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
  87. package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
  88. package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
  89. package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
  90. package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
  91. package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
  92. package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
  93. package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
  94. package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
  95. package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
  96. package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
  97. package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
  98. package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
  99. package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
  100. package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
  101. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
  102. package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
  103. package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
  104. package/dist/codegen/cosmos_proto/bundle.js +1 -6
  105. package/dist/codegen/cosmos_proto/cosmos.js +1 -208
  106. package/dist/codegen/gogoproto/bundle.js +1 -6
  107. package/dist/codegen/gogoproto/gogo.js +1 -2
  108. package/dist/codegen/google/api/annotations.js +1 -2
  109. package/dist/codegen/google/api/http.js +1 -319
  110. package/dist/codegen/google/bundle.js +1 -17
  111. package/dist/codegen/google/protobuf/any.js +1 -77
  112. package/dist/codegen/google/protobuf/descriptor.js +1 -3421
  113. package/dist/codegen/google/protobuf/duration.js +1 -79
  114. package/dist/codegen/google/protobuf/empty.js +1 -50
  115. package/dist/codegen/google/protobuf/timestamp.js +1 -79
  116. package/dist/codegen/helpers.js +1 -196
  117. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
  118. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
  119. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
  120. package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
  121. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
  122. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
  123. package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
  124. package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
  125. package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
  126. package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
  127. package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
  128. package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
  129. package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
  130. package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
  131. package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
  132. package/dist/codegen/ibc/bundle.js +1 -142
  133. package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
  134. package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
  135. package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
  136. package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
  137. package/dist/codegen/ibc/core/client/v1/client.js +1 -583
  138. package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
  139. package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
  140. package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
  141. package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
  142. package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
  143. package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
  144. package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
  145. package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
  146. package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
  147. package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
  148. package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
  149. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
  150. package/dist/codegen/icq/bundle.js +1 -17
  151. package/dist/codegen/icq/v1/genesis.js +1 -78
  152. package/dist/codegen/icq/v1/icq.js +1 -83
  153. package/dist/codegen/icq/v1/packet.js +1 -270
  154. package/dist/codegen/icq/v1/query.js +1 -114
  155. package/dist/codegen/icq/v1/tx.js +1 -124
  156. package/dist/codegen/ics23/bundle.js +1 -6
  157. package/dist/codegen/index.js +1 -23
  158. package/dist/codegen/json-safe.js +1 -8
  159. package/dist/codegen/proofs.js +1 -1436
  160. package/dist/codegen/stride/bundle.js +1 -71
  161. package/dist/codegen/stride/epochs/genesis.js +1 -227
  162. package/dist/codegen/stride/epochs/query.js +1 -398
  163. package/dist/codegen/stride/records/callbacks.js +1 -136
  164. package/dist/codegen/stride/records/genesis.js +1 -186
  165. package/dist/codegen/stride/records/params.js +1 -50
  166. package/dist/codegen/stride/records/query.js +1 -1552
  167. package/dist/codegen/stride/records/records.js +1 -939
  168. package/dist/codegen/stride/stakedym/genesis.js +1 -312
  169. package/dist/codegen/stride/stakedym/query.js +1 -887
  170. package/dist/codegen/stride/stakedym/stakedym.js +1 -909
  171. package/dist/codegen/stride/stakedym/tx.js +1 -1661
  172. package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
  173. package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
  174. package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
  175. package/dist/codegen/stride/stakeibc/genesis.js +1 -135
  176. package/dist/codegen/stride/stakeibc/gov.js +1 -212
  177. package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
  178. package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
  179. package/dist/codegen/stride/stakeibc/packet.js +1 -113
  180. package/dist/codegen/stride/stakeibc/params.js +1 -317
  181. package/dist/codegen/stride/stakeibc/query.js +1 -1372
  182. package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
  183. package/dist/codegen/stride/stakeibc/tx.js +1 -3392
  184. package/dist/codegen/stride/stakeibc/validator.js +1 -170
  185. package/dist/codegen/stride/staketia/genesis.js +1 -312
  186. package/dist/codegen/stride/staketia/query.js +1 -887
  187. package/dist/codegen/stride/staketia/staketia.js +1 -819
  188. package/dist/codegen/stride/staketia/tx.js +1 -1671
  189. package/dist/codegen/tendermint/abci/types.js +1 -1922
  190. package/dist/codegen/tendermint/bundle.js +1 -42
  191. package/dist/codegen/tendermint/crypto/keys.js +1 -85
  192. package/dist/codegen/tendermint/crypto/proof.js +1 -409
  193. package/dist/codegen/tendermint/libs/bits/types.js +1 -94
  194. package/dist/codegen/tendermint/p2p/types.js +1 -506
  195. package/dist/codegen/tendermint/types/block.js +1 -119
  196. package/dist/codegen/tendermint/types/evidence.js +1 -415
  197. package/dist/codegen/tendermint/types/params.js +1 -529
  198. package/dist/codegen/tendermint/types/types.js +1 -1534
  199. package/dist/codegen/tendermint/types/validator.js +1 -299
  200. package/dist/codegen/tendermint/version/types.js +1 -155
  201. package/dist/codegen/utf8.js +1 -138
  202. package/dist/codegen/varint.js +1 -409
  203. package/dist/helpers.js +1 -22
  204. package/dist/index.js +1 -6
  205. package/package.json +7 -5
@@ -1,909 +1 @@
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
1
+ import{BinaryReader as e,BinaryWriter as n}from"../../binary.js";import{Decimal as t,isSet as o}from"../../helpers.js";import{}from"../../json-safe.js";export var DelegationRecordStatus;!function(e){e[e.TRANSFER_IN_PROGRESS=0]="TRANSFER_IN_PROGRESS",e[e.TRANSFER_FAILED=1]="TRANSFER_FAILED",e[e.DELEGATION_QUEUE=2]="DELEGATION_QUEUE",e[e.DELEGATION_COMPLETE=3]="DELEGATION_COMPLETE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(DelegationRecordStatus||(DelegationRecordStatus={}));export const DelegationRecordStatusSDKType=DelegationRecordStatus;export function delegationRecordStatusFromJSON(e){switch(e){case 0:case"TRANSFER_IN_PROGRESS":return DelegationRecordStatus.TRANSFER_IN_PROGRESS;case 1:case"TRANSFER_FAILED":return DelegationRecordStatus.TRANSFER_FAILED;case 2:case"DELEGATION_QUEUE":return DelegationRecordStatus.DELEGATION_QUEUE;case 3:case"DELEGATION_COMPLETE":return DelegationRecordStatus.DELEGATION_COMPLETE;default:return DelegationRecordStatus.UNRECOGNIZED}}export function delegationRecordStatusToJSON(e){switch(e){case DelegationRecordStatus.TRANSFER_IN_PROGRESS:return"TRANSFER_IN_PROGRESS";case DelegationRecordStatus.TRANSFER_FAILED:return"TRANSFER_FAILED";case DelegationRecordStatus.DELEGATION_QUEUE:return"DELEGATION_QUEUE";case DelegationRecordStatus.DELEGATION_COMPLETE:return"DELEGATION_COMPLETE";case DelegationRecordStatus.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export var UnbondingRecordStatus;!function(e){e[e.ACCUMULATING_REDEMPTIONS=0]="ACCUMULATING_REDEMPTIONS",e[e.UNBONDING_QUEUE=1]="UNBONDING_QUEUE",e[e.UNBONDING_IN_PROGRESS=2]="UNBONDING_IN_PROGRESS",e[e.UNBONDED=3]="UNBONDED",e[e.CLAIMABLE=4]="CLAIMABLE",e[e.CLAIMED=5]="CLAIMED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(UnbondingRecordStatus||(UnbondingRecordStatus={}));export const UnbondingRecordStatusSDKType=UnbondingRecordStatus;export function unbondingRecordStatusFromJSON(e){switch(e){case 0:case"ACCUMULATING_REDEMPTIONS":return UnbondingRecordStatus.ACCUMULATING_REDEMPTIONS;case 1:case"UNBONDING_QUEUE":return UnbondingRecordStatus.UNBONDING_QUEUE;case 2:case"UNBONDING_IN_PROGRESS":return UnbondingRecordStatus.UNBONDING_IN_PROGRESS;case 3:case"UNBONDED":return UnbondingRecordStatus.UNBONDED;case 4:case"CLAIMABLE":return UnbondingRecordStatus.CLAIMABLE;case 5:case"CLAIMED":return UnbondingRecordStatus.CLAIMED;default:return UnbondingRecordStatus.UNRECOGNIZED}}export function unbondingRecordStatusToJSON(e){switch(e){case UnbondingRecordStatus.ACCUMULATING_REDEMPTIONS:return"ACCUMULATING_REDEMPTIONS";case UnbondingRecordStatus.UNBONDING_QUEUE:return"UNBONDING_QUEUE";case UnbondingRecordStatus.UNBONDING_IN_PROGRESS:return"UNBONDING_IN_PROGRESS";case UnbondingRecordStatus.UNBONDED:return"UNBONDED";case UnbondingRecordStatus.CLAIMABLE:return"CLAIMABLE";case UnbondingRecordStatus.CLAIMED:return"CLAIMED";case UnbondingRecordStatus.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function i(){return{chainId:"",nativeTokenDenom:"",nativeTokenIbcDenom:"",transferChannelId:"",delegationAddress:"",rewardAddress:"",depositAddress:"",redemptionAddress:"",claimAddress:"",operatorAddressOnStride:"",safeAddressOnStride:"",lastRedemptionRate:"",redemptionRate:"",minRedemptionRate:"",maxRedemptionRate:"",minInnerRedemptionRate:"",maxInnerRedemptionRate:"",delegatedBalance:"",unbondingPeriodSeconds:BigInt(0),halted:!1}}export const HostZone={typeUrl:"/stride.stakedym.HostZone",encode:(e,o=n.create())=>(""!==e.chainId&&o.uint32(10).string(e.chainId),""!==e.nativeTokenDenom&&o.uint32(18).string(e.nativeTokenDenom),""!==e.nativeTokenIbcDenom&&o.uint32(26).string(e.nativeTokenIbcDenom),""!==e.transferChannelId&&o.uint32(34).string(e.transferChannelId),""!==e.delegationAddress&&o.uint32(42).string(e.delegationAddress),""!==e.rewardAddress&&o.uint32(50).string(e.rewardAddress),""!==e.depositAddress&&o.uint32(58).string(e.depositAddress),""!==e.redemptionAddress&&o.uint32(66).string(e.redemptionAddress),""!==e.claimAddress&&o.uint32(74).string(e.claimAddress),""!==e.operatorAddressOnStride&&o.uint32(82).string(e.operatorAddressOnStride),""!==e.safeAddressOnStride&&o.uint32(90).string(e.safeAddressOnStride),""!==e.lastRedemptionRate&&o.uint32(98).string(t.fromUserInput(e.lastRedemptionRate,18).atomics),""!==e.redemptionRate&&o.uint32(106).string(t.fromUserInput(e.redemptionRate,18).atomics),""!==e.minRedemptionRate&&o.uint32(114).string(t.fromUserInput(e.minRedemptionRate,18).atomics),""!==e.maxRedemptionRate&&o.uint32(122).string(t.fromUserInput(e.maxRedemptionRate,18).atomics),""!==e.minInnerRedemptionRate&&o.uint32(130).string(t.fromUserInput(e.minInnerRedemptionRate,18).atomics),""!==e.maxInnerRedemptionRate&&o.uint32(138).string(t.fromUserInput(e.maxInnerRedemptionRate,18).atomics),""!==e.delegatedBalance&&o.uint32(146).string(e.delegatedBalance),e.unbondingPeriodSeconds!==BigInt(0)&&o.uint32(152).uint64(e.unbondingPeriodSeconds),!0===e.halted&&o.uint32(160).bool(e.halted),o),decode(n,o){const d=n instanceof e?n:new e(n);let r=void 0===o?d.len:d.pos+o;const s=i();for(;d.pos<r;){const e=d.uint32();switch(e>>>3){case 1:s.chainId=d.string();break;case 2:s.nativeTokenDenom=d.string();break;case 3:s.nativeTokenIbcDenom=d.string();break;case 4:s.transferChannelId=d.string();break;case 5:s.delegationAddress=d.string();break;case 6:s.rewardAddress=d.string();break;case 7:s.depositAddress=d.string();break;case 8:s.redemptionAddress=d.string();break;case 9:s.claimAddress=d.string();break;case 10:s.operatorAddressOnStride=d.string();break;case 11:s.safeAddressOnStride=d.string();break;case 12:s.lastRedemptionRate=t.fromAtomics(d.string(),18).toString();break;case 13:s.redemptionRate=t.fromAtomics(d.string(),18).toString();break;case 14:s.minRedemptionRate=t.fromAtomics(d.string(),18).toString();break;case 15:s.maxRedemptionRate=t.fromAtomics(d.string(),18).toString();break;case 16:s.minInnerRedemptionRate=t.fromAtomics(d.string(),18).toString();break;case 17:s.maxInnerRedemptionRate=t.fromAtomics(d.string(),18).toString();break;case 18:s.delegatedBalance=d.string();break;case 19:s.unbondingPeriodSeconds=d.uint64();break;case 20:s.halted=d.bool();break;default:d.skipType(7&e)}}return s},fromJSON:e=>({chainId:o(e.chainId)?String(e.chainId):"",nativeTokenDenom:o(e.nativeTokenDenom)?String(e.nativeTokenDenom):"",nativeTokenIbcDenom:o(e.nativeTokenIbcDenom)?String(e.nativeTokenIbcDenom):"",transferChannelId:o(e.transferChannelId)?String(e.transferChannelId):"",delegationAddress:o(e.delegationAddress)?String(e.delegationAddress):"",rewardAddress:o(e.rewardAddress)?String(e.rewardAddress):"",depositAddress:o(e.depositAddress)?String(e.depositAddress):"",redemptionAddress:o(e.redemptionAddress)?String(e.redemptionAddress):"",claimAddress:o(e.claimAddress)?String(e.claimAddress):"",operatorAddressOnStride:o(e.operatorAddressOnStride)?String(e.operatorAddressOnStride):"",safeAddressOnStride:o(e.safeAddressOnStride)?String(e.safeAddressOnStride):"",lastRedemptionRate:o(e.lastRedemptionRate)?String(e.lastRedemptionRate):"",redemptionRate:o(e.redemptionRate)?String(e.redemptionRate):"",minRedemptionRate:o(e.minRedemptionRate)?String(e.minRedemptionRate):"",maxRedemptionRate:o(e.maxRedemptionRate)?String(e.maxRedemptionRate):"",minInnerRedemptionRate:o(e.minInnerRedemptionRate)?String(e.minInnerRedemptionRate):"",maxInnerRedemptionRate:o(e.maxInnerRedemptionRate)?String(e.maxInnerRedemptionRate):"",delegatedBalance:o(e.delegatedBalance)?String(e.delegatedBalance):"",unbondingPeriodSeconds:o(e.unbondingPeriodSeconds)?BigInt(e.unbondingPeriodSeconds.toString()):BigInt(0),halted:!!o(e.halted)&&Boolean(e.halted)}),toJSON(e){const n={};return void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.nativeTokenDenom&&(n.nativeTokenDenom=e.nativeTokenDenom),void 0!==e.nativeTokenIbcDenom&&(n.nativeTokenIbcDenom=e.nativeTokenIbcDenom),void 0!==e.transferChannelId&&(n.transferChannelId=e.transferChannelId),void 0!==e.delegationAddress&&(n.delegationAddress=e.delegationAddress),void 0!==e.rewardAddress&&(n.rewardAddress=e.rewardAddress),void 0!==e.depositAddress&&(n.depositAddress=e.depositAddress),void 0!==e.redemptionAddress&&(n.redemptionAddress=e.redemptionAddress),void 0!==e.claimAddress&&(n.claimAddress=e.claimAddress),void 0!==e.operatorAddressOnStride&&(n.operatorAddressOnStride=e.operatorAddressOnStride),void 0!==e.safeAddressOnStride&&(n.safeAddressOnStride=e.safeAddressOnStride),void 0!==e.lastRedemptionRate&&(n.lastRedemptionRate=e.lastRedemptionRate),void 0!==e.redemptionRate&&(n.redemptionRate=e.redemptionRate),void 0!==e.minRedemptionRate&&(n.minRedemptionRate=e.minRedemptionRate),void 0!==e.maxRedemptionRate&&(n.maxRedemptionRate=e.maxRedemptionRate),void 0!==e.minInnerRedemptionRate&&(n.minInnerRedemptionRate=e.minInnerRedemptionRate),void 0!==e.maxInnerRedemptionRate&&(n.maxInnerRedemptionRate=e.maxInnerRedemptionRate),void 0!==e.delegatedBalance&&(n.delegatedBalance=e.delegatedBalance),void 0!==e.unbondingPeriodSeconds&&(n.unbondingPeriodSeconds=(e.unbondingPeriodSeconds||BigInt(0)).toString()),void 0!==e.halted&&(n.halted=e.halted),n},fromPartial(e){const n=i();return n.chainId=e.chainId??"",n.nativeTokenDenom=e.nativeTokenDenom??"",n.nativeTokenIbcDenom=e.nativeTokenIbcDenom??"",n.transferChannelId=e.transferChannelId??"",n.delegationAddress=e.delegationAddress??"",n.rewardAddress=e.rewardAddress??"",n.depositAddress=e.depositAddress??"",n.redemptionAddress=e.redemptionAddress??"",n.claimAddress=e.claimAddress??"",n.operatorAddressOnStride=e.operatorAddressOnStride??"",n.safeAddressOnStride=e.safeAddressOnStride??"",n.lastRedemptionRate=e.lastRedemptionRate??"",n.redemptionRate=e.redemptionRate??"",n.minRedemptionRate=e.minRedemptionRate??"",n.maxRedemptionRate=e.maxRedemptionRate??"",n.minInnerRedemptionRate=e.minInnerRedemptionRate??"",n.maxInnerRedemptionRate=e.maxInnerRedemptionRate??"",n.delegatedBalance=e.delegatedBalance??"",n.unbondingPeriodSeconds=void 0!==e.unbondingPeriodSeconds&&null!==e.unbondingPeriodSeconds?BigInt(e.unbondingPeriodSeconds.toString()):BigInt(0),n.halted=e.halted??!1,n},fromProtoMsg:e=>HostZone.decode(e.value),toProto:e=>HostZone.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakedym.HostZone",value:HostZone.encode(e).finish()})};function d(){return{id:BigInt(0),nativeAmount:"",status:0,txHash:""}}export const DelegationRecord={typeUrl:"/stride.stakedym.DelegationRecord",encode:(e,t=n.create())=>(e.id!==BigInt(0)&&t.uint32(8).uint64(e.id),""!==e.nativeAmount&&t.uint32(18).string(e.nativeAmount),0!==e.status&&t.uint32(24).int32(e.status),""!==e.txHash&&t.uint32(34).string(e.txHash),t),decode(n,t){const o=n instanceof e?n:new e(n);let i=void 0===t?o.len:o.pos+t;const r=d();for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:r.id=o.uint64();break;case 2:r.nativeAmount=o.string();break;case 3:r.status=o.int32();break;case 4:r.txHash=o.string();break;default:o.skipType(7&e)}}return r},fromJSON:e=>({id:o(e.id)?BigInt(e.id.toString()):BigInt(0),nativeAmount:o(e.nativeAmount)?String(e.nativeAmount):"",status:o(e.status)?delegationRecordStatusFromJSON(e.status):-1,txHash:o(e.txHash)?String(e.txHash):""}),toJSON(e){const n={};return void 0!==e.id&&(n.id=(e.id||BigInt(0)).toString()),void 0!==e.nativeAmount&&(n.nativeAmount=e.nativeAmount),void 0!==e.status&&(n.status=delegationRecordStatusToJSON(e.status)),void 0!==e.txHash&&(n.txHash=e.txHash),n},fromPartial(e){const n=d();return n.id=void 0!==e.id&&null!==e.id?BigInt(e.id.toString()):BigInt(0),n.nativeAmount=e.nativeAmount??"",n.status=e.status??0,n.txHash=e.txHash??"",n},fromProtoMsg:e=>DelegationRecord.decode(e.value),toProto:e=>DelegationRecord.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakedym.DelegationRecord",value:DelegationRecord.encode(e).finish()})};function r(){return{id:BigInt(0),status:0,stTokenAmount:"",nativeAmount:"",unbondingCompletionTimeSeconds:BigInt(0),undelegationTxHash:"",unbondedTokenSweepTxHash:""}}export const UnbondingRecord={typeUrl:"/stride.stakedym.UnbondingRecord",encode:(e,t=n.create())=>(e.id!==BigInt(0)&&t.uint32(8).uint64(e.id),0!==e.status&&t.uint32(16).int32(e.status),""!==e.stTokenAmount&&t.uint32(26).string(e.stTokenAmount),""!==e.nativeAmount&&t.uint32(34).string(e.nativeAmount),e.unbondingCompletionTimeSeconds!==BigInt(0)&&t.uint32(40).uint64(e.unbondingCompletionTimeSeconds),""!==e.undelegationTxHash&&t.uint32(50).string(e.undelegationTxHash),""!==e.unbondedTokenSweepTxHash&&t.uint32(58).string(e.unbondedTokenSweepTxHash),t),decode(n,t){const o=n instanceof e?n:new e(n);let i=void 0===t?o.len:o.pos+t;const d=r();for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:d.id=o.uint64();break;case 2:d.status=o.int32();break;case 3:d.stTokenAmount=o.string();break;case 4:d.nativeAmount=o.string();break;case 5:d.unbondingCompletionTimeSeconds=o.uint64();break;case 6:d.undelegationTxHash=o.string();break;case 7:d.unbondedTokenSweepTxHash=o.string();break;default:o.skipType(7&e)}}return d},fromJSON:e=>({id:o(e.id)?BigInt(e.id.toString()):BigInt(0),status:o(e.status)?unbondingRecordStatusFromJSON(e.status):-1,stTokenAmount:o(e.stTokenAmount)?String(e.stTokenAmount):"",nativeAmount:o(e.nativeAmount)?String(e.nativeAmount):"",unbondingCompletionTimeSeconds:o(e.unbondingCompletionTimeSeconds)?BigInt(e.unbondingCompletionTimeSeconds.toString()):BigInt(0),undelegationTxHash:o(e.undelegationTxHash)?String(e.undelegationTxHash):"",unbondedTokenSweepTxHash:o(e.unbondedTokenSweepTxHash)?String(e.unbondedTokenSweepTxHash):""}),toJSON(e){const n={};return void 0!==e.id&&(n.id=(e.id||BigInt(0)).toString()),void 0!==e.status&&(n.status=unbondingRecordStatusToJSON(e.status)),void 0!==e.stTokenAmount&&(n.stTokenAmount=e.stTokenAmount),void 0!==e.nativeAmount&&(n.nativeAmount=e.nativeAmount),void 0!==e.unbondingCompletionTimeSeconds&&(n.unbondingCompletionTimeSeconds=(e.unbondingCompletionTimeSeconds||BigInt(0)).toString()),void 0!==e.undelegationTxHash&&(n.undelegationTxHash=e.undelegationTxHash),void 0!==e.unbondedTokenSweepTxHash&&(n.unbondedTokenSweepTxHash=e.unbondedTokenSweepTxHash),n},fromPartial(e){const n=r();return n.id=void 0!==e.id&&null!==e.id?BigInt(e.id.toString()):BigInt(0),n.status=e.status??0,n.stTokenAmount=e.stTokenAmount??"",n.nativeAmount=e.nativeAmount??"",n.unbondingCompletionTimeSeconds=void 0!==e.unbondingCompletionTimeSeconds&&null!==e.unbondingCompletionTimeSeconds?BigInt(e.unbondingCompletionTimeSeconds.toString()):BigInt(0),n.undelegationTxHash=e.undelegationTxHash??"",n.unbondedTokenSweepTxHash=e.unbondedTokenSweepTxHash??"",n},fromProtoMsg:e=>UnbondingRecord.decode(e.value),toProto:e=>UnbondingRecord.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakedym.UnbondingRecord",value:UnbondingRecord.encode(e).finish()})};function s(){return{unbondingRecordId:BigInt(0),redeemer:"",stTokenAmount:"",nativeAmount:""}}export const RedemptionRecord={typeUrl:"/stride.stakedym.RedemptionRecord",encode:(e,t=n.create())=>(e.unbondingRecordId!==BigInt(0)&&t.uint32(8).uint64(e.unbondingRecordId),""!==e.redeemer&&t.uint32(18).string(e.redeemer),""!==e.stTokenAmount&&t.uint32(26).string(e.stTokenAmount),""!==e.nativeAmount&&t.uint32(34).string(e.nativeAmount),t),decode(n,t){const o=n instanceof e?n:new e(n);let i=void 0===t?o.len:o.pos+t;const d=s();for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:d.unbondingRecordId=o.uint64();break;case 2:d.redeemer=o.string();break;case 3:d.stTokenAmount=o.string();break;case 4:d.nativeAmount=o.string();break;default:o.skipType(7&e)}}return d},fromJSON:e=>({unbondingRecordId:o(e.unbondingRecordId)?BigInt(e.unbondingRecordId.toString()):BigInt(0),redeemer:o(e.redeemer)?String(e.redeemer):"",stTokenAmount:o(e.stTokenAmount)?String(e.stTokenAmount):"",nativeAmount:o(e.nativeAmount)?String(e.nativeAmount):""}),toJSON(e){const n={};return void 0!==e.unbondingRecordId&&(n.unbondingRecordId=(e.unbondingRecordId||BigInt(0)).toString()),void 0!==e.redeemer&&(n.redeemer=e.redeemer),void 0!==e.stTokenAmount&&(n.stTokenAmount=e.stTokenAmount),void 0!==e.nativeAmount&&(n.nativeAmount=e.nativeAmount),n},fromPartial(e){const n=s();return n.unbondingRecordId=void 0!==e.unbondingRecordId&&null!==e.unbondingRecordId?BigInt(e.unbondingRecordId.toString()):BigInt(0),n.redeemer=e.redeemer??"",n.stTokenAmount=e.stTokenAmount??"",n.nativeAmount=e.nativeAmount??"",n},fromProtoMsg:e=>RedemptionRecord.decode(e.value),toProto:e=>RedemptionRecord.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakedym.RedemptionRecord",value:RedemptionRecord.encode(e).finish()})};function a(){return{id:BigInt(0),time:BigInt(0),nativeAmount:"",validatorAddress:""}}export const SlashRecord={typeUrl:"/stride.stakedym.SlashRecord",encode:(e,t=n.create())=>(e.id!==BigInt(0)&&t.uint32(8).uint64(e.id),e.time!==BigInt(0)&&t.uint32(16).uint64(e.time),""!==e.nativeAmount&&t.uint32(26).string(e.nativeAmount),""!==e.validatorAddress&&t.uint32(34).string(e.validatorAddress),t),decode(n,t){const o=n instanceof e?n:new e(n);let i=void 0===t?o.len:o.pos+t;const d=a();for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:d.id=o.uint64();break;case 2:d.time=o.uint64();break;case 3:d.nativeAmount=o.string();break;case 4:d.validatorAddress=o.string();break;default:o.skipType(7&e)}}return d},fromJSON:e=>({id:o(e.id)?BigInt(e.id.toString()):BigInt(0),time:o(e.time)?BigInt(e.time.toString()):BigInt(0),nativeAmount:o(e.nativeAmount)?String(e.nativeAmount):"",validatorAddress:o(e.validatorAddress)?String(e.validatorAddress):""}),toJSON(e){const n={};return void 0!==e.id&&(n.id=(e.id||BigInt(0)).toString()),void 0!==e.time&&(n.time=(e.time||BigInt(0)).toString()),void 0!==e.nativeAmount&&(n.nativeAmount=e.nativeAmount),void 0!==e.validatorAddress&&(n.validatorAddress=e.validatorAddress),n},fromPartial(e){const n=a();return n.id=void 0!==e.id&&null!==e.id?BigInt(e.id.toString()):BigInt(0),n.time=void 0!==e.time&&null!==e.time?BigInt(e.time.toString()):BigInt(0),n.nativeAmount=e.nativeAmount??"",n.validatorAddress=e.validatorAddress??"",n},fromProtoMsg:e=>SlashRecord.decode(e.value),toProto:e=>SlashRecord.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakedym.SlashRecord",value:SlashRecord.encode(e).finish()})};