@agoric/cosmic-proto 0.5.0-u19.2 → 0.5.0-u20.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 (213) hide show
  1. package/dist/address-hooks.d.ts +4 -3
  2. package/dist/address-hooks.js +1 -217
  3. package/dist/address-hooks.js.map +1 -1
  4. package/dist/codegen/agoric/bundle.js +1 -51
  5. package/dist/codegen/agoric/lien/genesis.js +1 -143
  6. package/dist/codegen/agoric/lien/lien.js +1 -87
  7. package/dist/codegen/agoric/swingset/genesis.js +1 -181
  8. package/dist/codegen/agoric/swingset/msgs.js +1 -700
  9. package/dist/codegen/agoric/swingset/query.js +1 -356
  10. package/dist/codegen/agoric/swingset/swingset.js +1 -816
  11. package/dist/codegen/agoric/vbank/genesis.js +1 -82
  12. package/dist/codegen/agoric/vbank/msgs.js +1 -2
  13. package/dist/codegen/agoric/vbank/query.js +1 -222
  14. package/dist/codegen/agoric/vbank/vbank.js +1 -237
  15. package/dist/codegen/agoric/vibc/msgs.js +1 -127
  16. package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
  17. package/dist/codegen/agoric/vstorage/genesis.js +1 -138
  18. package/dist/codegen/agoric/vstorage/query.js +1 -441
  19. package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
  20. package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
  21. package/dist/codegen/amino/amino.js +1 -2
  22. package/dist/codegen/amino/bundle.js +1 -6
  23. package/dist/codegen/binary.js +1 -367
  24. package/dist/codegen/circle/bundle.d.ts +0 -506
  25. package/dist/codegen/circle/bundle.js +1 -40
  26. package/dist/codegen/circle/cctp/v1/attester.js +1 -63
  27. package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
  28. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
  29. package/dist/codegen/circle/cctp/v1/events.js +1 -1612
  30. package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
  31. package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
  32. package/dist/codegen/circle/cctp/v1/message.js +1 -160
  33. package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
  34. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
  35. package/dist/codegen/circle/cctp/v1/query.js +1 -2421
  36. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
  37. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
  38. package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
  39. package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
  40. package/dist/codegen/circle/cctp/v1/tx.d.ts +0 -998
  41. package/dist/codegen/circle/cctp/v1/tx.js +1 -3264
  42. package/dist/codegen/circle/cctp/v1/tx.js.map +1 -1
  43. package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
  44. package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
  45. package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
  46. package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
  47. package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
  48. package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
  49. package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
  50. package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
  51. package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
  52. package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
  53. package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
  54. package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
  55. package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
  56. package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
  57. package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
  58. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
  59. package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
  60. package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
  61. package/dist/codegen/cosmos/bundle.js +1 -249
  62. package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
  63. package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
  64. package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
  65. package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
  66. package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
  67. package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
  68. package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
  69. package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
  70. package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
  71. package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
  72. package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
  73. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
  74. package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
  75. package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
  76. package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
  77. package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
  78. package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
  79. package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
  80. package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
  81. package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
  82. package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
  83. package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
  84. package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
  85. package/dist/codegen/cosmos/group/v1/events.js +1 -696
  86. package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
  87. package/dist/codegen/cosmos/group/v1/query.js +1 -2096
  88. package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
  89. package/dist/codegen/cosmos/group/v1/types.js +1 -1387
  90. package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
  91. package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
  92. package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
  93. package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
  94. package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
  95. package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
  96. package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
  97. package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
  98. package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
  99. package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
  100. package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
  101. package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
  102. package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
  103. package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
  104. package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
  105. package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
  106. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
  107. package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
  108. package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
  109. package/dist/codegen/cosmos_proto/bundle.js +1 -6
  110. package/dist/codegen/cosmos_proto/cosmos.js +1 -208
  111. package/dist/codegen/gogoproto/bundle.js +1 -6
  112. package/dist/codegen/gogoproto/gogo.js +1 -2
  113. package/dist/codegen/google/api/annotations.js +1 -2
  114. package/dist/codegen/google/api/http.js +1 -319
  115. package/dist/codegen/google/bundle.js +1 -17
  116. package/dist/codegen/google/protobuf/any.js +1 -77
  117. package/dist/codegen/google/protobuf/descriptor.js +1 -3421
  118. package/dist/codegen/google/protobuf/duration.js +1 -79
  119. package/dist/codegen/google/protobuf/empty.js +1 -50
  120. package/dist/codegen/google/protobuf/timestamp.js +1 -79
  121. package/dist/codegen/helpers.js +1 -196
  122. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
  123. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
  124. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
  125. package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
  126. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
  127. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
  128. package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
  129. package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
  130. package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
  131. package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
  132. package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
  133. package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
  134. package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
  135. package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
  136. package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
  137. package/dist/codegen/ibc/bundle.js +1 -142
  138. package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
  139. package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
  140. package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
  141. package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
  142. package/dist/codegen/ibc/core/client/v1/client.js +1 -583
  143. package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
  144. package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
  145. package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
  146. package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
  147. package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
  148. package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
  149. package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
  150. package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
  151. package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
  152. package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
  153. package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
  154. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
  155. package/dist/codegen/icq/bundle.js +1 -17
  156. package/dist/codegen/icq/v1/genesis.js +1 -78
  157. package/dist/codegen/icq/v1/icq.js +1 -83
  158. package/dist/codegen/icq/v1/packet.js +1 -270
  159. package/dist/codegen/icq/v1/query.js +1 -114
  160. package/dist/codegen/icq/v1/tx.js +1 -124
  161. package/dist/codegen/ics23/bundle.js +1 -6
  162. package/dist/codegen/index.js +1 -23
  163. package/dist/codegen/json-safe.js +1 -8
  164. package/dist/codegen/proofs.js +1 -1436
  165. package/dist/codegen/stride/bundle.js +1 -71
  166. package/dist/codegen/stride/epochs/genesis.js +1 -227
  167. package/dist/codegen/stride/epochs/query.js +1 -398
  168. package/dist/codegen/stride/records/callbacks.js +1 -136
  169. package/dist/codegen/stride/records/genesis.js +1 -186
  170. package/dist/codegen/stride/records/params.js +1 -50
  171. package/dist/codegen/stride/records/query.js +1 -1552
  172. package/dist/codegen/stride/records/records.js +1 -939
  173. package/dist/codegen/stride/stakedym/genesis.js +1 -312
  174. package/dist/codegen/stride/stakedym/query.js +1 -887
  175. package/dist/codegen/stride/stakedym/stakedym.js +1 -909
  176. package/dist/codegen/stride/stakedym/tx.js +1 -1661
  177. package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
  178. package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
  179. package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
  180. package/dist/codegen/stride/stakeibc/genesis.js +1 -135
  181. package/dist/codegen/stride/stakeibc/gov.js +1 -212
  182. package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
  183. package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
  184. package/dist/codegen/stride/stakeibc/packet.js +1 -113
  185. package/dist/codegen/stride/stakeibc/params.js +1 -317
  186. package/dist/codegen/stride/stakeibc/query.js +1 -1372
  187. package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
  188. package/dist/codegen/stride/stakeibc/tx.js +1 -3392
  189. package/dist/codegen/stride/stakeibc/validator.js +1 -170
  190. package/dist/codegen/stride/staketia/genesis.js +1 -312
  191. package/dist/codegen/stride/staketia/query.js +1 -887
  192. package/dist/codegen/stride/staketia/staketia.js +1 -819
  193. package/dist/codegen/stride/staketia/tx.js +1 -1671
  194. package/dist/codegen/tendermint/abci/types.d.ts +264 -692
  195. package/dist/codegen/tendermint/abci/types.js +1 -4434
  196. package/dist/codegen/tendermint/abci/types.js.map +1 -1
  197. package/dist/codegen/tendermint/bundle.d.ts +0 -272
  198. package/dist/codegen/tendermint/bundle.js +1 -42
  199. package/dist/codegen/tendermint/crypto/keys.js +1 -85
  200. package/dist/codegen/tendermint/crypto/proof.js +1 -409
  201. package/dist/codegen/tendermint/libs/bits/types.js +1 -94
  202. package/dist/codegen/tendermint/p2p/types.js +1 -506
  203. package/dist/codegen/tendermint/types/block.js +1 -119
  204. package/dist/codegen/tendermint/types/evidence.js +1 -415
  205. package/dist/codegen/tendermint/types/params.js +1 -529
  206. package/dist/codegen/tendermint/types/types.js +1 -1534
  207. package/dist/codegen/tendermint/types/validator.js +1 -299
  208. package/dist/codegen/tendermint/version/types.js +1 -155
  209. package/dist/codegen/utf8.js +1 -138
  210. package/dist/codegen/varint.js +1 -409
  211. package/dist/helpers.js +1 -22
  212. package/dist/index.js +1 -6
  213. package/package.json +12 -10
@@ -1,819 +1 @@
1
- //@ts-nocheck
2
- import { BinaryReader, BinaryWriter } from '../../binary.js';
3
- import { 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
- remainingDelegatedBalance: '',
163
- unbondingPeriodSeconds: BigInt(0),
164
- halted: false,
165
- };
166
- }
167
- export const HostZone = {
168
- typeUrl: '/stride.staketia.HostZone',
169
- encode(message, writer = BinaryWriter.create()) {
170
- if (message.chainId !== '') {
171
- writer.uint32(10).string(message.chainId);
172
- }
173
- if (message.nativeTokenDenom !== '') {
174
- writer.uint32(18).string(message.nativeTokenDenom);
175
- }
176
- if (message.nativeTokenIbcDenom !== '') {
177
- writer.uint32(26).string(message.nativeTokenIbcDenom);
178
- }
179
- if (message.transferChannelId !== '') {
180
- writer.uint32(34).string(message.transferChannelId);
181
- }
182
- if (message.delegationAddress !== '') {
183
- writer.uint32(42).string(message.delegationAddress);
184
- }
185
- if (message.rewardAddress !== '') {
186
- writer.uint32(50).string(message.rewardAddress);
187
- }
188
- if (message.depositAddress !== '') {
189
- writer.uint32(58).string(message.depositAddress);
190
- }
191
- if (message.redemptionAddress !== '') {
192
- writer.uint32(66).string(message.redemptionAddress);
193
- }
194
- if (message.claimAddress !== '') {
195
- writer.uint32(74).string(message.claimAddress);
196
- }
197
- if (message.operatorAddressOnStride !== '') {
198
- writer.uint32(82).string(message.operatorAddressOnStride);
199
- }
200
- if (message.safeAddressOnStride !== '') {
201
- writer.uint32(90).string(message.safeAddressOnStride);
202
- }
203
- if (message.remainingDelegatedBalance !== '') {
204
- writer.uint32(146).string(message.remainingDelegatedBalance);
205
- }
206
- if (message.unbondingPeriodSeconds !== BigInt(0)) {
207
- writer.uint32(152).uint64(message.unbondingPeriodSeconds);
208
- }
209
- if (message.halted === true) {
210
- writer.uint32(160).bool(message.halted);
211
- }
212
- return writer;
213
- },
214
- decode(input, length) {
215
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
216
- let end = length === undefined ? reader.len : reader.pos + length;
217
- const message = createBaseHostZone();
218
- while (reader.pos < end) {
219
- const tag = reader.uint32();
220
- switch (tag >>> 3) {
221
- case 1:
222
- message.chainId = reader.string();
223
- break;
224
- case 2:
225
- message.nativeTokenDenom = reader.string();
226
- break;
227
- case 3:
228
- message.nativeTokenIbcDenom = reader.string();
229
- break;
230
- case 4:
231
- message.transferChannelId = reader.string();
232
- break;
233
- case 5:
234
- message.delegationAddress = reader.string();
235
- break;
236
- case 6:
237
- message.rewardAddress = reader.string();
238
- break;
239
- case 7:
240
- message.depositAddress = reader.string();
241
- break;
242
- case 8:
243
- message.redemptionAddress = reader.string();
244
- break;
245
- case 9:
246
- message.claimAddress = reader.string();
247
- break;
248
- case 10:
249
- message.operatorAddressOnStride = reader.string();
250
- break;
251
- case 11:
252
- message.safeAddressOnStride = reader.string();
253
- break;
254
- case 18:
255
- message.remainingDelegatedBalance = reader.string();
256
- break;
257
- case 19:
258
- message.unbondingPeriodSeconds = reader.uint64();
259
- break;
260
- case 20:
261
- message.halted = reader.bool();
262
- break;
263
- default:
264
- reader.skipType(tag & 7);
265
- break;
266
- }
267
- }
268
- return message;
269
- },
270
- fromJSON(object) {
271
- return {
272
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
273
- nativeTokenDenom: isSet(object.nativeTokenDenom)
274
- ? String(object.nativeTokenDenom)
275
- : '',
276
- nativeTokenIbcDenom: isSet(object.nativeTokenIbcDenom)
277
- ? String(object.nativeTokenIbcDenom)
278
- : '',
279
- transferChannelId: isSet(object.transferChannelId)
280
- ? String(object.transferChannelId)
281
- : '',
282
- delegationAddress: isSet(object.delegationAddress)
283
- ? String(object.delegationAddress)
284
- : '',
285
- rewardAddress: isSet(object.rewardAddress)
286
- ? String(object.rewardAddress)
287
- : '',
288
- depositAddress: isSet(object.depositAddress)
289
- ? String(object.depositAddress)
290
- : '',
291
- redemptionAddress: isSet(object.redemptionAddress)
292
- ? String(object.redemptionAddress)
293
- : '',
294
- claimAddress: isSet(object.claimAddress)
295
- ? String(object.claimAddress)
296
- : '',
297
- operatorAddressOnStride: isSet(object.operatorAddressOnStride)
298
- ? String(object.operatorAddressOnStride)
299
- : '',
300
- safeAddressOnStride: isSet(object.safeAddressOnStride)
301
- ? String(object.safeAddressOnStride)
302
- : '',
303
- remainingDelegatedBalance: isSet(object.remainingDelegatedBalance)
304
- ? String(object.remainingDelegatedBalance)
305
- : '',
306
- unbondingPeriodSeconds: isSet(object.unbondingPeriodSeconds)
307
- ? BigInt(object.unbondingPeriodSeconds.toString())
308
- : BigInt(0),
309
- halted: isSet(object.halted) ? Boolean(object.halted) : false,
310
- };
311
- },
312
- toJSON(message) {
313
- const obj = {};
314
- message.chainId !== undefined && (obj.chainId = message.chainId);
315
- message.nativeTokenDenom !== undefined &&
316
- (obj.nativeTokenDenom = message.nativeTokenDenom);
317
- message.nativeTokenIbcDenom !== undefined &&
318
- (obj.nativeTokenIbcDenom = message.nativeTokenIbcDenom);
319
- message.transferChannelId !== undefined &&
320
- (obj.transferChannelId = message.transferChannelId);
321
- message.delegationAddress !== undefined &&
322
- (obj.delegationAddress = message.delegationAddress);
323
- message.rewardAddress !== undefined &&
324
- (obj.rewardAddress = message.rewardAddress);
325
- message.depositAddress !== undefined &&
326
- (obj.depositAddress = message.depositAddress);
327
- message.redemptionAddress !== undefined &&
328
- (obj.redemptionAddress = message.redemptionAddress);
329
- message.claimAddress !== undefined &&
330
- (obj.claimAddress = message.claimAddress);
331
- message.operatorAddressOnStride !== undefined &&
332
- (obj.operatorAddressOnStride = message.operatorAddressOnStride);
333
- message.safeAddressOnStride !== undefined &&
334
- (obj.safeAddressOnStride = message.safeAddressOnStride);
335
- message.remainingDelegatedBalance !== undefined &&
336
- (obj.remainingDelegatedBalance = message.remainingDelegatedBalance);
337
- message.unbondingPeriodSeconds !== undefined &&
338
- (obj.unbondingPeriodSeconds = (message.unbondingPeriodSeconds || BigInt(0)).toString());
339
- message.halted !== undefined && (obj.halted = message.halted);
340
- return obj;
341
- },
342
- fromPartial(object) {
343
- const message = createBaseHostZone();
344
- message.chainId = object.chainId ?? '';
345
- message.nativeTokenDenom = object.nativeTokenDenom ?? '';
346
- message.nativeTokenIbcDenom = object.nativeTokenIbcDenom ?? '';
347
- message.transferChannelId = object.transferChannelId ?? '';
348
- message.delegationAddress = object.delegationAddress ?? '';
349
- message.rewardAddress = object.rewardAddress ?? '';
350
- message.depositAddress = object.depositAddress ?? '';
351
- message.redemptionAddress = object.redemptionAddress ?? '';
352
- message.claimAddress = object.claimAddress ?? '';
353
- message.operatorAddressOnStride = object.operatorAddressOnStride ?? '';
354
- message.safeAddressOnStride = object.safeAddressOnStride ?? '';
355
- message.remainingDelegatedBalance = object.remainingDelegatedBalance ?? '';
356
- message.unbondingPeriodSeconds =
357
- object.unbondingPeriodSeconds !== undefined &&
358
- object.unbondingPeriodSeconds !== null
359
- ? BigInt(object.unbondingPeriodSeconds.toString())
360
- : BigInt(0);
361
- message.halted = object.halted ?? false;
362
- return message;
363
- },
364
- fromProtoMsg(message) {
365
- return HostZone.decode(message.value);
366
- },
367
- toProto(message) {
368
- return HostZone.encode(message).finish();
369
- },
370
- toProtoMsg(message) {
371
- return {
372
- typeUrl: '/stride.staketia.HostZone',
373
- value: HostZone.encode(message).finish(),
374
- };
375
- },
376
- };
377
- function createBaseDelegationRecord() {
378
- return {
379
- id: BigInt(0),
380
- nativeAmount: '',
381
- status: 0,
382
- txHash: '',
383
- };
384
- }
385
- export const DelegationRecord = {
386
- typeUrl: '/stride.staketia.DelegationRecord',
387
- encode(message, writer = BinaryWriter.create()) {
388
- if (message.id !== BigInt(0)) {
389
- writer.uint32(8).uint64(message.id);
390
- }
391
- if (message.nativeAmount !== '') {
392
- writer.uint32(18).string(message.nativeAmount);
393
- }
394
- if (message.status !== 0) {
395
- writer.uint32(24).int32(message.status);
396
- }
397
- if (message.txHash !== '') {
398
- writer.uint32(34).string(message.txHash);
399
- }
400
- return writer;
401
- },
402
- decode(input, length) {
403
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
404
- let end = length === undefined ? reader.len : reader.pos + length;
405
- const message = createBaseDelegationRecord();
406
- while (reader.pos < end) {
407
- const tag = reader.uint32();
408
- switch (tag >>> 3) {
409
- case 1:
410
- message.id = reader.uint64();
411
- break;
412
- case 2:
413
- message.nativeAmount = reader.string();
414
- break;
415
- case 3:
416
- message.status = reader.int32();
417
- break;
418
- case 4:
419
- message.txHash = reader.string();
420
- break;
421
- default:
422
- reader.skipType(tag & 7);
423
- break;
424
- }
425
- }
426
- return message;
427
- },
428
- fromJSON(object) {
429
- return {
430
- id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0),
431
- nativeAmount: isSet(object.nativeAmount)
432
- ? String(object.nativeAmount)
433
- : '',
434
- status: isSet(object.status)
435
- ? delegationRecordStatusFromJSON(object.status)
436
- : -1,
437
- txHash: isSet(object.txHash) ? String(object.txHash) : '',
438
- };
439
- },
440
- toJSON(message) {
441
- const obj = {};
442
- message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString());
443
- message.nativeAmount !== undefined &&
444
- (obj.nativeAmount = message.nativeAmount);
445
- message.status !== undefined &&
446
- (obj.status = delegationRecordStatusToJSON(message.status));
447
- message.txHash !== undefined && (obj.txHash = message.txHash);
448
- return obj;
449
- },
450
- fromPartial(object) {
451
- const message = createBaseDelegationRecord();
452
- message.id =
453
- object.id !== undefined && object.id !== null
454
- ? BigInt(object.id.toString())
455
- : BigInt(0);
456
- message.nativeAmount = object.nativeAmount ?? '';
457
- message.status = object.status ?? 0;
458
- message.txHash = object.txHash ?? '';
459
- return message;
460
- },
461
- fromProtoMsg(message) {
462
- return DelegationRecord.decode(message.value);
463
- },
464
- toProto(message) {
465
- return DelegationRecord.encode(message).finish();
466
- },
467
- toProtoMsg(message) {
468
- return {
469
- typeUrl: '/stride.staketia.DelegationRecord',
470
- value: DelegationRecord.encode(message).finish(),
471
- };
472
- },
473
- };
474
- function createBaseUnbondingRecord() {
475
- return {
476
- id: BigInt(0),
477
- status: 0,
478
- stTokenAmount: '',
479
- nativeAmount: '',
480
- unbondingCompletionTimeSeconds: BigInt(0),
481
- undelegationTxHash: '',
482
- unbondedTokenSweepTxHash: '',
483
- };
484
- }
485
- export const UnbondingRecord = {
486
- typeUrl: '/stride.staketia.UnbondingRecord',
487
- encode(message, writer = BinaryWriter.create()) {
488
- if (message.id !== BigInt(0)) {
489
- writer.uint32(8).uint64(message.id);
490
- }
491
- if (message.status !== 0) {
492
- writer.uint32(16).int32(message.status);
493
- }
494
- if (message.stTokenAmount !== '') {
495
- writer.uint32(26).string(message.stTokenAmount);
496
- }
497
- if (message.nativeAmount !== '') {
498
- writer.uint32(34).string(message.nativeAmount);
499
- }
500
- if (message.unbondingCompletionTimeSeconds !== BigInt(0)) {
501
- writer.uint32(40).uint64(message.unbondingCompletionTimeSeconds);
502
- }
503
- if (message.undelegationTxHash !== '') {
504
- writer.uint32(50).string(message.undelegationTxHash);
505
- }
506
- if (message.unbondedTokenSweepTxHash !== '') {
507
- writer.uint32(58).string(message.unbondedTokenSweepTxHash);
508
- }
509
- return writer;
510
- },
511
- decode(input, length) {
512
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
513
- let end = length === undefined ? reader.len : reader.pos + length;
514
- const message = createBaseUnbondingRecord();
515
- while (reader.pos < end) {
516
- const tag = reader.uint32();
517
- switch (tag >>> 3) {
518
- case 1:
519
- message.id = reader.uint64();
520
- break;
521
- case 2:
522
- message.status = reader.int32();
523
- break;
524
- case 3:
525
- message.stTokenAmount = reader.string();
526
- break;
527
- case 4:
528
- message.nativeAmount = reader.string();
529
- break;
530
- case 5:
531
- message.unbondingCompletionTimeSeconds = reader.uint64();
532
- break;
533
- case 6:
534
- message.undelegationTxHash = reader.string();
535
- break;
536
- case 7:
537
- message.unbondedTokenSweepTxHash = reader.string();
538
- break;
539
- default:
540
- reader.skipType(tag & 7);
541
- break;
542
- }
543
- }
544
- return message;
545
- },
546
- fromJSON(object) {
547
- return {
548
- id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0),
549
- status: isSet(object.status)
550
- ? unbondingRecordStatusFromJSON(object.status)
551
- : -1,
552
- stTokenAmount: isSet(object.stTokenAmount)
553
- ? String(object.stTokenAmount)
554
- : '',
555
- nativeAmount: isSet(object.nativeAmount)
556
- ? String(object.nativeAmount)
557
- : '',
558
- unbondingCompletionTimeSeconds: isSet(object.unbondingCompletionTimeSeconds)
559
- ? BigInt(object.unbondingCompletionTimeSeconds.toString())
560
- : BigInt(0),
561
- undelegationTxHash: isSet(object.undelegationTxHash)
562
- ? String(object.undelegationTxHash)
563
- : '',
564
- unbondedTokenSweepTxHash: isSet(object.unbondedTokenSweepTxHash)
565
- ? String(object.unbondedTokenSweepTxHash)
566
- : '',
567
- };
568
- },
569
- toJSON(message) {
570
- const obj = {};
571
- message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString());
572
- message.status !== undefined &&
573
- (obj.status = unbondingRecordStatusToJSON(message.status));
574
- message.stTokenAmount !== undefined &&
575
- (obj.stTokenAmount = message.stTokenAmount);
576
- message.nativeAmount !== undefined &&
577
- (obj.nativeAmount = message.nativeAmount);
578
- message.unbondingCompletionTimeSeconds !== undefined &&
579
- (obj.unbondingCompletionTimeSeconds = (message.unbondingCompletionTimeSeconds || BigInt(0)).toString());
580
- message.undelegationTxHash !== undefined &&
581
- (obj.undelegationTxHash = message.undelegationTxHash);
582
- message.unbondedTokenSweepTxHash !== undefined &&
583
- (obj.unbondedTokenSweepTxHash = message.unbondedTokenSweepTxHash);
584
- return obj;
585
- },
586
- fromPartial(object) {
587
- const message = createBaseUnbondingRecord();
588
- message.id =
589
- object.id !== undefined && object.id !== null
590
- ? BigInt(object.id.toString())
591
- : BigInt(0);
592
- message.status = object.status ?? 0;
593
- message.stTokenAmount = object.stTokenAmount ?? '';
594
- message.nativeAmount = object.nativeAmount ?? '';
595
- message.unbondingCompletionTimeSeconds =
596
- object.unbondingCompletionTimeSeconds !== undefined &&
597
- object.unbondingCompletionTimeSeconds !== null
598
- ? BigInt(object.unbondingCompletionTimeSeconds.toString())
599
- : BigInt(0);
600
- message.undelegationTxHash = object.undelegationTxHash ?? '';
601
- message.unbondedTokenSweepTxHash = object.unbondedTokenSweepTxHash ?? '';
602
- return message;
603
- },
604
- fromProtoMsg(message) {
605
- return UnbondingRecord.decode(message.value);
606
- },
607
- toProto(message) {
608
- return UnbondingRecord.encode(message).finish();
609
- },
610
- toProtoMsg(message) {
611
- return {
612
- typeUrl: '/stride.staketia.UnbondingRecord',
613
- value: UnbondingRecord.encode(message).finish(),
614
- };
615
- },
616
- };
617
- function createBaseRedemptionRecord() {
618
- return {
619
- unbondingRecordId: BigInt(0),
620
- redeemer: '',
621
- stTokenAmount: '',
622
- nativeAmount: '',
623
- };
624
- }
625
- export const RedemptionRecord = {
626
- typeUrl: '/stride.staketia.RedemptionRecord',
627
- encode(message, writer = BinaryWriter.create()) {
628
- if (message.unbondingRecordId !== BigInt(0)) {
629
- writer.uint32(8).uint64(message.unbondingRecordId);
630
- }
631
- if (message.redeemer !== '') {
632
- writer.uint32(18).string(message.redeemer);
633
- }
634
- if (message.stTokenAmount !== '') {
635
- writer.uint32(26).string(message.stTokenAmount);
636
- }
637
- if (message.nativeAmount !== '') {
638
- writer.uint32(34).string(message.nativeAmount);
639
- }
640
- return writer;
641
- },
642
- decode(input, length) {
643
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
644
- let end = length === undefined ? reader.len : reader.pos + length;
645
- const message = createBaseRedemptionRecord();
646
- while (reader.pos < end) {
647
- const tag = reader.uint32();
648
- switch (tag >>> 3) {
649
- case 1:
650
- message.unbondingRecordId = reader.uint64();
651
- break;
652
- case 2:
653
- message.redeemer = reader.string();
654
- break;
655
- case 3:
656
- message.stTokenAmount = reader.string();
657
- break;
658
- case 4:
659
- message.nativeAmount = reader.string();
660
- break;
661
- default:
662
- reader.skipType(tag & 7);
663
- break;
664
- }
665
- }
666
- return message;
667
- },
668
- fromJSON(object) {
669
- return {
670
- unbondingRecordId: isSet(object.unbondingRecordId)
671
- ? BigInt(object.unbondingRecordId.toString())
672
- : BigInt(0),
673
- redeemer: isSet(object.redeemer) ? String(object.redeemer) : '',
674
- stTokenAmount: isSet(object.stTokenAmount)
675
- ? String(object.stTokenAmount)
676
- : '',
677
- nativeAmount: isSet(object.nativeAmount)
678
- ? String(object.nativeAmount)
679
- : '',
680
- };
681
- },
682
- toJSON(message) {
683
- const obj = {};
684
- message.unbondingRecordId !== undefined &&
685
- (obj.unbondingRecordId = (message.unbondingRecordId || BigInt(0)).toString());
686
- message.redeemer !== undefined && (obj.redeemer = message.redeemer);
687
- message.stTokenAmount !== undefined &&
688
- (obj.stTokenAmount = message.stTokenAmount);
689
- message.nativeAmount !== undefined &&
690
- (obj.nativeAmount = message.nativeAmount);
691
- return obj;
692
- },
693
- fromPartial(object) {
694
- const message = createBaseRedemptionRecord();
695
- message.unbondingRecordId =
696
- object.unbondingRecordId !== undefined &&
697
- object.unbondingRecordId !== null
698
- ? BigInt(object.unbondingRecordId.toString())
699
- : BigInt(0);
700
- message.redeemer = object.redeemer ?? '';
701
- message.stTokenAmount = object.stTokenAmount ?? '';
702
- message.nativeAmount = object.nativeAmount ?? '';
703
- return message;
704
- },
705
- fromProtoMsg(message) {
706
- return RedemptionRecord.decode(message.value);
707
- },
708
- toProto(message) {
709
- return RedemptionRecord.encode(message).finish();
710
- },
711
- toProtoMsg(message) {
712
- return {
713
- typeUrl: '/stride.staketia.RedemptionRecord',
714
- value: RedemptionRecord.encode(message).finish(),
715
- };
716
- },
717
- };
718
- function createBaseSlashRecord() {
719
- return {
720
- id: BigInt(0),
721
- time: BigInt(0),
722
- nativeAmount: '',
723
- validatorAddress: '',
724
- };
725
- }
726
- export const SlashRecord = {
727
- typeUrl: '/stride.staketia.SlashRecord',
728
- encode(message, writer = BinaryWriter.create()) {
729
- if (message.id !== BigInt(0)) {
730
- writer.uint32(8).uint64(message.id);
731
- }
732
- if (message.time !== BigInt(0)) {
733
- writer.uint32(16).uint64(message.time);
734
- }
735
- if (message.nativeAmount !== '') {
736
- writer.uint32(26).string(message.nativeAmount);
737
- }
738
- if (message.validatorAddress !== '') {
739
- writer.uint32(34).string(message.validatorAddress);
740
- }
741
- return writer;
742
- },
743
- decode(input, length) {
744
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
745
- let end = length === undefined ? reader.len : reader.pos + length;
746
- const message = createBaseSlashRecord();
747
- while (reader.pos < end) {
748
- const tag = reader.uint32();
749
- switch (tag >>> 3) {
750
- case 1:
751
- message.id = reader.uint64();
752
- break;
753
- case 2:
754
- message.time = reader.uint64();
755
- break;
756
- case 3:
757
- message.nativeAmount = reader.string();
758
- break;
759
- case 4:
760
- message.validatorAddress = reader.string();
761
- break;
762
- default:
763
- reader.skipType(tag & 7);
764
- break;
765
- }
766
- }
767
- return message;
768
- },
769
- fromJSON(object) {
770
- return {
771
- id: isSet(object.id) ? BigInt(object.id.toString()) : BigInt(0),
772
- time: isSet(object.time) ? BigInt(object.time.toString()) : BigInt(0),
773
- nativeAmount: isSet(object.nativeAmount)
774
- ? String(object.nativeAmount)
775
- : '',
776
- validatorAddress: isSet(object.validatorAddress)
777
- ? String(object.validatorAddress)
778
- : '',
779
- };
780
- },
781
- toJSON(message) {
782
- const obj = {};
783
- message.id !== undefined && (obj.id = (message.id || BigInt(0)).toString());
784
- message.time !== undefined &&
785
- (obj.time = (message.time || BigInt(0)).toString());
786
- message.nativeAmount !== undefined &&
787
- (obj.nativeAmount = message.nativeAmount);
788
- message.validatorAddress !== undefined &&
789
- (obj.validatorAddress = message.validatorAddress);
790
- return obj;
791
- },
792
- fromPartial(object) {
793
- const message = createBaseSlashRecord();
794
- message.id =
795
- object.id !== undefined && object.id !== null
796
- ? BigInt(object.id.toString())
797
- : BigInt(0);
798
- message.time =
799
- object.time !== undefined && object.time !== null
800
- ? BigInt(object.time.toString())
801
- : BigInt(0);
802
- message.nativeAmount = object.nativeAmount ?? '';
803
- message.validatorAddress = object.validatorAddress ?? '';
804
- return message;
805
- },
806
- fromProtoMsg(message) {
807
- return SlashRecord.decode(message.value);
808
- },
809
- toProto(message) {
810
- return SlashRecord.encode(message).finish();
811
- },
812
- toProtoMsg(message) {
813
- return {
814
- typeUrl: '/stride.staketia.SlashRecord',
815
- value: SlashRecord.encode(message).finish(),
816
- };
817
- },
818
- };
819
- //# sourceMappingURL=staketia.js.map
1
+ import{BinaryReader as e,BinaryWriter as n}from"../../binary.js";import{isSet as t}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 o(){return{chainId:"",nativeTokenDenom:"",nativeTokenIbcDenom:"",transferChannelId:"",delegationAddress:"",rewardAddress:"",depositAddress:"",redemptionAddress:"",claimAddress:"",operatorAddressOnStride:"",safeAddressOnStride:"",remainingDelegatedBalance:"",unbondingPeriodSeconds:BigInt(0),halted:!1}}export const HostZone={typeUrl:"/stride.staketia.HostZone",encode:(e,t=n.create())=>(""!==e.chainId&&t.uint32(10).string(e.chainId),""!==e.nativeTokenDenom&&t.uint32(18).string(e.nativeTokenDenom),""!==e.nativeTokenIbcDenom&&t.uint32(26).string(e.nativeTokenIbcDenom),""!==e.transferChannelId&&t.uint32(34).string(e.transferChannelId),""!==e.delegationAddress&&t.uint32(42).string(e.delegationAddress),""!==e.rewardAddress&&t.uint32(50).string(e.rewardAddress),""!==e.depositAddress&&t.uint32(58).string(e.depositAddress),""!==e.redemptionAddress&&t.uint32(66).string(e.redemptionAddress),""!==e.claimAddress&&t.uint32(74).string(e.claimAddress),""!==e.operatorAddressOnStride&&t.uint32(82).string(e.operatorAddressOnStride),""!==e.safeAddressOnStride&&t.uint32(90).string(e.safeAddressOnStride),""!==e.remainingDelegatedBalance&&t.uint32(146).string(e.remainingDelegatedBalance),e.unbondingPeriodSeconds!==BigInt(0)&&t.uint32(152).uint64(e.unbondingPeriodSeconds),!0===e.halted&&t.uint32(160).bool(e.halted),t),decode(n,t){const d=n instanceof e?n:new e(n);let i=void 0===t?d.len:d.pos+t;const r=o();for(;d.pos<i;){const e=d.uint32();switch(e>>>3){case 1:r.chainId=d.string();break;case 2:r.nativeTokenDenom=d.string();break;case 3:r.nativeTokenIbcDenom=d.string();break;case 4:r.transferChannelId=d.string();break;case 5:r.delegationAddress=d.string();break;case 6:r.rewardAddress=d.string();break;case 7:r.depositAddress=d.string();break;case 8:r.redemptionAddress=d.string();break;case 9:r.claimAddress=d.string();break;case 10:r.operatorAddressOnStride=d.string();break;case 11:r.safeAddressOnStride=d.string();break;case 18:r.remainingDelegatedBalance=d.string();break;case 19:r.unbondingPeriodSeconds=d.uint64();break;case 20:r.halted=d.bool();break;default:d.skipType(7&e)}}return r},fromJSON:e=>({chainId:t(e.chainId)?String(e.chainId):"",nativeTokenDenom:t(e.nativeTokenDenom)?String(e.nativeTokenDenom):"",nativeTokenIbcDenom:t(e.nativeTokenIbcDenom)?String(e.nativeTokenIbcDenom):"",transferChannelId:t(e.transferChannelId)?String(e.transferChannelId):"",delegationAddress:t(e.delegationAddress)?String(e.delegationAddress):"",rewardAddress:t(e.rewardAddress)?String(e.rewardAddress):"",depositAddress:t(e.depositAddress)?String(e.depositAddress):"",redemptionAddress:t(e.redemptionAddress)?String(e.redemptionAddress):"",claimAddress:t(e.claimAddress)?String(e.claimAddress):"",operatorAddressOnStride:t(e.operatorAddressOnStride)?String(e.operatorAddressOnStride):"",safeAddressOnStride:t(e.safeAddressOnStride)?String(e.safeAddressOnStride):"",remainingDelegatedBalance:t(e.remainingDelegatedBalance)?String(e.remainingDelegatedBalance):"",unbondingPeriodSeconds:t(e.unbondingPeriodSeconds)?BigInt(e.unbondingPeriodSeconds.toString()):BigInt(0),halted:!!t(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.remainingDelegatedBalance&&(n.remainingDelegatedBalance=e.remainingDelegatedBalance),void 0!==e.unbondingPeriodSeconds&&(n.unbondingPeriodSeconds=(e.unbondingPeriodSeconds||BigInt(0)).toString()),void 0!==e.halted&&(n.halted=e.halted),n},fromPartial(e){const n=o();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.remainingDelegatedBalance=e.remainingDelegatedBalance??"",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.staketia.HostZone",value:HostZone.encode(e).finish()})};function d(){return{id:BigInt(0),nativeAmount:"",status:0,txHash:""}}export const DelegationRecord={typeUrl:"/stride.staketia.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:t(e.id)?BigInt(e.id.toString()):BigInt(0),nativeAmount:t(e.nativeAmount)?String(e.nativeAmount):"",status:t(e.status)?delegationRecordStatusFromJSON(e.status):-1,txHash:t(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.staketia.DelegationRecord",value:DelegationRecord.encode(e).finish()})};function i(){return{id:BigInt(0),status:0,stTokenAmount:"",nativeAmount:"",unbondingCompletionTimeSeconds:BigInt(0),undelegationTxHash:"",unbondedTokenSweepTxHash:""}}export const UnbondingRecord={typeUrl:"/stride.staketia.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 d=void 0===t?o.len:o.pos+t;const r=i();for(;o.pos<d;){const e=o.uint32();switch(e>>>3){case 1:r.id=o.uint64();break;case 2:r.status=o.int32();break;case 3:r.stTokenAmount=o.string();break;case 4:r.nativeAmount=o.string();break;case 5:r.unbondingCompletionTimeSeconds=o.uint64();break;case 6:r.undelegationTxHash=o.string();break;case 7:r.unbondedTokenSweepTxHash=o.string();break;default:o.skipType(7&e)}}return r},fromJSON:e=>({id:t(e.id)?BigInt(e.id.toString()):BigInt(0),status:t(e.status)?unbondingRecordStatusFromJSON(e.status):-1,stTokenAmount:t(e.stTokenAmount)?String(e.stTokenAmount):"",nativeAmount:t(e.nativeAmount)?String(e.nativeAmount):"",unbondingCompletionTimeSeconds:t(e.unbondingCompletionTimeSeconds)?BigInt(e.unbondingCompletionTimeSeconds.toString()):BigInt(0),undelegationTxHash:t(e.undelegationTxHash)?String(e.undelegationTxHash):"",unbondedTokenSweepTxHash:t(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=i();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.staketia.UnbondingRecord",value:UnbondingRecord.encode(e).finish()})};function r(){return{unbondingRecordId:BigInt(0),redeemer:"",stTokenAmount:"",nativeAmount:""}}export const RedemptionRecord={typeUrl:"/stride.staketia.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 d=void 0===t?o.len:o.pos+t;const i=r();for(;o.pos<d;){const e=o.uint32();switch(e>>>3){case 1:i.unbondingRecordId=o.uint64();break;case 2:i.redeemer=o.string();break;case 3:i.stTokenAmount=o.string();break;case 4:i.nativeAmount=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({unbondingRecordId:t(e.unbondingRecordId)?BigInt(e.unbondingRecordId.toString()):BigInt(0),redeemer:t(e.redeemer)?String(e.redeemer):"",stTokenAmount:t(e.stTokenAmount)?String(e.stTokenAmount):"",nativeAmount:t(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=r();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.staketia.RedemptionRecord",value:RedemptionRecord.encode(e).finish()})};function s(){return{id:BigInt(0),time:BigInt(0),nativeAmount:"",validatorAddress:""}}export const SlashRecord={typeUrl:"/stride.staketia.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 d=void 0===t?o.len:o.pos+t;const i=s();for(;o.pos<d;){const e=o.uint32();switch(e>>>3){case 1:i.id=o.uint64();break;case 2:i.time=o.uint64();break;case 3:i.nativeAmount=o.string();break;case 4:i.validatorAddress=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({id:t(e.id)?BigInt(e.id.toString()):BigInt(0),time:t(e.time)?BigInt(e.time.toString()):BigInt(0),nativeAmount:t(e.nativeAmount)?String(e.nativeAmount):"",validatorAddress:t(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=s();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.staketia.SlashRecord",value:SlashRecord.encode(e).finish()})};