@agoric/cosmic-proto 0.5.0-u19.2 → 0.5.0-u21.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 (489) 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/msgs.js.map +1 -1
  10. package/dist/codegen/agoric/swingset/query.js +1 -356
  11. package/dist/codegen/agoric/swingset/query.js.map +1 -1
  12. package/dist/codegen/agoric/swingset/swingset.js +1 -816
  13. package/dist/codegen/agoric/swingset/swingset.js.map +1 -1
  14. package/dist/codegen/agoric/vbank/genesis.js +1 -82
  15. package/dist/codegen/agoric/vbank/msgs.js +1 -2
  16. package/dist/codegen/agoric/vbank/query.js +1 -222
  17. package/dist/codegen/agoric/vbank/vbank.js +1 -237
  18. package/dist/codegen/agoric/vbank/vbank.js.map +1 -1
  19. package/dist/codegen/agoric/vibc/msgs.js +1 -127
  20. package/dist/codegen/agoric/vibc/msgs.js.map +1 -1
  21. package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
  22. package/dist/codegen/agoric/vstorage/genesis.js +1 -138
  23. package/dist/codegen/agoric/vstorage/query.d.ts +4 -2
  24. package/dist/codegen/agoric/vstorage/query.js +1 -441
  25. package/dist/codegen/agoric/vstorage/query.js.map +1 -1
  26. package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
  27. package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
  28. package/dist/codegen/agoric/vtransfer/genesis.js.map +1 -1
  29. package/dist/codegen/amino/amino.js +1 -2
  30. package/dist/codegen/amino/bundle.js +1 -6
  31. package/dist/codegen/binary.d.ts +1 -1
  32. package/dist/codegen/binary.js +1 -367
  33. package/dist/codegen/circle/bundle.d.ts +0 -506
  34. package/dist/codegen/circle/bundle.js +1 -40
  35. package/dist/codegen/circle/cctp/v1/attester.js +1 -63
  36. package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
  37. package/dist/codegen/circle/cctp/v1/burn_message.js.map +1 -1
  38. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
  39. package/dist/codegen/circle/cctp/v1/events.js +1 -1612
  40. package/dist/codegen/circle/cctp/v1/events.js.map +1 -1
  41. package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
  42. package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
  43. package/dist/codegen/circle/cctp/v1/message.js +1 -160
  44. package/dist/codegen/circle/cctp/v1/message.js.map +1 -1
  45. package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
  46. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
  47. package/dist/codegen/circle/cctp/v1/query.js +1 -2421
  48. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
  49. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js.map +1 -1
  50. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
  51. package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
  52. package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
  53. package/dist/codegen/circle/cctp/v1/token_pair.js.map +1 -1
  54. package/dist/codegen/circle/cctp/v1/tx.d.ts +0 -998
  55. package/dist/codegen/circle/cctp/v1/tx.js +1 -3264
  56. package/dist/codegen/circle/cctp/v1/tx.js.map +1 -1
  57. package/dist/codegen/cosmos/app/runtime/v1alpha1/module.d.ts +100 -0
  58. package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js +1 -0
  59. package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js.map +1 -0
  60. package/dist/codegen/cosmos/app/v1alpha1/module.d.ts +145 -0
  61. package/dist/codegen/cosmos/app/v1alpha1/module.js +1 -0
  62. package/dist/codegen/cosmos/app/v1alpha1/module.js.map +1 -0
  63. package/dist/codegen/cosmos/auth/module/v1/module.d.ts +62 -0
  64. package/dist/codegen/cosmos/auth/module/v1/module.js +1 -0
  65. package/dist/codegen/cosmos/auth/module/v1/module.js.map +1 -0
  66. package/dist/codegen/cosmos/auth/v1beta1/auth.d.ts +38 -0
  67. package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
  68. package/dist/codegen/cosmos/auth/v1beta1/auth.js.map +1 -1
  69. package/dist/codegen/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  70. package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
  71. package/dist/codegen/cosmos/auth/v1beta1/query.d.ts +77 -2
  72. package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
  73. package/dist/codegen/cosmos/auth/v1beta1/query.js.map +1 -1
  74. package/dist/codegen/cosmos/auth/v1beta1/tx.d.ts +73 -0
  75. package/dist/codegen/cosmos/auth/v1beta1/tx.js +1 -0
  76. package/dist/codegen/cosmos/auth/v1beta1/tx.js.map +1 -0
  77. package/dist/codegen/cosmos/authz/module/v1/module.d.ts +23 -0
  78. package/dist/codegen/cosmos/authz/module/v1/module.js +1 -0
  79. package/dist/codegen/cosmos/authz/module/v1/module.js.map +1 -0
  80. package/dist/codegen/cosmos/authz/v1beta1/authz.d.ts +1 -1
  81. package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
  82. package/dist/codegen/cosmos/authz/v1beta1/authz.js.map +1 -1
  83. package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
  84. package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
  85. package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
  86. package/dist/codegen/cosmos/authz/v1beta1/tx.d.ts +2 -3
  87. package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
  88. package/dist/codegen/cosmos/authz/v1beta1/tx.js.map +1 -1
  89. package/dist/codegen/cosmos/bank/module/v1/module.d.ts +33 -0
  90. package/dist/codegen/cosmos/bank/module/v1/module.js +1 -0
  91. package/dist/codegen/cosmos/bank/module/v1/module.js.map +1 -0
  92. package/dist/codegen/cosmos/bank/v1beta1/authz.d.ts +8 -0
  93. package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
  94. package/dist/codegen/cosmos/bank/v1beta1/authz.js.map +1 -1
  95. package/dist/codegen/cosmos/bank/v1beta1/bank.d.ts +9 -0
  96. package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
  97. package/dist/codegen/cosmos/bank/v1beta1/bank.js.map +1 -1
  98. package/dist/codegen/cosmos/bank/v1beta1/genesis.d.ts +10 -3
  99. package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
  100. package/dist/codegen/cosmos/bank/v1beta1/genesis.js.map +1 -1
  101. package/dist/codegen/cosmos/bank/v1beta1/query.d.ts +147 -1
  102. package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
  103. package/dist/codegen/cosmos/bank/v1beta1/query.js.map +1 -1
  104. package/dist/codegen/cosmos/bank/v1beta1/tx.d.ts +154 -1
  105. package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
  106. package/dist/codegen/cosmos/bank/v1beta1/tx.js.map +1 -1
  107. package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
  108. package/dist/codegen/cosmos/base/abci/v1beta1/abci.js.map +1 -1
  109. package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
  110. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
  111. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js.map +1 -1
  112. package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
  113. package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
  114. package/dist/codegen/cosmos/base/v1beta1/coin.js.map +1 -1
  115. package/dist/codegen/cosmos/bundle.d.ts +5016 -4007
  116. package/dist/codegen/cosmos/bundle.js +1 -249
  117. package/dist/codegen/cosmos/bundle.js.map +1 -1
  118. package/dist/codegen/cosmos/capability/module/v1/module.d.ts +29 -0
  119. package/dist/codegen/cosmos/capability/module/v1/module.js +1 -0
  120. package/dist/codegen/cosmos/capability/module/v1/module.js.map +1 -0
  121. package/dist/codegen/cosmos/consensus/module/v1/module.d.ts +26 -0
  122. package/dist/codegen/cosmos/consensus/module/v1/module.js +1 -0
  123. package/dist/codegen/cosmos/consensus/module/v1/module.js.map +1 -0
  124. package/dist/codegen/cosmos/consensus/v1/query.d.ts +52 -0
  125. package/dist/codegen/cosmos/consensus/v1/query.js +1 -0
  126. package/dist/codegen/cosmos/consensus/v1/query.js.map +1 -0
  127. package/dist/codegen/cosmos/consensus/v1/tx.d.ts +67 -0
  128. package/dist/codegen/cosmos/consensus/v1/tx.js +1 -0
  129. package/dist/codegen/cosmos/consensus/v1/tx.js.map +1 -0
  130. package/dist/codegen/cosmos/crisis/module/v1/module.d.ts +29 -0
  131. package/dist/codegen/cosmos/crisis/module/v1/module.js +1 -0
  132. package/dist/codegen/cosmos/crisis/module/v1/module.js.map +1 -0
  133. package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
  134. package/dist/codegen/cosmos/crypto/ed25519/keys.js.map +1 -1
  135. package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
  136. package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
  137. package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
  138. package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
  139. package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js.map +1 -1
  140. package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
  141. package/dist/codegen/cosmos/crypto/secp256k1/keys.js.map +1 -1
  142. package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
  143. package/dist/codegen/cosmos/crypto/secp256r1/keys.js.map +1 -1
  144. package/dist/codegen/cosmos/distribution/module/v1/module.d.ts +28 -0
  145. package/dist/codegen/cosmos/distribution/module/v1/module.js +1 -0
  146. package/dist/codegen/cosmos/distribution/module/v1/module.js.map +1 -0
  147. package/dist/codegen/cosmos/distribution/v1beta1/distribution.d.ts +24 -0
  148. package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
  149. package/dist/codegen/cosmos/distribution/v1beta1/distribution.js.map +1 -1
  150. package/dist/codegen/cosmos/distribution/v1beta1/genesis.d.ts +4 -4
  151. package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
  152. package/dist/codegen/cosmos/distribution/v1beta1/query.d.ts +55 -1
  153. package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
  154. package/dist/codegen/cosmos/distribution/v1beta1/query.js.map +1 -1
  155. package/dist/codegen/cosmos/distribution/v1beta1/tx.d.ts +166 -6
  156. package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
  157. package/dist/codegen/cosmos/distribution/v1beta1/tx.js.map +1 -1
  158. package/dist/codegen/cosmos/evidence/module/v1/module.d.ts +23 -0
  159. package/dist/codegen/cosmos/evidence/module/v1/module.js +1 -0
  160. package/dist/codegen/cosmos/evidence/module/v1/module.js.map +1 -0
  161. package/dist/codegen/cosmos/feegrant/module/v1/module.d.ts +23 -0
  162. package/dist/codegen/cosmos/feegrant/module/v1/module.js +1 -0
  163. package/dist/codegen/cosmos/feegrant/module/v1/module.js.map +1 -0
  164. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  165. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
  166. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js.map +1 -1
  167. package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
  168. package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
  169. package/dist/codegen/cosmos/feegrant/v1beta1/tx.d.ts +1 -1
  170. package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
  171. package/dist/codegen/cosmos/feegrant/v1beta1/tx.js.map +1 -1
  172. package/dist/codegen/cosmos/genutil/module/v1/module.d.ts +23 -0
  173. package/dist/codegen/cosmos/genutil/module/v1/module.js +1 -0
  174. package/dist/codegen/cosmos/genutil/module/v1/module.js.map +1 -0
  175. package/dist/codegen/cosmos/gov/module/v1/module.d.ts +32 -0
  176. package/dist/codegen/cosmos/gov/module/v1/module.js +1 -0
  177. package/dist/codegen/cosmos/gov/module/v1/module.js.map +1 -0
  178. package/dist/codegen/cosmos/gov/v1/genesis.d.ts +26 -4
  179. package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
  180. package/dist/codegen/cosmos/gov/v1/genesis.js.map +1 -1
  181. package/dist/codegen/cosmos/gov/v1/gov.d.ts +113 -4
  182. package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
  183. package/dist/codegen/cosmos/gov/v1/gov.js.map +1 -1
  184. package/dist/codegen/cosmos/gov/v1/query.d.ts +31 -6
  185. package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
  186. package/dist/codegen/cosmos/gov/v1/query.js.map +1 -1
  187. package/dist/codegen/cosmos/gov/v1/tx.d.ts +107 -4
  188. package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
  189. package/dist/codegen/cosmos/gov/v1/tx.js.map +1 -1
  190. package/dist/codegen/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  191. package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
  192. package/dist/codegen/cosmos/gov/v1beta1/gov.d.ts +37 -8
  193. package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
  194. package/dist/codegen/cosmos/gov/v1beta1/gov.js.map +1 -1
  195. package/dist/codegen/cosmos/gov/v1beta1/query.d.ts +4 -2
  196. package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
  197. package/dist/codegen/cosmos/gov/v1beta1/query.js.map +1 -1
  198. package/dist/codegen/cosmos/gov/v1beta1/tx.d.ts +20 -3
  199. package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
  200. package/dist/codegen/cosmos/gov/v1beta1/tx.js.map +1 -1
  201. package/dist/codegen/cosmos/group/module/v1/module.d.ts +36 -0
  202. package/dist/codegen/cosmos/group/module/v1/module.js +1 -0
  203. package/dist/codegen/cosmos/group/module/v1/module.js.map +1 -0
  204. package/dist/codegen/cosmos/group/v1/events.d.ts +27 -0
  205. package/dist/codegen/cosmos/group/v1/events.js +1 -696
  206. package/dist/codegen/cosmos/group/v1/events.js.map +1 -1
  207. package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
  208. package/dist/codegen/cosmos/group/v1/query.d.ts +2 -2
  209. package/dist/codegen/cosmos/group/v1/query.js +1 -2096
  210. package/dist/codegen/cosmos/group/v1/tx.d.ts +46 -32
  211. package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
  212. package/dist/codegen/cosmos/group/v1/tx.js.map +1 -1
  213. package/dist/codegen/cosmos/group/v1/types.d.ts +32 -10
  214. package/dist/codegen/cosmos/group/v1/types.js +1 -1387
  215. package/dist/codegen/cosmos/group/v1/types.js.map +1 -1
  216. package/dist/codegen/{proofs.d.ts → cosmos/ics23/v1/proofs.d.ts} +31 -17
  217. package/dist/codegen/cosmos/ics23/v1/proofs.js +1 -0
  218. package/dist/codegen/cosmos/ics23/v1/proofs.js.map +1 -0
  219. package/dist/codegen/cosmos/mint/module/v1/module.d.ts +28 -0
  220. package/dist/codegen/cosmos/mint/module/v1/module.js +1 -0
  221. package/dist/codegen/cosmos/mint/module/v1/module.js.map +1 -0
  222. package/dist/codegen/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  223. package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
  224. package/dist/codegen/cosmos/mint/v1beta1/mint.d.ts +2 -2
  225. package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
  226. package/dist/codegen/cosmos/mint/v1beta1/mint.js.map +1 -1
  227. package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
  228. package/dist/codegen/cosmos/mint/v1beta1/query.js.map +1 -1
  229. package/dist/codegen/cosmos/mint/v1beta1/tx.d.ts +73 -0
  230. package/dist/codegen/cosmos/mint/v1beta1/tx.js +1 -0
  231. package/dist/codegen/cosmos/mint/v1beta1/tx.js.map +1 -0
  232. package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
  233. package/dist/codegen/cosmos/nft/module/v1/module.d.ts +23 -0
  234. package/dist/codegen/cosmos/nft/module/v1/module.js +1 -0
  235. package/dist/codegen/cosmos/nft/module/v1/module.js.map +1 -0
  236. package/dist/codegen/cosmos/params/module/v1/module.d.ts +23 -0
  237. package/dist/codegen/cosmos/params/module/v1/module.js +1 -0
  238. package/dist/codegen/cosmos/params/module/v1/module.js.map +1 -0
  239. package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
  240. package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
  241. package/dist/codegen/cosmos/query/v1/query.d.ts +1 -0
  242. package/dist/codegen/cosmos/query/v1/query.js +1 -0
  243. package/dist/codegen/cosmos/query/v1/query.js.map +1 -0
  244. package/dist/codegen/cosmos/reflection/v1/reflection.d.ts +48 -0
  245. package/dist/codegen/cosmos/reflection/v1/reflection.js +1 -0
  246. package/dist/codegen/cosmos/reflection/v1/reflection.js.map +1 -0
  247. package/dist/codegen/cosmos/slashing/module/v1/module.d.ts +26 -0
  248. package/dist/codegen/cosmos/slashing/module/v1/module.js +1 -0
  249. package/dist/codegen/cosmos/slashing/module/v1/module.js.map +1 -0
  250. package/dist/codegen/cosmos/staking/module/v1/module.d.ts +33 -0
  251. package/dist/codegen/cosmos/staking/module/v1/module.js +1 -0
  252. package/dist/codegen/cosmos/staking/module/v1/module.js.map +1 -0
  253. package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
  254. package/dist/codegen/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  255. package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
  256. package/dist/codegen/cosmos/staking/v1beta1/genesis.js.map +1 -1
  257. package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
  258. package/dist/codegen/cosmos/staking/v1beta1/staking.d.ts +63 -2
  259. package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
  260. package/dist/codegen/cosmos/staking/v1beta1/staking.js.map +1 -1
  261. package/dist/codegen/cosmos/staking/v1beta1/tx.d.ts +71 -1
  262. package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
  263. package/dist/codegen/cosmos/staking/v1beta1/tx.js.map +1 -1
  264. package/dist/codegen/cosmos/tx/config/v1/config.d.ts +35 -0
  265. package/dist/codegen/cosmos/tx/config/v1/config.js +1 -0
  266. package/dist/codegen/cosmos/tx/config/v1/config.js.map +1 -0
  267. package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
  268. package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js.map +1 -1
  269. package/dist/codegen/cosmos/tx/v1beta1/service.d.ts +270 -2
  270. package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
  271. package/dist/codegen/cosmos/tx/v1beta1/service.js.map +1 -1
  272. package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
  273. package/dist/codegen/cosmos/tx/v1beta1/tx.js.map +1 -1
  274. package/dist/codegen/cosmos/upgrade/module/v1/module.d.ts +26 -0
  275. package/dist/codegen/cosmos/upgrade/module/v1/module.js +1 -0
  276. package/dist/codegen/cosmos/upgrade/module/v1/module.js.map +1 -0
  277. package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
  278. package/dist/codegen/cosmos/upgrade/v1beta1/query.js.map +1 -1
  279. package/dist/codegen/cosmos/upgrade/v1beta1/tx.d.ts +2 -2
  280. package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
  281. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -4
  282. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
  283. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js.map +1 -1
  284. package/dist/codegen/cosmos/vesting/module/v1/module.d.ts +23 -0
  285. package/dist/codegen/cosmos/vesting/module/v1/module.js +1 -0
  286. package/dist/codegen/cosmos/vesting/module/v1/module.js.map +1 -0
  287. package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
  288. package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
  289. package/dist/codegen/cosmos_proto/bundle.js +1 -6
  290. package/dist/codegen/cosmos_proto/cosmos.js +1 -208
  291. package/dist/codegen/decimals.d.ts +20 -0
  292. package/dist/codegen/decimals.js +1 -0
  293. package/dist/codegen/decimals.js.map +1 -0
  294. package/dist/codegen/gogoproto/bundle.js +1 -6
  295. package/dist/codegen/gogoproto/bundle.js.map +1 -1
  296. package/dist/codegen/gogoproto/gogo.js +1 -2
  297. package/dist/codegen/google/api/annotations.js +1 -2
  298. package/dist/codegen/google/api/http.js +1 -319
  299. package/dist/codegen/google/bundle.d.ts +277 -277
  300. package/dist/codegen/google/bundle.js +1 -17
  301. package/dist/codegen/google/bundle.js.map +1 -1
  302. package/dist/codegen/google/protobuf/any.d.ts +10 -4
  303. package/dist/codegen/google/protobuf/any.js +1 -77
  304. package/dist/codegen/google/protobuf/any.js.map +1 -1
  305. package/dist/codegen/google/protobuf/descriptor.js +1 -3421
  306. package/dist/codegen/google/protobuf/descriptor.js.map +1 -1
  307. package/dist/codegen/google/protobuf/duration.js +1 -79
  308. package/dist/codegen/google/protobuf/empty.js +1 -50
  309. package/dist/codegen/google/protobuf/timestamp.js +1 -79
  310. package/dist/codegen/helpers.d.ts +2 -18
  311. package/dist/codegen/helpers.js +1 -196
  312. package/dist/codegen/helpers.js.map +1 -1
  313. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
  314. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
  315. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +9 -4
  316. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
  317. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js.map +1 -1
  318. package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
  319. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.d.ts +39 -0
  320. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
  321. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js.map +1 -1
  322. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
  323. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.d.ts +57 -0
  324. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js +1 -0
  325. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js.map +1 -0
  326. package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
  327. package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
  328. package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
  329. package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js.map +1 -1
  330. package/dist/codegen/ibc/applications/transfer/v1/authz.d.ts +6 -0
  331. package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
  332. package/dist/codegen/ibc/applications/transfer/v1/authz.js.map +1 -1
  333. package/dist/codegen/ibc/applications/transfer/v1/genesis.d.ts +7 -0
  334. package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
  335. package/dist/codegen/ibc/applications/transfer/v1/genesis.js.map +1 -1
  336. package/dist/codegen/ibc/applications/transfer/v1/query.d.ts +47 -0
  337. package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
  338. package/dist/codegen/ibc/applications/transfer/v1/query.js.map +1 -1
  339. package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
  340. package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
  341. package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
  342. package/dist/codegen/ibc/bundle.d.ts +1823 -1662
  343. package/dist/codegen/ibc/bundle.js +1 -142
  344. package/dist/codegen/ibc/bundle.js.map +1 -1
  345. package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
  346. package/dist/codegen/ibc/core/channel/v1/channel.js.map +1 -1
  347. package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
  348. package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
  349. package/dist/codegen/ibc/core/channel/v1/query.js.map +1 -1
  350. package/dist/codegen/ibc/core/channel/v1/tx.d.ts +2 -0
  351. package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
  352. package/dist/codegen/ibc/core/channel/v1/tx.js.map +1 -1
  353. package/dist/codegen/ibc/core/client/v1/client.d.ts +5 -1
  354. package/dist/codegen/ibc/core/client/v1/client.js +1 -583
  355. package/dist/codegen/ibc/core/client/v1/client.js.map +1 -1
  356. package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
  357. package/dist/codegen/ibc/core/client/v1/genesis.js.map +1 -1
  358. package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
  359. package/dist/codegen/ibc/core/client/v1/query.js.map +1 -1
  360. package/dist/codegen/ibc/core/client/v1/tx.d.ts +13 -5
  361. package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
  362. package/dist/codegen/ibc/core/client/v1/tx.js.map +1 -1
  363. package/dist/codegen/ibc/core/commitment/v1/commitment.d.ts +1 -1
  364. package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
  365. package/dist/codegen/ibc/core/commitment/v1/commitment.js.map +1 -1
  366. package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
  367. package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
  368. package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
  369. package/dist/codegen/ibc/core/connection/v1/query.js.map +1 -1
  370. package/dist/codegen/ibc/core/connection/v1/tx.d.ts +16 -0
  371. package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
  372. package/dist/codegen/ibc/core/connection/v1/tx.js.map +1 -1
  373. package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
  374. package/dist/codegen/ibc/lightclients/localhost/v2/localhost.d.ts +27 -0
  375. package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js +1 -0
  376. package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js.map +1 -0
  377. package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
  378. package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js.map +1 -1
  379. package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
  380. package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js.map +1 -1
  381. package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.d.ts +270 -0
  382. package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js +1 -0
  383. package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js.map +1 -0
  384. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +4 -1
  385. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
  386. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js.map +1 -1
  387. package/dist/codegen/icq/bundle.d.ts +85 -85
  388. package/dist/codegen/icq/bundle.js +1 -17
  389. package/dist/codegen/icq/v1/genesis.js +1 -78
  390. package/dist/codegen/icq/v1/icq.js +1 -83
  391. package/dist/codegen/icq/v1/packet.js +1 -270
  392. package/dist/codegen/icq/v1/packet.js.map +1 -1
  393. package/dist/codegen/icq/v1/query.js +1 -114
  394. package/dist/codegen/icq/v1/tx.js +1 -124
  395. package/dist/codegen/index.d.ts +3 -2
  396. package/dist/codegen/index.js +1 -23
  397. package/dist/codegen/index.js.map +1 -1
  398. package/dist/codegen/json-safe.d.ts +1 -1
  399. package/dist/codegen/json-safe.js +1 -8
  400. package/dist/codegen/noble/bundle.d.ts +326 -0
  401. package/dist/codegen/noble/bundle.js +1 -0
  402. package/dist/codegen/noble/bundle.js.map +1 -0
  403. package/dist/codegen/noble/dollar/vaults/v1/tx.d.ts +145 -0
  404. package/dist/codegen/noble/dollar/vaults/v1/tx.js +1 -0
  405. package/dist/codegen/noble/dollar/vaults/v1/tx.js.map +1 -0
  406. package/dist/codegen/noble/dollar/vaults/v1/vaults.d.ts +161 -0
  407. package/dist/codegen/noble/dollar/vaults/v1/vaults.js +1 -0
  408. package/dist/codegen/noble/dollar/vaults/v1/vaults.js.map +1 -0
  409. package/dist/codegen/noble/swap/v1/algorithm.d.ts +11 -0
  410. package/dist/codegen/noble/swap/v1/algorithm.js +1 -0
  411. package/dist/codegen/noble/swap/v1/algorithm.js.map +1 -0
  412. package/dist/codegen/noble/swap/v1/swap.d.ts +59 -0
  413. package/dist/codegen/noble/swap/v1/swap.js +1 -0
  414. package/dist/codegen/noble/swap/v1/swap.js.map +1 -0
  415. package/dist/codegen/noble/swap/v1/tx.d.ts +337 -0
  416. package/dist/codegen/noble/swap/v1/tx.js +1 -0
  417. package/dist/codegen/noble/swap/v1/tx.js.map +1 -0
  418. package/dist/codegen/stride/bundle.d.ts +1912 -1912
  419. package/dist/codegen/stride/bundle.js +1 -71
  420. package/dist/codegen/stride/epochs/genesis.js +1 -227
  421. package/dist/codegen/stride/epochs/query.js +1 -398
  422. package/dist/codegen/stride/records/callbacks.js +1 -136
  423. package/dist/codegen/stride/records/genesis.js +1 -186
  424. package/dist/codegen/stride/records/params.js +1 -50
  425. package/dist/codegen/stride/records/query.js +1 -1552
  426. package/dist/codegen/stride/records/records.js +1 -939
  427. package/dist/codegen/stride/stakedym/genesis.js +1 -312
  428. package/dist/codegen/stride/stakedym/query.js +1 -887
  429. package/dist/codegen/stride/stakedym/stakedym.js +1 -909
  430. package/dist/codegen/stride/stakedym/stakedym.js.map +1 -1
  431. package/dist/codegen/stride/stakedym/tx.js +1 -1661
  432. package/dist/codegen/stride/stakedym/tx.js.map +1 -1
  433. package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
  434. package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
  435. package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
  436. package/dist/codegen/stride/stakeibc/genesis.js +1 -135
  437. package/dist/codegen/stride/stakeibc/gov.js +1 -212
  438. package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
  439. package/dist/codegen/stride/stakeibc/host_zone.js.map +1 -1
  440. package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
  441. package/dist/codegen/stride/stakeibc/packet.js +1 -113
  442. package/dist/codegen/stride/stakeibc/params.js +1 -317
  443. package/dist/codegen/stride/stakeibc/query.js +1 -1372
  444. package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
  445. package/dist/codegen/stride/stakeibc/trade_route.js.map +1 -1
  446. package/dist/codegen/stride/stakeibc/tx.js +1 -3392
  447. package/dist/codegen/stride/stakeibc/tx.js.map +1 -1
  448. package/dist/codegen/stride/stakeibc/validator.js +1 -170
  449. package/dist/codegen/stride/stakeibc/validator.js.map +1 -1
  450. package/dist/codegen/stride/staketia/genesis.js +1 -312
  451. package/dist/codegen/stride/staketia/query.js +1 -887
  452. package/dist/codegen/stride/staketia/staketia.js +1 -819
  453. package/dist/codegen/stride/staketia/tx.js +1 -1671
  454. package/dist/codegen/stride/staketia/tx.js.map +1 -1
  455. package/dist/codegen/tendermint/abci/types.d.ts +264 -692
  456. package/dist/codegen/tendermint/abci/types.js +1 -4434
  457. package/dist/codegen/tendermint/abci/types.js.map +1 -1
  458. package/dist/codegen/tendermint/bundle.d.ts +517 -800
  459. package/dist/codegen/tendermint/bundle.js +1 -42
  460. package/dist/codegen/tendermint/crypto/keys.js +1 -85
  461. package/dist/codegen/tendermint/crypto/keys.js.map +1 -1
  462. package/dist/codegen/tendermint/crypto/proof.js +1 -409
  463. package/dist/codegen/tendermint/crypto/proof.js.map +1 -1
  464. package/dist/codegen/tendermint/libs/bits/types.js +1 -94
  465. package/dist/codegen/tendermint/p2p/types.d.ts +55 -83
  466. package/dist/codegen/tendermint/p2p/types.js +1 -506
  467. package/dist/codegen/tendermint/p2p/types.js.map +1 -1
  468. package/dist/codegen/tendermint/types/block.js +1 -119
  469. package/dist/codegen/tendermint/types/evidence.js +1 -415
  470. package/dist/codegen/tendermint/types/params.js +1 -529
  471. package/dist/codegen/tendermint/types/types.js +1 -1534
  472. package/dist/codegen/tendermint/types/types.js.map +1 -1
  473. package/dist/codegen/tendermint/types/validator.js +1 -299
  474. package/dist/codegen/tendermint/types/validator.js.map +1 -1
  475. package/dist/codegen/tendermint/version/types.js +1 -155
  476. package/dist/codegen/utf8.d.ts +1 -1
  477. package/dist/codegen/utf8.js +1 -138
  478. package/dist/codegen/varint.d.ts +1 -1
  479. package/dist/codegen/varint.js +1 -409
  480. package/dist/helpers.d.ts +5 -0
  481. package/dist/helpers.js +1 -22
  482. package/dist/helpers.js.map +1 -1
  483. package/dist/index.js +1 -6
  484. package/package.json +25 -20
  485. package/dist/codegen/ics23/bundle.d.ts +0 -154
  486. package/dist/codegen/ics23/bundle.js +0 -6
  487. package/dist/codegen/ics23/bundle.js.map +0 -1
  488. package/dist/codegen/proofs.js +0 -1436
  489. package/dist/codegen/proofs.js.map +0 -1
@@ -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}from"../../../../helpers.js";import{}from"../../../../json-safe.js";import{decodeBase64 as u}from"@endo/base64";import{encodeBase64 as f}from"@endo/base64";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()})};