@iconlake/client 0.0.3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (848) hide show
  1. package/client.ts +13 -12
  2. package/cosmos.auth.v1beta1/index.ts +0 -0
  3. package/cosmos.auth.v1beta1/module.ts +2 -0
  4. package/cosmos.auth.v1beta1/registry.ts +0 -0
  5. package/cosmos.auth.v1beta1/rest.ts +113 -3
  6. package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
  7. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  8. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
  9. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
  10. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
  11. package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  12. package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  13. package/cosmos.auth.v1beta1/types.ts +2 -0
  14. package/cosmos.authz.v1beta1/index.ts +0 -0
  15. package/cosmos.authz.v1beta1/module.ts +24 -24
  16. package/cosmos.authz.v1beta1/registry.ts +2 -2
  17. package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
  18. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
  19. package/cosmos.authz.v1beta1/types.ts +0 -0
  20. package/cosmos.bank.v1beta1/index.ts +0 -0
  21. package/cosmos.bank.v1beta1/module.ts +0 -0
  22. package/cosmos.bank.v1beta1/registry.ts +0 -0
  23. package/cosmos.bank.v1beta1/rest.ts +99 -6
  24. package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
  25. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
  26. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
  27. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
  28. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
  29. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
  30. package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  31. package/cosmos.bank.v1beta1/types.ts +0 -0
  32. package/cosmos.base.node.v1beta1/index.ts +0 -0
  33. package/cosmos.base.node.v1beta1/module.ts +0 -0
  34. package/cosmos.base.node.v1beta1/registry.ts +0 -0
  35. package/cosmos.base.node.v1beta1/types.ts +0 -0
  36. package/cosmos.base.tendermint.v1beta1/index.ts +0 -0
  37. package/cosmos.base.tendermint.v1beta1/module.ts +0 -0
  38. package/cosmos.base.tendermint.v1beta1/registry.ts +0 -0
  39. package/cosmos.base.tendermint.v1beta1/rest.ts +21 -30
  40. package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
  41. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
  42. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +1 -1
  43. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1 -1
  44. package/cosmos.base.tendermint.v1beta1/types.ts +0 -0
  45. package/cosmos.consensus.v1/index.ts +6 -0
  46. package/cosmos.consensus.v1/module.ts +129 -0
  47. package/cosmos.consensus.v1/registry.ts +9 -0
  48. package/cosmos.consensus.v1/rest.ts +268 -0
  49. package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
  50. package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
  51. package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
  52. package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
  53. package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
  54. package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
  55. package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
  56. package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
  57. package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
  58. package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
  59. package/cosmos.consensus.v1/types.ts +5 -0
  60. package/cosmos.crisis.v1beta1/index.ts +0 -0
  61. package/cosmos.crisis.v1beta1/module.ts +34 -1
  62. package/cosmos.crisis.v1beta1/registry.ts +2 -0
  63. package/cosmos.crisis.v1beta1/rest.ts +19 -0
  64. package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
  65. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
  66. package/cosmos.crisis.v1beta1/types.ts +0 -0
  67. package/cosmos.distribution.v1beta1/index.ts +0 -0
  68. package/cosmos.distribution.v1beta1/module.ts +79 -13
  69. package/cosmos.distribution.v1beta1/registry.ts +6 -2
  70. package/cosmos.distribution.v1beta1/rest.ts +66 -7
  71. package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
  72. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
  73. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
  74. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
  75. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
  76. package/cosmos.distribution.v1beta1/types.ts +0 -0
  77. package/cosmos.evidence.v1beta1/index.ts +0 -0
  78. package/cosmos.evidence.v1beta1/module.ts +0 -0
  79. package/cosmos.evidence.v1beta1/registry.ts +0 -0
  80. package/cosmos.evidence.v1beta1/rest.ts +4 -3
  81. package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
  82. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
  83. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
  84. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
  85. package/cosmos.evidence.v1beta1/types.ts +0 -0
  86. package/cosmos.feegrant.v1beta1/index.ts +0 -0
  87. package/cosmos.feegrant.v1beta1/module.ts +24 -24
  88. package/cosmos.feegrant.v1beta1/registry.ts +2 -2
  89. package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
  90. package/cosmos.feegrant.v1beta1/types.ts +0 -0
  91. package/cosmos.gov.v1/index.ts +0 -0
  92. package/cosmos.gov.v1/module.ts +67 -32
  93. package/cosmos.gov.v1/registry.ts +4 -2
  94. package/cosmos.gov.v1/rest.ts +155 -41
  95. package/cosmos.gov.v1/types/amino/amino.ts +2 -0
  96. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
  97. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
  98. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
  99. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
  100. package/cosmos.gov.v1/types.ts +2 -0
  101. package/cosmos.gov.v1beta1/index.ts +0 -0
  102. package/cosmos.gov.v1beta1/module.ts +29 -29
  103. package/cosmos.gov.v1beta1/registry.ts +2 -2
  104. package/cosmos.gov.v1beta1/rest.ts +65 -96
  105. package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
  106. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
  107. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
  108. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
  109. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
  110. package/cosmos.gov.v1beta1/types.ts +0 -0
  111. package/cosmos.group.v1/index.ts +0 -0
  112. package/cosmos.group.v1/module.ts +160 -158
  113. package/cosmos.group.v1/registry.ts +14 -14
  114. package/cosmos.group.v1/rest.ts +68 -9
  115. package/cosmos.group.v1/types/amino/amino.ts +2 -0
  116. package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
  117. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +155 -5
  118. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
  119. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
  120. package/cosmos.group.v1/types.ts +2 -0
  121. package/cosmos.mint.v1beta1/index.ts +0 -0
  122. package/cosmos.mint.v1beta1/module.ts +0 -0
  123. package/cosmos.mint.v1beta1/registry.ts +0 -0
  124. package/cosmos.mint.v1beta1/rest.ts +9 -1
  125. package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
  126. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
  127. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
  128. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
  129. package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  130. package/cosmos.mint.v1beta1/types.ts +0 -0
  131. package/cosmos.nft.v1beta1/index.ts +0 -0
  132. package/cosmos.nft.v1beta1/module.ts +0 -0
  133. package/cosmos.nft.v1beta1/registry.ts +0 -0
  134. package/cosmos.nft.v1beta1/rest.ts +18 -22
  135. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
  136. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
  137. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
  138. package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  139. package/cosmos.nft.v1beta1/types.ts +0 -0
  140. package/cosmos.params.v1beta1/index.ts +0 -0
  141. package/cosmos.params.v1beta1/module.ts +0 -0
  142. package/cosmos.params.v1beta1/registry.ts +0 -0
  143. package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
  144. package/cosmos.params.v1beta1/types.ts +0 -0
  145. package/cosmos.slashing.v1beta1/index.ts +0 -0
  146. package/cosmos.slashing.v1beta1/module.ts +0 -0
  147. package/cosmos.slashing.v1beta1/registry.ts +0 -0
  148. package/cosmos.slashing.v1beta1/rest.ts +8 -0
  149. package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
  150. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
  151. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
  152. package/cosmos.slashing.v1beta1/types.ts +0 -0
  153. package/cosmos.staking.v1beta1/index.ts +0 -0
  154. package/cosmos.staking.v1beta1/module.ts +66 -64
  155. package/cosmos.staking.v1beta1/registry.ts +6 -6
  156. package/cosmos.staking.v1beta1/rest.ts +51 -10
  157. package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
  158. package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
  159. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
  160. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
  161. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
  162. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
  163. package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
  164. package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +1 -1
  165. package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
  166. package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1 -1
  167. package/cosmos.staking.v1beta1/types.ts +2 -0
  168. package/cosmos.tx.v1beta1/index.ts +0 -0
  169. package/cosmos.tx.v1beta1/module.ts +0 -0
  170. package/cosmos.tx.v1beta1/registry.ts +0 -0
  171. package/cosmos.tx.v1beta1/rest.ts +180 -19
  172. package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
  173. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
  174. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +704 -333
  175. package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +1 -1
  176. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
  177. package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1 -1
  178. package/cosmos.tx.v1beta1/types.ts +0 -0
  179. package/cosmos.upgrade.v1beta1/index.ts +0 -0
  180. package/cosmos.upgrade.v1beta1/module.ts +0 -0
  181. package/cosmos.upgrade.v1beta1/registry.ts +0 -0
  182. package/cosmos.upgrade.v1beta1/rest.ts +0 -1
  183. package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
  184. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
  185. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  186. package/cosmos.upgrade.v1beta1/types.ts +0 -0
  187. package/cosmos.vesting.v1beta1/index.ts +0 -0
  188. package/cosmos.vesting.v1beta1/module.ts +24 -24
  189. package/cosmos.vesting.v1beta1/registry.ts +2 -2
  190. package/cosmos.vesting.v1beta1/rest.ts +4 -1
  191. package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
  192. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
  193. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +2 -0
  194. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +6 -1
  195. package/cosmos.vesting.v1beta1/types.ts +0 -0
  196. package/dist/client.js +135 -0
  197. package/dist/cosmos.auth.v1beta1/index.js +5 -0
  198. package/dist/cosmos.auth.v1beta1/module.js +64 -0
  199. package/dist/cosmos.auth.v1beta1/registry.js +2 -0
  200. package/dist/cosmos.auth.v1beta1/rest.js +228 -0
  201. package/dist/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
  202. package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +344 -0
  203. package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.js +67 -0
  204. package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +969 -0
  205. package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
  206. package/dist/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  207. package/dist/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  208. package/dist/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
  209. package/dist/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  210. package/dist/cosmos.auth.v1beta1/types/gogoproto/gogo.js +2 -0
  211. package/dist/cosmos.auth.v1beta1/types/google/api/annotations.js +2 -0
  212. package/dist/cosmos.auth.v1beta1/types/google/api/http.js +260 -0
  213. package/dist/cosmos.auth.v1beta1/types/google/protobuf/any.js +99 -0
  214. package/dist/cosmos.auth.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  215. package/dist/cosmos.auth.v1beta1/types.js +5 -0
  216. package/dist/cosmos.authz.v1beta1/index.js +5 -0
  217. package/dist/cosmos.authz.v1beta1/module.js +140 -0
  218. package/dist/cosmos.authz.v1beta1/registry.js +9 -0
  219. package/dist/cosmos.authz.v1beta1/rest.js +131 -0
  220. package/dist/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
  221. package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.js +244 -0
  222. package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.js +128 -0
  223. package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.js +54 -0
  224. package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.js +394 -0
  225. package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.js +362 -0
  226. package/dist/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  227. package/dist/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  228. package/dist/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  229. package/dist/cosmos.authz.v1beta1/types/gogoproto/gogo.js +2 -0
  230. package/dist/cosmos.authz.v1beta1/types/google/api/annotations.js +2 -0
  231. package/dist/cosmos.authz.v1beta1/types/google/api/http.js +260 -0
  232. package/dist/cosmos.authz.v1beta1/types/google/protobuf/any.js +99 -0
  233. package/dist/cosmos.authz.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  234. package/dist/cosmos.authz.v1beta1/types/google/protobuf/timestamp.js +84 -0
  235. package/dist/cosmos.authz.v1beta1/types.js +7 -0
  236. package/dist/cosmos.bank.v1beta1/index.js +5 -0
  237. package/dist/cosmos.bank.v1beta1/module.js +125 -0
  238. package/dist/cosmos.bank.v1beta1/registry.js +7 -0
  239. package/dist/cosmos.bank.v1beta1/rest.js +253 -0
  240. package/dist/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
  241. package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +66 -0
  242. package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.js +455 -0
  243. package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +170 -0
  244. package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1243 -0
  245. package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +424 -0
  246. package/dist/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  247. package/dist/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  248. package/dist/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  249. package/dist/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
  250. package/dist/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  251. package/dist/cosmos.bank.v1beta1/types/gogoproto/gogo.js +2 -0
  252. package/dist/cosmos.bank.v1beta1/types/google/api/annotations.js +2 -0
  253. package/dist/cosmos.bank.v1beta1/types/google/api/http.js +260 -0
  254. package/dist/cosmos.bank.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  255. package/dist/cosmos.bank.v1beta1/types.js +11 -0
  256. package/dist/cosmos.base.node.v1beta1/index.js +5 -0
  257. package/dist/cosmos.base.node.v1beta1/module.js +55 -0
  258. package/dist/cosmos.base.node.v1beta1/registry.js +2 -0
  259. package/dist/cosmos.base.node.v1beta1/rest.js +100 -0
  260. package/dist/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.js +91 -0
  261. package/dist/cosmos.base.node.v1beta1/types/google/api/annotations.js +2 -0
  262. package/dist/cosmos.base.node.v1beta1/types/google/api/http.js +260 -0
  263. package/dist/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  264. package/dist/cosmos.base.node.v1beta1/types.js +1 -0
  265. package/dist/cosmos.base.tendermint.v1beta1/index.js +5 -0
  266. package/dist/cosmos.base.tendermint.v1beta1/module.js +70 -0
  267. package/dist/cosmos.base.tendermint.v1beta1/registry.js +2 -0
  268. package/dist/cosmos.base.tendermint.v1beta1/rest.js +209 -0
  269. package/dist/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
  270. package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  271. package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.js +1281 -0
  272. package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.js +350 -0
  273. package/dist/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  274. package/dist/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.js +2 -0
  275. package/dist/cosmos.base.tendermint.v1beta1/types/google/api/annotations.js +2 -0
  276. package/dist/cosmos.base.tendermint.v1beta1/types/google/api/http.js +260 -0
  277. package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.js +99 -0
  278. package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  279. package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.js +84 -0
  280. package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.js +100 -0
  281. package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.js +356 -0
  282. package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.js +352 -0
  283. package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.js +86 -0
  284. package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.js +343 -0
  285. package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.js +1207 -0
  286. package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.js +254 -0
  287. package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.js +133 -0
  288. package/dist/cosmos.base.tendermint.v1beta1/types.js +8 -0
  289. package/dist/cosmos.consensus.v1/index.js +5 -0
  290. package/dist/cosmos.consensus.v1/module.js +81 -0
  291. package/dist/cosmos.consensus.v1/registry.js +5 -0
  292. package/dist/cosmos.consensus.v1/rest.js +100 -0
  293. package/dist/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
  294. package/dist/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
  295. package/dist/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
  296. package/dist/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
  297. package/dist/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
  298. package/dist/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
  299. package/dist/cosmos.consensus.v1/types/google/api/http.js +260 -0
  300. package/dist/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
  301. package/dist/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
  302. package/dist/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
  303. package/dist/cosmos.consensus.v1/types.js +1 -0
  304. package/dist/cosmos.crisis.v1beta1/index.js +5 -0
  305. package/dist/cosmos.crisis.v1beta1/module.js +104 -0
  306. package/dist/cosmos.crisis.v1beta1/registry.js +7 -0
  307. package/dist/cosmos.crisis.v1beta1/rest.js +83 -0
  308. package/dist/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
  309. package/dist/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  310. package/dist/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.js +51 -0
  311. package/dist/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +206 -0
  312. package/dist/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  313. package/dist/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  314. package/dist/cosmos.crisis.v1beta1/types/gogoproto/gogo.js +2 -0
  315. package/dist/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  316. package/dist/cosmos.crisis.v1beta1/types.js +1 -0
  317. package/dist/cosmos.distribution.v1beta1/index.js +5 -0
  318. package/dist/cosmos.distribution.v1beta1/module.js +235 -0
  319. package/dist/cosmos.distribution.v1beta1/registry.js +15 -0
  320. package/dist/cosmos.distribution.v1beta1/rest.js +228 -0
  321. package/dist/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
  322. package/dist/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  323. package/dist/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  324. package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.js +737 -0
  325. package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.js +656 -0
  326. package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +1046 -0
  327. package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +595 -0
  328. package/dist/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  329. package/dist/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  330. package/dist/cosmos.distribution.v1beta1/types/gogoproto/gogo.js +2 -0
  331. package/dist/cosmos.distribution.v1beta1/types/google/api/annotations.js +2 -0
  332. package/dist/cosmos.distribution.v1beta1/types/google/api/http.js +260 -0
  333. package/dist/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  334. package/dist/cosmos.distribution.v1beta1/types.js +20 -0
  335. package/dist/cosmos.evidence.v1beta1/index.js +5 -0
  336. package/dist/cosmos.evidence.v1beta1/module.js +84 -0
  337. package/dist/cosmos.evidence.v1beta1/registry.js +5 -0
  338. package/dist/cosmos.evidence.v1beta1/rest.js +116 -0
  339. package/dist/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
  340. package/dist/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  341. package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.js +124 -0
  342. package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.js +50 -0
  343. package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +265 -0
  344. package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.js +154 -0
  345. package/dist/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  346. package/dist/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  347. package/dist/cosmos.evidence.v1beta1/types/gogoproto/gogo.js +2 -0
  348. package/dist/cosmos.evidence.v1beta1/types/google/api/annotations.js +2 -0
  349. package/dist/cosmos.evidence.v1beta1/types/google/api/http.js +260 -0
  350. package/dist/cosmos.evidence.v1beta1/types/google/protobuf/any.js +99 -0
  351. package/dist/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  352. package/dist/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.js +84 -0
  353. package/dist/cosmos.evidence.v1beta1/types.js +2 -0
  354. package/dist/cosmos.feegrant.v1beta1/index.js +5 -0
  355. package/dist/cosmos.feegrant.v1beta1/module.js +113 -0
  356. package/dist/cosmos.feegrant.v1beta1/registry.js +7 -0
  357. package/dist/cosmos.feegrant.v1beta1/rest.js +130 -0
  358. package/dist/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
  359. package/dist/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  360. package/dist/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  361. package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.js +307 -0
  362. package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.js +52 -0
  363. package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.js +357 -0
  364. package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.js +205 -0
  365. package/dist/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  366. package/dist/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  367. package/dist/cosmos.feegrant.v1beta1/types/gogoproto/gogo.js +2 -0
  368. package/dist/cosmos.feegrant.v1beta1/types/google/api/annotations.js +2 -0
  369. package/dist/cosmos.feegrant.v1beta1/types/google/api/http.js +260 -0
  370. package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/any.js +99 -0
  371. package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  372. package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/duration.js +84 -0
  373. package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.js +84 -0
  374. package/dist/cosmos.feegrant.v1beta1/types.js +5 -0
  375. package/dist/cosmos.gov.v1/index.js +5 -0
  376. package/dist/cosmos.gov.v1/module.js +192 -0
  377. package/dist/cosmos.gov.v1/registry.js +13 -0
  378. package/dist/cosmos.gov.v1/rest.js +242 -0
  379. package/dist/cosmos.gov.v1/types/amino/amino.js +2 -0
  380. package/dist/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  381. package/dist/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.js +192 -0
  382. package/dist/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +174 -0
  383. package/dist/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +945 -0
  384. package/dist/cosmos.gov.v1/types/cosmos/gov/v1/query.js +928 -0
  385. package/dist/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +701 -0
  386. package/dist/cosmos.gov.v1/types/cosmos/msg/v1/msg.js +2 -0
  387. package/dist/cosmos.gov.v1/types/cosmos_proto/cosmos.js +171 -0
  388. package/dist/cosmos.gov.v1/types/gogoproto/gogo.js +2 -0
  389. package/dist/cosmos.gov.v1/types/google/api/annotations.js +2 -0
  390. package/dist/cosmos.gov.v1/types/google/api/http.js +260 -0
  391. package/dist/cosmos.gov.v1/types/google/protobuf/any.js +99 -0
  392. package/dist/cosmos.gov.v1/types/google/protobuf/descriptor.js +2830 -0
  393. package/dist/cosmos.gov.v1/types/google/protobuf/duration.js +84 -0
  394. package/dist/cosmos.gov.v1/types/google/protobuf/timestamp.js +84 -0
  395. package/dist/cosmos.gov.v1/types.js +10 -0
  396. package/dist/cosmos.gov.v1beta1/index.js +5 -0
  397. package/dist/cosmos.gov.v1beta1/module.js +169 -0
  398. package/dist/cosmos.gov.v1beta1/registry.js +11 -0
  399. package/dist/cosmos.gov.v1beta1/rest.js +242 -0
  400. package/dist/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
  401. package/dist/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  402. package/dist/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  403. package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.js +162 -0
  404. package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.js +832 -0
  405. package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.js +917 -0
  406. package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.js +467 -0
  407. package/dist/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  408. package/dist/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  409. package/dist/cosmos.gov.v1beta1/types/gogoproto/gogo.js +2 -0
  410. package/dist/cosmos.gov.v1beta1/types/google/api/annotations.js +2 -0
  411. package/dist/cosmos.gov.v1beta1/types/google/api/http.js +260 -0
  412. package/dist/cosmos.gov.v1beta1/types/google/protobuf/any.js +99 -0
  413. package/dist/cosmos.gov.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  414. package/dist/cosmos.gov.v1beta1/types/google/protobuf/duration.js +84 -0
  415. package/dist/cosmos.gov.v1beta1/types/google/protobuf/timestamp.js +84 -0
  416. package/dist/cosmos.gov.v1beta1/types.js +10 -0
  417. package/dist/cosmos.group.v1/index.js +5 -0
  418. package/dist/cosmos.group.v1/module.js +423 -0
  419. package/dist/cosmos.group.v1/registry.js +31 -0
  420. package/dist/cosmos.group.v1/rest.js +366 -0
  421. package/dist/cosmos.group.v1/types/amino/amino.js +2 -0
  422. package/dist/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  423. package/dist/cosmos.group.v1/types/cosmos/group/v1/events.js +497 -0
  424. package/dist/cosmos.group.v1/types/cosmos/group/v1/genesis.js +177 -0
  425. package/dist/cosmos.group.v1/types/cosmos/group/v1/query.js +1578 -0
  426. package/dist/cosmos.group.v1/types/cosmos/group/v1/tx.js +1639 -0
  427. package/dist/cosmos.group.v1/types/cosmos/group/v1/types.js +1125 -0
  428. package/dist/cosmos.group.v1/types/cosmos/msg/v1/msg.js +2 -0
  429. package/dist/cosmos.group.v1/types/cosmos_proto/cosmos.js +171 -0
  430. package/dist/cosmos.group.v1/types/gogoproto/gogo.js +2 -0
  431. package/dist/cosmos.group.v1/types/google/api/annotations.js +2 -0
  432. package/dist/cosmos.group.v1/types/google/api/http.js +260 -0
  433. package/dist/cosmos.group.v1/types/google/protobuf/any.js +99 -0
  434. package/dist/cosmos.group.v1/types/google/protobuf/descriptor.js +2830 -0
  435. package/dist/cosmos.group.v1/types/google/protobuf/duration.js +84 -0
  436. package/dist/cosmos.group.v1/types/google/protobuf/timestamp.js +84 -0
  437. package/dist/cosmos.group.v1/types.js +22 -0
  438. package/dist/cosmos.mint.v1beta1/index.js +5 -0
  439. package/dist/cosmos.mint.v1beta1/module.js +60 -0
  440. package/dist/cosmos.mint.v1beta1/registry.js +2 -0
  441. package/dist/cosmos.mint.v1beta1/rest.js +128 -0
  442. package/dist/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
  443. package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.js +63 -0
  444. package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.js +179 -0
  445. package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.js +298 -0
  446. package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
  447. package/dist/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  448. package/dist/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  449. package/dist/cosmos.mint.v1beta1/types/gogoproto/gogo.js +2 -0
  450. package/dist/cosmos.mint.v1beta1/types/google/api/annotations.js +2 -0
  451. package/dist/cosmos.mint.v1beta1/types/google/api/http.js +260 -0
  452. package/dist/cosmos.mint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  453. package/dist/cosmos.mint.v1beta1/types.js +3 -0
  454. package/dist/cosmos.nft.v1beta1/index.js +5 -0
  455. package/dist/cosmos.nft.v1beta1/module.js +68 -0
  456. package/dist/cosmos.nft.v1beta1/registry.js +2 -0
  457. package/dist/cosmos.nft.v1beta1/rest.js +187 -0
  458. package/dist/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  459. package/dist/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  460. package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.js +198 -0
  461. package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.js +126 -0
  462. package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.js +183 -0
  463. package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.js +752 -0
  464. package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.js +120 -0
  465. package/dist/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  466. package/dist/cosmos.nft.v1beta1/types/google/api/annotations.js +2 -0
  467. package/dist/cosmos.nft.v1beta1/types/google/api/http.js +260 -0
  468. package/dist/cosmos.nft.v1beta1/types/google/protobuf/any.js +99 -0
  469. package/dist/cosmos.nft.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  470. package/dist/cosmos.nft.v1beta1/types.js +7 -0
  471. package/dist/cosmos.params.v1beta1/index.js +5 -0
  472. package/dist/cosmos.params.v1beta1/module.js +62 -0
  473. package/dist/cosmos.params.v1beta1/registry.js +2 -0
  474. package/dist/cosmos.params.v1beta1/rest.js +116 -0
  475. package/dist/cosmos.params.v1beta1/types/amino/amino.js +2 -0
  476. package/dist/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.js +133 -0
  477. package/dist/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.js +257 -0
  478. package/dist/cosmos.params.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  479. package/dist/cosmos.params.v1beta1/types/gogoproto/gogo.js +2 -0
  480. package/dist/cosmos.params.v1beta1/types/google/api/annotations.js +2 -0
  481. package/dist/cosmos.params.v1beta1/types/google/api/http.js +260 -0
  482. package/dist/cosmos.params.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  483. package/dist/cosmos.params.v1beta1/types.js +4 -0
  484. package/dist/cosmos.slashing.v1beta1/index.js +5 -0
  485. package/dist/cosmos.slashing.v1beta1/module.js +92 -0
  486. package/dist/cosmos.slashing.v1beta1/registry.js +5 -0
  487. package/dist/cosmos.slashing.v1beta1/rest.js +129 -0
  488. package/dist/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
  489. package/dist/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  490. package/dist/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  491. package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.js +279 -0
  492. package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.js +300 -0
  493. package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.js +275 -0
  494. package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +185 -0
  495. package/dist/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  496. package/dist/cosmos.slashing.v1beta1/types/gogoproto/gogo.js +2 -0
  497. package/dist/cosmos.slashing.v1beta1/types/google/api/annotations.js +2 -0
  498. package/dist/cosmos.slashing.v1beta1/types/google/api/http.js +260 -0
  499. package/dist/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  500. package/dist/cosmos.slashing.v1beta1/types/google/protobuf/duration.js +84 -0
  501. package/dist/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.js +84 -0
  502. package/dist/cosmos.slashing.v1beta1/types.js +6 -0
  503. package/dist/cosmos.staking.v1beta1/index.js +5 -0
  504. package/dist/cosmos.staking.v1beta1/module.js +245 -0
  505. package/dist/cosmos.staking.v1beta1/registry.js +15 -0
  506. package/dist/cosmos.staking.v1beta1/rest.js +308 -0
  507. package/dist/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
  508. package/dist/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  509. package/dist/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  510. package/dist/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  511. package/dist/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
  512. package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.js +184 -0
  513. package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.js +259 -0
  514. package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.js +1568 -0
  515. package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +1614 -0
  516. package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +861 -0
  517. package/dist/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  518. package/dist/cosmos.staking.v1beta1/types/gogoproto/gogo.js +2 -0
  519. package/dist/cosmos.staking.v1beta1/types/google/api/annotations.js +2 -0
  520. package/dist/cosmos.staking.v1beta1/types/google/api/http.js +260 -0
  521. package/dist/cosmos.staking.v1beta1/types/google/protobuf/any.js +99 -0
  522. package/dist/cosmos.staking.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  523. package/dist/cosmos.staking.v1beta1/types/google/protobuf/duration.js +84 -0
  524. package/dist/cosmos.staking.v1beta1/types/google/protobuf/timestamp.js +84 -0
  525. package/dist/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
  526. package/dist/cosmos.staking.v1beta1/types/tendermint/crypto/keys.js +100 -0
  527. package/dist/cosmos.staking.v1beta1/types/tendermint/crypto/proof.js +356 -0
  528. package/dist/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
  529. package/dist/cosmos.staking.v1beta1/types/tendermint/types/types.js +1207 -0
  530. package/dist/cosmos.staking.v1beta1/types/tendermint/types/validator.js +254 -0
  531. package/dist/cosmos.staking.v1beta1/types/tendermint/version/types.js +133 -0
  532. package/dist/cosmos.staking.v1beta1/types.js +25 -0
  533. package/dist/cosmos.tx.v1beta1/index.js +5 -0
  534. package/dist/cosmos.tx.v1beta1/module.js +82 -0
  535. package/dist/cosmos.tx.v1beta1/registry.js +2 -0
  536. package/dist/cosmos.tx.v1beta1/rest.js +320 -0
  537. package/dist/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
  538. package/dist/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.js +803 -0
  539. package/dist/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  540. package/dist/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  541. package/dist/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.js +147 -0
  542. package/dist/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.js +449 -0
  543. package/dist/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +1160 -0
  544. package/dist/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.js +959 -0
  545. package/dist/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  546. package/dist/cosmos.tx.v1beta1/types/gogoproto/gogo.js +2 -0
  547. package/dist/cosmos.tx.v1beta1/types/google/api/annotations.js +2 -0
  548. package/dist/cosmos.tx.v1beta1/types/google/api/http.js +260 -0
  549. package/dist/cosmos.tx.v1beta1/types/google/protobuf/any.js +99 -0
  550. package/dist/cosmos.tx.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  551. package/dist/cosmos.tx.v1beta1/types/google/protobuf/duration.js +84 -0
  552. package/dist/cosmos.tx.v1beta1/types/google/protobuf/timestamp.js +84 -0
  553. package/dist/cosmos.tx.v1beta1/types/tendermint/abci/types.js +3812 -0
  554. package/dist/cosmos.tx.v1beta1/types/tendermint/crypto/keys.js +100 -0
  555. package/dist/cosmos.tx.v1beta1/types/tendermint/crypto/proof.js +356 -0
  556. package/dist/cosmos.tx.v1beta1/types/tendermint/types/block.js +86 -0
  557. package/dist/cosmos.tx.v1beta1/types/tendermint/types/evidence.js +343 -0
  558. package/dist/cosmos.tx.v1beta1/types/tendermint/types/params.js +369 -0
  559. package/dist/cosmos.tx.v1beta1/types/tendermint/types/types.js +1207 -0
  560. package/dist/cosmos.tx.v1beta1/types/tendermint/types/validator.js +254 -0
  561. package/dist/cosmos.tx.v1beta1/types/tendermint/version/types.js +133 -0
  562. package/dist/cosmos.tx.v1beta1/types.js +14 -0
  563. package/dist/cosmos.upgrade.v1beta1/index.js +5 -0
  564. package/dist/cosmos.upgrade.v1beta1/module.js +113 -0
  565. package/dist/cosmos.upgrade.v1beta1/registry.js +7 -0
  566. package/dist/cosmos.upgrade.v1beta1/rest.js +162 -0
  567. package/dist/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
  568. package/dist/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  569. package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.js +501 -0
  570. package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.js +183 -0
  571. package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  572. package/dist/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  573. package/dist/cosmos.upgrade.v1beta1/types/gogoproto/gogo.js +2 -0
  574. package/dist/cosmos.upgrade.v1beta1/types/google/api/annotations.js +2 -0
  575. package/dist/cosmos.upgrade.v1beta1/types/google/api/http.js +260 -0
  576. package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/any.js +99 -0
  577. package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  578. package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.js +84 -0
  579. package/dist/cosmos.upgrade.v1beta1/types.js +5 -0
  580. package/dist/cosmos.vesting.v1beta1/index.js +5 -0
  581. package/dist/cosmos.vesting.v1beta1/module.js +140 -0
  582. package/dist/cosmos.vesting.v1beta1/registry.js +9 -0
  583. package/dist/cosmos.vesting.v1beta1/rest.js +83 -0
  584. package/dist/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
  585. package/dist/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +344 -0
  586. package/dist/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  587. package/dist/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  588. package/dist/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.js +383 -0
  589. package/dist/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.js +422 -0
  590. package/dist/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  591. package/dist/cosmos.vesting.v1beta1/types/gogoproto/gogo.js +2 -0
  592. package/dist/cosmos.vesting.v1beta1/types/google/protobuf/any.js +99 -0
  593. package/dist/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  594. package/dist/cosmos.vesting.v1beta1/types.js +7 -0
  595. package/dist/env.js +1 -0
  596. package/dist/helpers.js +11 -0
  597. package/dist/ibc.applications.interchain_accounts.controller.v1/index.js +5 -0
  598. package/dist/ibc.applications.interchain_accounts.controller.v1/module.js +58 -0
  599. package/dist/ibc.applications.interchain_accounts.controller.v1/registry.js +2 -0
  600. package/dist/ibc.applications.interchain_accounts.controller.v1/rest.js +123 -0
  601. package/dist/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.js +2 -0
  602. package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.js +2 -0
  603. package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.js +260 -0
  604. package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.js +99 -0
  605. package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.js +2830 -0
  606. package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.js +47 -0
  607. package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.js +193 -0
  608. package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +277 -0
  609. package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.js +192 -0
  610. package/dist/ibc.applications.interchain_accounts.controller.v1/types.js +2 -0
  611. package/dist/ibc.applications.interchain_accounts.host.v1/index.js +5 -0
  612. package/dist/ibc.applications.interchain_accounts.host.v1/module.js +58 -0
  613. package/dist/ibc.applications.interchain_accounts.host.v1/registry.js +2 -0
  614. package/dist/ibc.applications.interchain_accounts.host.v1/rest.js +100 -0
  615. package/dist/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.js +2 -0
  616. package/dist/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.js +2 -0
  617. package/dist/ibc.applications.interchain_accounts.host.v1/types/google/api/http.js +260 -0
  618. package/dist/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.js +2830 -0
  619. package/dist/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.js +63 -0
  620. package/dist/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.js +94 -0
  621. package/dist/ibc.applications.interchain_accounts.host.v1/types.js +2 -0
  622. package/dist/ibc.applications.transfer.v1/index.js +5 -0
  623. package/dist/ibc.applications.transfer.v1/module.js +64 -0
  624. package/dist/ibc.applications.transfer.v1/registry.js +2 -0
  625. package/dist/ibc.applications.transfer.v1/rest.js +171 -0
  626. package/dist/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
  627. package/dist/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  628. package/dist/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.js +192 -0
  629. package/dist/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  630. package/dist/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.js +171 -0
  631. package/dist/ibc.applications.transfer.v1/types/gogoproto/gogo.js +2 -0
  632. package/dist/ibc.applications.transfer.v1/types/google/api/annotations.js +2 -0
  633. package/dist/ibc.applications.transfer.v1/types/google/api/http.js +260 -0
  634. package/dist/ibc.applications.transfer.v1/types/google/protobuf/any.js +99 -0
  635. package/dist/ibc.applications.transfer.v1/types/google/protobuf/descriptor.js +2830 -0
  636. package/dist/ibc.applications.transfer.v1/types/google/protobuf/timestamp.js +84 -0
  637. package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
  638. package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +90 -0
  639. package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +574 -0
  640. package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.js +110 -0
  641. package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.js +204 -0
  642. package/dist/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.js +448 -0
  643. package/dist/ibc.applications.transfer.v1/types.js +5 -0
  644. package/dist/ibc.core.channel.v1/index.js +5 -0
  645. package/dist/ibc.core.channel.v1/module.js +72 -0
  646. package/dist/ibc.core.channel.v1/registry.js +2 -0
  647. package/dist/ibc.core.channel.v1/rest.js +323 -0
  648. package/dist/ibc.core.channel.v1/types/amino/amino.js +2 -0
  649. package/dist/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  650. package/dist/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  651. package/dist/ibc.core.channel.v1/types/cosmos_proto/cosmos.js +171 -0
  652. package/dist/ibc.core.channel.v1/types/gogoproto/gogo.js +2 -0
  653. package/dist/ibc.core.channel.v1/types/google/api/annotations.js +2 -0
  654. package/dist/ibc.core.channel.v1/types/google/api/http.js +260 -0
  655. package/dist/ibc.core.channel.v1/types/google/protobuf/any.js +99 -0
  656. package/dist/ibc.core.channel.v1/types/google/protobuf/descriptor.js +2830 -0
  657. package/dist/ibc.core.channel.v1/types/google/protobuf/timestamp.js +84 -0
  658. package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.js +714 -0
  659. package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.js +254 -0
  660. package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/query.js +1866 -0
  661. package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +1436 -0
  662. package/dist/ibc.core.channel.v1/types/ibc/core/client/v1/client.js +448 -0
  663. package/dist/ibc.core.channel.v1/types.js +9 -0
  664. package/dist/ibc.core.client.v1/index.js +5 -0
  665. package/dist/ibc.core.client.v1/module.js +74 -0
  666. package/dist/ibc.core.client.v1/registry.js +2 -0
  667. package/dist/ibc.core.client.v1/rest.js +218 -0
  668. package/dist/ibc.core.client.v1/types/amino/amino.js +2 -0
  669. package/dist/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  670. package/dist/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  671. package/dist/ibc.core.client.v1/types/cosmos_proto/cosmos.js +171 -0
  672. package/dist/ibc.core.client.v1/types/gogoproto/gogo.js +2 -0
  673. package/dist/ibc.core.client.v1/types/google/api/annotations.js +2 -0
  674. package/dist/ibc.core.client.v1/types/google/api/http.js +260 -0
  675. package/dist/ibc.core.client.v1/types/google/protobuf/any.js +99 -0
  676. package/dist/ibc.core.client.v1/types/google/protobuf/descriptor.js +2830 -0
  677. package/dist/ibc.core.client.v1/types/google/protobuf/timestamp.js +84 -0
  678. package/dist/ibc.core.client.v1/types/ibc/core/client/v1/client.js +448 -0
  679. package/dist/ibc.core.client.v1/types/ibc/core/client/v1/genesis.js +287 -0
  680. package/dist/ibc.core.client.v1/types/ibc/core/client/v1/query.js +1026 -0
  681. package/dist/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +510 -0
  682. package/dist/ibc.core.client.v1/types.js +10 -0
  683. package/dist/ibc.core.connection.v1/index.js +5 -0
  684. package/dist/ibc.core.connection.v1/module.js +70 -0
  685. package/dist/ibc.core.connection.v1/registry.js +2 -0
  686. package/dist/ibc.core.connection.v1/rest.js +191 -0
  687. package/dist/ibc.core.connection.v1/types/amino/amino.js +2 -0
  688. package/dist/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  689. package/dist/ibc.core.connection.v1/types/cosmos/ics23/v1/proofs.js +1126 -0
  690. package/dist/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  691. package/dist/ibc.core.connection.v1/types/cosmos_proto/cosmos.js +171 -0
  692. package/dist/ibc.core.connection.v1/types/gogoproto/gogo.js +2 -0
  693. package/dist/ibc.core.connection.v1/types/google/api/annotations.js +2 -0
  694. package/dist/ibc.core.connection.v1/types/google/api/http.js +260 -0
  695. package/dist/ibc.core.connection.v1/types/google/protobuf/any.js +99 -0
  696. package/dist/ibc.core.connection.v1/types/google/protobuf/descriptor.js +2830 -0
  697. package/dist/ibc.core.connection.v1/types/google/protobuf/timestamp.js +84 -0
  698. package/dist/ibc.core.connection.v1/types/ibc/core/client/v1/client.js +448 -0
  699. package/dist/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +223 -0
  700. package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.js +537 -0
  701. package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.js +120 -0
  702. package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/query.js +766 -0
  703. package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +731 -0
  704. package/dist/ibc.core.connection.v1/types.js +8 -0
  705. package/dist/iconlake.drop/index.js +5 -0
  706. package/dist/iconlake.drop/module.js +86 -0
  707. package/dist/iconlake.drop/registry.js +5 -0
  708. package/dist/iconlake.drop/rest.js +128 -0
  709. package/dist/iconlake.drop/types/amino/amino.js +2 -0
  710. package/dist/iconlake.drop/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  711. package/dist/iconlake.drop/types/cosmos/base/v1beta1/coin.js +192 -0
  712. package/dist/iconlake.drop/types/cosmos_proto/cosmos.js +171 -0
  713. package/dist/iconlake.drop/types/gogoproto/gogo.js +2 -0
  714. package/dist/iconlake.drop/types/google/api/annotations.js +2 -0
  715. package/dist/iconlake.drop/types/google/api/http.js +260 -0
  716. package/dist/iconlake.drop/types/google/protobuf/descriptor.js +2830 -0
  717. package/dist/iconlake.drop/types/iconlake/drop/genesis.js +67 -0
  718. package/dist/iconlake.drop/types/iconlake/drop/info.js +84 -0
  719. package/dist/iconlake.drop/types/iconlake/drop/params.js +36 -0
  720. package/dist/iconlake.drop/types/iconlake/drop/query.js +294 -0
  721. package/dist/iconlake.drop/types/iconlake/drop/tx.js +152 -0
  722. package/dist/iconlake.drop/types.js +3 -0
  723. package/dist/iconlake.icon/index.js +5 -0
  724. package/dist/iconlake.icon/module.js +88 -0
  725. package/dist/iconlake.icon/registry.js +5 -0
  726. package/dist/iconlake.icon/rest.js +115 -0
  727. package/dist/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  728. package/dist/iconlake.icon/types/gogoproto/gogo.js +2 -0
  729. package/dist/iconlake.icon/types/google/api/annotations.js +2 -0
  730. package/dist/iconlake.icon/types/google/api/http.js +260 -0
  731. package/dist/iconlake.icon/types/google/protobuf/descriptor.js +2830 -0
  732. package/dist/iconlake.icon/types/iconlake/icon/class_data.js +58 -0
  733. package/dist/iconlake.icon/types/iconlake/icon/genesis.js +50 -0
  734. package/dist/iconlake.icon/types/iconlake/icon/icon_data.js +76 -0
  735. package/dist/iconlake.icon/types/iconlake/icon/params.js +36 -0
  736. package/dist/iconlake.icon/types/iconlake/icon/query.js +204 -0
  737. package/dist/iconlake.icon/types/iconlake/icon/tx.js +174 -0
  738. package/dist/iconlake.icon/types.js +4 -0
  739. package/dist/iconlake.iconlake/index.js +5 -0
  740. package/dist/iconlake.iconlake/module.js +86 -0
  741. package/dist/iconlake.iconlake/registry.js +5 -0
  742. package/dist/iconlake.iconlake/rest.js +128 -0
  743. package/dist/iconlake.iconlake/types/amino/amino.js +2 -0
  744. package/dist/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  745. package/dist/iconlake.iconlake/types/cosmos/base/v1beta1/coin.js +192 -0
  746. package/dist/iconlake.iconlake/types/cosmos_proto/cosmos.js +171 -0
  747. package/dist/iconlake.iconlake/types/gogoproto/gogo.js +2 -0
  748. package/dist/iconlake.iconlake/types/google/api/annotations.js +2 -0
  749. package/dist/iconlake.iconlake/types/google/api/http.js +260 -0
  750. package/dist/iconlake.iconlake/types/google/protobuf/descriptor.js +2830 -0
  751. package/dist/iconlake.iconlake/types/iconlake/iconlake/account.js +84 -0
  752. package/dist/iconlake.iconlake/types/iconlake/iconlake/genesis.js +67 -0
  753. package/dist/iconlake.iconlake/types/iconlake/iconlake/params.js +36 -0
  754. package/dist/iconlake.iconlake/types/iconlake/iconlake/query.js +296 -0
  755. package/dist/iconlake.iconlake/types/iconlake/iconlake/tx.js +113 -0
  756. package/dist/iconlake.iconlake/types.js +3 -0
  757. package/dist/index.js +68 -0
  758. package/dist/modules.js +1 -0
  759. package/env.ts +0 -0
  760. package/helpers.ts +0 -0
  761. package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -0
  762. package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -0
  763. package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -0
  764. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
  765. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
  766. package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -0
  767. package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -0
  768. package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -0
  769. package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -0
  770. package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -0
  771. package/ibc.applications.transfer.v1/index.ts +0 -0
  772. package/ibc.applications.transfer.v1/module.ts +5 -34
  773. package/ibc.applications.transfer.v1/registry.ts +0 -2
  774. package/ibc.applications.transfer.v1/rest.ts +30 -1
  775. package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
  776. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  777. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
  778. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
  779. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
  780. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
  781. package/ibc.applications.transfer.v1/types.ts +4 -0
  782. package/ibc.core.channel.v1/index.ts +0 -0
  783. package/ibc.core.channel.v1/module.ts +0 -0
  784. package/ibc.core.channel.v1/registry.ts +0 -0
  785. package/ibc.core.channel.v1/rest.ts +1 -0
  786. package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
  787. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  788. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
  789. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
  790. package/ibc.core.channel.v1/types.ts +0 -0
  791. package/ibc.core.client.v1/index.ts +0 -0
  792. package/ibc.core.client.v1/module.ts +0 -0
  793. package/ibc.core.client.v1/registry.ts +0 -0
  794. package/ibc.core.client.v1/rest.ts +5 -1
  795. package/ibc.core.client.v1/types/amino/amino.ts +2 -0
  796. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  797. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
  798. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
  799. package/ibc.core.client.v1/types.ts +0 -0
  800. package/ibc.core.connection.v1/index.ts +0 -0
  801. package/ibc.core.connection.v1/module.ts +0 -0
  802. package/ibc.core.connection.v1/registry.ts +0 -0
  803. package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
  804. package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
  805. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
  806. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
  807. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
  808. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
  809. package/ibc.core.connection.v1/types.ts +0 -0
  810. package/iconlake.drop/index.ts +6 -0
  811. package/iconlake.drop/module.ts +133 -0
  812. package/iconlake.drop/registry.ts +9 -0
  813. package/iconlake.drop/rest.ts +339 -0
  814. package/iconlake.drop/types/amino/amino.ts +2 -0
  815. package/iconlake.drop/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  816. package/iconlake.drop/types/cosmos/base/v1beta1/coin.ts +261 -0
  817. package/iconlake.drop/types/cosmos_proto/cosmos.ts +247 -0
  818. package/iconlake.drop/types/gogoproto/gogo.ts +2 -0
  819. package/iconlake.drop/types/google/api/annotations.ts +2 -0
  820. package/iconlake.drop/types/google/api/http.ts +589 -0
  821. package/iconlake.drop/types/google/protobuf/descriptor.ts +3753 -0
  822. package/iconlake.drop/types/iconlake/drop/genesis.ts +91 -0
  823. package/iconlake.drop/types/iconlake/drop/info.ts +114 -0
  824. package/iconlake.drop/types/iconlake/drop/params.ts +58 -0
  825. package/iconlake.drop/types/iconlake/drop/query.ts +386 -0
  826. package/iconlake.drop/types/iconlake/drop/tx.ts +204 -0
  827. package/iconlake.drop/types.ts +9 -0
  828. package/iconlake.icon/index.ts +0 -0
  829. package/iconlake.icon/module.ts +2 -2
  830. package/iconlake.icon/registry.ts +0 -0
  831. package/iconlake.icon/rest.ts +1 -1
  832. package/iconlake.icon/types/iconlake/icon/class_data.ts +82 -0
  833. package/iconlake.icon/types/iconlake/icon/icon_data.ts +102 -0
  834. package/iconlake.icon/types/iconlake/icon/tx.ts +1 -146
  835. package/iconlake.icon/types.ts +3 -3
  836. package/iconlake.iconlake/index.ts +0 -0
  837. package/iconlake.iconlake/module.ts +0 -0
  838. package/iconlake.iconlake/registry.ts +0 -0
  839. package/iconlake.iconlake/rest.ts +2 -14
  840. package/iconlake.iconlake/types/amino/amino.ts +2 -0
  841. package/iconlake.iconlake/types/iconlake/iconlake/account.ts +10 -36
  842. package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +8 -64
  843. package/iconlake.iconlake/types.ts +0 -0
  844. package/index.ts +5 -3
  845. package/modules.ts +0 -0
  846. package/package.json +15 -8
  847. package/tsconfig.json +11 -11
  848. package/types.d.ts +0 -0
@@ -0,0 +1,1207 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ import { Timestamp } from "../../google/protobuf/timestamp";
5
+ import { Proof } from "../crypto/proof";
6
+ import { Consensus } from "../version/types";
7
+ import { ValidatorSet } from "./validator";
8
+ export const protobufPackage = "tendermint.types";
9
+ /** BlockIdFlag indicates which BlcokID the signature is for */
10
+ export var BlockIDFlag;
11
+ (function (BlockIDFlag) {
12
+ BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_UNKNOWN"] = 0] = "BLOCK_ID_FLAG_UNKNOWN";
13
+ BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_ABSENT"] = 1] = "BLOCK_ID_FLAG_ABSENT";
14
+ BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_COMMIT"] = 2] = "BLOCK_ID_FLAG_COMMIT";
15
+ BlockIDFlag[BlockIDFlag["BLOCK_ID_FLAG_NIL"] = 3] = "BLOCK_ID_FLAG_NIL";
16
+ BlockIDFlag[BlockIDFlag["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
17
+ })(BlockIDFlag || (BlockIDFlag = {}));
18
+ export function blockIDFlagFromJSON(object) {
19
+ switch (object) {
20
+ case 0:
21
+ case "BLOCK_ID_FLAG_UNKNOWN":
22
+ return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN;
23
+ case 1:
24
+ case "BLOCK_ID_FLAG_ABSENT":
25
+ return BlockIDFlag.BLOCK_ID_FLAG_ABSENT;
26
+ case 2:
27
+ case "BLOCK_ID_FLAG_COMMIT":
28
+ return BlockIDFlag.BLOCK_ID_FLAG_COMMIT;
29
+ case 3:
30
+ case "BLOCK_ID_FLAG_NIL":
31
+ return BlockIDFlag.BLOCK_ID_FLAG_NIL;
32
+ case -1:
33
+ case "UNRECOGNIZED":
34
+ default:
35
+ return BlockIDFlag.UNRECOGNIZED;
36
+ }
37
+ }
38
+ export function blockIDFlagToJSON(object) {
39
+ switch (object) {
40
+ case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN:
41
+ return "BLOCK_ID_FLAG_UNKNOWN";
42
+ case BlockIDFlag.BLOCK_ID_FLAG_ABSENT:
43
+ return "BLOCK_ID_FLAG_ABSENT";
44
+ case BlockIDFlag.BLOCK_ID_FLAG_COMMIT:
45
+ return "BLOCK_ID_FLAG_COMMIT";
46
+ case BlockIDFlag.BLOCK_ID_FLAG_NIL:
47
+ return "BLOCK_ID_FLAG_NIL";
48
+ case BlockIDFlag.UNRECOGNIZED:
49
+ default:
50
+ return "UNRECOGNIZED";
51
+ }
52
+ }
53
+ /** SignedMsgType is a type of signed message in the consensus. */
54
+ export var SignedMsgType;
55
+ (function (SignedMsgType) {
56
+ SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_UNKNOWN"] = 0] = "SIGNED_MSG_TYPE_UNKNOWN";
57
+ /** SIGNED_MSG_TYPE_PREVOTE - Votes */
58
+ SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PREVOTE"] = 1] = "SIGNED_MSG_TYPE_PREVOTE";
59
+ SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PRECOMMIT"] = 2] = "SIGNED_MSG_TYPE_PRECOMMIT";
60
+ /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */
61
+ SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PROPOSAL"] = 32] = "SIGNED_MSG_TYPE_PROPOSAL";
62
+ SignedMsgType[SignedMsgType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
63
+ })(SignedMsgType || (SignedMsgType = {}));
64
+ export function signedMsgTypeFromJSON(object) {
65
+ switch (object) {
66
+ case 0:
67
+ case "SIGNED_MSG_TYPE_UNKNOWN":
68
+ return SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN;
69
+ case 1:
70
+ case "SIGNED_MSG_TYPE_PREVOTE":
71
+ return SignedMsgType.SIGNED_MSG_TYPE_PREVOTE;
72
+ case 2:
73
+ case "SIGNED_MSG_TYPE_PRECOMMIT":
74
+ return SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT;
75
+ case 32:
76
+ case "SIGNED_MSG_TYPE_PROPOSAL":
77
+ return SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL;
78
+ case -1:
79
+ case "UNRECOGNIZED":
80
+ default:
81
+ return SignedMsgType.UNRECOGNIZED;
82
+ }
83
+ }
84
+ export function signedMsgTypeToJSON(object) {
85
+ switch (object) {
86
+ case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN:
87
+ return "SIGNED_MSG_TYPE_UNKNOWN";
88
+ case SignedMsgType.SIGNED_MSG_TYPE_PREVOTE:
89
+ return "SIGNED_MSG_TYPE_PREVOTE";
90
+ case SignedMsgType.SIGNED_MSG_TYPE_PRECOMMIT:
91
+ return "SIGNED_MSG_TYPE_PRECOMMIT";
92
+ case SignedMsgType.SIGNED_MSG_TYPE_PROPOSAL:
93
+ return "SIGNED_MSG_TYPE_PROPOSAL";
94
+ case SignedMsgType.UNRECOGNIZED:
95
+ default:
96
+ return "UNRECOGNIZED";
97
+ }
98
+ }
99
+ function createBasePartSetHeader() {
100
+ return { total: 0, hash: new Uint8Array() };
101
+ }
102
+ export const PartSetHeader = {
103
+ encode(message, writer = _m0.Writer.create()) {
104
+ if (message.total !== 0) {
105
+ writer.uint32(8).uint32(message.total);
106
+ }
107
+ if (message.hash.length !== 0) {
108
+ writer.uint32(18).bytes(message.hash);
109
+ }
110
+ return writer;
111
+ },
112
+ decode(input, length) {
113
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
114
+ let end = length === undefined ? reader.len : reader.pos + length;
115
+ const message = createBasePartSetHeader();
116
+ while (reader.pos < end) {
117
+ const tag = reader.uint32();
118
+ switch (tag >>> 3) {
119
+ case 1:
120
+ message.total = reader.uint32();
121
+ break;
122
+ case 2:
123
+ message.hash = reader.bytes();
124
+ break;
125
+ default:
126
+ reader.skipType(tag & 7);
127
+ break;
128
+ }
129
+ }
130
+ return message;
131
+ },
132
+ fromJSON(object) {
133
+ return {
134
+ total: isSet(object.total) ? Number(object.total) : 0,
135
+ hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
136
+ };
137
+ },
138
+ toJSON(message) {
139
+ const obj = {};
140
+ message.total !== undefined && (obj.total = Math.round(message.total));
141
+ message.hash !== undefined
142
+ && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
143
+ return obj;
144
+ },
145
+ fromPartial(object) {
146
+ const message = createBasePartSetHeader();
147
+ message.total = object.total ?? 0;
148
+ message.hash = object.hash ?? new Uint8Array();
149
+ return message;
150
+ },
151
+ };
152
+ function createBasePart() {
153
+ return { index: 0, bytes: new Uint8Array(), proof: undefined };
154
+ }
155
+ export const Part = {
156
+ encode(message, writer = _m0.Writer.create()) {
157
+ if (message.index !== 0) {
158
+ writer.uint32(8).uint32(message.index);
159
+ }
160
+ if (message.bytes.length !== 0) {
161
+ writer.uint32(18).bytes(message.bytes);
162
+ }
163
+ if (message.proof !== undefined) {
164
+ Proof.encode(message.proof, writer.uint32(26).fork()).ldelim();
165
+ }
166
+ return writer;
167
+ },
168
+ decode(input, length) {
169
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
170
+ let end = length === undefined ? reader.len : reader.pos + length;
171
+ const message = createBasePart();
172
+ while (reader.pos < end) {
173
+ const tag = reader.uint32();
174
+ switch (tag >>> 3) {
175
+ case 1:
176
+ message.index = reader.uint32();
177
+ break;
178
+ case 2:
179
+ message.bytes = reader.bytes();
180
+ break;
181
+ case 3:
182
+ message.proof = Proof.decode(reader, reader.uint32());
183
+ break;
184
+ default:
185
+ reader.skipType(tag & 7);
186
+ break;
187
+ }
188
+ }
189
+ return message;
190
+ },
191
+ fromJSON(object) {
192
+ return {
193
+ index: isSet(object.index) ? Number(object.index) : 0,
194
+ bytes: isSet(object.bytes) ? bytesFromBase64(object.bytes) : new Uint8Array(),
195
+ proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : undefined,
196
+ };
197
+ },
198
+ toJSON(message) {
199
+ const obj = {};
200
+ message.index !== undefined && (obj.index = Math.round(message.index));
201
+ message.bytes !== undefined
202
+ && (obj.bytes = base64FromBytes(message.bytes !== undefined ? message.bytes : new Uint8Array()));
203
+ message.proof !== undefined && (obj.proof = message.proof ? Proof.toJSON(message.proof) : undefined);
204
+ return obj;
205
+ },
206
+ fromPartial(object) {
207
+ const message = createBasePart();
208
+ message.index = object.index ?? 0;
209
+ message.bytes = object.bytes ?? new Uint8Array();
210
+ message.proof = (object.proof !== undefined && object.proof !== null) ? Proof.fromPartial(object.proof) : undefined;
211
+ return message;
212
+ },
213
+ };
214
+ function createBaseBlockID() {
215
+ return { hash: new Uint8Array(), partSetHeader: undefined };
216
+ }
217
+ export const BlockID = {
218
+ encode(message, writer = _m0.Writer.create()) {
219
+ if (message.hash.length !== 0) {
220
+ writer.uint32(10).bytes(message.hash);
221
+ }
222
+ if (message.partSetHeader !== undefined) {
223
+ PartSetHeader.encode(message.partSetHeader, writer.uint32(18).fork()).ldelim();
224
+ }
225
+ return writer;
226
+ },
227
+ decode(input, length) {
228
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
229
+ let end = length === undefined ? reader.len : reader.pos + length;
230
+ const message = createBaseBlockID();
231
+ while (reader.pos < end) {
232
+ const tag = reader.uint32();
233
+ switch (tag >>> 3) {
234
+ case 1:
235
+ message.hash = reader.bytes();
236
+ break;
237
+ case 2:
238
+ message.partSetHeader = PartSetHeader.decode(reader, reader.uint32());
239
+ break;
240
+ default:
241
+ reader.skipType(tag & 7);
242
+ break;
243
+ }
244
+ }
245
+ return message;
246
+ },
247
+ fromJSON(object) {
248
+ return {
249
+ hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
250
+ partSetHeader: isSet(object.partSetHeader) ? PartSetHeader.fromJSON(object.partSetHeader) : undefined,
251
+ };
252
+ },
253
+ toJSON(message) {
254
+ const obj = {};
255
+ message.hash !== undefined
256
+ && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
257
+ message.partSetHeader !== undefined
258
+ && (obj.partSetHeader = message.partSetHeader ? PartSetHeader.toJSON(message.partSetHeader) : undefined);
259
+ return obj;
260
+ },
261
+ fromPartial(object) {
262
+ const message = createBaseBlockID();
263
+ message.hash = object.hash ?? new Uint8Array();
264
+ message.partSetHeader = (object.partSetHeader !== undefined && object.partSetHeader !== null)
265
+ ? PartSetHeader.fromPartial(object.partSetHeader)
266
+ : undefined;
267
+ return message;
268
+ },
269
+ };
270
+ function createBaseHeader() {
271
+ return {
272
+ version: undefined,
273
+ chainId: "",
274
+ height: 0,
275
+ time: undefined,
276
+ lastBlockId: undefined,
277
+ lastCommitHash: new Uint8Array(),
278
+ dataHash: new Uint8Array(),
279
+ validatorsHash: new Uint8Array(),
280
+ nextValidatorsHash: new Uint8Array(),
281
+ consensusHash: new Uint8Array(),
282
+ appHash: new Uint8Array(),
283
+ lastResultsHash: new Uint8Array(),
284
+ evidenceHash: new Uint8Array(),
285
+ proposerAddress: new Uint8Array(),
286
+ };
287
+ }
288
+ export const Header = {
289
+ encode(message, writer = _m0.Writer.create()) {
290
+ if (message.version !== undefined) {
291
+ Consensus.encode(message.version, writer.uint32(10).fork()).ldelim();
292
+ }
293
+ if (message.chainId !== "") {
294
+ writer.uint32(18).string(message.chainId);
295
+ }
296
+ if (message.height !== 0) {
297
+ writer.uint32(24).int64(message.height);
298
+ }
299
+ if (message.time !== undefined) {
300
+ Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim();
301
+ }
302
+ if (message.lastBlockId !== undefined) {
303
+ BlockID.encode(message.lastBlockId, writer.uint32(42).fork()).ldelim();
304
+ }
305
+ if (message.lastCommitHash.length !== 0) {
306
+ writer.uint32(50).bytes(message.lastCommitHash);
307
+ }
308
+ if (message.dataHash.length !== 0) {
309
+ writer.uint32(58).bytes(message.dataHash);
310
+ }
311
+ if (message.validatorsHash.length !== 0) {
312
+ writer.uint32(66).bytes(message.validatorsHash);
313
+ }
314
+ if (message.nextValidatorsHash.length !== 0) {
315
+ writer.uint32(74).bytes(message.nextValidatorsHash);
316
+ }
317
+ if (message.consensusHash.length !== 0) {
318
+ writer.uint32(82).bytes(message.consensusHash);
319
+ }
320
+ if (message.appHash.length !== 0) {
321
+ writer.uint32(90).bytes(message.appHash);
322
+ }
323
+ if (message.lastResultsHash.length !== 0) {
324
+ writer.uint32(98).bytes(message.lastResultsHash);
325
+ }
326
+ if (message.evidenceHash.length !== 0) {
327
+ writer.uint32(106).bytes(message.evidenceHash);
328
+ }
329
+ if (message.proposerAddress.length !== 0) {
330
+ writer.uint32(114).bytes(message.proposerAddress);
331
+ }
332
+ return writer;
333
+ },
334
+ decode(input, length) {
335
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
336
+ let end = length === undefined ? reader.len : reader.pos + length;
337
+ const message = createBaseHeader();
338
+ while (reader.pos < end) {
339
+ const tag = reader.uint32();
340
+ switch (tag >>> 3) {
341
+ case 1:
342
+ message.version = Consensus.decode(reader, reader.uint32());
343
+ break;
344
+ case 2:
345
+ message.chainId = reader.string();
346
+ break;
347
+ case 3:
348
+ message.height = longToNumber(reader.int64());
349
+ break;
350
+ case 4:
351
+ message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
352
+ break;
353
+ case 5:
354
+ message.lastBlockId = BlockID.decode(reader, reader.uint32());
355
+ break;
356
+ case 6:
357
+ message.lastCommitHash = reader.bytes();
358
+ break;
359
+ case 7:
360
+ message.dataHash = reader.bytes();
361
+ break;
362
+ case 8:
363
+ message.validatorsHash = reader.bytes();
364
+ break;
365
+ case 9:
366
+ message.nextValidatorsHash = reader.bytes();
367
+ break;
368
+ case 10:
369
+ message.consensusHash = reader.bytes();
370
+ break;
371
+ case 11:
372
+ message.appHash = reader.bytes();
373
+ break;
374
+ case 12:
375
+ message.lastResultsHash = reader.bytes();
376
+ break;
377
+ case 13:
378
+ message.evidenceHash = reader.bytes();
379
+ break;
380
+ case 14:
381
+ message.proposerAddress = reader.bytes();
382
+ break;
383
+ default:
384
+ reader.skipType(tag & 7);
385
+ break;
386
+ }
387
+ }
388
+ return message;
389
+ },
390
+ fromJSON(object) {
391
+ return {
392
+ version: isSet(object.version) ? Consensus.fromJSON(object.version) : undefined,
393
+ chainId: isSet(object.chainId) ? String(object.chainId) : "",
394
+ height: isSet(object.height) ? Number(object.height) : 0,
395
+ time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
396
+ lastBlockId: isSet(object.lastBlockId) ? BlockID.fromJSON(object.lastBlockId) : undefined,
397
+ lastCommitHash: isSet(object.lastCommitHash) ? bytesFromBase64(object.lastCommitHash) : new Uint8Array(),
398
+ dataHash: isSet(object.dataHash) ? bytesFromBase64(object.dataHash) : new Uint8Array(),
399
+ validatorsHash: isSet(object.validatorsHash) ? bytesFromBase64(object.validatorsHash) : new Uint8Array(),
400
+ nextValidatorsHash: isSet(object.nextValidatorsHash)
401
+ ? bytesFromBase64(object.nextValidatorsHash)
402
+ : new Uint8Array(),
403
+ consensusHash: isSet(object.consensusHash) ? bytesFromBase64(object.consensusHash) : new Uint8Array(),
404
+ appHash: isSet(object.appHash) ? bytesFromBase64(object.appHash) : new Uint8Array(),
405
+ lastResultsHash: isSet(object.lastResultsHash) ? bytesFromBase64(object.lastResultsHash) : new Uint8Array(),
406
+ evidenceHash: isSet(object.evidenceHash) ? bytesFromBase64(object.evidenceHash) : new Uint8Array(),
407
+ proposerAddress: isSet(object.proposerAddress) ? bytesFromBase64(object.proposerAddress) : new Uint8Array(),
408
+ };
409
+ },
410
+ toJSON(message) {
411
+ const obj = {};
412
+ message.version !== undefined && (obj.version = message.version ? Consensus.toJSON(message.version) : undefined);
413
+ message.chainId !== undefined && (obj.chainId = message.chainId);
414
+ message.height !== undefined && (obj.height = Math.round(message.height));
415
+ message.time !== undefined && (obj.time = message.time.toISOString());
416
+ message.lastBlockId !== undefined
417
+ && (obj.lastBlockId = message.lastBlockId ? BlockID.toJSON(message.lastBlockId) : undefined);
418
+ message.lastCommitHash !== undefined
419
+ && (obj.lastCommitHash = base64FromBytes(message.lastCommitHash !== undefined ? message.lastCommitHash : new Uint8Array()));
420
+ message.dataHash !== undefined
421
+ && (obj.dataHash = base64FromBytes(message.dataHash !== undefined ? message.dataHash : new Uint8Array()));
422
+ message.validatorsHash !== undefined
423
+ && (obj.validatorsHash = base64FromBytes(message.validatorsHash !== undefined ? message.validatorsHash : new Uint8Array()));
424
+ message.nextValidatorsHash !== undefined
425
+ && (obj.nextValidatorsHash = base64FromBytes(message.nextValidatorsHash !== undefined ? message.nextValidatorsHash : new Uint8Array()));
426
+ message.consensusHash !== undefined
427
+ && (obj.consensusHash = base64FromBytes(message.consensusHash !== undefined ? message.consensusHash : new Uint8Array()));
428
+ message.appHash !== undefined
429
+ && (obj.appHash = base64FromBytes(message.appHash !== undefined ? message.appHash : new Uint8Array()));
430
+ message.lastResultsHash !== undefined
431
+ && (obj.lastResultsHash = base64FromBytes(message.lastResultsHash !== undefined ? message.lastResultsHash : new Uint8Array()));
432
+ message.evidenceHash !== undefined
433
+ && (obj.evidenceHash = base64FromBytes(message.evidenceHash !== undefined ? message.evidenceHash : new Uint8Array()));
434
+ message.proposerAddress !== undefined
435
+ && (obj.proposerAddress = base64FromBytes(message.proposerAddress !== undefined ? message.proposerAddress : new Uint8Array()));
436
+ return obj;
437
+ },
438
+ fromPartial(object) {
439
+ const message = createBaseHeader();
440
+ message.version = (object.version !== undefined && object.version !== null)
441
+ ? Consensus.fromPartial(object.version)
442
+ : undefined;
443
+ message.chainId = object.chainId ?? "";
444
+ message.height = object.height ?? 0;
445
+ message.time = object.time ?? undefined;
446
+ message.lastBlockId = (object.lastBlockId !== undefined && object.lastBlockId !== null)
447
+ ? BlockID.fromPartial(object.lastBlockId)
448
+ : undefined;
449
+ message.lastCommitHash = object.lastCommitHash ?? new Uint8Array();
450
+ message.dataHash = object.dataHash ?? new Uint8Array();
451
+ message.validatorsHash = object.validatorsHash ?? new Uint8Array();
452
+ message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array();
453
+ message.consensusHash = object.consensusHash ?? new Uint8Array();
454
+ message.appHash = object.appHash ?? new Uint8Array();
455
+ message.lastResultsHash = object.lastResultsHash ?? new Uint8Array();
456
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array();
457
+ message.proposerAddress = object.proposerAddress ?? new Uint8Array();
458
+ return message;
459
+ },
460
+ };
461
+ function createBaseData() {
462
+ return { txs: [] };
463
+ }
464
+ export const Data = {
465
+ encode(message, writer = _m0.Writer.create()) {
466
+ for (const v of message.txs) {
467
+ writer.uint32(10).bytes(v);
468
+ }
469
+ return writer;
470
+ },
471
+ decode(input, length) {
472
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
473
+ let end = length === undefined ? reader.len : reader.pos + length;
474
+ const message = createBaseData();
475
+ while (reader.pos < end) {
476
+ const tag = reader.uint32();
477
+ switch (tag >>> 3) {
478
+ case 1:
479
+ message.txs.push(reader.bytes());
480
+ break;
481
+ default:
482
+ reader.skipType(tag & 7);
483
+ break;
484
+ }
485
+ }
486
+ return message;
487
+ },
488
+ fromJSON(object) {
489
+ return { txs: Array.isArray(object?.txs) ? object.txs.map((e) => bytesFromBase64(e)) : [] };
490
+ },
491
+ toJSON(message) {
492
+ const obj = {};
493
+ if (message.txs) {
494
+ obj.txs = message.txs.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
495
+ }
496
+ else {
497
+ obj.txs = [];
498
+ }
499
+ return obj;
500
+ },
501
+ fromPartial(object) {
502
+ const message = createBaseData();
503
+ message.txs = object.txs?.map((e) => e) || [];
504
+ return message;
505
+ },
506
+ };
507
+ function createBaseVote() {
508
+ return {
509
+ type: 0,
510
+ height: 0,
511
+ round: 0,
512
+ blockId: undefined,
513
+ timestamp: undefined,
514
+ validatorAddress: new Uint8Array(),
515
+ validatorIndex: 0,
516
+ signature: new Uint8Array(),
517
+ };
518
+ }
519
+ export const Vote = {
520
+ encode(message, writer = _m0.Writer.create()) {
521
+ if (message.type !== 0) {
522
+ writer.uint32(8).int32(message.type);
523
+ }
524
+ if (message.height !== 0) {
525
+ writer.uint32(16).int64(message.height);
526
+ }
527
+ if (message.round !== 0) {
528
+ writer.uint32(24).int32(message.round);
529
+ }
530
+ if (message.blockId !== undefined) {
531
+ BlockID.encode(message.blockId, writer.uint32(34).fork()).ldelim();
532
+ }
533
+ if (message.timestamp !== undefined) {
534
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim();
535
+ }
536
+ if (message.validatorAddress.length !== 0) {
537
+ writer.uint32(50).bytes(message.validatorAddress);
538
+ }
539
+ if (message.validatorIndex !== 0) {
540
+ writer.uint32(56).int32(message.validatorIndex);
541
+ }
542
+ if (message.signature.length !== 0) {
543
+ writer.uint32(66).bytes(message.signature);
544
+ }
545
+ return writer;
546
+ },
547
+ decode(input, length) {
548
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
549
+ let end = length === undefined ? reader.len : reader.pos + length;
550
+ const message = createBaseVote();
551
+ while (reader.pos < end) {
552
+ const tag = reader.uint32();
553
+ switch (tag >>> 3) {
554
+ case 1:
555
+ message.type = reader.int32();
556
+ break;
557
+ case 2:
558
+ message.height = longToNumber(reader.int64());
559
+ break;
560
+ case 3:
561
+ message.round = reader.int32();
562
+ break;
563
+ case 4:
564
+ message.blockId = BlockID.decode(reader, reader.uint32());
565
+ break;
566
+ case 5:
567
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
568
+ break;
569
+ case 6:
570
+ message.validatorAddress = reader.bytes();
571
+ break;
572
+ case 7:
573
+ message.validatorIndex = reader.int32();
574
+ break;
575
+ case 8:
576
+ message.signature = reader.bytes();
577
+ break;
578
+ default:
579
+ reader.skipType(tag & 7);
580
+ break;
581
+ }
582
+ }
583
+ return message;
584
+ },
585
+ fromJSON(object) {
586
+ return {
587
+ type: isSet(object.type) ? signedMsgTypeFromJSON(object.type) : 0,
588
+ height: isSet(object.height) ? Number(object.height) : 0,
589
+ round: isSet(object.round) ? Number(object.round) : 0,
590
+ blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined,
591
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
592
+ validatorAddress: isSet(object.validatorAddress) ? bytesFromBase64(object.validatorAddress) : new Uint8Array(),
593
+ validatorIndex: isSet(object.validatorIndex) ? Number(object.validatorIndex) : 0,
594
+ signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array(),
595
+ };
596
+ },
597
+ toJSON(message) {
598
+ const obj = {};
599
+ message.type !== undefined && (obj.type = signedMsgTypeToJSON(message.type));
600
+ message.height !== undefined && (obj.height = Math.round(message.height));
601
+ message.round !== undefined && (obj.round = Math.round(message.round));
602
+ message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined);
603
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
604
+ message.validatorAddress !== undefined
605
+ && (obj.validatorAddress = base64FromBytes(message.validatorAddress !== undefined ? message.validatorAddress : new Uint8Array()));
606
+ message.validatorIndex !== undefined && (obj.validatorIndex = Math.round(message.validatorIndex));
607
+ message.signature !== undefined
608
+ && (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : new Uint8Array()));
609
+ return obj;
610
+ },
611
+ fromPartial(object) {
612
+ const message = createBaseVote();
613
+ message.type = object.type ?? 0;
614
+ message.height = object.height ?? 0;
615
+ message.round = object.round ?? 0;
616
+ message.blockId = (object.blockId !== undefined && object.blockId !== null)
617
+ ? BlockID.fromPartial(object.blockId)
618
+ : undefined;
619
+ message.timestamp = object.timestamp ?? undefined;
620
+ message.validatorAddress = object.validatorAddress ?? new Uint8Array();
621
+ message.validatorIndex = object.validatorIndex ?? 0;
622
+ message.signature = object.signature ?? new Uint8Array();
623
+ return message;
624
+ },
625
+ };
626
+ function createBaseCommit() {
627
+ return { height: 0, round: 0, blockId: undefined, signatures: [] };
628
+ }
629
+ export const Commit = {
630
+ encode(message, writer = _m0.Writer.create()) {
631
+ if (message.height !== 0) {
632
+ writer.uint32(8).int64(message.height);
633
+ }
634
+ if (message.round !== 0) {
635
+ writer.uint32(16).int32(message.round);
636
+ }
637
+ if (message.blockId !== undefined) {
638
+ BlockID.encode(message.blockId, writer.uint32(26).fork()).ldelim();
639
+ }
640
+ for (const v of message.signatures) {
641
+ CommitSig.encode(v, writer.uint32(34).fork()).ldelim();
642
+ }
643
+ return writer;
644
+ },
645
+ decode(input, length) {
646
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
647
+ let end = length === undefined ? reader.len : reader.pos + length;
648
+ const message = createBaseCommit();
649
+ while (reader.pos < end) {
650
+ const tag = reader.uint32();
651
+ switch (tag >>> 3) {
652
+ case 1:
653
+ message.height = longToNumber(reader.int64());
654
+ break;
655
+ case 2:
656
+ message.round = reader.int32();
657
+ break;
658
+ case 3:
659
+ message.blockId = BlockID.decode(reader, reader.uint32());
660
+ break;
661
+ case 4:
662
+ message.signatures.push(CommitSig.decode(reader, reader.uint32()));
663
+ break;
664
+ default:
665
+ reader.skipType(tag & 7);
666
+ break;
667
+ }
668
+ }
669
+ return message;
670
+ },
671
+ fromJSON(object) {
672
+ return {
673
+ height: isSet(object.height) ? Number(object.height) : 0,
674
+ round: isSet(object.round) ? Number(object.round) : 0,
675
+ blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined,
676
+ signatures: Array.isArray(object?.signatures) ? object.signatures.map((e) => CommitSig.fromJSON(e)) : [],
677
+ };
678
+ },
679
+ toJSON(message) {
680
+ const obj = {};
681
+ message.height !== undefined && (obj.height = Math.round(message.height));
682
+ message.round !== undefined && (obj.round = Math.round(message.round));
683
+ message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined);
684
+ if (message.signatures) {
685
+ obj.signatures = message.signatures.map((e) => e ? CommitSig.toJSON(e) : undefined);
686
+ }
687
+ else {
688
+ obj.signatures = [];
689
+ }
690
+ return obj;
691
+ },
692
+ fromPartial(object) {
693
+ const message = createBaseCommit();
694
+ message.height = object.height ?? 0;
695
+ message.round = object.round ?? 0;
696
+ message.blockId = (object.blockId !== undefined && object.blockId !== null)
697
+ ? BlockID.fromPartial(object.blockId)
698
+ : undefined;
699
+ message.signatures = object.signatures?.map((e) => CommitSig.fromPartial(e)) || [];
700
+ return message;
701
+ },
702
+ };
703
+ function createBaseCommitSig() {
704
+ return { blockIdFlag: 0, validatorAddress: new Uint8Array(), timestamp: undefined, signature: new Uint8Array() };
705
+ }
706
+ export const CommitSig = {
707
+ encode(message, writer = _m0.Writer.create()) {
708
+ if (message.blockIdFlag !== 0) {
709
+ writer.uint32(8).int32(message.blockIdFlag);
710
+ }
711
+ if (message.validatorAddress.length !== 0) {
712
+ writer.uint32(18).bytes(message.validatorAddress);
713
+ }
714
+ if (message.timestamp !== undefined) {
715
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim();
716
+ }
717
+ if (message.signature.length !== 0) {
718
+ writer.uint32(34).bytes(message.signature);
719
+ }
720
+ return writer;
721
+ },
722
+ decode(input, length) {
723
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
724
+ let end = length === undefined ? reader.len : reader.pos + length;
725
+ const message = createBaseCommitSig();
726
+ while (reader.pos < end) {
727
+ const tag = reader.uint32();
728
+ switch (tag >>> 3) {
729
+ case 1:
730
+ message.blockIdFlag = reader.int32();
731
+ break;
732
+ case 2:
733
+ message.validatorAddress = reader.bytes();
734
+ break;
735
+ case 3:
736
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
737
+ break;
738
+ case 4:
739
+ message.signature = reader.bytes();
740
+ break;
741
+ default:
742
+ reader.skipType(tag & 7);
743
+ break;
744
+ }
745
+ }
746
+ return message;
747
+ },
748
+ fromJSON(object) {
749
+ return {
750
+ blockIdFlag: isSet(object.blockIdFlag) ? blockIDFlagFromJSON(object.blockIdFlag) : 0,
751
+ validatorAddress: isSet(object.validatorAddress) ? bytesFromBase64(object.validatorAddress) : new Uint8Array(),
752
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
753
+ signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array(),
754
+ };
755
+ },
756
+ toJSON(message) {
757
+ const obj = {};
758
+ message.blockIdFlag !== undefined && (obj.blockIdFlag = blockIDFlagToJSON(message.blockIdFlag));
759
+ message.validatorAddress !== undefined
760
+ && (obj.validatorAddress = base64FromBytes(message.validatorAddress !== undefined ? message.validatorAddress : new Uint8Array()));
761
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
762
+ message.signature !== undefined
763
+ && (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : new Uint8Array()));
764
+ return obj;
765
+ },
766
+ fromPartial(object) {
767
+ const message = createBaseCommitSig();
768
+ message.blockIdFlag = object.blockIdFlag ?? 0;
769
+ message.validatorAddress = object.validatorAddress ?? new Uint8Array();
770
+ message.timestamp = object.timestamp ?? undefined;
771
+ message.signature = object.signature ?? new Uint8Array();
772
+ return message;
773
+ },
774
+ };
775
+ function createBaseProposal() {
776
+ return {
777
+ type: 0,
778
+ height: 0,
779
+ round: 0,
780
+ polRound: 0,
781
+ blockId: undefined,
782
+ timestamp: undefined,
783
+ signature: new Uint8Array(),
784
+ };
785
+ }
786
+ export const Proposal = {
787
+ encode(message, writer = _m0.Writer.create()) {
788
+ if (message.type !== 0) {
789
+ writer.uint32(8).int32(message.type);
790
+ }
791
+ if (message.height !== 0) {
792
+ writer.uint32(16).int64(message.height);
793
+ }
794
+ if (message.round !== 0) {
795
+ writer.uint32(24).int32(message.round);
796
+ }
797
+ if (message.polRound !== 0) {
798
+ writer.uint32(32).int32(message.polRound);
799
+ }
800
+ if (message.blockId !== undefined) {
801
+ BlockID.encode(message.blockId, writer.uint32(42).fork()).ldelim();
802
+ }
803
+ if (message.timestamp !== undefined) {
804
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(50).fork()).ldelim();
805
+ }
806
+ if (message.signature.length !== 0) {
807
+ writer.uint32(58).bytes(message.signature);
808
+ }
809
+ return writer;
810
+ },
811
+ decode(input, length) {
812
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
813
+ let end = length === undefined ? reader.len : reader.pos + length;
814
+ const message = createBaseProposal();
815
+ while (reader.pos < end) {
816
+ const tag = reader.uint32();
817
+ switch (tag >>> 3) {
818
+ case 1:
819
+ message.type = reader.int32();
820
+ break;
821
+ case 2:
822
+ message.height = longToNumber(reader.int64());
823
+ break;
824
+ case 3:
825
+ message.round = reader.int32();
826
+ break;
827
+ case 4:
828
+ message.polRound = reader.int32();
829
+ break;
830
+ case 5:
831
+ message.blockId = BlockID.decode(reader, reader.uint32());
832
+ break;
833
+ case 6:
834
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
835
+ break;
836
+ case 7:
837
+ message.signature = reader.bytes();
838
+ break;
839
+ default:
840
+ reader.skipType(tag & 7);
841
+ break;
842
+ }
843
+ }
844
+ return message;
845
+ },
846
+ fromJSON(object) {
847
+ return {
848
+ type: isSet(object.type) ? signedMsgTypeFromJSON(object.type) : 0,
849
+ height: isSet(object.height) ? Number(object.height) : 0,
850
+ round: isSet(object.round) ? Number(object.round) : 0,
851
+ polRound: isSet(object.polRound) ? Number(object.polRound) : 0,
852
+ blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined,
853
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
854
+ signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array(),
855
+ };
856
+ },
857
+ toJSON(message) {
858
+ const obj = {};
859
+ message.type !== undefined && (obj.type = signedMsgTypeToJSON(message.type));
860
+ message.height !== undefined && (obj.height = Math.round(message.height));
861
+ message.round !== undefined && (obj.round = Math.round(message.round));
862
+ message.polRound !== undefined && (obj.polRound = Math.round(message.polRound));
863
+ message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined);
864
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
865
+ message.signature !== undefined
866
+ && (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : new Uint8Array()));
867
+ return obj;
868
+ },
869
+ fromPartial(object) {
870
+ const message = createBaseProposal();
871
+ message.type = object.type ?? 0;
872
+ message.height = object.height ?? 0;
873
+ message.round = object.round ?? 0;
874
+ message.polRound = object.polRound ?? 0;
875
+ message.blockId = (object.blockId !== undefined && object.blockId !== null)
876
+ ? BlockID.fromPartial(object.blockId)
877
+ : undefined;
878
+ message.timestamp = object.timestamp ?? undefined;
879
+ message.signature = object.signature ?? new Uint8Array();
880
+ return message;
881
+ },
882
+ };
883
+ function createBaseSignedHeader() {
884
+ return { header: undefined, commit: undefined };
885
+ }
886
+ export const SignedHeader = {
887
+ encode(message, writer = _m0.Writer.create()) {
888
+ if (message.header !== undefined) {
889
+ Header.encode(message.header, writer.uint32(10).fork()).ldelim();
890
+ }
891
+ if (message.commit !== undefined) {
892
+ Commit.encode(message.commit, writer.uint32(18).fork()).ldelim();
893
+ }
894
+ return writer;
895
+ },
896
+ decode(input, length) {
897
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
898
+ let end = length === undefined ? reader.len : reader.pos + length;
899
+ const message = createBaseSignedHeader();
900
+ while (reader.pos < end) {
901
+ const tag = reader.uint32();
902
+ switch (tag >>> 3) {
903
+ case 1:
904
+ message.header = Header.decode(reader, reader.uint32());
905
+ break;
906
+ case 2:
907
+ message.commit = Commit.decode(reader, reader.uint32());
908
+ break;
909
+ default:
910
+ reader.skipType(tag & 7);
911
+ break;
912
+ }
913
+ }
914
+ return message;
915
+ },
916
+ fromJSON(object) {
917
+ return {
918
+ header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
919
+ commit: isSet(object.commit) ? Commit.fromJSON(object.commit) : undefined,
920
+ };
921
+ },
922
+ toJSON(message) {
923
+ const obj = {};
924
+ message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined);
925
+ message.commit !== undefined && (obj.commit = message.commit ? Commit.toJSON(message.commit) : undefined);
926
+ return obj;
927
+ },
928
+ fromPartial(object) {
929
+ const message = createBaseSignedHeader();
930
+ message.header = (object.header !== undefined && object.header !== null)
931
+ ? Header.fromPartial(object.header)
932
+ : undefined;
933
+ message.commit = (object.commit !== undefined && object.commit !== null)
934
+ ? Commit.fromPartial(object.commit)
935
+ : undefined;
936
+ return message;
937
+ },
938
+ };
939
+ function createBaseLightBlock() {
940
+ return { signedHeader: undefined, validatorSet: undefined };
941
+ }
942
+ export const LightBlock = {
943
+ encode(message, writer = _m0.Writer.create()) {
944
+ if (message.signedHeader !== undefined) {
945
+ SignedHeader.encode(message.signedHeader, writer.uint32(10).fork()).ldelim();
946
+ }
947
+ if (message.validatorSet !== undefined) {
948
+ ValidatorSet.encode(message.validatorSet, writer.uint32(18).fork()).ldelim();
949
+ }
950
+ return writer;
951
+ },
952
+ decode(input, length) {
953
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
954
+ let end = length === undefined ? reader.len : reader.pos + length;
955
+ const message = createBaseLightBlock();
956
+ while (reader.pos < end) {
957
+ const tag = reader.uint32();
958
+ switch (tag >>> 3) {
959
+ case 1:
960
+ message.signedHeader = SignedHeader.decode(reader, reader.uint32());
961
+ break;
962
+ case 2:
963
+ message.validatorSet = ValidatorSet.decode(reader, reader.uint32());
964
+ break;
965
+ default:
966
+ reader.skipType(tag & 7);
967
+ break;
968
+ }
969
+ }
970
+ return message;
971
+ },
972
+ fromJSON(object) {
973
+ return {
974
+ signedHeader: isSet(object.signedHeader) ? SignedHeader.fromJSON(object.signedHeader) : undefined,
975
+ validatorSet: isSet(object.validatorSet) ? ValidatorSet.fromJSON(object.validatorSet) : undefined,
976
+ };
977
+ },
978
+ toJSON(message) {
979
+ const obj = {};
980
+ message.signedHeader !== undefined
981
+ && (obj.signedHeader = message.signedHeader ? SignedHeader.toJSON(message.signedHeader) : undefined);
982
+ message.validatorSet !== undefined
983
+ && (obj.validatorSet = message.validatorSet ? ValidatorSet.toJSON(message.validatorSet) : undefined);
984
+ return obj;
985
+ },
986
+ fromPartial(object) {
987
+ const message = createBaseLightBlock();
988
+ message.signedHeader = (object.signedHeader !== undefined && object.signedHeader !== null)
989
+ ? SignedHeader.fromPartial(object.signedHeader)
990
+ : undefined;
991
+ message.validatorSet = (object.validatorSet !== undefined && object.validatorSet !== null)
992
+ ? ValidatorSet.fromPartial(object.validatorSet)
993
+ : undefined;
994
+ return message;
995
+ },
996
+ };
997
+ function createBaseBlockMeta() {
998
+ return { blockId: undefined, blockSize: 0, header: undefined, numTxs: 0 };
999
+ }
1000
+ export const BlockMeta = {
1001
+ encode(message, writer = _m0.Writer.create()) {
1002
+ if (message.blockId !== undefined) {
1003
+ BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim();
1004
+ }
1005
+ if (message.blockSize !== 0) {
1006
+ writer.uint32(16).int64(message.blockSize);
1007
+ }
1008
+ if (message.header !== undefined) {
1009
+ Header.encode(message.header, writer.uint32(26).fork()).ldelim();
1010
+ }
1011
+ if (message.numTxs !== 0) {
1012
+ writer.uint32(32).int64(message.numTxs);
1013
+ }
1014
+ return writer;
1015
+ },
1016
+ decode(input, length) {
1017
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1018
+ let end = length === undefined ? reader.len : reader.pos + length;
1019
+ const message = createBaseBlockMeta();
1020
+ while (reader.pos < end) {
1021
+ const tag = reader.uint32();
1022
+ switch (tag >>> 3) {
1023
+ case 1:
1024
+ message.blockId = BlockID.decode(reader, reader.uint32());
1025
+ break;
1026
+ case 2:
1027
+ message.blockSize = longToNumber(reader.int64());
1028
+ break;
1029
+ case 3:
1030
+ message.header = Header.decode(reader, reader.uint32());
1031
+ break;
1032
+ case 4:
1033
+ message.numTxs = longToNumber(reader.int64());
1034
+ break;
1035
+ default:
1036
+ reader.skipType(tag & 7);
1037
+ break;
1038
+ }
1039
+ }
1040
+ return message;
1041
+ },
1042
+ fromJSON(object) {
1043
+ return {
1044
+ blockId: isSet(object.blockId) ? BlockID.fromJSON(object.blockId) : undefined,
1045
+ blockSize: isSet(object.blockSize) ? Number(object.blockSize) : 0,
1046
+ header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
1047
+ numTxs: isSet(object.numTxs) ? Number(object.numTxs) : 0,
1048
+ };
1049
+ },
1050
+ toJSON(message) {
1051
+ const obj = {};
1052
+ message.blockId !== undefined && (obj.blockId = message.blockId ? BlockID.toJSON(message.blockId) : undefined);
1053
+ message.blockSize !== undefined && (obj.blockSize = Math.round(message.blockSize));
1054
+ message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined);
1055
+ message.numTxs !== undefined && (obj.numTxs = Math.round(message.numTxs));
1056
+ return obj;
1057
+ },
1058
+ fromPartial(object) {
1059
+ const message = createBaseBlockMeta();
1060
+ message.blockId = (object.blockId !== undefined && object.blockId !== null)
1061
+ ? BlockID.fromPartial(object.blockId)
1062
+ : undefined;
1063
+ message.blockSize = object.blockSize ?? 0;
1064
+ message.header = (object.header !== undefined && object.header !== null)
1065
+ ? Header.fromPartial(object.header)
1066
+ : undefined;
1067
+ message.numTxs = object.numTxs ?? 0;
1068
+ return message;
1069
+ },
1070
+ };
1071
+ function createBaseTxProof() {
1072
+ return { rootHash: new Uint8Array(), data: new Uint8Array(), proof: undefined };
1073
+ }
1074
+ export const TxProof = {
1075
+ encode(message, writer = _m0.Writer.create()) {
1076
+ if (message.rootHash.length !== 0) {
1077
+ writer.uint32(10).bytes(message.rootHash);
1078
+ }
1079
+ if (message.data.length !== 0) {
1080
+ writer.uint32(18).bytes(message.data);
1081
+ }
1082
+ if (message.proof !== undefined) {
1083
+ Proof.encode(message.proof, writer.uint32(26).fork()).ldelim();
1084
+ }
1085
+ return writer;
1086
+ },
1087
+ decode(input, length) {
1088
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1089
+ let end = length === undefined ? reader.len : reader.pos + length;
1090
+ const message = createBaseTxProof();
1091
+ while (reader.pos < end) {
1092
+ const tag = reader.uint32();
1093
+ switch (tag >>> 3) {
1094
+ case 1:
1095
+ message.rootHash = reader.bytes();
1096
+ break;
1097
+ case 2:
1098
+ message.data = reader.bytes();
1099
+ break;
1100
+ case 3:
1101
+ message.proof = Proof.decode(reader, reader.uint32());
1102
+ break;
1103
+ default:
1104
+ reader.skipType(tag & 7);
1105
+ break;
1106
+ }
1107
+ }
1108
+ return message;
1109
+ },
1110
+ fromJSON(object) {
1111
+ return {
1112
+ rootHash: isSet(object.rootHash) ? bytesFromBase64(object.rootHash) : new Uint8Array(),
1113
+ data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
1114
+ proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : undefined,
1115
+ };
1116
+ },
1117
+ toJSON(message) {
1118
+ const obj = {};
1119
+ message.rootHash !== undefined
1120
+ && (obj.rootHash = base64FromBytes(message.rootHash !== undefined ? message.rootHash : new Uint8Array()));
1121
+ message.data !== undefined
1122
+ && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
1123
+ message.proof !== undefined && (obj.proof = message.proof ? Proof.toJSON(message.proof) : undefined);
1124
+ return obj;
1125
+ },
1126
+ fromPartial(object) {
1127
+ const message = createBaseTxProof();
1128
+ message.rootHash = object.rootHash ?? new Uint8Array();
1129
+ message.data = object.data ?? new Uint8Array();
1130
+ message.proof = (object.proof !== undefined && object.proof !== null) ? Proof.fromPartial(object.proof) : undefined;
1131
+ return message;
1132
+ },
1133
+ };
1134
+ var globalThis = (() => {
1135
+ if (typeof globalThis !== "undefined") {
1136
+ return globalThis;
1137
+ }
1138
+ if (typeof self !== "undefined") {
1139
+ return self;
1140
+ }
1141
+ if (typeof window !== "undefined") {
1142
+ return window;
1143
+ }
1144
+ if (typeof global !== "undefined") {
1145
+ return global;
1146
+ }
1147
+ throw "Unable to locate global object";
1148
+ })();
1149
+ function bytesFromBase64(b64) {
1150
+ if (globalThis.Buffer) {
1151
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
1152
+ }
1153
+ else {
1154
+ const bin = globalThis.atob(b64);
1155
+ const arr = new Uint8Array(bin.length);
1156
+ for (let i = 0; i < bin.length; ++i) {
1157
+ arr[i] = bin.charCodeAt(i);
1158
+ }
1159
+ return arr;
1160
+ }
1161
+ }
1162
+ function base64FromBytes(arr) {
1163
+ if (globalThis.Buffer) {
1164
+ return globalThis.Buffer.from(arr).toString("base64");
1165
+ }
1166
+ else {
1167
+ const bin = [];
1168
+ arr.forEach((byte) => {
1169
+ bin.push(String.fromCharCode(byte));
1170
+ });
1171
+ return globalThis.btoa(bin.join(""));
1172
+ }
1173
+ }
1174
+ function toTimestamp(date) {
1175
+ const seconds = date.getTime() / 1000;
1176
+ const nanos = (date.getTime() % 1000) * 1000000;
1177
+ return { seconds, nanos };
1178
+ }
1179
+ function fromTimestamp(t) {
1180
+ let millis = t.seconds * 1000;
1181
+ millis += t.nanos / 1000000;
1182
+ return new Date(millis);
1183
+ }
1184
+ function fromJsonTimestamp(o) {
1185
+ if (o instanceof Date) {
1186
+ return o;
1187
+ }
1188
+ else if (typeof o === "string") {
1189
+ return new Date(o);
1190
+ }
1191
+ else {
1192
+ return fromTimestamp(Timestamp.fromJSON(o));
1193
+ }
1194
+ }
1195
+ function longToNumber(long) {
1196
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
1197
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
1198
+ }
1199
+ return long.toNumber();
1200
+ }
1201
+ if (_m0.util.Long !== Long) {
1202
+ _m0.util.Long = Long;
1203
+ _m0.configure();
1204
+ }
1205
+ function isSet(value) {
1206
+ return value !== null && value !== undefined;
1207
+ }