@agoric/cosmic-proto 0.4.1-dev-ad4cd18.0.ad4cd18 → 0.4.1-dev-dcc80f2.0.dcc80f2

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 (515) hide show
  1. package/dist/address-hooks.js +2 -1
  2. package/dist/address-hooks.js.map +6 -1
  3. package/dist/codec-helpers.js +2 -1
  4. package/dist/codec-helpers.js.map +6 -1
  5. package/dist/codegen/agoric/bundle.js +2 -1
  6. package/dist/codegen/agoric/bundle.js.map +6 -1
  7. package/dist/codegen/agoric/swingset/genesis.js +2 -1
  8. package/dist/codegen/agoric/swingset/genesis.js.map +6 -1
  9. package/dist/codegen/agoric/swingset/msgs.js +2 -1
  10. package/dist/codegen/agoric/swingset/msgs.js.map +6 -1
  11. package/dist/codegen/agoric/swingset/query.js +2 -1
  12. package/dist/codegen/agoric/swingset/query.js.map +6 -1
  13. package/dist/codegen/agoric/swingset/swingset.js +2 -1
  14. package/dist/codegen/agoric/swingset/swingset.js.map +6 -1
  15. package/dist/codegen/agoric/vbank/genesis.js +2 -1
  16. package/dist/codegen/agoric/vbank/genesis.js.map +6 -1
  17. package/dist/codegen/agoric/vbank/msgs.js +2 -1
  18. package/dist/codegen/agoric/vbank/msgs.js.map +6 -1
  19. package/dist/codegen/agoric/vbank/query.js +2 -1
  20. package/dist/codegen/agoric/vbank/query.js.map +6 -1
  21. package/dist/codegen/agoric/vbank/vbank.js +2 -1
  22. package/dist/codegen/agoric/vbank/vbank.js.map +6 -1
  23. package/dist/codegen/agoric/vibc/msgs.js +2 -1
  24. package/dist/codegen/agoric/vibc/msgs.js.map +6 -1
  25. package/dist/codegen/agoric/vlocalchain/vlocalchain.js +2 -1
  26. package/dist/codegen/agoric/vlocalchain/vlocalchain.js.map +6 -1
  27. package/dist/codegen/agoric/vstorage/genesis.js +2 -1
  28. package/dist/codegen/agoric/vstorage/genesis.js.map +6 -1
  29. package/dist/codegen/agoric/vstorage/query.js +2 -1
  30. package/dist/codegen/agoric/vstorage/query.js.map +6 -1
  31. package/dist/codegen/agoric/vstorage/vstorage.js +2 -1
  32. package/dist/codegen/agoric/vstorage/vstorage.js.map +6 -1
  33. package/dist/codegen/agoric/vtransfer/genesis.js +2 -1
  34. package/dist/codegen/agoric/vtransfer/genesis.js.map +6 -1
  35. package/dist/codegen/amino/amino.js +2 -1
  36. package/dist/codegen/amino/amino.js.map +6 -1
  37. package/dist/codegen/amino/bundle.js +2 -1
  38. package/dist/codegen/amino/bundle.js.map +6 -1
  39. package/dist/codegen/binary.js +2 -1
  40. package/dist/codegen/binary.js.map +6 -1
  41. package/dist/codegen/circle/bundle.js +2 -1
  42. package/dist/codegen/circle/bundle.js.map +6 -1
  43. package/dist/codegen/circle/cctp/v1/attester.js +2 -1
  44. package/dist/codegen/circle/cctp/v1/attester.js.map +6 -1
  45. package/dist/codegen/circle/cctp/v1/burn_message.js +2 -1
  46. package/dist/codegen/circle/cctp/v1/burn_message.js.map +6 -1
  47. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +2 -1
  48. package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js.map +6 -1
  49. package/dist/codegen/circle/cctp/v1/events.js +2 -1
  50. package/dist/codegen/circle/cctp/v1/events.js.map +6 -1
  51. package/dist/codegen/circle/cctp/v1/genesis.js +2 -1
  52. package/dist/codegen/circle/cctp/v1/genesis.js.map +6 -1
  53. package/dist/codegen/circle/cctp/v1/max_message_body_size.js +2 -1
  54. package/dist/codegen/circle/cctp/v1/max_message_body_size.js.map +6 -1
  55. package/dist/codegen/circle/cctp/v1/message.js +2 -1
  56. package/dist/codegen/circle/cctp/v1/message.js.map +6 -1
  57. package/dist/codegen/circle/cctp/v1/nonce.js +2 -1
  58. package/dist/codegen/circle/cctp/v1/nonce.js.map +6 -1
  59. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +2 -1
  60. package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js.map +6 -1
  61. package/dist/codegen/circle/cctp/v1/query.js +2 -1
  62. package/dist/codegen/circle/cctp/v1/query.js.map +6 -1
  63. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +2 -1
  64. package/dist/codegen/circle/cctp/v1/remote_token_messenger.js.map +6 -1
  65. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +2 -1
  66. package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js.map +6 -1
  67. package/dist/codegen/circle/cctp/v1/signature_threshold.js +2 -1
  68. package/dist/codegen/circle/cctp/v1/signature_threshold.js.map +6 -1
  69. package/dist/codegen/circle/cctp/v1/token_pair.js +2 -1
  70. package/dist/codegen/circle/cctp/v1/token_pair.js.map +6 -1
  71. package/dist/codegen/circle/cctp/v1/tx.js +2 -1
  72. package/dist/codegen/circle/cctp/v1/tx.js.map +6 -1
  73. package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js +2 -1
  74. package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js.map +6 -1
  75. package/dist/codegen/cosmos/app/v1alpha1/module.js +2 -1
  76. package/dist/codegen/cosmos/app/v1alpha1/module.js.map +6 -1
  77. package/dist/codegen/cosmos/auth/module/v1/module.js +2 -1
  78. package/dist/codegen/cosmos/auth/module/v1/module.js.map +6 -1
  79. package/dist/codegen/cosmos/auth/v1beta1/auth.js +2 -1
  80. package/dist/codegen/cosmos/auth/v1beta1/auth.js.map +6 -1
  81. package/dist/codegen/cosmos/auth/v1beta1/genesis.js +2 -1
  82. package/dist/codegen/cosmos/auth/v1beta1/genesis.js.map +6 -1
  83. package/dist/codegen/cosmos/auth/v1beta1/query.js +2 -1
  84. package/dist/codegen/cosmos/auth/v1beta1/query.js.map +6 -1
  85. package/dist/codegen/cosmos/auth/v1beta1/tx.js +2 -1
  86. package/dist/codegen/cosmos/auth/v1beta1/tx.js.map +6 -1
  87. package/dist/codegen/cosmos/authz/module/v1/module.js +2 -1
  88. package/dist/codegen/cosmos/authz/module/v1/module.js.map +6 -1
  89. package/dist/codegen/cosmos/authz/v1beta1/authz.js +2 -1
  90. package/dist/codegen/cosmos/authz/v1beta1/authz.js.map +6 -1
  91. package/dist/codegen/cosmos/authz/v1beta1/event.js +2 -1
  92. package/dist/codegen/cosmos/authz/v1beta1/event.js.map +6 -1
  93. package/dist/codegen/cosmos/authz/v1beta1/genesis.js +2 -1
  94. package/dist/codegen/cosmos/authz/v1beta1/genesis.js.map +6 -1
  95. package/dist/codegen/cosmos/authz/v1beta1/query.js +2 -1
  96. package/dist/codegen/cosmos/authz/v1beta1/query.js.map +6 -1
  97. package/dist/codegen/cosmos/authz/v1beta1/tx.js +2 -1
  98. package/dist/codegen/cosmos/authz/v1beta1/tx.js.map +6 -1
  99. package/dist/codegen/cosmos/bank/module/v1/module.js +2 -1
  100. package/dist/codegen/cosmos/bank/module/v1/module.js.map +6 -1
  101. package/dist/codegen/cosmos/bank/v1beta1/authz.js +2 -1
  102. package/dist/codegen/cosmos/bank/v1beta1/authz.js.map +6 -1
  103. package/dist/codegen/cosmos/bank/v1beta1/bank.js +2 -1
  104. package/dist/codegen/cosmos/bank/v1beta1/bank.js.map +6 -1
  105. package/dist/codegen/cosmos/bank/v1beta1/genesis.js +2 -1
  106. package/dist/codegen/cosmos/bank/v1beta1/genesis.js.map +6 -1
  107. package/dist/codegen/cosmos/bank/v1beta1/query.js +2 -1
  108. package/dist/codegen/cosmos/bank/v1beta1/query.js.map +6 -1
  109. package/dist/codegen/cosmos/bank/v1beta1/tx.js +2 -1
  110. package/dist/codegen/cosmos/bank/v1beta1/tx.js.map +6 -1
  111. package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +2 -1
  112. package/dist/codegen/cosmos/base/abci/v1beta1/abci.js.map +6 -1
  113. package/dist/codegen/cosmos/base/node/v1beta1/query.js +2 -1
  114. package/dist/codegen/cosmos/base/node/v1beta1/query.js.map +6 -1
  115. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +2 -1
  116. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js.map +6 -1
  117. package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +2 -1
  118. package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js.map +6 -1
  119. package/dist/codegen/cosmos/base/v1beta1/coin.js +2 -1
  120. package/dist/codegen/cosmos/base/v1beta1/coin.js.map +6 -1
  121. package/dist/codegen/cosmos/bundle.js +2 -1
  122. package/dist/codegen/cosmos/bundle.js.map +6 -1
  123. package/dist/codegen/cosmos/circuit/module/v1/module.js +2 -1
  124. package/dist/codegen/cosmos/circuit/module/v1/module.js.map +6 -1
  125. package/dist/codegen/cosmos/circuit/v1/query.js +2 -1
  126. package/dist/codegen/cosmos/circuit/v1/query.js.map +6 -1
  127. package/dist/codegen/cosmos/circuit/v1/tx.js +2 -1
  128. package/dist/codegen/cosmos/circuit/v1/tx.js.map +6 -1
  129. package/dist/codegen/cosmos/circuit/v1/types.js +2 -1
  130. package/dist/codegen/cosmos/circuit/v1/types.js.map +6 -1
  131. package/dist/codegen/cosmos/consensus/module/v1/module.js +2 -1
  132. package/dist/codegen/cosmos/consensus/module/v1/module.js.map +6 -1
  133. package/dist/codegen/cosmos/consensus/v1/query.js +2 -1
  134. package/dist/codegen/cosmos/consensus/v1/query.js.map +6 -1
  135. package/dist/codegen/cosmos/consensus/v1/tx.js +2 -1
  136. package/dist/codegen/cosmos/consensus/v1/tx.js.map +6 -1
  137. package/dist/codegen/cosmos/crisis/module/v1/module.js +2 -1
  138. package/dist/codegen/cosmos/crisis/module/v1/module.js.map +6 -1
  139. package/dist/codegen/cosmos/crypto/ed25519/keys.js +2 -1
  140. package/dist/codegen/cosmos/crypto/ed25519/keys.js.map +6 -1
  141. package/dist/codegen/cosmos/crypto/hd/v1/hd.js +2 -1
  142. package/dist/codegen/cosmos/crypto/hd/v1/hd.js.map +6 -1
  143. package/dist/codegen/cosmos/crypto/keyring/v1/record.js +2 -1
  144. package/dist/codegen/cosmos/crypto/keyring/v1/record.js.map +6 -1
  145. package/dist/codegen/cosmos/crypto/multisig/keys.js +2 -1
  146. package/dist/codegen/cosmos/crypto/multisig/keys.js.map +6 -1
  147. package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +2 -1
  148. package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js.map +6 -1
  149. package/dist/codegen/cosmos/crypto/secp256k1/keys.js +2 -1
  150. package/dist/codegen/cosmos/crypto/secp256k1/keys.js.map +6 -1
  151. package/dist/codegen/cosmos/crypto/secp256r1/keys.js +2 -1
  152. package/dist/codegen/cosmos/crypto/secp256r1/keys.js.map +6 -1
  153. package/dist/codegen/cosmos/distribution/module/v1/module.js +2 -1
  154. package/dist/codegen/cosmos/distribution/module/v1/module.js.map +6 -1
  155. package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +2 -1
  156. package/dist/codegen/cosmos/distribution/v1beta1/distribution.js.map +6 -1
  157. package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +2 -1
  158. package/dist/codegen/cosmos/distribution/v1beta1/genesis.js.map +6 -1
  159. package/dist/codegen/cosmos/distribution/v1beta1/query.js +2 -1
  160. package/dist/codegen/cosmos/distribution/v1beta1/query.js.map +6 -1
  161. package/dist/codegen/cosmos/distribution/v1beta1/tx.js +2 -1
  162. package/dist/codegen/cosmos/distribution/v1beta1/tx.js.map +6 -1
  163. package/dist/codegen/cosmos/evidence/module/v1/module.js +2 -1
  164. package/dist/codegen/cosmos/evidence/module/v1/module.js.map +6 -1
  165. package/dist/codegen/cosmos/feegrant/module/v1/module.js +2 -1
  166. package/dist/codegen/cosmos/feegrant/module/v1/module.js.map +6 -1
  167. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +2 -1
  168. package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js.map +6 -1
  169. package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +2 -1
  170. package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js.map +6 -1
  171. package/dist/codegen/cosmos/feegrant/v1beta1/query.js +2 -1
  172. package/dist/codegen/cosmos/feegrant/v1beta1/query.js.map +6 -1
  173. package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +2 -1
  174. package/dist/codegen/cosmos/feegrant/v1beta1/tx.js.map +6 -1
  175. package/dist/codegen/cosmos/genutil/module/v1/module.js +2 -1
  176. package/dist/codegen/cosmos/genutil/module/v1/module.js.map +6 -1
  177. package/dist/codegen/cosmos/gov/module/v1/module.js +2 -1
  178. package/dist/codegen/cosmos/gov/module/v1/module.js.map +6 -1
  179. package/dist/codegen/cosmos/gov/v1/genesis.js +2 -1
  180. package/dist/codegen/cosmos/gov/v1/genesis.js.map +6 -1
  181. package/dist/codegen/cosmos/gov/v1/gov.js +2 -1
  182. package/dist/codegen/cosmos/gov/v1/gov.js.map +6 -1
  183. package/dist/codegen/cosmos/gov/v1/query.js +2 -1
  184. package/dist/codegen/cosmos/gov/v1/query.js.map +6 -1
  185. package/dist/codegen/cosmos/gov/v1/tx.js +2 -1
  186. package/dist/codegen/cosmos/gov/v1/tx.js.map +6 -1
  187. package/dist/codegen/cosmos/gov/v1beta1/genesis.js +2 -1
  188. package/dist/codegen/cosmos/gov/v1beta1/genesis.js.map +6 -1
  189. package/dist/codegen/cosmos/gov/v1beta1/gov.js +2 -1
  190. package/dist/codegen/cosmos/gov/v1beta1/gov.js.map +6 -1
  191. package/dist/codegen/cosmos/gov/v1beta1/query.js +2 -1
  192. package/dist/codegen/cosmos/gov/v1beta1/query.js.map +6 -1
  193. package/dist/codegen/cosmos/gov/v1beta1/tx.js +2 -1
  194. package/dist/codegen/cosmos/gov/v1beta1/tx.js.map +6 -1
  195. package/dist/codegen/cosmos/group/module/v1/module.js +2 -1
  196. package/dist/codegen/cosmos/group/module/v1/module.js.map +6 -1
  197. package/dist/codegen/cosmos/group/v1/events.js +2 -1
  198. package/dist/codegen/cosmos/group/v1/events.js.map +6 -1
  199. package/dist/codegen/cosmos/group/v1/genesis.js +2 -1
  200. package/dist/codegen/cosmos/group/v1/genesis.js.map +6 -1
  201. package/dist/codegen/cosmos/group/v1/query.js +2 -1
  202. package/dist/codegen/cosmos/group/v1/query.js.map +6 -1
  203. package/dist/codegen/cosmos/group/v1/tx.js +2 -1
  204. package/dist/codegen/cosmos/group/v1/tx.js.map +6 -1
  205. package/dist/codegen/cosmos/group/v1/types.js +2 -1
  206. package/dist/codegen/cosmos/group/v1/types.js.map +6 -1
  207. package/dist/codegen/cosmos/ics23/v1/proofs.js +2 -1
  208. package/dist/codegen/cosmos/ics23/v1/proofs.js.map +6 -1
  209. package/dist/codegen/cosmos/mint/module/v1/module.js +2 -1
  210. package/dist/codegen/cosmos/mint/module/v1/module.js.map +6 -1
  211. package/dist/codegen/cosmos/mint/v1beta1/genesis.js +2 -1
  212. package/dist/codegen/cosmos/mint/v1beta1/genesis.js.map +6 -1
  213. package/dist/codegen/cosmos/mint/v1beta1/mint.js +2 -1
  214. package/dist/codegen/cosmos/mint/v1beta1/mint.js.map +6 -1
  215. package/dist/codegen/cosmos/mint/v1beta1/query.js +2 -1
  216. package/dist/codegen/cosmos/mint/v1beta1/query.js.map +6 -1
  217. package/dist/codegen/cosmos/mint/v1beta1/tx.js +2 -1
  218. package/dist/codegen/cosmos/mint/v1beta1/tx.js.map +6 -1
  219. package/dist/codegen/cosmos/msg/textual/v1/textual.js +2 -1
  220. package/dist/codegen/cosmos/msg/textual/v1/textual.js.map +6 -1
  221. package/dist/codegen/cosmos/msg/v1/msg.js +2 -1
  222. package/dist/codegen/cosmos/msg/v1/msg.js.map +6 -1
  223. package/dist/codegen/cosmos/nft/module/v1/module.js +2 -1
  224. package/dist/codegen/cosmos/nft/module/v1/module.js.map +6 -1
  225. package/dist/codegen/cosmos/params/module/v1/module.js +2 -1
  226. package/dist/codegen/cosmos/params/module/v1/module.js.map +6 -1
  227. package/dist/codegen/cosmos/params/v1beta1/params.js +2 -1
  228. package/dist/codegen/cosmos/params/v1beta1/params.js.map +6 -1
  229. package/dist/codegen/cosmos/params/v1beta1/query.js +2 -1
  230. package/dist/codegen/cosmos/params/v1beta1/query.js.map +6 -1
  231. package/dist/codegen/cosmos/query/v1/query.js +2 -1
  232. package/dist/codegen/cosmos/query/v1/query.js.map +6 -1
  233. package/dist/codegen/cosmos/reflection/v1/reflection.js +2 -1
  234. package/dist/codegen/cosmos/reflection/v1/reflection.js.map +6 -1
  235. package/dist/codegen/cosmos/slashing/module/v1/module.js +2 -1
  236. package/dist/codegen/cosmos/slashing/module/v1/module.js.map +6 -1
  237. package/dist/codegen/cosmos/staking/module/v1/module.js +2 -1
  238. package/dist/codegen/cosmos/staking/module/v1/module.js.map +6 -1
  239. package/dist/codegen/cosmos/staking/v1beta1/authz.js +2 -1
  240. package/dist/codegen/cosmos/staking/v1beta1/authz.js.map +6 -1
  241. package/dist/codegen/cosmos/staking/v1beta1/genesis.js +2 -1
  242. package/dist/codegen/cosmos/staking/v1beta1/genesis.js.map +6 -1
  243. package/dist/codegen/cosmos/staking/v1beta1/query.js +2 -1
  244. package/dist/codegen/cosmos/staking/v1beta1/query.js.map +6 -1
  245. package/dist/codegen/cosmos/staking/v1beta1/staking.js +2 -1
  246. package/dist/codegen/cosmos/staking/v1beta1/staking.js.map +6 -1
  247. package/dist/codegen/cosmos/staking/v1beta1/tx.js +2 -1
  248. package/dist/codegen/cosmos/staking/v1beta1/tx.js.map +6 -1
  249. package/dist/codegen/cosmos/store/internal/kv/v1beta1/kv.js +2 -1
  250. package/dist/codegen/cosmos/store/internal/kv/v1beta1/kv.js.map +6 -1
  251. package/dist/codegen/cosmos/store/snapshots/v1/snapshot.js +2 -1
  252. package/dist/codegen/cosmos/store/snapshots/v1/snapshot.js.map +6 -1
  253. package/dist/codegen/cosmos/store/streaming/abci/grpc.js +2 -1
  254. package/dist/codegen/cosmos/store/streaming/abci/grpc.js.map +6 -1
  255. package/dist/codegen/cosmos/store/v1beta1/commit_info.js +2 -1
  256. package/dist/codegen/cosmos/store/v1beta1/commit_info.js.map +6 -1
  257. package/dist/codegen/cosmos/store/v1beta1/listening.js +2 -1
  258. package/dist/codegen/cosmos/store/v1beta1/listening.js.map +6 -1
  259. package/dist/codegen/cosmos/tx/config/v1/config.js +2 -1
  260. package/dist/codegen/cosmos/tx/config/v1/config.js.map +6 -1
  261. package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +2 -1
  262. package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js.map +6 -1
  263. package/dist/codegen/cosmos/tx/v1beta1/service.js +2 -1
  264. package/dist/codegen/cosmos/tx/v1beta1/service.js.map +6 -1
  265. package/dist/codegen/cosmos/tx/v1beta1/tx.js +2 -1
  266. package/dist/codegen/cosmos/tx/v1beta1/tx.js.map +6 -1
  267. package/dist/codegen/cosmos/upgrade/module/v1/module.js +2 -1
  268. package/dist/codegen/cosmos/upgrade/module/v1/module.js.map +6 -1
  269. package/dist/codegen/cosmos/upgrade/v1beta1/query.js +2 -1
  270. package/dist/codegen/cosmos/upgrade/v1beta1/query.js.map +6 -1
  271. package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +2 -1
  272. package/dist/codegen/cosmos/upgrade/v1beta1/tx.js.map +6 -1
  273. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +2 -1
  274. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js.map +6 -1
  275. package/dist/codegen/cosmos/vesting/module/v1/module.js +2 -1
  276. package/dist/codegen/cosmos/vesting/module/v1/module.js.map +6 -1
  277. package/dist/codegen/cosmos/vesting/v1beta1/tx.js +2 -1
  278. package/dist/codegen/cosmos/vesting/v1beta1/tx.js.map +6 -1
  279. package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +2 -1
  280. package/dist/codegen/cosmos/vesting/v1beta1/vesting.js.map +6 -1
  281. package/dist/codegen/cosmos_proto/bundle.js +2 -1
  282. package/dist/codegen/cosmos_proto/bundle.js.map +6 -1
  283. package/dist/codegen/cosmos_proto/cosmos.js +2 -1
  284. package/dist/codegen/cosmos_proto/cosmos.js.map +6 -1
  285. package/dist/codegen/decimals.js +2 -1
  286. package/dist/codegen/decimals.js.map +6 -1
  287. package/dist/codegen/gogoproto/bundle.js +2 -1
  288. package/dist/codegen/gogoproto/bundle.js.map +6 -1
  289. package/dist/codegen/gogoproto/gogo.js +2 -1
  290. package/dist/codegen/gogoproto/gogo.js.map +6 -1
  291. package/dist/codegen/google/api/annotations.js +2 -1
  292. package/dist/codegen/google/api/annotations.js.map +6 -1
  293. package/dist/codegen/google/api/http.js +2 -1
  294. package/dist/codegen/google/api/http.js.map +6 -1
  295. package/dist/codegen/google/bundle.js +2 -1
  296. package/dist/codegen/google/bundle.js.map +6 -1
  297. package/dist/codegen/google/protobuf/any.js +2 -1
  298. package/dist/codegen/google/protobuf/any.js.map +6 -1
  299. package/dist/codegen/google/protobuf/descriptor.js +2 -1
  300. package/dist/codegen/google/protobuf/descriptor.js.map +6 -1
  301. package/dist/codegen/google/protobuf/duration.js +2 -1
  302. package/dist/codegen/google/protobuf/duration.js.map +6 -1
  303. package/dist/codegen/google/protobuf/empty.js +2 -1
  304. package/dist/codegen/google/protobuf/empty.js.map +6 -1
  305. package/dist/codegen/google/protobuf/timestamp.js +2 -1
  306. package/dist/codegen/google/protobuf/timestamp.js.map +6 -1
  307. package/dist/codegen/helpers.js +2 -1
  308. package/dist/codegen/helpers.js.map +6 -1
  309. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +2 -1
  310. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js.map +6 -1
  311. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +2 -1
  312. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js.map +6 -1
  313. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -1
  314. package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js.map +6 -1
  315. package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +2 -1
  316. package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js.map +6 -1
  317. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +2 -1
  318. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js.map +6 -1
  319. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +2 -1
  320. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js.map +6 -1
  321. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js +2 -1
  322. package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js.map +6 -1
  323. package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +2 -1
  324. package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js.map +6 -1
  325. package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +2 -1
  326. package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js.map +6 -1
  327. package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +2 -1
  328. package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js.map +6 -1
  329. package/dist/codegen/ibc/applications/transfer/v1/authz.js +2 -1
  330. package/dist/codegen/ibc/applications/transfer/v1/authz.js.map +6 -1
  331. package/dist/codegen/ibc/applications/transfer/v1/genesis.js +2 -1
  332. package/dist/codegen/ibc/applications/transfer/v1/genesis.js.map +6 -1
  333. package/dist/codegen/ibc/applications/transfer/v1/query.js +2 -1
  334. package/dist/codegen/ibc/applications/transfer/v1/query.js.map +6 -1
  335. package/dist/codegen/ibc/applications/transfer/v1/transfer.js +2 -1
  336. package/dist/codegen/ibc/applications/transfer/v1/transfer.js.map +6 -1
  337. package/dist/codegen/ibc/applications/transfer/v1/tx.js +2 -1
  338. package/dist/codegen/ibc/applications/transfer/v1/tx.js.map +6 -1
  339. package/dist/codegen/ibc/applications/transfer/v2/packet.js +2 -1
  340. package/dist/codegen/ibc/applications/transfer/v2/packet.js.map +6 -1
  341. package/dist/codegen/ibc/bundle.js +2 -1
  342. package/dist/codegen/ibc/bundle.js.map +6 -1
  343. package/dist/codegen/ibc/core/channel/v1/channel.js +2 -1
  344. package/dist/codegen/ibc/core/channel/v1/channel.js.map +6 -1
  345. package/dist/codegen/ibc/core/channel/v1/genesis.js +2 -1
  346. package/dist/codegen/ibc/core/channel/v1/genesis.js.map +6 -1
  347. package/dist/codegen/ibc/core/channel/v1/query.js +2 -1
  348. package/dist/codegen/ibc/core/channel/v1/query.js.map +6 -1
  349. package/dist/codegen/ibc/core/channel/v1/tx.js +2 -1
  350. package/dist/codegen/ibc/core/channel/v1/tx.js.map +6 -1
  351. package/dist/codegen/ibc/core/channel/v1/upgrade.js +2 -1
  352. package/dist/codegen/ibc/core/channel/v1/upgrade.js.map +6 -1
  353. package/dist/codegen/ibc/core/client/v1/client.js +2 -1
  354. package/dist/codegen/ibc/core/client/v1/client.js.map +6 -1
  355. package/dist/codegen/ibc/core/client/v1/genesis.js +2 -1
  356. package/dist/codegen/ibc/core/client/v1/genesis.js.map +6 -1
  357. package/dist/codegen/ibc/core/client/v1/query.js +2 -1
  358. package/dist/codegen/ibc/core/client/v1/query.js.map +6 -1
  359. package/dist/codegen/ibc/core/client/v1/tx.js +2 -1
  360. package/dist/codegen/ibc/core/client/v1/tx.js.map +6 -1
  361. package/dist/codegen/ibc/core/commitment/v1/commitment.js +2 -1
  362. package/dist/codegen/ibc/core/commitment/v1/commitment.js.map +6 -1
  363. package/dist/codegen/ibc/core/connection/v1/connection.js +2 -1
  364. package/dist/codegen/ibc/core/connection/v1/connection.js.map +6 -1
  365. package/dist/codegen/ibc/core/connection/v1/genesis.js +2 -1
  366. package/dist/codegen/ibc/core/connection/v1/genesis.js.map +6 -1
  367. package/dist/codegen/ibc/core/connection/v1/query.js +2 -1
  368. package/dist/codegen/ibc/core/connection/v1/query.js.map +6 -1
  369. package/dist/codegen/ibc/core/connection/v1/tx.js +2 -1
  370. package/dist/codegen/ibc/core/connection/v1/tx.js.map +6 -1
  371. package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +2 -1
  372. package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js.map +6 -1
  373. package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js +2 -1
  374. package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js.map +6 -1
  375. package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +2 -1
  376. package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js.map +6 -1
  377. package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +2 -1
  378. package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js.map +6 -1
  379. package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js +2 -1
  380. package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js.map +6 -1
  381. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +2 -1
  382. package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js.map +6 -1
  383. package/dist/codegen/ibc/lightclients/wasm/v1/genesis.js +2 -1
  384. package/dist/codegen/ibc/lightclients/wasm/v1/genesis.js.map +6 -1
  385. package/dist/codegen/ibc/lightclients/wasm/v1/query.js +2 -1
  386. package/dist/codegen/ibc/lightclients/wasm/v1/query.js.map +6 -1
  387. package/dist/codegen/ibc/lightclients/wasm/v1/tx.js +2 -1
  388. package/dist/codegen/ibc/lightclients/wasm/v1/tx.js.map +6 -1
  389. package/dist/codegen/ibc/lightclients/wasm/v1/wasm.js +2 -1
  390. package/dist/codegen/ibc/lightclients/wasm/v1/wasm.js.map +6 -1
  391. package/dist/codegen/icq/bundle.js +2 -1
  392. package/dist/codegen/icq/bundle.js.map +6 -1
  393. package/dist/codegen/icq/v1/genesis.js +2 -1
  394. package/dist/codegen/icq/v1/genesis.js.map +6 -1
  395. package/dist/codegen/icq/v1/icq.js +2 -1
  396. package/dist/codegen/icq/v1/icq.js.map +6 -1
  397. package/dist/codegen/icq/v1/packet.js +2 -1
  398. package/dist/codegen/icq/v1/packet.js.map +6 -1
  399. package/dist/codegen/icq/v1/query.js +2 -1
  400. package/dist/codegen/icq/v1/query.js.map +6 -1
  401. package/dist/codegen/icq/v1/tx.js +2 -1
  402. package/dist/codegen/icq/v1/tx.js.map +6 -1
  403. package/dist/codegen/index.js +2 -1
  404. package/dist/codegen/index.js.map +6 -1
  405. package/dist/codegen/json-safe.js +2 -1
  406. package/dist/codegen/json-safe.js.map +6 -1
  407. package/dist/codegen/noble/bundle.js +2 -1
  408. package/dist/codegen/noble/bundle.js.map +6 -1
  409. package/dist/codegen/noble/dollar/vaults/v1/tx.js +2 -1
  410. package/dist/codegen/noble/dollar/vaults/v1/tx.js.map +6 -1
  411. package/dist/codegen/noble/dollar/vaults/v1/vaults.js +2 -1
  412. package/dist/codegen/noble/dollar/vaults/v1/vaults.js.map +6 -1
  413. package/dist/codegen/noble/swap/v1/algorithm.js +2 -1
  414. package/dist/codegen/noble/swap/v1/algorithm.js.map +6 -1
  415. package/dist/codegen/noble/swap/v1/swap.js +2 -1
  416. package/dist/codegen/noble/swap/v1/swap.js.map +6 -1
  417. package/dist/codegen/noble/swap/v1/tx.js +2 -1
  418. package/dist/codegen/noble/swap/v1/tx.js.map +6 -1
  419. package/dist/codegen/registry.js +2 -1
  420. package/dist/codegen/registry.js.map +6 -1
  421. package/dist/codegen/stride/bundle.js +2 -1
  422. package/dist/codegen/stride/bundle.js.map +6 -1
  423. package/dist/codegen/stride/epochs/genesis.js +2 -1
  424. package/dist/codegen/stride/epochs/genesis.js.map +6 -1
  425. package/dist/codegen/stride/epochs/query.js +2 -1
  426. package/dist/codegen/stride/epochs/query.js.map +6 -1
  427. package/dist/codegen/stride/records/callbacks.js +2 -1
  428. package/dist/codegen/stride/records/callbacks.js.map +6 -1
  429. package/dist/codegen/stride/records/genesis.js +2 -1
  430. package/dist/codegen/stride/records/genesis.js.map +6 -1
  431. package/dist/codegen/stride/records/params.js +2 -1
  432. package/dist/codegen/stride/records/params.js.map +6 -1
  433. package/dist/codegen/stride/records/query.js +2 -1
  434. package/dist/codegen/stride/records/query.js.map +6 -1
  435. package/dist/codegen/stride/records/records.js +2 -1
  436. package/dist/codegen/stride/records/records.js.map +6 -1
  437. package/dist/codegen/stride/stakedym/genesis.js +2 -1
  438. package/dist/codegen/stride/stakedym/genesis.js.map +6 -1
  439. package/dist/codegen/stride/stakedym/query.js +2 -1
  440. package/dist/codegen/stride/stakedym/query.js.map +6 -1
  441. package/dist/codegen/stride/stakedym/stakedym.js +2 -1
  442. package/dist/codegen/stride/stakedym/stakedym.js.map +6 -1
  443. package/dist/codegen/stride/stakedym/tx.js +2 -1
  444. package/dist/codegen/stride/stakedym/tx.js.map +6 -1
  445. package/dist/codegen/stride/stakeibc/address_unbonding.js +2 -1
  446. package/dist/codegen/stride/stakeibc/address_unbonding.js.map +6 -1
  447. package/dist/codegen/stride/stakeibc/callbacks.js +2 -1
  448. package/dist/codegen/stride/stakeibc/callbacks.js.map +6 -1
  449. package/dist/codegen/stride/stakeibc/epoch_tracker.js +2 -1
  450. package/dist/codegen/stride/stakeibc/epoch_tracker.js.map +6 -1
  451. package/dist/codegen/stride/stakeibc/genesis.js +2 -1
  452. package/dist/codegen/stride/stakeibc/genesis.js.map +6 -1
  453. package/dist/codegen/stride/stakeibc/gov.js +2 -1
  454. package/dist/codegen/stride/stakeibc/gov.js.map +6 -1
  455. package/dist/codegen/stride/stakeibc/host_zone.js +2 -1
  456. package/dist/codegen/stride/stakeibc/host_zone.js.map +6 -1
  457. package/dist/codegen/stride/stakeibc/ica_account.js +2 -1
  458. package/dist/codegen/stride/stakeibc/ica_account.js.map +6 -1
  459. package/dist/codegen/stride/stakeibc/packet.js +2 -1
  460. package/dist/codegen/stride/stakeibc/packet.js.map +6 -1
  461. package/dist/codegen/stride/stakeibc/params.js +2 -1
  462. package/dist/codegen/stride/stakeibc/params.js.map +6 -1
  463. package/dist/codegen/stride/stakeibc/query.js +2 -1
  464. package/dist/codegen/stride/stakeibc/query.js.map +6 -1
  465. package/dist/codegen/stride/stakeibc/trade_route.js +2 -1
  466. package/dist/codegen/stride/stakeibc/trade_route.js.map +6 -1
  467. package/dist/codegen/stride/stakeibc/tx.js +2 -1
  468. package/dist/codegen/stride/stakeibc/tx.js.map +6 -1
  469. package/dist/codegen/stride/stakeibc/validator.js +2 -1
  470. package/dist/codegen/stride/stakeibc/validator.js.map +6 -1
  471. package/dist/codegen/stride/staketia/genesis.js +2 -1
  472. package/dist/codegen/stride/staketia/genesis.js.map +6 -1
  473. package/dist/codegen/stride/staketia/query.js +2 -1
  474. package/dist/codegen/stride/staketia/query.js.map +6 -1
  475. package/dist/codegen/stride/staketia/staketia.js +2 -1
  476. package/dist/codegen/stride/staketia/staketia.js.map +6 -1
  477. package/dist/codegen/stride/staketia/tx.js +2 -1
  478. package/dist/codegen/stride/staketia/tx.js.map +6 -1
  479. package/dist/codegen/tendermint/abci/types.js +2 -1
  480. package/dist/codegen/tendermint/abci/types.js.map +6 -1
  481. package/dist/codegen/tendermint/bundle.js +2 -1
  482. package/dist/codegen/tendermint/bundle.js.map +6 -1
  483. package/dist/codegen/tendermint/crypto/keys.js +2 -1
  484. package/dist/codegen/tendermint/crypto/keys.js.map +6 -1
  485. package/dist/codegen/tendermint/crypto/proof.js +2 -1
  486. package/dist/codegen/tendermint/crypto/proof.js.map +6 -1
  487. package/dist/codegen/tendermint/libs/bits/types.js +2 -1
  488. package/dist/codegen/tendermint/libs/bits/types.js.map +6 -1
  489. package/dist/codegen/tendermint/p2p/types.js +2 -1
  490. package/dist/codegen/tendermint/p2p/types.js.map +6 -1
  491. package/dist/codegen/tendermint/types/block.js +2 -1
  492. package/dist/codegen/tendermint/types/block.js.map +6 -1
  493. package/dist/codegen/tendermint/types/evidence.js +2 -1
  494. package/dist/codegen/tendermint/types/evidence.js.map +6 -1
  495. package/dist/codegen/tendermint/types/params.js +2 -1
  496. package/dist/codegen/tendermint/types/params.js.map +6 -1
  497. package/dist/codegen/tendermint/types/types.js +2 -1
  498. package/dist/codegen/tendermint/types/types.js.map +6 -1
  499. package/dist/codegen/tendermint/types/validator.js +2 -1
  500. package/dist/codegen/tendermint/types/validator.js.map +6 -1
  501. package/dist/codegen/tendermint/version/types.js +2 -1
  502. package/dist/codegen/tendermint/version/types.js.map +6 -1
  503. package/dist/codegen/typeFromUrl.js +2 -1
  504. package/dist/codegen/typeFromUrl.js.map +6 -1
  505. package/dist/codegen/types.js +2 -1
  506. package/dist/codegen/types.js.map +6 -1
  507. package/dist/codegen/utf8.js +2 -1
  508. package/dist/codegen/utf8.js.map +6 -1
  509. package/dist/codegen/varint.js +2 -1
  510. package/dist/codegen/varint.js.map +6 -1
  511. package/dist/helpers.js +2 -1
  512. package/dist/helpers.js.map +6 -1
  513. package/dist/index.js +2 -1
  514. package/dist/index.js.map +6 -1
  515. package/package.json +8 -7
@@ -1 +1,2 @@
1
- import{PageRequest as e,PageResponse as n}from"../../../../cosmos/base/query/v1beta1/pagination.js";import{Channel as t,IdentifiedChannel as o,PacketState as r}from"./channel.js";import{Height as i,IdentifiedClientState as s,Params as c}from"../../client/v1/client.js";import{Any as a}from"../../../../google/protobuf/any.js";import{ErrorReceipt as p,Upgrade as d}from"./upgrade.js";import{BinaryReader as u,BinaryWriter as l}from"../../../../binary.js";import{isSet as h}from"../../../../helpers.js";import{}from"../../../../json-safe.js";import{decodeBase64 as f}from"@endo/base64";import{encodeBase64 as g}from"@endo/base64";export const QueryChannelRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",aminoType:"cosmos-sdk/QueryChannelRequest",is:e=>e&&(e.$typeUrl===QueryChannelRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId),isSDK:e=>e&&(e.$typeUrl===QueryChannelRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={portId:"",channelId:""};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryChannelRequest.decode(e.value),toProto:e=>QueryChannelRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",value:QueryChannelRequest.encode(e).finish()})};function y(){return{channel:void 0,proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryChannelResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",aminoType:"cosmos-sdk/QueryChannelResponse",is:e=>e&&(e.$typeUrl===QueryChannelResponse.typeUrl||(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryChannelResponse.typeUrl||(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(void 0!==e.channel&&t.encode(e.channel,n.uint32(10).fork()).ldelim(),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof u?e:new u(e);let r=void 0===n?o.len:o.pos+n;const s=y();for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:s.channel=t.decode(o,o.uint32());break;case 2:s.proof=o.bytes();break;case 3:s.proofHeight=i.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON:e=>({channel:h(e.channel)?t.fromJSON(e.channel):void 0,proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.channel&&(n.channel=e.channel?t.toJSON(e.channel):void 0),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=y();return n.channel=void 0!==e.channel&&null!==e.channel?t.fromPartial(e.channel):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryChannelResponse.decode(e.value),toProto:e=>QueryChannelResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",value:QueryChannelResponse.encode(e).finish()})};export const QueryChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",aminoType:"cosmos-sdk/QueryChannelsRequest",is:e=>e&&e.$typeUrl===QueryChannelsRequest.typeUrl,isSDK:e=>e&&e.$typeUrl===QueryChannelsRequest.typeUrl,encode:(n,t=l.create())=>(void 0!==n.pagination&&e.encode(n.pagination,t.uint32(10).fork()).ldelim(),t),decode(n,t){const o=n instanceof u?n:new u(n);let r=void 0===t?o.len:o.pos+t;const i={pagination:void 0};for(;o.pos<r;){const n=o.uint32();if(n>>>3==1)i.pagination=e.decode(o,o.uint32());else o.skipType(7&n)}return i},fromJSON:n=>({pagination:h(n.pagination)?e.fromJSON(n.pagination):void 0}),toJSON(n){const t={};return void 0!==n.pagination&&(t.pagination=n.pagination?e.toJSON(n.pagination):void 0),t},fromPartial(n){const t={pagination:void 0};return t.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,t},fromProtoMsg:e=>QueryChannelsRequest.decode(e.value),toProto:e=>QueryChannelsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",value:QueryChannelsRequest.encode(e).finish()})};function m(){return{channels:[],pagination:void 0,height:i.fromPartial({})}}export const QueryChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",aminoType:"cosmos-sdk/QueryChannelsResponse",is:e=>e&&(e.$typeUrl===QueryChannelsResponse.typeUrl||Array.isArray(e.channels)&&(!e.channels.length||o.is(e.channels[0]))&&i.is(e.height)),isSDK:e=>e&&(e.$typeUrl===QueryChannelsResponse.typeUrl||Array.isArray(e.channels)&&(!e.channels.length||o.isSDK(e.channels[0]))&&i.isSDK(e.height)),encode(e,t=l.create()){for(const n of e.channels)o.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,t.uint32(18).fork()).ldelim(),void 0!==e.height&&i.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){const r=e instanceof u?e:new u(e);let s=void 0===t?r.len:r.pos+t;const c=m();for(;r.pos<s;){const e=r.uint32();switch(e>>>3){case 1:c.channels.push(o.decode(r,r.uint32()));break;case 2:c.pagination=n.decode(r,r.uint32());break;case 3:c.height=i.decode(r,r.uint32());break;default:r.skipType(7&e)}}return c},fromJSON:e=>({channels:Array.isArray(e?.channels)?e.channels.map((e=>o.fromJSON(e))):[],pagination:h(e.pagination)?n.fromJSON(e.pagination):void 0,height:h(e.height)?i.fromJSON(e.height):void 0}),toJSON(e){const t={};return e.channels?t.channels=e.channels.map((e=>e?o.toJSON(e):void 0)):t.channels=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(t.height=e.height?i.toJSON(e.height):void 0),t},fromPartial(e){const t=m();return t.channels=e.channels?.map((e=>o.fromPartial(e)))||[],t.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,t.height=void 0!==e.height&&null!==e.height?i.fromPartial(e.height):void 0,t},fromProtoMsg:e=>QueryChannelsResponse.decode(e.value),toProto:e=>QueryChannelsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",value:QueryChannelsResponse.encode(e).finish()})};export const QueryConnectionChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",aminoType:"cosmos-sdk/QueryConnectionChannelsRequest",is:e=>e&&(e.$typeUrl===QueryConnectionChannelsRequest.typeUrl||"string"==typeof e.connection),isSDK:e=>e&&(e.$typeUrl===QueryConnectionChannelsRequest.typeUrl||"string"==typeof e.connection),encode:(n,t=l.create())=>(""!==n.connection&&t.uint32(10).string(n.connection),void 0!==n.pagination&&e.encode(n.pagination,t.uint32(18).fork()).ldelim(),t),decode(n,t){const o=n instanceof u?n:new u(n);let r=void 0===t?o.len:o.pos+t;const i={connection:"",pagination:void 0};for(;o.pos<r;){const n=o.uint32();switch(n>>>3){case 1:i.connection=o.string();break;case 2:i.pagination=e.decode(o,o.uint32());break;default:o.skipType(7&n)}}return i},fromJSON:n=>({connection:h(n.connection)?String(n.connection):"",pagination:h(n.pagination)?e.fromJSON(n.pagination):void 0}),toJSON(n){const t={};return void 0!==n.connection&&(t.connection=n.connection),void 0!==n.pagination&&(t.pagination=n.pagination?e.toJSON(n.pagination):void 0),t},fromPartial(n){const t={connection:"",pagination:void 0};return t.connection=n.connection??"",t.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,t},fromProtoMsg:e=>QueryConnectionChannelsRequest.decode(e.value),toProto:e=>QueryConnectionChannelsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",value:QueryConnectionChannelsRequest.encode(e).finish()})};function v(){return{channels:[],pagination:void 0,height:i.fromPartial({})}}export const QueryConnectionChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",aminoType:"cosmos-sdk/QueryConnectionChannelsResponse",is:e=>e&&(e.$typeUrl===QueryConnectionChannelsResponse.typeUrl||Array.isArray(e.channels)&&(!e.channels.length||o.is(e.channels[0]))&&i.is(e.height)),isSDK:e=>e&&(e.$typeUrl===QueryConnectionChannelsResponse.typeUrl||Array.isArray(e.channels)&&(!e.channels.length||o.isSDK(e.channels[0]))&&i.isSDK(e.height)),encode(e,t=l.create()){for(const n of e.channels)o.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,t.uint32(18).fork()).ldelim(),void 0!==e.height&&i.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){const r=e instanceof u?e:new u(e);let s=void 0===t?r.len:r.pos+t;const c=v();for(;r.pos<s;){const e=r.uint32();switch(e>>>3){case 1:c.channels.push(o.decode(r,r.uint32()));break;case 2:c.pagination=n.decode(r,r.uint32());break;case 3:c.height=i.decode(r,r.uint32());break;default:r.skipType(7&e)}}return c},fromJSON:e=>({channels:Array.isArray(e?.channels)?e.channels.map((e=>o.fromJSON(e))):[],pagination:h(e.pagination)?n.fromJSON(e.pagination):void 0,height:h(e.height)?i.fromJSON(e.height):void 0}),toJSON(e){const t={};return e.channels?t.channels=e.channels.map((e=>e?o.toJSON(e):void 0)):t.channels=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(t.height=e.height?i.toJSON(e.height):void 0),t},fromPartial(e){const t=v();return t.channels=e.channels?.map((e=>o.fromPartial(e)))||[],t.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,t.height=void 0!==e.height&&null!==e.height?i.fromPartial(e.height):void 0,t},fromProtoMsg:e=>QueryConnectionChannelsResponse.decode(e.value),toProto:e=>QueryConnectionChannelsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",value:QueryConnectionChannelsResponse.encode(e).finish()})};export const QueryChannelClientStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",aminoType:"cosmos-sdk/QueryChannelClientStateRequest",is:e=>e&&(e.$typeUrl===QueryChannelClientStateRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId),isSDK:e=>e&&(e.$typeUrl===QueryChannelClientStateRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={portId:"",channelId:""};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryChannelClientStateRequest.decode(e.value),toProto:e=>QueryChannelClientStateRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",value:QueryChannelClientStateRequest.encode(e).finish()})};function S(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryChannelClientStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",aminoType:"cosmos-sdk/QueryChannelClientStateResponse",is:e=>e&&(e.$typeUrl===QueryChannelClientStateResponse.typeUrl||(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryChannelClientStateResponse.typeUrl||(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(void 0!==e.identifiedClientState&&s.encode(e.identifiedClientState,n.uint32(10).fork()).ldelim(),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=S();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.identifiedClientState=s.decode(t,t.uint32());break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({identifiedClientState:h(e.identifiedClientState)?s.fromJSON(e.identifiedClientState):void 0,proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.identifiedClientState&&(n.identifiedClientState=e.identifiedClientState?s.toJSON(e.identifiedClientState):void 0),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=S();return n.identifiedClientState=void 0!==e.identifiedClientState&&null!==e.identifiedClientState?s.fromPartial(e.identifiedClientState):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryChannelClientStateResponse.decode(e.value),toProto:e=>QueryChannelClientStateResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",value:QueryChannelClientStateResponse.encode(e).finish()})};function k(){return{portId:"",channelId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}export const QueryChannelConsensusStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",aminoType:"cosmos-sdk/QueryChannelConsensusStateRequest",is:e=>e&&(e.$typeUrl===QueryChannelConsensusStateRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId&&"bigint"==typeof e.revisionNumber&&"bigint"==typeof e.revisionHeight),isSDK:e=>e&&(e.$typeUrl===QueryChannelConsensusStateRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id&&"bigint"==typeof e.revision_number&&"bigint"==typeof e.revision_height),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.revisionNumber!==BigInt(0)&&n.uint32(24).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&n.uint32(32).uint64(e.revisionHeight),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=k();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.revisionNumber=t.uint64();break;case 4:r.revisionHeight=t.uint64();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):"",revisionNumber:h(e.revisionNumber)?BigInt(e.revisionNumber.toString()):BigInt(0),revisionHeight:h(e.revisionHeight)?BigInt(e.revisionHeight.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.revisionNumber&&(n.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),void 0!==e.revisionHeight&&(n.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),n},fromPartial(e){const n=k();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.revisionNumber=void 0!==e.revisionNumber&&null!==e.revisionNumber?BigInt(e.revisionNumber.toString()):BigInt(0),n.revisionHeight=void 0!==e.revisionHeight&&null!==e.revisionHeight?BigInt(e.revisionHeight.toString()):BigInt(0),n},fromProtoMsg:e=>QueryChannelConsensusStateRequest.decode(e.value),toProto:e=>QueryChannelConsensusStateRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",value:QueryChannelConsensusStateRequest.encode(e).finish()})};function I(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryChannelConsensusStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",aminoType:"cosmos-sdk/QueryChannelConsensusStateResponse",is:e=>e&&(e.$typeUrl===QueryChannelConsensusStateResponse.typeUrl||"string"==typeof e.clientId&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryChannelConsensusStateResponse.typeUrl||"string"==typeof e.client_id&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(void 0!==e.consensusState&&a.encode(e.consensusState,n.uint32(10).fork()).ldelim(),""!==e.clientId&&n.uint32(18).string(e.clientId),0!==e.proof.length&&n.uint32(26).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(34).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=I();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.consensusState=a.decode(t,t.uint32());break;case 2:r.clientId=t.string();break;case 3:r.proof=t.bytes();break;case 4:r.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({consensusState:h(e.consensusState)?a.fromJSON(e.consensusState):void 0,clientId:h(e.clientId)?String(e.clientId):"",proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.consensusState&&(n.consensusState=e.consensusState?a.toJSON(e.consensusState):void 0),void 0!==e.clientId&&(n.clientId=e.clientId),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=I();return n.consensusState=void 0!==e.consensusState&&null!==e.consensusState?a.fromPartial(e.consensusState):void 0,n.clientId=e.clientId??"",n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryChannelConsensusStateResponse.decode(e.value),toProto:e=>QueryChannelConsensusStateResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",value:QueryChannelConsensusStateResponse.encode(e).finish()})};function R(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketCommitmentRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",aminoType:"cosmos-sdk/QueryPacketCommitmentRequest",is:e=>e&&(e.$typeUrl===QueryPacketCommitmentRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId&&"bigint"==typeof e.sequence),isSDK:e=>e&&(e.$typeUrl===QueryPacketCommitmentRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id&&"bigint"==typeof e.sequence),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=R();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.sequence=t.uint64();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):"",sequence:h(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=R();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg:e=>QueryPacketCommitmentRequest.decode(e.value),toProto:e=>QueryPacketCommitmentRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",value:QueryPacketCommitmentRequest.encode(e).finish()})};function q(){return{commitment:new Uint8Array,proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryPacketCommitmentResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",aminoType:"cosmos-sdk/QueryPacketCommitmentResponse",is:e=>e&&(e.$typeUrl===QueryPacketCommitmentResponse.typeUrl||(e.commitment instanceof Uint8Array||"string"==typeof e.commitment)&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryPacketCommitmentResponse.typeUrl||(e.commitment instanceof Uint8Array||"string"==typeof e.commitment)&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(0!==e.commitment.length&&n.uint32(10).bytes(e.commitment),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=q();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.commitment=t.bytes();break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({commitment:h(e.commitment)?f(e.commitment):new Uint8Array,proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.commitment&&(n.commitment=g(void 0!==e.commitment?e.commitment:new Uint8Array)),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=q();return n.commitment=e.commitment??new Uint8Array,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryPacketCommitmentResponse.decode(e.value),toProto:e=>QueryPacketCommitmentResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",value:QueryPacketCommitmentResponse.encode(e).finish()})};export const QueryPacketCommitmentsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",aminoType:"cosmos-sdk/QueryPacketCommitmentsRequest",is:e=>e&&(e.$typeUrl===QueryPacketCommitmentsRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId),isSDK:e=>e&&(e.$typeUrl===QueryPacketCommitmentsRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id),encode:(n,t=l.create())=>(""!==n.portId&&t.uint32(10).string(n.portId),""!==n.channelId&&t.uint32(18).string(n.channelId),void 0!==n.pagination&&e.encode(n.pagination,t.uint32(26).fork()).ldelim(),t),decode(n,t){const o=n instanceof u?n:new u(n);let r=void 0===t?o.len:o.pos+t;const i={portId:"",channelId:"",pagination:void 0};for(;o.pos<r;){const n=o.uint32();switch(n>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.pagination=e.decode(o,o.uint32());break;default:o.skipType(7&n)}}return i},fromJSON:n=>({portId:h(n.portId)?String(n.portId):"",channelId:h(n.channelId)?String(n.channelId):"",pagination:h(n.pagination)?e.fromJSON(n.pagination):void 0}),toJSON(n){const t={};return void 0!==n.portId&&(t.portId=n.portId),void 0!==n.channelId&&(t.channelId=n.channelId),void 0!==n.pagination&&(t.pagination=n.pagination?e.toJSON(n.pagination):void 0),t},fromPartial(n){const t={portId:"",channelId:"",pagination:void 0};return t.portId=n.portId??"",t.channelId=n.channelId??"",t.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,t},fromProtoMsg:e=>QueryPacketCommitmentsRequest.decode(e.value),toProto:e=>QueryPacketCommitmentsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",value:QueryPacketCommitmentsRequest.encode(e).finish()})};function U(){return{commitments:[],pagination:void 0,height:i.fromPartial({})}}export const QueryPacketCommitmentsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",aminoType:"cosmos-sdk/QueryPacketCommitmentsResponse",is:e=>e&&(e.$typeUrl===QueryPacketCommitmentsResponse.typeUrl||Array.isArray(e.commitments)&&(!e.commitments.length||r.is(e.commitments[0]))&&i.is(e.height)),isSDK:e=>e&&(e.$typeUrl===QueryPacketCommitmentsResponse.typeUrl||Array.isArray(e.commitments)&&(!e.commitments.length||r.isSDK(e.commitments[0]))&&i.isSDK(e.height)),encode(e,t=l.create()){for(const n of e.commitments)r.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,t.uint32(18).fork()).ldelim(),void 0!==e.height&&i.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){const o=e instanceof u?e:new u(e);let s=void 0===t?o.len:o.pos+t;const c=U();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:c.commitments.push(r.decode(o,o.uint32()));break;case 2:c.pagination=n.decode(o,o.uint32());break;case 3:c.height=i.decode(o,o.uint32());break;default:o.skipType(7&e)}}return c},fromJSON:e=>({commitments:Array.isArray(e?.commitments)?e.commitments.map((e=>r.fromJSON(e))):[],pagination:h(e.pagination)?n.fromJSON(e.pagination):void 0,height:h(e.height)?i.fromJSON(e.height):void 0}),toJSON(e){const t={};return e.commitments?t.commitments=e.commitments.map((e=>e?r.toJSON(e):void 0)):t.commitments=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(t.height=e.height?i.toJSON(e.height):void 0),t},fromPartial(e){const t=U();return t.commitments=e.commitments?.map((e=>r.fromPartial(e)))||[],t.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,t.height=void 0!==e.height&&null!==e.height?i.fromPartial(e.height):void 0,t},fromProtoMsg:e=>QueryPacketCommitmentsResponse.decode(e.value),toProto:e=>QueryPacketCommitmentsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",value:QueryPacketCommitmentsResponse.encode(e).finish()})};function P(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketReceiptRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",aminoType:"cosmos-sdk/QueryPacketReceiptRequest",is:e=>e&&(e.$typeUrl===QueryPacketReceiptRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId&&"bigint"==typeof e.sequence),isSDK:e=>e&&(e.$typeUrl===QueryPacketReceiptRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id&&"bigint"==typeof e.sequence),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=P();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.sequence=t.uint64();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):"",sequence:h(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=P();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg:e=>QueryPacketReceiptRequest.decode(e.value),toProto:e=>QueryPacketReceiptRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",value:QueryPacketReceiptRequest.encode(e).finish()})};function Q(){return{received:!1,proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryPacketReceiptResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",aminoType:"cosmos-sdk/QueryPacketReceiptResponse",is:e=>e&&(e.$typeUrl===QueryPacketReceiptResponse.typeUrl||"boolean"==typeof e.received&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryPacketReceiptResponse.typeUrl||"boolean"==typeof e.received&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(!0===e.received&&n.uint32(16).bool(e.received),0!==e.proof.length&&n.uint32(26).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(34).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=Q();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 2:r.received=t.bool();break;case 3:r.proof=t.bytes();break;case 4:r.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({received:!!h(e.received)&&Boolean(e.received),proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.received&&(n.received=e.received),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=Q();return n.received=e.received??!1,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryPacketReceiptResponse.decode(e.value),toProto:e=>QueryPacketReceiptResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",value:QueryPacketReceiptResponse.encode(e).finish()})};function C(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketAcknowledgementRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",aminoType:"cosmos-sdk/QueryPacketAcknowledgementRequest",is:e=>e&&(e.$typeUrl===QueryPacketAcknowledgementRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId&&"bigint"==typeof e.sequence),isSDK:e=>e&&(e.$typeUrl===QueryPacketAcknowledgementRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id&&"bigint"==typeof e.sequence),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=C();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.sequence=t.uint64();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):"",sequence:h(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=C();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg:e=>QueryPacketAcknowledgementRequest.decode(e.value),toProto:e=>QueryPacketAcknowledgementRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",value:QueryPacketAcknowledgementRequest.encode(e).finish()})};function b(){return{acknowledgement:new Uint8Array,proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryPacketAcknowledgementResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",aminoType:"cosmos-sdk/QueryPacketAcknowledgementResponse",is:e=>e&&(e.$typeUrl===QueryPacketAcknowledgementResponse.typeUrl||(e.acknowledgement instanceof Uint8Array||"string"==typeof e.acknowledgement)&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryPacketAcknowledgementResponse.typeUrl||(e.acknowledgement instanceof Uint8Array||"string"==typeof e.acknowledgement)&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(0!==e.acknowledgement.length&&n.uint32(10).bytes(e.acknowledgement),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=b();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.acknowledgement=t.bytes();break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({acknowledgement:h(e.acknowledgement)?f(e.acknowledgement):new Uint8Array,proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.acknowledgement&&(n.acknowledgement=g(void 0!==e.acknowledgement?e.acknowledgement:new Uint8Array)),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=b();return n.acknowledgement=e.acknowledgement??new Uint8Array,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryPacketAcknowledgementResponse.decode(e.value),toProto:e=>QueryPacketAcknowledgementResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",value:QueryPacketAcknowledgementResponse.encode(e).finish()})};export const QueryPacketAcknowledgementsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",aminoType:"cosmos-sdk/QueryPacketAcknowledgementsRequest",is:e=>e&&(e.$typeUrl===QueryPacketAcknowledgementsRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId&&Array.isArray(e.packetCommitmentSequences)&&(!e.packetCommitmentSequences.length||"bigint"==typeof e.packetCommitmentSequences[0])),isSDK:e=>e&&(e.$typeUrl===QueryPacketAcknowledgementsRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id&&Array.isArray(e.packet_commitment_sequences)&&(!e.packet_commitment_sequences.length||"bigint"==typeof e.packet_commitment_sequences[0])),encode(n,t=l.create()){""!==n.portId&&t.uint32(10).string(n.portId),""!==n.channelId&&t.uint32(18).string(n.channelId),void 0!==n.pagination&&e.encode(n.pagination,t.uint32(26).fork()).ldelim(),t.uint32(34).fork();for(const e of n.packetCommitmentSequences)t.uint64(e);return t.ldelim(),t},decode(n,t){const o=n instanceof u?n:new u(n);let r=void 0===t?o.len:o.pos+t;const i={portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]};for(;o.pos<r;){const n=o.uint32();switch(n>>>3){case 1:i.portId=o.string();break;case 2:i.channelId=o.string();break;case 3:i.pagination=e.decode(o,o.uint32());break;case 4:if(2==(7&n)){const e=o.uint32()+o.pos;for(;o.pos<e;)i.packetCommitmentSequences.push(o.uint64())}else i.packetCommitmentSequences.push(o.uint64());break;default:o.skipType(7&n)}}return i},fromJSON:n=>({portId:h(n.portId)?String(n.portId):"",channelId:h(n.channelId)?String(n.channelId):"",pagination:h(n.pagination)?e.fromJSON(n.pagination):void 0,packetCommitmentSequences:Array.isArray(n?.packetCommitmentSequences)?n.packetCommitmentSequences.map((e=>BigInt(e.toString()))):[]}),toJSON(n){const t={};return void 0!==n.portId&&(t.portId=n.portId),void 0!==n.channelId&&(t.channelId=n.channelId),void 0!==n.pagination&&(t.pagination=n.pagination?e.toJSON(n.pagination):void 0),n.packetCommitmentSequences?t.packetCommitmentSequences=n.packetCommitmentSequences.map((e=>(e||BigInt(0)).toString())):t.packetCommitmentSequences=[],t},fromPartial(n){const t={portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]};return t.portId=n.portId??"",t.channelId=n.channelId??"",t.pagination=void 0!==n.pagination&&null!==n.pagination?e.fromPartial(n.pagination):void 0,t.packetCommitmentSequences=n.packetCommitmentSequences?.map((e=>BigInt(e.toString())))||[],t},fromProtoMsg:e=>QueryPacketAcknowledgementsRequest.decode(e.value),toProto:e=>QueryPacketAcknowledgementsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",value:QueryPacketAcknowledgementsRequest.encode(e).finish()})};function A(){return{acknowledgements:[],pagination:void 0,height:i.fromPartial({})}}export const QueryPacketAcknowledgementsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",aminoType:"cosmos-sdk/QueryPacketAcknowledgementsResponse",is:e=>e&&(e.$typeUrl===QueryPacketAcknowledgementsResponse.typeUrl||Array.isArray(e.acknowledgements)&&(!e.acknowledgements.length||r.is(e.acknowledgements[0]))&&i.is(e.height)),isSDK:e=>e&&(e.$typeUrl===QueryPacketAcknowledgementsResponse.typeUrl||Array.isArray(e.acknowledgements)&&(!e.acknowledgements.length||r.isSDK(e.acknowledgements[0]))&&i.isSDK(e.height)),encode(e,t=l.create()){for(const n of e.acknowledgements)r.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.pagination&&n.encode(e.pagination,t.uint32(18).fork()).ldelim(),void 0!==e.height&&i.encode(e.height,t.uint32(26).fork()).ldelim(),t},decode(e,t){const o=e instanceof u?e:new u(e);let s=void 0===t?o.len:o.pos+t;const c=A();for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:c.acknowledgements.push(r.decode(o,o.uint32()));break;case 2:c.pagination=n.decode(o,o.uint32());break;case 3:c.height=i.decode(o,o.uint32());break;default:o.skipType(7&e)}}return c},fromJSON:e=>({acknowledgements:Array.isArray(e?.acknowledgements)?e.acknowledgements.map((e=>r.fromJSON(e))):[],pagination:h(e.pagination)?n.fromJSON(e.pagination):void 0,height:h(e.height)?i.fromJSON(e.height):void 0}),toJSON(e){const t={};return e.acknowledgements?t.acknowledgements=e.acknowledgements.map((e=>e?r.toJSON(e):void 0)):t.acknowledgements=[],void 0!==e.pagination&&(t.pagination=e.pagination?n.toJSON(e.pagination):void 0),void 0!==e.height&&(t.height=e.height?i.toJSON(e.height):void 0),t},fromPartial(e){const t=A();return t.acknowledgements=e.acknowledgements?.map((e=>r.fromPartial(e)))||[],t.pagination=void 0!==e.pagination&&null!==e.pagination?n.fromPartial(e.pagination):void 0,t.height=void 0!==e.height&&null!==e.height?i.fromPartial(e.height):void 0,t},fromProtoMsg:e=>QueryPacketAcknowledgementsResponse.decode(e.value),toProto:e=>QueryPacketAcknowledgementsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",value:QueryPacketAcknowledgementsResponse.encode(e).finish()})};export const QueryUnreceivedPacketsRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",aminoType:"cosmos-sdk/QueryUnreceivedPacketsRequest",is:e=>e&&(e.$typeUrl===QueryUnreceivedPacketsRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId&&Array.isArray(e.packetCommitmentSequences)&&(!e.packetCommitmentSequences.length||"bigint"==typeof e.packetCommitmentSequences[0])),isSDK:e=>e&&(e.$typeUrl===QueryUnreceivedPacketsRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id&&Array.isArray(e.packet_commitment_sequences)&&(!e.packet_commitment_sequences.length||"bigint"==typeof e.packet_commitment_sequences[0])),encode(e,n=l.create()){""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n.uint32(26).fork();for(const t of e.packetCommitmentSequences)n.uint64(t);return n.ldelim(),n},decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={portId:"",channelId:"",packetCommitmentSequences:[]};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:if(2==(7&e)){const e=t.uint32()+t.pos;for(;t.pos<e;)r.packetCommitmentSequences.push(t.uint64())}else r.packetCommitmentSequences.push(t.uint64());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):"",packetCommitmentSequences:Array.isArray(e?.packetCommitmentSequences)?e.packetCommitmentSequences.map((e=>BigInt(e.toString()))):[]}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),e.packetCommitmentSequences?n.packetCommitmentSequences=e.packetCommitmentSequences.map((e=>(e||BigInt(0)).toString())):n.packetCommitmentSequences=[],n},fromPartial(e){const n={portId:"",channelId:"",packetCommitmentSequences:[]};return n.portId=e.portId??"",n.channelId=e.channelId??"",n.packetCommitmentSequences=e.packetCommitmentSequences?.map((e=>BigInt(e.toString())))||[],n},fromProtoMsg:e=>QueryUnreceivedPacketsRequest.decode(e.value),toProto:e=>QueryUnreceivedPacketsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",value:QueryUnreceivedPacketsRequest.encode(e).finish()})};function N(){return{sequences:[],height:i.fromPartial({})}}export const QueryUnreceivedPacketsResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",aminoType:"cosmos-sdk/QueryUnreceivedPacketsResponse",is:e=>e&&(e.$typeUrl===QueryUnreceivedPacketsResponse.typeUrl||Array.isArray(e.sequences)&&(!e.sequences.length||"bigint"==typeof e.sequences[0])&&i.is(e.height)),isSDK:e=>e&&(e.$typeUrl===QueryUnreceivedPacketsResponse.typeUrl||Array.isArray(e.sequences)&&(!e.sequences.length||"bigint"==typeof e.sequences[0])&&i.isSDK(e.height)),encode(e,n=l.create()){n.uint32(10).fork();for(const t of e.sequences)n.uint64(t);return n.ldelim(),void 0!==e.height&&i.encode(e.height,n.uint32(18).fork()).ldelim(),n},decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=N();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:if(2==(7&e)){const e=t.uint32()+t.pos;for(;t.pos<e;)r.sequences.push(t.uint64())}else r.sequences.push(t.uint64());break;case 2:r.height=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({sequences:Array.isArray(e?.sequences)?e.sequences.map((e=>BigInt(e.toString()))):[],height:h(e.height)?i.fromJSON(e.height):void 0}),toJSON(e){const n={};return e.sequences?n.sequences=e.sequences.map((e=>(e||BigInt(0)).toString())):n.sequences=[],void 0!==e.height&&(n.height=e.height?i.toJSON(e.height):void 0),n},fromPartial(e){const n=N();return n.sequences=e.sequences?.map((e=>BigInt(e.toString())))||[],n.height=void 0!==e.height&&null!==e.height?i.fromPartial(e.height):void 0,n},fromProtoMsg:e=>QueryUnreceivedPacketsResponse.decode(e.value),toProto:e=>QueryUnreceivedPacketsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",value:QueryUnreceivedPacketsResponse.encode(e).finish()})};export const QueryUnreceivedAcksRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",aminoType:"cosmos-sdk/QueryUnreceivedAcksRequest",is:e=>e&&(e.$typeUrl===QueryUnreceivedAcksRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId&&Array.isArray(e.packetAckSequences)&&(!e.packetAckSequences.length||"bigint"==typeof e.packetAckSequences[0])),isSDK:e=>e&&(e.$typeUrl===QueryUnreceivedAcksRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id&&Array.isArray(e.packet_ack_sequences)&&(!e.packet_ack_sequences.length||"bigint"==typeof e.packet_ack_sequences[0])),encode(e,n=l.create()){""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n.uint32(26).fork();for(const t of e.packetAckSequences)n.uint64(t);return n.ldelim(),n},decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={portId:"",channelId:"",packetAckSequences:[]};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:if(2==(7&e)){const e=t.uint32()+t.pos;for(;t.pos<e;)r.packetAckSequences.push(t.uint64())}else r.packetAckSequences.push(t.uint64());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):"",packetAckSequences:Array.isArray(e?.packetAckSequences)?e.packetAckSequences.map((e=>BigInt(e.toString()))):[]}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),e.packetAckSequences?n.packetAckSequences=e.packetAckSequences.map((e=>(e||BigInt(0)).toString())):n.packetAckSequences=[],n},fromPartial(e){const n={portId:"",channelId:"",packetAckSequences:[]};return n.portId=e.portId??"",n.channelId=e.channelId??"",n.packetAckSequences=e.packetAckSequences?.map((e=>BigInt(e.toString())))||[],n},fromProtoMsg:e=>QueryUnreceivedAcksRequest.decode(e.value),toProto:e=>QueryUnreceivedAcksRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",value:QueryUnreceivedAcksRequest.encode(e).finish()})};function w(){return{sequences:[],height:i.fromPartial({})}}export const QueryUnreceivedAcksResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",aminoType:"cosmos-sdk/QueryUnreceivedAcksResponse",is:e=>e&&(e.$typeUrl===QueryUnreceivedAcksResponse.typeUrl||Array.isArray(e.sequences)&&(!e.sequences.length||"bigint"==typeof e.sequences[0])&&i.is(e.height)),isSDK:e=>e&&(e.$typeUrl===QueryUnreceivedAcksResponse.typeUrl||Array.isArray(e.sequences)&&(!e.sequences.length||"bigint"==typeof e.sequences[0])&&i.isSDK(e.height)),encode(e,n=l.create()){n.uint32(10).fork();for(const t of e.sequences)n.uint64(t);return n.ldelim(),void 0!==e.height&&i.encode(e.height,n.uint32(18).fork()).ldelim(),n},decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=w();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:if(2==(7&e)){const e=t.uint32()+t.pos;for(;t.pos<e;)r.sequences.push(t.uint64())}else r.sequences.push(t.uint64());break;case 2:r.height=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({sequences:Array.isArray(e?.sequences)?e.sequences.map((e=>BigInt(e.toString()))):[],height:h(e.height)?i.fromJSON(e.height):void 0}),toJSON(e){const n={};return e.sequences?n.sequences=e.sequences.map((e=>(e||BigInt(0)).toString())):n.sequences=[],void 0!==e.height&&(n.height=e.height?i.toJSON(e.height):void 0),n},fromPartial(e){const n=w();return n.sequences=e.sequences?.map((e=>BigInt(e.toString())))||[],n.height=void 0!==e.height&&null!==e.height?i.fromPartial(e.height):void 0,n},fromProtoMsg:e=>QueryUnreceivedAcksResponse.decode(e.value),toProto:e=>QueryUnreceivedAcksResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",value:QueryUnreceivedAcksResponse.encode(e).finish()})};export const QueryNextSequenceReceiveRequest={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",aminoType:"cosmos-sdk/QueryNextSequenceReceiveRequest",is:e=>e&&(e.$typeUrl===QueryNextSequenceReceiveRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId),isSDK:e=>e&&(e.$typeUrl===QueryNextSequenceReceiveRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={portId:"",channelId:""};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryNextSequenceReceiveRequest.decode(e.value),toProto:e=>QueryNextSequenceReceiveRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",value:QueryNextSequenceReceiveRequest.encode(e).finish()})};function H(){return{nextSequenceReceive:BigInt(0),proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryNextSequenceReceiveResponse={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",aminoType:"cosmos-sdk/QueryNextSequenceReceiveResponse",is:e=>e&&(e.$typeUrl===QueryNextSequenceReceiveResponse.typeUrl||"bigint"==typeof e.nextSequenceReceive&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryNextSequenceReceiveResponse.typeUrl||"bigint"==typeof e.next_sequence_receive&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(e.nextSequenceReceive!==BigInt(0)&&n.uint32(8).uint64(e.nextSequenceReceive),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=H();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.nextSequenceReceive=t.uint64();break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({nextSequenceReceive:h(e.nextSequenceReceive)?BigInt(e.nextSequenceReceive.toString()):BigInt(0),proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.nextSequenceReceive&&(n.nextSequenceReceive=(e.nextSequenceReceive||BigInt(0)).toString()),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=H();return n.nextSequenceReceive=void 0!==e.nextSequenceReceive&&null!==e.nextSequenceReceive?BigInt(e.nextSequenceReceive.toString()):BigInt(0),n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryNextSequenceReceiveResponse.decode(e.value),toProto:e=>QueryNextSequenceReceiveResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",value:QueryNextSequenceReceiveResponse.encode(e).finish()})};export const QueryNextSequenceSendRequest={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceSendRequest",aminoType:"cosmos-sdk/QueryNextSequenceSendRequest",is:e=>e&&(e.$typeUrl===QueryNextSequenceSendRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId),isSDK:e=>e&&(e.$typeUrl===QueryNextSequenceSendRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={portId:"",channelId:""};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryNextSequenceSendRequest.decode(e.value),toProto:e=>QueryNextSequenceSendRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryNextSequenceSendRequest",value:QueryNextSequenceSendRequest.encode(e).finish()})};function J(){return{nextSequenceSend:BigInt(0),proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryNextSequenceSendResponse={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceSendResponse",aminoType:"cosmos-sdk/QueryNextSequenceSendResponse",is:e=>e&&(e.$typeUrl===QueryNextSequenceSendResponse.typeUrl||"bigint"==typeof e.nextSequenceSend&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryNextSequenceSendResponse.typeUrl||"bigint"==typeof e.next_sequence_send&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(e.nextSequenceSend!==BigInt(0)&&n.uint32(8).uint64(e.nextSequenceSend),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=J();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.nextSequenceSend=t.uint64();break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({nextSequenceSend:h(e.nextSequenceSend)?BigInt(e.nextSequenceSend.toString()):BigInt(0),proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.nextSequenceSend&&(n.nextSequenceSend=(e.nextSequenceSend||BigInt(0)).toString()),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=J();return n.nextSequenceSend=void 0!==e.nextSequenceSend&&null!==e.nextSequenceSend?BigInt(e.nextSequenceSend.toString()):BigInt(0),n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryNextSequenceSendResponse.decode(e.value),toProto:e=>QueryNextSequenceSendResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryNextSequenceSendResponse",value:QueryNextSequenceSendResponse.encode(e).finish()})};export const QueryUpgradeErrorRequest={typeUrl:"/ibc.core.channel.v1.QueryUpgradeErrorRequest",aminoType:"cosmos-sdk/QueryUpgradeErrorRequest",is:e=>e&&(e.$typeUrl===QueryUpgradeErrorRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId),isSDK:e=>e&&(e.$typeUrl===QueryUpgradeErrorRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={portId:"",channelId:""};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryUpgradeErrorRequest.decode(e.value),toProto:e=>QueryUpgradeErrorRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUpgradeErrorRequest",value:QueryUpgradeErrorRequest.encode(e).finish()})};function O(){return{errorReceipt:p.fromPartial({}),proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryUpgradeErrorResponse={typeUrl:"/ibc.core.channel.v1.QueryUpgradeErrorResponse",aminoType:"cosmos-sdk/QueryUpgradeErrorResponse",is:e=>e&&(e.$typeUrl===QueryUpgradeErrorResponse.typeUrl||p.is(e.errorReceipt)&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryUpgradeErrorResponse.typeUrl||p.isSDK(e.error_receipt)&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(void 0!==e.errorReceipt&&p.encode(e.errorReceipt,n.uint32(10).fork()).ldelim(),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=O();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.errorReceipt=p.decode(t,t.uint32());break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({errorReceipt:h(e.errorReceipt)?p.fromJSON(e.errorReceipt):void 0,proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.errorReceipt&&(n.errorReceipt=e.errorReceipt?p.toJSON(e.errorReceipt):void 0),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=O();return n.errorReceipt=void 0!==e.errorReceipt&&null!==e.errorReceipt?p.fromPartial(e.errorReceipt):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryUpgradeErrorResponse.decode(e.value),toProto:e=>QueryUpgradeErrorResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUpgradeErrorResponse",value:QueryUpgradeErrorResponse.encode(e).finish()})};export const QueryUpgradeRequest={typeUrl:"/ibc.core.channel.v1.QueryUpgradeRequest",aminoType:"cosmos-sdk/QueryUpgradeRequest",is:e=>e&&(e.$typeUrl===QueryUpgradeRequest.typeUrl||"string"==typeof e.portId&&"string"==typeof e.channelId),isSDK:e=>e&&(e.$typeUrl===QueryUpgradeRequest.typeUrl||"string"==typeof e.port_id&&"string"==typeof e.channel_id),encode:(e,n=l.create())=>(""!==e.portId&&n.uint32(10).string(e.portId),""!==e.channelId&&n.uint32(18).string(e.channelId),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={portId:"",channelId:""};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({portId:h(e.portId)?String(e.portId):"",channelId:h(e.channelId)?String(e.channelId):""}),toJSON(e){const n={};return void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial(e){const n={portId:"",channelId:""};return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg:e=>QueryUpgradeRequest.decode(e.value),toProto:e=>QueryUpgradeRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUpgradeRequest",value:QueryUpgradeRequest.encode(e).finish()})};function x(){return{upgrade:d.fromPartial({}),proof:new Uint8Array,proofHeight:i.fromPartial({})}}export const QueryUpgradeResponse={typeUrl:"/ibc.core.channel.v1.QueryUpgradeResponse",aminoType:"cosmos-sdk/QueryUpgradeResponse",is:e=>e&&(e.$typeUrl===QueryUpgradeResponse.typeUrl||d.is(e.upgrade)&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.is(e.proofHeight)),isSDK:e=>e&&(e.$typeUrl===QueryUpgradeResponse.typeUrl||d.isSDK(e.upgrade)&&(e.proof instanceof Uint8Array||"string"==typeof e.proof)&&i.isSDK(e.proof_height)),encode:(e,n=l.create())=>(void 0!==e.upgrade&&d.encode(e.upgrade,n.uint32(10).fork()).ldelim(),0!==e.proof.length&&n.uint32(18).bytes(e.proof),void 0!==e.proofHeight&&i.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r=x();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.upgrade=d.decode(t,t.uint32());break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=i.decode(t,t.uint32());break;default:t.skipType(7&e)}}return r},fromJSON:e=>({upgrade:h(e.upgrade)?d.fromJSON(e.upgrade):void 0,proof:h(e.proof)?f(e.proof):new Uint8Array,proofHeight:h(e.proofHeight)?i.fromJSON(e.proofHeight):void 0}),toJSON(e){const n={};return void 0!==e.upgrade&&(n.upgrade=e.upgrade?d.toJSON(e.upgrade):void 0),void 0!==e.proof&&(n.proof=g(void 0!==e.proof?e.proof:new Uint8Array)),void 0!==e.proofHeight&&(n.proofHeight=e.proofHeight?i.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=x();return n.upgrade=void 0!==e.upgrade&&null!==e.upgrade?d.fromPartial(e.upgrade):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?i.fromPartial(e.proofHeight):void 0,n},fromProtoMsg:e=>QueryUpgradeResponse.decode(e.value),toProto:e=>QueryUpgradeResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryUpgradeResponse",value:QueryUpgradeResponse.encode(e).finish()})};export const QueryChannelParamsRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelParamsRequest",aminoType:"cosmos-sdk/QueryChannelParamsRequest",is:e=>e&&e.$typeUrl===QueryChannelParamsRequest.typeUrl,isSDK:e=>e&&e.$typeUrl===QueryChannelParamsRequest.typeUrl,encode:(e,n=l.create())=>n,decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={};for(;t.pos<o;){const e=t.uint32();t.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>QueryChannelParamsRequest.decode(e.value),toProto:e=>QueryChannelParamsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelParamsRequest",value:QueryChannelParamsRequest.encode(e).finish()})};export const QueryChannelParamsResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelParamsResponse",aminoType:"cosmos-sdk/QueryChannelParamsResponse",is:e=>e&&e.$typeUrl===QueryChannelParamsResponse.typeUrl,isSDK:e=>e&&e.$typeUrl===QueryChannelParamsResponse.typeUrl,encode:(e,n=l.create())=>(void 0!==e.params&&c.encode(e.params,n.uint32(10).fork()).ldelim(),n),decode(e,n){const t=e instanceof u?e:new u(e);let o=void 0===n?t.len:t.pos+n;const r={params:void 0};for(;t.pos<o;){const e=t.uint32();if(e>>>3==1)r.params=c.decode(t,t.uint32());else t.skipType(7&e)}return r},fromJSON:e=>({params:h(e.params)?c.fromJSON(e.params):void 0}),toJSON(e){const n={};return void 0!==e.params&&(n.params=e.params?c.toJSON(e.params):void 0),n},fromPartial(e){const n={params:void 0};return n.params=void 0!==e.params&&null!==e.params?c.fromPartial(e.params):void 0,n},fromProtoMsg:e=>QueryChannelParamsResponse.decode(e.value),toProto:e=>QueryChannelParamsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.QueryChannelParamsResponse",value:QueryChannelParamsResponse.encode(e).finish()})};
1
+ "use strict";import{PageRequest as p,PageResponse as d}from"../../../../cosmos/base/query/v1beta1/pagination.js";import{Channel as Q,IdentifiedChannel as y,PacketState as l}from"./channel.js";import{Height as o,IdentifiedClientState as k,Params as S}from"../../client/v1/client.js";import{Any as q}from"../../../../google/protobuf/any.js";import{ErrorReceipt as R,Upgrade as m}from"./upgrade.js";import{BinaryReader as a,BinaryWriter as c}from"../../../../binary.js";import{isSet as s}from"../../../../helpers.js";import"../../../../json-safe.js";import{decodeBase64 as f}from"@endo/base64";import{encodeBase64 as h}from"@endo/base64";function P(){return{portId:"",channelId:""}}export const QueryChannelRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",aminoType:"cosmos-sdk/QueryChannelRequest",is(e){return e&&(e.$typeUrl===QueryChannelRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string")},isSDK(e){return e&&(e.$typeUrl===QueryChannelRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=P();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):""}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),n},fromPartial(e){const n=P();return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg(e){return QueryChannelRequest.decode(e.value)},toProto(e){return QueryChannelRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelRequest",value:QueryChannelRequest.encode(e).finish()}}};function U(){return{channel:void 0,proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryChannelResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",aminoType:"cosmos-sdk/QueryChannelResponse",is(e){return e&&(e.$typeUrl===QueryChannelResponse.typeUrl||(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryChannelResponse.typeUrl||(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.channel!==void 0&&Q.encode(e.channel,n.uint32(10).fork()).ldelim(),e.proof.length!==0&&n.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=U();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.channel=Q.decode(t,t.uint32());break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{channel:s(e.channel)?Q.fromJSON(e.channel):void 0,proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.channel!==void 0&&(n.channel=e.channel?Q.toJSON(e.channel):void 0),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=U();return n.channel=e.channel!==void 0&&e.channel!==null?Q.fromPartial(e.channel):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryChannelResponse.decode(e.value)},toProto(e){return QueryChannelResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelResponse",value:QueryChannelResponse.encode(e).finish()}}};function C(){return{pagination:void 0}}export const QueryChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",aminoType:"cosmos-sdk/QueryChannelsRequest",is(e){return e&&e.$typeUrl===QueryChannelsRequest.typeUrl},isSDK(e){return e&&e.$typeUrl===QueryChannelsRequest.typeUrl},encode(e,n=c.create()){return e.pagination!==void 0&&p.encode(e.pagination,n.uint32(10).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=C();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.pagination=p.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{pagination:s(e.pagination)?p.fromJSON(e.pagination):void 0}},toJSON(e){const n={};return e.pagination!==void 0&&(n.pagination=e.pagination?p.toJSON(e.pagination):void 0),n},fromPartial(e){const n=C();return n.pagination=e.pagination!==void 0&&e.pagination!==null?p.fromPartial(e.pagination):void 0,n},fromProtoMsg(e){return QueryChannelsRequest.decode(e.value)},toProto(e){return QueryChannelsRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelsRequest",value:QueryChannelsRequest.encode(e).finish()}}};function I(){return{channels:[],pagination:void 0,height:o.fromPartial({})}}export const QueryChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",aminoType:"cosmos-sdk/QueryChannelsResponse",is(e){return e&&(e.$typeUrl===QueryChannelsResponse.typeUrl||Array.isArray(e.channels)&&(!e.channels.length||y.is(e.channels[0]))&&o.is(e.height))},isSDK(e){return e&&(e.$typeUrl===QueryChannelsResponse.typeUrl||Array.isArray(e.channels)&&(!e.channels.length||y.isSDK(e.channels[0]))&&o.isSDK(e.height))},encode(e,n=c.create()){for(const t of e.channels)y.encode(t,n.uint32(10).fork()).ldelim();return e.pagination!==void 0&&d.encode(e.pagination,n.uint32(18).fork()).ldelim(),e.height!==void 0&&o.encode(e.height,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=I();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.channels.push(y.decode(t,t.uint32()));break;case 2:r.pagination=d.decode(t,t.uint32());break;case 3:r.height=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{channels:Array.isArray(e?.channels)?e.channels.map(n=>y.fromJSON(n)):[],pagination:s(e.pagination)?d.fromJSON(e.pagination):void 0,height:s(e.height)?o.fromJSON(e.height):void 0}},toJSON(e){const n={};return e.channels?n.channels=e.channels.map(t=>t?y.toJSON(t):void 0):n.channels=[],e.pagination!==void 0&&(n.pagination=e.pagination?d.toJSON(e.pagination):void 0),e.height!==void 0&&(n.height=e.height?o.toJSON(e.height):void 0),n},fromPartial(e){const n=I();return n.channels=e.channels?.map(t=>y.fromPartial(t))||[],n.pagination=e.pagination!==void 0&&e.pagination!==null?d.fromPartial(e.pagination):void 0,n.height=e.height!==void 0&&e.height!==null?o.fromPartial(e.height):void 0,n},fromProtoMsg(e){return QueryChannelsResponse.decode(e.value)},toProto(e){return QueryChannelsResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelsResponse",value:QueryChannelsResponse.encode(e).finish()}}};function v(){return{connection:"",pagination:void 0}}export const QueryConnectionChannelsRequest={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",aminoType:"cosmos-sdk/QueryConnectionChannelsRequest",is(e){return e&&(e.$typeUrl===QueryConnectionChannelsRequest.typeUrl||typeof e.connection=="string")},isSDK(e){return e&&(e.$typeUrl===QueryConnectionChannelsRequest.typeUrl||typeof e.connection=="string")},encode(e,n=c.create()){return e.connection!==""&&n.uint32(10).string(e.connection),e.pagination!==void 0&&p.encode(e.pagination,n.uint32(18).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=v();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.connection=t.string();break;case 2:r.pagination=p.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{connection:s(e.connection)?String(e.connection):"",pagination:s(e.pagination)?p.fromJSON(e.pagination):void 0}},toJSON(e){const n={};return e.connection!==void 0&&(n.connection=e.connection),e.pagination!==void 0&&(n.pagination=e.pagination?p.toJSON(e.pagination):void 0),n},fromPartial(e){const n=v();return n.connection=e.connection??"",n.pagination=e.pagination!==void 0&&e.pagination!==null?p.fromPartial(e.pagination):void 0,n},fromProtoMsg(e){return QueryConnectionChannelsRequest.decode(e.value)},toProto(e){return QueryConnectionChannelsRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsRequest",value:QueryConnectionChannelsRequest.encode(e).finish()}}};function A(){return{channels:[],pagination:void 0,height:o.fromPartial({})}}export const QueryConnectionChannelsResponse={typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",aminoType:"cosmos-sdk/QueryConnectionChannelsResponse",is(e){return e&&(e.$typeUrl===QueryConnectionChannelsResponse.typeUrl||Array.isArray(e.channels)&&(!e.channels.length||y.is(e.channels[0]))&&o.is(e.height))},isSDK(e){return e&&(e.$typeUrl===QueryConnectionChannelsResponse.typeUrl||Array.isArray(e.channels)&&(!e.channels.length||y.isSDK(e.channels[0]))&&o.isSDK(e.height))},encode(e,n=c.create()){for(const t of e.channels)y.encode(t,n.uint32(10).fork()).ldelim();return e.pagination!==void 0&&d.encode(e.pagination,n.uint32(18).fork()).ldelim(),e.height!==void 0&&o.encode(e.height,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=A();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.channels.push(y.decode(t,t.uint32()));break;case 2:r.pagination=d.decode(t,t.uint32());break;case 3:r.height=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{channels:Array.isArray(e?.channels)?e.channels.map(n=>y.fromJSON(n)):[],pagination:s(e.pagination)?d.fromJSON(e.pagination):void 0,height:s(e.height)?o.fromJSON(e.height):void 0}},toJSON(e){const n={};return e.channels?n.channels=e.channels.map(t=>t?y.toJSON(t):void 0):n.channels=[],e.pagination!==void 0&&(n.pagination=e.pagination?d.toJSON(e.pagination):void 0),e.height!==void 0&&(n.height=e.height?o.toJSON(e.height):void 0),n},fromPartial(e){const n=A();return n.channels=e.channels?.map(t=>y.fromPartial(t))||[],n.pagination=e.pagination!==void 0&&e.pagination!==null?d.fromPartial(e.pagination):void 0,n.height=e.height!==void 0&&e.height!==null?o.fromPartial(e.height):void 0,n},fromProtoMsg(e){return QueryConnectionChannelsResponse.decode(e.value)},toProto(e){return QueryConnectionChannelsResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryConnectionChannelsResponse",value:QueryConnectionChannelsResponse.encode(e).finish()}}};function x(){return{portId:"",channelId:""}}export const QueryChannelClientStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",aminoType:"cosmos-sdk/QueryChannelClientStateRequest",is(e){return e&&(e.$typeUrl===QueryChannelClientStateRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string")},isSDK(e){return e&&(e.$typeUrl===QueryChannelClientStateRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=x();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):""}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),n},fromPartial(e){const n=x();return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg(e){return QueryChannelClientStateRequest.decode(e.value)},toProto(e){return QueryChannelClientStateRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateRequest",value:QueryChannelClientStateRequest.encode(e).finish()}}};function N(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryChannelClientStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",aminoType:"cosmos-sdk/QueryChannelClientStateResponse",is(e){return e&&(e.$typeUrl===QueryChannelClientStateResponse.typeUrl||(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryChannelClientStateResponse.typeUrl||(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.identifiedClientState!==void 0&&k.encode(e.identifiedClientState,n.uint32(10).fork()).ldelim(),e.proof.length!==0&&n.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=N();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.identifiedClientState=k.decode(t,t.uint32());break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{identifiedClientState:s(e.identifiedClientState)?k.fromJSON(e.identifiedClientState):void 0,proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.identifiedClientState!==void 0&&(n.identifiedClientState=e.identifiedClientState?k.toJSON(e.identifiedClientState):void 0),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=N();return n.identifiedClientState=e.identifiedClientState!==void 0&&e.identifiedClientState!==null?k.fromPartial(e.identifiedClientState):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryChannelClientStateResponse.decode(e.value)},toProto(e){return QueryChannelClientStateResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelClientStateResponse",value:QueryChannelClientStateResponse.encode(e).finish()}}};function H(){return{portId:"",channelId:"",revisionNumber:BigInt(0),revisionHeight:BigInt(0)}}export const QueryChannelConsensusStateRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",aminoType:"cosmos-sdk/QueryChannelConsensusStateRequest",is(e){return e&&(e.$typeUrl===QueryChannelConsensusStateRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string"&&typeof e.revisionNumber=="bigint"&&typeof e.revisionHeight=="bigint")},isSDK(e){return e&&(e.$typeUrl===QueryChannelConsensusStateRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string"&&typeof e.revision_number=="bigint"&&typeof e.revision_height=="bigint")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),e.revisionNumber!==BigInt(0)&&n.uint32(24).uint64(e.revisionNumber),e.revisionHeight!==BigInt(0)&&n.uint32(32).uint64(e.revisionHeight),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=H();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.revisionNumber=t.uint64();break;case 4:r.revisionHeight=t.uint64();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):"",revisionNumber:s(e.revisionNumber)?BigInt(e.revisionNumber.toString()):BigInt(0),revisionHeight:s(e.revisionHeight)?BigInt(e.revisionHeight.toString()):BigInt(0)}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),e.revisionNumber!==void 0&&(n.revisionNumber=(e.revisionNumber||BigInt(0)).toString()),e.revisionHeight!==void 0&&(n.revisionHeight=(e.revisionHeight||BigInt(0)).toString()),n},fromPartial(e){const n=H();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.revisionNumber=e.revisionNumber!==void 0&&e.revisionNumber!==null?BigInt(e.revisionNumber.toString()):BigInt(0),n.revisionHeight=e.revisionHeight!==void 0&&e.revisionHeight!==null?BigInt(e.revisionHeight.toString()):BigInt(0),n},fromProtoMsg(e){return QueryChannelConsensusStateRequest.decode(e.value)},toProto(e){return QueryChannelConsensusStateRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateRequest",value:QueryChannelConsensusStateRequest.encode(e).finish()}}};function B(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryChannelConsensusStateResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",aminoType:"cosmos-sdk/QueryChannelConsensusStateResponse",is(e){return e&&(e.$typeUrl===QueryChannelConsensusStateResponse.typeUrl||typeof e.clientId=="string"&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryChannelConsensusStateResponse.typeUrl||typeof e.client_id=="string"&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.consensusState!==void 0&&q.encode(e.consensusState,n.uint32(10).fork()).ldelim(),e.clientId!==""&&n.uint32(18).string(e.clientId),e.proof.length!==0&&n.uint32(26).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(34).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=B();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.consensusState=q.decode(t,t.uint32());break;case 2:r.clientId=t.string();break;case 3:r.proof=t.bytes();break;case 4:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{consensusState:s(e.consensusState)?q.fromJSON(e.consensusState):void 0,clientId:s(e.clientId)?String(e.clientId):"",proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.consensusState!==void 0&&(n.consensusState=e.consensusState?q.toJSON(e.consensusState):void 0),e.clientId!==void 0&&(n.clientId=e.clientId),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=B();return n.consensusState=e.consensusState!==void 0&&e.consensusState!==null?q.fromPartial(e.consensusState):void 0,n.clientId=e.clientId??"",n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryChannelConsensusStateResponse.decode(e.value)},toProto(e){return QueryChannelConsensusStateResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelConsensusStateResponse",value:QueryChannelConsensusStateResponse.encode(e).finish()}}};function w(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketCommitmentRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",aminoType:"cosmos-sdk/QueryPacketCommitmentRequest",is(e){return e&&(e.$typeUrl===QueryPacketCommitmentRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string"&&typeof e.sequence=="bigint")},isSDK(e){return e&&(e.$typeUrl===QueryPacketCommitmentRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string"&&typeof e.sequence=="bigint")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=w();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.sequence=t.uint64();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):"",sequence:s(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),e.sequence!==void 0&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=w();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=e.sequence!==void 0&&e.sequence!==null?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg(e){return QueryPacketCommitmentRequest.decode(e.value)},toProto(e){return QueryPacketCommitmentRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentRequest",value:QueryPacketCommitmentRequest.encode(e).finish()}}};function T(){return{commitment:new Uint8Array,proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryPacketCommitmentResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",aminoType:"cosmos-sdk/QueryPacketCommitmentResponse",is(e){return e&&(e.$typeUrl===QueryPacketCommitmentResponse.typeUrl||(e.commitment instanceof Uint8Array||typeof e.commitment=="string")&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryPacketCommitmentResponse.typeUrl||(e.commitment instanceof Uint8Array||typeof e.commitment=="string")&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.commitment.length!==0&&n.uint32(10).bytes(e.commitment),e.proof.length!==0&&n.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=T();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.commitment=t.bytes();break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{commitment:s(e.commitment)?f(e.commitment):new Uint8Array,proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.commitment!==void 0&&(n.commitment=h(e.commitment!==void 0?e.commitment:new Uint8Array)),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=T();return n.commitment=e.commitment??new Uint8Array,n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryPacketCommitmentResponse.decode(e.value)},toProto(e){return QueryPacketCommitmentResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentResponse",value:QueryPacketCommitmentResponse.encode(e).finish()}}};function J(){return{portId:"",channelId:"",pagination:void 0}}export const QueryPacketCommitmentsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",aminoType:"cosmos-sdk/QueryPacketCommitmentsRequest",is(e){return e&&(e.$typeUrl===QueryPacketCommitmentsRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string")},isSDK(e){return e&&(e.$typeUrl===QueryPacketCommitmentsRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),e.pagination!==void 0&&p.encode(e.pagination,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=J();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.pagination=p.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):"",pagination:s(e.pagination)?p.fromJSON(e.pagination):void 0}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),e.pagination!==void 0&&(n.pagination=e.pagination?p.toJSON(e.pagination):void 0),n},fromPartial(e){const n=J();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.pagination=e.pagination!==void 0&&e.pagination!==null?p.fromPartial(e.pagination):void 0,n},fromProtoMsg(e){return QueryPacketCommitmentsRequest.decode(e.value)},toProto(e){return QueryPacketCommitmentsRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsRequest",value:QueryPacketCommitmentsRequest.encode(e).finish()}}};function M(){return{commitments:[],pagination:void 0,height:o.fromPartial({})}}export const QueryPacketCommitmentsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",aminoType:"cosmos-sdk/QueryPacketCommitmentsResponse",is(e){return e&&(e.$typeUrl===QueryPacketCommitmentsResponse.typeUrl||Array.isArray(e.commitments)&&(!e.commitments.length||l.is(e.commitments[0]))&&o.is(e.height))},isSDK(e){return e&&(e.$typeUrl===QueryPacketCommitmentsResponse.typeUrl||Array.isArray(e.commitments)&&(!e.commitments.length||l.isSDK(e.commitments[0]))&&o.isSDK(e.height))},encode(e,n=c.create()){for(const t of e.commitments)l.encode(t,n.uint32(10).fork()).ldelim();return e.pagination!==void 0&&d.encode(e.pagination,n.uint32(18).fork()).ldelim(),e.height!==void 0&&o.encode(e.height,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=M();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.commitments.push(l.decode(t,t.uint32()));break;case 2:r.pagination=d.decode(t,t.uint32());break;case 3:r.height=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{commitments:Array.isArray(e?.commitments)?e.commitments.map(n=>l.fromJSON(n)):[],pagination:s(e.pagination)?d.fromJSON(e.pagination):void 0,height:s(e.height)?o.fromJSON(e.height):void 0}},toJSON(e){const n={};return e.commitments?n.commitments=e.commitments.map(t=>t?l.toJSON(t):void 0):n.commitments=[],e.pagination!==void 0&&(n.pagination=e.pagination?d.toJSON(e.pagination):void 0),e.height!==void 0&&(n.height=e.height?o.toJSON(e.height):void 0),n},fromPartial(e){const n=M();return n.commitments=e.commitments?.map(t=>l.fromPartial(t))||[],n.pagination=e.pagination!==void 0&&e.pagination!==null?d.fromPartial(e.pagination):void 0,n.height=e.height!==void 0&&e.height!==null?o.fromPartial(e.height):void 0,n},fromProtoMsg(e){return QueryPacketCommitmentsResponse.decode(e.value)},toProto(e){return QueryPacketCommitmentsResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketCommitmentsResponse",value:QueryPacketCommitmentsResponse.encode(e).finish()}}};function D(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketReceiptRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",aminoType:"cosmos-sdk/QueryPacketReceiptRequest",is(e){return e&&(e.$typeUrl===QueryPacketReceiptRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string"&&typeof e.sequence=="bigint")},isSDK(e){return e&&(e.$typeUrl===QueryPacketReceiptRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string"&&typeof e.sequence=="bigint")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=D();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.sequence=t.uint64();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):"",sequence:s(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),e.sequence!==void 0&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=D();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=e.sequence!==void 0&&e.sequence!==null?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg(e){return QueryPacketReceiptRequest.decode(e.value)},toProto(e){return QueryPacketReceiptRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptRequest",value:QueryPacketReceiptRequest.encode(e).finish()}}};function K(){return{received:!1,proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryPacketReceiptResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",aminoType:"cosmos-sdk/QueryPacketReceiptResponse",is(e){return e&&(e.$typeUrl===QueryPacketReceiptResponse.typeUrl||typeof e.received=="boolean"&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryPacketReceiptResponse.typeUrl||typeof e.received=="boolean"&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.received===!0&&n.uint32(16).bool(e.received),e.proof.length!==0&&n.uint32(26).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(34).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=K();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 2:r.received=t.bool();break;case 3:r.proof=t.bytes();break;case 4:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{received:s(e.received)?!!e.received:!1,proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.received!==void 0&&(n.received=e.received),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=K();return n.received=e.received??!1,n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryPacketReceiptResponse.decode(e.value)},toProto(e){return QueryPacketReceiptResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketReceiptResponse",value:QueryPacketReceiptResponse.encode(e).finish()}}};function O(){return{portId:"",channelId:"",sequence:BigInt(0)}}export const QueryPacketAcknowledgementRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",aminoType:"cosmos-sdk/QueryPacketAcknowledgementRequest",is(e){return e&&(e.$typeUrl===QueryPacketAcknowledgementRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string"&&typeof e.sequence=="bigint")},isSDK(e){return e&&(e.$typeUrl===QueryPacketAcknowledgementRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string"&&typeof e.sequence=="bigint")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=O();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.sequence=t.uint64();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):"",sequence:s(e.sequence)?BigInt(e.sequence.toString()):BigInt(0)}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),e.sequence!==void 0&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){const n=O();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.sequence=e.sequence!==void 0&&e.sequence!==null?BigInt(e.sequence.toString()):BigInt(0),n},fromProtoMsg(e){return QueryPacketAcknowledgementRequest.decode(e.value)},toProto(e){return QueryPacketAcknowledgementRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementRequest",value:QueryPacketAcknowledgementRequest.encode(e).finish()}}};function _(){return{acknowledgement:new Uint8Array,proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryPacketAcknowledgementResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",aminoType:"cosmos-sdk/QueryPacketAcknowledgementResponse",is(e){return e&&(e.$typeUrl===QueryPacketAcknowledgementResponse.typeUrl||(e.acknowledgement instanceof Uint8Array||typeof e.acknowledgement=="string")&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryPacketAcknowledgementResponse.typeUrl||(e.acknowledgement instanceof Uint8Array||typeof e.acknowledgement=="string")&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.acknowledgement.length!==0&&n.uint32(10).bytes(e.acknowledgement),e.proof.length!==0&&n.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=_();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.acknowledgement=t.bytes();break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{acknowledgement:s(e.acknowledgement)?f(e.acknowledgement):new Uint8Array,proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.acknowledgement!==void 0&&(n.acknowledgement=h(e.acknowledgement!==void 0?e.acknowledgement:new Uint8Array)),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=_();return n.acknowledgement=e.acknowledgement??new Uint8Array,n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryPacketAcknowledgementResponse.decode(e.value)},toProto(e){return QueryPacketAcknowledgementResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementResponse",value:QueryPacketAcknowledgementResponse.encode(e).finish()}}};function b(){return{portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]}}export const QueryPacketAcknowledgementsRequest={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",aminoType:"cosmos-sdk/QueryPacketAcknowledgementsRequest",is(e){return e&&(e.$typeUrl===QueryPacketAcknowledgementsRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string"&&Array.isArray(e.packetCommitmentSequences)&&(!e.packetCommitmentSequences.length||typeof e.packetCommitmentSequences[0]=="bigint"))},isSDK(e){return e&&(e.$typeUrl===QueryPacketAcknowledgementsRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string"&&Array.isArray(e.packet_commitment_sequences)&&(!e.packet_commitment_sequences.length||typeof e.packet_commitment_sequences[0]=="bigint"))},encode(e,n=c.create()){e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),e.pagination!==void 0&&p.encode(e.pagination,n.uint32(26).fork()).ldelim(),n.uint32(34).fork();for(const t of e.packetCommitmentSequences)n.uint64(t);return n.ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=b();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:r.pagination=p.decode(t,t.uint32());break;case 4:if((i&7)===2){const g=t.uint32()+t.pos;for(;t.pos<g;)r.packetCommitmentSequences.push(t.uint64())}else r.packetCommitmentSequences.push(t.uint64());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):"",pagination:s(e.pagination)?p.fromJSON(e.pagination):void 0,packetCommitmentSequences:Array.isArray(e?.packetCommitmentSequences)?e.packetCommitmentSequences.map(n=>BigInt(n.toString())):[]}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),e.pagination!==void 0&&(n.pagination=e.pagination?p.toJSON(e.pagination):void 0),e.packetCommitmentSequences?n.packetCommitmentSequences=e.packetCommitmentSequences.map(t=>(t||BigInt(0)).toString()):n.packetCommitmentSequences=[],n},fromPartial(e){const n=b();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.pagination=e.pagination!==void 0&&e.pagination!==null?p.fromPartial(e.pagination):void 0,n.packetCommitmentSequences=e.packetCommitmentSequences?.map(t=>BigInt(t.toString()))||[],n},fromProtoMsg(e){return QueryPacketAcknowledgementsRequest.decode(e.value)},toProto(e){return QueryPacketAcknowledgementsRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest",value:QueryPacketAcknowledgementsRequest.encode(e).finish()}}};function W(){return{acknowledgements:[],pagination:void 0,height:o.fromPartial({})}}export const QueryPacketAcknowledgementsResponse={typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",aminoType:"cosmos-sdk/QueryPacketAcknowledgementsResponse",is(e){return e&&(e.$typeUrl===QueryPacketAcknowledgementsResponse.typeUrl||Array.isArray(e.acknowledgements)&&(!e.acknowledgements.length||l.is(e.acknowledgements[0]))&&o.is(e.height))},isSDK(e){return e&&(e.$typeUrl===QueryPacketAcknowledgementsResponse.typeUrl||Array.isArray(e.acknowledgements)&&(!e.acknowledgements.length||l.isSDK(e.acknowledgements[0]))&&o.isSDK(e.height))},encode(e,n=c.create()){for(const t of e.acknowledgements)l.encode(t,n.uint32(10).fork()).ldelim();return e.pagination!==void 0&&d.encode(e.pagination,n.uint32(18).fork()).ldelim(),e.height!==void 0&&o.encode(e.height,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=W();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.acknowledgements.push(l.decode(t,t.uint32()));break;case 2:r.pagination=d.decode(t,t.uint32());break;case 3:r.height=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{acknowledgements:Array.isArray(e?.acknowledgements)?e.acknowledgements.map(n=>l.fromJSON(n)):[],pagination:s(e.pagination)?d.fromJSON(e.pagination):void 0,height:s(e.height)?o.fromJSON(e.height):void 0}},toJSON(e){const n={};return e.acknowledgements?n.acknowledgements=e.acknowledgements.map(t=>t?l.toJSON(t):void 0):n.acknowledgements=[],e.pagination!==void 0&&(n.pagination=e.pagination?d.toJSON(e.pagination):void 0),e.height!==void 0&&(n.height=e.height?o.toJSON(e.height):void 0),n},fromPartial(e){const n=W();return n.acknowledgements=e.acknowledgements?.map(t=>l.fromPartial(t))||[],n.pagination=e.pagination!==void 0&&e.pagination!==null?d.fromPartial(e.pagination):void 0,n.height=e.height!==void 0&&e.height!==null?o.fromPartial(e.height):void 0,n},fromProtoMsg(e){return QueryPacketAcknowledgementsResponse.decode(e.value)},toProto(e){return QueryPacketAcknowledgementsResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse",value:QueryPacketAcknowledgementsResponse.encode(e).finish()}}};function $(){return{portId:"",channelId:"",packetCommitmentSequences:[]}}export const QueryUnreceivedPacketsRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",aminoType:"cosmos-sdk/QueryUnreceivedPacketsRequest",is(e){return e&&(e.$typeUrl===QueryUnreceivedPacketsRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string"&&Array.isArray(e.packetCommitmentSequences)&&(!e.packetCommitmentSequences.length||typeof e.packetCommitmentSequences[0]=="bigint"))},isSDK(e){return e&&(e.$typeUrl===QueryUnreceivedPacketsRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string"&&Array.isArray(e.packet_commitment_sequences)&&(!e.packet_commitment_sequences.length||typeof e.packet_commitment_sequences[0]=="bigint"))},encode(e,n=c.create()){e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),n.uint32(26).fork();for(const t of e.packetCommitmentSequences)n.uint64(t);return n.ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=$();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:if((i&7)===2){const g=t.uint32()+t.pos;for(;t.pos<g;)r.packetCommitmentSequences.push(t.uint64())}else r.packetCommitmentSequences.push(t.uint64());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):"",packetCommitmentSequences:Array.isArray(e?.packetCommitmentSequences)?e.packetCommitmentSequences.map(n=>BigInt(n.toString())):[]}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),e.packetCommitmentSequences?n.packetCommitmentSequences=e.packetCommitmentSequences.map(t=>(t||BigInt(0)).toString()):n.packetCommitmentSequences=[],n},fromPartial(e){const n=$();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.packetCommitmentSequences=e.packetCommitmentSequences?.map(t=>BigInt(t.toString()))||[],n},fromProtoMsg(e){return QueryUnreceivedPacketsRequest.decode(e.value)},toProto(e){return QueryUnreceivedPacketsRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsRequest",value:QueryUnreceivedPacketsRequest.encode(e).finish()}}};function E(){return{sequences:[],height:o.fromPartial({})}}export const QueryUnreceivedPacketsResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",aminoType:"cosmos-sdk/QueryUnreceivedPacketsResponse",is(e){return e&&(e.$typeUrl===QueryUnreceivedPacketsResponse.typeUrl||Array.isArray(e.sequences)&&(!e.sequences.length||typeof e.sequences[0]=="bigint")&&o.is(e.height))},isSDK(e){return e&&(e.$typeUrl===QueryUnreceivedPacketsResponse.typeUrl||Array.isArray(e.sequences)&&(!e.sequences.length||typeof e.sequences[0]=="bigint")&&o.isSDK(e.height))},encode(e,n=c.create()){n.uint32(10).fork();for(const t of e.sequences)n.uint64(t);return n.ldelim(),e.height!==void 0&&o.encode(e.height,n.uint32(18).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=E();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:if((i&7)===2){const g=t.uint32()+t.pos;for(;t.pos<g;)r.sequences.push(t.uint64())}else r.sequences.push(t.uint64());break;case 2:r.height=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{sequences:Array.isArray(e?.sequences)?e.sequences.map(n=>BigInt(n.toString())):[],height:s(e.height)?o.fromJSON(e.height):void 0}},toJSON(e){const n={};return e.sequences?n.sequences=e.sequences.map(t=>(t||BigInt(0)).toString()):n.sequences=[],e.height!==void 0&&(n.height=e.height?o.toJSON(e.height):void 0),n},fromPartial(e){const n=E();return n.sequences=e.sequences?.map(t=>BigInt(t.toString()))||[],n.height=e.height!==void 0&&e.height!==null?o.fromPartial(e.height):void 0,n},fromProtoMsg(e){return QueryUnreceivedPacketsResponse.decode(e.value)},toProto(e){return QueryUnreceivedPacketsResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryUnreceivedPacketsResponse",value:QueryUnreceivedPacketsResponse.encode(e).finish()}}};function F(){return{portId:"",channelId:"",packetAckSequences:[]}}export const QueryUnreceivedAcksRequest={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",aminoType:"cosmos-sdk/QueryUnreceivedAcksRequest",is(e){return e&&(e.$typeUrl===QueryUnreceivedAcksRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string"&&Array.isArray(e.packetAckSequences)&&(!e.packetAckSequences.length||typeof e.packetAckSequences[0]=="bigint"))},isSDK(e){return e&&(e.$typeUrl===QueryUnreceivedAcksRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string"&&Array.isArray(e.packet_ack_sequences)&&(!e.packet_ack_sequences.length||typeof e.packet_ack_sequences[0]=="bigint"))},encode(e,n=c.create()){e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),n.uint32(26).fork();for(const t of e.packetAckSequences)n.uint64(t);return n.ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=F();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;case 3:if((i&7)===2){const g=t.uint32()+t.pos;for(;t.pos<g;)r.packetAckSequences.push(t.uint64())}else r.packetAckSequences.push(t.uint64());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):"",packetAckSequences:Array.isArray(e?.packetAckSequences)?e.packetAckSequences.map(n=>BigInt(n.toString())):[]}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),e.packetAckSequences?n.packetAckSequences=e.packetAckSequences.map(t=>(t||BigInt(0)).toString()):n.packetAckSequences=[],n},fromPartial(e){const n=F();return n.portId=e.portId??"",n.channelId=e.channelId??"",n.packetAckSequences=e.packetAckSequences?.map(t=>BigInt(t.toString()))||[],n},fromProtoMsg(e){return QueryUnreceivedAcksRequest.decode(e.value)},toProto(e){return QueryUnreceivedAcksRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksRequest",value:QueryUnreceivedAcksRequest.encode(e).finish()}}};function z(){return{sequences:[],height:o.fromPartial({})}}export const QueryUnreceivedAcksResponse={typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",aminoType:"cosmos-sdk/QueryUnreceivedAcksResponse",is(e){return e&&(e.$typeUrl===QueryUnreceivedAcksResponse.typeUrl||Array.isArray(e.sequences)&&(!e.sequences.length||typeof e.sequences[0]=="bigint")&&o.is(e.height))},isSDK(e){return e&&(e.$typeUrl===QueryUnreceivedAcksResponse.typeUrl||Array.isArray(e.sequences)&&(!e.sequences.length||typeof e.sequences[0]=="bigint")&&o.isSDK(e.height))},encode(e,n=c.create()){n.uint32(10).fork();for(const t of e.sequences)n.uint64(t);return n.ldelim(),e.height!==void 0&&o.encode(e.height,n.uint32(18).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=z();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:if((i&7)===2){const g=t.uint32()+t.pos;for(;t.pos<g;)r.sequences.push(t.uint64())}else r.sequences.push(t.uint64());break;case 2:r.height=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{sequences:Array.isArray(e?.sequences)?e.sequences.map(n=>BigInt(n.toString())):[],height:s(e.height)?o.fromJSON(e.height):void 0}},toJSON(e){const n={};return e.sequences?n.sequences=e.sequences.map(t=>(t||BigInt(0)).toString()):n.sequences=[],e.height!==void 0&&(n.height=e.height?o.toJSON(e.height):void 0),n},fromPartial(e){const n=z();return n.sequences=e.sequences?.map(t=>BigInt(t.toString()))||[],n.height=e.height!==void 0&&e.height!==null?o.fromPartial(e.height):void 0,n},fromProtoMsg(e){return QueryUnreceivedAcksResponse.decode(e.value)},toProto(e){return QueryUnreceivedAcksResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryUnreceivedAcksResponse",value:QueryUnreceivedAcksResponse.encode(e).finish()}}};function G(){return{portId:"",channelId:""}}export const QueryNextSequenceReceiveRequest={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",aminoType:"cosmos-sdk/QueryNextSequenceReceiveRequest",is(e){return e&&(e.$typeUrl===QueryNextSequenceReceiveRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string")},isSDK(e){return e&&(e.$typeUrl===QueryNextSequenceReceiveRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=G();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):""}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),n},fromPartial(e){const n=G();return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg(e){return QueryNextSequenceReceiveRequest.decode(e.value)},toProto(e){return QueryNextSequenceReceiveRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveRequest",value:QueryNextSequenceReceiveRequest.encode(e).finish()}}};function L(){return{nextSequenceReceive:BigInt(0),proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryNextSequenceReceiveResponse={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",aminoType:"cosmos-sdk/QueryNextSequenceReceiveResponse",is(e){return e&&(e.$typeUrl===QueryNextSequenceReceiveResponse.typeUrl||typeof e.nextSequenceReceive=="bigint"&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryNextSequenceReceiveResponse.typeUrl||typeof e.next_sequence_receive=="bigint"&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.nextSequenceReceive!==BigInt(0)&&n.uint32(8).uint64(e.nextSequenceReceive),e.proof.length!==0&&n.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=L();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.nextSequenceReceive=t.uint64();break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{nextSequenceReceive:s(e.nextSequenceReceive)?BigInt(e.nextSequenceReceive.toString()):BigInt(0),proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.nextSequenceReceive!==void 0&&(n.nextSequenceReceive=(e.nextSequenceReceive||BigInt(0)).toString()),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=L();return n.nextSequenceReceive=e.nextSequenceReceive!==void 0&&e.nextSequenceReceive!==null?BigInt(e.nextSequenceReceive.toString()):BigInt(0),n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryNextSequenceReceiveResponse.decode(e.value)},toProto(e){return QueryNextSequenceReceiveResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryNextSequenceReceiveResponse",value:QueryNextSequenceReceiveResponse.encode(e).finish()}}};function V(){return{portId:"",channelId:""}}export const QueryNextSequenceSendRequest={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceSendRequest",aminoType:"cosmos-sdk/QueryNextSequenceSendRequest",is(e){return e&&(e.$typeUrl===QueryNextSequenceSendRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string")},isSDK(e){return e&&(e.$typeUrl===QueryNextSequenceSendRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=V();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):""}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),n},fromPartial(e){const n=V();return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg(e){return QueryNextSequenceSendRequest.decode(e.value)},toProto(e){return QueryNextSequenceSendRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryNextSequenceSendRequest",value:QueryNextSequenceSendRequest.encode(e).finish()}}};function X(){return{nextSequenceSend:BigInt(0),proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryNextSequenceSendResponse={typeUrl:"/ibc.core.channel.v1.QueryNextSequenceSendResponse",aminoType:"cosmos-sdk/QueryNextSequenceSendResponse",is(e){return e&&(e.$typeUrl===QueryNextSequenceSendResponse.typeUrl||typeof e.nextSequenceSend=="bigint"&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryNextSequenceSendResponse.typeUrl||typeof e.next_sequence_send=="bigint"&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.nextSequenceSend!==BigInt(0)&&n.uint32(8).uint64(e.nextSequenceSend),e.proof.length!==0&&n.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=X();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.nextSequenceSend=t.uint64();break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{nextSequenceSend:s(e.nextSequenceSend)?BigInt(e.nextSequenceSend.toString()):BigInt(0),proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.nextSequenceSend!==void 0&&(n.nextSequenceSend=(e.nextSequenceSend||BigInt(0)).toString()),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=X();return n.nextSequenceSend=e.nextSequenceSend!==void 0&&e.nextSequenceSend!==null?BigInt(e.nextSequenceSend.toString()):BigInt(0),n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryNextSequenceSendResponse.decode(e.value)},toProto(e){return QueryNextSequenceSendResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryNextSequenceSendResponse",value:QueryNextSequenceSendResponse.encode(e).finish()}}};function Y(){return{portId:"",channelId:""}}export const QueryUpgradeErrorRequest={typeUrl:"/ibc.core.channel.v1.QueryUpgradeErrorRequest",aminoType:"cosmos-sdk/QueryUpgradeErrorRequest",is(e){return e&&(e.$typeUrl===QueryUpgradeErrorRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string")},isSDK(e){return e&&(e.$typeUrl===QueryUpgradeErrorRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=Y();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):""}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),n},fromPartial(e){const n=Y();return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg(e){return QueryUpgradeErrorRequest.decode(e.value)},toProto(e){return QueryUpgradeErrorRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryUpgradeErrorRequest",value:QueryUpgradeErrorRequest.encode(e).finish()}}};function Z(){return{errorReceipt:R.fromPartial({}),proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryUpgradeErrorResponse={typeUrl:"/ibc.core.channel.v1.QueryUpgradeErrorResponse",aminoType:"cosmos-sdk/QueryUpgradeErrorResponse",is(e){return e&&(e.$typeUrl===QueryUpgradeErrorResponse.typeUrl||R.is(e.errorReceipt)&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryUpgradeErrorResponse.typeUrl||R.isSDK(e.error_receipt)&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.errorReceipt!==void 0&&R.encode(e.errorReceipt,n.uint32(10).fork()).ldelim(),e.proof.length!==0&&n.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=Z();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.errorReceipt=R.decode(t,t.uint32());break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{errorReceipt:s(e.errorReceipt)?R.fromJSON(e.errorReceipt):void 0,proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.errorReceipt!==void 0&&(n.errorReceipt=e.errorReceipt?R.toJSON(e.errorReceipt):void 0),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=Z();return n.errorReceipt=e.errorReceipt!==void 0&&e.errorReceipt!==null?R.fromPartial(e.errorReceipt):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryUpgradeErrorResponse.decode(e.value)},toProto(e){return QueryUpgradeErrorResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryUpgradeErrorResponse",value:QueryUpgradeErrorResponse.encode(e).finish()}}};function j(){return{portId:"",channelId:""}}export const QueryUpgradeRequest={typeUrl:"/ibc.core.channel.v1.QueryUpgradeRequest",aminoType:"cosmos-sdk/QueryUpgradeRequest",is(e){return e&&(e.$typeUrl===QueryUpgradeRequest.typeUrl||typeof e.portId=="string"&&typeof e.channelId=="string")},isSDK(e){return e&&(e.$typeUrl===QueryUpgradeRequest.typeUrl||typeof e.port_id=="string"&&typeof e.channel_id=="string")},encode(e,n=c.create()){return e.portId!==""&&n.uint32(10).string(e.portId),e.channelId!==""&&n.uint32(18).string(e.channelId),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=j();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.portId=t.string();break;case 2:r.channelId=t.string();break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{portId:s(e.portId)?String(e.portId):"",channelId:s(e.channelId)?String(e.channelId):""}},toJSON(e){const n={};return e.portId!==void 0&&(n.portId=e.portId),e.channelId!==void 0&&(n.channelId=e.channelId),n},fromPartial(e){const n=j();return n.portId=e.portId??"",n.channelId=e.channelId??"",n},fromProtoMsg(e){return QueryUpgradeRequest.decode(e.value)},toProto(e){return QueryUpgradeRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryUpgradeRequest",value:QueryUpgradeRequest.encode(e).finish()}}};function ee(){return{upgrade:m.fromPartial({}),proof:new Uint8Array,proofHeight:o.fromPartial({})}}export const QueryUpgradeResponse={typeUrl:"/ibc.core.channel.v1.QueryUpgradeResponse",aminoType:"cosmos-sdk/QueryUpgradeResponse",is(e){return e&&(e.$typeUrl===QueryUpgradeResponse.typeUrl||m.is(e.upgrade)&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.is(e.proofHeight))},isSDK(e){return e&&(e.$typeUrl===QueryUpgradeResponse.typeUrl||m.isSDK(e.upgrade)&&(e.proof instanceof Uint8Array||typeof e.proof=="string")&&o.isSDK(e.proof_height))},encode(e,n=c.create()){return e.upgrade!==void 0&&m.encode(e.upgrade,n.uint32(10).fork()).ldelim(),e.proof.length!==0&&n.uint32(18).bytes(e.proof),e.proofHeight!==void 0&&o.encode(e.proofHeight,n.uint32(26).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=ee();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.upgrade=m.decode(t,t.uint32());break;case 2:r.proof=t.bytes();break;case 3:r.proofHeight=o.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{upgrade:s(e.upgrade)?m.fromJSON(e.upgrade):void 0,proof:s(e.proof)?f(e.proof):new Uint8Array,proofHeight:s(e.proofHeight)?o.fromJSON(e.proofHeight):void 0}},toJSON(e){const n={};return e.upgrade!==void 0&&(n.upgrade=e.upgrade?m.toJSON(e.upgrade):void 0),e.proof!==void 0&&(n.proof=h(e.proof!==void 0?e.proof:new Uint8Array)),e.proofHeight!==void 0&&(n.proofHeight=e.proofHeight?o.toJSON(e.proofHeight):void 0),n},fromPartial(e){const n=ee();return n.upgrade=e.upgrade!==void 0&&e.upgrade!==null?m.fromPartial(e.upgrade):void 0,n.proof=e.proof??new Uint8Array,n.proofHeight=e.proofHeight!==void 0&&e.proofHeight!==null?o.fromPartial(e.proofHeight):void 0,n},fromProtoMsg(e){return QueryUpgradeResponse.decode(e.value)},toProto(e){return QueryUpgradeResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryUpgradeResponse",value:QueryUpgradeResponse.encode(e).finish()}}};function ne(){return{}}export const QueryChannelParamsRequest={typeUrl:"/ibc.core.channel.v1.QueryChannelParamsRequest",aminoType:"cosmos-sdk/QueryChannelParamsRequest",is(e){return e&&e.$typeUrl===QueryChannelParamsRequest.typeUrl},isSDK(e){return e&&e.$typeUrl===QueryChannelParamsRequest.typeUrl},encode(e,n=c.create()){return n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=ne();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){default:t.skipType(i&7);break}}return r},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return ne()},fromProtoMsg(e){return QueryChannelParamsRequest.decode(e.value)},toProto(e){return QueryChannelParamsRequest.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelParamsRequest",value:QueryChannelParamsRequest.encode(e).finish()}}};function te(){return{params:void 0}}export const QueryChannelParamsResponse={typeUrl:"/ibc.core.channel.v1.QueryChannelParamsResponse",aminoType:"cosmos-sdk/QueryChannelParamsResponse",is(e){return e&&e.$typeUrl===QueryChannelParamsResponse.typeUrl},isSDK(e){return e&&e.$typeUrl===QueryChannelParamsResponse.typeUrl},encode(e,n=c.create()){return e.params!==void 0&&S.encode(e.params,n.uint32(10).fork()).ldelim(),n},decode(e,n){const t=e instanceof a?e:new a(e);let u=n===void 0?t.len:t.pos+n;const r=te();for(;t.pos<u;){const i=t.uint32();switch(i>>>3){case 1:r.params=S.decode(t,t.uint32());break;default:t.skipType(i&7);break}}return r},fromJSON(e){return{params:s(e.params)?S.fromJSON(e.params):void 0}},toJSON(e){const n={};return e.params!==void 0&&(n.params=e.params?S.toJSON(e.params):void 0),n},fromPartial(e){const n=te();return n.params=e.params!==void 0&&e.params!==null?S.fromPartial(e.params):void 0,n},fromProtoMsg(e){return QueryChannelParamsResponse.decode(e.value)},toProto(e){return QueryChannelParamsResponse.encode(e).finish()},toProtoMsg(e){return{typeUrl:"/ibc.core.channel.v1.QueryChannelParamsResponse",value:QueryChannelParamsResponse.encode(e).finish()}}};
2
+ //# sourceMappingURL=query.js.map