@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,952 +1 @@
1
- //@ts-nocheck
2
- import { PageRequest, PageResponse, } from '../../../../cosmos/base/query/v1beta1/pagination.js';
3
- import { ConnectionEnd, IdentifiedConnection, } from './connection.js';
4
- import { Height, IdentifiedClientState, Params, } from '../../client/v1/client.js';
5
- import { Any } from '../../../../google/protobuf/any.js';
6
- import { BinaryReader, BinaryWriter } from '../../../../binary.js';
7
- import { isSet, bytesFromBase64, base64FromBytes, } from '../../../../helpers.js';
8
- import {} from '../../../../json-safe.js';
9
- function createBaseQueryConnectionRequest() {
10
- return {
11
- connectionId: '',
12
- };
13
- }
14
- export const QueryConnectionRequest = {
15
- typeUrl: '/ibc.core.connection.v1.QueryConnectionRequest',
16
- encode(message, writer = BinaryWriter.create()) {
17
- if (message.connectionId !== '') {
18
- writer.uint32(10).string(message.connectionId);
19
- }
20
- return writer;
21
- },
22
- decode(input, length) {
23
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24
- let end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBaseQueryConnectionRequest();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- case 1:
30
- message.connectionId = reader.string();
31
- break;
32
- default:
33
- reader.skipType(tag & 7);
34
- break;
35
- }
36
- }
37
- return message;
38
- },
39
- fromJSON(object) {
40
- return {
41
- connectionId: isSet(object.connectionId)
42
- ? String(object.connectionId)
43
- : '',
44
- };
45
- },
46
- toJSON(message) {
47
- const obj = {};
48
- message.connectionId !== undefined &&
49
- (obj.connectionId = message.connectionId);
50
- return obj;
51
- },
52
- fromPartial(object) {
53
- const message = createBaseQueryConnectionRequest();
54
- message.connectionId = object.connectionId ?? '';
55
- return message;
56
- },
57
- fromProtoMsg(message) {
58
- return QueryConnectionRequest.decode(message.value);
59
- },
60
- toProto(message) {
61
- return QueryConnectionRequest.encode(message).finish();
62
- },
63
- toProtoMsg(message) {
64
- return {
65
- typeUrl: '/ibc.core.connection.v1.QueryConnectionRequest',
66
- value: QueryConnectionRequest.encode(message).finish(),
67
- };
68
- },
69
- };
70
- function createBaseQueryConnectionResponse() {
71
- return {
72
- connection: undefined,
73
- proof: new Uint8Array(),
74
- proofHeight: Height.fromPartial({}),
75
- };
76
- }
77
- export const QueryConnectionResponse = {
78
- typeUrl: '/ibc.core.connection.v1.QueryConnectionResponse',
79
- encode(message, writer = BinaryWriter.create()) {
80
- if (message.connection !== undefined) {
81
- ConnectionEnd.encode(message.connection, writer.uint32(10).fork()).ldelim();
82
- }
83
- if (message.proof.length !== 0) {
84
- writer.uint32(18).bytes(message.proof);
85
- }
86
- if (message.proofHeight !== undefined) {
87
- Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
88
- }
89
- return writer;
90
- },
91
- decode(input, length) {
92
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
93
- let end = length === undefined ? reader.len : reader.pos + length;
94
- const message = createBaseQueryConnectionResponse();
95
- while (reader.pos < end) {
96
- const tag = reader.uint32();
97
- switch (tag >>> 3) {
98
- case 1:
99
- message.connection = ConnectionEnd.decode(reader, reader.uint32());
100
- break;
101
- case 2:
102
- message.proof = reader.bytes();
103
- break;
104
- case 3:
105
- message.proofHeight = Height.decode(reader, reader.uint32());
106
- break;
107
- default:
108
- reader.skipType(tag & 7);
109
- break;
110
- }
111
- }
112
- return message;
113
- },
114
- fromJSON(object) {
115
- return {
116
- connection: isSet(object.connection)
117
- ? ConnectionEnd.fromJSON(object.connection)
118
- : undefined,
119
- proof: isSet(object.proof)
120
- ? bytesFromBase64(object.proof)
121
- : new Uint8Array(),
122
- proofHeight: isSet(object.proofHeight)
123
- ? Height.fromJSON(object.proofHeight)
124
- : undefined,
125
- };
126
- },
127
- toJSON(message) {
128
- const obj = {};
129
- message.connection !== undefined &&
130
- (obj.connection = message.connection
131
- ? ConnectionEnd.toJSON(message.connection)
132
- : undefined);
133
- message.proof !== undefined &&
134
- (obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array()));
135
- message.proofHeight !== undefined &&
136
- (obj.proofHeight = message.proofHeight
137
- ? Height.toJSON(message.proofHeight)
138
- : undefined);
139
- return obj;
140
- },
141
- fromPartial(object) {
142
- const message = createBaseQueryConnectionResponse();
143
- message.connection =
144
- object.connection !== undefined && object.connection !== null
145
- ? ConnectionEnd.fromPartial(object.connection)
146
- : undefined;
147
- message.proof = object.proof ?? new Uint8Array();
148
- message.proofHeight =
149
- object.proofHeight !== undefined && object.proofHeight !== null
150
- ? Height.fromPartial(object.proofHeight)
151
- : undefined;
152
- return message;
153
- },
154
- fromProtoMsg(message) {
155
- return QueryConnectionResponse.decode(message.value);
156
- },
157
- toProto(message) {
158
- return QueryConnectionResponse.encode(message).finish();
159
- },
160
- toProtoMsg(message) {
161
- return {
162
- typeUrl: '/ibc.core.connection.v1.QueryConnectionResponse',
163
- value: QueryConnectionResponse.encode(message).finish(),
164
- };
165
- },
166
- };
167
- function createBaseQueryConnectionsRequest() {
168
- return {
169
- pagination: undefined,
170
- };
171
- }
172
- export const QueryConnectionsRequest = {
173
- typeUrl: '/ibc.core.connection.v1.QueryConnectionsRequest',
174
- encode(message, writer = BinaryWriter.create()) {
175
- if (message.pagination !== undefined) {
176
- PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
177
- }
178
- return writer;
179
- },
180
- decode(input, length) {
181
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
182
- let end = length === undefined ? reader.len : reader.pos + length;
183
- const message = createBaseQueryConnectionsRequest();
184
- while (reader.pos < end) {
185
- const tag = reader.uint32();
186
- switch (tag >>> 3) {
187
- case 1:
188
- message.pagination = PageRequest.decode(reader, reader.uint32());
189
- break;
190
- default:
191
- reader.skipType(tag & 7);
192
- break;
193
- }
194
- }
195
- return message;
196
- },
197
- fromJSON(object) {
198
- return {
199
- pagination: isSet(object.pagination)
200
- ? PageRequest.fromJSON(object.pagination)
201
- : undefined,
202
- };
203
- },
204
- toJSON(message) {
205
- const obj = {};
206
- message.pagination !== undefined &&
207
- (obj.pagination = message.pagination
208
- ? PageRequest.toJSON(message.pagination)
209
- : undefined);
210
- return obj;
211
- },
212
- fromPartial(object) {
213
- const message = createBaseQueryConnectionsRequest();
214
- message.pagination =
215
- object.pagination !== undefined && object.pagination !== null
216
- ? PageRequest.fromPartial(object.pagination)
217
- : undefined;
218
- return message;
219
- },
220
- fromProtoMsg(message) {
221
- return QueryConnectionsRequest.decode(message.value);
222
- },
223
- toProto(message) {
224
- return QueryConnectionsRequest.encode(message).finish();
225
- },
226
- toProtoMsg(message) {
227
- return {
228
- typeUrl: '/ibc.core.connection.v1.QueryConnectionsRequest',
229
- value: QueryConnectionsRequest.encode(message).finish(),
230
- };
231
- },
232
- };
233
- function createBaseQueryConnectionsResponse() {
234
- return {
235
- connections: [],
236
- pagination: undefined,
237
- height: Height.fromPartial({}),
238
- };
239
- }
240
- export const QueryConnectionsResponse = {
241
- typeUrl: '/ibc.core.connection.v1.QueryConnectionsResponse',
242
- encode(message, writer = BinaryWriter.create()) {
243
- for (const v of message.connections) {
244
- IdentifiedConnection.encode(v, writer.uint32(10).fork()).ldelim();
245
- }
246
- if (message.pagination !== undefined) {
247
- PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
248
- }
249
- if (message.height !== undefined) {
250
- Height.encode(message.height, writer.uint32(26).fork()).ldelim();
251
- }
252
- return writer;
253
- },
254
- decode(input, length) {
255
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
256
- let end = length === undefined ? reader.len : reader.pos + length;
257
- const message = createBaseQueryConnectionsResponse();
258
- while (reader.pos < end) {
259
- const tag = reader.uint32();
260
- switch (tag >>> 3) {
261
- case 1:
262
- message.connections.push(IdentifiedConnection.decode(reader, reader.uint32()));
263
- break;
264
- case 2:
265
- message.pagination = PageResponse.decode(reader, reader.uint32());
266
- break;
267
- case 3:
268
- message.height = Height.decode(reader, reader.uint32());
269
- break;
270
- default:
271
- reader.skipType(tag & 7);
272
- break;
273
- }
274
- }
275
- return message;
276
- },
277
- fromJSON(object) {
278
- return {
279
- connections: Array.isArray(object?.connections)
280
- ? object.connections.map((e) => IdentifiedConnection.fromJSON(e))
281
- : [],
282
- pagination: isSet(object.pagination)
283
- ? PageResponse.fromJSON(object.pagination)
284
- : undefined,
285
- height: isSet(object.height) ? Height.fromJSON(object.height) : undefined,
286
- };
287
- },
288
- toJSON(message) {
289
- const obj = {};
290
- if (message.connections) {
291
- obj.connections = message.connections.map(e => e ? IdentifiedConnection.toJSON(e) : undefined);
292
- }
293
- else {
294
- obj.connections = [];
295
- }
296
- message.pagination !== undefined &&
297
- (obj.pagination = message.pagination
298
- ? PageResponse.toJSON(message.pagination)
299
- : undefined);
300
- message.height !== undefined &&
301
- (obj.height = message.height ? Height.toJSON(message.height) : undefined);
302
- return obj;
303
- },
304
- fromPartial(object) {
305
- const message = createBaseQueryConnectionsResponse();
306
- message.connections =
307
- object.connections?.map(e => IdentifiedConnection.fromPartial(e)) || [];
308
- message.pagination =
309
- object.pagination !== undefined && object.pagination !== null
310
- ? PageResponse.fromPartial(object.pagination)
311
- : undefined;
312
- message.height =
313
- object.height !== undefined && object.height !== null
314
- ? Height.fromPartial(object.height)
315
- : undefined;
316
- return message;
317
- },
318
- fromProtoMsg(message) {
319
- return QueryConnectionsResponse.decode(message.value);
320
- },
321
- toProto(message) {
322
- return QueryConnectionsResponse.encode(message).finish();
323
- },
324
- toProtoMsg(message) {
325
- return {
326
- typeUrl: '/ibc.core.connection.v1.QueryConnectionsResponse',
327
- value: QueryConnectionsResponse.encode(message).finish(),
328
- };
329
- },
330
- };
331
- function createBaseQueryClientConnectionsRequest() {
332
- return {
333
- clientId: '',
334
- };
335
- }
336
- export const QueryClientConnectionsRequest = {
337
- typeUrl: '/ibc.core.connection.v1.QueryClientConnectionsRequest',
338
- encode(message, writer = BinaryWriter.create()) {
339
- if (message.clientId !== '') {
340
- writer.uint32(10).string(message.clientId);
341
- }
342
- return writer;
343
- },
344
- decode(input, length) {
345
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
346
- let end = length === undefined ? reader.len : reader.pos + length;
347
- const message = createBaseQueryClientConnectionsRequest();
348
- while (reader.pos < end) {
349
- const tag = reader.uint32();
350
- switch (tag >>> 3) {
351
- case 1:
352
- message.clientId = reader.string();
353
- break;
354
- default:
355
- reader.skipType(tag & 7);
356
- break;
357
- }
358
- }
359
- return message;
360
- },
361
- fromJSON(object) {
362
- return {
363
- clientId: isSet(object.clientId) ? String(object.clientId) : '',
364
- };
365
- },
366
- toJSON(message) {
367
- const obj = {};
368
- message.clientId !== undefined && (obj.clientId = message.clientId);
369
- return obj;
370
- },
371
- fromPartial(object) {
372
- const message = createBaseQueryClientConnectionsRequest();
373
- message.clientId = object.clientId ?? '';
374
- return message;
375
- },
376
- fromProtoMsg(message) {
377
- return QueryClientConnectionsRequest.decode(message.value);
378
- },
379
- toProto(message) {
380
- return QueryClientConnectionsRequest.encode(message).finish();
381
- },
382
- toProtoMsg(message) {
383
- return {
384
- typeUrl: '/ibc.core.connection.v1.QueryClientConnectionsRequest',
385
- value: QueryClientConnectionsRequest.encode(message).finish(),
386
- };
387
- },
388
- };
389
- function createBaseQueryClientConnectionsResponse() {
390
- return {
391
- connectionPaths: [],
392
- proof: new Uint8Array(),
393
- proofHeight: Height.fromPartial({}),
394
- };
395
- }
396
- export const QueryClientConnectionsResponse = {
397
- typeUrl: '/ibc.core.connection.v1.QueryClientConnectionsResponse',
398
- encode(message, writer = BinaryWriter.create()) {
399
- for (const v of message.connectionPaths) {
400
- writer.uint32(10).string(v);
401
- }
402
- if (message.proof.length !== 0) {
403
- writer.uint32(18).bytes(message.proof);
404
- }
405
- if (message.proofHeight !== undefined) {
406
- Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
407
- }
408
- return writer;
409
- },
410
- decode(input, length) {
411
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
412
- let end = length === undefined ? reader.len : reader.pos + length;
413
- const message = createBaseQueryClientConnectionsResponse();
414
- while (reader.pos < end) {
415
- const tag = reader.uint32();
416
- switch (tag >>> 3) {
417
- case 1:
418
- message.connectionPaths.push(reader.string());
419
- break;
420
- case 2:
421
- message.proof = reader.bytes();
422
- break;
423
- case 3:
424
- message.proofHeight = Height.decode(reader, reader.uint32());
425
- break;
426
- default:
427
- reader.skipType(tag & 7);
428
- break;
429
- }
430
- }
431
- return message;
432
- },
433
- fromJSON(object) {
434
- return {
435
- connectionPaths: Array.isArray(object?.connectionPaths)
436
- ? object.connectionPaths.map((e) => String(e))
437
- : [],
438
- proof: isSet(object.proof)
439
- ? bytesFromBase64(object.proof)
440
- : new Uint8Array(),
441
- proofHeight: isSet(object.proofHeight)
442
- ? Height.fromJSON(object.proofHeight)
443
- : undefined,
444
- };
445
- },
446
- toJSON(message) {
447
- const obj = {};
448
- if (message.connectionPaths) {
449
- obj.connectionPaths = message.connectionPaths.map(e => e);
450
- }
451
- else {
452
- obj.connectionPaths = [];
453
- }
454
- message.proof !== undefined &&
455
- (obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array()));
456
- message.proofHeight !== undefined &&
457
- (obj.proofHeight = message.proofHeight
458
- ? Height.toJSON(message.proofHeight)
459
- : undefined);
460
- return obj;
461
- },
462
- fromPartial(object) {
463
- const message = createBaseQueryClientConnectionsResponse();
464
- message.connectionPaths = object.connectionPaths?.map(e => e) || [];
465
- message.proof = object.proof ?? new Uint8Array();
466
- message.proofHeight =
467
- object.proofHeight !== undefined && object.proofHeight !== null
468
- ? Height.fromPartial(object.proofHeight)
469
- : undefined;
470
- return message;
471
- },
472
- fromProtoMsg(message) {
473
- return QueryClientConnectionsResponse.decode(message.value);
474
- },
475
- toProto(message) {
476
- return QueryClientConnectionsResponse.encode(message).finish();
477
- },
478
- toProtoMsg(message) {
479
- return {
480
- typeUrl: '/ibc.core.connection.v1.QueryClientConnectionsResponse',
481
- value: QueryClientConnectionsResponse.encode(message).finish(),
482
- };
483
- },
484
- };
485
- function createBaseQueryConnectionClientStateRequest() {
486
- return {
487
- connectionId: '',
488
- };
489
- }
490
- export const QueryConnectionClientStateRequest = {
491
- typeUrl: '/ibc.core.connection.v1.QueryConnectionClientStateRequest',
492
- encode(message, writer = BinaryWriter.create()) {
493
- if (message.connectionId !== '') {
494
- writer.uint32(10).string(message.connectionId);
495
- }
496
- return writer;
497
- },
498
- decode(input, length) {
499
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
500
- let end = length === undefined ? reader.len : reader.pos + length;
501
- const message = createBaseQueryConnectionClientStateRequest();
502
- while (reader.pos < end) {
503
- const tag = reader.uint32();
504
- switch (tag >>> 3) {
505
- case 1:
506
- message.connectionId = reader.string();
507
- break;
508
- default:
509
- reader.skipType(tag & 7);
510
- break;
511
- }
512
- }
513
- return message;
514
- },
515
- fromJSON(object) {
516
- return {
517
- connectionId: isSet(object.connectionId)
518
- ? String(object.connectionId)
519
- : '',
520
- };
521
- },
522
- toJSON(message) {
523
- const obj = {};
524
- message.connectionId !== undefined &&
525
- (obj.connectionId = message.connectionId);
526
- return obj;
527
- },
528
- fromPartial(object) {
529
- const message = createBaseQueryConnectionClientStateRequest();
530
- message.connectionId = object.connectionId ?? '';
531
- return message;
532
- },
533
- fromProtoMsg(message) {
534
- return QueryConnectionClientStateRequest.decode(message.value);
535
- },
536
- toProto(message) {
537
- return QueryConnectionClientStateRequest.encode(message).finish();
538
- },
539
- toProtoMsg(message) {
540
- return {
541
- typeUrl: '/ibc.core.connection.v1.QueryConnectionClientStateRequest',
542
- value: QueryConnectionClientStateRequest.encode(message).finish(),
543
- };
544
- },
545
- };
546
- function createBaseQueryConnectionClientStateResponse() {
547
- return {
548
- identifiedClientState: undefined,
549
- proof: new Uint8Array(),
550
- proofHeight: Height.fromPartial({}),
551
- };
552
- }
553
- export const QueryConnectionClientStateResponse = {
554
- typeUrl: '/ibc.core.connection.v1.QueryConnectionClientStateResponse',
555
- encode(message, writer = BinaryWriter.create()) {
556
- if (message.identifiedClientState !== undefined) {
557
- IdentifiedClientState.encode(message.identifiedClientState, writer.uint32(10).fork()).ldelim();
558
- }
559
- if (message.proof.length !== 0) {
560
- writer.uint32(18).bytes(message.proof);
561
- }
562
- if (message.proofHeight !== undefined) {
563
- Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
564
- }
565
- return writer;
566
- },
567
- decode(input, length) {
568
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
569
- let end = length === undefined ? reader.len : reader.pos + length;
570
- const message = createBaseQueryConnectionClientStateResponse();
571
- while (reader.pos < end) {
572
- const tag = reader.uint32();
573
- switch (tag >>> 3) {
574
- case 1:
575
- message.identifiedClientState = IdentifiedClientState.decode(reader, reader.uint32());
576
- break;
577
- case 2:
578
- message.proof = reader.bytes();
579
- break;
580
- case 3:
581
- message.proofHeight = Height.decode(reader, reader.uint32());
582
- break;
583
- default:
584
- reader.skipType(tag & 7);
585
- break;
586
- }
587
- }
588
- return message;
589
- },
590
- fromJSON(object) {
591
- return {
592
- identifiedClientState: isSet(object.identifiedClientState)
593
- ? IdentifiedClientState.fromJSON(object.identifiedClientState)
594
- : undefined,
595
- proof: isSet(object.proof)
596
- ? bytesFromBase64(object.proof)
597
- : new Uint8Array(),
598
- proofHeight: isSet(object.proofHeight)
599
- ? Height.fromJSON(object.proofHeight)
600
- : undefined,
601
- };
602
- },
603
- toJSON(message) {
604
- const obj = {};
605
- message.identifiedClientState !== undefined &&
606
- (obj.identifiedClientState = message.identifiedClientState
607
- ? IdentifiedClientState.toJSON(message.identifiedClientState)
608
- : undefined);
609
- message.proof !== undefined &&
610
- (obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array()));
611
- message.proofHeight !== undefined &&
612
- (obj.proofHeight = message.proofHeight
613
- ? Height.toJSON(message.proofHeight)
614
- : undefined);
615
- return obj;
616
- },
617
- fromPartial(object) {
618
- const message = createBaseQueryConnectionClientStateResponse();
619
- message.identifiedClientState =
620
- object.identifiedClientState !== undefined &&
621
- object.identifiedClientState !== null
622
- ? IdentifiedClientState.fromPartial(object.identifiedClientState)
623
- : undefined;
624
- message.proof = object.proof ?? new Uint8Array();
625
- message.proofHeight =
626
- object.proofHeight !== undefined && object.proofHeight !== null
627
- ? Height.fromPartial(object.proofHeight)
628
- : undefined;
629
- return message;
630
- },
631
- fromProtoMsg(message) {
632
- return QueryConnectionClientStateResponse.decode(message.value);
633
- },
634
- toProto(message) {
635
- return QueryConnectionClientStateResponse.encode(message).finish();
636
- },
637
- toProtoMsg(message) {
638
- return {
639
- typeUrl: '/ibc.core.connection.v1.QueryConnectionClientStateResponse',
640
- value: QueryConnectionClientStateResponse.encode(message).finish(),
641
- };
642
- },
643
- };
644
- function createBaseQueryConnectionConsensusStateRequest() {
645
- return {
646
- connectionId: '',
647
- revisionNumber: BigInt(0),
648
- revisionHeight: BigInt(0),
649
- };
650
- }
651
- export const QueryConnectionConsensusStateRequest = {
652
- typeUrl: '/ibc.core.connection.v1.QueryConnectionConsensusStateRequest',
653
- encode(message, writer = BinaryWriter.create()) {
654
- if (message.connectionId !== '') {
655
- writer.uint32(10).string(message.connectionId);
656
- }
657
- if (message.revisionNumber !== BigInt(0)) {
658
- writer.uint32(16).uint64(message.revisionNumber);
659
- }
660
- if (message.revisionHeight !== BigInt(0)) {
661
- writer.uint32(24).uint64(message.revisionHeight);
662
- }
663
- return writer;
664
- },
665
- decode(input, length) {
666
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
667
- let end = length === undefined ? reader.len : reader.pos + length;
668
- const message = createBaseQueryConnectionConsensusStateRequest();
669
- while (reader.pos < end) {
670
- const tag = reader.uint32();
671
- switch (tag >>> 3) {
672
- case 1:
673
- message.connectionId = reader.string();
674
- break;
675
- case 2:
676
- message.revisionNumber = reader.uint64();
677
- break;
678
- case 3:
679
- message.revisionHeight = reader.uint64();
680
- break;
681
- default:
682
- reader.skipType(tag & 7);
683
- break;
684
- }
685
- }
686
- return message;
687
- },
688
- fromJSON(object) {
689
- return {
690
- connectionId: isSet(object.connectionId)
691
- ? String(object.connectionId)
692
- : '',
693
- revisionNumber: isSet(object.revisionNumber)
694
- ? BigInt(object.revisionNumber.toString())
695
- : BigInt(0),
696
- revisionHeight: isSet(object.revisionHeight)
697
- ? BigInt(object.revisionHeight.toString())
698
- : BigInt(0),
699
- };
700
- },
701
- toJSON(message) {
702
- const obj = {};
703
- message.connectionId !== undefined &&
704
- (obj.connectionId = message.connectionId);
705
- message.revisionNumber !== undefined &&
706
- (obj.revisionNumber = (message.revisionNumber || BigInt(0)).toString());
707
- message.revisionHeight !== undefined &&
708
- (obj.revisionHeight = (message.revisionHeight || BigInt(0)).toString());
709
- return obj;
710
- },
711
- fromPartial(object) {
712
- const message = createBaseQueryConnectionConsensusStateRequest();
713
- message.connectionId = object.connectionId ?? '';
714
- message.revisionNumber =
715
- object.revisionNumber !== undefined && object.revisionNumber !== null
716
- ? BigInt(object.revisionNumber.toString())
717
- : BigInt(0);
718
- message.revisionHeight =
719
- object.revisionHeight !== undefined && object.revisionHeight !== null
720
- ? BigInt(object.revisionHeight.toString())
721
- : BigInt(0);
722
- return message;
723
- },
724
- fromProtoMsg(message) {
725
- return QueryConnectionConsensusStateRequest.decode(message.value);
726
- },
727
- toProto(message) {
728
- return QueryConnectionConsensusStateRequest.encode(message).finish();
729
- },
730
- toProtoMsg(message) {
731
- return {
732
- typeUrl: '/ibc.core.connection.v1.QueryConnectionConsensusStateRequest',
733
- value: QueryConnectionConsensusStateRequest.encode(message).finish(),
734
- };
735
- },
736
- };
737
- function createBaseQueryConnectionConsensusStateResponse() {
738
- return {
739
- consensusState: undefined,
740
- clientId: '',
741
- proof: new Uint8Array(),
742
- proofHeight: Height.fromPartial({}),
743
- };
744
- }
745
- export const QueryConnectionConsensusStateResponse = {
746
- typeUrl: '/ibc.core.connection.v1.QueryConnectionConsensusStateResponse',
747
- encode(message, writer = BinaryWriter.create()) {
748
- if (message.consensusState !== undefined) {
749
- Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim();
750
- }
751
- if (message.clientId !== '') {
752
- writer.uint32(18).string(message.clientId);
753
- }
754
- if (message.proof.length !== 0) {
755
- writer.uint32(26).bytes(message.proof);
756
- }
757
- if (message.proofHeight !== undefined) {
758
- Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
759
- }
760
- return writer;
761
- },
762
- decode(input, length) {
763
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
764
- let end = length === undefined ? reader.len : reader.pos + length;
765
- const message = createBaseQueryConnectionConsensusStateResponse();
766
- while (reader.pos < end) {
767
- const tag = reader.uint32();
768
- switch (tag >>> 3) {
769
- case 1:
770
- message.consensusState = Any.decode(reader, reader.uint32());
771
- break;
772
- case 2:
773
- message.clientId = reader.string();
774
- break;
775
- case 3:
776
- message.proof = reader.bytes();
777
- break;
778
- case 4:
779
- message.proofHeight = Height.decode(reader, reader.uint32());
780
- break;
781
- default:
782
- reader.skipType(tag & 7);
783
- break;
784
- }
785
- }
786
- return message;
787
- },
788
- fromJSON(object) {
789
- return {
790
- consensusState: isSet(object.consensusState)
791
- ? Any.fromJSON(object.consensusState)
792
- : undefined,
793
- clientId: isSet(object.clientId) ? String(object.clientId) : '',
794
- proof: isSet(object.proof)
795
- ? bytesFromBase64(object.proof)
796
- : new Uint8Array(),
797
- proofHeight: isSet(object.proofHeight)
798
- ? Height.fromJSON(object.proofHeight)
799
- : undefined,
800
- };
801
- },
802
- toJSON(message) {
803
- const obj = {};
804
- message.consensusState !== undefined &&
805
- (obj.consensusState = message.consensusState
806
- ? Any.toJSON(message.consensusState)
807
- : undefined);
808
- message.clientId !== undefined && (obj.clientId = message.clientId);
809
- message.proof !== undefined &&
810
- (obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array()));
811
- message.proofHeight !== undefined &&
812
- (obj.proofHeight = message.proofHeight
813
- ? Height.toJSON(message.proofHeight)
814
- : undefined);
815
- return obj;
816
- },
817
- fromPartial(object) {
818
- const message = createBaseQueryConnectionConsensusStateResponse();
819
- message.consensusState =
820
- object.consensusState !== undefined && object.consensusState !== null
821
- ? Any.fromPartial(object.consensusState)
822
- : undefined;
823
- message.clientId = object.clientId ?? '';
824
- message.proof = object.proof ?? new Uint8Array();
825
- message.proofHeight =
826
- object.proofHeight !== undefined && object.proofHeight !== null
827
- ? Height.fromPartial(object.proofHeight)
828
- : undefined;
829
- return message;
830
- },
831
- fromProtoMsg(message) {
832
- return QueryConnectionConsensusStateResponse.decode(message.value);
833
- },
834
- toProto(message) {
835
- return QueryConnectionConsensusStateResponse.encode(message).finish();
836
- },
837
- toProtoMsg(message) {
838
- return {
839
- typeUrl: '/ibc.core.connection.v1.QueryConnectionConsensusStateResponse',
840
- value: QueryConnectionConsensusStateResponse.encode(message).finish(),
841
- };
842
- },
843
- };
844
- function createBaseQueryConnectionParamsRequest() {
845
- return {};
846
- }
847
- export const QueryConnectionParamsRequest = {
848
- typeUrl: '/ibc.core.connection.v1.QueryConnectionParamsRequest',
849
- encode(_, writer = BinaryWriter.create()) {
850
- return writer;
851
- },
852
- decode(input, length) {
853
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
854
- let end = length === undefined ? reader.len : reader.pos + length;
855
- const message = createBaseQueryConnectionParamsRequest();
856
- while (reader.pos < end) {
857
- const tag = reader.uint32();
858
- switch (tag >>> 3) {
859
- default:
860
- reader.skipType(tag & 7);
861
- break;
862
- }
863
- }
864
- return message;
865
- },
866
- fromJSON(_) {
867
- return {};
868
- },
869
- toJSON(_) {
870
- const obj = {};
871
- return obj;
872
- },
873
- fromPartial(_) {
874
- const message = createBaseQueryConnectionParamsRequest();
875
- return message;
876
- },
877
- fromProtoMsg(message) {
878
- return QueryConnectionParamsRequest.decode(message.value);
879
- },
880
- toProto(message) {
881
- return QueryConnectionParamsRequest.encode(message).finish();
882
- },
883
- toProtoMsg(message) {
884
- return {
885
- typeUrl: '/ibc.core.connection.v1.QueryConnectionParamsRequest',
886
- value: QueryConnectionParamsRequest.encode(message).finish(),
887
- };
888
- },
889
- };
890
- function createBaseQueryConnectionParamsResponse() {
891
- return {
892
- params: undefined,
893
- };
894
- }
895
- export const QueryConnectionParamsResponse = {
896
- typeUrl: '/ibc.core.connection.v1.QueryConnectionParamsResponse',
897
- encode(message, writer = BinaryWriter.create()) {
898
- if (message.params !== undefined) {
899
- Params.encode(message.params, writer.uint32(10).fork()).ldelim();
900
- }
901
- return writer;
902
- },
903
- decode(input, length) {
904
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
905
- let end = length === undefined ? reader.len : reader.pos + length;
906
- const message = createBaseQueryConnectionParamsResponse();
907
- while (reader.pos < end) {
908
- const tag = reader.uint32();
909
- switch (tag >>> 3) {
910
- case 1:
911
- message.params = Params.decode(reader, reader.uint32());
912
- break;
913
- default:
914
- reader.skipType(tag & 7);
915
- break;
916
- }
917
- }
918
- return message;
919
- },
920
- fromJSON(object) {
921
- return {
922
- params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
923
- };
924
- },
925
- toJSON(message) {
926
- const obj = {};
927
- message.params !== undefined &&
928
- (obj.params = message.params ? Params.toJSON(message.params) : undefined);
929
- return obj;
930
- },
931
- fromPartial(object) {
932
- const message = createBaseQueryConnectionParamsResponse();
933
- message.params =
934
- object.params !== undefined && object.params !== null
935
- ? Params.fromPartial(object.params)
936
- : undefined;
937
- return message;
938
- },
939
- fromProtoMsg(message) {
940
- return QueryConnectionParamsResponse.decode(message.value);
941
- },
942
- toProto(message) {
943
- return QueryConnectionParamsResponse.encode(message).finish();
944
- },
945
- toProtoMsg(message) {
946
- return {
947
- typeUrl: '/ibc.core.connection.v1.QueryConnectionParamsResponse',
948
- value: QueryConnectionParamsResponse.encode(message).finish(),
949
- };
950
- },
951
- };
952
- //# sourceMappingURL=query.js.map
1
+ import{PageRequest as o,PageResponse as e}from"../../../../cosmos/base/query/v1beta1/pagination.js";import{ConnectionEnd as n,IdentifiedConnection as t}from"./connection.js";import{Height as i,IdentifiedClientState as r,Params as c}from"../../client/v1/client.js";import{Any as s}from"../../../../google/protobuf/any.js";import{BinaryReader as a,BinaryWriter as d}from"../../../../binary.js";import{isSet as p,bytesFromBase64 as u,base64FromBytes as f}from"../../../../helpers.js";import{}from"../../../../json-safe.js";export const QueryConnectionRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionRequest",encode:(o,e=d.create())=>(""!==o.connectionId&&e.uint32(10).string(o.connectionId),e),decode(o,e){const n=o instanceof a?o:new a(o);let t=void 0===e?n.len:n.pos+e;const i={connectionId:""};for(;n.pos<t;){const o=n.uint32();if(o>>>3==1)i.connectionId=n.string();else n.skipType(7&o)}return i},fromJSON:o=>({connectionId:p(o.connectionId)?String(o.connectionId):""}),toJSON(o){const e={};return void 0!==o.connectionId&&(e.connectionId=o.connectionId),e},fromPartial(o){const e={connectionId:""};return e.connectionId=o.connectionId??"",e},fromProtoMsg:o=>QueryConnectionRequest.decode(o.value),toProto:o=>QueryConnectionRequest.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionRequest",value:QueryConnectionRequest.encode(o).finish()})};function l(){return{connection:void 0,proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryConnectionResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionResponse",encode:(o,e=d.create())=>(void 0!==o.connection&&n.encode(o.connection,e.uint32(10).fork()).ldelim(),0!==o.proof.length&&e.uint32(18).bytes(o.proof),void 0!==o.proofHeight&&i.encode(o.proofHeight,e.uint32(26).fork()).ldelim(),e),decode(o,e){const t=o instanceof a?o:new a(o);let r=void 0===e?t.len:t.pos+e;const c=l();for(;t.pos<r;){const o=t.uint32();switch(o>>>3){case 1:c.connection=n.decode(t,t.uint32());break;case 2:c.proof=t.bytes();break;case 3:c.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&o)}}return c},fromJSON:o=>({connection:p(o.connection)?n.fromJSON(o.connection):void 0,proof:p(o.proof)?u(o.proof):new Uint8Array,proofHeight:p(o.proofHeight)?i.fromJSON(o.proofHeight):void 0}),toJSON(o){const e={};return void 0!==o.connection&&(e.connection=o.connection?n.toJSON(o.connection):void 0),void 0!==o.proof&&(e.proof=f(void 0!==o.proof?o.proof:new Uint8Array)),void 0!==o.proofHeight&&(e.proofHeight=o.proofHeight?i.toJSON(o.proofHeight):void 0),e},fromPartial(o){const e=l();return e.connection=void 0!==o.connection&&null!==o.connection?n.fromPartial(o.connection):void 0,e.proof=o.proof??new Uint8Array,e.proofHeight=void 0!==o.proofHeight&&null!==o.proofHeight?i.fromPartial(o.proofHeight):void 0,e},fromProtoMsg:o=>QueryConnectionResponse.decode(o.value),toProto:o=>QueryConnectionResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionResponse",value:QueryConnectionResponse.encode(o).finish()})};export const QueryConnectionsRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionsRequest",encode:(e,n=d.create())=>(void 0!==e.pagination&&o.encode(e.pagination,n.uint32(10).fork()).ldelim(),n),decode(e,n){const t=e instanceof a?e:new a(e);let i=void 0===n?t.len:t.pos+n;const r={pagination:void 0};for(;t.pos<i;){const e=t.uint32();if(e>>>3==1)r.pagination=o.decode(t,t.uint32());else t.skipType(7&e)}return r},fromJSON:e=>({pagination:p(e.pagination)?o.fromJSON(e.pagination):void 0}),toJSON(e){const n={};return void 0!==e.pagination&&(n.pagination=e.pagination?o.toJSON(e.pagination):void 0),n},fromPartial(e){const n={pagination:void 0};return n.pagination=void 0!==e.pagination&&null!==e.pagination?o.fromPartial(e.pagination):void 0,n},fromProtoMsg:o=>QueryConnectionsRequest.decode(o.value),toProto:o=>QueryConnectionsRequest.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionsRequest",value:QueryConnectionsRequest.encode(o).finish()})};function g(){return{connections:[],pagination:void 0,height:i.fromPartial({})}}export const QueryConnectionsResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionsResponse",encode(o,n=d.create()){for(const e of o.connections)t.encode(e,n.uint32(10).fork()).ldelim();return void 0!==o.pagination&&e.encode(o.pagination,n.uint32(18).fork()).ldelim(),void 0!==o.height&&i.encode(o.height,n.uint32(26).fork()).ldelim(),n},decode(o,n){const r=o instanceof a?o:new a(o);let c=void 0===n?r.len:r.pos+n;const s=g();for(;r.pos<c;){const o=r.uint32();switch(o>>>3){case 1:s.connections.push(t.decode(r,r.uint32()));break;case 2:s.pagination=e.decode(r,r.uint32());break;case 3:s.height=i.decode(r,r.uint32());break;default:r.skipType(7&o)}}return s},fromJSON:o=>({connections:Array.isArray(o?.connections)?o.connections.map((o=>t.fromJSON(o))):[],pagination:p(o.pagination)?e.fromJSON(o.pagination):void 0,height:p(o.height)?i.fromJSON(o.height):void 0}),toJSON(o){const n={};return o.connections?n.connections=o.connections.map((o=>o?t.toJSON(o):void 0)):n.connections=[],void 0!==o.pagination&&(n.pagination=o.pagination?e.toJSON(o.pagination):void 0),void 0!==o.height&&(n.height=o.height?i.toJSON(o.height):void 0),n},fromPartial(o){const n=g();return n.connections=o.connections?.map((o=>t.fromPartial(o)))||[],n.pagination=void 0!==o.pagination&&null!==o.pagination?e.fromPartial(o.pagination):void 0,n.height=void 0!==o.height&&null!==o.height?i.fromPartial(o.height):void 0,n},fromProtoMsg:o=>QueryConnectionsResponse.decode(o.value),toProto:o=>QueryConnectionsResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionsResponse",value:QueryConnectionsResponse.encode(o).finish()})};export const QueryClientConnectionsRequest={typeUrl:"/ibc.core.connection.v1.QueryClientConnectionsRequest",encode:(o,e=d.create())=>(""!==o.clientId&&e.uint32(10).string(o.clientId),e),decode(o,e){const n=o instanceof a?o:new a(o);let t=void 0===e?n.len:n.pos+e;const i={clientId:""};for(;n.pos<t;){const o=n.uint32();if(o>>>3==1)i.clientId=n.string();else n.skipType(7&o)}return i},fromJSON:o=>({clientId:p(o.clientId)?String(o.clientId):""}),toJSON(o){const e={};return void 0!==o.clientId&&(e.clientId=o.clientId),e},fromPartial(o){const e={clientId:""};return e.clientId=o.clientId??"",e},fromProtoMsg:o=>QueryClientConnectionsRequest.decode(o.value),toProto:o=>QueryClientConnectionsRequest.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryClientConnectionsRequest",value:QueryClientConnectionsRequest.encode(o).finish()})};function v(){return{connectionPaths:[],proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryClientConnectionsResponse={typeUrl:"/ibc.core.connection.v1.QueryClientConnectionsResponse",encode(o,e=d.create()){for(const n of o.connectionPaths)e.uint32(10).string(n);return 0!==o.proof.length&&e.uint32(18).bytes(o.proof),void 0!==o.proofHeight&&i.encode(o.proofHeight,e.uint32(26).fork()).ldelim(),e},decode(o,e){const n=o instanceof a?o:new a(o);let t=void 0===e?n.len:n.pos+e;const r=v();for(;n.pos<t;){const o=n.uint32();switch(o>>>3){case 1:r.connectionPaths.push(n.string());break;case 2:r.proof=n.bytes();break;case 3:r.proofHeight=i.decode(n,n.uint32());break;default:n.skipType(7&o)}}return r},fromJSON:o=>({connectionPaths:Array.isArray(o?.connectionPaths)?o.connectionPaths.map((o=>String(o))):[],proof:p(o.proof)?u(o.proof):new Uint8Array,proofHeight:p(o.proofHeight)?i.fromJSON(o.proofHeight):void 0}),toJSON(o){const e={};return o.connectionPaths?e.connectionPaths=o.connectionPaths.map((o=>o)):e.connectionPaths=[],void 0!==o.proof&&(e.proof=f(void 0!==o.proof?o.proof:new Uint8Array)),void 0!==o.proofHeight&&(e.proofHeight=o.proofHeight?i.toJSON(o.proofHeight):void 0),e},fromPartial(o){const e=v();return e.connectionPaths=o.connectionPaths?.map((o=>o))||[],e.proof=o.proof??new Uint8Array,e.proofHeight=void 0!==o.proofHeight&&null!==o.proofHeight?i.fromPartial(o.proofHeight):void 0,e},fromProtoMsg:o=>QueryClientConnectionsResponse.decode(o.value),toProto:o=>QueryClientConnectionsResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryClientConnectionsResponse",value:QueryClientConnectionsResponse.encode(o).finish()})};export const QueryConnectionClientStateRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionClientStateRequest",encode:(o,e=d.create())=>(""!==o.connectionId&&e.uint32(10).string(o.connectionId),e),decode(o,e){const n=o instanceof a?o:new a(o);let t=void 0===e?n.len:n.pos+e;const i={connectionId:""};for(;n.pos<t;){const o=n.uint32();if(o>>>3==1)i.connectionId=n.string();else n.skipType(7&o)}return i},fromJSON:o=>({connectionId:p(o.connectionId)?String(o.connectionId):""}),toJSON(o){const e={};return void 0!==o.connectionId&&(e.connectionId=o.connectionId),e},fromPartial(o){const e={connectionId:""};return e.connectionId=o.connectionId??"",e},fromProtoMsg:o=>QueryConnectionClientStateRequest.decode(o.value),toProto:o=>QueryConnectionClientStateRequest.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionClientStateRequest",value:QueryConnectionClientStateRequest.encode(o).finish()})};function h(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryConnectionClientStateResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionClientStateResponse",encode:(o,e=d.create())=>(void 0!==o.identifiedClientState&&r.encode(o.identifiedClientState,e.uint32(10).fork()).ldelim(),0!==o.proof.length&&e.uint32(18).bytes(o.proof),void 0!==o.proofHeight&&i.encode(o.proofHeight,e.uint32(26).fork()).ldelim(),e),decode(o,e){const n=o instanceof a?o:new a(o);let t=void 0===e?n.len:n.pos+e;const c=h();for(;n.pos<t;){const o=n.uint32();switch(o>>>3){case 1:c.identifiedClientState=r.decode(n,n.uint32());break;case 2:c.proof=n.bytes();break;case 3:c.proofHeight=i.decode(n,n.uint32());break;default:n.skipType(7&o)}}return c},fromJSON:o=>({identifiedClientState:p(o.identifiedClientState)?r.fromJSON(o.identifiedClientState):void 0,proof:p(o.proof)?u(o.proof):new Uint8Array,proofHeight:p(o.proofHeight)?i.fromJSON(o.proofHeight):void 0}),toJSON(o){const e={};return void 0!==o.identifiedClientState&&(e.identifiedClientState=o.identifiedClientState?r.toJSON(o.identifiedClientState):void 0),void 0!==o.proof&&(e.proof=f(void 0!==o.proof?o.proof:new Uint8Array)),void 0!==o.proofHeight&&(e.proofHeight=o.proofHeight?i.toJSON(o.proofHeight):void 0),e},fromPartial(o){const e=h();return e.identifiedClientState=void 0!==o.identifiedClientState&&null!==o.identifiedClientState?r.fromPartial(o.identifiedClientState):void 0,e.proof=o.proof??new Uint8Array,e.proofHeight=void 0!==o.proofHeight&&null!==o.proofHeight?i.fromPartial(o.proofHeight):void 0,e},fromProtoMsg:o=>QueryConnectionClientStateResponse.decode(o.value),toProto:o=>QueryConnectionClientStateResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionClientStateResponse",value:QueryConnectionClientStateResponse.encode(o).finish()})};function m(){return{connectionId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}export const QueryConnectionConsensusStateRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionConsensusStateRequest",encode:(o,e=d.create())=>(""!==o.connectionId&&e.uint32(10).string(o.connectionId),o.revisionNumber!==BigInt(0)&&e.uint32(16).uint64(o.revisionNumber),o.revisionHeight!==BigInt(0)&&e.uint32(24).uint64(o.revisionHeight),e),decode(o,e){const n=o instanceof a?o:new a(o);let t=void 0===e?n.len:n.pos+e;const i=m();for(;n.pos<t;){const o=n.uint32();switch(o>>>3){case 1:i.connectionId=n.string();break;case 2:i.revisionNumber=n.uint64();break;case 3:i.revisionHeight=n.uint64();break;default:n.skipType(7&o)}}return i},fromJSON:o=>({connectionId:p(o.connectionId)?String(o.connectionId):"",revisionNumber:p(o.revisionNumber)?BigInt(o.revisionNumber.toString()):BigInt(0),revisionHeight:p(o.revisionHeight)?BigInt(o.revisionHeight.toString()):BigInt(0)}),toJSON(o){const e={};return void 0!==o.connectionId&&(e.connectionId=o.connectionId),void 0!==o.revisionNumber&&(e.revisionNumber=(o.revisionNumber||BigInt(0)).toString()),void 0!==o.revisionHeight&&(e.revisionHeight=(o.revisionHeight||BigInt(0)).toString()),e},fromPartial(o){const e=m();return e.connectionId=o.connectionId??"",e.revisionNumber=void 0!==o.revisionNumber&&null!==o.revisionNumber?BigInt(o.revisionNumber.toString()):BigInt(0),e.revisionHeight=void 0!==o.revisionHeight&&null!==o.revisionHeight?BigInt(o.revisionHeight.toString()):BigInt(0),e},fromProtoMsg:o=>QueryConnectionConsensusStateRequest.decode(o.value),toProto:o=>QueryConnectionConsensusStateRequest.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionConsensusStateRequest",value:QueryConnectionConsensusStateRequest.encode(o).finish()})};function y(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryConnectionConsensusStateResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionConsensusStateResponse",encode:(o,e=d.create())=>(void 0!==o.consensusState&&s.encode(o.consensusState,e.uint32(10).fork()).ldelim(),""!==o.clientId&&e.uint32(18).string(o.clientId),0!==o.proof.length&&e.uint32(26).bytes(o.proof),void 0!==o.proofHeight&&i.encode(o.proofHeight,e.uint32(34).fork()).ldelim(),e),decode(o,e){const n=o instanceof a?o:new a(o);let t=void 0===e?n.len:n.pos+e;const r=y();for(;n.pos<t;){const o=n.uint32();switch(o>>>3){case 1:r.consensusState=s.decode(n,n.uint32());break;case 2:r.clientId=n.string();break;case 3:r.proof=n.bytes();break;case 4:r.proofHeight=i.decode(n,n.uint32());break;default:n.skipType(7&o)}}return r},fromJSON:o=>({consensusState:p(o.consensusState)?s.fromJSON(o.consensusState):void 0,clientId:p(o.clientId)?String(o.clientId):"",proof:p(o.proof)?u(o.proof):new Uint8Array,proofHeight:p(o.proofHeight)?i.fromJSON(o.proofHeight):void 0}),toJSON(o){const e={};return void 0!==o.consensusState&&(e.consensusState=o.consensusState?s.toJSON(o.consensusState):void 0),void 0!==o.clientId&&(e.clientId=o.clientId),void 0!==o.proof&&(e.proof=f(void 0!==o.proof?o.proof:new Uint8Array)),void 0!==o.proofHeight&&(e.proofHeight=o.proofHeight?i.toJSON(o.proofHeight):void 0),e},fromPartial(o){const e=y();return e.consensusState=void 0!==o.consensusState&&null!==o.consensusState?s.fromPartial(o.consensusState):void 0,e.clientId=o.clientId??"",e.proof=o.proof??new Uint8Array,e.proofHeight=void 0!==o.proofHeight&&null!==o.proofHeight?i.fromPartial(o.proofHeight):void 0,e},fromProtoMsg:o=>QueryConnectionConsensusStateResponse.decode(o.value),toProto:o=>QueryConnectionConsensusStateResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionConsensusStateResponse",value:QueryConnectionConsensusStateResponse.encode(o).finish()})};export const QueryConnectionParamsRequest={typeUrl:"/ibc.core.connection.v1.QueryConnectionParamsRequest",encode:(o,e=d.create())=>e,decode(o,e){const n=o instanceof a?o:new a(o);let t=void 0===e?n.len:n.pos+e;const i={};for(;n.pos<t;){const o=n.uint32();n.skipType(7&o)}return i},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>QueryConnectionParamsRequest.decode(o.value),toProto:o=>QueryConnectionParamsRequest.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionParamsRequest",value:QueryConnectionParamsRequest.encode(o).finish()})};export const QueryConnectionParamsResponse={typeUrl:"/ibc.core.connection.v1.QueryConnectionParamsResponse",encode:(o,e=d.create())=>(void 0!==o.params&&c.encode(o.params,e.uint32(10).fork()).ldelim(),e),decode(o,e){const n=o instanceof a?o:new a(o);let t=void 0===e?n.len:n.pos+e;const i={params:void 0};for(;n.pos<t;){const o=n.uint32();if(o>>>3==1)i.params=c.decode(n,n.uint32());else n.skipType(7&o)}return i},fromJSON:o=>({params:p(o.params)?c.fromJSON(o.params):void 0}),toJSON(o){const e={};return void 0!==o.params&&(e.params=o.params?c.toJSON(o.params):void 0),e},fromPartial(o){const e={params:void 0};return e.params=void 0!==o.params&&null!==o.params?c.fromPartial(o.params):void 0,e},fromProtoMsg:o=>QueryConnectionParamsResponse.decode(o.value),toProto:o=>QueryConnectionParamsResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.QueryConnectionParamsResponse",value:QueryConnectionParamsResponse.encode(o).finish()})};