@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,544 +1 @@
1
- //@ts-nocheck
2
- import { Validator } from './validator.js';
3
- import { BinaryReader, BinaryWriter } from '../../binary.js';
4
- import { Decimal, isSet } from '../../helpers.js';
5
- import {} from '../../json-safe.js';
6
- function createBaseCommunityPoolRebate() {
7
- return {
8
- rebateRate: '',
9
- liquidStakedStTokenAmount: '',
10
- };
11
- }
12
- export const CommunityPoolRebate = {
13
- typeUrl: '/stride.stakeibc.CommunityPoolRebate',
14
- encode(message, writer = BinaryWriter.create()) {
15
- if (message.rebateRate !== '') {
16
- writer
17
- .uint32(10)
18
- .string(Decimal.fromUserInput(message.rebateRate, 18).atomics);
19
- }
20
- if (message.liquidStakedStTokenAmount !== '') {
21
- writer.uint32(18).string(message.liquidStakedStTokenAmount);
22
- }
23
- return writer;
24
- },
25
- decode(input, length) {
26
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
27
- let end = length === undefined ? reader.len : reader.pos + length;
28
- const message = createBaseCommunityPoolRebate();
29
- while (reader.pos < end) {
30
- const tag = reader.uint32();
31
- switch (tag >>> 3) {
32
- case 1:
33
- message.rebateRate = Decimal.fromAtomics(reader.string(), 18).toString();
34
- break;
35
- case 2:
36
- message.liquidStakedStTokenAmount = reader.string();
37
- break;
38
- default:
39
- reader.skipType(tag & 7);
40
- break;
41
- }
42
- }
43
- return message;
44
- },
45
- fromJSON(object) {
46
- return {
47
- rebateRate: isSet(object.rebateRate) ? String(object.rebateRate) : '',
48
- liquidStakedStTokenAmount: isSet(object.liquidStakedStTokenAmount)
49
- ? String(object.liquidStakedStTokenAmount)
50
- : '',
51
- };
52
- },
53
- toJSON(message) {
54
- const obj = {};
55
- message.rebateRate !== undefined && (obj.rebateRate = message.rebateRate);
56
- message.liquidStakedStTokenAmount !== undefined &&
57
- (obj.liquidStakedStTokenAmount = message.liquidStakedStTokenAmount);
58
- return obj;
59
- },
60
- fromPartial(object) {
61
- const message = createBaseCommunityPoolRebate();
62
- message.rebateRate = object.rebateRate ?? '';
63
- message.liquidStakedStTokenAmount = object.liquidStakedStTokenAmount ?? '';
64
- return message;
65
- },
66
- fromProtoMsg(message) {
67
- return CommunityPoolRebate.decode(message.value);
68
- },
69
- toProto(message) {
70
- return CommunityPoolRebate.encode(message).finish();
71
- },
72
- toProtoMsg(message) {
73
- return {
74
- typeUrl: '/stride.stakeibc.CommunityPoolRebate',
75
- value: CommunityPoolRebate.encode(message).finish(),
76
- };
77
- },
78
- };
79
- function createBaseHostZone() {
80
- return {
81
- chainId: '',
82
- bech32prefix: '',
83
- connectionId: '',
84
- transferChannelId: '',
85
- ibcDenom: '',
86
- hostDenom: '',
87
- unbondingPeriod: BigInt(0),
88
- validators: [],
89
- depositAddress: '',
90
- withdrawalIcaAddress: '',
91
- feeIcaAddress: '',
92
- delegationIcaAddress: '',
93
- redemptionIcaAddress: '',
94
- communityPoolDepositIcaAddress: '',
95
- communityPoolReturnIcaAddress: '',
96
- communityPoolStakeHoldingAddress: '',
97
- communityPoolRedeemHoldingAddress: '',
98
- communityPoolTreasuryAddress: '',
99
- totalDelegations: '',
100
- lastRedemptionRate: '',
101
- redemptionRate: '',
102
- minRedemptionRate: '',
103
- maxRedemptionRate: '',
104
- minInnerRedemptionRate: '',
105
- maxInnerRedemptionRate: '',
106
- maxMessagesPerIcaTx: BigInt(0),
107
- redemptionsEnabled: false,
108
- communityPoolRebate: undefined,
109
- lsmLiquidStakeEnabled: false,
110
- halted: false,
111
- };
112
- }
113
- export const HostZone = {
114
- typeUrl: '/stride.stakeibc.HostZone',
115
- encode(message, writer = BinaryWriter.create()) {
116
- if (message.chainId !== '') {
117
- writer.uint32(10).string(message.chainId);
118
- }
119
- if (message.bech32prefix !== '') {
120
- writer.uint32(138).string(message.bech32prefix);
121
- }
122
- if (message.connectionId !== '') {
123
- writer.uint32(18).string(message.connectionId);
124
- }
125
- if (message.transferChannelId !== '') {
126
- writer.uint32(98).string(message.transferChannelId);
127
- }
128
- if (message.ibcDenom !== '') {
129
- writer.uint32(66).string(message.ibcDenom);
130
- }
131
- if (message.hostDenom !== '') {
132
- writer.uint32(74).string(message.hostDenom);
133
- }
134
- if (message.unbondingPeriod !== BigInt(0)) {
135
- writer.uint32(208).uint64(message.unbondingPeriod);
136
- }
137
- for (const v of message.validators) {
138
- Validator.encode(v, writer.uint32(26).fork()).ldelim();
139
- }
140
- if (message.depositAddress !== '') {
141
- writer.uint32(146).string(message.depositAddress);
142
- }
143
- if (message.withdrawalIcaAddress !== '') {
144
- writer.uint32(178).string(message.withdrawalIcaAddress);
145
- }
146
- if (message.feeIcaAddress !== '') {
147
- writer.uint32(186).string(message.feeIcaAddress);
148
- }
149
- if (message.delegationIcaAddress !== '') {
150
- writer.uint32(194).string(message.delegationIcaAddress);
151
- }
152
- if (message.redemptionIcaAddress !== '') {
153
- writer.uint32(202).string(message.redemptionIcaAddress);
154
- }
155
- if (message.communityPoolDepositIcaAddress !== '') {
156
- writer.uint32(242).string(message.communityPoolDepositIcaAddress);
157
- }
158
- if (message.communityPoolReturnIcaAddress !== '') {
159
- writer.uint32(250).string(message.communityPoolReturnIcaAddress);
160
- }
161
- if (message.communityPoolStakeHoldingAddress !== '') {
162
- writer.uint32(258).string(message.communityPoolStakeHoldingAddress);
163
- }
164
- if (message.communityPoolRedeemHoldingAddress !== '') {
165
- writer.uint32(266).string(message.communityPoolRedeemHoldingAddress);
166
- }
167
- if (message.communityPoolTreasuryAddress !== '') {
168
- writer.uint32(282).string(message.communityPoolTreasuryAddress);
169
- }
170
- if (message.totalDelegations !== '') {
171
- writer.uint32(106).string(message.totalDelegations);
172
- }
173
- if (message.lastRedemptionRate !== '') {
174
- writer
175
- .uint32(82)
176
- .string(Decimal.fromUserInput(message.lastRedemptionRate, 18).atomics);
177
- }
178
- if (message.redemptionRate !== '') {
179
- writer
180
- .uint32(90)
181
- .string(Decimal.fromUserInput(message.redemptionRate, 18).atomics);
182
- }
183
- if (message.minRedemptionRate !== '') {
184
- writer
185
- .uint32(162)
186
- .string(Decimal.fromUserInput(message.minRedemptionRate, 18).atomics);
187
- }
188
- if (message.maxRedemptionRate !== '') {
189
- writer
190
- .uint32(170)
191
- .string(Decimal.fromUserInput(message.maxRedemptionRate, 18).atomics);
192
- }
193
- if (message.minInnerRedemptionRate !== '') {
194
- writer
195
- .uint32(226)
196
- .string(Decimal.fromUserInput(message.minInnerRedemptionRate, 18).atomics);
197
- }
198
- if (message.maxInnerRedemptionRate !== '') {
199
- writer
200
- .uint32(234)
201
- .string(Decimal.fromUserInput(message.maxInnerRedemptionRate, 18).atomics);
202
- }
203
- if (message.maxMessagesPerIcaTx !== BigInt(0)) {
204
- writer.uint32(288).uint64(message.maxMessagesPerIcaTx);
205
- }
206
- if (message.redemptionsEnabled === true) {
207
- writer.uint32(296).bool(message.redemptionsEnabled);
208
- }
209
- if (message.communityPoolRebate !== undefined) {
210
- CommunityPoolRebate.encode(message.communityPoolRebate, writer.uint32(274).fork()).ldelim();
211
- }
212
- if (message.lsmLiquidStakeEnabled === true) {
213
- writer.uint32(216).bool(message.lsmLiquidStakeEnabled);
214
- }
215
- if (message.halted === true) {
216
- writer.uint32(152).bool(message.halted);
217
- }
218
- return writer;
219
- },
220
- decode(input, length) {
221
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
222
- let end = length === undefined ? reader.len : reader.pos + length;
223
- const message = createBaseHostZone();
224
- while (reader.pos < end) {
225
- const tag = reader.uint32();
226
- switch (tag >>> 3) {
227
- case 1:
228
- message.chainId = reader.string();
229
- break;
230
- case 17:
231
- message.bech32prefix = reader.string();
232
- break;
233
- case 2:
234
- message.connectionId = reader.string();
235
- break;
236
- case 12:
237
- message.transferChannelId = reader.string();
238
- break;
239
- case 8:
240
- message.ibcDenom = reader.string();
241
- break;
242
- case 9:
243
- message.hostDenom = reader.string();
244
- break;
245
- case 26:
246
- message.unbondingPeriod = reader.uint64();
247
- break;
248
- case 3:
249
- message.validators.push(Validator.decode(reader, reader.uint32()));
250
- break;
251
- case 18:
252
- message.depositAddress = reader.string();
253
- break;
254
- case 22:
255
- message.withdrawalIcaAddress = reader.string();
256
- break;
257
- case 23:
258
- message.feeIcaAddress = reader.string();
259
- break;
260
- case 24:
261
- message.delegationIcaAddress = reader.string();
262
- break;
263
- case 25:
264
- message.redemptionIcaAddress = reader.string();
265
- break;
266
- case 30:
267
- message.communityPoolDepositIcaAddress = reader.string();
268
- break;
269
- case 31:
270
- message.communityPoolReturnIcaAddress = reader.string();
271
- break;
272
- case 32:
273
- message.communityPoolStakeHoldingAddress = reader.string();
274
- break;
275
- case 33:
276
- message.communityPoolRedeemHoldingAddress = reader.string();
277
- break;
278
- case 35:
279
- message.communityPoolTreasuryAddress = reader.string();
280
- break;
281
- case 13:
282
- message.totalDelegations = reader.string();
283
- break;
284
- case 10:
285
- message.lastRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
286
- break;
287
- case 11:
288
- message.redemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
289
- break;
290
- case 20:
291
- message.minRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
292
- break;
293
- case 21:
294
- message.maxRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
295
- break;
296
- case 28:
297
- message.minInnerRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
298
- break;
299
- case 29:
300
- message.maxInnerRedemptionRate = Decimal.fromAtomics(reader.string(), 18).toString();
301
- break;
302
- case 36:
303
- message.maxMessagesPerIcaTx = reader.uint64();
304
- break;
305
- case 37:
306
- message.redemptionsEnabled = reader.bool();
307
- break;
308
- case 34:
309
- message.communityPoolRebate = CommunityPoolRebate.decode(reader, reader.uint32());
310
- break;
311
- case 27:
312
- message.lsmLiquidStakeEnabled = reader.bool();
313
- break;
314
- case 19:
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
- bech32prefix: isSet(object.bech32prefix)
328
- ? String(object.bech32prefix)
329
- : '',
330
- connectionId: isSet(object.connectionId)
331
- ? String(object.connectionId)
332
- : '',
333
- transferChannelId: isSet(object.transferChannelId)
334
- ? String(object.transferChannelId)
335
- : '',
336
- ibcDenom: isSet(object.ibcDenom) ? String(object.ibcDenom) : '',
337
- hostDenom: isSet(object.hostDenom) ? String(object.hostDenom) : '',
338
- unbondingPeriod: isSet(object.unbondingPeriod)
339
- ? BigInt(object.unbondingPeriod.toString())
340
- : BigInt(0),
341
- validators: Array.isArray(object?.validators)
342
- ? object.validators.map((e) => Validator.fromJSON(e))
343
- : [],
344
- depositAddress: isSet(object.depositAddress)
345
- ? String(object.depositAddress)
346
- : '',
347
- withdrawalIcaAddress: isSet(object.withdrawalIcaAddress)
348
- ? String(object.withdrawalIcaAddress)
349
- : '',
350
- feeIcaAddress: isSet(object.feeIcaAddress)
351
- ? String(object.feeIcaAddress)
352
- : '',
353
- delegationIcaAddress: isSet(object.delegationIcaAddress)
354
- ? String(object.delegationIcaAddress)
355
- : '',
356
- redemptionIcaAddress: isSet(object.redemptionIcaAddress)
357
- ? String(object.redemptionIcaAddress)
358
- : '',
359
- communityPoolDepositIcaAddress: isSet(object.communityPoolDepositIcaAddress)
360
- ? String(object.communityPoolDepositIcaAddress)
361
- : '',
362
- communityPoolReturnIcaAddress: isSet(object.communityPoolReturnIcaAddress)
363
- ? String(object.communityPoolReturnIcaAddress)
364
- : '',
365
- communityPoolStakeHoldingAddress: isSet(object.communityPoolStakeHoldingAddress)
366
- ? String(object.communityPoolStakeHoldingAddress)
367
- : '',
368
- communityPoolRedeemHoldingAddress: isSet(object.communityPoolRedeemHoldingAddress)
369
- ? String(object.communityPoolRedeemHoldingAddress)
370
- : '',
371
- communityPoolTreasuryAddress: isSet(object.communityPoolTreasuryAddress)
372
- ? String(object.communityPoolTreasuryAddress)
373
- : '',
374
- totalDelegations: isSet(object.totalDelegations)
375
- ? String(object.totalDelegations)
376
- : '',
377
- lastRedemptionRate: isSet(object.lastRedemptionRate)
378
- ? String(object.lastRedemptionRate)
379
- : '',
380
- redemptionRate: isSet(object.redemptionRate)
381
- ? String(object.redemptionRate)
382
- : '',
383
- minRedemptionRate: isSet(object.minRedemptionRate)
384
- ? String(object.minRedemptionRate)
385
- : '',
386
- maxRedemptionRate: isSet(object.maxRedemptionRate)
387
- ? String(object.maxRedemptionRate)
388
- : '',
389
- minInnerRedemptionRate: isSet(object.minInnerRedemptionRate)
390
- ? String(object.minInnerRedemptionRate)
391
- : '',
392
- maxInnerRedemptionRate: isSet(object.maxInnerRedemptionRate)
393
- ? String(object.maxInnerRedemptionRate)
394
- : '',
395
- maxMessagesPerIcaTx: isSet(object.maxMessagesPerIcaTx)
396
- ? BigInt(object.maxMessagesPerIcaTx.toString())
397
- : BigInt(0),
398
- redemptionsEnabled: isSet(object.redemptionsEnabled)
399
- ? Boolean(object.redemptionsEnabled)
400
- : false,
401
- communityPoolRebate: isSet(object.communityPoolRebate)
402
- ? CommunityPoolRebate.fromJSON(object.communityPoolRebate)
403
- : undefined,
404
- lsmLiquidStakeEnabled: isSet(object.lsmLiquidStakeEnabled)
405
- ? Boolean(object.lsmLiquidStakeEnabled)
406
- : false,
407
- halted: isSet(object.halted) ? Boolean(object.halted) : false,
408
- };
409
- },
410
- toJSON(message) {
411
- const obj = {};
412
- message.chainId !== undefined && (obj.chainId = message.chainId);
413
- message.bech32prefix !== undefined &&
414
- (obj.bech32prefix = message.bech32prefix);
415
- message.connectionId !== undefined &&
416
- (obj.connectionId = message.connectionId);
417
- message.transferChannelId !== undefined &&
418
- (obj.transferChannelId = message.transferChannelId);
419
- message.ibcDenom !== undefined && (obj.ibcDenom = message.ibcDenom);
420
- message.hostDenom !== undefined && (obj.hostDenom = message.hostDenom);
421
- message.unbondingPeriod !== undefined &&
422
- (obj.unbondingPeriod = (message.unbondingPeriod || BigInt(0)).toString());
423
- if (message.validators) {
424
- obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined);
425
- }
426
- else {
427
- obj.validators = [];
428
- }
429
- message.depositAddress !== undefined &&
430
- (obj.depositAddress = message.depositAddress);
431
- message.withdrawalIcaAddress !== undefined &&
432
- (obj.withdrawalIcaAddress = message.withdrawalIcaAddress);
433
- message.feeIcaAddress !== undefined &&
434
- (obj.feeIcaAddress = message.feeIcaAddress);
435
- message.delegationIcaAddress !== undefined &&
436
- (obj.delegationIcaAddress = message.delegationIcaAddress);
437
- message.redemptionIcaAddress !== undefined &&
438
- (obj.redemptionIcaAddress = message.redemptionIcaAddress);
439
- message.communityPoolDepositIcaAddress !== undefined &&
440
- (obj.communityPoolDepositIcaAddress =
441
- message.communityPoolDepositIcaAddress);
442
- message.communityPoolReturnIcaAddress !== undefined &&
443
- (obj.communityPoolReturnIcaAddress =
444
- message.communityPoolReturnIcaAddress);
445
- message.communityPoolStakeHoldingAddress !== undefined &&
446
- (obj.communityPoolStakeHoldingAddress =
447
- message.communityPoolStakeHoldingAddress);
448
- message.communityPoolRedeemHoldingAddress !== undefined &&
449
- (obj.communityPoolRedeemHoldingAddress =
450
- message.communityPoolRedeemHoldingAddress);
451
- message.communityPoolTreasuryAddress !== undefined &&
452
- (obj.communityPoolTreasuryAddress = message.communityPoolTreasuryAddress);
453
- message.totalDelegations !== undefined &&
454
- (obj.totalDelegations = message.totalDelegations);
455
- message.lastRedemptionRate !== undefined &&
456
- (obj.lastRedemptionRate = message.lastRedemptionRate);
457
- message.redemptionRate !== undefined &&
458
- (obj.redemptionRate = message.redemptionRate);
459
- message.minRedemptionRate !== undefined &&
460
- (obj.minRedemptionRate = message.minRedemptionRate);
461
- message.maxRedemptionRate !== undefined &&
462
- (obj.maxRedemptionRate = message.maxRedemptionRate);
463
- message.minInnerRedemptionRate !== undefined &&
464
- (obj.minInnerRedemptionRate = message.minInnerRedemptionRate);
465
- message.maxInnerRedemptionRate !== undefined &&
466
- (obj.maxInnerRedemptionRate = message.maxInnerRedemptionRate);
467
- message.maxMessagesPerIcaTx !== undefined &&
468
- (obj.maxMessagesPerIcaTx = (message.maxMessagesPerIcaTx || BigInt(0)).toString());
469
- message.redemptionsEnabled !== undefined &&
470
- (obj.redemptionsEnabled = message.redemptionsEnabled);
471
- message.communityPoolRebate !== undefined &&
472
- (obj.communityPoolRebate = message.communityPoolRebate
473
- ? CommunityPoolRebate.toJSON(message.communityPoolRebate)
474
- : undefined);
475
- message.lsmLiquidStakeEnabled !== undefined &&
476
- (obj.lsmLiquidStakeEnabled = message.lsmLiquidStakeEnabled);
477
- message.halted !== undefined && (obj.halted = message.halted);
478
- return obj;
479
- },
480
- fromPartial(object) {
481
- const message = createBaseHostZone();
482
- message.chainId = object.chainId ?? '';
483
- message.bech32prefix = object.bech32prefix ?? '';
484
- message.connectionId = object.connectionId ?? '';
485
- message.transferChannelId = object.transferChannelId ?? '';
486
- message.ibcDenom = object.ibcDenom ?? '';
487
- message.hostDenom = object.hostDenom ?? '';
488
- message.unbondingPeriod =
489
- object.unbondingPeriod !== undefined && object.unbondingPeriod !== null
490
- ? BigInt(object.unbondingPeriod.toString())
491
- : BigInt(0);
492
- message.validators =
493
- object.validators?.map(e => Validator.fromPartial(e)) || [];
494
- message.depositAddress = object.depositAddress ?? '';
495
- message.withdrawalIcaAddress = object.withdrawalIcaAddress ?? '';
496
- message.feeIcaAddress = object.feeIcaAddress ?? '';
497
- message.delegationIcaAddress = object.delegationIcaAddress ?? '';
498
- message.redemptionIcaAddress = object.redemptionIcaAddress ?? '';
499
- message.communityPoolDepositIcaAddress =
500
- object.communityPoolDepositIcaAddress ?? '';
501
- message.communityPoolReturnIcaAddress =
502
- object.communityPoolReturnIcaAddress ?? '';
503
- message.communityPoolStakeHoldingAddress =
504
- object.communityPoolStakeHoldingAddress ?? '';
505
- message.communityPoolRedeemHoldingAddress =
506
- object.communityPoolRedeemHoldingAddress ?? '';
507
- message.communityPoolTreasuryAddress =
508
- object.communityPoolTreasuryAddress ?? '';
509
- message.totalDelegations = object.totalDelegations ?? '';
510
- message.lastRedemptionRate = object.lastRedemptionRate ?? '';
511
- message.redemptionRate = object.redemptionRate ?? '';
512
- message.minRedemptionRate = object.minRedemptionRate ?? '';
513
- message.maxRedemptionRate = object.maxRedemptionRate ?? '';
514
- message.minInnerRedemptionRate = object.minInnerRedemptionRate ?? '';
515
- message.maxInnerRedemptionRate = object.maxInnerRedemptionRate ?? '';
516
- message.maxMessagesPerIcaTx =
517
- object.maxMessagesPerIcaTx !== undefined &&
518
- object.maxMessagesPerIcaTx !== null
519
- ? BigInt(object.maxMessagesPerIcaTx.toString())
520
- : BigInt(0);
521
- message.redemptionsEnabled = object.redemptionsEnabled ?? false;
522
- message.communityPoolRebate =
523
- object.communityPoolRebate !== undefined &&
524
- object.communityPoolRebate !== null
525
- ? CommunityPoolRebate.fromPartial(object.communityPoolRebate)
526
- : undefined;
527
- message.lsmLiquidStakeEnabled = object.lsmLiquidStakeEnabled ?? false;
528
- message.halted = object.halted ?? false;
529
- return message;
530
- },
531
- fromProtoMsg(message) {
532
- return HostZone.decode(message.value);
533
- },
534
- toProto(message) {
535
- return HostZone.encode(message).finish();
536
- },
537
- toProtoMsg(message) {
538
- return {
539
- typeUrl: '/stride.stakeibc.HostZone',
540
- value: HostZone.encode(message).finish(),
541
- };
542
- },
543
- };
544
- //# sourceMappingURL=host_zone.js.map
1
+ import{Validator as e}from"./validator.js";import{BinaryReader as t,BinaryWriter as o}from"../../binary.js";import{Decimal as n,isSet as i}from"../../helpers.js";import{}from"../../json-safe.js";export const CommunityPoolRebate={typeUrl:"/stride.stakeibc.CommunityPoolRebate",encode:(e,t=o.create())=>(""!==e.rebateRate&&t.uint32(10).string(n.fromUserInput(e.rebateRate,18).atomics),""!==e.liquidStakedStTokenAmount&&t.uint32(18).string(e.liquidStakedStTokenAmount),t),decode(e,o){const i=e instanceof t?e:new t(e);let d=void 0===o?i.len:i.pos+o;const a={rebateRate:"",liquidStakedStTokenAmount:""};for(;i.pos<d;){const e=i.uint32();switch(e>>>3){case 1:a.rebateRate=n.fromAtomics(i.string(),18).toString();break;case 2:a.liquidStakedStTokenAmount=i.string();break;default:i.skipType(7&e)}}return a},fromJSON:e=>({rebateRate:i(e.rebateRate)?String(e.rebateRate):"",liquidStakedStTokenAmount:i(e.liquidStakedStTokenAmount)?String(e.liquidStakedStTokenAmount):""}),toJSON(e){const t={};return void 0!==e.rebateRate&&(t.rebateRate=e.rebateRate),void 0!==e.liquidStakedStTokenAmount&&(t.liquidStakedStTokenAmount=e.liquidStakedStTokenAmount),t},fromPartial(e){const t={rebateRate:"",liquidStakedStTokenAmount:""};return t.rebateRate=e.rebateRate??"",t.liquidStakedStTokenAmount=e.liquidStakedStTokenAmount??"",t},fromProtoMsg:e=>CommunityPoolRebate.decode(e.value),toProto:e=>CommunityPoolRebate.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.CommunityPoolRebate",value:CommunityPoolRebate.encode(e).finish()})};function d(){return{chainId:"",bech32prefix:"",connectionId:"",transferChannelId:"",ibcDenom:"",hostDenom:"",unbondingPeriod:BigInt(0),validators:[],depositAddress:"",withdrawalIcaAddress:"",feeIcaAddress:"",delegationIcaAddress:"",redemptionIcaAddress:"",communityPoolDepositIcaAddress:"",communityPoolReturnIcaAddress:"",communityPoolStakeHoldingAddress:"",communityPoolRedeemHoldingAddress:"",communityPoolTreasuryAddress:"",totalDelegations:"",lastRedemptionRate:"",redemptionRate:"",minRedemptionRate:"",maxRedemptionRate:"",minInnerRedemptionRate:"",maxInnerRedemptionRate:"",maxMessagesPerIcaTx:BigInt(0),redemptionsEnabled:!1,communityPoolRebate:void 0,lsmLiquidStakeEnabled:!1,halted:!1}}export const HostZone={typeUrl:"/stride.stakeibc.HostZone",encode(t,i=o.create()){""!==t.chainId&&i.uint32(10).string(t.chainId),""!==t.bech32prefix&&i.uint32(138).string(t.bech32prefix),""!==t.connectionId&&i.uint32(18).string(t.connectionId),""!==t.transferChannelId&&i.uint32(98).string(t.transferChannelId),""!==t.ibcDenom&&i.uint32(66).string(t.ibcDenom),""!==t.hostDenom&&i.uint32(74).string(t.hostDenom),t.unbondingPeriod!==BigInt(0)&&i.uint32(208).uint64(t.unbondingPeriod);for(const o of t.validators)e.encode(o,i.uint32(26).fork()).ldelim();return""!==t.depositAddress&&i.uint32(146).string(t.depositAddress),""!==t.withdrawalIcaAddress&&i.uint32(178).string(t.withdrawalIcaAddress),""!==t.feeIcaAddress&&i.uint32(186).string(t.feeIcaAddress),""!==t.delegationIcaAddress&&i.uint32(194).string(t.delegationIcaAddress),""!==t.redemptionIcaAddress&&i.uint32(202).string(t.redemptionIcaAddress),""!==t.communityPoolDepositIcaAddress&&i.uint32(242).string(t.communityPoolDepositIcaAddress),""!==t.communityPoolReturnIcaAddress&&i.uint32(250).string(t.communityPoolReturnIcaAddress),""!==t.communityPoolStakeHoldingAddress&&i.uint32(258).string(t.communityPoolStakeHoldingAddress),""!==t.communityPoolRedeemHoldingAddress&&i.uint32(266).string(t.communityPoolRedeemHoldingAddress),""!==t.communityPoolTreasuryAddress&&i.uint32(282).string(t.communityPoolTreasuryAddress),""!==t.totalDelegations&&i.uint32(106).string(t.totalDelegations),""!==t.lastRedemptionRate&&i.uint32(82).string(n.fromUserInput(t.lastRedemptionRate,18).atomics),""!==t.redemptionRate&&i.uint32(90).string(n.fromUserInput(t.redemptionRate,18).atomics),""!==t.minRedemptionRate&&i.uint32(162).string(n.fromUserInput(t.minRedemptionRate,18).atomics),""!==t.maxRedemptionRate&&i.uint32(170).string(n.fromUserInput(t.maxRedemptionRate,18).atomics),""!==t.minInnerRedemptionRate&&i.uint32(226).string(n.fromUserInput(t.minInnerRedemptionRate,18).atomics),""!==t.maxInnerRedemptionRate&&i.uint32(234).string(n.fromUserInput(t.maxInnerRedemptionRate,18).atomics),t.maxMessagesPerIcaTx!==BigInt(0)&&i.uint32(288).uint64(t.maxMessagesPerIcaTx),!0===t.redemptionsEnabled&&i.uint32(296).bool(t.redemptionsEnabled),void 0!==t.communityPoolRebate&&CommunityPoolRebate.encode(t.communityPoolRebate,i.uint32(274).fork()).ldelim(),!0===t.lsmLiquidStakeEnabled&&i.uint32(216).bool(t.lsmLiquidStakeEnabled),!0===t.halted&&i.uint32(152).bool(t.halted),i},decode(o,i){const a=o instanceof t?o:new t(o);let s=void 0===i?a.len:a.pos+i;const r=d();for(;a.pos<s;){const t=a.uint32();switch(t>>>3){case 1:r.chainId=a.string();break;case 17:r.bech32prefix=a.string();break;case 2:r.connectionId=a.string();break;case 12:r.transferChannelId=a.string();break;case 8:r.ibcDenom=a.string();break;case 9:r.hostDenom=a.string();break;case 26:r.unbondingPeriod=a.uint64();break;case 3:r.validators.push(e.decode(a,a.uint32()));break;case 18:r.depositAddress=a.string();break;case 22:r.withdrawalIcaAddress=a.string();break;case 23:r.feeIcaAddress=a.string();break;case 24:r.delegationIcaAddress=a.string();break;case 25:r.redemptionIcaAddress=a.string();break;case 30:r.communityPoolDepositIcaAddress=a.string();break;case 31:r.communityPoolReturnIcaAddress=a.string();break;case 32:r.communityPoolStakeHoldingAddress=a.string();break;case 33:r.communityPoolRedeemHoldingAddress=a.string();break;case 35:r.communityPoolTreasuryAddress=a.string();break;case 13:r.totalDelegations=a.string();break;case 10:r.lastRedemptionRate=n.fromAtomics(a.string(),18).toString();break;case 11:r.redemptionRate=n.fromAtomics(a.string(),18).toString();break;case 20:r.minRedemptionRate=n.fromAtomics(a.string(),18).toString();break;case 21:r.maxRedemptionRate=n.fromAtomics(a.string(),18).toString();break;case 28:r.minInnerRedemptionRate=n.fromAtomics(a.string(),18).toString();break;case 29:r.maxInnerRedemptionRate=n.fromAtomics(a.string(),18).toString();break;case 36:r.maxMessagesPerIcaTx=a.uint64();break;case 37:r.redemptionsEnabled=a.bool();break;case 34:r.communityPoolRebate=CommunityPoolRebate.decode(a,a.uint32());break;case 27:r.lsmLiquidStakeEnabled=a.bool();break;case 19:r.halted=a.bool();break;default:a.skipType(7&t)}}return r},fromJSON:t=>({chainId:i(t.chainId)?String(t.chainId):"",bech32prefix:i(t.bech32prefix)?String(t.bech32prefix):"",connectionId:i(t.connectionId)?String(t.connectionId):"",transferChannelId:i(t.transferChannelId)?String(t.transferChannelId):"",ibcDenom:i(t.ibcDenom)?String(t.ibcDenom):"",hostDenom:i(t.hostDenom)?String(t.hostDenom):"",unbondingPeriod:i(t.unbondingPeriod)?BigInt(t.unbondingPeriod.toString()):BigInt(0),validators:Array.isArray(t?.validators)?t.validators.map((t=>e.fromJSON(t))):[],depositAddress:i(t.depositAddress)?String(t.depositAddress):"",withdrawalIcaAddress:i(t.withdrawalIcaAddress)?String(t.withdrawalIcaAddress):"",feeIcaAddress:i(t.feeIcaAddress)?String(t.feeIcaAddress):"",delegationIcaAddress:i(t.delegationIcaAddress)?String(t.delegationIcaAddress):"",redemptionIcaAddress:i(t.redemptionIcaAddress)?String(t.redemptionIcaAddress):"",communityPoolDepositIcaAddress:i(t.communityPoolDepositIcaAddress)?String(t.communityPoolDepositIcaAddress):"",communityPoolReturnIcaAddress:i(t.communityPoolReturnIcaAddress)?String(t.communityPoolReturnIcaAddress):"",communityPoolStakeHoldingAddress:i(t.communityPoolStakeHoldingAddress)?String(t.communityPoolStakeHoldingAddress):"",communityPoolRedeemHoldingAddress:i(t.communityPoolRedeemHoldingAddress)?String(t.communityPoolRedeemHoldingAddress):"",communityPoolTreasuryAddress:i(t.communityPoolTreasuryAddress)?String(t.communityPoolTreasuryAddress):"",totalDelegations:i(t.totalDelegations)?String(t.totalDelegations):"",lastRedemptionRate:i(t.lastRedemptionRate)?String(t.lastRedemptionRate):"",redemptionRate:i(t.redemptionRate)?String(t.redemptionRate):"",minRedemptionRate:i(t.minRedemptionRate)?String(t.minRedemptionRate):"",maxRedemptionRate:i(t.maxRedemptionRate)?String(t.maxRedemptionRate):"",minInnerRedemptionRate:i(t.minInnerRedemptionRate)?String(t.minInnerRedemptionRate):"",maxInnerRedemptionRate:i(t.maxInnerRedemptionRate)?String(t.maxInnerRedemptionRate):"",maxMessagesPerIcaTx:i(t.maxMessagesPerIcaTx)?BigInt(t.maxMessagesPerIcaTx.toString()):BigInt(0),redemptionsEnabled:!!i(t.redemptionsEnabled)&&Boolean(t.redemptionsEnabled),communityPoolRebate:i(t.communityPoolRebate)?CommunityPoolRebate.fromJSON(t.communityPoolRebate):void 0,lsmLiquidStakeEnabled:!!i(t.lsmLiquidStakeEnabled)&&Boolean(t.lsmLiquidStakeEnabled),halted:!!i(t.halted)&&Boolean(t.halted)}),toJSON(t){const o={};return void 0!==t.chainId&&(o.chainId=t.chainId),void 0!==t.bech32prefix&&(o.bech32prefix=t.bech32prefix),void 0!==t.connectionId&&(o.connectionId=t.connectionId),void 0!==t.transferChannelId&&(o.transferChannelId=t.transferChannelId),void 0!==t.ibcDenom&&(o.ibcDenom=t.ibcDenom),void 0!==t.hostDenom&&(o.hostDenom=t.hostDenom),void 0!==t.unbondingPeriod&&(o.unbondingPeriod=(t.unbondingPeriod||BigInt(0)).toString()),t.validators?o.validators=t.validators.map((t=>t?e.toJSON(t):void 0)):o.validators=[],void 0!==t.depositAddress&&(o.depositAddress=t.depositAddress),void 0!==t.withdrawalIcaAddress&&(o.withdrawalIcaAddress=t.withdrawalIcaAddress),void 0!==t.feeIcaAddress&&(o.feeIcaAddress=t.feeIcaAddress),void 0!==t.delegationIcaAddress&&(o.delegationIcaAddress=t.delegationIcaAddress),void 0!==t.redemptionIcaAddress&&(o.redemptionIcaAddress=t.redemptionIcaAddress),void 0!==t.communityPoolDepositIcaAddress&&(o.communityPoolDepositIcaAddress=t.communityPoolDepositIcaAddress),void 0!==t.communityPoolReturnIcaAddress&&(o.communityPoolReturnIcaAddress=t.communityPoolReturnIcaAddress),void 0!==t.communityPoolStakeHoldingAddress&&(o.communityPoolStakeHoldingAddress=t.communityPoolStakeHoldingAddress),void 0!==t.communityPoolRedeemHoldingAddress&&(o.communityPoolRedeemHoldingAddress=t.communityPoolRedeemHoldingAddress),void 0!==t.communityPoolTreasuryAddress&&(o.communityPoolTreasuryAddress=t.communityPoolTreasuryAddress),void 0!==t.totalDelegations&&(o.totalDelegations=t.totalDelegations),void 0!==t.lastRedemptionRate&&(o.lastRedemptionRate=t.lastRedemptionRate),void 0!==t.redemptionRate&&(o.redemptionRate=t.redemptionRate),void 0!==t.minRedemptionRate&&(o.minRedemptionRate=t.minRedemptionRate),void 0!==t.maxRedemptionRate&&(o.maxRedemptionRate=t.maxRedemptionRate),void 0!==t.minInnerRedemptionRate&&(o.minInnerRedemptionRate=t.minInnerRedemptionRate),void 0!==t.maxInnerRedemptionRate&&(o.maxInnerRedemptionRate=t.maxInnerRedemptionRate),void 0!==t.maxMessagesPerIcaTx&&(o.maxMessagesPerIcaTx=(t.maxMessagesPerIcaTx||BigInt(0)).toString()),void 0!==t.redemptionsEnabled&&(o.redemptionsEnabled=t.redemptionsEnabled),void 0!==t.communityPoolRebate&&(o.communityPoolRebate=t.communityPoolRebate?CommunityPoolRebate.toJSON(t.communityPoolRebate):void 0),void 0!==t.lsmLiquidStakeEnabled&&(o.lsmLiquidStakeEnabled=t.lsmLiquidStakeEnabled),void 0!==t.halted&&(o.halted=t.halted),o},fromPartial(t){const o=d();return o.chainId=t.chainId??"",o.bech32prefix=t.bech32prefix??"",o.connectionId=t.connectionId??"",o.transferChannelId=t.transferChannelId??"",o.ibcDenom=t.ibcDenom??"",o.hostDenom=t.hostDenom??"",o.unbondingPeriod=void 0!==t.unbondingPeriod&&null!==t.unbondingPeriod?BigInt(t.unbondingPeriod.toString()):BigInt(0),o.validators=t.validators?.map((t=>e.fromPartial(t)))||[],o.depositAddress=t.depositAddress??"",o.withdrawalIcaAddress=t.withdrawalIcaAddress??"",o.feeIcaAddress=t.feeIcaAddress??"",o.delegationIcaAddress=t.delegationIcaAddress??"",o.redemptionIcaAddress=t.redemptionIcaAddress??"",o.communityPoolDepositIcaAddress=t.communityPoolDepositIcaAddress??"",o.communityPoolReturnIcaAddress=t.communityPoolReturnIcaAddress??"",o.communityPoolStakeHoldingAddress=t.communityPoolStakeHoldingAddress??"",o.communityPoolRedeemHoldingAddress=t.communityPoolRedeemHoldingAddress??"",o.communityPoolTreasuryAddress=t.communityPoolTreasuryAddress??"",o.totalDelegations=t.totalDelegations??"",o.lastRedemptionRate=t.lastRedemptionRate??"",o.redemptionRate=t.redemptionRate??"",o.minRedemptionRate=t.minRedemptionRate??"",o.maxRedemptionRate=t.maxRedemptionRate??"",o.minInnerRedemptionRate=t.minInnerRedemptionRate??"",o.maxInnerRedemptionRate=t.maxInnerRedemptionRate??"",o.maxMessagesPerIcaTx=void 0!==t.maxMessagesPerIcaTx&&null!==t.maxMessagesPerIcaTx?BigInt(t.maxMessagesPerIcaTx.toString()):BigInt(0),o.redemptionsEnabled=t.redemptionsEnabled??!1,o.communityPoolRebate=void 0!==t.communityPoolRebate&&null!==t.communityPoolRebate?CommunityPoolRebate.fromPartial(t.communityPoolRebate):void 0,o.lsmLiquidStakeEnabled=t.lsmLiquidStakeEnabled??!1,o.halted=t.halted??!1,o},fromProtoMsg:e=>HostZone.decode(e.value),toProto:e=>HostZone.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.HostZone",value:HostZone.encode(e).finish()})};