@bze/bzejs 0.0.3 → 0.0.5

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 (502) hide show
  1. package/main/codegen/beezee/burner/burn_coins_proposal.js +13 -0
  2. package/main/codegen/beezee/burner/burned_coins.js +13 -0
  3. package/main/codegen/beezee/burner/events.js +23 -0
  4. package/main/codegen/beezee/burner/genesis.js +21 -0
  5. package/main/codegen/beezee/burner/params.js +7 -0
  6. package/main/codegen/beezee/burner/query.js +48 -0
  7. package/main/codegen/beezee/burner/tx.js +20 -0
  8. package/main/codegen/beezee/cointrunk/accepted_domain.js +13 -0
  9. package/main/codegen/beezee/cointrunk/accepted_domain_proposal.js +17 -0
  10. package/main/codegen/beezee/cointrunk/anon_articles_counter.js +13 -1
  11. package/main/codegen/beezee/cointrunk/article.js +23 -1
  12. package/main/codegen/beezee/cointrunk/events.js +71 -1
  13. package/main/codegen/beezee/cointrunk/genesis.js +43 -1
  14. package/main/codegen/beezee/cointrunk/params.js +26 -0
  15. package/main/codegen/beezee/cointrunk/publisher.js +21 -1
  16. package/main/codegen/beezee/cointrunk/publisher_proposal.js +19 -0
  17. package/main/codegen/beezee/cointrunk/query.js +158 -0
  18. package/main/codegen/beezee/cointrunk/tx.js +51 -0
  19. package/main/codegen/bze/bundle.js +12 -16
  20. package/main/codegen/cosmos/app/v1alpha1/config.js +31 -0
  21. package/main/codegen/cosmos/app/v1alpha1/module.js +53 -0
  22. package/main/codegen/cosmos/app/v1alpha1/query.js +18 -0
  23. package/main/codegen/cosmos/auth/v1beta1/auth.js +57 -1
  24. package/main/codegen/cosmos/auth/v1beta1/genesis.js +21 -0
  25. package/main/codegen/cosmos/auth/v1beta1/query.js +150 -0
  26. package/main/codegen/cosmos/authz/v1beta1/authz.js +63 -8
  27. package/main/codegen/cosmos/authz/v1beta1/event.js +29 -0
  28. package/main/codegen/cosmos/authz/v1beta1/genesis.js +18 -0
  29. package/main/codegen/cosmos/authz/v1beta1/query.js +101 -0
  30. package/main/codegen/cosmos/authz/v1beta1/tx.js +81 -0
  31. package/main/codegen/cosmos/bank/v1beta1/authz.js +18 -0
  32. package/main/codegen/cosmos/bank/v1beta1/bank.js +145 -0
  33. package/main/codegen/cosmos/bank/v1beta1/genesis.js +61 -0
  34. package/main/codegen/cosmos/bank/v1beta1/query.js +248 -0
  35. package/main/codegen/cosmos/bank/v1beta1/tx.js +65 -0
  36. package/main/codegen/cosmos/base/abci/v1beta1/abci.js +229 -1
  37. package/main/codegen/cosmos/base/kv/v1beta1/kv.js +31 -0
  38. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +31 -1
  39. package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +54 -0
  40. package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +337 -0
  41. package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +135 -1
  42. package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +45 -1
  43. package/main/codegen/cosmos/base/store/v1beta1/listening.js +17 -0
  44. package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +206 -1
  45. package/main/codegen/cosmos/base/v1beta1/coin.js +45 -0
  46. package/main/codegen/cosmos/bundle.js +73 -101
  47. package/main/codegen/cosmos/capability/v1beta1/capability.js +41 -1
  48. package/main/codegen/cosmos/capability/v1beta1/genesis.js +33 -1
  49. package/main/codegen/cosmos/crisis/v1beta1/genesis.js +11 -0
  50. package/main/codegen/cosmos/crisis/v1beta1/tx.js +22 -0
  51. package/main/codegen/cosmos/crypto/ed25519/keys.js +21 -0
  52. package/main/codegen/cosmos/crypto/hd/v1/hd.js +19 -0
  53. package/main/codegen/cosmos/crypto/keyring/v1/record.js +57 -0
  54. package/main/codegen/cosmos/crypto/multisig/keys.js +21 -0
  55. package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +31 -0
  56. package/main/codegen/cosmos/crypto/secp256k1/keys.js +21 -0
  57. package/main/codegen/cosmos/crypto/secp256r1/keys.js +21 -0
  58. package/main/codegen/cosmos/distribution/v1beta1/distribution.js +216 -0
  59. package/main/codegen/cosmos/distribution/v1beta1/genesis.js +184 -0
  60. package/main/codegen/cosmos/distribution/v1beta1/query.js +234 -0
  61. package/main/codegen/cosmos/distribution/v1beta1/tx.js +105 -0
  62. package/main/codegen/cosmos/evidence/v1beta1/evidence.js +21 -5
  63. package/main/codegen/cosmos/evidence/v1beta1/genesis.js +18 -0
  64. package/main/codegen/cosmos/evidence/v1beta1/query.js +51 -0
  65. package/main/codegen/cosmos/evidence/v1beta1/tx.js +23 -0
  66. package/main/codegen/cosmos/feegrant/v1beta1/feegrant.js +96 -8
  67. package/main/codegen/cosmos/feegrant/v1beta1/genesis.js +18 -0
  68. package/main/codegen/cosmos/feegrant/v1beta1/query.js +87 -0
  69. package/main/codegen/cosmos/feegrant/v1beta1/tx.js +41 -0
  70. package/main/codegen/cosmos/genutil/v1beta1/genesis.js +19 -0
  71. package/main/codegen/cosmos/gov/v1/genesis.js +47 -1
  72. package/main/codegen/cosmos/gov/v1/gov.js +196 -15
  73. package/main/codegen/cosmos/gov/v1/query.js +209 -1
  74. package/main/codegen/cosmos/gov/v1/tx.js +144 -0
  75. package/main/codegen/cosmos/gov/v1beta1/genesis.js +47 -1
  76. package/main/codegen/cosmos/gov/v1beta1/gov.js +198 -15
  77. package/main/codegen/cosmos/gov/v1beta1/query.js +209 -1
  78. package/main/codegen/cosmos/gov/v1beta1/tx.js +111 -0
  79. package/main/codegen/cosmos/group/v1/events.js +96 -1
  80. package/main/codegen/cosmos/group/v1/genesis.js +65 -1
  81. package/main/codegen/cosmos/group/v1/query.js +359 -1
  82. package/main/codegen/cosmos/group/v1/tx.js +365 -1
  83. package/main/codegen/cosmos/group/v1/types.js +269 -27
  84. package/main/codegen/cosmos/mint/v1beta1/genesis.js +13 -0
  85. package/main/codegen/cosmos/mint/v1beta1/mint.js +32 -0
  86. package/main/codegen/cosmos/mint/v1beta1/query.js +52 -0
  87. package/main/codegen/cosmos/nft/v1beta1/event.js +45 -0
  88. package/main/codegen/cosmos/nft/v1beta1/genesis.js +49 -0
  89. package/main/codegen/cosmos/nft/v1beta1/nft.js +41 -0
  90. package/main/codegen/cosmos/nft/v1beta1/query.js +170 -0
  91. package/main/codegen/cosmos/nft/v1beta1/tx.js +24 -0
  92. package/main/codegen/cosmos/orm/v1/orm.js +59 -0
  93. package/main/codegen/cosmos/orm/v1alpha1/schema.js +45 -1
  94. package/main/codegen/cosmos/params/v1beta1/params.js +37 -0
  95. package/main/codegen/cosmos/params/v1beta1/query.js +68 -0
  96. package/main/codegen/cosmos/slashing/v1beta1/genesis.js +74 -0
  97. package/main/codegen/cosmos/slashing/v1beta1/query.js +68 -0
  98. package/main/codegen/cosmos/slashing/v1beta1/slashing.js +43 -5
  99. package/main/codegen/cosmos/slashing/v1beta1/tx.js +18 -0
  100. package/main/codegen/cosmos/staking/v1beta1/authz.js +48 -1
  101. package/main/codegen/cosmos/staking/v1beta1/genesis.js +76 -0
  102. package/main/codegen/cosmos/staking/v1beta1/query.js +368 -0
  103. package/main/codegen/cosmos/staking/v1beta1/staking.js +366 -17
  104. package/main/codegen/cosmos/staking/v1beta1/tx.js +129 -8
  105. package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +95 -1
  106. package/main/codegen/cosmos/tx/v1beta1/service.js +173 -2
  107. package/main/codegen/cosmos/tx/v1beta1/tx.js +261 -0
  108. package/main/codegen/cosmos/upgrade/v1beta1/query.js +102 -0
  109. package/main/codegen/cosmos/upgrade/v1beta1/tx.js +37 -0
  110. package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +61 -5
  111. package/main/codegen/cosmos/vesting/v1beta1/tx.js +94 -1
  112. package/main/codegen/cosmos/vesting/v1beta1/vesting.js +117 -1
  113. package/main/codegen/cosmos_proto/cosmos.js +42 -1
  114. package/main/codegen/extern.js +66 -0
  115. package/main/codegen/google/api/http.js +69 -0
  116. package/main/codegen/google/protobuf/any.js +13 -0
  117. package/main/codegen/google/protobuf/descriptor.js +815 -6
  118. package/main/codegen/google/protobuf/duration.js +13 -1
  119. package/main/codegen/google/protobuf/empty.js +7 -0
  120. package/main/codegen/google/protobuf/timestamp.js +13 -1
  121. package/main/codegen/helpers.js +1 -1
  122. package/main/codegen/index.js +11 -22
  123. package/main/codegen/tendermint/abci/types.js +785 -12
  124. package/main/codegen/tendermint/crypto/keys.js +13 -0
  125. package/main/codegen/tendermint/crypto/proof.js +83 -1
  126. package/main/codegen/tendermint/libs/bits/types.js +21 -1
  127. package/main/codegen/tendermint/p2p/types.js +100 -12
  128. package/main/codegen/tendermint/types/block.js +17 -0
  129. package/main/codegen/tendermint/types/evidence.js +81 -8
  130. package/main/codegen/tendermint/types/params.js +84 -0
  131. package/main/codegen/tendermint/types/types.js +266 -18
  132. package/main/codegen/tendermint/types/validator.js +51 -1
  133. package/main/codegen/tendermint/version/types.js +25 -1
  134. package/module/codegen/beezee/burner/burn_coins_proposal.js +13 -0
  135. package/module/codegen/beezee/burner/burned_coins.js +13 -0
  136. package/module/codegen/beezee/burner/events.js +23 -0
  137. package/module/codegen/beezee/burner/genesis.js +19 -0
  138. package/module/codegen/beezee/burner/params.js +9 -0
  139. package/module/codegen/beezee/burner/query.js +46 -0
  140. package/module/codegen/beezee/burner/tx.js +20 -0
  141. package/module/codegen/beezee/cointrunk/accepted_domain.js +13 -0
  142. package/module/codegen/beezee/cointrunk/accepted_domain_proposal.js +17 -0
  143. package/module/codegen/beezee/cointrunk/anon_articles_counter.js +13 -1
  144. package/module/codegen/beezee/cointrunk/article.js +23 -1
  145. package/module/codegen/beezee/cointrunk/events.js +71 -1
  146. package/module/codegen/beezee/cointrunk/genesis.js +31 -1
  147. package/module/codegen/beezee/cointrunk/params.js +27 -1
  148. package/module/codegen/beezee/cointrunk/publisher.js +21 -1
  149. package/module/codegen/beezee/cointrunk/publisher_proposal.js +19 -0
  150. package/module/codegen/beezee/cointrunk/query.js +144 -0
  151. package/module/codegen/beezee/cointrunk/tx.js +52 -1
  152. package/module/codegen/bze/bundle.js +12 -16
  153. package/module/codegen/cosmos/app/v1alpha1/config.js +37 -0
  154. package/module/codegen/cosmos/app/v1alpha1/module.js +47 -0
  155. package/module/codegen/cosmos/app/v1alpha1/query.js +20 -0
  156. package/module/codegen/cosmos/auth/v1beta1/auth.js +53 -1
  157. package/module/codegen/cosmos/auth/v1beta1/genesis.js +19 -0
  158. package/module/codegen/cosmos/auth/v1beta1/query.js +148 -0
  159. package/module/codegen/cosmos/authz/v1beta1/authz.js +60 -9
  160. package/module/codegen/cosmos/authz/v1beta1/event.js +31 -0
  161. package/module/codegen/cosmos/authz/v1beta1/genesis.js +16 -0
  162. package/module/codegen/cosmos/authz/v1beta1/query.js +91 -0
  163. package/module/codegen/cosmos/authz/v1beta1/tx.js +78 -0
  164. package/module/codegen/cosmos/bank/v1beta1/authz.js +21 -0
  165. package/module/codegen/cosmos/bank/v1beta1/bank.js +123 -0
  166. package/module/codegen/cosmos/bank/v1beta1/genesis.js +47 -0
  167. package/module/codegen/cosmos/bank/v1beta1/query.js +230 -0
  168. package/module/codegen/cosmos/bank/v1beta1/tx.js +55 -0
  169. package/module/codegen/cosmos/base/abci/v1beta1/abci.js +193 -1
  170. package/module/codegen/cosmos/base/kv/v1beta1/kv.js +29 -0
  171. package/module/codegen/cosmos/base/query/v1beta1/pagination.js +31 -1
  172. package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +48 -0
  173. package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +307 -0
  174. package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +127 -1
  175. package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +41 -1
  176. package/module/codegen/cosmos/base/store/v1beta1/listening.js +25 -0
  177. package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +194 -1
  178. package/module/codegen/cosmos/base/v1beta1/coin.js +52 -0
  179. package/module/codegen/cosmos/bundle.js +73 -101
  180. package/module/codegen/cosmos/capability/v1beta1/capability.js +37 -1
  181. package/module/codegen/cosmos/capability/v1beta1/genesis.js +29 -1
  182. package/module/codegen/cosmos/crisis/v1beta1/genesis.js +13 -0
  183. package/module/codegen/cosmos/crisis/v1beta1/tx.js +24 -0
  184. package/module/codegen/cosmos/crypto/ed25519/keys.js +29 -0
  185. package/module/codegen/cosmos/crypto/hd/v1/hd.js +21 -0
  186. package/module/codegen/cosmos/crypto/keyring/v1/record.js +59 -0
  187. package/module/codegen/cosmos/crypto/multisig/keys.js +23 -0
  188. package/module/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +33 -0
  189. package/module/codegen/cosmos/crypto/secp256k1/keys.js +29 -0
  190. package/module/codegen/cosmos/crypto/secp256r1/keys.js +23 -0
  191. package/module/codegen/cosmos/distribution/v1beta1/distribution.js +185 -1
  192. package/module/codegen/cosmos/distribution/v1beta1/genesis.js +153 -1
  193. package/module/codegen/cosmos/distribution/v1beta1/query.js +211 -1
  194. package/module/codegen/cosmos/distribution/v1beta1/tx.js +98 -0
  195. package/module/codegen/cosmos/evidence/v1beta1/evidence.js +21 -5
  196. package/module/codegen/cosmos/evidence/v1beta1/genesis.js +16 -0
  197. package/module/codegen/cosmos/evidence/v1beta1/query.js +49 -0
  198. package/module/codegen/cosmos/evidence/v1beta1/tx.js +28 -0
  199. package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +81 -9
  200. package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +16 -0
  201. package/module/codegen/cosmos/feegrant/v1beta1/query.js +81 -0
  202. package/module/codegen/cosmos/feegrant/v1beta1/tx.js +46 -0
  203. package/module/codegen/cosmos/genutil/v1beta1/genesis.js +17 -0
  204. package/module/codegen/cosmos/gov/v1/genesis.js +35 -1
  205. package/module/codegen/cosmos/gov/v1/gov.js +177 -16
  206. package/module/codegen/cosmos/gov/v1/query.js +198 -2
  207. package/module/codegen/cosmos/gov/v1/tx.js +130 -2
  208. package/module/codegen/cosmos/gov/v1beta1/genesis.js +35 -1
  209. package/module/codegen/cosmos/gov/v1beta1/gov.js +183 -16
  210. package/module/codegen/cosmos/gov/v1beta1/query.js +198 -2
  211. package/module/codegen/cosmos/gov/v1beta1/tx.js +101 -2
  212. package/module/codegen/cosmos/group/v1/events.js +96 -1
  213. package/module/codegen/cosmos/group/v1/genesis.js +45 -1
  214. package/module/codegen/cosmos/group/v1/query.js +327 -1
  215. package/module/codegen/cosmos/group/v1/tx.js +347 -3
  216. package/module/codegen/cosmos/group/v1/types.js +258 -28
  217. package/module/codegen/cosmos/mint/v1beta1/genesis.js +15 -0
  218. package/module/codegen/cosmos/mint/v1beta1/mint.js +33 -1
  219. package/module/codegen/cosmos/mint/v1beta1/query.js +54 -0
  220. package/module/codegen/cosmos/nft/v1beta1/event.js +47 -0
  221. package/module/codegen/cosmos/nft/v1beta1/genesis.js +39 -0
  222. package/module/codegen/cosmos/nft/v1beta1/nft.js +43 -0
  223. package/module/codegen/cosmos/nft/v1beta1/query.js +163 -1
  224. package/module/codegen/cosmos/nft/v1beta1/tx.js +26 -0
  225. package/module/codegen/cosmos/orm/v1/orm.js +57 -0
  226. package/module/codegen/cosmos/orm/v1alpha1/schema.js +41 -1
  227. package/module/codegen/cosmos/params/v1beta1/params.js +35 -0
  228. package/module/codegen/cosmos/params/v1beta1/query.js +62 -0
  229. package/module/codegen/cosmos/slashing/v1beta1/genesis.js +63 -1
  230. package/module/codegen/cosmos/slashing/v1beta1/query.js +66 -0
  231. package/module/codegen/cosmos/slashing/v1beta1/slashing.js +43 -5
  232. package/module/codegen/cosmos/slashing/v1beta1/tx.js +20 -0
  233. package/module/codegen/cosmos/staking/v1beta1/authz.js +44 -1
  234. package/module/codegen/cosmos/staking/v1beta1/genesis.js +57 -1
  235. package/module/codegen/cosmos/staking/v1beta1/query.js +341 -1
  236. package/module/codegen/cosmos/staking/v1beta1/staking.js +339 -18
  237. package/module/codegen/cosmos/staking/v1beta1/tx.js +130 -9
  238. package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +88 -2
  239. package/module/codegen/cosmos/tx/v1beta1/service.js +158 -3
  240. package/module/codegen/cosmos/tx/v1beta1/tx.js +226 -1
  241. package/module/codegen/cosmos/upgrade/v1beta1/query.js +99 -1
  242. package/module/codegen/cosmos/upgrade/v1beta1/tx.js +43 -0
  243. package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +61 -5
  244. package/module/codegen/cosmos/vesting/v1beta1/tx.js +82 -1
  245. package/module/codegen/cosmos/vesting/v1beta1/vesting.js +97 -1
  246. package/module/codegen/cosmos_proto/cosmos.js +38 -1
  247. package/module/codegen/extern.js +30 -0
  248. package/module/codegen/google/api/http.js +67 -0
  249. package/module/codegen/google/protobuf/any.js +95 -0
  250. package/module/codegen/google/protobuf/descriptor.js +672 -7
  251. package/module/codegen/google/protobuf/duration.js +13 -1
  252. package/module/codegen/google/protobuf/empty.js +19 -0
  253. package/module/codegen/google/protobuf/timestamp.js +13 -1
  254. package/module/codegen/helpers.js +1 -1
  255. package/module/codegen/index.js +3 -4
  256. package/module/codegen/tendermint/abci/types.js +734 -13
  257. package/module/codegen/tendermint/crypto/keys.js +15 -0
  258. package/module/codegen/tendermint/crypto/proof.js +75 -1
  259. package/module/codegen/tendermint/libs/bits/types.js +17 -1
  260. package/module/codegen/tendermint/p2p/types.js +96 -12
  261. package/module/codegen/tendermint/types/block.js +17 -0
  262. package/module/codegen/tendermint/types/evidence.js +74 -9
  263. package/module/codegen/tendermint/types/params.js +81 -1
  264. package/module/codegen/tendermint/types/types.js +259 -19
  265. package/module/codegen/tendermint/types/validator.js +47 -1
  266. package/module/codegen/tendermint/version/types.js +25 -1
  267. package/package.json +1 -1
  268. package/src/codegen/beezee/burner/burn_coins_proposal.ts +16 -2
  269. package/src/codegen/beezee/burner/burned_coins.ts +16 -2
  270. package/src/codegen/beezee/burner/events.ts +29 -3
  271. package/src/codegen/beezee/burner/genesis.ts +22 -2
  272. package/src/codegen/beezee/burner/params.ts +10 -2
  273. package/src/codegen/beezee/burner/query.ts +59 -5
  274. package/src/codegen/beezee/burner/tx.ts +26 -3
  275. package/src/codegen/beezee/cointrunk/accepted_domain.ts +16 -2
  276. package/src/codegen/beezee/cointrunk/accepted_domain_proposal.ts +20 -2
  277. package/src/codegen/beezee/cointrunk/anon_articles_counter.ts +16 -2
  278. package/src/codegen/beezee/cointrunk/article.ts +26 -2
  279. package/src/codegen/beezee/cointrunk/events.ts +89 -7
  280. package/src/codegen/beezee/cointrunk/genesis.ts +38 -2
  281. package/src/codegen/beezee/cointrunk/params.ts +33 -3
  282. package/src/codegen/beezee/cointrunk/publisher.ts +24 -2
  283. package/src/codegen/beezee/cointrunk/publisher_proposal.ts +22 -2
  284. package/src/codegen/beezee/cointrunk/query.ts +187 -13
  285. package/src/codegen/beezee/cointrunk/tx.ts +64 -5
  286. package/src/codegen/bze/bundle.ts +14 -22
  287. package/src/codegen/cosmos/app/v1alpha1/config.ts +53 -3
  288. package/src/codegen/cosmos/app/v1alpha1/module.ts +124 -4
  289. package/src/codegen/cosmos/app/v1alpha1/query.ts +25 -3
  290. package/src/codegen/cosmos/auth/v1beta1/auth.ts +64 -4
  291. package/src/codegen/cosmos/auth/v1beta1/genesis.ts +25 -2
  292. package/src/codegen/cosmos/auth/v1beta1/query.ts +195 -15
  293. package/src/codegen/cosmos/authz/v1beta1/authz.ts +86 -16
  294. package/src/codegen/cosmos/authz/v1beta1/event.ts +45 -3
  295. package/src/codegen/cosmos/authz/v1beta1/genesis.ts +19 -2
  296. package/src/codegen/cosmos/authz/v1beta1/query.ts +130 -7
  297. package/src/codegen/cosmos/authz/v1beta1/tx.ts +101 -7
  298. package/src/codegen/cosmos/bank/v1beta1/authz.ts +19 -2
  299. package/src/codegen/cosmos/bank/v1beta1/bank.ts +200 -8
  300. package/src/codegen/cosmos/bank/v1beta1/genesis.ts +70 -3
  301. package/src/codegen/cosmos/bank/v1beta1/query.ts +339 -20
  302. package/src/codegen/cosmos/bank/v1beta1/tx.ts +70 -5
  303. package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +325 -11
  304. package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +35 -3
  305. package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +76 -3
  306. package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +64 -5
  307. package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +476 -27
  308. package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +163 -10
  309. package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +52 -4
  310. package/src/codegen/cosmos/base/store/v1beta1/listening.ts +23 -2
  311. package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +259 -16
  312. package/src/codegen/cosmos/base/v1beta1/coin.ts +57 -5
  313. package/src/codegen/cosmos/bundle.ts +103 -159
  314. package/src/codegen/cosmos/capability/v1beta1/capability.ts +48 -4
  315. package/src/codegen/cosmos/capability/v1beta1/genesis.ts +46 -3
  316. package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +18 -2
  317. package/src/codegen/cosmos/crisis/v1beta1/tx.ts +28 -3
  318. package/src/codegen/cosmos/crypto/ed25519/keys.ts +27 -3
  319. package/src/codegen/cosmos/crypto/hd/v1/hd.ts +34 -2
  320. package/src/codegen/cosmos/crypto/keyring/v1/record.ts +83 -6
  321. package/src/codegen/cosmos/crypto/multisig/keys.ts +22 -2
  322. package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +35 -3
  323. package/src/codegen/cosmos/crypto/secp256k1/keys.ts +27 -3
  324. package/src/codegen/cosmos/crypto/secp256r1/keys.ts +32 -3
  325. package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +237 -13
  326. package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +236 -9
  327. package/src/codegen/cosmos/distribution/v1beta1/query.ts +303 -19
  328. package/src/codegen/cosmos/distribution/v1beta1/tx.ts +123 -9
  329. package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +26 -8
  330. package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +20 -2
  331. package/src/codegen/cosmos/evidence/v1beta1/query.ts +67 -5
  332. package/src/codegen/cosmos/evidence/v1beta1/tx.ts +30 -3
  333. package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +137 -16
  334. package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +19 -2
  335. package/src/codegen/cosmos/feegrant/v1beta1/query.ts +115 -7
  336. package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +61 -5
  337. package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +21 -2
  338. package/src/codegen/cosmos/gov/v1/genesis.ts +55 -2
  339. package/src/codegen/cosmos/gov/v1/gov.ts +284 -34
  340. package/src/codegen/cosmos/gov/v1/query.ts +293 -19
  341. package/src/codegen/cosmos/gov/v1/tx.ts +173 -13
  342. package/src/codegen/cosmos/gov/v1beta1/genesis.ts +55 -2
  343. package/src/codegen/cosmos/gov/v1beta1/gov.ts +296 -36
  344. package/src/codegen/cosmos/gov/v1beta1/query.ts +293 -19
  345. package/src/codegen/cosmos/gov/v1beta1/tx.ts +132 -11
  346. package/src/codegen/cosmos/group/v1/events.ts +137 -12
  347. package/src/codegen/cosmos/group/v1/genesis.ts +80 -2
  348. package/src/codegen/cosmos/group/v1/query.ts +481 -27
  349. package/src/codegen/cosmos/group/v1/tx.ts +554 -34
  350. package/src/codegen/cosmos/group/v1/types.ts +472 -51
  351. package/src/codegen/cosmos/mint/v1beta1/genesis.ts +19 -2
  352. package/src/codegen/cosmos/mint/v1beta1/mint.ts +53 -3
  353. package/src/codegen/cosmos/mint/v1beta1/query.ts +73 -7
  354. package/src/codegen/cosmos/nft/v1beta1/event.ts +54 -4
  355. package/src/codegen/cosmos/nft/v1beta1/genesis.ts +52 -3
  356. package/src/codegen/cosmos/nft/v1beta1/nft.ts +69 -3
  357. package/src/codegen/cosmos/nft/v1beta1/query.ts +210 -15
  358. package/src/codegen/cosmos/nft/v1beta1/tx.ts +37 -3
  359. package/src/codegen/cosmos/orm/v1/orm.ts +140 -5
  360. package/src/codegen/cosmos/orm/v1alpha1/schema.ts +109 -5
  361. package/src/codegen/cosmos/params/v1beta1/params.ts +41 -3
  362. package/src/codegen/cosmos/params/v1beta1/query.ts +83 -6
  363. package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +100 -5
  364. package/src/codegen/cosmos/slashing/v1beta1/query.ts +87 -7
  365. package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +71 -9
  366. package/src/codegen/cosmos/slashing/v1beta1/tx.ts +24 -3
  367. package/src/codegen/cosmos/staking/v1beta1/authz.ts +73 -5
  368. package/src/codegen/cosmos/staking/v1beta1/genesis.ts +91 -3
  369. package/src/codegen/cosmos/staking/v1beta1/query.ts +499 -29
  370. package/src/codegen/cosmos/staking/v1beta1/staking.ts +507 -44
  371. package/src/codegen/cosmos/staking/v1beta1/tx.ts +172 -22
  372. package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +154 -8
  373. package/src/codegen/cosmos/tx/v1beta1/service.ts +252 -15
  374. package/src/codegen/cosmos/tx/v1beta1/tx.ts +462 -17
  375. package/src/codegen/cosmos/upgrade/v1beta1/query.ts +145 -11
  376. package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +53 -5
  377. package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +109 -11
  378. package/src/codegen/cosmos/vesting/v1beta1/tx.ts +106 -7
  379. package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +123 -7
  380. package/src/codegen/cosmos_proto/cosmos.ts +76 -5
  381. package/src/codegen/extern.ts +33 -0
  382. package/src/codegen/google/api/http.ts +140 -4
  383. package/src/codegen/google/protobuf/any.ts +47 -2
  384. package/src/codegen/google/protobuf/descriptor.ts +1405 -59
  385. package/src/codegen/google/protobuf/duration.ts +30 -2
  386. package/src/codegen/google/protobuf/empty.ts +10 -2
  387. package/src/codegen/google/protobuf/timestamp.ts +28 -2
  388. package/src/codegen/helpers.ts +1 -3
  389. package/src/codegen/index.ts +3 -4
  390. package/src/codegen/tendermint/abci/types.ts +970 -64
  391. package/src/codegen/tendermint/crypto/keys.ts +16 -2
  392. package/src/codegen/tendermint/crypto/proof.ts +97 -6
  393. package/src/codegen/tendermint/libs/bits/types.ts +22 -2
  394. package/src/codegen/tendermint/p2p/types.ts +118 -22
  395. package/src/codegen/tendermint/types/block.ts +20 -2
  396. package/src/codegen/tendermint/types/evidence.ts +94 -16
  397. package/src/codegen/tendermint/types/params.ts +137 -7
  398. package/src/codegen/tendermint/types/types.ts +338 -40
  399. package/src/codegen/tendermint/types/validator.ts +58 -4
  400. package/src/codegen/tendermint/version/types.ts +31 -3
  401. package/main/codegen/beezee/burner/tx.amino.js +0 -28
  402. package/main/codegen/beezee/burner/tx.registry.js +0 -47
  403. package/main/codegen/beezee/cointrunk/tx.amino.js +0 -59
  404. package/main/codegen/beezee/cointrunk/tx.registry.js +0 -65
  405. package/main/codegen/bze/client.js +0 -67
  406. package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +0 -96
  407. package/main/codegen/cosmos/authz/v1beta1/tx.registry.js +0 -83
  408. package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +0 -101
  409. package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +0 -65
  410. package/main/codegen/cosmos/client.js +0 -86
  411. package/main/codegen/cosmos/crisis/v1beta1/tx.amino.js +0 -32
  412. package/main/codegen/cosmos/crisis/v1beta1/tx.registry.js +0 -47
  413. package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +0 -91
  414. package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +0 -101
  415. package/main/codegen/cosmos/evidence/v1beta1/tx.amino.js +0 -34
  416. package/main/codegen/cosmos/evidence/v1beta1/tx.registry.js +0 -47
  417. package/main/codegen/cosmos/feegrant/v1beta1/tx.amino.js +0 -57
  418. package/main/codegen/cosmos/feegrant/v1beta1/tx.registry.js +0 -65
  419. package/main/codegen/cosmos/gov/v1/tx.amino.js +0 -180
  420. package/main/codegen/cosmos/gov/v1/tx.registry.js +0 -119
  421. package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +0 -139
  422. package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +0 -101
  423. package/main/codegen/cosmos/group/v1/tx.amino.js +0 -424
  424. package/main/codegen/cosmos/group/v1/tx.registry.js +0 -281
  425. package/main/codegen/cosmos/nft/v1beta1/tx.amino.js +0 -36
  426. package/main/codegen/cosmos/nft/v1beta1/tx.registry.js +0 -47
  427. package/main/codegen/cosmos/slashing/v1beta1/tx.amino.js +0 -24
  428. package/main/codegen/cosmos/slashing/v1beta1/tx.registry.js +0 -47
  429. package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +0 -213
  430. package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +0 -119
  431. package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +0 -62
  432. package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +0 -65
  433. package/main/codegen/cosmos/vesting/v1beta1/tx.amino.js +0 -131
  434. package/main/codegen/cosmos/vesting/v1beta1/tx.registry.js +0 -83
  435. package/module/codegen/beezee/burner/tx.amino.js +0 -23
  436. package/module/codegen/beezee/burner/tx.registry.js +0 -33
  437. package/module/codegen/beezee/cointrunk/tx.amino.js +0 -56
  438. package/module/codegen/beezee/cointrunk/tx.registry.js +0 -51
  439. package/module/codegen/bze/client.js +0 -38
  440. package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +0 -91
  441. package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +0 -69
  442. package/module/codegen/cosmos/bank/v1beta1/tx.amino.js +0 -78
  443. package/module/codegen/cosmos/bank/v1beta1/tx.registry.js +0 -51
  444. package/module/codegen/cosmos/client.js +0 -57
  445. package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +0 -27
  446. package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +0 -33
  447. package/module/codegen/cosmos/distribution/v1beta1/tx.amino.js +0 -88
  448. package/module/codegen/cosmos/distribution/v1beta1/tx.registry.js +0 -87
  449. package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +0 -29
  450. package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +0 -33
  451. package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +0 -54
  452. package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +0 -51
  453. package/module/codegen/cosmos/gov/v1/tx.amino.js +0 -167
  454. package/module/codegen/cosmos/gov/v1/tx.registry.js +0 -105
  455. package/module/codegen/cosmos/gov/v1beta1/tx.amino.js +0 -128
  456. package/module/codegen/cosmos/gov/v1beta1/tx.registry.js +0 -87
  457. package/module/codegen/cosmos/group/v1/tx.amino.js +0 -429
  458. package/module/codegen/cosmos/group/v1/tx.registry.js +0 -267
  459. package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +0 -31
  460. package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +0 -33
  461. package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +0 -19
  462. package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +0 -33
  463. package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +0 -216
  464. package/module/codegen/cosmos/staking/v1beta1/tx.registry.js +0 -105
  465. package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +0 -59
  466. package/module/codegen/cosmos/upgrade/v1beta1/tx.registry.js +0 -51
  467. package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +0 -114
  468. package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +0 -69
  469. package/src/codegen/beezee/burner/tx.amino.ts +0 -32
  470. package/src/codegen/beezee/burner/tx.registry.ts +0 -37
  471. package/src/codegen/beezee/cointrunk/tx.amino.ts +0 -75
  472. package/src/codegen/beezee/cointrunk/tx.registry.ts +0 -58
  473. package/src/codegen/bze/client.ts +0 -48
  474. package/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +0 -128
  475. package/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +0 -79
  476. package/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +0 -110
  477. package/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +0 -58
  478. package/src/codegen/cosmos/client.ts +0 -76
  479. package/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +0 -37
  480. package/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +0 -37
  481. package/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +0 -120
  482. package/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +0 -100
  483. package/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +0 -41
  484. package/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +0 -37
  485. package/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +0 -74
  486. package/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +0 -58
  487. package/src/codegen/cosmos/gov/v1/tx.amino.ts +0 -226
  488. package/src/codegen/cosmos/gov/v1/tx.registry.ts +0 -121
  489. package/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +0 -174
  490. package/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +0 -100
  491. package/src/codegen/cosmos/group/v1/tx.amino.ts +0 -583
  492. package/src/codegen/cosmos/group/v1/tx.registry.ts +0 -310
  493. package/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +0 -42
  494. package/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +0 -37
  495. package/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +0 -27
  496. package/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +0 -37
  497. package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +0 -294
  498. package/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +0 -121
  499. package/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +0 -86
  500. package/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +0 -58
  501. package/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +0 -155
  502. package/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +0 -79
@@ -1,16 +1,20 @@
1
- import { Timestamp } from "../../google/protobuf/timestamp";
1
+ import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp";
2
2
  import { Header, HeaderSDKType } from "../types/types";
3
3
  import { ProofOps, ProofOpsSDKType } from "../crypto/proof";
4
4
  import { EvidenceParams, EvidenceParamsSDKType, ValidatorParams, ValidatorParamsSDKType, VersionParams, VersionParamsSDKType } from "../types/params";
5
5
  import { PublicKey, PublicKeySDKType } from "../crypto/keys";
6
6
  import * as _m0 from "protobufjs/minimal";
7
- import { DeepPartial, Long, toTimestamp, fromTimestamp } from "../../helpers";
7
+ import { isSet, Long, fromJsonTimestamp, bytesFromBase64, fromTimestamp, base64FromBytes } from "../../helpers";
8
8
  export enum CheckTxType {
9
9
  NEW = 0,
10
10
  RECHECK = 1,
11
11
  UNRECOGNIZED = -1,
12
12
  }
13
- export const CheckTxTypeSDKType = CheckTxType;
13
+ export enum CheckTxTypeSDKType {
14
+ NEW = 0,
15
+ RECHECK = 1,
16
+ UNRECOGNIZED = -1,
17
+ }
14
18
  export function checkTxTypeFromJSON(object: any): CheckTxType {
15
19
  switch (object) {
16
20
  case 0:
@@ -60,7 +64,26 @@ export enum ResponseOfferSnapshot_Result {
60
64
  REJECT_SENDER = 5,
61
65
  UNRECOGNIZED = -1,
62
66
  }
63
- export const ResponseOfferSnapshot_ResultSDKType = ResponseOfferSnapshot_Result;
67
+ export enum ResponseOfferSnapshot_ResultSDKType {
68
+ /** UNKNOWN - Unknown result, abort all snapshot restoration */
69
+ UNKNOWN = 0,
70
+
71
+ /** ACCEPT - Snapshot accepted, apply chunks */
72
+ ACCEPT = 1,
73
+
74
+ /** ABORT - Abort all snapshot restoration */
75
+ ABORT = 2,
76
+
77
+ /** REJECT - Reject this specific snapshot, try others */
78
+ REJECT = 3,
79
+
80
+ /** REJECT_FORMAT - Reject all snapshots of this format, try others */
81
+ REJECT_FORMAT = 4,
82
+
83
+ /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */
84
+ REJECT_SENDER = 5,
85
+ UNRECOGNIZED = -1,
86
+ }
64
87
  export function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result {
65
88
  switch (object) {
66
89
  case 0:
@@ -138,7 +161,26 @@ export enum ResponseApplySnapshotChunk_Result {
138
161
  REJECT_SNAPSHOT = 5,
139
162
  UNRECOGNIZED = -1,
140
163
  }
141
- export const ResponseApplySnapshotChunk_ResultSDKType = ResponseApplySnapshotChunk_Result;
164
+ export enum ResponseApplySnapshotChunk_ResultSDKType {
165
+ /** UNKNOWN - Unknown result, abort all snapshot restoration */
166
+ UNKNOWN = 0,
167
+
168
+ /** ACCEPT - Chunk successfully accepted */
169
+ ACCEPT = 1,
170
+
171
+ /** ABORT - Abort all snapshot restoration */
172
+ ABORT = 2,
173
+
174
+ /** RETRY - Retry chunk (combine with refetch and reject) */
175
+ RETRY = 3,
176
+
177
+ /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */
178
+ RETRY_SNAPSHOT = 4,
179
+
180
+ /** REJECT_SNAPSHOT - Reject this snapshot, try others */
181
+ REJECT_SNAPSHOT = 5,
182
+ UNRECOGNIZED = -1,
183
+ }
142
184
  export function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result {
143
185
  switch (object) {
144
186
  case 0:
@@ -202,7 +244,12 @@ export enum EvidenceType {
202
244
  LIGHT_CLIENT_ATTACK = 2,
203
245
  UNRECOGNIZED = -1,
204
246
  }
205
- export const EvidenceTypeSDKType = EvidenceType;
247
+ export enum EvidenceTypeSDKType {
248
+ UNKNOWN = 0,
249
+ DUPLICATE_VOTE = 1,
250
+ LIGHT_CLIENT_ATTACK = 2,
251
+ UNRECOGNIZED = -1,
252
+ }
206
253
  export function evidenceTypeFromJSON(object: any): EvidenceType {
207
254
  switch (object) {
208
255
  case 0:
@@ -304,7 +351,7 @@ export interface RequestSetOptionSDKType {
304
351
  value: string;
305
352
  }
306
353
  export interface RequestInitChain {
307
- time?: Date;
354
+ time?: Timestamp;
308
355
  chainId: string;
309
356
  consensusParams?: ConsensusParams;
310
357
  validators: ValidatorUpdate[];
@@ -312,7 +359,7 @@ export interface RequestInitChain {
312
359
  initialHeight: Long;
313
360
  }
314
361
  export interface RequestInitChainSDKType {
315
- time?: Date;
362
+ time?: TimestampSDKType;
316
363
  chain_id: string;
317
364
  consensus_params?: ConsensusParamsSDKType;
318
365
  validators: ValidatorUpdateSDKType[];
@@ -349,7 +396,7 @@ export interface RequestCheckTx {
349
396
  }
350
397
  export interface RequestCheckTxSDKType {
351
398
  tx: Uint8Array;
352
- type: CheckTxType;
399
+ type: CheckTxTypeSDKType;
353
400
  }
354
401
  export interface RequestDeliverTx {
355
402
  tx: Uint8Array;
@@ -383,7 +430,10 @@ export interface RequestOfferSnapshot {
383
430
  /** offers a snapshot to the application */
384
431
 
385
432
  export interface RequestOfferSnapshotSDKType {
433
+ /** snapshot offered by peers */
386
434
  snapshot?: SnapshotSDKType;
435
+ /** light client-verified app hash for snapshot height */
436
+
387
437
  app_hash: Uint8Array;
388
438
  }
389
439
  /** loads a snapshot chunk */
@@ -495,6 +545,8 @@ export interface ResponseSetOption {
495
545
 
496
546
  export interface ResponseSetOptionSDKType {
497
547
  code: number;
548
+ /** bytes data = 2; */
549
+
498
550
  log: string;
499
551
  info: string;
500
552
  }
@@ -525,7 +577,11 @@ export interface ResponseQuery {
525
577
  }
526
578
  export interface ResponseQuerySDKType {
527
579
  code: number;
580
+ /** bytes data = 2; // use "value" instead. */
581
+
528
582
  log: string;
583
+ /** nondeterministic */
584
+
529
585
  info: string;
530
586
  index: Long;
531
587
  key: Uint8Array;
@@ -557,7 +613,11 @@ export interface ResponseCheckTx {
557
613
  export interface ResponseCheckTxSDKType {
558
614
  code: number;
559
615
  data: Uint8Array;
616
+ /** nondeterministic */
617
+
560
618
  log: string;
619
+ /** nondeterministic */
620
+
561
621
  info: string;
562
622
  gas_wanted: Long;
563
623
  gas_used: Long;
@@ -581,7 +641,11 @@ export interface ResponseDeliverTx {
581
641
  export interface ResponseDeliverTxSDKType {
582
642
  code: number;
583
643
  data: Uint8Array;
644
+ /** nondeterministic */
645
+
584
646
  log: string;
647
+ /** nondeterministic */
648
+
585
649
  info: string;
586
650
  gas_wanted: Long;
587
651
  gas_used: Long;
@@ -604,6 +668,7 @@ export interface ResponseCommit {
604
668
  retainHeight: Long;
605
669
  }
606
670
  export interface ResponseCommitSDKType {
671
+ /** reserve 1 */
607
672
  data: Uint8Array;
608
673
  retain_height: Long;
609
674
  }
@@ -617,7 +682,7 @@ export interface ResponseOfferSnapshot {
617
682
  result: ResponseOfferSnapshot_Result;
618
683
  }
619
684
  export interface ResponseOfferSnapshotSDKType {
620
- result: ResponseOfferSnapshot_Result;
685
+ result: ResponseOfferSnapshot_ResultSDKType;
621
686
  }
622
687
  export interface ResponseLoadSnapshotChunk {
623
688
  chunk: Uint8Array;
@@ -635,8 +700,12 @@ export interface ResponseApplySnapshotChunk {
635
700
  rejectSenders: string[];
636
701
  }
637
702
  export interface ResponseApplySnapshotChunkSDKType {
638
- result: ResponseApplySnapshotChunk_Result;
703
+ result: ResponseApplySnapshotChunk_ResultSDKType;
704
+ /** Chunks to refetch and reapply */
705
+
639
706
  refetch_chunks: number[];
707
+ /** Chunk senders to reject and ban */
708
+
640
709
  reject_senders: string[];
641
710
  }
642
711
  /**
@@ -673,7 +742,10 @@ export interface BlockParams {
673
742
  /** BlockParams contains limits on the block size. */
674
743
 
675
744
  export interface BlockParamsSDKType {
745
+ /** Note: must be greater than 0 */
676
746
  max_bytes: Long;
747
+ /** Note: must be greater or equal to -1 */
748
+
677
749
  max_gas: Long;
678
750
  }
679
751
  export interface LastCommitInfo {
@@ -718,6 +790,8 @@ export interface EventAttribute {
718
790
  export interface EventAttributeSDKType {
719
791
  key: Uint8Array;
720
792
  value: Uint8Array;
793
+ /** nondeterministic */
794
+
721
795
  index: boolean;
722
796
  }
723
797
  /**
@@ -759,7 +833,13 @@ export interface Validator {
759
833
  /** Validator */
760
834
 
761
835
  export interface ValidatorSDKType {
836
+ /**
837
+ * The first 20 bytes of SHA256(public key)
838
+ * PubKey pub_key = 2 [(gogoproto.nullable)=false];
839
+ */
762
840
  address: Uint8Array;
841
+ /** The voting power */
842
+
763
843
  power: Long;
764
844
  }
765
845
  /** ValidatorUpdate */
@@ -796,7 +876,7 @@ export interface Evidence {
796
876
  height: Long;
797
877
  /** The corresponding time where the offense occurred */
798
878
 
799
- time?: Date;
879
+ time?: Timestamp;
800
880
  /**
801
881
  * Total voting power of the validator set in case the ABCI application does
802
882
  * not store historical validators.
@@ -806,10 +886,22 @@ export interface Evidence {
806
886
  totalVotingPower: Long;
807
887
  }
808
888
  export interface EvidenceSDKType {
809
- type: EvidenceType;
889
+ type: EvidenceTypeSDKType;
890
+ /** The offending validator */
891
+
810
892
  validator?: ValidatorSDKType;
893
+ /** The height when the offense occurred */
894
+
811
895
  height: Long;
812
- time?: Date;
896
+ /** The corresponding time where the offense occurred */
897
+
898
+ time?: TimestampSDKType;
899
+ /**
900
+ * Total voting power of the validator set in case the ABCI application does
901
+ * not store historical validators.
902
+ * https://github.com/tendermint/tendermint/issues/4581
903
+ */
904
+
813
905
  total_voting_power: Long;
814
906
  }
815
907
  export interface Snapshot {
@@ -829,10 +921,19 @@ export interface Snapshot {
829
921
  metadata: Uint8Array;
830
922
  }
831
923
  export interface SnapshotSDKType {
924
+ /** The height at which the snapshot was taken */
832
925
  height: Long;
926
+ /** The application-specific snapshot format */
927
+
833
928
  format: number;
929
+ /** Number of chunks in the snapshot */
930
+
834
931
  chunks: number;
932
+ /** Arbitrary snapshot hash, equal only if identical */
933
+
835
934
  hash: Uint8Array;
935
+ /** Arbitrary application metadata */
936
+
836
937
  metadata: Uint8Array;
837
938
  }
838
939
 
@@ -999,7 +1100,47 @@ export const Request = {
999
1100
  return message;
1000
1101
  },
1001
1102
 
1002
- fromPartial(object: DeepPartial<Request>): Request {
1103
+ fromJSON(object: any): Request {
1104
+ return {
1105
+ echo: isSet(object.echo) ? RequestEcho.fromJSON(object.echo) : undefined,
1106
+ flush: isSet(object.flush) ? RequestFlush.fromJSON(object.flush) : undefined,
1107
+ info: isSet(object.info) ? RequestInfo.fromJSON(object.info) : undefined,
1108
+ setOption: isSet(object.setOption) ? RequestSetOption.fromJSON(object.setOption) : undefined,
1109
+ initChain: isSet(object.initChain) ? RequestInitChain.fromJSON(object.initChain) : undefined,
1110
+ query: isSet(object.query) ? RequestQuery.fromJSON(object.query) : undefined,
1111
+ beginBlock: isSet(object.beginBlock) ? RequestBeginBlock.fromJSON(object.beginBlock) : undefined,
1112
+ checkTx: isSet(object.checkTx) ? RequestCheckTx.fromJSON(object.checkTx) : undefined,
1113
+ deliverTx: isSet(object.deliverTx) ? RequestDeliverTx.fromJSON(object.deliverTx) : undefined,
1114
+ endBlock: isSet(object.endBlock) ? RequestEndBlock.fromJSON(object.endBlock) : undefined,
1115
+ commit: isSet(object.commit) ? RequestCommit.fromJSON(object.commit) : undefined,
1116
+ listSnapshots: isSet(object.listSnapshots) ? RequestListSnapshots.fromJSON(object.listSnapshots) : undefined,
1117
+ offerSnapshot: isSet(object.offerSnapshot) ? RequestOfferSnapshot.fromJSON(object.offerSnapshot) : undefined,
1118
+ loadSnapshotChunk: isSet(object.loadSnapshotChunk) ? RequestLoadSnapshotChunk.fromJSON(object.loadSnapshotChunk) : undefined,
1119
+ applySnapshotChunk: isSet(object.applySnapshotChunk) ? RequestApplySnapshotChunk.fromJSON(object.applySnapshotChunk) : undefined
1120
+ };
1121
+ },
1122
+
1123
+ toJSON(message: Request): unknown {
1124
+ const obj: any = {};
1125
+ message.echo !== undefined && (obj.echo = message.echo ? RequestEcho.toJSON(message.echo) : undefined);
1126
+ message.flush !== undefined && (obj.flush = message.flush ? RequestFlush.toJSON(message.flush) : undefined);
1127
+ message.info !== undefined && (obj.info = message.info ? RequestInfo.toJSON(message.info) : undefined);
1128
+ message.setOption !== undefined && (obj.setOption = message.setOption ? RequestSetOption.toJSON(message.setOption) : undefined);
1129
+ message.initChain !== undefined && (obj.initChain = message.initChain ? RequestInitChain.toJSON(message.initChain) : undefined);
1130
+ message.query !== undefined && (obj.query = message.query ? RequestQuery.toJSON(message.query) : undefined);
1131
+ message.beginBlock !== undefined && (obj.beginBlock = message.beginBlock ? RequestBeginBlock.toJSON(message.beginBlock) : undefined);
1132
+ message.checkTx !== undefined && (obj.checkTx = message.checkTx ? RequestCheckTx.toJSON(message.checkTx) : undefined);
1133
+ message.deliverTx !== undefined && (obj.deliverTx = message.deliverTx ? RequestDeliverTx.toJSON(message.deliverTx) : undefined);
1134
+ message.endBlock !== undefined && (obj.endBlock = message.endBlock ? RequestEndBlock.toJSON(message.endBlock) : undefined);
1135
+ message.commit !== undefined && (obj.commit = message.commit ? RequestCommit.toJSON(message.commit) : undefined);
1136
+ message.listSnapshots !== undefined && (obj.listSnapshots = message.listSnapshots ? RequestListSnapshots.toJSON(message.listSnapshots) : undefined);
1137
+ message.offerSnapshot !== undefined && (obj.offerSnapshot = message.offerSnapshot ? RequestOfferSnapshot.toJSON(message.offerSnapshot) : undefined);
1138
+ message.loadSnapshotChunk !== undefined && (obj.loadSnapshotChunk = message.loadSnapshotChunk ? RequestLoadSnapshotChunk.toJSON(message.loadSnapshotChunk) : undefined);
1139
+ message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk ? RequestApplySnapshotChunk.toJSON(message.applySnapshotChunk) : undefined);
1140
+ return obj;
1141
+ },
1142
+
1143
+ fromPartial(object: Partial<Request>): Request {
1003
1144
  const message = createBaseRequest();
1004
1145
  message.echo = object.echo !== undefined && object.echo !== null ? RequestEcho.fromPartial(object.echo) : undefined;
1005
1146
  message.flush = object.flush !== undefined && object.flush !== null ? RequestFlush.fromPartial(object.flush) : undefined;
@@ -1058,7 +1199,19 @@ export const RequestEcho = {
1058
1199
  return message;
1059
1200
  },
1060
1201
 
1061
- fromPartial(object: DeepPartial<RequestEcho>): RequestEcho {
1202
+ fromJSON(object: any): RequestEcho {
1203
+ return {
1204
+ message: isSet(object.message) ? String(object.message) : ""
1205
+ };
1206
+ },
1207
+
1208
+ toJSON(message: RequestEcho): unknown {
1209
+ const obj: any = {};
1210
+ message.message !== undefined && (obj.message = message.message);
1211
+ return obj;
1212
+ },
1213
+
1214
+ fromPartial(object: Partial<RequestEcho>): RequestEcho {
1062
1215
  const message = createBaseRequestEcho();
1063
1216
  message.message = object.message ?? "";
1064
1217
  return message;
@@ -1093,7 +1246,16 @@ export const RequestFlush = {
1093
1246
  return message;
1094
1247
  },
1095
1248
 
1096
- fromPartial(_: DeepPartial<RequestFlush>): RequestFlush {
1249
+ fromJSON(_: any): RequestFlush {
1250
+ return {};
1251
+ },
1252
+
1253
+ toJSON(_: RequestFlush): unknown {
1254
+ const obj: any = {};
1255
+ return obj;
1256
+ },
1257
+
1258
+ fromPartial(_: Partial<RequestFlush>): RequestFlush {
1097
1259
  const message = createBaseRequestFlush();
1098
1260
  return message;
1099
1261
  }
@@ -1155,7 +1317,23 @@ export const RequestInfo = {
1155
1317
  return message;
1156
1318
  },
1157
1319
 
1158
- fromPartial(object: DeepPartial<RequestInfo>): RequestInfo {
1320
+ fromJSON(object: any): RequestInfo {
1321
+ return {
1322
+ version: isSet(object.version) ? String(object.version) : "",
1323
+ blockVersion: isSet(object.blockVersion) ? Long.fromValue(object.blockVersion) : Long.UZERO,
1324
+ p2pVersion: isSet(object.p2pVersion) ? Long.fromValue(object.p2pVersion) : Long.UZERO
1325
+ };
1326
+ },
1327
+
1328
+ toJSON(message: RequestInfo): unknown {
1329
+ const obj: any = {};
1330
+ message.version !== undefined && (obj.version = message.version);
1331
+ message.blockVersion !== undefined && (obj.blockVersion = (message.blockVersion || Long.UZERO).toString());
1332
+ message.p2pVersion !== undefined && (obj.p2pVersion = (message.p2pVersion || Long.UZERO).toString());
1333
+ return obj;
1334
+ },
1335
+
1336
+ fromPartial(object: Partial<RequestInfo>): RequestInfo {
1159
1337
  const message = createBaseRequestInfo();
1160
1338
  message.version = object.version ?? "";
1161
1339
  message.blockVersion = object.blockVersion !== undefined && object.blockVersion !== null ? Long.fromValue(object.blockVersion) : Long.UZERO;
@@ -1211,7 +1389,21 @@ export const RequestSetOption = {
1211
1389
  return message;
1212
1390
  },
1213
1391
 
1214
- fromPartial(object: DeepPartial<RequestSetOption>): RequestSetOption {
1392
+ fromJSON(object: any): RequestSetOption {
1393
+ return {
1394
+ key: isSet(object.key) ? String(object.key) : "",
1395
+ value: isSet(object.value) ? String(object.value) : ""
1396
+ };
1397
+ },
1398
+
1399
+ toJSON(message: RequestSetOption): unknown {
1400
+ const obj: any = {};
1401
+ message.key !== undefined && (obj.key = message.key);
1402
+ message.value !== undefined && (obj.value = message.value);
1403
+ return obj;
1404
+ },
1405
+
1406
+ fromPartial(object: Partial<RequestSetOption>): RequestSetOption {
1215
1407
  const message = createBaseRequestSetOption();
1216
1408
  message.key = object.key ?? "";
1217
1409
  message.value = object.value ?? "";
@@ -1234,7 +1426,7 @@ function createBaseRequestInitChain(): RequestInitChain {
1234
1426
  export const RequestInitChain = {
1235
1427
  encode(message: RequestInitChain, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1236
1428
  if (message.time !== undefined) {
1237
- Timestamp.encode(toTimestamp(message.time), writer.uint32(10).fork()).ldelim();
1429
+ Timestamp.encode(message.time, writer.uint32(10).fork()).ldelim();
1238
1430
  }
1239
1431
 
1240
1432
  if (message.chainId !== "") {
@@ -1270,7 +1462,7 @@ export const RequestInitChain = {
1270
1462
 
1271
1463
  switch (tag >>> 3) {
1272
1464
  case 1:
1273
- message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1465
+ message.time = Timestamp.decode(reader, reader.uint32());
1274
1466
  break;
1275
1467
 
1276
1468
  case 2:
@@ -1302,9 +1494,37 @@ export const RequestInitChain = {
1302
1494
  return message;
1303
1495
  },
1304
1496
 
1305
- fromPartial(object: DeepPartial<RequestInitChain>): RequestInitChain {
1497
+ fromJSON(object: any): RequestInitChain {
1498
+ return {
1499
+ time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
1500
+ chainId: isSet(object.chainId) ? String(object.chainId) : "",
1501
+ consensusParams: isSet(object.consensusParams) ? ConsensusParams.fromJSON(object.consensusParams) : undefined,
1502
+ validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => ValidatorUpdate.fromJSON(e)) : [],
1503
+ appStateBytes: isSet(object.appStateBytes) ? bytesFromBase64(object.appStateBytes) : new Uint8Array(),
1504
+ initialHeight: isSet(object.initialHeight) ? Long.fromValue(object.initialHeight) : Long.ZERO
1505
+ };
1506
+ },
1507
+
1508
+ toJSON(message: RequestInitChain): unknown {
1509
+ const obj: any = {};
1510
+ message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString());
1511
+ message.chainId !== undefined && (obj.chainId = message.chainId);
1512
+ message.consensusParams !== undefined && (obj.consensusParams = message.consensusParams ? ConsensusParams.toJSON(message.consensusParams) : undefined);
1513
+
1514
+ if (message.validators) {
1515
+ obj.validators = message.validators.map(e => e ? ValidatorUpdate.toJSON(e) : undefined);
1516
+ } else {
1517
+ obj.validators = [];
1518
+ }
1519
+
1520
+ message.appStateBytes !== undefined && (obj.appStateBytes = base64FromBytes(message.appStateBytes !== undefined ? message.appStateBytes : new Uint8Array()));
1521
+ message.initialHeight !== undefined && (obj.initialHeight = (message.initialHeight || Long.ZERO).toString());
1522
+ return obj;
1523
+ },
1524
+
1525
+ fromPartial(object: Partial<RequestInitChain>): RequestInitChain {
1306
1526
  const message = createBaseRequestInitChain();
1307
- message.time = object.time ?? undefined;
1527
+ message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined;
1308
1528
  message.chainId = object.chainId ?? "";
1309
1529
  message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined;
1310
1530
  message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || [];
@@ -1379,7 +1599,25 @@ export const RequestQuery = {
1379
1599
  return message;
1380
1600
  },
1381
1601
 
1382
- fromPartial(object: DeepPartial<RequestQuery>): RequestQuery {
1602
+ fromJSON(object: any): RequestQuery {
1603
+ return {
1604
+ data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
1605
+ path: isSet(object.path) ? String(object.path) : "",
1606
+ height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO,
1607
+ prove: isSet(object.prove) ? Boolean(object.prove) : false
1608
+ };
1609
+ },
1610
+
1611
+ toJSON(message: RequestQuery): unknown {
1612
+ const obj: any = {};
1613
+ message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
1614
+ message.path !== undefined && (obj.path = message.path);
1615
+ message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
1616
+ message.prove !== undefined && (obj.prove = message.prove);
1617
+ return obj;
1618
+ },
1619
+
1620
+ fromPartial(object: Partial<RequestQuery>): RequestQuery {
1383
1621
  const message = createBaseRequestQuery();
1384
1622
  message.data = object.data ?? new Uint8Array();
1385
1623
  message.path = object.path ?? "";
@@ -1454,7 +1692,31 @@ export const RequestBeginBlock = {
1454
1692
  return message;
1455
1693
  },
1456
1694
 
1457
- fromPartial(object: DeepPartial<RequestBeginBlock>): RequestBeginBlock {
1695
+ fromJSON(object: any): RequestBeginBlock {
1696
+ return {
1697
+ hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
1698
+ header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
1699
+ lastCommitInfo: isSet(object.lastCommitInfo) ? LastCommitInfo.fromJSON(object.lastCommitInfo) : undefined,
1700
+ byzantineValidators: Array.isArray(object?.byzantineValidators) ? object.byzantineValidators.map((e: any) => Evidence.fromJSON(e)) : []
1701
+ };
1702
+ },
1703
+
1704
+ toJSON(message: RequestBeginBlock): unknown {
1705
+ const obj: any = {};
1706
+ message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
1707
+ message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined);
1708
+ message.lastCommitInfo !== undefined && (obj.lastCommitInfo = message.lastCommitInfo ? LastCommitInfo.toJSON(message.lastCommitInfo) : undefined);
1709
+
1710
+ if (message.byzantineValidators) {
1711
+ obj.byzantineValidators = message.byzantineValidators.map(e => e ? Evidence.toJSON(e) : undefined);
1712
+ } else {
1713
+ obj.byzantineValidators = [];
1714
+ }
1715
+
1716
+ return obj;
1717
+ },
1718
+
1719
+ fromPartial(object: Partial<RequestBeginBlock>): RequestBeginBlock {
1458
1720
  const message = createBaseRequestBeginBlock();
1459
1721
  message.hash = object.hash ?? new Uint8Array();
1460
1722
  message.header = object.header !== undefined && object.header !== null ? Header.fromPartial(object.header) : undefined;
@@ -1511,7 +1773,21 @@ export const RequestCheckTx = {
1511
1773
  return message;
1512
1774
  },
1513
1775
 
1514
- fromPartial(object: DeepPartial<RequestCheckTx>): RequestCheckTx {
1776
+ fromJSON(object: any): RequestCheckTx {
1777
+ return {
1778
+ tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array(),
1779
+ type: isSet(object.type) ? checkTxTypeFromJSON(object.type) : 0
1780
+ };
1781
+ },
1782
+
1783
+ toJSON(message: RequestCheckTx): unknown {
1784
+ const obj: any = {};
1785
+ message.tx !== undefined && (obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array()));
1786
+ message.type !== undefined && (obj.type = checkTxTypeToJSON(message.type));
1787
+ return obj;
1788
+ },
1789
+
1790
+ fromPartial(object: Partial<RequestCheckTx>): RequestCheckTx {
1515
1791
  const message = createBaseRequestCheckTx();
1516
1792
  message.tx = object.tx ?? new Uint8Array();
1517
1793
  message.type = object.type ?? 0;
@@ -1557,7 +1833,19 @@ export const RequestDeliverTx = {
1557
1833
  return message;
1558
1834
  },
1559
1835
 
1560
- fromPartial(object: DeepPartial<RequestDeliverTx>): RequestDeliverTx {
1836
+ fromJSON(object: any): RequestDeliverTx {
1837
+ return {
1838
+ tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array()
1839
+ };
1840
+ },
1841
+
1842
+ toJSON(message: RequestDeliverTx): unknown {
1843
+ const obj: any = {};
1844
+ message.tx !== undefined && (obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array()));
1845
+ return obj;
1846
+ },
1847
+
1848
+ fromPartial(object: Partial<RequestDeliverTx>): RequestDeliverTx {
1561
1849
  const message = createBaseRequestDeliverTx();
1562
1850
  message.tx = object.tx ?? new Uint8Array();
1563
1851
  return message;
@@ -1602,7 +1890,19 @@ export const RequestEndBlock = {
1602
1890
  return message;
1603
1891
  },
1604
1892
 
1605
- fromPartial(object: DeepPartial<RequestEndBlock>): RequestEndBlock {
1893
+ fromJSON(object: any): RequestEndBlock {
1894
+ return {
1895
+ height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO
1896
+ };
1897
+ },
1898
+
1899
+ toJSON(message: RequestEndBlock): unknown {
1900
+ const obj: any = {};
1901
+ message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
1902
+ return obj;
1903
+ },
1904
+
1905
+ fromPartial(object: Partial<RequestEndBlock>): RequestEndBlock {
1606
1906
  const message = createBaseRequestEndBlock();
1607
1907
  message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO;
1608
1908
  return message;
@@ -1637,7 +1937,16 @@ export const RequestCommit = {
1637
1937
  return message;
1638
1938
  },
1639
1939
 
1640
- fromPartial(_: DeepPartial<RequestCommit>): RequestCommit {
1940
+ fromJSON(_: any): RequestCommit {
1941
+ return {};
1942
+ },
1943
+
1944
+ toJSON(_: RequestCommit): unknown {
1945
+ const obj: any = {};
1946
+ return obj;
1947
+ },
1948
+
1949
+ fromPartial(_: Partial<RequestCommit>): RequestCommit {
1641
1950
  const message = createBaseRequestCommit();
1642
1951
  return message;
1643
1952
  }
@@ -1671,7 +1980,16 @@ export const RequestListSnapshots = {
1671
1980
  return message;
1672
1981
  },
1673
1982
 
1674
- fromPartial(_: DeepPartial<RequestListSnapshots>): RequestListSnapshots {
1983
+ fromJSON(_: any): RequestListSnapshots {
1984
+ return {};
1985
+ },
1986
+
1987
+ toJSON(_: RequestListSnapshots): unknown {
1988
+ const obj: any = {};
1989
+ return obj;
1990
+ },
1991
+
1992
+ fromPartial(_: Partial<RequestListSnapshots>): RequestListSnapshots {
1675
1993
  const message = createBaseRequestListSnapshots();
1676
1994
  return message;
1677
1995
  }
@@ -1724,7 +2042,21 @@ export const RequestOfferSnapshot = {
1724
2042
  return message;
1725
2043
  },
1726
2044
 
1727
- fromPartial(object: DeepPartial<RequestOfferSnapshot>): RequestOfferSnapshot {
2045
+ fromJSON(object: any): RequestOfferSnapshot {
2046
+ return {
2047
+ snapshot: isSet(object.snapshot) ? Snapshot.fromJSON(object.snapshot) : undefined,
2048
+ appHash: isSet(object.appHash) ? bytesFromBase64(object.appHash) : new Uint8Array()
2049
+ };
2050
+ },
2051
+
2052
+ toJSON(message: RequestOfferSnapshot): unknown {
2053
+ const obj: any = {};
2054
+ message.snapshot !== undefined && (obj.snapshot = message.snapshot ? Snapshot.toJSON(message.snapshot) : undefined);
2055
+ message.appHash !== undefined && (obj.appHash = base64FromBytes(message.appHash !== undefined ? message.appHash : new Uint8Array()));
2056
+ return obj;
2057
+ },
2058
+
2059
+ fromPartial(object: Partial<RequestOfferSnapshot>): RequestOfferSnapshot {
1728
2060
  const message = createBaseRequestOfferSnapshot();
1729
2061
  message.snapshot = object.snapshot !== undefined && object.snapshot !== null ? Snapshot.fromPartial(object.snapshot) : undefined;
1730
2062
  message.appHash = object.appHash ?? new Uint8Array();
@@ -1788,7 +2120,23 @@ export const RequestLoadSnapshotChunk = {
1788
2120
  return message;
1789
2121
  },
1790
2122
 
1791
- fromPartial(object: DeepPartial<RequestLoadSnapshotChunk>): RequestLoadSnapshotChunk {
2123
+ fromJSON(object: any): RequestLoadSnapshotChunk {
2124
+ return {
2125
+ height: isSet(object.height) ? Long.fromValue(object.height) : Long.UZERO,
2126
+ format: isSet(object.format) ? Number(object.format) : 0,
2127
+ chunk: isSet(object.chunk) ? Number(object.chunk) : 0
2128
+ };
2129
+ },
2130
+
2131
+ toJSON(message: RequestLoadSnapshotChunk): unknown {
2132
+ const obj: any = {};
2133
+ message.height !== undefined && (obj.height = (message.height || Long.UZERO).toString());
2134
+ message.format !== undefined && (obj.format = Math.round(message.format));
2135
+ message.chunk !== undefined && (obj.chunk = Math.round(message.chunk));
2136
+ return obj;
2137
+ },
2138
+
2139
+ fromPartial(object: Partial<RequestLoadSnapshotChunk>): RequestLoadSnapshotChunk {
1792
2140
  const message = createBaseRequestLoadSnapshotChunk();
1793
2141
  message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.UZERO;
1794
2142
  message.format = object.format ?? 0;
@@ -1853,7 +2201,23 @@ export const RequestApplySnapshotChunk = {
1853
2201
  return message;
1854
2202
  },
1855
2203
 
1856
- fromPartial(object: DeepPartial<RequestApplySnapshotChunk>): RequestApplySnapshotChunk {
2204
+ fromJSON(object: any): RequestApplySnapshotChunk {
2205
+ return {
2206
+ index: isSet(object.index) ? Number(object.index) : 0,
2207
+ chunk: isSet(object.chunk) ? bytesFromBase64(object.chunk) : new Uint8Array(),
2208
+ sender: isSet(object.sender) ? String(object.sender) : ""
2209
+ };
2210
+ },
2211
+
2212
+ toJSON(message: RequestApplySnapshotChunk): unknown {
2213
+ const obj: any = {};
2214
+ message.index !== undefined && (obj.index = Math.round(message.index));
2215
+ message.chunk !== undefined && (obj.chunk = base64FromBytes(message.chunk !== undefined ? message.chunk : new Uint8Array()));
2216
+ message.sender !== undefined && (obj.sender = message.sender);
2217
+ return obj;
2218
+ },
2219
+
2220
+ fromPartial(object: Partial<RequestApplySnapshotChunk>): RequestApplySnapshotChunk {
1857
2221
  const message = createBaseRequestApplySnapshotChunk();
1858
2222
  message.index = object.index ?? 0;
1859
2223
  message.chunk = object.chunk ?? new Uint8Array();
@@ -2035,7 +2399,49 @@ export const Response = {
2035
2399
  return message;
2036
2400
  },
2037
2401
 
2038
- fromPartial(object: DeepPartial<Response>): Response {
2402
+ fromJSON(object: any): Response {
2403
+ return {
2404
+ exception: isSet(object.exception) ? ResponseException.fromJSON(object.exception) : undefined,
2405
+ echo: isSet(object.echo) ? ResponseEcho.fromJSON(object.echo) : undefined,
2406
+ flush: isSet(object.flush) ? ResponseFlush.fromJSON(object.flush) : undefined,
2407
+ info: isSet(object.info) ? ResponseInfo.fromJSON(object.info) : undefined,
2408
+ setOption: isSet(object.setOption) ? ResponseSetOption.fromJSON(object.setOption) : undefined,
2409
+ initChain: isSet(object.initChain) ? ResponseInitChain.fromJSON(object.initChain) : undefined,
2410
+ query: isSet(object.query) ? ResponseQuery.fromJSON(object.query) : undefined,
2411
+ beginBlock: isSet(object.beginBlock) ? ResponseBeginBlock.fromJSON(object.beginBlock) : undefined,
2412
+ checkTx: isSet(object.checkTx) ? ResponseCheckTx.fromJSON(object.checkTx) : undefined,
2413
+ deliverTx: isSet(object.deliverTx) ? ResponseDeliverTx.fromJSON(object.deliverTx) : undefined,
2414
+ endBlock: isSet(object.endBlock) ? ResponseEndBlock.fromJSON(object.endBlock) : undefined,
2415
+ commit: isSet(object.commit) ? ResponseCommit.fromJSON(object.commit) : undefined,
2416
+ listSnapshots: isSet(object.listSnapshots) ? ResponseListSnapshots.fromJSON(object.listSnapshots) : undefined,
2417
+ offerSnapshot: isSet(object.offerSnapshot) ? ResponseOfferSnapshot.fromJSON(object.offerSnapshot) : undefined,
2418
+ loadSnapshotChunk: isSet(object.loadSnapshotChunk) ? ResponseLoadSnapshotChunk.fromJSON(object.loadSnapshotChunk) : undefined,
2419
+ applySnapshotChunk: isSet(object.applySnapshotChunk) ? ResponseApplySnapshotChunk.fromJSON(object.applySnapshotChunk) : undefined
2420
+ };
2421
+ },
2422
+
2423
+ toJSON(message: Response): unknown {
2424
+ const obj: any = {};
2425
+ message.exception !== undefined && (obj.exception = message.exception ? ResponseException.toJSON(message.exception) : undefined);
2426
+ message.echo !== undefined && (obj.echo = message.echo ? ResponseEcho.toJSON(message.echo) : undefined);
2427
+ message.flush !== undefined && (obj.flush = message.flush ? ResponseFlush.toJSON(message.flush) : undefined);
2428
+ message.info !== undefined && (obj.info = message.info ? ResponseInfo.toJSON(message.info) : undefined);
2429
+ message.setOption !== undefined && (obj.setOption = message.setOption ? ResponseSetOption.toJSON(message.setOption) : undefined);
2430
+ message.initChain !== undefined && (obj.initChain = message.initChain ? ResponseInitChain.toJSON(message.initChain) : undefined);
2431
+ message.query !== undefined && (obj.query = message.query ? ResponseQuery.toJSON(message.query) : undefined);
2432
+ message.beginBlock !== undefined && (obj.beginBlock = message.beginBlock ? ResponseBeginBlock.toJSON(message.beginBlock) : undefined);
2433
+ message.checkTx !== undefined && (obj.checkTx = message.checkTx ? ResponseCheckTx.toJSON(message.checkTx) : undefined);
2434
+ message.deliverTx !== undefined && (obj.deliverTx = message.deliverTx ? ResponseDeliverTx.toJSON(message.deliverTx) : undefined);
2435
+ message.endBlock !== undefined && (obj.endBlock = message.endBlock ? ResponseEndBlock.toJSON(message.endBlock) : undefined);
2436
+ message.commit !== undefined && (obj.commit = message.commit ? ResponseCommit.toJSON(message.commit) : undefined);
2437
+ message.listSnapshots !== undefined && (obj.listSnapshots = message.listSnapshots ? ResponseListSnapshots.toJSON(message.listSnapshots) : undefined);
2438
+ message.offerSnapshot !== undefined && (obj.offerSnapshot = message.offerSnapshot ? ResponseOfferSnapshot.toJSON(message.offerSnapshot) : undefined);
2439
+ message.loadSnapshotChunk !== undefined && (obj.loadSnapshotChunk = message.loadSnapshotChunk ? ResponseLoadSnapshotChunk.toJSON(message.loadSnapshotChunk) : undefined);
2440
+ message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk ? ResponseApplySnapshotChunk.toJSON(message.applySnapshotChunk) : undefined);
2441
+ return obj;
2442
+ },
2443
+
2444
+ fromPartial(object: Partial<Response>): Response {
2039
2445
  const message = createBaseResponse();
2040
2446
  message.exception = object.exception !== undefined && object.exception !== null ? ResponseException.fromPartial(object.exception) : undefined;
2041
2447
  message.echo = object.echo !== undefined && object.echo !== null ? ResponseEcho.fromPartial(object.echo) : undefined;
@@ -2095,7 +2501,19 @@ export const ResponseException = {
2095
2501
  return message;
2096
2502
  },
2097
2503
 
2098
- fromPartial(object: DeepPartial<ResponseException>): ResponseException {
2504
+ fromJSON(object: any): ResponseException {
2505
+ return {
2506
+ error: isSet(object.error) ? String(object.error) : ""
2507
+ };
2508
+ },
2509
+
2510
+ toJSON(message: ResponseException): unknown {
2511
+ const obj: any = {};
2512
+ message.error !== undefined && (obj.error = message.error);
2513
+ return obj;
2514
+ },
2515
+
2516
+ fromPartial(object: Partial<ResponseException>): ResponseException {
2099
2517
  const message = createBaseResponseException();
2100
2518
  message.error = object.error ?? "";
2101
2519
  return message;
@@ -2140,7 +2558,19 @@ export const ResponseEcho = {
2140
2558
  return message;
2141
2559
  },
2142
2560
 
2143
- fromPartial(object: DeepPartial<ResponseEcho>): ResponseEcho {
2561
+ fromJSON(object: any): ResponseEcho {
2562
+ return {
2563
+ message: isSet(object.message) ? String(object.message) : ""
2564
+ };
2565
+ },
2566
+
2567
+ toJSON(message: ResponseEcho): unknown {
2568
+ const obj: any = {};
2569
+ message.message !== undefined && (obj.message = message.message);
2570
+ return obj;
2571
+ },
2572
+
2573
+ fromPartial(object: Partial<ResponseEcho>): ResponseEcho {
2144
2574
  const message = createBaseResponseEcho();
2145
2575
  message.message = object.message ?? "";
2146
2576
  return message;
@@ -2175,7 +2605,16 @@ export const ResponseFlush = {
2175
2605
  return message;
2176
2606
  },
2177
2607
 
2178
- fromPartial(_: DeepPartial<ResponseFlush>): ResponseFlush {
2608
+ fromJSON(_: any): ResponseFlush {
2609
+ return {};
2610
+ },
2611
+
2612
+ toJSON(_: ResponseFlush): unknown {
2613
+ const obj: any = {};
2614
+ return obj;
2615
+ },
2616
+
2617
+ fromPartial(_: Partial<ResponseFlush>): ResponseFlush {
2179
2618
  const message = createBaseResponseFlush();
2180
2619
  return message;
2181
2620
  }
@@ -2255,7 +2694,27 @@ export const ResponseInfo = {
2255
2694
  return message;
2256
2695
  },
2257
2696
 
2258
- fromPartial(object: DeepPartial<ResponseInfo>): ResponseInfo {
2697
+ fromJSON(object: any): ResponseInfo {
2698
+ return {
2699
+ data: isSet(object.data) ? String(object.data) : "",
2700
+ version: isSet(object.version) ? String(object.version) : "",
2701
+ appVersion: isSet(object.appVersion) ? Long.fromValue(object.appVersion) : Long.UZERO,
2702
+ lastBlockHeight: isSet(object.lastBlockHeight) ? Long.fromValue(object.lastBlockHeight) : Long.ZERO,
2703
+ lastBlockAppHash: isSet(object.lastBlockAppHash) ? bytesFromBase64(object.lastBlockAppHash) : new Uint8Array()
2704
+ };
2705
+ },
2706
+
2707
+ toJSON(message: ResponseInfo): unknown {
2708
+ const obj: any = {};
2709
+ message.data !== undefined && (obj.data = message.data);
2710
+ message.version !== undefined && (obj.version = message.version);
2711
+ message.appVersion !== undefined && (obj.appVersion = (message.appVersion || Long.UZERO).toString());
2712
+ message.lastBlockHeight !== undefined && (obj.lastBlockHeight = (message.lastBlockHeight || Long.ZERO).toString());
2713
+ message.lastBlockAppHash !== undefined && (obj.lastBlockAppHash = base64FromBytes(message.lastBlockAppHash !== undefined ? message.lastBlockAppHash : new Uint8Array()));
2714
+ return obj;
2715
+ },
2716
+
2717
+ fromPartial(object: Partial<ResponseInfo>): ResponseInfo {
2259
2718
  const message = createBaseResponseInfo();
2260
2719
  message.data = object.data ?? "";
2261
2720
  message.version = object.version ?? "";
@@ -2322,7 +2781,23 @@ export const ResponseSetOption = {
2322
2781
  return message;
2323
2782
  },
2324
2783
 
2325
- fromPartial(object: DeepPartial<ResponseSetOption>): ResponseSetOption {
2784
+ fromJSON(object: any): ResponseSetOption {
2785
+ return {
2786
+ code: isSet(object.code) ? Number(object.code) : 0,
2787
+ log: isSet(object.log) ? String(object.log) : "",
2788
+ info: isSet(object.info) ? String(object.info) : ""
2789
+ };
2790
+ },
2791
+
2792
+ toJSON(message: ResponseSetOption): unknown {
2793
+ const obj: any = {};
2794
+ message.code !== undefined && (obj.code = Math.round(message.code));
2795
+ message.log !== undefined && (obj.log = message.log);
2796
+ message.info !== undefined && (obj.info = message.info);
2797
+ return obj;
2798
+ },
2799
+
2800
+ fromPartial(object: Partial<ResponseSetOption>): ResponseSetOption {
2326
2801
  const message = createBaseResponseSetOption();
2327
2802
  message.code = object.code ?? 0;
2328
2803
  message.log = object.log ?? "";
@@ -2387,7 +2862,29 @@ export const ResponseInitChain = {
2387
2862
  return message;
2388
2863
  },
2389
2864
 
2390
- fromPartial(object: DeepPartial<ResponseInitChain>): ResponseInitChain {
2865
+ fromJSON(object: any): ResponseInitChain {
2866
+ return {
2867
+ consensusParams: isSet(object.consensusParams) ? ConsensusParams.fromJSON(object.consensusParams) : undefined,
2868
+ validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => ValidatorUpdate.fromJSON(e)) : [],
2869
+ appHash: isSet(object.appHash) ? bytesFromBase64(object.appHash) : new Uint8Array()
2870
+ };
2871
+ },
2872
+
2873
+ toJSON(message: ResponseInitChain): unknown {
2874
+ const obj: any = {};
2875
+ message.consensusParams !== undefined && (obj.consensusParams = message.consensusParams ? ConsensusParams.toJSON(message.consensusParams) : undefined);
2876
+
2877
+ if (message.validators) {
2878
+ obj.validators = message.validators.map(e => e ? ValidatorUpdate.toJSON(e) : undefined);
2879
+ } else {
2880
+ obj.validators = [];
2881
+ }
2882
+
2883
+ message.appHash !== undefined && (obj.appHash = base64FromBytes(message.appHash !== undefined ? message.appHash : new Uint8Array()));
2884
+ return obj;
2885
+ },
2886
+
2887
+ fromPartial(object: Partial<ResponseInitChain>): ResponseInitChain {
2391
2888
  const message = createBaseResponseInitChain();
2392
2889
  message.consensusParams = object.consensusParams !== undefined && object.consensusParams !== null ? ConsensusParams.fromPartial(object.consensusParams) : undefined;
2393
2890
  message.validators = object.validators?.map(e => ValidatorUpdate.fromPartial(e)) || [];
@@ -2506,7 +3003,35 @@ export const ResponseQuery = {
2506
3003
  return message;
2507
3004
  },
2508
3005
 
2509
- fromPartial(object: DeepPartial<ResponseQuery>): ResponseQuery {
3006
+ fromJSON(object: any): ResponseQuery {
3007
+ return {
3008
+ code: isSet(object.code) ? Number(object.code) : 0,
3009
+ log: isSet(object.log) ? String(object.log) : "",
3010
+ info: isSet(object.info) ? String(object.info) : "",
3011
+ index: isSet(object.index) ? Long.fromValue(object.index) : Long.ZERO,
3012
+ key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
3013
+ value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
3014
+ proofOps: isSet(object.proofOps) ? ProofOps.fromJSON(object.proofOps) : undefined,
3015
+ height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO,
3016
+ codespace: isSet(object.codespace) ? String(object.codespace) : ""
3017
+ };
3018
+ },
3019
+
3020
+ toJSON(message: ResponseQuery): unknown {
3021
+ const obj: any = {};
3022
+ message.code !== undefined && (obj.code = Math.round(message.code));
3023
+ message.log !== undefined && (obj.log = message.log);
3024
+ message.info !== undefined && (obj.info = message.info);
3025
+ message.index !== undefined && (obj.index = (message.index || Long.ZERO).toString());
3026
+ message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
3027
+ message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
3028
+ message.proofOps !== undefined && (obj.proofOps = message.proofOps ? ProofOps.toJSON(message.proofOps) : undefined);
3029
+ message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
3030
+ message.codespace !== undefined && (obj.codespace = message.codespace);
3031
+ return obj;
3032
+ },
3033
+
3034
+ fromPartial(object: Partial<ResponseQuery>): ResponseQuery {
2510
3035
  const message = createBaseResponseQuery();
2511
3036
  message.code = object.code ?? 0;
2512
3037
  message.log = object.log ?? "";
@@ -2559,7 +3084,25 @@ export const ResponseBeginBlock = {
2559
3084
  return message;
2560
3085
  },
2561
3086
 
2562
- fromPartial(object: DeepPartial<ResponseBeginBlock>): ResponseBeginBlock {
3087
+ fromJSON(object: any): ResponseBeginBlock {
3088
+ return {
3089
+ events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : []
3090
+ };
3091
+ },
3092
+
3093
+ toJSON(message: ResponseBeginBlock): unknown {
3094
+ const obj: any = {};
3095
+
3096
+ if (message.events) {
3097
+ obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined);
3098
+ } else {
3099
+ obj.events = [];
3100
+ }
3101
+
3102
+ return obj;
3103
+ },
3104
+
3105
+ fromPartial(object: Partial<ResponseBeginBlock>): ResponseBeginBlock {
2563
3106
  const message = createBaseResponseBeginBlock();
2564
3107
  message.events = object.events?.map(e => Event.fromPartial(e)) || [];
2565
3108
  return message;
@@ -2667,7 +3210,39 @@ export const ResponseCheckTx = {
2667
3210
  return message;
2668
3211
  },
2669
3212
 
2670
- fromPartial(object: DeepPartial<ResponseCheckTx>): ResponseCheckTx {
3213
+ fromJSON(object: any): ResponseCheckTx {
3214
+ return {
3215
+ code: isSet(object.code) ? Number(object.code) : 0,
3216
+ data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
3217
+ log: isSet(object.log) ? String(object.log) : "",
3218
+ info: isSet(object.info) ? String(object.info) : "",
3219
+ gasWanted: isSet(object.gas_wanted) ? Long.fromValue(object.gas_wanted) : Long.ZERO,
3220
+ gasUsed: isSet(object.gas_used) ? Long.fromValue(object.gas_used) : Long.ZERO,
3221
+ events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [],
3222
+ codespace: isSet(object.codespace) ? String(object.codespace) : ""
3223
+ };
3224
+ },
3225
+
3226
+ toJSON(message: ResponseCheckTx): unknown {
3227
+ const obj: any = {};
3228
+ message.code !== undefined && (obj.code = Math.round(message.code));
3229
+ message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
3230
+ message.log !== undefined && (obj.log = message.log);
3231
+ message.info !== undefined && (obj.info = message.info);
3232
+ message.gasWanted !== undefined && (obj.gas_wanted = (message.gasWanted || Long.ZERO).toString());
3233
+ message.gasUsed !== undefined && (obj.gas_used = (message.gasUsed || Long.ZERO).toString());
3234
+
3235
+ if (message.events) {
3236
+ obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined);
3237
+ } else {
3238
+ obj.events = [];
3239
+ }
3240
+
3241
+ message.codespace !== undefined && (obj.codespace = message.codespace);
3242
+ return obj;
3243
+ },
3244
+
3245
+ fromPartial(object: Partial<ResponseCheckTx>): ResponseCheckTx {
2671
3246
  const message = createBaseResponseCheckTx();
2672
3247
  message.code = object.code ?? 0;
2673
3248
  message.data = object.data ?? new Uint8Array();
@@ -2782,7 +3357,39 @@ export const ResponseDeliverTx = {
2782
3357
  return message;
2783
3358
  },
2784
3359
 
2785
- fromPartial(object: DeepPartial<ResponseDeliverTx>): ResponseDeliverTx {
3360
+ fromJSON(object: any): ResponseDeliverTx {
3361
+ return {
3362
+ code: isSet(object.code) ? Number(object.code) : 0,
3363
+ data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
3364
+ log: isSet(object.log) ? String(object.log) : "",
3365
+ info: isSet(object.info) ? String(object.info) : "",
3366
+ gasWanted: isSet(object.gas_wanted) ? Long.fromValue(object.gas_wanted) : Long.ZERO,
3367
+ gasUsed: isSet(object.gas_used) ? Long.fromValue(object.gas_used) : Long.ZERO,
3368
+ events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : [],
3369
+ codespace: isSet(object.codespace) ? String(object.codespace) : ""
3370
+ };
3371
+ },
3372
+
3373
+ toJSON(message: ResponseDeliverTx): unknown {
3374
+ const obj: any = {};
3375
+ message.code !== undefined && (obj.code = Math.round(message.code));
3376
+ message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
3377
+ message.log !== undefined && (obj.log = message.log);
3378
+ message.info !== undefined && (obj.info = message.info);
3379
+ message.gasWanted !== undefined && (obj.gas_wanted = (message.gasWanted || Long.ZERO).toString());
3380
+ message.gasUsed !== undefined && (obj.gas_used = (message.gasUsed || Long.ZERO).toString());
3381
+
3382
+ if (message.events) {
3383
+ obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined);
3384
+ } else {
3385
+ obj.events = [];
3386
+ }
3387
+
3388
+ message.codespace !== undefined && (obj.codespace = message.codespace);
3389
+ return obj;
3390
+ },
3391
+
3392
+ fromPartial(object: Partial<ResponseDeliverTx>): ResponseDeliverTx {
2786
3393
  const message = createBaseResponseDeliverTx();
2787
3394
  message.code = object.code ?? 0;
2788
3395
  message.data = object.data ?? new Uint8Array();
@@ -2852,7 +3459,35 @@ export const ResponseEndBlock = {
2852
3459
  return message;
2853
3460
  },
2854
3461
 
2855
- fromPartial(object: DeepPartial<ResponseEndBlock>): ResponseEndBlock {
3462
+ fromJSON(object: any): ResponseEndBlock {
3463
+ return {
3464
+ validatorUpdates: Array.isArray(object?.validatorUpdates) ? object.validatorUpdates.map((e: any) => ValidatorUpdate.fromJSON(e)) : [],
3465
+ consensusParamUpdates: isSet(object.consensusParamUpdates) ? ConsensusParams.fromJSON(object.consensusParamUpdates) : undefined,
3466
+ events: Array.isArray(object?.events) ? object.events.map((e: any) => Event.fromJSON(e)) : []
3467
+ };
3468
+ },
3469
+
3470
+ toJSON(message: ResponseEndBlock): unknown {
3471
+ const obj: any = {};
3472
+
3473
+ if (message.validatorUpdates) {
3474
+ obj.validatorUpdates = message.validatorUpdates.map(e => e ? ValidatorUpdate.toJSON(e) : undefined);
3475
+ } else {
3476
+ obj.validatorUpdates = [];
3477
+ }
3478
+
3479
+ message.consensusParamUpdates !== undefined && (obj.consensusParamUpdates = message.consensusParamUpdates ? ConsensusParams.toJSON(message.consensusParamUpdates) : undefined);
3480
+
3481
+ if (message.events) {
3482
+ obj.events = message.events.map(e => e ? Event.toJSON(e) : undefined);
3483
+ } else {
3484
+ obj.events = [];
3485
+ }
3486
+
3487
+ return obj;
3488
+ },
3489
+
3490
+ fromPartial(object: Partial<ResponseEndBlock>): ResponseEndBlock {
2856
3491
  const message = createBaseResponseEndBlock();
2857
3492
  message.validatorUpdates = object.validatorUpdates?.map(e => ValidatorUpdate.fromPartial(e)) || [];
2858
3493
  message.consensusParamUpdates = object.consensusParamUpdates !== undefined && object.consensusParamUpdates !== null ? ConsensusParams.fromPartial(object.consensusParamUpdates) : undefined;
@@ -2908,7 +3543,21 @@ export const ResponseCommit = {
2908
3543
  return message;
2909
3544
  },
2910
3545
 
2911
- fromPartial(object: DeepPartial<ResponseCommit>): ResponseCommit {
3546
+ fromJSON(object: any): ResponseCommit {
3547
+ return {
3548
+ data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
3549
+ retainHeight: isSet(object.retainHeight) ? Long.fromValue(object.retainHeight) : Long.ZERO
3550
+ };
3551
+ },
3552
+
3553
+ toJSON(message: ResponseCommit): unknown {
3554
+ const obj: any = {};
3555
+ message.data !== undefined && (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
3556
+ message.retainHeight !== undefined && (obj.retainHeight = (message.retainHeight || Long.ZERO).toString());
3557
+ return obj;
3558
+ },
3559
+
3560
+ fromPartial(object: Partial<ResponseCommit>): ResponseCommit {
2912
3561
  const message = createBaseResponseCommit();
2913
3562
  message.data = object.data ?? new Uint8Array();
2914
3563
  message.retainHeight = object.retainHeight !== undefined && object.retainHeight !== null ? Long.fromValue(object.retainHeight) : Long.ZERO;
@@ -2954,7 +3603,25 @@ export const ResponseListSnapshots = {
2954
3603
  return message;
2955
3604
  },
2956
3605
 
2957
- fromPartial(object: DeepPartial<ResponseListSnapshots>): ResponseListSnapshots {
3606
+ fromJSON(object: any): ResponseListSnapshots {
3607
+ return {
3608
+ snapshots: Array.isArray(object?.snapshots) ? object.snapshots.map((e: any) => Snapshot.fromJSON(e)) : []
3609
+ };
3610
+ },
3611
+
3612
+ toJSON(message: ResponseListSnapshots): unknown {
3613
+ const obj: any = {};
3614
+
3615
+ if (message.snapshots) {
3616
+ obj.snapshots = message.snapshots.map(e => e ? Snapshot.toJSON(e) : undefined);
3617
+ } else {
3618
+ obj.snapshots = [];
3619
+ }
3620
+
3621
+ return obj;
3622
+ },
3623
+
3624
+ fromPartial(object: Partial<ResponseListSnapshots>): ResponseListSnapshots {
2958
3625
  const message = createBaseResponseListSnapshots();
2959
3626
  message.snapshots = object.snapshots?.map(e => Snapshot.fromPartial(e)) || [];
2960
3627
  return message;
@@ -2999,7 +3666,19 @@ export const ResponseOfferSnapshot = {
2999
3666
  return message;
3000
3667
  },
3001
3668
 
3002
- fromPartial(object: DeepPartial<ResponseOfferSnapshot>): ResponseOfferSnapshot {
3669
+ fromJSON(object: any): ResponseOfferSnapshot {
3670
+ return {
3671
+ result: isSet(object.result) ? responseOfferSnapshot_ResultFromJSON(object.result) : 0
3672
+ };
3673
+ },
3674
+
3675
+ toJSON(message: ResponseOfferSnapshot): unknown {
3676
+ const obj: any = {};
3677
+ message.result !== undefined && (obj.result = responseOfferSnapshot_ResultToJSON(message.result));
3678
+ return obj;
3679
+ },
3680
+
3681
+ fromPartial(object: Partial<ResponseOfferSnapshot>): ResponseOfferSnapshot {
3003
3682
  const message = createBaseResponseOfferSnapshot();
3004
3683
  message.result = object.result ?? 0;
3005
3684
  return message;
@@ -3044,7 +3723,19 @@ export const ResponseLoadSnapshotChunk = {
3044
3723
  return message;
3045
3724
  },
3046
3725
 
3047
- fromPartial(object: DeepPartial<ResponseLoadSnapshotChunk>): ResponseLoadSnapshotChunk {
3726
+ fromJSON(object: any): ResponseLoadSnapshotChunk {
3727
+ return {
3728
+ chunk: isSet(object.chunk) ? bytesFromBase64(object.chunk) : new Uint8Array()
3729
+ };
3730
+ },
3731
+
3732
+ toJSON(message: ResponseLoadSnapshotChunk): unknown {
3733
+ const obj: any = {};
3734
+ message.chunk !== undefined && (obj.chunk = base64FromBytes(message.chunk !== undefined ? message.chunk : new Uint8Array()));
3735
+ return obj;
3736
+ },
3737
+
3738
+ fromPartial(object: Partial<ResponseLoadSnapshotChunk>): ResponseLoadSnapshotChunk {
3048
3739
  const message = createBaseResponseLoadSnapshotChunk();
3049
3740
  message.chunk = object.chunk ?? new Uint8Array();
3050
3741
  return message;
@@ -3120,7 +3811,34 @@ export const ResponseApplySnapshotChunk = {
3120
3811
  return message;
3121
3812
  },
3122
3813
 
3123
- fromPartial(object: DeepPartial<ResponseApplySnapshotChunk>): ResponseApplySnapshotChunk {
3814
+ fromJSON(object: any): ResponseApplySnapshotChunk {
3815
+ return {
3816
+ result: isSet(object.result) ? responseApplySnapshotChunk_ResultFromJSON(object.result) : 0,
3817
+ refetchChunks: Array.isArray(object?.refetchChunks) ? object.refetchChunks.map((e: any) => Number(e)) : [],
3818
+ rejectSenders: Array.isArray(object?.rejectSenders) ? object.rejectSenders.map((e: any) => String(e)) : []
3819
+ };
3820
+ },
3821
+
3822
+ toJSON(message: ResponseApplySnapshotChunk): unknown {
3823
+ const obj: any = {};
3824
+ message.result !== undefined && (obj.result = responseApplySnapshotChunk_ResultToJSON(message.result));
3825
+
3826
+ if (message.refetchChunks) {
3827
+ obj.refetchChunks = message.refetchChunks.map(e => Math.round(e));
3828
+ } else {
3829
+ obj.refetchChunks = [];
3830
+ }
3831
+
3832
+ if (message.rejectSenders) {
3833
+ obj.rejectSenders = message.rejectSenders.map(e => e);
3834
+ } else {
3835
+ obj.rejectSenders = [];
3836
+ }
3837
+
3838
+ return obj;
3839
+ },
3840
+
3841
+ fromPartial(object: Partial<ResponseApplySnapshotChunk>): ResponseApplySnapshotChunk {
3124
3842
  const message = createBaseResponseApplySnapshotChunk();
3125
3843
  message.result = object.result ?? 0;
3126
3844
  message.refetchChunks = object.refetchChunks?.map(e => e) || [];
@@ -3194,7 +3912,25 @@ export const ConsensusParams = {
3194
3912
  return message;
3195
3913
  },
3196
3914
 
3197
- fromPartial(object: DeepPartial<ConsensusParams>): ConsensusParams {
3915
+ fromJSON(object: any): ConsensusParams {
3916
+ return {
3917
+ block: isSet(object.block) ? BlockParams.fromJSON(object.block) : undefined,
3918
+ evidence: isSet(object.evidence) ? EvidenceParams.fromJSON(object.evidence) : undefined,
3919
+ validator: isSet(object.validator) ? ValidatorParams.fromJSON(object.validator) : undefined,
3920
+ version: isSet(object.version) ? VersionParams.fromJSON(object.version) : undefined
3921
+ };
3922
+ },
3923
+
3924
+ toJSON(message: ConsensusParams): unknown {
3925
+ const obj: any = {};
3926
+ message.block !== undefined && (obj.block = message.block ? BlockParams.toJSON(message.block) : undefined);
3927
+ message.evidence !== undefined && (obj.evidence = message.evidence ? EvidenceParams.toJSON(message.evidence) : undefined);
3928
+ message.validator !== undefined && (obj.validator = message.validator ? ValidatorParams.toJSON(message.validator) : undefined);
3929
+ message.version !== undefined && (obj.version = message.version ? VersionParams.toJSON(message.version) : undefined);
3930
+ return obj;
3931
+ },
3932
+
3933
+ fromPartial(object: Partial<ConsensusParams>): ConsensusParams {
3198
3934
  const message = createBaseConsensusParams();
3199
3935
  message.block = object.block !== undefined && object.block !== null ? BlockParams.fromPartial(object.block) : undefined;
3200
3936
  message.evidence = object.evidence !== undefined && object.evidence !== null ? EvidenceParams.fromPartial(object.evidence) : undefined;
@@ -3251,7 +3987,21 @@ export const BlockParams = {
3251
3987
  return message;
3252
3988
  },
3253
3989
 
3254
- fromPartial(object: DeepPartial<BlockParams>): BlockParams {
3990
+ fromJSON(object: any): BlockParams {
3991
+ return {
3992
+ maxBytes: isSet(object.maxBytes) ? Long.fromValue(object.maxBytes) : Long.ZERO,
3993
+ maxGas: isSet(object.maxGas) ? Long.fromValue(object.maxGas) : Long.ZERO
3994
+ };
3995
+ },
3996
+
3997
+ toJSON(message: BlockParams): unknown {
3998
+ const obj: any = {};
3999
+ message.maxBytes !== undefined && (obj.maxBytes = (message.maxBytes || Long.ZERO).toString());
4000
+ message.maxGas !== undefined && (obj.maxGas = (message.maxGas || Long.ZERO).toString());
4001
+ return obj;
4002
+ },
4003
+
4004
+ fromPartial(object: Partial<BlockParams>): BlockParams {
3255
4005
  const message = createBaseBlockParams();
3256
4006
  message.maxBytes = object.maxBytes !== undefined && object.maxBytes !== null ? Long.fromValue(object.maxBytes) : Long.ZERO;
3257
4007
  message.maxGas = object.maxGas !== undefined && object.maxGas !== null ? Long.fromValue(object.maxGas) : Long.ZERO;
@@ -3306,7 +4056,27 @@ export const LastCommitInfo = {
3306
4056
  return message;
3307
4057
  },
3308
4058
 
3309
- fromPartial(object: DeepPartial<LastCommitInfo>): LastCommitInfo {
4059
+ fromJSON(object: any): LastCommitInfo {
4060
+ return {
4061
+ round: isSet(object.round) ? Number(object.round) : 0,
4062
+ votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => VoteInfo.fromJSON(e)) : []
4063
+ };
4064
+ },
4065
+
4066
+ toJSON(message: LastCommitInfo): unknown {
4067
+ const obj: any = {};
4068
+ message.round !== undefined && (obj.round = Math.round(message.round));
4069
+
4070
+ if (message.votes) {
4071
+ obj.votes = message.votes.map(e => e ? VoteInfo.toJSON(e) : undefined);
4072
+ } else {
4073
+ obj.votes = [];
4074
+ }
4075
+
4076
+ return obj;
4077
+ },
4078
+
4079
+ fromPartial(object: Partial<LastCommitInfo>): LastCommitInfo {
3310
4080
  const message = createBaseLastCommitInfo();
3311
4081
  message.round = object.round ?? 0;
3312
4082
  message.votes = object.votes?.map(e => VoteInfo.fromPartial(e)) || [];
@@ -3361,7 +4131,27 @@ export const Event = {
3361
4131
  return message;
3362
4132
  },
3363
4133
 
3364
- fromPartial(object: DeepPartial<Event>): Event {
4134
+ fromJSON(object: any): Event {
4135
+ return {
4136
+ type: isSet(object.type) ? String(object.type) : "",
4137
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => EventAttribute.fromJSON(e)) : []
4138
+ };
4139
+ },
4140
+
4141
+ toJSON(message: Event): unknown {
4142
+ const obj: any = {};
4143
+ message.type !== undefined && (obj.type = message.type);
4144
+
4145
+ if (message.attributes) {
4146
+ obj.attributes = message.attributes.map(e => e ? EventAttribute.toJSON(e) : undefined);
4147
+ } else {
4148
+ obj.attributes = [];
4149
+ }
4150
+
4151
+ return obj;
4152
+ },
4153
+
4154
+ fromPartial(object: Partial<Event>): Event {
3365
4155
  const message = createBaseEvent();
3366
4156
  message.type = object.type ?? "";
3367
4157
  message.attributes = object.attributes?.map(e => EventAttribute.fromPartial(e)) || [];
@@ -3425,7 +4215,23 @@ export const EventAttribute = {
3425
4215
  return message;
3426
4216
  },
3427
4217
 
3428
- fromPartial(object: DeepPartial<EventAttribute>): EventAttribute {
4218
+ fromJSON(object: any): EventAttribute {
4219
+ return {
4220
+ key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
4221
+ value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
4222
+ index: isSet(object.index) ? Boolean(object.index) : false
4223
+ };
4224
+ },
4225
+
4226
+ toJSON(message: EventAttribute): unknown {
4227
+ const obj: any = {};
4228
+ message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
4229
+ message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
4230
+ message.index !== undefined && (obj.index = message.index);
4231
+ return obj;
4232
+ },
4233
+
4234
+ fromPartial(object: Partial<EventAttribute>): EventAttribute {
3429
4235
  const message = createBaseEventAttribute();
3430
4236
  message.key = object.key ?? new Uint8Array();
3431
4237
  message.value = object.value ?? new Uint8Array();
@@ -3499,7 +4305,25 @@ export const TxResult = {
3499
4305
  return message;
3500
4306
  },
3501
4307
 
3502
- fromPartial(object: DeepPartial<TxResult>): TxResult {
4308
+ fromJSON(object: any): TxResult {
4309
+ return {
4310
+ height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO,
4311
+ index: isSet(object.index) ? Number(object.index) : 0,
4312
+ tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array(),
4313
+ result: isSet(object.result) ? ResponseDeliverTx.fromJSON(object.result) : undefined
4314
+ };
4315
+ },
4316
+
4317
+ toJSON(message: TxResult): unknown {
4318
+ const obj: any = {};
4319
+ message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
4320
+ message.index !== undefined && (obj.index = Math.round(message.index));
4321
+ message.tx !== undefined && (obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array()));
4322
+ message.result !== undefined && (obj.result = message.result ? ResponseDeliverTx.toJSON(message.result) : undefined);
4323
+ return obj;
4324
+ },
4325
+
4326
+ fromPartial(object: Partial<TxResult>): TxResult {
3503
4327
  const message = createBaseTxResult();
3504
4328
  message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO;
3505
4329
  message.index = object.index ?? 0;
@@ -3556,7 +4380,21 @@ export const Validator = {
3556
4380
  return message;
3557
4381
  },
3558
4382
 
3559
- fromPartial(object: DeepPartial<Validator>): Validator {
4383
+ fromJSON(object: any): Validator {
4384
+ return {
4385
+ address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(),
4386
+ power: isSet(object.power) ? Long.fromValue(object.power) : Long.ZERO
4387
+ };
4388
+ },
4389
+
4390
+ toJSON(message: Validator): unknown {
4391
+ const obj: any = {};
4392
+ message.address !== undefined && (obj.address = base64FromBytes(message.address !== undefined ? message.address : new Uint8Array()));
4393
+ message.power !== undefined && (obj.power = (message.power || Long.ZERO).toString());
4394
+ return obj;
4395
+ },
4396
+
4397
+ fromPartial(object: Partial<Validator>): Validator {
3560
4398
  const message = createBaseValidator();
3561
4399
  message.address = object.address ?? new Uint8Array();
3562
4400
  message.power = object.power !== undefined && object.power !== null ? Long.fromValue(object.power) : Long.ZERO;
@@ -3611,7 +4449,21 @@ export const ValidatorUpdate = {
3611
4449
  return message;
3612
4450
  },
3613
4451
 
3614
- fromPartial(object: DeepPartial<ValidatorUpdate>): ValidatorUpdate {
4452
+ fromJSON(object: any): ValidatorUpdate {
4453
+ return {
4454
+ pubKey: isSet(object.pubKey) ? PublicKey.fromJSON(object.pubKey) : undefined,
4455
+ power: isSet(object.power) ? Long.fromValue(object.power) : Long.ZERO
4456
+ };
4457
+ },
4458
+
4459
+ toJSON(message: ValidatorUpdate): unknown {
4460
+ const obj: any = {};
4461
+ message.pubKey !== undefined && (obj.pubKey = message.pubKey ? PublicKey.toJSON(message.pubKey) : undefined);
4462
+ message.power !== undefined && (obj.power = (message.power || Long.ZERO).toString());
4463
+ return obj;
4464
+ },
4465
+
4466
+ fromPartial(object: Partial<ValidatorUpdate>): ValidatorUpdate {
3615
4467
  const message = createBaseValidatorUpdate();
3616
4468
  message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? PublicKey.fromPartial(object.pubKey) : undefined;
3617
4469
  message.power = object.power !== undefined && object.power !== null ? Long.fromValue(object.power) : Long.ZERO;
@@ -3666,7 +4518,21 @@ export const VoteInfo = {
3666
4518
  return message;
3667
4519
  },
3668
4520
 
3669
- fromPartial(object: DeepPartial<VoteInfo>): VoteInfo {
4521
+ fromJSON(object: any): VoteInfo {
4522
+ return {
4523
+ validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined,
4524
+ signedLastBlock: isSet(object.signedLastBlock) ? Boolean(object.signedLastBlock) : false
4525
+ };
4526
+ },
4527
+
4528
+ toJSON(message: VoteInfo): unknown {
4529
+ const obj: any = {};
4530
+ message.validator !== undefined && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined);
4531
+ message.signedLastBlock !== undefined && (obj.signedLastBlock = message.signedLastBlock);
4532
+ return obj;
4533
+ },
4534
+
4535
+ fromPartial(object: Partial<VoteInfo>): VoteInfo {
3670
4536
  const message = createBaseVoteInfo();
3671
4537
  message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined;
3672
4538
  message.signedLastBlock = object.signedLastBlock ?? false;
@@ -3700,7 +4566,7 @@ export const Evidence = {
3700
4566
  }
3701
4567
 
3702
4568
  if (message.time !== undefined) {
3703
- Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim();
4569
+ Timestamp.encode(message.time, writer.uint32(34).fork()).ldelim();
3704
4570
  }
3705
4571
 
3706
4572
  if (!message.totalVotingPower.isZero()) {
@@ -3732,7 +4598,7 @@ export const Evidence = {
3732
4598
  break;
3733
4599
 
3734
4600
  case 4:
3735
- message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4601
+ message.time = Timestamp.decode(reader, reader.uint32());
3736
4602
  break;
3737
4603
 
3738
4604
  case 5:
@@ -3748,12 +4614,32 @@ export const Evidence = {
3748
4614
  return message;
3749
4615
  },
3750
4616
 
3751
- fromPartial(object: DeepPartial<Evidence>): Evidence {
4617
+ fromJSON(object: any): Evidence {
4618
+ return {
4619
+ type: isSet(object.type) ? evidenceTypeFromJSON(object.type) : 0,
4620
+ validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined,
4621
+ height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO,
4622
+ time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
4623
+ totalVotingPower: isSet(object.totalVotingPower) ? Long.fromValue(object.totalVotingPower) : Long.ZERO
4624
+ };
4625
+ },
4626
+
4627
+ toJSON(message: Evidence): unknown {
4628
+ const obj: any = {};
4629
+ message.type !== undefined && (obj.type = evidenceTypeToJSON(message.type));
4630
+ message.validator !== undefined && (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined);
4631
+ message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
4632
+ message.time !== undefined && (obj.time = fromTimestamp(message.time).toISOString());
4633
+ message.totalVotingPower !== undefined && (obj.totalVotingPower = (message.totalVotingPower || Long.ZERO).toString());
4634
+ return obj;
4635
+ },
4636
+
4637
+ fromPartial(object: Partial<Evidence>): Evidence {
3752
4638
  const message = createBaseEvidence();
3753
4639
  message.type = object.type ?? 0;
3754
4640
  message.validator = object.validator !== undefined && object.validator !== null ? Validator.fromPartial(object.validator) : undefined;
3755
4641
  message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO;
3756
- message.time = object.time ?? undefined;
4642
+ message.time = object.time !== undefined && object.time !== null ? Timestamp.fromPartial(object.time) : undefined;
3757
4643
  message.totalVotingPower = object.totalVotingPower !== undefined && object.totalVotingPower !== null ? Long.fromValue(object.totalVotingPower) : Long.ZERO;
3758
4644
  return message;
3759
4645
  }
@@ -3833,7 +4719,27 @@ export const Snapshot = {
3833
4719
  return message;
3834
4720
  },
3835
4721
 
3836
- fromPartial(object: DeepPartial<Snapshot>): Snapshot {
4722
+ fromJSON(object: any): Snapshot {
4723
+ return {
4724
+ height: isSet(object.height) ? Long.fromValue(object.height) : Long.UZERO,
4725
+ format: isSet(object.format) ? Number(object.format) : 0,
4726
+ chunks: isSet(object.chunks) ? Number(object.chunks) : 0,
4727
+ hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
4728
+ metadata: isSet(object.metadata) ? bytesFromBase64(object.metadata) : new Uint8Array()
4729
+ };
4730
+ },
4731
+
4732
+ toJSON(message: Snapshot): unknown {
4733
+ const obj: any = {};
4734
+ message.height !== undefined && (obj.height = (message.height || Long.UZERO).toString());
4735
+ message.format !== undefined && (obj.format = Math.round(message.format));
4736
+ message.chunks !== undefined && (obj.chunks = Math.round(message.chunks));
4737
+ message.hash !== undefined && (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
4738
+ message.metadata !== undefined && (obj.metadata = base64FromBytes(message.metadata !== undefined ? message.metadata : new Uint8Array()));
4739
+ return obj;
4740
+ },
4741
+
4742
+ fromPartial(object: Partial<Snapshot>): Snapshot {
3837
4743
  const message = createBaseSnapshot();
3838
4744
  message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.UZERO;
3839
4745
  message.format = object.format ?? 0;