@agoric/cosmic-proto 0.4.1-dev-9f8732f.0 → 0.4.1-dev-1cee3dd.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/address-hooks.js +1 -217
  2. package/dist/codegen/agoric/bundle.js +1 -51
  3. package/dist/codegen/agoric/lien/genesis.js +1 -143
  4. package/dist/codegen/agoric/lien/lien.js +1 -87
  5. package/dist/codegen/agoric/swingset/genesis.js +1 -181
  6. package/dist/codegen/agoric/swingset/msgs.js +1 -700
  7. package/dist/codegen/agoric/swingset/query.js +1 -356
  8. package/dist/codegen/agoric/swingset/swingset.js +1 -816
  9. package/dist/codegen/agoric/vbank/genesis.js +1 -82
  10. package/dist/codegen/agoric/vbank/msgs.js +1 -2
  11. package/dist/codegen/agoric/vbank/query.js +1 -222
  12. package/dist/codegen/agoric/vbank/vbank.js +1 -237
  13. package/dist/codegen/agoric/vibc/msgs.js +1 -127
  14. package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
  15. package/dist/codegen/agoric/vstorage/genesis.js +1 -138
  16. package/dist/codegen/agoric/vstorage/query.js +1 -441
  17. package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
  18. package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
  19. package/dist/codegen/amino/amino.js +1 -2
  20. package/dist/codegen/amino/bundle.js +1 -6
  21. package/dist/codegen/binary.js +1 -367
  22. package/dist/codegen/circle/bundle.js +1 -40
  23. package/dist/codegen/circle/cctp/v1/attester.js +1 -63
  24. package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
  25. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
  26. package/dist/codegen/circle/cctp/v1/events.js +1 -1612
  27. package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
  28. package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
  29. package/dist/codegen/circle/cctp/v1/message.js +1 -160
  30. package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
  31. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
  32. package/dist/codegen/circle/cctp/v1/query.js +1 -2421
  33. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
  34. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
  35. package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
  36. package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
  37. package/dist/codegen/circle/cctp/v1/tx.js +1 -356
  38. package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
  39. package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
  40. package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
  41. package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
  42. package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
  43. package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
  44. package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
  45. package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
  46. package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
  47. package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
  48. package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
  49. package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
  50. package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
  51. package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
  52. package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
  53. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
  54. package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
  55. package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
  56. package/dist/codegen/cosmos/bundle.js +1 -249
  57. package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
  58. package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
  59. package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
  60. package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
  61. package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
  62. package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
  63. package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
  64. package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
  65. package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
  66. package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
  67. package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
  68. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
  69. package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
  70. package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
  71. package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
  72. package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
  73. package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
  74. package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
  75. package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
  76. package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
  77. package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
  78. package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
  79. package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
  80. package/dist/codegen/cosmos/group/v1/events.js +1 -696
  81. package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
  82. package/dist/codegen/cosmos/group/v1/query.js +1 -2096
  83. package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
  84. package/dist/codegen/cosmos/group/v1/types.js +1 -1387
  85. package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
  86. package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
  87. package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
  88. package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
  89. package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
  90. package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
  91. package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
  92. package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
  93. package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
  94. package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
  95. package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
  96. package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
  97. package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
  98. package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
  99. package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
  100. package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
  101. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
  102. package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
  103. package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
  104. package/dist/codegen/cosmos_proto/bundle.js +1 -6
  105. package/dist/codegen/cosmos_proto/cosmos.js +1 -208
  106. package/dist/codegen/gogoproto/bundle.js +1 -6
  107. package/dist/codegen/gogoproto/gogo.js +1 -2
  108. package/dist/codegen/google/api/annotations.js +1 -2
  109. package/dist/codegen/google/api/http.js +1 -319
  110. package/dist/codegen/google/bundle.js +1 -17
  111. package/dist/codegen/google/protobuf/any.js +1 -77
  112. package/dist/codegen/google/protobuf/descriptor.js +1 -3421
  113. package/dist/codegen/google/protobuf/duration.js +1 -79
  114. package/dist/codegen/google/protobuf/empty.js +1 -50
  115. package/dist/codegen/google/protobuf/timestamp.js +1 -79
  116. package/dist/codegen/helpers.js +1 -196
  117. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
  118. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
  119. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
  120. package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
  121. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
  122. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
  123. package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
  124. package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
  125. package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
  126. package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
  127. package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
  128. package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
  129. package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
  130. package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
  131. package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
  132. package/dist/codegen/ibc/bundle.js +1 -142
  133. package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
  134. package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
  135. package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
  136. package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
  137. package/dist/codegen/ibc/core/client/v1/client.js +1 -583
  138. package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
  139. package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
  140. package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
  141. package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
  142. package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
  143. package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
  144. package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
  145. package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
  146. package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
  147. package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
  148. package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
  149. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
  150. package/dist/codegen/icq/bundle.js +1 -17
  151. package/dist/codegen/icq/v1/genesis.js +1 -78
  152. package/dist/codegen/icq/v1/icq.js +1 -83
  153. package/dist/codegen/icq/v1/packet.js +1 -270
  154. package/dist/codegen/icq/v1/query.js +1 -114
  155. package/dist/codegen/icq/v1/tx.js +1 -124
  156. package/dist/codegen/ics23/bundle.js +1 -6
  157. package/dist/codegen/index.js +1 -23
  158. package/dist/codegen/json-safe.js +1 -8
  159. package/dist/codegen/proofs.js +1 -1436
  160. package/dist/codegen/stride/bundle.js +1 -71
  161. package/dist/codegen/stride/epochs/genesis.js +1 -227
  162. package/dist/codegen/stride/epochs/query.js +1 -398
  163. package/dist/codegen/stride/records/callbacks.js +1 -136
  164. package/dist/codegen/stride/records/genesis.js +1 -186
  165. package/dist/codegen/stride/records/params.js +1 -50
  166. package/dist/codegen/stride/records/query.js +1 -1552
  167. package/dist/codegen/stride/records/records.js +1 -939
  168. package/dist/codegen/stride/stakedym/genesis.js +1 -312
  169. package/dist/codegen/stride/stakedym/query.js +1 -887
  170. package/dist/codegen/stride/stakedym/stakedym.js +1 -909
  171. package/dist/codegen/stride/stakedym/tx.js +1 -1661
  172. package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
  173. package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
  174. package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
  175. package/dist/codegen/stride/stakeibc/genesis.js +1 -135
  176. package/dist/codegen/stride/stakeibc/gov.js +1 -212
  177. package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
  178. package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
  179. package/dist/codegen/stride/stakeibc/packet.js +1 -113
  180. package/dist/codegen/stride/stakeibc/params.js +1 -317
  181. package/dist/codegen/stride/stakeibc/query.js +1 -1372
  182. package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
  183. package/dist/codegen/stride/stakeibc/tx.js +1 -3392
  184. package/dist/codegen/stride/stakeibc/validator.js +1 -170
  185. package/dist/codegen/stride/staketia/genesis.js +1 -312
  186. package/dist/codegen/stride/staketia/query.js +1 -887
  187. package/dist/codegen/stride/staketia/staketia.js +1 -819
  188. package/dist/codegen/stride/staketia/tx.js +1 -1671
  189. package/dist/codegen/tendermint/abci/types.js +1 -1922
  190. package/dist/codegen/tendermint/bundle.js +1 -42
  191. package/dist/codegen/tendermint/crypto/keys.js +1 -85
  192. package/dist/codegen/tendermint/crypto/proof.js +1 -409
  193. package/dist/codegen/tendermint/libs/bits/types.js +1 -94
  194. package/dist/codegen/tendermint/p2p/types.js +1 -506
  195. package/dist/codegen/tendermint/types/block.js +1 -119
  196. package/dist/codegen/tendermint/types/evidence.js +1 -415
  197. package/dist/codegen/tendermint/types/params.js +1 -529
  198. package/dist/codegen/tendermint/types/types.js +1 -1534
  199. package/dist/codegen/tendermint/types/validator.js +1 -299
  200. package/dist/codegen/tendermint/version/types.js +1 -155
  201. package/dist/codegen/utf8.js +1 -138
  202. package/dist/codegen/varint.js +1 -409
  203. package/dist/helpers.js +1 -22
  204. package/dist/index.js +1 -6
  205. package/package.json +7 -5
@@ -1,1191 +1 @@
1
- //@ts-nocheck
2
- import { Coin } from '../../cosmos/base/v1beta1/coin.js';
3
- import { LSMTokenDeposit, } from '../records/records.js';
4
- import { HostZone } from './host_zone.js';
5
- import { Validator } from './validator.js';
6
- import { ICAAccountType, iCAAccountTypeFromJSON, iCAAccountTypeToJSON, } from './ica_account.js';
7
- import { BinaryReader, BinaryWriter } from '../../binary.js';
8
- import { isSet } from '../../helpers.js';
9
- import {} from '../../json-safe.js';
10
- function createBaseSplitDelegation() {
11
- return {
12
- validator: '',
13
- amount: '',
14
- };
15
- }
16
- export const SplitDelegation = {
17
- typeUrl: '/stride.stakeibc.SplitDelegation',
18
- encode(message, writer = BinaryWriter.create()) {
19
- if (message.validator !== '') {
20
- writer.uint32(10).string(message.validator);
21
- }
22
- if (message.amount !== '') {
23
- writer.uint32(18).string(message.amount);
24
- }
25
- return writer;
26
- },
27
- decode(input, length) {
28
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
29
- let end = length === undefined ? reader.len : reader.pos + length;
30
- const message = createBaseSplitDelegation();
31
- while (reader.pos < end) {
32
- const tag = reader.uint32();
33
- switch (tag >>> 3) {
34
- case 1:
35
- message.validator = reader.string();
36
- break;
37
- case 2:
38
- message.amount = reader.string();
39
- break;
40
- default:
41
- reader.skipType(tag & 7);
42
- break;
43
- }
44
- }
45
- return message;
46
- },
47
- fromJSON(object) {
48
- return {
49
- validator: isSet(object.validator) ? String(object.validator) : '',
50
- amount: isSet(object.amount) ? String(object.amount) : '',
51
- };
52
- },
53
- toJSON(message) {
54
- const obj = {};
55
- message.validator !== undefined && (obj.validator = message.validator);
56
- message.amount !== undefined && (obj.amount = message.amount);
57
- return obj;
58
- },
59
- fromPartial(object) {
60
- const message = createBaseSplitDelegation();
61
- message.validator = object.validator ?? '';
62
- message.amount = object.amount ?? '';
63
- return message;
64
- },
65
- fromProtoMsg(message) {
66
- return SplitDelegation.decode(message.value);
67
- },
68
- toProto(message) {
69
- return SplitDelegation.encode(message).finish();
70
- },
71
- toProtoMsg(message) {
72
- return {
73
- typeUrl: '/stride.stakeibc.SplitDelegation',
74
- value: SplitDelegation.encode(message).finish(),
75
- };
76
- },
77
- };
78
- function createBaseSplitUndelegation() {
79
- return {
80
- validator: '',
81
- nativeTokenAmount: '',
82
- };
83
- }
84
- export const SplitUndelegation = {
85
- typeUrl: '/stride.stakeibc.SplitUndelegation',
86
- encode(message, writer = BinaryWriter.create()) {
87
- if (message.validator !== '') {
88
- writer.uint32(10).string(message.validator);
89
- }
90
- if (message.nativeTokenAmount !== '') {
91
- writer.uint32(18).string(message.nativeTokenAmount);
92
- }
93
- return writer;
94
- },
95
- decode(input, length) {
96
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
97
- let end = length === undefined ? reader.len : reader.pos + length;
98
- const message = createBaseSplitUndelegation();
99
- while (reader.pos < end) {
100
- const tag = reader.uint32();
101
- switch (tag >>> 3) {
102
- case 1:
103
- message.validator = reader.string();
104
- break;
105
- case 2:
106
- message.nativeTokenAmount = reader.string();
107
- break;
108
- default:
109
- reader.skipType(tag & 7);
110
- break;
111
- }
112
- }
113
- return message;
114
- },
115
- fromJSON(object) {
116
- return {
117
- validator: isSet(object.validator) ? String(object.validator) : '',
118
- nativeTokenAmount: isSet(object.nativeTokenAmount)
119
- ? String(object.nativeTokenAmount)
120
- : '',
121
- };
122
- },
123
- toJSON(message) {
124
- const obj = {};
125
- message.validator !== undefined && (obj.validator = message.validator);
126
- message.nativeTokenAmount !== undefined &&
127
- (obj.nativeTokenAmount = message.nativeTokenAmount);
128
- return obj;
129
- },
130
- fromPartial(object) {
131
- const message = createBaseSplitUndelegation();
132
- message.validator = object.validator ?? '';
133
- message.nativeTokenAmount = object.nativeTokenAmount ?? '';
134
- return message;
135
- },
136
- fromProtoMsg(message) {
137
- return SplitUndelegation.decode(message.value);
138
- },
139
- toProto(message) {
140
- return SplitUndelegation.encode(message).finish();
141
- },
142
- toProtoMsg(message) {
143
- return {
144
- typeUrl: '/stride.stakeibc.SplitUndelegation',
145
- value: SplitUndelegation.encode(message).finish(),
146
- };
147
- },
148
- };
149
- function createBaseDelegateCallback() {
150
- return {
151
- hostZoneId: '',
152
- depositRecordId: BigInt(0),
153
- splitDelegations: [],
154
- };
155
- }
156
- export const DelegateCallback = {
157
- typeUrl: '/stride.stakeibc.DelegateCallback',
158
- encode(message, writer = BinaryWriter.create()) {
159
- if (message.hostZoneId !== '') {
160
- writer.uint32(10).string(message.hostZoneId);
161
- }
162
- if (message.depositRecordId !== BigInt(0)) {
163
- writer.uint32(16).uint64(message.depositRecordId);
164
- }
165
- for (const v of message.splitDelegations) {
166
- SplitDelegation.encode(v, writer.uint32(26).fork()).ldelim();
167
- }
168
- return writer;
169
- },
170
- decode(input, length) {
171
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
172
- let end = length === undefined ? reader.len : reader.pos + length;
173
- const message = createBaseDelegateCallback();
174
- while (reader.pos < end) {
175
- const tag = reader.uint32();
176
- switch (tag >>> 3) {
177
- case 1:
178
- message.hostZoneId = reader.string();
179
- break;
180
- case 2:
181
- message.depositRecordId = reader.uint64();
182
- break;
183
- case 3:
184
- message.splitDelegations.push(SplitDelegation.decode(reader, reader.uint32()));
185
- break;
186
- default:
187
- reader.skipType(tag & 7);
188
- break;
189
- }
190
- }
191
- return message;
192
- },
193
- fromJSON(object) {
194
- return {
195
- hostZoneId: isSet(object.hostZoneId) ? String(object.hostZoneId) : '',
196
- depositRecordId: isSet(object.depositRecordId)
197
- ? BigInt(object.depositRecordId.toString())
198
- : BigInt(0),
199
- splitDelegations: Array.isArray(object?.splitDelegations)
200
- ? object.splitDelegations.map((e) => SplitDelegation.fromJSON(e))
201
- : [],
202
- };
203
- },
204
- toJSON(message) {
205
- const obj = {};
206
- message.hostZoneId !== undefined && (obj.hostZoneId = message.hostZoneId);
207
- message.depositRecordId !== undefined &&
208
- (obj.depositRecordId = (message.depositRecordId || BigInt(0)).toString());
209
- if (message.splitDelegations) {
210
- obj.splitDelegations = message.splitDelegations.map(e => e ? SplitDelegation.toJSON(e) : undefined);
211
- }
212
- else {
213
- obj.splitDelegations = [];
214
- }
215
- return obj;
216
- },
217
- fromPartial(object) {
218
- const message = createBaseDelegateCallback();
219
- message.hostZoneId = object.hostZoneId ?? '';
220
- message.depositRecordId =
221
- object.depositRecordId !== undefined && object.depositRecordId !== null
222
- ? BigInt(object.depositRecordId.toString())
223
- : BigInt(0);
224
- message.splitDelegations =
225
- object.splitDelegations?.map(e => SplitDelegation.fromPartial(e)) || [];
226
- return message;
227
- },
228
- fromProtoMsg(message) {
229
- return DelegateCallback.decode(message.value);
230
- },
231
- toProto(message) {
232
- return DelegateCallback.encode(message).finish();
233
- },
234
- toProtoMsg(message) {
235
- return {
236
- typeUrl: '/stride.stakeibc.DelegateCallback',
237
- value: DelegateCallback.encode(message).finish(),
238
- };
239
- },
240
- };
241
- function createBaseClaimCallback() {
242
- return {
243
- userRedemptionRecordId: '',
244
- chainId: '',
245
- epochNumber: BigInt(0),
246
- };
247
- }
248
- export const ClaimCallback = {
249
- typeUrl: '/stride.stakeibc.ClaimCallback',
250
- encode(message, writer = BinaryWriter.create()) {
251
- if (message.userRedemptionRecordId !== '') {
252
- writer.uint32(10).string(message.userRedemptionRecordId);
253
- }
254
- if (message.chainId !== '') {
255
- writer.uint32(18).string(message.chainId);
256
- }
257
- if (message.epochNumber !== BigInt(0)) {
258
- writer.uint32(24).uint64(message.epochNumber);
259
- }
260
- return writer;
261
- },
262
- decode(input, length) {
263
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
264
- let end = length === undefined ? reader.len : reader.pos + length;
265
- const message = createBaseClaimCallback();
266
- while (reader.pos < end) {
267
- const tag = reader.uint32();
268
- switch (tag >>> 3) {
269
- case 1:
270
- message.userRedemptionRecordId = reader.string();
271
- break;
272
- case 2:
273
- message.chainId = reader.string();
274
- break;
275
- case 3:
276
- message.epochNumber = reader.uint64();
277
- break;
278
- default:
279
- reader.skipType(tag & 7);
280
- break;
281
- }
282
- }
283
- return message;
284
- },
285
- fromJSON(object) {
286
- return {
287
- userRedemptionRecordId: isSet(object.userRedemptionRecordId)
288
- ? String(object.userRedemptionRecordId)
289
- : '',
290
- chainId: isSet(object.chainId) ? String(object.chainId) : '',
291
- epochNumber: isSet(object.epochNumber)
292
- ? BigInt(object.epochNumber.toString())
293
- : BigInt(0),
294
- };
295
- },
296
- toJSON(message) {
297
- const obj = {};
298
- message.userRedemptionRecordId !== undefined &&
299
- (obj.userRedemptionRecordId = message.userRedemptionRecordId);
300
- message.chainId !== undefined && (obj.chainId = message.chainId);
301
- message.epochNumber !== undefined &&
302
- (obj.epochNumber = (message.epochNumber || BigInt(0)).toString());
303
- return obj;
304
- },
305
- fromPartial(object) {
306
- const message = createBaseClaimCallback();
307
- message.userRedemptionRecordId = object.userRedemptionRecordId ?? '';
308
- message.chainId = object.chainId ?? '';
309
- message.epochNumber =
310
- object.epochNumber !== undefined && object.epochNumber !== null
311
- ? BigInt(object.epochNumber.toString())
312
- : BigInt(0);
313
- return message;
314
- },
315
- fromProtoMsg(message) {
316
- return ClaimCallback.decode(message.value);
317
- },
318
- toProto(message) {
319
- return ClaimCallback.encode(message).finish();
320
- },
321
- toProtoMsg(message) {
322
- return {
323
- typeUrl: '/stride.stakeibc.ClaimCallback',
324
- value: ClaimCallback.encode(message).finish(),
325
- };
326
- },
327
- };
328
- function createBaseReinvestCallback() {
329
- return {
330
- reinvestAmount: Coin.fromPartial({}),
331
- hostZoneId: '',
332
- };
333
- }
334
- export const ReinvestCallback = {
335
- typeUrl: '/stride.stakeibc.ReinvestCallback',
336
- encode(message, writer = BinaryWriter.create()) {
337
- if (message.reinvestAmount !== undefined) {
338
- Coin.encode(message.reinvestAmount, writer.uint32(10).fork()).ldelim();
339
- }
340
- if (message.hostZoneId !== '') {
341
- writer.uint32(26).string(message.hostZoneId);
342
- }
343
- return writer;
344
- },
345
- decode(input, length) {
346
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
347
- let end = length === undefined ? reader.len : reader.pos + length;
348
- const message = createBaseReinvestCallback();
349
- while (reader.pos < end) {
350
- const tag = reader.uint32();
351
- switch (tag >>> 3) {
352
- case 1:
353
- message.reinvestAmount = Coin.decode(reader, reader.uint32());
354
- break;
355
- case 3:
356
- message.hostZoneId = reader.string();
357
- break;
358
- default:
359
- reader.skipType(tag & 7);
360
- break;
361
- }
362
- }
363
- return message;
364
- },
365
- fromJSON(object) {
366
- return {
367
- reinvestAmount: isSet(object.reinvestAmount)
368
- ? Coin.fromJSON(object.reinvestAmount)
369
- : undefined,
370
- hostZoneId: isSet(object.hostZoneId) ? String(object.hostZoneId) : '',
371
- };
372
- },
373
- toJSON(message) {
374
- const obj = {};
375
- message.reinvestAmount !== undefined &&
376
- (obj.reinvestAmount = message.reinvestAmount
377
- ? Coin.toJSON(message.reinvestAmount)
378
- : undefined);
379
- message.hostZoneId !== undefined && (obj.hostZoneId = message.hostZoneId);
380
- return obj;
381
- },
382
- fromPartial(object) {
383
- const message = createBaseReinvestCallback();
384
- message.reinvestAmount =
385
- object.reinvestAmount !== undefined && object.reinvestAmount !== null
386
- ? Coin.fromPartial(object.reinvestAmount)
387
- : undefined;
388
- message.hostZoneId = object.hostZoneId ?? '';
389
- return message;
390
- },
391
- fromProtoMsg(message) {
392
- return ReinvestCallback.decode(message.value);
393
- },
394
- toProto(message) {
395
- return ReinvestCallback.encode(message).finish();
396
- },
397
- toProtoMsg(message) {
398
- return {
399
- typeUrl: '/stride.stakeibc.ReinvestCallback',
400
- value: ReinvestCallback.encode(message).finish(),
401
- };
402
- },
403
- };
404
- function createBaseUndelegateCallback() {
405
- return {
406
- hostZoneId: '',
407
- splitUndelegations: [],
408
- epochUnbondingRecordIds: [],
409
- };
410
- }
411
- export const UndelegateCallback = {
412
- typeUrl: '/stride.stakeibc.UndelegateCallback',
413
- encode(message, writer = BinaryWriter.create()) {
414
- if (message.hostZoneId !== '') {
415
- writer.uint32(10).string(message.hostZoneId);
416
- }
417
- for (const v of message.splitUndelegations) {
418
- SplitUndelegation.encode(v, writer.uint32(18).fork()).ldelim();
419
- }
420
- writer.uint32(26).fork();
421
- for (const v of message.epochUnbondingRecordIds) {
422
- writer.uint64(v);
423
- }
424
- writer.ldelim();
425
- return writer;
426
- },
427
- decode(input, length) {
428
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
429
- let end = length === undefined ? reader.len : reader.pos + length;
430
- const message = createBaseUndelegateCallback();
431
- while (reader.pos < end) {
432
- const tag = reader.uint32();
433
- switch (tag >>> 3) {
434
- case 1:
435
- message.hostZoneId = reader.string();
436
- break;
437
- case 2:
438
- message.splitUndelegations.push(SplitUndelegation.decode(reader, reader.uint32()));
439
- break;
440
- case 3:
441
- if ((tag & 7) === 2) {
442
- const end2 = reader.uint32() + reader.pos;
443
- while (reader.pos < end2) {
444
- message.epochUnbondingRecordIds.push(reader.uint64());
445
- }
446
- }
447
- else {
448
- message.epochUnbondingRecordIds.push(reader.uint64());
449
- }
450
- break;
451
- default:
452
- reader.skipType(tag & 7);
453
- break;
454
- }
455
- }
456
- return message;
457
- },
458
- fromJSON(object) {
459
- return {
460
- hostZoneId: isSet(object.hostZoneId) ? String(object.hostZoneId) : '',
461
- splitUndelegations: Array.isArray(object?.splitUndelegations)
462
- ? object.splitUndelegations.map((e) => SplitUndelegation.fromJSON(e))
463
- : [],
464
- epochUnbondingRecordIds: Array.isArray(object?.epochUnbondingRecordIds)
465
- ? object.epochUnbondingRecordIds.map((e) => BigInt(e.toString()))
466
- : [],
467
- };
468
- },
469
- toJSON(message) {
470
- const obj = {};
471
- message.hostZoneId !== undefined && (obj.hostZoneId = message.hostZoneId);
472
- if (message.splitUndelegations) {
473
- obj.splitUndelegations = message.splitUndelegations.map(e => e ? SplitUndelegation.toJSON(e) : undefined);
474
- }
475
- else {
476
- obj.splitUndelegations = [];
477
- }
478
- if (message.epochUnbondingRecordIds) {
479
- obj.epochUnbondingRecordIds = message.epochUnbondingRecordIds.map(e => (e || BigInt(0)).toString());
480
- }
481
- else {
482
- obj.epochUnbondingRecordIds = [];
483
- }
484
- return obj;
485
- },
486
- fromPartial(object) {
487
- const message = createBaseUndelegateCallback();
488
- message.hostZoneId = object.hostZoneId ?? '';
489
- message.splitUndelegations =
490
- object.splitUndelegations?.map(e => SplitUndelegation.fromPartial(e)) ||
491
- [];
492
- message.epochUnbondingRecordIds =
493
- object.epochUnbondingRecordIds?.map(e => BigInt(e.toString())) || [];
494
- return message;
495
- },
496
- fromProtoMsg(message) {
497
- return UndelegateCallback.decode(message.value);
498
- },
499
- toProto(message) {
500
- return UndelegateCallback.encode(message).finish();
501
- },
502
- toProtoMsg(message) {
503
- return {
504
- typeUrl: '/stride.stakeibc.UndelegateCallback',
505
- value: UndelegateCallback.encode(message).finish(),
506
- };
507
- },
508
- };
509
- function createBaseRedemptionCallback() {
510
- return {
511
- hostZoneId: '',
512
- epochUnbondingRecordIds: [],
513
- };
514
- }
515
- export const RedemptionCallback = {
516
- typeUrl: '/stride.stakeibc.RedemptionCallback',
517
- encode(message, writer = BinaryWriter.create()) {
518
- if (message.hostZoneId !== '') {
519
- writer.uint32(10).string(message.hostZoneId);
520
- }
521
- writer.uint32(18).fork();
522
- for (const v of message.epochUnbondingRecordIds) {
523
- writer.uint64(v);
524
- }
525
- writer.ldelim();
526
- return writer;
527
- },
528
- decode(input, length) {
529
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
530
- let end = length === undefined ? reader.len : reader.pos + length;
531
- const message = createBaseRedemptionCallback();
532
- while (reader.pos < end) {
533
- const tag = reader.uint32();
534
- switch (tag >>> 3) {
535
- case 1:
536
- message.hostZoneId = reader.string();
537
- break;
538
- case 2:
539
- if ((tag & 7) === 2) {
540
- const end2 = reader.uint32() + reader.pos;
541
- while (reader.pos < end2) {
542
- message.epochUnbondingRecordIds.push(reader.uint64());
543
- }
544
- }
545
- else {
546
- message.epochUnbondingRecordIds.push(reader.uint64());
547
- }
548
- break;
549
- default:
550
- reader.skipType(tag & 7);
551
- break;
552
- }
553
- }
554
- return message;
555
- },
556
- fromJSON(object) {
557
- return {
558
- hostZoneId: isSet(object.hostZoneId) ? String(object.hostZoneId) : '',
559
- epochUnbondingRecordIds: Array.isArray(object?.epochUnbondingRecordIds)
560
- ? object.epochUnbondingRecordIds.map((e) => BigInt(e.toString()))
561
- : [],
562
- };
563
- },
564
- toJSON(message) {
565
- const obj = {};
566
- message.hostZoneId !== undefined && (obj.hostZoneId = message.hostZoneId);
567
- if (message.epochUnbondingRecordIds) {
568
- obj.epochUnbondingRecordIds = message.epochUnbondingRecordIds.map(e => (e || BigInt(0)).toString());
569
- }
570
- else {
571
- obj.epochUnbondingRecordIds = [];
572
- }
573
- return obj;
574
- },
575
- fromPartial(object) {
576
- const message = createBaseRedemptionCallback();
577
- message.hostZoneId = object.hostZoneId ?? '';
578
- message.epochUnbondingRecordIds =
579
- object.epochUnbondingRecordIds?.map(e => BigInt(e.toString())) || [];
580
- return message;
581
- },
582
- fromProtoMsg(message) {
583
- return RedemptionCallback.decode(message.value);
584
- },
585
- toProto(message) {
586
- return RedemptionCallback.encode(message).finish();
587
- },
588
- toProtoMsg(message) {
589
- return {
590
- typeUrl: '/stride.stakeibc.RedemptionCallback',
591
- value: RedemptionCallback.encode(message).finish(),
592
- };
593
- },
594
- };
595
- function createBaseRebalancing() {
596
- return {
597
- srcValidator: '',
598
- dstValidator: '',
599
- amt: '',
600
- };
601
- }
602
- export const Rebalancing = {
603
- typeUrl: '/stride.stakeibc.Rebalancing',
604
- encode(message, writer = BinaryWriter.create()) {
605
- if (message.srcValidator !== '') {
606
- writer.uint32(10).string(message.srcValidator);
607
- }
608
- if (message.dstValidator !== '') {
609
- writer.uint32(18).string(message.dstValidator);
610
- }
611
- if (message.amt !== '') {
612
- writer.uint32(26).string(message.amt);
613
- }
614
- return writer;
615
- },
616
- decode(input, length) {
617
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
618
- let end = length === undefined ? reader.len : reader.pos + length;
619
- const message = createBaseRebalancing();
620
- while (reader.pos < end) {
621
- const tag = reader.uint32();
622
- switch (tag >>> 3) {
623
- case 1:
624
- message.srcValidator = reader.string();
625
- break;
626
- case 2:
627
- message.dstValidator = reader.string();
628
- break;
629
- case 3:
630
- message.amt = reader.string();
631
- break;
632
- default:
633
- reader.skipType(tag & 7);
634
- break;
635
- }
636
- }
637
- return message;
638
- },
639
- fromJSON(object) {
640
- return {
641
- srcValidator: isSet(object.srcValidator)
642
- ? String(object.srcValidator)
643
- : '',
644
- dstValidator: isSet(object.dstValidator)
645
- ? String(object.dstValidator)
646
- : '',
647
- amt: isSet(object.amt) ? String(object.amt) : '',
648
- };
649
- },
650
- toJSON(message) {
651
- const obj = {};
652
- message.srcValidator !== undefined &&
653
- (obj.srcValidator = message.srcValidator);
654
- message.dstValidator !== undefined &&
655
- (obj.dstValidator = message.dstValidator);
656
- message.amt !== undefined && (obj.amt = message.amt);
657
- return obj;
658
- },
659
- fromPartial(object) {
660
- const message = createBaseRebalancing();
661
- message.srcValidator = object.srcValidator ?? '';
662
- message.dstValidator = object.dstValidator ?? '';
663
- message.amt = object.amt ?? '';
664
- return message;
665
- },
666
- fromProtoMsg(message) {
667
- return Rebalancing.decode(message.value);
668
- },
669
- toProto(message) {
670
- return Rebalancing.encode(message).finish();
671
- },
672
- toProtoMsg(message) {
673
- return {
674
- typeUrl: '/stride.stakeibc.Rebalancing',
675
- value: Rebalancing.encode(message).finish(),
676
- };
677
- },
678
- };
679
- function createBaseRebalanceCallback() {
680
- return {
681
- hostZoneId: '',
682
- rebalancings: [],
683
- };
684
- }
685
- export const RebalanceCallback = {
686
- typeUrl: '/stride.stakeibc.RebalanceCallback',
687
- encode(message, writer = BinaryWriter.create()) {
688
- if (message.hostZoneId !== '') {
689
- writer.uint32(10).string(message.hostZoneId);
690
- }
691
- for (const v of message.rebalancings) {
692
- Rebalancing.encode(v, writer.uint32(18).fork()).ldelim();
693
- }
694
- return writer;
695
- },
696
- decode(input, length) {
697
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
698
- let end = length === undefined ? reader.len : reader.pos + length;
699
- const message = createBaseRebalanceCallback();
700
- while (reader.pos < end) {
701
- const tag = reader.uint32();
702
- switch (tag >>> 3) {
703
- case 1:
704
- message.hostZoneId = reader.string();
705
- break;
706
- case 2:
707
- message.rebalancings.push(Rebalancing.decode(reader, reader.uint32()));
708
- break;
709
- default:
710
- reader.skipType(tag & 7);
711
- break;
712
- }
713
- }
714
- return message;
715
- },
716
- fromJSON(object) {
717
- return {
718
- hostZoneId: isSet(object.hostZoneId) ? String(object.hostZoneId) : '',
719
- rebalancings: Array.isArray(object?.rebalancings)
720
- ? object.rebalancings.map((e) => Rebalancing.fromJSON(e))
721
- : [],
722
- };
723
- },
724
- toJSON(message) {
725
- const obj = {};
726
- message.hostZoneId !== undefined && (obj.hostZoneId = message.hostZoneId);
727
- if (message.rebalancings) {
728
- obj.rebalancings = message.rebalancings.map(e => e ? Rebalancing.toJSON(e) : undefined);
729
- }
730
- else {
731
- obj.rebalancings = [];
732
- }
733
- return obj;
734
- },
735
- fromPartial(object) {
736
- const message = createBaseRebalanceCallback();
737
- message.hostZoneId = object.hostZoneId ?? '';
738
- message.rebalancings =
739
- object.rebalancings?.map(e => Rebalancing.fromPartial(e)) || [];
740
- return message;
741
- },
742
- fromProtoMsg(message) {
743
- return RebalanceCallback.decode(message.value);
744
- },
745
- toProto(message) {
746
- return RebalanceCallback.encode(message).finish();
747
- },
748
- toProtoMsg(message) {
749
- return {
750
- typeUrl: '/stride.stakeibc.RebalanceCallback',
751
- value: RebalanceCallback.encode(message).finish(),
752
- };
753
- },
754
- };
755
- function createBaseDetokenizeSharesCallback() {
756
- return {
757
- deposit: undefined,
758
- };
759
- }
760
- export const DetokenizeSharesCallback = {
761
- typeUrl: '/stride.stakeibc.DetokenizeSharesCallback',
762
- encode(message, writer = BinaryWriter.create()) {
763
- if (message.deposit !== undefined) {
764
- LSMTokenDeposit.encode(message.deposit, writer.uint32(10).fork()).ldelim();
765
- }
766
- return writer;
767
- },
768
- decode(input, length) {
769
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
770
- let end = length === undefined ? reader.len : reader.pos + length;
771
- const message = createBaseDetokenizeSharesCallback();
772
- while (reader.pos < end) {
773
- const tag = reader.uint32();
774
- switch (tag >>> 3) {
775
- case 1:
776
- message.deposit = LSMTokenDeposit.decode(reader, reader.uint32());
777
- break;
778
- default:
779
- reader.skipType(tag & 7);
780
- break;
781
- }
782
- }
783
- return message;
784
- },
785
- fromJSON(object) {
786
- return {
787
- deposit: isSet(object.deposit)
788
- ? LSMTokenDeposit.fromJSON(object.deposit)
789
- : undefined,
790
- };
791
- },
792
- toJSON(message) {
793
- const obj = {};
794
- message.deposit !== undefined &&
795
- (obj.deposit = message.deposit
796
- ? LSMTokenDeposit.toJSON(message.deposit)
797
- : undefined);
798
- return obj;
799
- },
800
- fromPartial(object) {
801
- const message = createBaseDetokenizeSharesCallback();
802
- message.deposit =
803
- object.deposit !== undefined && object.deposit !== null
804
- ? LSMTokenDeposit.fromPartial(object.deposit)
805
- : undefined;
806
- return message;
807
- },
808
- fromProtoMsg(message) {
809
- return DetokenizeSharesCallback.decode(message.value);
810
- },
811
- toProto(message) {
812
- return DetokenizeSharesCallback.encode(message).finish();
813
- },
814
- toProtoMsg(message) {
815
- return {
816
- typeUrl: '/stride.stakeibc.DetokenizeSharesCallback',
817
- value: DetokenizeSharesCallback.encode(message).finish(),
818
- };
819
- },
820
- };
821
- function createBaseLSMLiquidStake() {
822
- return {
823
- deposit: undefined,
824
- hostZone: undefined,
825
- validator: undefined,
826
- };
827
- }
828
- export const LSMLiquidStake = {
829
- typeUrl: '/stride.stakeibc.LSMLiquidStake',
830
- encode(message, writer = BinaryWriter.create()) {
831
- if (message.deposit !== undefined) {
832
- LSMTokenDeposit.encode(message.deposit, writer.uint32(10).fork()).ldelim();
833
- }
834
- if (message.hostZone !== undefined) {
835
- HostZone.encode(message.hostZone, writer.uint32(18).fork()).ldelim();
836
- }
837
- if (message.validator !== undefined) {
838
- Validator.encode(message.validator, writer.uint32(26).fork()).ldelim();
839
- }
840
- return writer;
841
- },
842
- decode(input, length) {
843
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
844
- let end = length === undefined ? reader.len : reader.pos + length;
845
- const message = createBaseLSMLiquidStake();
846
- while (reader.pos < end) {
847
- const tag = reader.uint32();
848
- switch (tag >>> 3) {
849
- case 1:
850
- message.deposit = LSMTokenDeposit.decode(reader, reader.uint32());
851
- break;
852
- case 2:
853
- message.hostZone = HostZone.decode(reader, reader.uint32());
854
- break;
855
- case 3:
856
- message.validator = Validator.decode(reader, reader.uint32());
857
- break;
858
- default:
859
- reader.skipType(tag & 7);
860
- break;
861
- }
862
- }
863
- return message;
864
- },
865
- fromJSON(object) {
866
- return {
867
- deposit: isSet(object.deposit)
868
- ? LSMTokenDeposit.fromJSON(object.deposit)
869
- : undefined,
870
- hostZone: isSet(object.hostZone)
871
- ? HostZone.fromJSON(object.hostZone)
872
- : undefined,
873
- validator: isSet(object.validator)
874
- ? Validator.fromJSON(object.validator)
875
- : undefined,
876
- };
877
- },
878
- toJSON(message) {
879
- const obj = {};
880
- message.deposit !== undefined &&
881
- (obj.deposit = message.deposit
882
- ? LSMTokenDeposit.toJSON(message.deposit)
883
- : undefined);
884
- message.hostZone !== undefined &&
885
- (obj.hostZone = message.hostZone
886
- ? HostZone.toJSON(message.hostZone)
887
- : undefined);
888
- message.validator !== undefined &&
889
- (obj.validator = message.validator
890
- ? Validator.toJSON(message.validator)
891
- : undefined);
892
- return obj;
893
- },
894
- fromPartial(object) {
895
- const message = createBaseLSMLiquidStake();
896
- message.deposit =
897
- object.deposit !== undefined && object.deposit !== null
898
- ? LSMTokenDeposit.fromPartial(object.deposit)
899
- : undefined;
900
- message.hostZone =
901
- object.hostZone !== undefined && object.hostZone !== null
902
- ? HostZone.fromPartial(object.hostZone)
903
- : undefined;
904
- message.validator =
905
- object.validator !== undefined && object.validator !== null
906
- ? Validator.fromPartial(object.validator)
907
- : undefined;
908
- return message;
909
- },
910
- fromProtoMsg(message) {
911
- return LSMLiquidStake.decode(message.value);
912
- },
913
- toProto(message) {
914
- return LSMLiquidStake.encode(message).finish();
915
- },
916
- toProtoMsg(message) {
917
- return {
918
- typeUrl: '/stride.stakeibc.LSMLiquidStake',
919
- value: LSMLiquidStake.encode(message).finish(),
920
- };
921
- },
922
- };
923
- function createBaseValidatorSharesToTokensQueryCallback() {
924
- return {
925
- lsmLiquidStake: undefined,
926
- };
927
- }
928
- export const ValidatorSharesToTokensQueryCallback = {
929
- typeUrl: '/stride.stakeibc.ValidatorSharesToTokensQueryCallback',
930
- encode(message, writer = BinaryWriter.create()) {
931
- if (message.lsmLiquidStake !== undefined) {
932
- LSMLiquidStake.encode(message.lsmLiquidStake, writer.uint32(10).fork()).ldelim();
933
- }
934
- return writer;
935
- },
936
- decode(input, length) {
937
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
938
- let end = length === undefined ? reader.len : reader.pos + length;
939
- const message = createBaseValidatorSharesToTokensQueryCallback();
940
- while (reader.pos < end) {
941
- const tag = reader.uint32();
942
- switch (tag >>> 3) {
943
- case 1:
944
- message.lsmLiquidStake = LSMLiquidStake.decode(reader, reader.uint32());
945
- break;
946
- default:
947
- reader.skipType(tag & 7);
948
- break;
949
- }
950
- }
951
- return message;
952
- },
953
- fromJSON(object) {
954
- return {
955
- lsmLiquidStake: isSet(object.lsmLiquidStake)
956
- ? LSMLiquidStake.fromJSON(object.lsmLiquidStake)
957
- : undefined,
958
- };
959
- },
960
- toJSON(message) {
961
- const obj = {};
962
- message.lsmLiquidStake !== undefined &&
963
- (obj.lsmLiquidStake = message.lsmLiquidStake
964
- ? LSMLiquidStake.toJSON(message.lsmLiquidStake)
965
- : undefined);
966
- return obj;
967
- },
968
- fromPartial(object) {
969
- const message = createBaseValidatorSharesToTokensQueryCallback();
970
- message.lsmLiquidStake =
971
- object.lsmLiquidStake !== undefined && object.lsmLiquidStake !== null
972
- ? LSMLiquidStake.fromPartial(object.lsmLiquidStake)
973
- : undefined;
974
- return message;
975
- },
976
- fromProtoMsg(message) {
977
- return ValidatorSharesToTokensQueryCallback.decode(message.value);
978
- },
979
- toProto(message) {
980
- return ValidatorSharesToTokensQueryCallback.encode(message).finish();
981
- },
982
- toProtoMsg(message) {
983
- return {
984
- typeUrl: '/stride.stakeibc.ValidatorSharesToTokensQueryCallback',
985
- value: ValidatorSharesToTokensQueryCallback.encode(message).finish(),
986
- };
987
- },
988
- };
989
- function createBaseDelegatorSharesQueryCallback() {
990
- return {
991
- initialValidatorDelegation: '',
992
- };
993
- }
994
- export const DelegatorSharesQueryCallback = {
995
- typeUrl: '/stride.stakeibc.DelegatorSharesQueryCallback',
996
- encode(message, writer = BinaryWriter.create()) {
997
- if (message.initialValidatorDelegation !== '') {
998
- writer.uint32(10).string(message.initialValidatorDelegation);
999
- }
1000
- return writer;
1001
- },
1002
- decode(input, length) {
1003
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1004
- let end = length === undefined ? reader.len : reader.pos + length;
1005
- const message = createBaseDelegatorSharesQueryCallback();
1006
- while (reader.pos < end) {
1007
- const tag = reader.uint32();
1008
- switch (tag >>> 3) {
1009
- case 1:
1010
- message.initialValidatorDelegation = reader.string();
1011
- break;
1012
- default:
1013
- reader.skipType(tag & 7);
1014
- break;
1015
- }
1016
- }
1017
- return message;
1018
- },
1019
- fromJSON(object) {
1020
- return {
1021
- initialValidatorDelegation: isSet(object.initialValidatorDelegation)
1022
- ? String(object.initialValidatorDelegation)
1023
- : '',
1024
- };
1025
- },
1026
- toJSON(message) {
1027
- const obj = {};
1028
- message.initialValidatorDelegation !== undefined &&
1029
- (obj.initialValidatorDelegation = message.initialValidatorDelegation);
1030
- return obj;
1031
- },
1032
- fromPartial(object) {
1033
- const message = createBaseDelegatorSharesQueryCallback();
1034
- message.initialValidatorDelegation =
1035
- object.initialValidatorDelegation ?? '';
1036
- return message;
1037
- },
1038
- fromProtoMsg(message) {
1039
- return DelegatorSharesQueryCallback.decode(message.value);
1040
- },
1041
- toProto(message) {
1042
- return DelegatorSharesQueryCallback.encode(message).finish();
1043
- },
1044
- toProtoMsg(message) {
1045
- return {
1046
- typeUrl: '/stride.stakeibc.DelegatorSharesQueryCallback',
1047
- value: DelegatorSharesQueryCallback.encode(message).finish(),
1048
- };
1049
- },
1050
- };
1051
- function createBaseCommunityPoolBalanceQueryCallback() {
1052
- return {
1053
- icaType: 0,
1054
- denom: '',
1055
- };
1056
- }
1057
- export const CommunityPoolBalanceQueryCallback = {
1058
- typeUrl: '/stride.stakeibc.CommunityPoolBalanceQueryCallback',
1059
- encode(message, writer = BinaryWriter.create()) {
1060
- if (message.icaType !== 0) {
1061
- writer.uint32(8).int32(message.icaType);
1062
- }
1063
- if (message.denom !== '') {
1064
- writer.uint32(18).string(message.denom);
1065
- }
1066
- return writer;
1067
- },
1068
- decode(input, length) {
1069
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1070
- let end = length === undefined ? reader.len : reader.pos + length;
1071
- const message = createBaseCommunityPoolBalanceQueryCallback();
1072
- while (reader.pos < end) {
1073
- const tag = reader.uint32();
1074
- switch (tag >>> 3) {
1075
- case 1:
1076
- message.icaType = reader.int32();
1077
- break;
1078
- case 2:
1079
- message.denom = reader.string();
1080
- break;
1081
- default:
1082
- reader.skipType(tag & 7);
1083
- break;
1084
- }
1085
- }
1086
- return message;
1087
- },
1088
- fromJSON(object) {
1089
- return {
1090
- icaType: isSet(object.icaType)
1091
- ? iCAAccountTypeFromJSON(object.icaType)
1092
- : -1,
1093
- denom: isSet(object.denom) ? String(object.denom) : '',
1094
- };
1095
- },
1096
- toJSON(message) {
1097
- const obj = {};
1098
- message.icaType !== undefined &&
1099
- (obj.icaType = iCAAccountTypeToJSON(message.icaType));
1100
- message.denom !== undefined && (obj.denom = message.denom);
1101
- return obj;
1102
- },
1103
- fromPartial(object) {
1104
- const message = createBaseCommunityPoolBalanceQueryCallback();
1105
- message.icaType = object.icaType ?? 0;
1106
- message.denom = object.denom ?? '';
1107
- return message;
1108
- },
1109
- fromProtoMsg(message) {
1110
- return CommunityPoolBalanceQueryCallback.decode(message.value);
1111
- },
1112
- toProto(message) {
1113
- return CommunityPoolBalanceQueryCallback.encode(message).finish();
1114
- },
1115
- toProtoMsg(message) {
1116
- return {
1117
- typeUrl: '/stride.stakeibc.CommunityPoolBalanceQueryCallback',
1118
- value: CommunityPoolBalanceQueryCallback.encode(message).finish(),
1119
- };
1120
- },
1121
- };
1122
- function createBaseTradeRouteCallback() {
1123
- return {
1124
- rewardDenom: '',
1125
- hostDenom: '',
1126
- };
1127
- }
1128
- export const TradeRouteCallback = {
1129
- typeUrl: '/stride.stakeibc.TradeRouteCallback',
1130
- encode(message, writer = BinaryWriter.create()) {
1131
- if (message.rewardDenom !== '') {
1132
- writer.uint32(10).string(message.rewardDenom);
1133
- }
1134
- if (message.hostDenom !== '') {
1135
- writer.uint32(18).string(message.hostDenom);
1136
- }
1137
- return writer;
1138
- },
1139
- decode(input, length) {
1140
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1141
- let end = length === undefined ? reader.len : reader.pos + length;
1142
- const message = createBaseTradeRouteCallback();
1143
- while (reader.pos < end) {
1144
- const tag = reader.uint32();
1145
- switch (tag >>> 3) {
1146
- case 1:
1147
- message.rewardDenom = reader.string();
1148
- break;
1149
- case 2:
1150
- message.hostDenom = reader.string();
1151
- break;
1152
- default:
1153
- reader.skipType(tag & 7);
1154
- break;
1155
- }
1156
- }
1157
- return message;
1158
- },
1159
- fromJSON(object) {
1160
- return {
1161
- rewardDenom: isSet(object.rewardDenom) ? String(object.rewardDenom) : '',
1162
- hostDenom: isSet(object.hostDenom) ? String(object.hostDenom) : '',
1163
- };
1164
- },
1165
- toJSON(message) {
1166
- const obj = {};
1167
- message.rewardDenom !== undefined &&
1168
- (obj.rewardDenom = message.rewardDenom);
1169
- message.hostDenom !== undefined && (obj.hostDenom = message.hostDenom);
1170
- return obj;
1171
- },
1172
- fromPartial(object) {
1173
- const message = createBaseTradeRouteCallback();
1174
- message.rewardDenom = object.rewardDenom ?? '';
1175
- message.hostDenom = object.hostDenom ?? '';
1176
- return message;
1177
- },
1178
- fromProtoMsg(message) {
1179
- return TradeRouteCallback.decode(message.value);
1180
- },
1181
- toProto(message) {
1182
- return TradeRouteCallback.encode(message).finish();
1183
- },
1184
- toProtoMsg(message) {
1185
- return {
1186
- typeUrl: '/stride.stakeibc.TradeRouteCallback',
1187
- value: TradeRouteCallback.encode(message).finish(),
1188
- };
1189
- },
1190
- };
1191
- //# sourceMappingURL=callbacks.js.map
1
+ import{Coin as e}from"../../cosmos/base/v1beta1/coin.js";import{LSMTokenDeposit as o}from"../records/records.js";import{HostZone as t}from"./host_zone.js";import{Validator as n}from"./validator.js";import{ICAAccountType as i,iCAAccountTypeFromJSON as a,iCAAccountTypeToJSON as r}from"./ica_account.js";import{BinaryReader as d,BinaryWriter as s}from"../../binary.js";import{isSet as l}from"../../helpers.js";import{}from"../../json-safe.js";export const SplitDelegation={typeUrl:"/stride.stakeibc.SplitDelegation",encode:(e,o=s.create())=>(""!==e.validator&&o.uint32(10).string(e.validator),""!==e.amount&&o.uint32(18).string(e.amount),o),decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={validator:"",amount:""};for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.validator=t.string();break;case 2:i.amount=t.string();break;default:t.skipType(7&e)}}return i},fromJSON:e=>({validator:l(e.validator)?String(e.validator):"",amount:l(e.amount)?String(e.amount):""}),toJSON(e){const o={};return void 0!==e.validator&&(o.validator=e.validator),void 0!==e.amount&&(o.amount=e.amount),o},fromPartial(e){const o={validator:"",amount:""};return o.validator=e.validator??"",o.amount=e.amount??"",o},fromProtoMsg:e=>SplitDelegation.decode(e.value),toProto:e=>SplitDelegation.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.SplitDelegation",value:SplitDelegation.encode(e).finish()})};export const SplitUndelegation={typeUrl:"/stride.stakeibc.SplitUndelegation",encode:(e,o=s.create())=>(""!==e.validator&&o.uint32(10).string(e.validator),""!==e.nativeTokenAmount&&o.uint32(18).string(e.nativeTokenAmount),o),decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={validator:"",nativeTokenAmount:""};for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.validator=t.string();break;case 2:i.nativeTokenAmount=t.string();break;default:t.skipType(7&e)}}return i},fromJSON:e=>({validator:l(e.validator)?String(e.validator):"",nativeTokenAmount:l(e.nativeTokenAmount)?String(e.nativeTokenAmount):""}),toJSON(e){const o={};return void 0!==e.validator&&(o.validator=e.validator),void 0!==e.nativeTokenAmount&&(o.nativeTokenAmount=e.nativeTokenAmount),o},fromPartial(e){const o={validator:"",nativeTokenAmount:""};return o.validator=e.validator??"",o.nativeTokenAmount=e.nativeTokenAmount??"",o},fromProtoMsg:e=>SplitUndelegation.decode(e.value),toProto:e=>SplitUndelegation.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.SplitUndelegation",value:SplitUndelegation.encode(e).finish()})};function c(){return{hostZoneId:"",depositRecordId:BigInt(0),splitDelegations:[]}}export const DelegateCallback={typeUrl:"/stride.stakeibc.DelegateCallback",encode(e,o=s.create()){""!==e.hostZoneId&&o.uint32(10).string(e.hostZoneId),e.depositRecordId!==BigInt(0)&&o.uint32(16).uint64(e.depositRecordId);for(const t of e.splitDelegations)SplitDelegation.encode(t,o.uint32(26).fork()).ldelim();return o},decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i=c();for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.hostZoneId=t.string();break;case 2:i.depositRecordId=t.uint64();break;case 3:i.splitDelegations.push(SplitDelegation.decode(t,t.uint32()));break;default:t.skipType(7&e)}}return i},fromJSON:e=>({hostZoneId:l(e.hostZoneId)?String(e.hostZoneId):"",depositRecordId:l(e.depositRecordId)?BigInt(e.depositRecordId.toString()):BigInt(0),splitDelegations:Array.isArray(e?.splitDelegations)?e.splitDelegations.map((e=>SplitDelegation.fromJSON(e))):[]}),toJSON(e){const o={};return void 0!==e.hostZoneId&&(o.hostZoneId=e.hostZoneId),void 0!==e.depositRecordId&&(o.depositRecordId=(e.depositRecordId||BigInt(0)).toString()),e.splitDelegations?o.splitDelegations=e.splitDelegations.map((e=>e?SplitDelegation.toJSON(e):void 0)):o.splitDelegations=[],o},fromPartial(e){const o=c();return o.hostZoneId=e.hostZoneId??"",o.depositRecordId=void 0!==e.depositRecordId&&null!==e.depositRecordId?BigInt(e.depositRecordId.toString()):BigInt(0),o.splitDelegations=e.splitDelegations?.map((e=>SplitDelegation.fromPartial(e)))||[],o},fromProtoMsg:e=>DelegateCallback.decode(e.value),toProto:e=>DelegateCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.DelegateCallback",value:DelegateCallback.encode(e).finish()})};function p(){return{userRedemptionRecordId:"",chainId:"",epochNumber:BigInt(0)}}export const ClaimCallback={typeUrl:"/stride.stakeibc.ClaimCallback",encode:(e,o=s.create())=>(""!==e.userRedemptionRecordId&&o.uint32(10).string(e.userRedemptionRecordId),""!==e.chainId&&o.uint32(18).string(e.chainId),e.epochNumber!==BigInt(0)&&o.uint32(24).uint64(e.epochNumber),o),decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i=p();for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.userRedemptionRecordId=t.string();break;case 2:i.chainId=t.string();break;case 3:i.epochNumber=t.uint64();break;default:t.skipType(7&e)}}return i},fromJSON:e=>({userRedemptionRecordId:l(e.userRedemptionRecordId)?String(e.userRedemptionRecordId):"",chainId:l(e.chainId)?String(e.chainId):"",epochNumber:l(e.epochNumber)?BigInt(e.epochNumber.toString()):BigInt(0)}),toJSON(e){const o={};return void 0!==e.userRedemptionRecordId&&(o.userRedemptionRecordId=e.userRedemptionRecordId),void 0!==e.chainId&&(o.chainId=e.chainId),void 0!==e.epochNumber&&(o.epochNumber=(e.epochNumber||BigInt(0)).toString()),o},fromPartial(e){const o=p();return o.userRedemptionRecordId=e.userRedemptionRecordId??"",o.chainId=e.chainId??"",o.epochNumber=void 0!==e.epochNumber&&null!==e.epochNumber?BigInt(e.epochNumber.toString()):BigInt(0),o},fromProtoMsg:e=>ClaimCallback.decode(e.value),toProto:e=>ClaimCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.ClaimCallback",value:ClaimCallback.encode(e).finish()})};function u(){return{reinvestAmount:e.fromPartial({}),hostZoneId:""}}export const ReinvestCallback={typeUrl:"/stride.stakeibc.ReinvestCallback",encode:(o,t=s.create())=>(void 0!==o.reinvestAmount&&e.encode(o.reinvestAmount,t.uint32(10).fork()).ldelim(),""!==o.hostZoneId&&t.uint32(26).string(o.hostZoneId),t),decode(o,t){const n=o instanceof d?o:new d(o);let i=void 0===t?n.len:n.pos+t;const a=u();for(;n.pos<i;){const o=n.uint32();switch(o>>>3){case 1:a.reinvestAmount=e.decode(n,n.uint32());break;case 3:a.hostZoneId=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:o=>({reinvestAmount:l(o.reinvestAmount)?e.fromJSON(o.reinvestAmount):void 0,hostZoneId:l(o.hostZoneId)?String(o.hostZoneId):""}),toJSON(o){const t={};return void 0!==o.reinvestAmount&&(t.reinvestAmount=o.reinvestAmount?e.toJSON(o.reinvestAmount):void 0),void 0!==o.hostZoneId&&(t.hostZoneId=o.hostZoneId),t},fromPartial(o){const t=u();return t.reinvestAmount=void 0!==o.reinvestAmount&&null!==o.reinvestAmount?e.fromPartial(o.reinvestAmount):void 0,t.hostZoneId=o.hostZoneId??"",t},fromProtoMsg:e=>ReinvestCallback.decode(e.value),toProto:e=>ReinvestCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.ReinvestCallback",value:ReinvestCallback.encode(e).finish()})};export const UndelegateCallback={typeUrl:"/stride.stakeibc.UndelegateCallback",encode(e,o=s.create()){""!==e.hostZoneId&&o.uint32(10).string(e.hostZoneId);for(const t of e.splitUndelegations)SplitUndelegation.encode(t,o.uint32(18).fork()).ldelim();o.uint32(26).fork();for(const t of e.epochUnbondingRecordIds)o.uint64(t);return o.ldelim(),o},decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={hostZoneId:"",splitUndelegations:[],epochUnbondingRecordIds:[]};for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.hostZoneId=t.string();break;case 2:i.splitUndelegations.push(SplitUndelegation.decode(t,t.uint32()));break;case 3:if(2==(7&e)){const e=t.uint32()+t.pos;for(;t.pos<e;)i.epochUnbondingRecordIds.push(t.uint64())}else i.epochUnbondingRecordIds.push(t.uint64());break;default:t.skipType(7&e)}}return i},fromJSON:e=>({hostZoneId:l(e.hostZoneId)?String(e.hostZoneId):"",splitUndelegations:Array.isArray(e?.splitUndelegations)?e.splitUndelegations.map((e=>SplitUndelegation.fromJSON(e))):[],epochUnbondingRecordIds:Array.isArray(e?.epochUnbondingRecordIds)?e.epochUnbondingRecordIds.map((e=>BigInt(e.toString()))):[]}),toJSON(e){const o={};return void 0!==e.hostZoneId&&(o.hostZoneId=e.hostZoneId),e.splitUndelegations?o.splitUndelegations=e.splitUndelegations.map((e=>e?SplitUndelegation.toJSON(e):void 0)):o.splitUndelegations=[],e.epochUnbondingRecordIds?o.epochUnbondingRecordIds=e.epochUnbondingRecordIds.map((e=>(e||BigInt(0)).toString())):o.epochUnbondingRecordIds=[],o},fromPartial(e){const o={hostZoneId:"",splitUndelegations:[],epochUnbondingRecordIds:[]};return o.hostZoneId=e.hostZoneId??"",o.splitUndelegations=e.splitUndelegations?.map((e=>SplitUndelegation.fromPartial(e)))||[],o.epochUnbondingRecordIds=e.epochUnbondingRecordIds?.map((e=>BigInt(e.toString())))||[],o},fromProtoMsg:e=>UndelegateCallback.decode(e.value),toProto:e=>UndelegateCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.UndelegateCallback",value:UndelegateCallback.encode(e).finish()})};export const RedemptionCallback={typeUrl:"/stride.stakeibc.RedemptionCallback",encode(e,o=s.create()){""!==e.hostZoneId&&o.uint32(10).string(e.hostZoneId),o.uint32(18).fork();for(const t of e.epochUnbondingRecordIds)o.uint64(t);return o.ldelim(),o},decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={hostZoneId:"",epochUnbondingRecordIds:[]};for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.hostZoneId=t.string();break;case 2:if(2==(7&e)){const e=t.uint32()+t.pos;for(;t.pos<e;)i.epochUnbondingRecordIds.push(t.uint64())}else i.epochUnbondingRecordIds.push(t.uint64());break;default:t.skipType(7&e)}}return i},fromJSON:e=>({hostZoneId:l(e.hostZoneId)?String(e.hostZoneId):"",epochUnbondingRecordIds:Array.isArray(e?.epochUnbondingRecordIds)?e.epochUnbondingRecordIds.map((e=>BigInt(e.toString()))):[]}),toJSON(e){const o={};return void 0!==e.hostZoneId&&(o.hostZoneId=e.hostZoneId),e.epochUnbondingRecordIds?o.epochUnbondingRecordIds=e.epochUnbondingRecordIds.map((e=>(e||BigInt(0)).toString())):o.epochUnbondingRecordIds=[],o},fromPartial(e){const o={hostZoneId:"",epochUnbondingRecordIds:[]};return o.hostZoneId=e.hostZoneId??"",o.epochUnbondingRecordIds=e.epochUnbondingRecordIds?.map((e=>BigInt(e.toString())))||[],o},fromProtoMsg:e=>RedemptionCallback.decode(e.value),toProto:e=>RedemptionCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.RedemptionCallback",value:RedemptionCallback.encode(e).finish()})};export const Rebalancing={typeUrl:"/stride.stakeibc.Rebalancing",encode:(e,o=s.create())=>(""!==e.srcValidator&&o.uint32(10).string(e.srcValidator),""!==e.dstValidator&&o.uint32(18).string(e.dstValidator),""!==e.amt&&o.uint32(26).string(e.amt),o),decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={srcValidator:"",dstValidator:"",amt:""};for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.srcValidator=t.string();break;case 2:i.dstValidator=t.string();break;case 3:i.amt=t.string();break;default:t.skipType(7&e)}}return i},fromJSON:e=>({srcValidator:l(e.srcValidator)?String(e.srcValidator):"",dstValidator:l(e.dstValidator)?String(e.dstValidator):"",amt:l(e.amt)?String(e.amt):""}),toJSON(e){const o={};return void 0!==e.srcValidator&&(o.srcValidator=e.srcValidator),void 0!==e.dstValidator&&(o.dstValidator=e.dstValidator),void 0!==e.amt&&(o.amt=e.amt),o},fromPartial(e){const o={srcValidator:"",dstValidator:"",amt:""};return o.srcValidator=e.srcValidator??"",o.dstValidator=e.dstValidator??"",o.amt=e.amt??"",o},fromProtoMsg:e=>Rebalancing.decode(e.value),toProto:e=>Rebalancing.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.Rebalancing",value:Rebalancing.encode(e).finish()})};export const RebalanceCallback={typeUrl:"/stride.stakeibc.RebalanceCallback",encode(e,o=s.create()){""!==e.hostZoneId&&o.uint32(10).string(e.hostZoneId);for(const t of e.rebalancings)Rebalancing.encode(t,o.uint32(18).fork()).ldelim();return o},decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={hostZoneId:"",rebalancings:[]};for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.hostZoneId=t.string();break;case 2:i.rebalancings.push(Rebalancing.decode(t,t.uint32()));break;default:t.skipType(7&e)}}return i},fromJSON:e=>({hostZoneId:l(e.hostZoneId)?String(e.hostZoneId):"",rebalancings:Array.isArray(e?.rebalancings)?e.rebalancings.map((e=>Rebalancing.fromJSON(e))):[]}),toJSON(e){const o={};return void 0!==e.hostZoneId&&(o.hostZoneId=e.hostZoneId),e.rebalancings?o.rebalancings=e.rebalancings.map((e=>e?Rebalancing.toJSON(e):void 0)):o.rebalancings=[],o},fromPartial(e){const o={hostZoneId:"",rebalancings:[]};return o.hostZoneId=e.hostZoneId??"",o.rebalancings=e.rebalancings?.map((e=>Rebalancing.fromPartial(e)))||[],o},fromProtoMsg:e=>RebalanceCallback.decode(e.value),toProto:e=>RebalanceCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.RebalanceCallback",value:RebalanceCallback.encode(e).finish()})};export const DetokenizeSharesCallback={typeUrl:"/stride.stakeibc.DetokenizeSharesCallback",encode:(e,t=s.create())=>(void 0!==e.deposit&&o.encode(e.deposit,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof d?e:new d(e);let i=void 0===t?n.len:n.pos+t;const a={deposit:void 0};for(;n.pos<i;){const e=n.uint32();if(e>>>3==1)a.deposit=o.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({deposit:l(e.deposit)?o.fromJSON(e.deposit):void 0}),toJSON(e){const t={};return void 0!==e.deposit&&(t.deposit=e.deposit?o.toJSON(e.deposit):void 0),t},fromPartial(e){const t={deposit:void 0};return t.deposit=void 0!==e.deposit&&null!==e.deposit?o.fromPartial(e.deposit):void 0,t},fromProtoMsg:e=>DetokenizeSharesCallback.decode(e.value),toProto:e=>DetokenizeSharesCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.DetokenizeSharesCallback",value:DetokenizeSharesCallback.encode(e).finish()})};export const LSMLiquidStake={typeUrl:"/stride.stakeibc.LSMLiquidStake",encode:(e,i=s.create())=>(void 0!==e.deposit&&o.encode(e.deposit,i.uint32(10).fork()).ldelim(),void 0!==e.hostZone&&t.encode(e.hostZone,i.uint32(18).fork()).ldelim(),void 0!==e.validator&&n.encode(e.validator,i.uint32(26).fork()).ldelim(),i),decode(e,i){const a=e instanceof d?e:new d(e);let r=void 0===i?a.len:a.pos+i;const s={deposit:void 0,hostZone:void 0,validator:void 0};for(;a.pos<r;){const e=a.uint32();switch(e>>>3){case 1:s.deposit=o.decode(a,a.uint32());break;case 2:s.hostZone=t.decode(a,a.uint32());break;case 3:s.validator=n.decode(a,a.uint32());break;default:a.skipType(7&e)}}return s},fromJSON:e=>({deposit:l(e.deposit)?o.fromJSON(e.deposit):void 0,hostZone:l(e.hostZone)?t.fromJSON(e.hostZone):void 0,validator:l(e.validator)?n.fromJSON(e.validator):void 0}),toJSON(e){const i={};return void 0!==e.deposit&&(i.deposit=e.deposit?o.toJSON(e.deposit):void 0),void 0!==e.hostZone&&(i.hostZone=e.hostZone?t.toJSON(e.hostZone):void 0),void 0!==e.validator&&(i.validator=e.validator?n.toJSON(e.validator):void 0),i},fromPartial(e){const i={deposit:void 0,hostZone:void 0,validator:void 0};return i.deposit=void 0!==e.deposit&&null!==e.deposit?o.fromPartial(e.deposit):void 0,i.hostZone=void 0!==e.hostZone&&null!==e.hostZone?t.fromPartial(e.hostZone):void 0,i.validator=void 0!==e.validator&&null!==e.validator?n.fromPartial(e.validator):void 0,i},fromProtoMsg:e=>LSMLiquidStake.decode(e.value),toProto:e=>LSMLiquidStake.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.LSMLiquidStake",value:LSMLiquidStake.encode(e).finish()})};export const ValidatorSharesToTokensQueryCallback={typeUrl:"/stride.stakeibc.ValidatorSharesToTokensQueryCallback",encode:(e,o=s.create())=>(void 0!==e.lsmLiquidStake&&LSMLiquidStake.encode(e.lsmLiquidStake,o.uint32(10).fork()).ldelim(),o),decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={lsmLiquidStake:void 0};for(;t.pos<n;){const e=t.uint32();if(e>>>3==1)i.lsmLiquidStake=LSMLiquidStake.decode(t,t.uint32());else t.skipType(7&e)}return i},fromJSON:e=>({lsmLiquidStake:l(e.lsmLiquidStake)?LSMLiquidStake.fromJSON(e.lsmLiquidStake):void 0}),toJSON(e){const o={};return void 0!==e.lsmLiquidStake&&(o.lsmLiquidStake=e.lsmLiquidStake?LSMLiquidStake.toJSON(e.lsmLiquidStake):void 0),o},fromPartial(e){const o={lsmLiquidStake:void 0};return o.lsmLiquidStake=void 0!==e.lsmLiquidStake&&null!==e.lsmLiquidStake?LSMLiquidStake.fromPartial(e.lsmLiquidStake):void 0,o},fromProtoMsg:e=>ValidatorSharesToTokensQueryCallback.decode(e.value),toProto:e=>ValidatorSharesToTokensQueryCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.ValidatorSharesToTokensQueryCallback",value:ValidatorSharesToTokensQueryCallback.encode(e).finish()})};export const DelegatorSharesQueryCallback={typeUrl:"/stride.stakeibc.DelegatorSharesQueryCallback",encode:(e,o=s.create())=>(""!==e.initialValidatorDelegation&&o.uint32(10).string(e.initialValidatorDelegation),o),decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={initialValidatorDelegation:""};for(;t.pos<n;){const e=t.uint32();if(e>>>3==1)i.initialValidatorDelegation=t.string();else t.skipType(7&e)}return i},fromJSON:e=>({initialValidatorDelegation:l(e.initialValidatorDelegation)?String(e.initialValidatorDelegation):""}),toJSON(e){const o={};return void 0!==e.initialValidatorDelegation&&(o.initialValidatorDelegation=e.initialValidatorDelegation),o},fromPartial(e){const o={initialValidatorDelegation:""};return o.initialValidatorDelegation=e.initialValidatorDelegation??"",o},fromProtoMsg:e=>DelegatorSharesQueryCallback.decode(e.value),toProto:e=>DelegatorSharesQueryCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.DelegatorSharesQueryCallback",value:DelegatorSharesQueryCallback.encode(e).finish()})};export const CommunityPoolBalanceQueryCallback={typeUrl:"/stride.stakeibc.CommunityPoolBalanceQueryCallback",encode:(e,o=s.create())=>(0!==e.icaType&&o.uint32(8).int32(e.icaType),""!==e.denom&&o.uint32(18).string(e.denom),o),decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={icaType:0,denom:""};for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.icaType=t.int32();break;case 2:i.denom=t.string();break;default:t.skipType(7&e)}}return i},fromJSON:e=>({icaType:l(e.icaType)?a(e.icaType):-1,denom:l(e.denom)?String(e.denom):""}),toJSON(e){const o={};return void 0!==e.icaType&&(o.icaType=r(e.icaType)),void 0!==e.denom&&(o.denom=e.denom),o},fromPartial(e){const o={icaType:0,denom:""};return o.icaType=e.icaType??0,o.denom=e.denom??"",o},fromProtoMsg:e=>CommunityPoolBalanceQueryCallback.decode(e.value),toProto:e=>CommunityPoolBalanceQueryCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.CommunityPoolBalanceQueryCallback",value:CommunityPoolBalanceQueryCallback.encode(e).finish()})};export const TradeRouteCallback={typeUrl:"/stride.stakeibc.TradeRouteCallback",encode:(e,o=s.create())=>(""!==e.rewardDenom&&o.uint32(10).string(e.rewardDenom),""!==e.hostDenom&&o.uint32(18).string(e.hostDenom),o),decode(e,o){const t=e instanceof d?e:new d(e);let n=void 0===o?t.len:t.pos+o;const i={rewardDenom:"",hostDenom:""};for(;t.pos<n;){const e=t.uint32();switch(e>>>3){case 1:i.rewardDenom=t.string();break;case 2:i.hostDenom=t.string();break;default:t.skipType(7&e)}}return i},fromJSON:e=>({rewardDenom:l(e.rewardDenom)?String(e.rewardDenom):"",hostDenom:l(e.hostDenom)?String(e.hostDenom):""}),toJSON(e){const o={};return void 0!==e.rewardDenom&&(o.rewardDenom=e.rewardDenom),void 0!==e.hostDenom&&(o.hostDenom=e.hostDenom),o},fromPartial(e){const o={rewardDenom:"",hostDenom:""};return o.rewardDenom=e.rewardDenom??"",o.hostDenom=e.hostDenom??"",o},fromProtoMsg:e=>TradeRouteCallback.decode(e.value),toProto:e=>TradeRouteCallback.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/stride.stakeibc.TradeRouteCallback",value:TradeRouteCallback.encode(e).finish()})};