@xpla/xpla-react 1.7.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +47 -0
  3. package/src/amino/amino.ts +1 -0
  4. package/src/binary.ts +534 -0
  5. package/src/cosmos/app/runtime/v1alpha1/module.ts +423 -0
  6. package/src/cosmos/app/runtime/v2/module.ts +589 -0
  7. package/src/cosmos/app/v1alpha1/config.ts +422 -0
  8. package/src/cosmos/app/v1alpha1/module.ts +461 -0
  9. package/src/cosmos/app/v1alpha1/query.rpc.func.ts +14 -0
  10. package/src/cosmos/app/v1alpha1/query.ts +177 -0
  11. package/src/cosmos/auth/module/v1/module.ts +253 -0
  12. package/src/cosmos/auth/v1beta1/accounts.ts +226 -0
  13. package/src/cosmos/auth/v1beta1/auth.ts +550 -0
  14. package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
  15. package/src/cosmos/auth/v1beta1/query.rpc.func.ts +113 -0
  16. package/src/cosmos/auth/v1beta1/query.ts +2034 -0
  17. package/src/cosmos/auth/v1beta1/tx.registry.ts +29 -0
  18. package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +13 -0
  19. package/src/cosmos/auth/v1beta1/tx.ts +219 -0
  20. package/src/cosmos/authz/module/v1/module.ts +80 -0
  21. package/src/cosmos/authz/v1beta1/authz.ts +481 -0
  22. package/src/cosmos/authz/v1beta1/event.ts +259 -0
  23. package/src/cosmos/authz/v1beta1/genesis.ts +100 -0
  24. package/src/cosmos/authz/v1beta1/query.rpc.func.ts +36 -0
  25. package/src/cosmos/authz/v1beta1/query.ts +707 -0
  26. package/src/cosmos/authz/v1beta1/tx.registry.ts +65 -0
  27. package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +31 -0
  28. package/src/cosmos/authz/v1beta1/tx.ts +647 -0
  29. package/src/cosmos/autocli/v1/options.ts +1145 -0
  30. package/src/cosmos/autocli/v1/query.rpc.func.ts +14 -0
  31. package/src/cosmos/autocli/v1/query.ts +288 -0
  32. package/src/cosmos/bank/module/v1/module.ts +153 -0
  33. package/src/cosmos/bank/v1beta1/authz.ts +138 -0
  34. package/src/cosmos/bank/v1beta1/bank.ts +974 -0
  35. package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
  36. package/src/cosmos/bank/v1beta1/query.rpc.func.ts +146 -0
  37. package/src/cosmos/bank/v1beta1/query.ts +3027 -0
  38. package/src/cosmos/bank/v1beta1/tx.registry.ts +83 -0
  39. package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +40 -0
  40. package/src/cosmos/bank/v1beta1/tx.ts +861 -0
  41. package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
  42. package/src/cosmos/base/grpc/v2/service.rpc.func.ts +25 -0
  43. package/src/cosmos/base/grpc/v2/service.ts +473 -0
  44. package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +25 -0
  45. package/src/cosmos/base/node/v1beta1/query.ts +454 -0
  46. package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
  47. package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +25 -0
  48. package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
  49. package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +69 -0
  50. package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
  51. package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +80 -0
  52. package/src/cosmos/base/tendermint/v1beta1/query.ts +2302 -0
  53. package/src/cosmos/base/tendermint/v1beta1/types.ts +455 -0
  54. package/src/cosmos/base/v1beta1/coin.ts +439 -0
  55. package/src/cosmos/circuit/module/v1/module.ts +99 -0
  56. package/src/cosmos/circuit/v1/query.rpc.func.ts +36 -0
  57. package/src/cosmos/circuit/v1/query.ts +574 -0
  58. package/src/cosmos/circuit/v1/tx.registry.ts +65 -0
  59. package/src/cosmos/circuit/v1/tx.rpc.func.ts +31 -0
  60. package/src/cosmos/circuit/v1/tx.ts +676 -0
  61. package/src/cosmos/circuit/v1/types.ts +413 -0
  62. package/src/cosmos/consensus/module/v1/module.ts +99 -0
  63. package/src/cosmos/consensus/v1/query.rpc.func.ts +14 -0
  64. package/src/cosmos/consensus/v1/query.ts +185 -0
  65. package/src/cosmos/consensus/v1/tx.registry.ts +29 -0
  66. package/src/cosmos/consensus/v1/tx.rpc.func.ts +13 -0
  67. package/src/cosmos/consensus/v1/tx.ts +255 -0
  68. package/src/cosmos/crisis/module/v1/module.ts +115 -0
  69. package/src/cosmos/crisis/v1beta1/genesis.ts +106 -0
  70. package/src/cosmos/crisis/v1beta1/tx.registry.ts +47 -0
  71. package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +22 -0
  72. package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
  73. package/src/cosmos/crypto/ed25519/keys.ts +209 -0
  74. package/src/cosmos/crypto/hd/v1/hd.ts +169 -0
  75. package/src/cosmos/crypto/keyring/v1/record.ts +529 -0
  76. package/src/cosmos/crypto/multisig/keys.ts +122 -0
  77. package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
  78. package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
  79. package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
  80. package/src/cosmos/distribution/module/v1/module.ts +113 -0
  81. package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
  82. package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
  83. package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +113 -0
  84. package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
  85. package/src/cosmos/distribution/v1beta1/tx.registry.ts +137 -0
  86. package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +67 -0
  87. package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
  88. package/src/cosmos/evidence/module/v1/module.ts +80 -0
  89. package/src/cosmos/evidence/v1beta1/evidence.ts +154 -0
  90. package/src/cosmos/evidence/v1beta1/genesis.ts +102 -0
  91. package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +25 -0
  92. package/src/cosmos/evidence/v1beta1/query.ts +451 -0
  93. package/src/cosmos/evidence/v1beta1/tx.registry.ts +29 -0
  94. package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +13 -0
  95. package/src/cosmos/evidence/v1beta1/tx.ts +221 -0
  96. package/src/cosmos/feegrant/module/v1/module.ts +80 -0
  97. package/src/cosmos/feegrant/v1beta1/feegrant.ts +573 -0
  98. package/src/cosmos/feegrant/v1beta1/genesis.ts +100 -0
  99. package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +36 -0
  100. package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
  101. package/src/cosmos/feegrant/v1beta1/tx.registry.ts +65 -0
  102. package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +31 -0
  103. package/src/cosmos/feegrant/v1beta1/tx.ts +597 -0
  104. package/src/cosmos/genutil/module/v1/module.ts +80 -0
  105. package/src/cosmos/genutil/v1beta1/genesis.ts +101 -0
  106. package/src/cosmos/gov/module/v1/module.ts +121 -0
  107. package/src/cosmos/gov/v1/genesis.ts +280 -0
  108. package/src/cosmos/gov/v1/gov.ts +1843 -0
  109. package/src/cosmos/gov/v1/query.rpc.func.ts +102 -0
  110. package/src/cosmos/gov/v1/query.ts +1970 -0
  111. package/src/cosmos/gov/v1/tx.registry.ts +137 -0
  112. package/src/cosmos/gov/v1/tx.rpc.func.ts +67 -0
  113. package/src/cosmos/gov/v1/tx.ts +1657 -0
  114. package/src/cosmos/gov/v1beta1/genesis.ts +202 -0
  115. package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
  116. package/src/cosmos/gov/v1beta1/query.rpc.func.ts +91 -0
  117. package/src/cosmos/gov/v1beta1/query.ts +1749 -0
  118. package/src/cosmos/gov/v1beta1/tx.registry.ts +83 -0
  119. package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +40 -0
  120. package/src/cosmos/gov/v1beta1/tx.ts +881 -0
  121. package/src/cosmos/group/module/v1/module.ts +128 -0
  122. package/src/cosmos/group/v1/events.ts +1044 -0
  123. package/src/cosmos/group/v1/genesis.ts +240 -0
  124. package/src/cosmos/group/v1/query.rpc.func.ts +157 -0
  125. package/src/cosmos/group/v1/query.ts +3015 -0
  126. package/src/cosmos/group/v1/tx.registry.ts +263 -0
  127. package/src/cosmos/group/v1/tx.rpc.func.ts +130 -0
  128. package/src/cosmos/group/v1/tx.ts +3207 -0
  129. package/src/cosmos/group/v1/types.ts +2081 -0
  130. package/src/cosmos/ics23/v1/proofs.ts +2060 -0
  131. package/src/cosmos/mint/module/v1/module.ts +113 -0
  132. package/src/cosmos/mint/v1beta1/genesis.ts +116 -0
  133. package/src/cosmos/mint/v1beta1/mint.ts +291 -0
  134. package/src/cosmos/mint/v1beta1/query.rpc.func.ts +36 -0
  135. package/src/cosmos/mint/v1beta1/query.ts +541 -0
  136. package/src/cosmos/mint/v1beta1/tx.registry.ts +29 -0
  137. package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +13 -0
  138. package/src/cosmos/mint/v1beta1/tx.ts +219 -0
  139. package/src/cosmos/msg/textual/v1/textual.ts +1 -0
  140. package/src/cosmos/msg/v1/msg.ts +1 -0
  141. package/src/cosmos/nft/module/v1/module.ts +80 -0
  142. package/src/cosmos/nft/v1beta1/event.ts +403 -0
  143. package/src/cosmos/nft/v1beta1/genesis.ts +234 -0
  144. package/src/cosmos/nft/v1beta1/nft.ts +356 -0
  145. package/src/cosmos/nft/v1beta1/query.rpc.func.ts +80 -0
  146. package/src/cosmos/nft/v1beta1/query.ts +1465 -0
  147. package/src/cosmos/nft/v1beta1/tx.registry.ts +29 -0
  148. package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +13 -0
  149. package/src/cosmos/nft/v1beta1/tx.ts +224 -0
  150. package/src/cosmos/orm/module/v1alpha1/module.ts +88 -0
  151. package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +25 -0
  152. package/src/cosmos/orm/query/v1alpha1/query.ts +993 -0
  153. package/src/cosmos/orm/v1/orm.ts +589 -0
  154. package/src/cosmos/orm/v1alpha1/schema.ts +325 -0
  155. package/src/cosmos/params/module/v1/module.ts +80 -0
  156. package/src/cosmos/params/v1beta1/params.ts +255 -0
  157. package/src/cosmos/params/v1beta1/query.rpc.func.ts +25 -0
  158. package/src/cosmos/params/v1beta1/query.ts +525 -0
  159. package/src/cosmos/query/v1/query.ts +1 -0
  160. package/src/cosmos/reflection/v1/reflection.rpc.func.ts +14 -0
  161. package/src/cosmos/reflection/v1/reflection.ts +179 -0
  162. package/src/cosmos/slashing/module/v1/module.ts +99 -0
  163. package/src/cosmos/slashing/v1beta1/genesis.ts +492 -0
  164. package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +36 -0
  165. package/src/cosmos/slashing/v1beta1/query.ts +598 -0
  166. package/src/cosmos/slashing/v1beta1/slashing.ts +357 -0
  167. package/src/cosmos/slashing/v1beta1/tx.registry.ts +47 -0
  168. package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +22 -0
  169. package/src/cosmos/slashing/v1beta1/tx.ts +390 -0
  170. package/src/cosmos/staking/module/v1/module.ts +157 -0
  171. package/src/cosmos/staking/v1beta1/authz.ts +323 -0
  172. package/src/cosmos/staking/v1beta1/genesis.ts +346 -0
  173. package/src/cosmos/staking/v1beta1/query.rpc.func.ts +157 -0
  174. package/src/cosmos/staking/v1beta1/query.ts +3073 -0
  175. package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
  176. package/src/cosmos/staking/v1beta1/tx.registry.ts +137 -0
  177. package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +67 -0
  178. package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
  179. package/src/cosmos/store/internal/kv/v1beta1/kv.ts +207 -0
  180. package/src/cosmos/store/snapshots/v1/snapshot.ts +863 -0
  181. package/src/cosmos/store/snapshots/v2/snapshot.ts +823 -0
  182. package/src/cosmos/store/streaming/abci/grpc.ts +393 -0
  183. package/src/cosmos/store/v1beta1/commit_info.ts +362 -0
  184. package/src/cosmos/store/v1beta1/listening.ts +286 -0
  185. package/src/cosmos/streaming/v1/grpc.ts +985 -0
  186. package/src/cosmos/tx/config/v1/config.ts +127 -0
  187. package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
  188. package/src/cosmos/tx/v1beta1/service.rpc.func.ts +102 -0
  189. package/src/cosmos/tx/v1beta1/service.ts +2294 -0
  190. package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
  191. package/src/cosmos/upgrade/module/v1/module.ts +99 -0
  192. package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +58 -0
  193. package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
  194. package/src/cosmos/upgrade/v1beta1/tx.registry.ts +47 -0
  195. package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +22 -0
  196. package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
  197. package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
  198. package/src/cosmos/validate/module/v1/module.ts +80 -0
  199. package/src/cosmos/vesting/module/v1/module.ts +80 -0
  200. package/src/cosmos/vesting/v1beta1/tx.registry.ts +65 -0
  201. package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +31 -0
  202. package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
  203. package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
  204. package/src/cosmos_proto/cosmos.ts +341 -0
  205. package/src/cosmwasm/wasm/v1/authz.ts +1231 -0
  206. package/src/cosmwasm/wasm/v1/genesis.ts +532 -0
  207. package/src/cosmwasm/wasm/v1/ibc.ts +355 -0
  208. package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
  209. package/src/cosmwasm/wasm/v1/query.rpc.func.ts +124 -0
  210. package/src/cosmwasm/wasm/v1/query.ts +2560 -0
  211. package/src/cosmwasm/wasm/v1/tx.registry.ts +317 -0
  212. package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +157 -0
  213. package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
  214. package/src/cosmwasm/wasm/v1/types.ts +1120 -0
  215. package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
  216. package/src/ethermint/evm/v1/events.ts +485 -0
  217. package/src/ethermint/evm/v1/evm.ts +1590 -0
  218. package/src/ethermint/evm/v1/genesis.ts +240 -0
  219. package/src/ethermint/evm/v1/query.rpc.func.ts +136 -0
  220. package/src/ethermint/evm/v1/query.ts +2535 -0
  221. package/src/ethermint/evm/v1/tx.registry.ts +47 -0
  222. package/src/ethermint/evm/v1/tx.rpc.func.ts +22 -0
  223. package/src/ethermint/evm/v1/tx.ts +1333 -0
  224. package/src/ethermint/feemarket/v1/events.ts +195 -0
  225. package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
  226. package/src/ethermint/feemarket/v1/genesis.ts +114 -0
  227. package/src/ethermint/feemarket/v1/query.rpc.func.ts +36 -0
  228. package/src/ethermint/feemarket/v1/query.ts +487 -0
  229. package/src/ethermint/feemarket/v1/tx.registry.ts +29 -0
  230. package/src/ethermint/feemarket/v1/tx.rpc.func.ts +13 -0
  231. package/src/ethermint/feemarket/v1/tx.ts +197 -0
  232. package/src/ethermint/types/v1/account.ts +114 -0
  233. package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
  234. package/src/ethermint/types/v1/indexer.ts +205 -0
  235. package/src/ethermint/types/v1/web3.ts +147 -0
  236. package/src/extern.ts +38 -0
  237. package/src/gogoproto/gogo.ts +1 -0
  238. package/src/google/api/annotations.ts +1 -0
  239. package/src/google/api/http.ts +1069 -0
  240. package/src/google/protobuf/any.ts +331 -0
  241. package/src/google/protobuf/descriptor.ts +7177 -0
  242. package/src/google/protobuf/duration.ts +225 -0
  243. package/src/google/protobuf/timestamp.ts +281 -0
  244. package/src/helper-func-types.ts +191 -0
  245. package/src/helpers.ts +259 -0
  246. package/src/ibc/applications/fee/v1/ack.ts +131 -0
  247. package/src/ibc/applications/fee/v1/fee.ts +481 -0
  248. package/src/ibc/applications/fee/v1/genesis.ts +661 -0
  249. package/src/ibc/applications/fee/v1/metadata.ts +121 -0
  250. package/src/ibc/applications/fee/v1/query.rpc.func.ts +113 -0
  251. package/src/ibc/applications/fee/v1/query.ts +2134 -0
  252. package/src/ibc/applications/fee/v1/tx.registry.ts +83 -0
  253. package/src/ibc/applications/fee/v1/tx.rpc.func.ts +40 -0
  254. package/src/ibc/applications/fee/v1/tx.ts +889 -0
  255. package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +105 -0
  256. package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +25 -0
  257. package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  258. package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +65 -0
  259. package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +31 -0
  260. package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +685 -0
  261. package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +661 -0
  262. package/src/ibc/applications/interchain_accounts/host/v1/host.ts +253 -0
  263. package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +14 -0
  264. package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
  265. package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +47 -0
  266. package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +22 -0
  267. package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +429 -0
  268. package/src/ibc/applications/interchain_accounts/v1/account.ts +112 -0
  269. package/src/ibc/applications/interchain_accounts/v1/metadata.ts +191 -0
  270. package/src/ibc/applications/interchain_accounts/v1/packet.ts +259 -0
  271. package/src/ibc/applications/transfer/v1/authz.ts +280 -0
  272. package/src/ibc/applications/transfer/v1/genesis.ts +153 -0
  273. package/src/ibc/applications/transfer/v1/query.rpc.func.ts +69 -0
  274. package/src/ibc/applications/transfer/v1/query.ts +1205 -0
  275. package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
  276. package/src/ibc/applications/transfer/v1/tx.registry.ts +47 -0
  277. package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +22 -0
  278. package/src/ibc/applications/transfer/v1/tx.ts +532 -0
  279. package/src/ibc/applications/transfer/v2/packet.ts +171 -0
  280. package/src/ibc/core/channel/v1/channel.ts +1510 -0
  281. package/src/ibc/core/channel/v1/genesis.ts +354 -0
  282. package/src/ibc/core/channel/v1/query.rpc.func.ts +190 -0
  283. package/src/ibc/core/channel/v1/query.ts +4354 -0
  284. package/src/ibc/core/channel/v1/tx.registry.ts +353 -0
  285. package/src/ibc/core/channel/v1/tx.rpc.func.ts +175 -0
  286. package/src/ibc/core/channel/v1/tx.ts +4866 -0
  287. package/src/ibc/core/channel/v1/upgrade.ts +388 -0
  288. package/src/ibc/core/client/v1/client.ts +927 -0
  289. package/src/ibc/core/client/v1/genesis.ts +426 -0
  290. package/src/ibc/core/client/v1/query.rpc.func.ts +113 -0
  291. package/src/ibc/core/client/v1/query.ts +2280 -0
  292. package/src/ibc/core/client/v1/tx.registry.ts +137 -0
  293. package/src/ibc/core/client/v1/tx.rpc.func.ts +67 -0
  294. package/src/ibc/core/client/v1/tx.ts +1543 -0
  295. package/src/ibc/core/commitment/v1/commitment.ts +418 -0
  296. package/src/ibc/core/connection/v1/connection.ts +1010 -0
  297. package/src/ibc/core/connection/v1/genesis.ts +146 -0
  298. package/src/ibc/core/connection/v1/query.rpc.func.ts +69 -0
  299. package/src/ibc/core/connection/v1/query.ts +1408 -0
  300. package/src/ibc/core/connection/v1/tx.registry.ts +101 -0
  301. package/src/ibc/core/connection/v1/tx.rpc.func.ts +49 -0
  302. package/src/ibc/core/connection/v1/tx.ts +1365 -0
  303. package/src/ibc/core/types/v1/genesis.ts +137 -0
  304. package/src/ibc/lightclients/localhost/v2/localhost.ts +100 -0
  305. package/src/ibc/lightclients/solomachine/v2/solomachine.ts +2103 -0
  306. package/src/ibc/lightclients/solomachine/v3/solomachine.ts +1070 -0
  307. package/src/ibc/lightclients/tendermint/v1/tendermint.ts +838 -0
  308. package/src/ibc/lightclients/wasm/v1/genesis.ts +197 -0
  309. package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +25 -0
  310. package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
  311. package/src/ibc/lightclients/wasm/v1/tx.registry.ts +65 -0
  312. package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +31 -0
  313. package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
  314. package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
  315. package/src/react-query.ts +185 -0
  316. package/src/registry.ts +218 -0
  317. package/src/tendermint/abci/types.ts +6283 -0
  318. package/src/tendermint/crypto/keys.ts +103 -0
  319. package/src/tendermint/crypto/proof.ts +555 -0
  320. package/src/tendermint/p2p/types.ts +507 -0
  321. package/src/tendermint/types/block.ts +131 -0
  322. package/src/tendermint/types/evidence.ts +476 -0
  323. package/src/tendermint/types/params.ts +814 -0
  324. package/src/tendermint/types/types.ts +2157 -0
  325. package/src/tendermint/types/validator.ts +389 -0
  326. package/src/tendermint/version/types.ts +219 -0
  327. package/src/types.ts +155 -0
  328. package/src/utf8.ts +148 -0
  329. package/src/varint.ts +488 -0
  330. package/src/xpla/reward/v1beta1/genesis.ts +92 -0
  331. package/src/xpla/reward/v1beta1/query.rpc.func.ts +25 -0
  332. package/src/xpla/reward/v1beta1/query.ts +333 -0
  333. package/src/xpla/reward/v1beta1/reward.ts +153 -0
  334. package/src/xpla/reward/v1beta1/tx.registry.ts +47 -0
  335. package/src/xpla/reward/v1beta1/tx.rpc.func.ts +22 -0
  336. package/src/xpla/reward/v1beta1/tx.ts +391 -0
  337. package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
  338. package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
  339. package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +14 -0
  340. package/src/xpla/volunteer/v1beta1/query.ts +160 -0
  341. package/src/xpla/volunteer/v1beta1/tx.registry.ts +47 -0
  342. package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +22 -0
  343. package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
  344. package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
  345. package/tsconfig.esm.json +10 -0
  346. package/tsconfig.json +10 -0
@@ -0,0 +1,2126 @@
1
+ import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../base/query/v1beta1/pagination";
2
+ import { Params, ParamsAmino, ValidatorOutstandingRewards, ValidatorOutstandingRewardsAmino, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorSlashEvent, ValidatorSlashEventAmino, DelegationDelegatorReward, DelegationDelegatorRewardAmino } from "./distribution";
3
+ import { DecCoin, DecCoinAmino } from "../../base/v1beta1/coin";
4
+ import { BinaryReader, BinaryWriter } from "../../../binary";
5
+ import { DeepPartial } from "../../../helpers";
6
+ import { GlobalDecoderRegistry } from "../../../registry";
7
+ /** QueryParamsRequest is the request type for the Query/Params RPC method. */
8
+ export interface QueryParamsRequest {}
9
+ export interface QueryParamsRequestProtoMsg {
10
+ typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest";
11
+ value: Uint8Array;
12
+ }
13
+ /** QueryParamsRequest is the request type for the Query/Params RPC method. */
14
+ export interface QueryParamsRequestAmino {}
15
+ export interface QueryParamsRequestAminoMsg {
16
+ type: "cosmos-sdk/QueryParamsRequest";
17
+ value: QueryParamsRequestAmino;
18
+ }
19
+ /** QueryParamsResponse is the response type for the Query/Params RPC method. */
20
+ export interface QueryParamsResponse {
21
+ /** params defines the parameters of the module. */
22
+ params: Params;
23
+ }
24
+ export interface QueryParamsResponseProtoMsg {
25
+ typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse";
26
+ value: Uint8Array;
27
+ }
28
+ /** QueryParamsResponse is the response type for the Query/Params RPC method. */
29
+ export interface QueryParamsResponseAmino {
30
+ /** params defines the parameters of the module. */
31
+ params: ParamsAmino;
32
+ }
33
+ export interface QueryParamsResponseAminoMsg {
34
+ type: "cosmos-sdk/QueryParamsResponse";
35
+ value: QueryParamsResponseAmino;
36
+ }
37
+ /** QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. */
38
+ export interface QueryValidatorDistributionInfoRequest {
39
+ /** validator_address defines the validator address to query for. */
40
+ validatorAddress: string;
41
+ }
42
+ export interface QueryValidatorDistributionInfoRequestProtoMsg {
43
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest";
44
+ value: Uint8Array;
45
+ }
46
+ /** QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. */
47
+ export interface QueryValidatorDistributionInfoRequestAmino {
48
+ /** validator_address defines the validator address to query for. */
49
+ validator_address: string;
50
+ }
51
+ export interface QueryValidatorDistributionInfoRequestAminoMsg {
52
+ type: "cosmos-sdk/QueryValidatorDistributionInfoRequest";
53
+ value: QueryValidatorDistributionInfoRequestAmino;
54
+ }
55
+ /** QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. */
56
+ export interface QueryValidatorDistributionInfoResponse {
57
+ /** operator_address defines the validator operator address. */
58
+ operatorAddress: string;
59
+ /** self_bond_rewards defines the self delegations rewards. */
60
+ selfBondRewards: DecCoin[];
61
+ /** commission defines the commission the validator received. */
62
+ commission: DecCoin[];
63
+ }
64
+ export interface QueryValidatorDistributionInfoResponseProtoMsg {
65
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse";
66
+ value: Uint8Array;
67
+ }
68
+ /** QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. */
69
+ export interface QueryValidatorDistributionInfoResponseAmino {
70
+ /** operator_address defines the validator operator address. */
71
+ operator_address: string;
72
+ /** self_bond_rewards defines the self delegations rewards. */
73
+ self_bond_rewards: DecCoinAmino[];
74
+ /** commission defines the commission the validator received. */
75
+ commission: DecCoinAmino[];
76
+ }
77
+ export interface QueryValidatorDistributionInfoResponseAminoMsg {
78
+ type: "cosmos-sdk/QueryValidatorDistributionInfoResponse";
79
+ value: QueryValidatorDistributionInfoResponseAmino;
80
+ }
81
+ /**
82
+ * QueryValidatorOutstandingRewardsRequest is the request type for the
83
+ * Query/ValidatorOutstandingRewards RPC method.
84
+ */
85
+ export interface QueryValidatorOutstandingRewardsRequest {
86
+ /** validator_address defines the validator address to query for. */
87
+ validatorAddress: string;
88
+ }
89
+ export interface QueryValidatorOutstandingRewardsRequestProtoMsg {
90
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest";
91
+ value: Uint8Array;
92
+ }
93
+ /**
94
+ * QueryValidatorOutstandingRewardsRequest is the request type for the
95
+ * Query/ValidatorOutstandingRewards RPC method.
96
+ */
97
+ export interface QueryValidatorOutstandingRewardsRequestAmino {
98
+ /** validator_address defines the validator address to query for. */
99
+ validator_address: string;
100
+ }
101
+ export interface QueryValidatorOutstandingRewardsRequestAminoMsg {
102
+ type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest";
103
+ value: QueryValidatorOutstandingRewardsRequestAmino;
104
+ }
105
+ /**
106
+ * QueryValidatorOutstandingRewardsResponse is the response type for the
107
+ * Query/ValidatorOutstandingRewards RPC method.
108
+ */
109
+ export interface QueryValidatorOutstandingRewardsResponse {
110
+ rewards: ValidatorOutstandingRewards;
111
+ }
112
+ export interface QueryValidatorOutstandingRewardsResponseProtoMsg {
113
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse";
114
+ value: Uint8Array;
115
+ }
116
+ /**
117
+ * QueryValidatorOutstandingRewardsResponse is the response type for the
118
+ * Query/ValidatorOutstandingRewards RPC method.
119
+ */
120
+ export interface QueryValidatorOutstandingRewardsResponseAmino {
121
+ rewards: ValidatorOutstandingRewardsAmino;
122
+ }
123
+ export interface QueryValidatorOutstandingRewardsResponseAminoMsg {
124
+ type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse";
125
+ value: QueryValidatorOutstandingRewardsResponseAmino;
126
+ }
127
+ /**
128
+ * QueryValidatorCommissionRequest is the request type for the
129
+ * Query/ValidatorCommission RPC method
130
+ */
131
+ export interface QueryValidatorCommissionRequest {
132
+ /** validator_address defines the validator address to query for. */
133
+ validatorAddress: string;
134
+ }
135
+ export interface QueryValidatorCommissionRequestProtoMsg {
136
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest";
137
+ value: Uint8Array;
138
+ }
139
+ /**
140
+ * QueryValidatorCommissionRequest is the request type for the
141
+ * Query/ValidatorCommission RPC method
142
+ */
143
+ export interface QueryValidatorCommissionRequestAmino {
144
+ /** validator_address defines the validator address to query for. */
145
+ validator_address: string;
146
+ }
147
+ export interface QueryValidatorCommissionRequestAminoMsg {
148
+ type: "cosmos-sdk/QueryValidatorCommissionRequest";
149
+ value: QueryValidatorCommissionRequestAmino;
150
+ }
151
+ /**
152
+ * QueryValidatorCommissionResponse is the response type for the
153
+ * Query/ValidatorCommission RPC method
154
+ */
155
+ export interface QueryValidatorCommissionResponse {
156
+ /** commission defines the commission the validator received. */
157
+ commission: ValidatorAccumulatedCommission;
158
+ }
159
+ export interface QueryValidatorCommissionResponseProtoMsg {
160
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse";
161
+ value: Uint8Array;
162
+ }
163
+ /**
164
+ * QueryValidatorCommissionResponse is the response type for the
165
+ * Query/ValidatorCommission RPC method
166
+ */
167
+ export interface QueryValidatorCommissionResponseAmino {
168
+ /** commission defines the commission the validator received. */
169
+ commission: ValidatorAccumulatedCommissionAmino;
170
+ }
171
+ export interface QueryValidatorCommissionResponseAminoMsg {
172
+ type: "cosmos-sdk/QueryValidatorCommissionResponse";
173
+ value: QueryValidatorCommissionResponseAmino;
174
+ }
175
+ /**
176
+ * QueryValidatorSlashesRequest is the request type for the
177
+ * Query/ValidatorSlashes RPC method
178
+ */
179
+ export interface QueryValidatorSlashesRequest {
180
+ /** validator_address defines the validator address to query for. */
181
+ validatorAddress: string;
182
+ /** starting_height defines the optional starting height to query the slashes. */
183
+ startingHeight: bigint;
184
+ /** starting_height defines the optional ending height to query the slashes. */
185
+ endingHeight: bigint;
186
+ /** pagination defines an optional pagination for the request. */
187
+ pagination?: PageRequest;
188
+ }
189
+ export interface QueryValidatorSlashesRequestProtoMsg {
190
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest";
191
+ value: Uint8Array;
192
+ }
193
+ /**
194
+ * QueryValidatorSlashesRequest is the request type for the
195
+ * Query/ValidatorSlashes RPC method
196
+ */
197
+ export interface QueryValidatorSlashesRequestAmino {
198
+ /** validator_address defines the validator address to query for. */
199
+ validator_address: string;
200
+ /** starting_height defines the optional starting height to query the slashes. */
201
+ starting_height: string;
202
+ /** starting_height defines the optional ending height to query the slashes. */
203
+ ending_height: string;
204
+ /** pagination defines an optional pagination for the request. */
205
+ pagination?: PageRequestAmino;
206
+ }
207
+ export interface QueryValidatorSlashesRequestAminoMsg {
208
+ type: "cosmos-sdk/QueryValidatorSlashesRequest";
209
+ value: QueryValidatorSlashesRequestAmino;
210
+ }
211
+ /**
212
+ * QueryValidatorSlashesResponse is the response type for the
213
+ * Query/ValidatorSlashes RPC method.
214
+ */
215
+ export interface QueryValidatorSlashesResponse {
216
+ /** slashes defines the slashes the validator received. */
217
+ slashes: ValidatorSlashEvent[];
218
+ /** pagination defines the pagination in the response. */
219
+ pagination?: PageResponse;
220
+ }
221
+ export interface QueryValidatorSlashesResponseProtoMsg {
222
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse";
223
+ value: Uint8Array;
224
+ }
225
+ /**
226
+ * QueryValidatorSlashesResponse is the response type for the
227
+ * Query/ValidatorSlashes RPC method.
228
+ */
229
+ export interface QueryValidatorSlashesResponseAmino {
230
+ /** slashes defines the slashes the validator received. */
231
+ slashes: ValidatorSlashEventAmino[];
232
+ /** pagination defines the pagination in the response. */
233
+ pagination?: PageResponseAmino;
234
+ }
235
+ export interface QueryValidatorSlashesResponseAminoMsg {
236
+ type: "cosmos-sdk/QueryValidatorSlashesResponse";
237
+ value: QueryValidatorSlashesResponseAmino;
238
+ }
239
+ /**
240
+ * QueryDelegationRewardsRequest is the request type for the
241
+ * Query/DelegationRewards RPC method.
242
+ */
243
+ export interface QueryDelegationRewardsRequest {
244
+ /** delegator_address defines the delegator address to query for. */
245
+ delegatorAddress: string;
246
+ /** validator_address defines the validator address to query for. */
247
+ validatorAddress: string;
248
+ }
249
+ export interface QueryDelegationRewardsRequestProtoMsg {
250
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest";
251
+ value: Uint8Array;
252
+ }
253
+ /**
254
+ * QueryDelegationRewardsRequest is the request type for the
255
+ * Query/DelegationRewards RPC method.
256
+ */
257
+ export interface QueryDelegationRewardsRequestAmino {
258
+ /** delegator_address defines the delegator address to query for. */
259
+ delegator_address: string;
260
+ /** validator_address defines the validator address to query for. */
261
+ validator_address: string;
262
+ }
263
+ export interface QueryDelegationRewardsRequestAminoMsg {
264
+ type: "cosmos-sdk/QueryDelegationRewardsRequest";
265
+ value: QueryDelegationRewardsRequestAmino;
266
+ }
267
+ /**
268
+ * QueryDelegationRewardsResponse is the response type for the
269
+ * Query/DelegationRewards RPC method.
270
+ */
271
+ export interface QueryDelegationRewardsResponse {
272
+ /** rewards defines the rewards accrued by a delegation. */
273
+ rewards: DecCoin[];
274
+ }
275
+ export interface QueryDelegationRewardsResponseProtoMsg {
276
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse";
277
+ value: Uint8Array;
278
+ }
279
+ /**
280
+ * QueryDelegationRewardsResponse is the response type for the
281
+ * Query/DelegationRewards RPC method.
282
+ */
283
+ export interface QueryDelegationRewardsResponseAmino {
284
+ /** rewards defines the rewards accrued by a delegation. */
285
+ rewards: DecCoinAmino[];
286
+ }
287
+ export interface QueryDelegationRewardsResponseAminoMsg {
288
+ type: "cosmos-sdk/QueryDelegationRewardsResponse";
289
+ value: QueryDelegationRewardsResponseAmino;
290
+ }
291
+ /**
292
+ * QueryDelegationTotalRewardsRequest is the request type for the
293
+ * Query/DelegationTotalRewards RPC method.
294
+ */
295
+ export interface QueryDelegationTotalRewardsRequest {
296
+ /** delegator_address defines the delegator address to query for. */
297
+ delegatorAddress: string;
298
+ }
299
+ export interface QueryDelegationTotalRewardsRequestProtoMsg {
300
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest";
301
+ value: Uint8Array;
302
+ }
303
+ /**
304
+ * QueryDelegationTotalRewardsRequest is the request type for the
305
+ * Query/DelegationTotalRewards RPC method.
306
+ */
307
+ export interface QueryDelegationTotalRewardsRequestAmino {
308
+ /** delegator_address defines the delegator address to query for. */
309
+ delegator_address: string;
310
+ }
311
+ export interface QueryDelegationTotalRewardsRequestAminoMsg {
312
+ type: "cosmos-sdk/QueryDelegationTotalRewardsRequest";
313
+ value: QueryDelegationTotalRewardsRequestAmino;
314
+ }
315
+ /**
316
+ * QueryDelegationTotalRewardsResponse is the response type for the
317
+ * Query/DelegationTotalRewards RPC method.
318
+ */
319
+ export interface QueryDelegationTotalRewardsResponse {
320
+ /** rewards defines all the rewards accrued by a delegator. */
321
+ rewards: DelegationDelegatorReward[];
322
+ /** total defines the sum of all the rewards. */
323
+ total: DecCoin[];
324
+ }
325
+ export interface QueryDelegationTotalRewardsResponseProtoMsg {
326
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse";
327
+ value: Uint8Array;
328
+ }
329
+ /**
330
+ * QueryDelegationTotalRewardsResponse is the response type for the
331
+ * Query/DelegationTotalRewards RPC method.
332
+ */
333
+ export interface QueryDelegationTotalRewardsResponseAmino {
334
+ /** rewards defines all the rewards accrued by a delegator. */
335
+ rewards: DelegationDelegatorRewardAmino[];
336
+ /** total defines the sum of all the rewards. */
337
+ total: DecCoinAmino[];
338
+ }
339
+ export interface QueryDelegationTotalRewardsResponseAminoMsg {
340
+ type: "cosmos-sdk/QueryDelegationTotalRewardsResponse";
341
+ value: QueryDelegationTotalRewardsResponseAmino;
342
+ }
343
+ /**
344
+ * QueryDelegatorValidatorsRequest is the request type for the
345
+ * Query/DelegatorValidators RPC method.
346
+ */
347
+ export interface QueryDelegatorValidatorsRequest {
348
+ /** delegator_address defines the delegator address to query for. */
349
+ delegatorAddress: string;
350
+ }
351
+ export interface QueryDelegatorValidatorsRequestProtoMsg {
352
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest";
353
+ value: Uint8Array;
354
+ }
355
+ /**
356
+ * QueryDelegatorValidatorsRequest is the request type for the
357
+ * Query/DelegatorValidators RPC method.
358
+ */
359
+ export interface QueryDelegatorValidatorsRequestAmino {
360
+ /** delegator_address defines the delegator address to query for. */
361
+ delegator_address: string;
362
+ }
363
+ export interface QueryDelegatorValidatorsRequestAminoMsg {
364
+ type: "cosmos-sdk/QueryDelegatorValidatorsRequest";
365
+ value: QueryDelegatorValidatorsRequestAmino;
366
+ }
367
+ /**
368
+ * QueryDelegatorValidatorsResponse is the response type for the
369
+ * Query/DelegatorValidators RPC method.
370
+ */
371
+ export interface QueryDelegatorValidatorsResponse {
372
+ /** validators defines the validators a delegator is delegating for. */
373
+ validators: string[];
374
+ }
375
+ export interface QueryDelegatorValidatorsResponseProtoMsg {
376
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse";
377
+ value: Uint8Array;
378
+ }
379
+ /**
380
+ * QueryDelegatorValidatorsResponse is the response type for the
381
+ * Query/DelegatorValidators RPC method.
382
+ */
383
+ export interface QueryDelegatorValidatorsResponseAmino {
384
+ /** validators defines the validators a delegator is delegating for. */
385
+ validators: string[];
386
+ }
387
+ export interface QueryDelegatorValidatorsResponseAminoMsg {
388
+ type: "cosmos-sdk/QueryDelegatorValidatorsResponse";
389
+ value: QueryDelegatorValidatorsResponseAmino;
390
+ }
391
+ /**
392
+ * QueryDelegatorWithdrawAddressRequest is the request type for the
393
+ * Query/DelegatorWithdrawAddress RPC method.
394
+ */
395
+ export interface QueryDelegatorWithdrawAddressRequest {
396
+ /** delegator_address defines the delegator address to query for. */
397
+ delegatorAddress: string;
398
+ }
399
+ export interface QueryDelegatorWithdrawAddressRequestProtoMsg {
400
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest";
401
+ value: Uint8Array;
402
+ }
403
+ /**
404
+ * QueryDelegatorWithdrawAddressRequest is the request type for the
405
+ * Query/DelegatorWithdrawAddress RPC method.
406
+ */
407
+ export interface QueryDelegatorWithdrawAddressRequestAmino {
408
+ /** delegator_address defines the delegator address to query for. */
409
+ delegator_address: string;
410
+ }
411
+ export interface QueryDelegatorWithdrawAddressRequestAminoMsg {
412
+ type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest";
413
+ value: QueryDelegatorWithdrawAddressRequestAmino;
414
+ }
415
+ /**
416
+ * QueryDelegatorWithdrawAddressResponse is the response type for the
417
+ * Query/DelegatorWithdrawAddress RPC method.
418
+ */
419
+ export interface QueryDelegatorWithdrawAddressResponse {
420
+ /** withdraw_address defines the delegator address to query for. */
421
+ withdrawAddress: string;
422
+ }
423
+ export interface QueryDelegatorWithdrawAddressResponseProtoMsg {
424
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse";
425
+ value: Uint8Array;
426
+ }
427
+ /**
428
+ * QueryDelegatorWithdrawAddressResponse is the response type for the
429
+ * Query/DelegatorWithdrawAddress RPC method.
430
+ */
431
+ export interface QueryDelegatorWithdrawAddressResponseAmino {
432
+ /** withdraw_address defines the delegator address to query for. */
433
+ withdraw_address: string;
434
+ }
435
+ export interface QueryDelegatorWithdrawAddressResponseAminoMsg {
436
+ type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse";
437
+ value: QueryDelegatorWithdrawAddressResponseAmino;
438
+ }
439
+ /**
440
+ * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
441
+ * method.
442
+ */
443
+ export interface QueryCommunityPoolRequest {}
444
+ export interface QueryCommunityPoolRequestProtoMsg {
445
+ typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest";
446
+ value: Uint8Array;
447
+ }
448
+ /**
449
+ * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
450
+ * method.
451
+ */
452
+ export interface QueryCommunityPoolRequestAmino {}
453
+ export interface QueryCommunityPoolRequestAminoMsg {
454
+ type: "cosmos-sdk/QueryCommunityPoolRequest";
455
+ value: QueryCommunityPoolRequestAmino;
456
+ }
457
+ /**
458
+ * QueryCommunityPoolResponse is the response type for the Query/CommunityPool
459
+ * RPC method.
460
+ */
461
+ export interface QueryCommunityPoolResponse {
462
+ /** pool defines community pool's coins. */
463
+ pool: DecCoin[];
464
+ }
465
+ export interface QueryCommunityPoolResponseProtoMsg {
466
+ typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse";
467
+ value: Uint8Array;
468
+ }
469
+ /**
470
+ * QueryCommunityPoolResponse is the response type for the Query/CommunityPool
471
+ * RPC method.
472
+ */
473
+ export interface QueryCommunityPoolResponseAmino {
474
+ /** pool defines community pool's coins. */
475
+ pool: DecCoinAmino[];
476
+ }
477
+ export interface QueryCommunityPoolResponseAminoMsg {
478
+ type: "cosmos-sdk/QueryCommunityPoolResponse";
479
+ value: QueryCommunityPoolResponseAmino;
480
+ }
481
+ function createBaseQueryParamsRequest(): QueryParamsRequest {
482
+ return {};
483
+ }
484
+ export const QueryParamsRequest = {
485
+ typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest",
486
+ aminoType: "cosmos-sdk/QueryParamsRequest",
487
+ is(o: any): o is QueryParamsRequest {
488
+ return o && o.$typeUrl === QueryParamsRequest.typeUrl;
489
+ },
490
+ isAmino(o: any): o is QueryParamsRequestAmino {
491
+ return o && o.$typeUrl === QueryParamsRequest.typeUrl;
492
+ },
493
+ encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
494
+ return writer;
495
+ },
496
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest {
497
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
498
+ let end = length === undefined ? reader.len : reader.pos + length;
499
+ const message = createBaseQueryParamsRequest();
500
+ while (reader.pos < end) {
501
+ const tag = reader.uint32();
502
+ switch (tag >>> 3) {
503
+ default:
504
+ reader.skipType(tag & 7);
505
+ break;
506
+ }
507
+ }
508
+ return message;
509
+ },
510
+ fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest {
511
+ const message = createBaseQueryParamsRequest();
512
+ return message;
513
+ },
514
+ fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest {
515
+ const message = createBaseQueryParamsRequest();
516
+ return message;
517
+ },
518
+ toAmino(_: QueryParamsRequest): QueryParamsRequestAmino {
519
+ const obj: any = {};
520
+ return obj;
521
+ },
522
+ fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest {
523
+ return QueryParamsRequest.fromAmino(object.value);
524
+ },
525
+ toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg {
526
+ return {
527
+ type: "cosmos-sdk/QueryParamsRequest",
528
+ value: QueryParamsRequest.toAmino(message)
529
+ };
530
+ },
531
+ fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest {
532
+ return QueryParamsRequest.decode(message.value);
533
+ },
534
+ toProto(message: QueryParamsRequest): Uint8Array {
535
+ return QueryParamsRequest.encode(message).finish();
536
+ },
537
+ toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg {
538
+ return {
539
+ typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest",
540
+ value: QueryParamsRequest.encode(message).finish()
541
+ };
542
+ }
543
+ };
544
+ GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
545
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
546
+ function createBaseQueryParamsResponse(): QueryParamsResponse {
547
+ return {
548
+ params: Params.fromPartial({})
549
+ };
550
+ }
551
+ export const QueryParamsResponse = {
552
+ typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse",
553
+ aminoType: "cosmos-sdk/QueryParamsResponse",
554
+ is(o: any): o is QueryParamsResponse {
555
+ return o && (o.$typeUrl === QueryParamsResponse.typeUrl || Params.is(o.params));
556
+ },
557
+ isAmino(o: any): o is QueryParamsResponseAmino {
558
+ return o && (o.$typeUrl === QueryParamsResponse.typeUrl || Params.isAmino(o.params));
559
+ },
560
+ encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
561
+ if (message.params !== undefined) {
562
+ Params.encode(message.params, writer.uint32(10).fork()).ldelim();
563
+ }
564
+ return writer;
565
+ },
566
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse {
567
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
568
+ let end = length === undefined ? reader.len : reader.pos + length;
569
+ const message = createBaseQueryParamsResponse();
570
+ while (reader.pos < end) {
571
+ const tag = reader.uint32();
572
+ switch (tag >>> 3) {
573
+ case 1:
574
+ message.params = Params.decode(reader, reader.uint32());
575
+ break;
576
+ default:
577
+ reader.skipType(tag & 7);
578
+ break;
579
+ }
580
+ }
581
+ return message;
582
+ },
583
+ fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse {
584
+ const message = createBaseQueryParamsResponse();
585
+ message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
586
+ return message;
587
+ },
588
+ fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse {
589
+ const message = createBaseQueryParamsResponse();
590
+ if (object.params !== undefined && object.params !== null) {
591
+ message.params = Params.fromAmino(object.params);
592
+ }
593
+ return message;
594
+ },
595
+ toAmino(message: QueryParamsResponse): QueryParamsResponseAmino {
596
+ const obj: any = {};
597
+ obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
598
+ return obj;
599
+ },
600
+ fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse {
601
+ return QueryParamsResponse.fromAmino(object.value);
602
+ },
603
+ toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg {
604
+ return {
605
+ type: "cosmos-sdk/QueryParamsResponse",
606
+ value: QueryParamsResponse.toAmino(message)
607
+ };
608
+ },
609
+ fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse {
610
+ return QueryParamsResponse.decode(message.value);
611
+ },
612
+ toProto(message: QueryParamsResponse): Uint8Array {
613
+ return QueryParamsResponse.encode(message).finish();
614
+ },
615
+ toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg {
616
+ return {
617
+ typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse",
618
+ value: QueryParamsResponse.encode(message).finish()
619
+ };
620
+ }
621
+ };
622
+ GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
623
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
624
+ function createBaseQueryValidatorDistributionInfoRequest(): QueryValidatorDistributionInfoRequest {
625
+ return {
626
+ validatorAddress: ""
627
+ };
628
+ }
629
+ export const QueryValidatorDistributionInfoRequest = {
630
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest",
631
+ aminoType: "cosmos-sdk/QueryValidatorDistributionInfoRequest",
632
+ is(o: any): o is QueryValidatorDistributionInfoRequest {
633
+ return o && (o.$typeUrl === QueryValidatorDistributionInfoRequest.typeUrl || typeof o.validatorAddress === "string");
634
+ },
635
+ isAmino(o: any): o is QueryValidatorDistributionInfoRequestAmino {
636
+ return o && (o.$typeUrl === QueryValidatorDistributionInfoRequest.typeUrl || typeof o.validator_address === "string");
637
+ },
638
+ encode(message: QueryValidatorDistributionInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
639
+ if (message.validatorAddress !== "") {
640
+ writer.uint32(10).string(message.validatorAddress);
641
+ }
642
+ return writer;
643
+ },
644
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDistributionInfoRequest {
645
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
646
+ let end = length === undefined ? reader.len : reader.pos + length;
647
+ const message = createBaseQueryValidatorDistributionInfoRequest();
648
+ while (reader.pos < end) {
649
+ const tag = reader.uint32();
650
+ switch (tag >>> 3) {
651
+ case 1:
652
+ message.validatorAddress = reader.string();
653
+ break;
654
+ default:
655
+ reader.skipType(tag & 7);
656
+ break;
657
+ }
658
+ }
659
+ return message;
660
+ },
661
+ fromPartial(object: DeepPartial<QueryValidatorDistributionInfoRequest>): QueryValidatorDistributionInfoRequest {
662
+ const message = createBaseQueryValidatorDistributionInfoRequest();
663
+ message.validatorAddress = object.validatorAddress ?? "";
664
+ return message;
665
+ },
666
+ fromAmino(object: QueryValidatorDistributionInfoRequestAmino): QueryValidatorDistributionInfoRequest {
667
+ const message = createBaseQueryValidatorDistributionInfoRequest();
668
+ if (object.validator_address !== undefined && object.validator_address !== null) {
669
+ message.validatorAddress = object.validator_address;
670
+ }
671
+ return message;
672
+ },
673
+ toAmino(message: QueryValidatorDistributionInfoRequest): QueryValidatorDistributionInfoRequestAmino {
674
+ const obj: any = {};
675
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
676
+ return obj;
677
+ },
678
+ fromAminoMsg(object: QueryValidatorDistributionInfoRequestAminoMsg): QueryValidatorDistributionInfoRequest {
679
+ return QueryValidatorDistributionInfoRequest.fromAmino(object.value);
680
+ },
681
+ toAminoMsg(message: QueryValidatorDistributionInfoRequest): QueryValidatorDistributionInfoRequestAminoMsg {
682
+ return {
683
+ type: "cosmos-sdk/QueryValidatorDistributionInfoRequest",
684
+ value: QueryValidatorDistributionInfoRequest.toAmino(message)
685
+ };
686
+ },
687
+ fromProtoMsg(message: QueryValidatorDistributionInfoRequestProtoMsg): QueryValidatorDistributionInfoRequest {
688
+ return QueryValidatorDistributionInfoRequest.decode(message.value);
689
+ },
690
+ toProto(message: QueryValidatorDistributionInfoRequest): Uint8Array {
691
+ return QueryValidatorDistributionInfoRequest.encode(message).finish();
692
+ },
693
+ toProtoMsg(message: QueryValidatorDistributionInfoRequest): QueryValidatorDistributionInfoRequestProtoMsg {
694
+ return {
695
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest",
696
+ value: QueryValidatorDistributionInfoRequest.encode(message).finish()
697
+ };
698
+ }
699
+ };
700
+ GlobalDecoderRegistry.register(QueryValidatorDistributionInfoRequest.typeUrl, QueryValidatorDistributionInfoRequest);
701
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorDistributionInfoRequest.aminoType, QueryValidatorDistributionInfoRequest.typeUrl);
702
+ function createBaseQueryValidatorDistributionInfoResponse(): QueryValidatorDistributionInfoResponse {
703
+ return {
704
+ operatorAddress: "",
705
+ selfBondRewards: [],
706
+ commission: []
707
+ };
708
+ }
709
+ export const QueryValidatorDistributionInfoResponse = {
710
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse",
711
+ aminoType: "cosmos-sdk/QueryValidatorDistributionInfoResponse",
712
+ is(o: any): o is QueryValidatorDistributionInfoResponse {
713
+ return o && (o.$typeUrl === QueryValidatorDistributionInfoResponse.typeUrl || typeof o.operatorAddress === "string" && Array.isArray(o.selfBondRewards) && (!o.selfBondRewards.length || DecCoin.is(o.selfBondRewards[0])) && Array.isArray(o.commission) && (!o.commission.length || DecCoin.is(o.commission[0])));
714
+ },
715
+ isAmino(o: any): o is QueryValidatorDistributionInfoResponseAmino {
716
+ return o && (o.$typeUrl === QueryValidatorDistributionInfoResponse.typeUrl || typeof o.operator_address === "string" && Array.isArray(o.self_bond_rewards) && (!o.self_bond_rewards.length || DecCoin.isAmino(o.self_bond_rewards[0])) && Array.isArray(o.commission) && (!o.commission.length || DecCoin.isAmino(o.commission[0])));
717
+ },
718
+ encode(message: QueryValidatorDistributionInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
719
+ if (message.operatorAddress !== "") {
720
+ writer.uint32(10).string(message.operatorAddress);
721
+ }
722
+ for (const v of message.selfBondRewards) {
723
+ DecCoin.encode(v!, writer.uint32(18).fork()).ldelim();
724
+ }
725
+ for (const v of message.commission) {
726
+ DecCoin.encode(v!, writer.uint32(26).fork()).ldelim();
727
+ }
728
+ return writer;
729
+ },
730
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDistributionInfoResponse {
731
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
732
+ let end = length === undefined ? reader.len : reader.pos + length;
733
+ const message = createBaseQueryValidatorDistributionInfoResponse();
734
+ while (reader.pos < end) {
735
+ const tag = reader.uint32();
736
+ switch (tag >>> 3) {
737
+ case 1:
738
+ message.operatorAddress = reader.string();
739
+ break;
740
+ case 2:
741
+ message.selfBondRewards.push(DecCoin.decode(reader, reader.uint32()));
742
+ break;
743
+ case 3:
744
+ message.commission.push(DecCoin.decode(reader, reader.uint32()));
745
+ break;
746
+ default:
747
+ reader.skipType(tag & 7);
748
+ break;
749
+ }
750
+ }
751
+ return message;
752
+ },
753
+ fromPartial(object: DeepPartial<QueryValidatorDistributionInfoResponse>): QueryValidatorDistributionInfoResponse {
754
+ const message = createBaseQueryValidatorDistributionInfoResponse();
755
+ message.operatorAddress = object.operatorAddress ?? "";
756
+ message.selfBondRewards = object.selfBondRewards?.map(e => DecCoin.fromPartial(e)) || [];
757
+ message.commission = object.commission?.map(e => DecCoin.fromPartial(e)) || [];
758
+ return message;
759
+ },
760
+ fromAmino(object: QueryValidatorDistributionInfoResponseAmino): QueryValidatorDistributionInfoResponse {
761
+ const message = createBaseQueryValidatorDistributionInfoResponse();
762
+ if (object.operator_address !== undefined && object.operator_address !== null) {
763
+ message.operatorAddress = object.operator_address;
764
+ }
765
+ message.selfBondRewards = object.self_bond_rewards?.map(e => DecCoin.fromAmino(e)) || [];
766
+ message.commission = object.commission?.map(e => DecCoin.fromAmino(e)) || [];
767
+ return message;
768
+ },
769
+ toAmino(message: QueryValidatorDistributionInfoResponse): QueryValidatorDistributionInfoResponseAmino {
770
+ const obj: any = {};
771
+ obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress;
772
+ if (message.selfBondRewards) {
773
+ obj.self_bond_rewards = message.selfBondRewards.map(e => e ? DecCoin.toAmino(e) : undefined);
774
+ } else {
775
+ obj.self_bond_rewards = message.selfBondRewards;
776
+ }
777
+ if (message.commission) {
778
+ obj.commission = message.commission.map(e => e ? DecCoin.toAmino(e) : undefined);
779
+ } else {
780
+ obj.commission = message.commission;
781
+ }
782
+ return obj;
783
+ },
784
+ fromAminoMsg(object: QueryValidatorDistributionInfoResponseAminoMsg): QueryValidatorDistributionInfoResponse {
785
+ return QueryValidatorDistributionInfoResponse.fromAmino(object.value);
786
+ },
787
+ toAminoMsg(message: QueryValidatorDistributionInfoResponse): QueryValidatorDistributionInfoResponseAminoMsg {
788
+ return {
789
+ type: "cosmos-sdk/QueryValidatorDistributionInfoResponse",
790
+ value: QueryValidatorDistributionInfoResponse.toAmino(message)
791
+ };
792
+ },
793
+ fromProtoMsg(message: QueryValidatorDistributionInfoResponseProtoMsg): QueryValidatorDistributionInfoResponse {
794
+ return QueryValidatorDistributionInfoResponse.decode(message.value);
795
+ },
796
+ toProto(message: QueryValidatorDistributionInfoResponse): Uint8Array {
797
+ return QueryValidatorDistributionInfoResponse.encode(message).finish();
798
+ },
799
+ toProtoMsg(message: QueryValidatorDistributionInfoResponse): QueryValidatorDistributionInfoResponseProtoMsg {
800
+ return {
801
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse",
802
+ value: QueryValidatorDistributionInfoResponse.encode(message).finish()
803
+ };
804
+ }
805
+ };
806
+ GlobalDecoderRegistry.register(QueryValidatorDistributionInfoResponse.typeUrl, QueryValidatorDistributionInfoResponse);
807
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorDistributionInfoResponse.aminoType, QueryValidatorDistributionInfoResponse.typeUrl);
808
+ function createBaseQueryValidatorOutstandingRewardsRequest(): QueryValidatorOutstandingRewardsRequest {
809
+ return {
810
+ validatorAddress: ""
811
+ };
812
+ }
813
+ export const QueryValidatorOutstandingRewardsRequest = {
814
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest",
815
+ aminoType: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest",
816
+ is(o: any): o is QueryValidatorOutstandingRewardsRequest {
817
+ return o && (o.$typeUrl === QueryValidatorOutstandingRewardsRequest.typeUrl || typeof o.validatorAddress === "string");
818
+ },
819
+ isAmino(o: any): o is QueryValidatorOutstandingRewardsRequestAmino {
820
+ return o && (o.$typeUrl === QueryValidatorOutstandingRewardsRequest.typeUrl || typeof o.validator_address === "string");
821
+ },
822
+ encode(message: QueryValidatorOutstandingRewardsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
823
+ if (message.validatorAddress !== "") {
824
+ writer.uint32(10).string(message.validatorAddress);
825
+ }
826
+ return writer;
827
+ },
828
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest {
829
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
830
+ let end = length === undefined ? reader.len : reader.pos + length;
831
+ const message = createBaseQueryValidatorOutstandingRewardsRequest();
832
+ while (reader.pos < end) {
833
+ const tag = reader.uint32();
834
+ switch (tag >>> 3) {
835
+ case 1:
836
+ message.validatorAddress = reader.string();
837
+ break;
838
+ default:
839
+ reader.skipType(tag & 7);
840
+ break;
841
+ }
842
+ }
843
+ return message;
844
+ },
845
+ fromPartial(object: DeepPartial<QueryValidatorOutstandingRewardsRequest>): QueryValidatorOutstandingRewardsRequest {
846
+ const message = createBaseQueryValidatorOutstandingRewardsRequest();
847
+ message.validatorAddress = object.validatorAddress ?? "";
848
+ return message;
849
+ },
850
+ fromAmino(object: QueryValidatorOutstandingRewardsRequestAmino): QueryValidatorOutstandingRewardsRequest {
851
+ const message = createBaseQueryValidatorOutstandingRewardsRequest();
852
+ if (object.validator_address !== undefined && object.validator_address !== null) {
853
+ message.validatorAddress = object.validator_address;
854
+ }
855
+ return message;
856
+ },
857
+ toAmino(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAmino {
858
+ const obj: any = {};
859
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
860
+ return obj;
861
+ },
862
+ fromAminoMsg(object: QueryValidatorOutstandingRewardsRequestAminoMsg): QueryValidatorOutstandingRewardsRequest {
863
+ return QueryValidatorOutstandingRewardsRequest.fromAmino(object.value);
864
+ },
865
+ toAminoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAminoMsg {
866
+ return {
867
+ type: "cosmos-sdk/QueryValidatorOutstandingRewardsRequest",
868
+ value: QueryValidatorOutstandingRewardsRequest.toAmino(message)
869
+ };
870
+ },
871
+ fromProtoMsg(message: QueryValidatorOutstandingRewardsRequestProtoMsg): QueryValidatorOutstandingRewardsRequest {
872
+ return QueryValidatorOutstandingRewardsRequest.decode(message.value);
873
+ },
874
+ toProto(message: QueryValidatorOutstandingRewardsRequest): Uint8Array {
875
+ return QueryValidatorOutstandingRewardsRequest.encode(message).finish();
876
+ },
877
+ toProtoMsg(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestProtoMsg {
878
+ return {
879
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest",
880
+ value: QueryValidatorOutstandingRewardsRequest.encode(message).finish()
881
+ };
882
+ }
883
+ };
884
+ GlobalDecoderRegistry.register(QueryValidatorOutstandingRewardsRequest.typeUrl, QueryValidatorOutstandingRewardsRequest);
885
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorOutstandingRewardsRequest.aminoType, QueryValidatorOutstandingRewardsRequest.typeUrl);
886
+ function createBaseQueryValidatorOutstandingRewardsResponse(): QueryValidatorOutstandingRewardsResponse {
887
+ return {
888
+ rewards: ValidatorOutstandingRewards.fromPartial({})
889
+ };
890
+ }
891
+ export const QueryValidatorOutstandingRewardsResponse = {
892
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse",
893
+ aminoType: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse",
894
+ is(o: any): o is QueryValidatorOutstandingRewardsResponse {
895
+ return o && (o.$typeUrl === QueryValidatorOutstandingRewardsResponse.typeUrl || ValidatorOutstandingRewards.is(o.rewards));
896
+ },
897
+ isAmino(o: any): o is QueryValidatorOutstandingRewardsResponseAmino {
898
+ return o && (o.$typeUrl === QueryValidatorOutstandingRewardsResponse.typeUrl || ValidatorOutstandingRewards.isAmino(o.rewards));
899
+ },
900
+ encode(message: QueryValidatorOutstandingRewardsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
901
+ if (message.rewards !== undefined) {
902
+ ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim();
903
+ }
904
+ return writer;
905
+ },
906
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse {
907
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
908
+ let end = length === undefined ? reader.len : reader.pos + length;
909
+ const message = createBaseQueryValidatorOutstandingRewardsResponse();
910
+ while (reader.pos < end) {
911
+ const tag = reader.uint32();
912
+ switch (tag >>> 3) {
913
+ case 1:
914
+ message.rewards = ValidatorOutstandingRewards.decode(reader, reader.uint32());
915
+ break;
916
+ default:
917
+ reader.skipType(tag & 7);
918
+ break;
919
+ }
920
+ }
921
+ return message;
922
+ },
923
+ fromPartial(object: DeepPartial<QueryValidatorOutstandingRewardsResponse>): QueryValidatorOutstandingRewardsResponse {
924
+ const message = createBaseQueryValidatorOutstandingRewardsResponse();
925
+ message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorOutstandingRewards.fromPartial(object.rewards) : undefined;
926
+ return message;
927
+ },
928
+ fromAmino(object: QueryValidatorOutstandingRewardsResponseAmino): QueryValidatorOutstandingRewardsResponse {
929
+ const message = createBaseQueryValidatorOutstandingRewardsResponse();
930
+ if (object.rewards !== undefined && object.rewards !== null) {
931
+ message.rewards = ValidatorOutstandingRewards.fromAmino(object.rewards);
932
+ }
933
+ return message;
934
+ },
935
+ toAmino(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAmino {
936
+ const obj: any = {};
937
+ obj.rewards = message.rewards ? ValidatorOutstandingRewards.toAmino(message.rewards) : ValidatorOutstandingRewards.toAmino(ValidatorOutstandingRewards.fromPartial({}));
938
+ return obj;
939
+ },
940
+ fromAminoMsg(object: QueryValidatorOutstandingRewardsResponseAminoMsg): QueryValidatorOutstandingRewardsResponse {
941
+ return QueryValidatorOutstandingRewardsResponse.fromAmino(object.value);
942
+ },
943
+ toAminoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseAminoMsg {
944
+ return {
945
+ type: "cosmos-sdk/QueryValidatorOutstandingRewardsResponse",
946
+ value: QueryValidatorOutstandingRewardsResponse.toAmino(message)
947
+ };
948
+ },
949
+ fromProtoMsg(message: QueryValidatorOutstandingRewardsResponseProtoMsg): QueryValidatorOutstandingRewardsResponse {
950
+ return QueryValidatorOutstandingRewardsResponse.decode(message.value);
951
+ },
952
+ toProto(message: QueryValidatorOutstandingRewardsResponse): Uint8Array {
953
+ return QueryValidatorOutstandingRewardsResponse.encode(message).finish();
954
+ },
955
+ toProtoMsg(message: QueryValidatorOutstandingRewardsResponse): QueryValidatorOutstandingRewardsResponseProtoMsg {
956
+ return {
957
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse",
958
+ value: QueryValidatorOutstandingRewardsResponse.encode(message).finish()
959
+ };
960
+ }
961
+ };
962
+ GlobalDecoderRegistry.register(QueryValidatorOutstandingRewardsResponse.typeUrl, QueryValidatorOutstandingRewardsResponse);
963
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorOutstandingRewardsResponse.aminoType, QueryValidatorOutstandingRewardsResponse.typeUrl);
964
+ function createBaseQueryValidatorCommissionRequest(): QueryValidatorCommissionRequest {
965
+ return {
966
+ validatorAddress: ""
967
+ };
968
+ }
969
+ export const QueryValidatorCommissionRequest = {
970
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest",
971
+ aminoType: "cosmos-sdk/QueryValidatorCommissionRequest",
972
+ is(o: any): o is QueryValidatorCommissionRequest {
973
+ return o && (o.$typeUrl === QueryValidatorCommissionRequest.typeUrl || typeof o.validatorAddress === "string");
974
+ },
975
+ isAmino(o: any): o is QueryValidatorCommissionRequestAmino {
976
+ return o && (o.$typeUrl === QueryValidatorCommissionRequest.typeUrl || typeof o.validator_address === "string");
977
+ },
978
+ encode(message: QueryValidatorCommissionRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
979
+ if (message.validatorAddress !== "") {
980
+ writer.uint32(10).string(message.validatorAddress);
981
+ }
982
+ return writer;
983
+ },
984
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionRequest {
985
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
986
+ let end = length === undefined ? reader.len : reader.pos + length;
987
+ const message = createBaseQueryValidatorCommissionRequest();
988
+ while (reader.pos < end) {
989
+ const tag = reader.uint32();
990
+ switch (tag >>> 3) {
991
+ case 1:
992
+ message.validatorAddress = reader.string();
993
+ break;
994
+ default:
995
+ reader.skipType(tag & 7);
996
+ break;
997
+ }
998
+ }
999
+ return message;
1000
+ },
1001
+ fromPartial(object: DeepPartial<QueryValidatorCommissionRequest>): QueryValidatorCommissionRequest {
1002
+ const message = createBaseQueryValidatorCommissionRequest();
1003
+ message.validatorAddress = object.validatorAddress ?? "";
1004
+ return message;
1005
+ },
1006
+ fromAmino(object: QueryValidatorCommissionRequestAmino): QueryValidatorCommissionRequest {
1007
+ const message = createBaseQueryValidatorCommissionRequest();
1008
+ if (object.validator_address !== undefined && object.validator_address !== null) {
1009
+ message.validatorAddress = object.validator_address;
1010
+ }
1011
+ return message;
1012
+ },
1013
+ toAmino(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAmino {
1014
+ const obj: any = {};
1015
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
1016
+ return obj;
1017
+ },
1018
+ fromAminoMsg(object: QueryValidatorCommissionRequestAminoMsg): QueryValidatorCommissionRequest {
1019
+ return QueryValidatorCommissionRequest.fromAmino(object.value);
1020
+ },
1021
+ toAminoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAminoMsg {
1022
+ return {
1023
+ type: "cosmos-sdk/QueryValidatorCommissionRequest",
1024
+ value: QueryValidatorCommissionRequest.toAmino(message)
1025
+ };
1026
+ },
1027
+ fromProtoMsg(message: QueryValidatorCommissionRequestProtoMsg): QueryValidatorCommissionRequest {
1028
+ return QueryValidatorCommissionRequest.decode(message.value);
1029
+ },
1030
+ toProto(message: QueryValidatorCommissionRequest): Uint8Array {
1031
+ return QueryValidatorCommissionRequest.encode(message).finish();
1032
+ },
1033
+ toProtoMsg(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestProtoMsg {
1034
+ return {
1035
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest",
1036
+ value: QueryValidatorCommissionRequest.encode(message).finish()
1037
+ };
1038
+ }
1039
+ };
1040
+ GlobalDecoderRegistry.register(QueryValidatorCommissionRequest.typeUrl, QueryValidatorCommissionRequest);
1041
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorCommissionRequest.aminoType, QueryValidatorCommissionRequest.typeUrl);
1042
+ function createBaseQueryValidatorCommissionResponse(): QueryValidatorCommissionResponse {
1043
+ return {
1044
+ commission: ValidatorAccumulatedCommission.fromPartial({})
1045
+ };
1046
+ }
1047
+ export const QueryValidatorCommissionResponse = {
1048
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse",
1049
+ aminoType: "cosmos-sdk/QueryValidatorCommissionResponse",
1050
+ is(o: any): o is QueryValidatorCommissionResponse {
1051
+ return o && (o.$typeUrl === QueryValidatorCommissionResponse.typeUrl || ValidatorAccumulatedCommission.is(o.commission));
1052
+ },
1053
+ isAmino(o: any): o is QueryValidatorCommissionResponseAmino {
1054
+ return o && (o.$typeUrl === QueryValidatorCommissionResponse.typeUrl || ValidatorAccumulatedCommission.isAmino(o.commission));
1055
+ },
1056
+ encode(message: QueryValidatorCommissionResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1057
+ if (message.commission !== undefined) {
1058
+ ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim();
1059
+ }
1060
+ return writer;
1061
+ },
1062
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionResponse {
1063
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1064
+ let end = length === undefined ? reader.len : reader.pos + length;
1065
+ const message = createBaseQueryValidatorCommissionResponse();
1066
+ while (reader.pos < end) {
1067
+ const tag = reader.uint32();
1068
+ switch (tag >>> 3) {
1069
+ case 1:
1070
+ message.commission = ValidatorAccumulatedCommission.decode(reader, reader.uint32());
1071
+ break;
1072
+ default:
1073
+ reader.skipType(tag & 7);
1074
+ break;
1075
+ }
1076
+ }
1077
+ return message;
1078
+ },
1079
+ fromPartial(object: DeepPartial<QueryValidatorCommissionResponse>): QueryValidatorCommissionResponse {
1080
+ const message = createBaseQueryValidatorCommissionResponse();
1081
+ message.commission = object.commission !== undefined && object.commission !== null ? ValidatorAccumulatedCommission.fromPartial(object.commission) : undefined;
1082
+ return message;
1083
+ },
1084
+ fromAmino(object: QueryValidatorCommissionResponseAmino): QueryValidatorCommissionResponse {
1085
+ const message = createBaseQueryValidatorCommissionResponse();
1086
+ if (object.commission !== undefined && object.commission !== null) {
1087
+ message.commission = ValidatorAccumulatedCommission.fromAmino(object.commission);
1088
+ }
1089
+ return message;
1090
+ },
1091
+ toAmino(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAmino {
1092
+ const obj: any = {};
1093
+ obj.commission = message.commission ? ValidatorAccumulatedCommission.toAmino(message.commission) : ValidatorAccumulatedCommission.toAmino(ValidatorAccumulatedCommission.fromPartial({}));
1094
+ return obj;
1095
+ },
1096
+ fromAminoMsg(object: QueryValidatorCommissionResponseAminoMsg): QueryValidatorCommissionResponse {
1097
+ return QueryValidatorCommissionResponse.fromAmino(object.value);
1098
+ },
1099
+ toAminoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseAminoMsg {
1100
+ return {
1101
+ type: "cosmos-sdk/QueryValidatorCommissionResponse",
1102
+ value: QueryValidatorCommissionResponse.toAmino(message)
1103
+ };
1104
+ },
1105
+ fromProtoMsg(message: QueryValidatorCommissionResponseProtoMsg): QueryValidatorCommissionResponse {
1106
+ return QueryValidatorCommissionResponse.decode(message.value);
1107
+ },
1108
+ toProto(message: QueryValidatorCommissionResponse): Uint8Array {
1109
+ return QueryValidatorCommissionResponse.encode(message).finish();
1110
+ },
1111
+ toProtoMsg(message: QueryValidatorCommissionResponse): QueryValidatorCommissionResponseProtoMsg {
1112
+ return {
1113
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse",
1114
+ value: QueryValidatorCommissionResponse.encode(message).finish()
1115
+ };
1116
+ }
1117
+ };
1118
+ GlobalDecoderRegistry.register(QueryValidatorCommissionResponse.typeUrl, QueryValidatorCommissionResponse);
1119
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorCommissionResponse.aminoType, QueryValidatorCommissionResponse.typeUrl);
1120
+ function createBaseQueryValidatorSlashesRequest(): QueryValidatorSlashesRequest {
1121
+ return {
1122
+ validatorAddress: "",
1123
+ startingHeight: BigInt(0),
1124
+ endingHeight: BigInt(0),
1125
+ pagination: undefined
1126
+ };
1127
+ }
1128
+ export const QueryValidatorSlashesRequest = {
1129
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest",
1130
+ aminoType: "cosmos-sdk/QueryValidatorSlashesRequest",
1131
+ is(o: any): o is QueryValidatorSlashesRequest {
1132
+ return o && (o.$typeUrl === QueryValidatorSlashesRequest.typeUrl || typeof o.validatorAddress === "string" && typeof o.startingHeight === "bigint" && typeof o.endingHeight === "bigint");
1133
+ },
1134
+ isAmino(o: any): o is QueryValidatorSlashesRequestAmino {
1135
+ return o && (o.$typeUrl === QueryValidatorSlashesRequest.typeUrl || typeof o.validator_address === "string" && typeof o.starting_height === "bigint" && typeof o.ending_height === "bigint");
1136
+ },
1137
+ encode(message: QueryValidatorSlashesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1138
+ if (message.validatorAddress !== "") {
1139
+ writer.uint32(10).string(message.validatorAddress);
1140
+ }
1141
+ if (message.startingHeight !== BigInt(0)) {
1142
+ writer.uint32(16).uint64(message.startingHeight);
1143
+ }
1144
+ if (message.endingHeight !== BigInt(0)) {
1145
+ writer.uint32(24).uint64(message.endingHeight);
1146
+ }
1147
+ if (message.pagination !== undefined) {
1148
+ PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim();
1149
+ }
1150
+ return writer;
1151
+ },
1152
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesRequest {
1153
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1154
+ let end = length === undefined ? reader.len : reader.pos + length;
1155
+ const message = createBaseQueryValidatorSlashesRequest();
1156
+ while (reader.pos < end) {
1157
+ const tag = reader.uint32();
1158
+ switch (tag >>> 3) {
1159
+ case 1:
1160
+ message.validatorAddress = reader.string();
1161
+ break;
1162
+ case 2:
1163
+ message.startingHeight = reader.uint64();
1164
+ break;
1165
+ case 3:
1166
+ message.endingHeight = reader.uint64();
1167
+ break;
1168
+ case 4:
1169
+ message.pagination = PageRequest.decode(reader, reader.uint32());
1170
+ break;
1171
+ default:
1172
+ reader.skipType(tag & 7);
1173
+ break;
1174
+ }
1175
+ }
1176
+ return message;
1177
+ },
1178
+ fromPartial(object: DeepPartial<QueryValidatorSlashesRequest>): QueryValidatorSlashesRequest {
1179
+ const message = createBaseQueryValidatorSlashesRequest();
1180
+ message.validatorAddress = object.validatorAddress ?? "";
1181
+ message.startingHeight = object.startingHeight !== undefined && object.startingHeight !== null ? BigInt(object.startingHeight.toString()) : BigInt(0);
1182
+ message.endingHeight = object.endingHeight !== undefined && object.endingHeight !== null ? BigInt(object.endingHeight.toString()) : BigInt(0);
1183
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
1184
+ return message;
1185
+ },
1186
+ fromAmino(object: QueryValidatorSlashesRequestAmino): QueryValidatorSlashesRequest {
1187
+ const message = createBaseQueryValidatorSlashesRequest();
1188
+ if (object.validator_address !== undefined && object.validator_address !== null) {
1189
+ message.validatorAddress = object.validator_address;
1190
+ }
1191
+ if (object.starting_height !== undefined && object.starting_height !== null) {
1192
+ message.startingHeight = BigInt(object.starting_height);
1193
+ }
1194
+ if (object.ending_height !== undefined && object.ending_height !== null) {
1195
+ message.endingHeight = BigInt(object.ending_height);
1196
+ }
1197
+ if (object.pagination !== undefined && object.pagination !== null) {
1198
+ message.pagination = PageRequest.fromAmino(object.pagination);
1199
+ }
1200
+ return message;
1201
+ },
1202
+ toAmino(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAmino {
1203
+ const obj: any = {};
1204
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
1205
+ obj.starting_height = message.startingHeight !== BigInt(0) ? message.startingHeight?.toString() : undefined;
1206
+ obj.ending_height = message.endingHeight !== BigInt(0) ? message.endingHeight?.toString() : undefined;
1207
+ obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
1208
+ return obj;
1209
+ },
1210
+ fromAminoMsg(object: QueryValidatorSlashesRequestAminoMsg): QueryValidatorSlashesRequest {
1211
+ return QueryValidatorSlashesRequest.fromAmino(object.value);
1212
+ },
1213
+ toAminoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAminoMsg {
1214
+ return {
1215
+ type: "cosmos-sdk/QueryValidatorSlashesRequest",
1216
+ value: QueryValidatorSlashesRequest.toAmino(message)
1217
+ };
1218
+ },
1219
+ fromProtoMsg(message: QueryValidatorSlashesRequestProtoMsg): QueryValidatorSlashesRequest {
1220
+ return QueryValidatorSlashesRequest.decode(message.value);
1221
+ },
1222
+ toProto(message: QueryValidatorSlashesRequest): Uint8Array {
1223
+ return QueryValidatorSlashesRequest.encode(message).finish();
1224
+ },
1225
+ toProtoMsg(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestProtoMsg {
1226
+ return {
1227
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest",
1228
+ value: QueryValidatorSlashesRequest.encode(message).finish()
1229
+ };
1230
+ }
1231
+ };
1232
+ GlobalDecoderRegistry.register(QueryValidatorSlashesRequest.typeUrl, QueryValidatorSlashesRequest);
1233
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorSlashesRequest.aminoType, QueryValidatorSlashesRequest.typeUrl);
1234
+ function createBaseQueryValidatorSlashesResponse(): QueryValidatorSlashesResponse {
1235
+ return {
1236
+ slashes: [],
1237
+ pagination: undefined
1238
+ };
1239
+ }
1240
+ export const QueryValidatorSlashesResponse = {
1241
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse",
1242
+ aminoType: "cosmos-sdk/QueryValidatorSlashesResponse",
1243
+ is(o: any): o is QueryValidatorSlashesResponse {
1244
+ return o && (o.$typeUrl === QueryValidatorSlashesResponse.typeUrl || Array.isArray(o.slashes) && (!o.slashes.length || ValidatorSlashEvent.is(o.slashes[0])));
1245
+ },
1246
+ isAmino(o: any): o is QueryValidatorSlashesResponseAmino {
1247
+ return o && (o.$typeUrl === QueryValidatorSlashesResponse.typeUrl || Array.isArray(o.slashes) && (!o.slashes.length || ValidatorSlashEvent.isAmino(o.slashes[0])));
1248
+ },
1249
+ encode(message: QueryValidatorSlashesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1250
+ for (const v of message.slashes) {
1251
+ ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).ldelim();
1252
+ }
1253
+ if (message.pagination !== undefined) {
1254
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
1255
+ }
1256
+ return writer;
1257
+ },
1258
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesResponse {
1259
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1260
+ let end = length === undefined ? reader.len : reader.pos + length;
1261
+ const message = createBaseQueryValidatorSlashesResponse();
1262
+ while (reader.pos < end) {
1263
+ const tag = reader.uint32();
1264
+ switch (tag >>> 3) {
1265
+ case 1:
1266
+ message.slashes.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
1267
+ break;
1268
+ case 2:
1269
+ message.pagination = PageResponse.decode(reader, reader.uint32());
1270
+ break;
1271
+ default:
1272
+ reader.skipType(tag & 7);
1273
+ break;
1274
+ }
1275
+ }
1276
+ return message;
1277
+ },
1278
+ fromPartial(object: DeepPartial<QueryValidatorSlashesResponse>): QueryValidatorSlashesResponse {
1279
+ const message = createBaseQueryValidatorSlashesResponse();
1280
+ message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromPartial(e)) || [];
1281
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
1282
+ return message;
1283
+ },
1284
+ fromAmino(object: QueryValidatorSlashesResponseAmino): QueryValidatorSlashesResponse {
1285
+ const message = createBaseQueryValidatorSlashesResponse();
1286
+ message.slashes = object.slashes?.map(e => ValidatorSlashEvent.fromAmino(e)) || [];
1287
+ if (object.pagination !== undefined && object.pagination !== null) {
1288
+ message.pagination = PageResponse.fromAmino(object.pagination);
1289
+ }
1290
+ return message;
1291
+ },
1292
+ toAmino(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAmino {
1293
+ const obj: any = {};
1294
+ if (message.slashes) {
1295
+ obj.slashes = message.slashes.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined);
1296
+ } else {
1297
+ obj.slashes = message.slashes;
1298
+ }
1299
+ obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
1300
+ return obj;
1301
+ },
1302
+ fromAminoMsg(object: QueryValidatorSlashesResponseAminoMsg): QueryValidatorSlashesResponse {
1303
+ return QueryValidatorSlashesResponse.fromAmino(object.value);
1304
+ },
1305
+ toAminoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseAminoMsg {
1306
+ return {
1307
+ type: "cosmos-sdk/QueryValidatorSlashesResponse",
1308
+ value: QueryValidatorSlashesResponse.toAmino(message)
1309
+ };
1310
+ },
1311
+ fromProtoMsg(message: QueryValidatorSlashesResponseProtoMsg): QueryValidatorSlashesResponse {
1312
+ return QueryValidatorSlashesResponse.decode(message.value);
1313
+ },
1314
+ toProto(message: QueryValidatorSlashesResponse): Uint8Array {
1315
+ return QueryValidatorSlashesResponse.encode(message).finish();
1316
+ },
1317
+ toProtoMsg(message: QueryValidatorSlashesResponse): QueryValidatorSlashesResponseProtoMsg {
1318
+ return {
1319
+ typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse",
1320
+ value: QueryValidatorSlashesResponse.encode(message).finish()
1321
+ };
1322
+ }
1323
+ };
1324
+ GlobalDecoderRegistry.register(QueryValidatorSlashesResponse.typeUrl, QueryValidatorSlashesResponse);
1325
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryValidatorSlashesResponse.aminoType, QueryValidatorSlashesResponse.typeUrl);
1326
+ function createBaseQueryDelegationRewardsRequest(): QueryDelegationRewardsRequest {
1327
+ return {
1328
+ delegatorAddress: "",
1329
+ validatorAddress: ""
1330
+ };
1331
+ }
1332
+ export const QueryDelegationRewardsRequest = {
1333
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest",
1334
+ aminoType: "cosmos-sdk/QueryDelegationRewardsRequest",
1335
+ is(o: any): o is QueryDelegationRewardsRequest {
1336
+ return o && (o.$typeUrl === QueryDelegationRewardsRequest.typeUrl || typeof o.delegatorAddress === "string" && typeof o.validatorAddress === "string");
1337
+ },
1338
+ isAmino(o: any): o is QueryDelegationRewardsRequestAmino {
1339
+ return o && (o.$typeUrl === QueryDelegationRewardsRequest.typeUrl || typeof o.delegator_address === "string" && typeof o.validator_address === "string");
1340
+ },
1341
+ encode(message: QueryDelegationRewardsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1342
+ if (message.delegatorAddress !== "") {
1343
+ writer.uint32(10).string(message.delegatorAddress);
1344
+ }
1345
+ if (message.validatorAddress !== "") {
1346
+ writer.uint32(18).string(message.validatorAddress);
1347
+ }
1348
+ return writer;
1349
+ },
1350
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsRequest {
1351
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1352
+ let end = length === undefined ? reader.len : reader.pos + length;
1353
+ const message = createBaseQueryDelegationRewardsRequest();
1354
+ while (reader.pos < end) {
1355
+ const tag = reader.uint32();
1356
+ switch (tag >>> 3) {
1357
+ case 1:
1358
+ message.delegatorAddress = reader.string();
1359
+ break;
1360
+ case 2:
1361
+ message.validatorAddress = reader.string();
1362
+ break;
1363
+ default:
1364
+ reader.skipType(tag & 7);
1365
+ break;
1366
+ }
1367
+ }
1368
+ return message;
1369
+ },
1370
+ fromPartial(object: DeepPartial<QueryDelegationRewardsRequest>): QueryDelegationRewardsRequest {
1371
+ const message = createBaseQueryDelegationRewardsRequest();
1372
+ message.delegatorAddress = object.delegatorAddress ?? "";
1373
+ message.validatorAddress = object.validatorAddress ?? "";
1374
+ return message;
1375
+ },
1376
+ fromAmino(object: QueryDelegationRewardsRequestAmino): QueryDelegationRewardsRequest {
1377
+ const message = createBaseQueryDelegationRewardsRequest();
1378
+ if (object.delegator_address !== undefined && object.delegator_address !== null) {
1379
+ message.delegatorAddress = object.delegator_address;
1380
+ }
1381
+ if (object.validator_address !== undefined && object.validator_address !== null) {
1382
+ message.validatorAddress = object.validator_address;
1383
+ }
1384
+ return message;
1385
+ },
1386
+ toAmino(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAmino {
1387
+ const obj: any = {};
1388
+ obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
1389
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
1390
+ return obj;
1391
+ },
1392
+ fromAminoMsg(object: QueryDelegationRewardsRequestAminoMsg): QueryDelegationRewardsRequest {
1393
+ return QueryDelegationRewardsRequest.fromAmino(object.value);
1394
+ },
1395
+ toAminoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAminoMsg {
1396
+ return {
1397
+ type: "cosmos-sdk/QueryDelegationRewardsRequest",
1398
+ value: QueryDelegationRewardsRequest.toAmino(message)
1399
+ };
1400
+ },
1401
+ fromProtoMsg(message: QueryDelegationRewardsRequestProtoMsg): QueryDelegationRewardsRequest {
1402
+ return QueryDelegationRewardsRequest.decode(message.value);
1403
+ },
1404
+ toProto(message: QueryDelegationRewardsRequest): Uint8Array {
1405
+ return QueryDelegationRewardsRequest.encode(message).finish();
1406
+ },
1407
+ toProtoMsg(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestProtoMsg {
1408
+ return {
1409
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest",
1410
+ value: QueryDelegationRewardsRequest.encode(message).finish()
1411
+ };
1412
+ }
1413
+ };
1414
+ GlobalDecoderRegistry.register(QueryDelegationRewardsRequest.typeUrl, QueryDelegationRewardsRequest);
1415
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegationRewardsRequest.aminoType, QueryDelegationRewardsRequest.typeUrl);
1416
+ function createBaseQueryDelegationRewardsResponse(): QueryDelegationRewardsResponse {
1417
+ return {
1418
+ rewards: []
1419
+ };
1420
+ }
1421
+ export const QueryDelegationRewardsResponse = {
1422
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse",
1423
+ aminoType: "cosmos-sdk/QueryDelegationRewardsResponse",
1424
+ is(o: any): o is QueryDelegationRewardsResponse {
1425
+ return o && (o.$typeUrl === QueryDelegationRewardsResponse.typeUrl || Array.isArray(o.rewards) && (!o.rewards.length || DecCoin.is(o.rewards[0])));
1426
+ },
1427
+ isAmino(o: any): o is QueryDelegationRewardsResponseAmino {
1428
+ return o && (o.$typeUrl === QueryDelegationRewardsResponse.typeUrl || Array.isArray(o.rewards) && (!o.rewards.length || DecCoin.isAmino(o.rewards[0])));
1429
+ },
1430
+ encode(message: QueryDelegationRewardsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1431
+ for (const v of message.rewards) {
1432
+ DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
1433
+ }
1434
+ return writer;
1435
+ },
1436
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsResponse {
1437
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1438
+ let end = length === undefined ? reader.len : reader.pos + length;
1439
+ const message = createBaseQueryDelegationRewardsResponse();
1440
+ while (reader.pos < end) {
1441
+ const tag = reader.uint32();
1442
+ switch (tag >>> 3) {
1443
+ case 1:
1444
+ message.rewards.push(DecCoin.decode(reader, reader.uint32()));
1445
+ break;
1446
+ default:
1447
+ reader.skipType(tag & 7);
1448
+ break;
1449
+ }
1450
+ }
1451
+ return message;
1452
+ },
1453
+ fromPartial(object: DeepPartial<QueryDelegationRewardsResponse>): QueryDelegationRewardsResponse {
1454
+ const message = createBaseQueryDelegationRewardsResponse();
1455
+ message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || [];
1456
+ return message;
1457
+ },
1458
+ fromAmino(object: QueryDelegationRewardsResponseAmino): QueryDelegationRewardsResponse {
1459
+ const message = createBaseQueryDelegationRewardsResponse();
1460
+ message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || [];
1461
+ return message;
1462
+ },
1463
+ toAmino(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAmino {
1464
+ const obj: any = {};
1465
+ if (message.rewards) {
1466
+ obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined);
1467
+ } else {
1468
+ obj.rewards = message.rewards;
1469
+ }
1470
+ return obj;
1471
+ },
1472
+ fromAminoMsg(object: QueryDelegationRewardsResponseAminoMsg): QueryDelegationRewardsResponse {
1473
+ return QueryDelegationRewardsResponse.fromAmino(object.value);
1474
+ },
1475
+ toAminoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseAminoMsg {
1476
+ return {
1477
+ type: "cosmos-sdk/QueryDelegationRewardsResponse",
1478
+ value: QueryDelegationRewardsResponse.toAmino(message)
1479
+ };
1480
+ },
1481
+ fromProtoMsg(message: QueryDelegationRewardsResponseProtoMsg): QueryDelegationRewardsResponse {
1482
+ return QueryDelegationRewardsResponse.decode(message.value);
1483
+ },
1484
+ toProto(message: QueryDelegationRewardsResponse): Uint8Array {
1485
+ return QueryDelegationRewardsResponse.encode(message).finish();
1486
+ },
1487
+ toProtoMsg(message: QueryDelegationRewardsResponse): QueryDelegationRewardsResponseProtoMsg {
1488
+ return {
1489
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse",
1490
+ value: QueryDelegationRewardsResponse.encode(message).finish()
1491
+ };
1492
+ }
1493
+ };
1494
+ GlobalDecoderRegistry.register(QueryDelegationRewardsResponse.typeUrl, QueryDelegationRewardsResponse);
1495
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegationRewardsResponse.aminoType, QueryDelegationRewardsResponse.typeUrl);
1496
+ function createBaseQueryDelegationTotalRewardsRequest(): QueryDelegationTotalRewardsRequest {
1497
+ return {
1498
+ delegatorAddress: ""
1499
+ };
1500
+ }
1501
+ export const QueryDelegationTotalRewardsRequest = {
1502
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest",
1503
+ aminoType: "cosmos-sdk/QueryDelegationTotalRewardsRequest",
1504
+ is(o: any): o is QueryDelegationTotalRewardsRequest {
1505
+ return o && (o.$typeUrl === QueryDelegationTotalRewardsRequest.typeUrl || typeof o.delegatorAddress === "string");
1506
+ },
1507
+ isAmino(o: any): o is QueryDelegationTotalRewardsRequestAmino {
1508
+ return o && (o.$typeUrl === QueryDelegationTotalRewardsRequest.typeUrl || typeof o.delegator_address === "string");
1509
+ },
1510
+ encode(message: QueryDelegationTotalRewardsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1511
+ if (message.delegatorAddress !== "") {
1512
+ writer.uint32(10).string(message.delegatorAddress);
1513
+ }
1514
+ return writer;
1515
+ },
1516
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest {
1517
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1518
+ let end = length === undefined ? reader.len : reader.pos + length;
1519
+ const message = createBaseQueryDelegationTotalRewardsRequest();
1520
+ while (reader.pos < end) {
1521
+ const tag = reader.uint32();
1522
+ switch (tag >>> 3) {
1523
+ case 1:
1524
+ message.delegatorAddress = reader.string();
1525
+ break;
1526
+ default:
1527
+ reader.skipType(tag & 7);
1528
+ break;
1529
+ }
1530
+ }
1531
+ return message;
1532
+ },
1533
+ fromPartial(object: DeepPartial<QueryDelegationTotalRewardsRequest>): QueryDelegationTotalRewardsRequest {
1534
+ const message = createBaseQueryDelegationTotalRewardsRequest();
1535
+ message.delegatorAddress = object.delegatorAddress ?? "";
1536
+ return message;
1537
+ },
1538
+ fromAmino(object: QueryDelegationTotalRewardsRequestAmino): QueryDelegationTotalRewardsRequest {
1539
+ const message = createBaseQueryDelegationTotalRewardsRequest();
1540
+ if (object.delegator_address !== undefined && object.delegator_address !== null) {
1541
+ message.delegatorAddress = object.delegator_address;
1542
+ }
1543
+ return message;
1544
+ },
1545
+ toAmino(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAmino {
1546
+ const obj: any = {};
1547
+ obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
1548
+ return obj;
1549
+ },
1550
+ fromAminoMsg(object: QueryDelegationTotalRewardsRequestAminoMsg): QueryDelegationTotalRewardsRequest {
1551
+ return QueryDelegationTotalRewardsRequest.fromAmino(object.value);
1552
+ },
1553
+ toAminoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAminoMsg {
1554
+ return {
1555
+ type: "cosmos-sdk/QueryDelegationTotalRewardsRequest",
1556
+ value: QueryDelegationTotalRewardsRequest.toAmino(message)
1557
+ };
1558
+ },
1559
+ fromProtoMsg(message: QueryDelegationTotalRewardsRequestProtoMsg): QueryDelegationTotalRewardsRequest {
1560
+ return QueryDelegationTotalRewardsRequest.decode(message.value);
1561
+ },
1562
+ toProto(message: QueryDelegationTotalRewardsRequest): Uint8Array {
1563
+ return QueryDelegationTotalRewardsRequest.encode(message).finish();
1564
+ },
1565
+ toProtoMsg(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestProtoMsg {
1566
+ return {
1567
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest",
1568
+ value: QueryDelegationTotalRewardsRequest.encode(message).finish()
1569
+ };
1570
+ }
1571
+ };
1572
+ GlobalDecoderRegistry.register(QueryDelegationTotalRewardsRequest.typeUrl, QueryDelegationTotalRewardsRequest);
1573
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegationTotalRewardsRequest.aminoType, QueryDelegationTotalRewardsRequest.typeUrl);
1574
+ function createBaseQueryDelegationTotalRewardsResponse(): QueryDelegationTotalRewardsResponse {
1575
+ return {
1576
+ rewards: [],
1577
+ total: []
1578
+ };
1579
+ }
1580
+ export const QueryDelegationTotalRewardsResponse = {
1581
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse",
1582
+ aminoType: "cosmos-sdk/QueryDelegationTotalRewardsResponse",
1583
+ is(o: any): o is QueryDelegationTotalRewardsResponse {
1584
+ return o && (o.$typeUrl === QueryDelegationTotalRewardsResponse.typeUrl || Array.isArray(o.rewards) && (!o.rewards.length || DelegationDelegatorReward.is(o.rewards[0])) && Array.isArray(o.total) && (!o.total.length || DecCoin.is(o.total[0])));
1585
+ },
1586
+ isAmino(o: any): o is QueryDelegationTotalRewardsResponseAmino {
1587
+ return o && (o.$typeUrl === QueryDelegationTotalRewardsResponse.typeUrl || Array.isArray(o.rewards) && (!o.rewards.length || DelegationDelegatorReward.isAmino(o.rewards[0])) && Array.isArray(o.total) && (!o.total.length || DecCoin.isAmino(o.total[0])));
1588
+ },
1589
+ encode(message: QueryDelegationTotalRewardsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1590
+ for (const v of message.rewards) {
1591
+ DelegationDelegatorReward.encode(v!, writer.uint32(10).fork()).ldelim();
1592
+ }
1593
+ for (const v of message.total) {
1594
+ DecCoin.encode(v!, writer.uint32(18).fork()).ldelim();
1595
+ }
1596
+ return writer;
1597
+ },
1598
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse {
1599
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1600
+ let end = length === undefined ? reader.len : reader.pos + length;
1601
+ const message = createBaseQueryDelegationTotalRewardsResponse();
1602
+ while (reader.pos < end) {
1603
+ const tag = reader.uint32();
1604
+ switch (tag >>> 3) {
1605
+ case 1:
1606
+ message.rewards.push(DelegationDelegatorReward.decode(reader, reader.uint32()));
1607
+ break;
1608
+ case 2:
1609
+ message.total.push(DecCoin.decode(reader, reader.uint32()));
1610
+ break;
1611
+ default:
1612
+ reader.skipType(tag & 7);
1613
+ break;
1614
+ }
1615
+ }
1616
+ return message;
1617
+ },
1618
+ fromPartial(object: DeepPartial<QueryDelegationTotalRewardsResponse>): QueryDelegationTotalRewardsResponse {
1619
+ const message = createBaseQueryDelegationTotalRewardsResponse();
1620
+ message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromPartial(e)) || [];
1621
+ message.total = object.total?.map(e => DecCoin.fromPartial(e)) || [];
1622
+ return message;
1623
+ },
1624
+ fromAmino(object: QueryDelegationTotalRewardsResponseAmino): QueryDelegationTotalRewardsResponse {
1625
+ const message = createBaseQueryDelegationTotalRewardsResponse();
1626
+ message.rewards = object.rewards?.map(e => DelegationDelegatorReward.fromAmino(e)) || [];
1627
+ message.total = object.total?.map(e => DecCoin.fromAmino(e)) || [];
1628
+ return message;
1629
+ },
1630
+ toAmino(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAmino {
1631
+ const obj: any = {};
1632
+ if (message.rewards) {
1633
+ obj.rewards = message.rewards.map(e => e ? DelegationDelegatorReward.toAmino(e) : undefined);
1634
+ } else {
1635
+ obj.rewards = message.rewards;
1636
+ }
1637
+ if (message.total) {
1638
+ obj.total = message.total.map(e => e ? DecCoin.toAmino(e) : undefined);
1639
+ } else {
1640
+ obj.total = message.total;
1641
+ }
1642
+ return obj;
1643
+ },
1644
+ fromAminoMsg(object: QueryDelegationTotalRewardsResponseAminoMsg): QueryDelegationTotalRewardsResponse {
1645
+ return QueryDelegationTotalRewardsResponse.fromAmino(object.value);
1646
+ },
1647
+ toAminoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseAminoMsg {
1648
+ return {
1649
+ type: "cosmos-sdk/QueryDelegationTotalRewardsResponse",
1650
+ value: QueryDelegationTotalRewardsResponse.toAmino(message)
1651
+ };
1652
+ },
1653
+ fromProtoMsg(message: QueryDelegationTotalRewardsResponseProtoMsg): QueryDelegationTotalRewardsResponse {
1654
+ return QueryDelegationTotalRewardsResponse.decode(message.value);
1655
+ },
1656
+ toProto(message: QueryDelegationTotalRewardsResponse): Uint8Array {
1657
+ return QueryDelegationTotalRewardsResponse.encode(message).finish();
1658
+ },
1659
+ toProtoMsg(message: QueryDelegationTotalRewardsResponse): QueryDelegationTotalRewardsResponseProtoMsg {
1660
+ return {
1661
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse",
1662
+ value: QueryDelegationTotalRewardsResponse.encode(message).finish()
1663
+ };
1664
+ }
1665
+ };
1666
+ GlobalDecoderRegistry.register(QueryDelegationTotalRewardsResponse.typeUrl, QueryDelegationTotalRewardsResponse);
1667
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegationTotalRewardsResponse.aminoType, QueryDelegationTotalRewardsResponse.typeUrl);
1668
+ function createBaseQueryDelegatorValidatorsRequest(): QueryDelegatorValidatorsRequest {
1669
+ return {
1670
+ delegatorAddress: ""
1671
+ };
1672
+ }
1673
+ export const QueryDelegatorValidatorsRequest = {
1674
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest",
1675
+ aminoType: "cosmos-sdk/QueryDelegatorValidatorsRequest",
1676
+ is(o: any): o is QueryDelegatorValidatorsRequest {
1677
+ return o && (o.$typeUrl === QueryDelegatorValidatorsRequest.typeUrl || typeof o.delegatorAddress === "string");
1678
+ },
1679
+ isAmino(o: any): o is QueryDelegatorValidatorsRequestAmino {
1680
+ return o && (o.$typeUrl === QueryDelegatorValidatorsRequest.typeUrl || typeof o.delegator_address === "string");
1681
+ },
1682
+ encode(message: QueryDelegatorValidatorsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1683
+ if (message.delegatorAddress !== "") {
1684
+ writer.uint32(10).string(message.delegatorAddress);
1685
+ }
1686
+ return writer;
1687
+ },
1688
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest {
1689
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1690
+ let end = length === undefined ? reader.len : reader.pos + length;
1691
+ const message = createBaseQueryDelegatorValidatorsRequest();
1692
+ while (reader.pos < end) {
1693
+ const tag = reader.uint32();
1694
+ switch (tag >>> 3) {
1695
+ case 1:
1696
+ message.delegatorAddress = reader.string();
1697
+ break;
1698
+ default:
1699
+ reader.skipType(tag & 7);
1700
+ break;
1701
+ }
1702
+ }
1703
+ return message;
1704
+ },
1705
+ fromPartial(object: DeepPartial<QueryDelegatorValidatorsRequest>): QueryDelegatorValidatorsRequest {
1706
+ const message = createBaseQueryDelegatorValidatorsRequest();
1707
+ message.delegatorAddress = object.delegatorAddress ?? "";
1708
+ return message;
1709
+ },
1710
+ fromAmino(object: QueryDelegatorValidatorsRequestAmino): QueryDelegatorValidatorsRequest {
1711
+ const message = createBaseQueryDelegatorValidatorsRequest();
1712
+ if (object.delegator_address !== undefined && object.delegator_address !== null) {
1713
+ message.delegatorAddress = object.delegator_address;
1714
+ }
1715
+ return message;
1716
+ },
1717
+ toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino {
1718
+ const obj: any = {};
1719
+ obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
1720
+ return obj;
1721
+ },
1722
+ fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest {
1723
+ return QueryDelegatorValidatorsRequest.fromAmino(object.value);
1724
+ },
1725
+ toAminoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAminoMsg {
1726
+ return {
1727
+ type: "cosmos-sdk/QueryDelegatorValidatorsRequest",
1728
+ value: QueryDelegatorValidatorsRequest.toAmino(message)
1729
+ };
1730
+ },
1731
+ fromProtoMsg(message: QueryDelegatorValidatorsRequestProtoMsg): QueryDelegatorValidatorsRequest {
1732
+ return QueryDelegatorValidatorsRequest.decode(message.value);
1733
+ },
1734
+ toProto(message: QueryDelegatorValidatorsRequest): Uint8Array {
1735
+ return QueryDelegatorValidatorsRequest.encode(message).finish();
1736
+ },
1737
+ toProtoMsg(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestProtoMsg {
1738
+ return {
1739
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest",
1740
+ value: QueryDelegatorValidatorsRequest.encode(message).finish()
1741
+ };
1742
+ }
1743
+ };
1744
+ GlobalDecoderRegistry.register(QueryDelegatorValidatorsRequest.typeUrl, QueryDelegatorValidatorsRequest);
1745
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorValidatorsRequest.aminoType, QueryDelegatorValidatorsRequest.typeUrl);
1746
+ function createBaseQueryDelegatorValidatorsResponse(): QueryDelegatorValidatorsResponse {
1747
+ return {
1748
+ validators: []
1749
+ };
1750
+ }
1751
+ export const QueryDelegatorValidatorsResponse = {
1752
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse",
1753
+ aminoType: "cosmos-sdk/QueryDelegatorValidatorsResponse",
1754
+ is(o: any): o is QueryDelegatorValidatorsResponse {
1755
+ return o && (o.$typeUrl === QueryDelegatorValidatorsResponse.typeUrl || Array.isArray(o.validators) && (!o.validators.length || typeof o.validators[0] === "string"));
1756
+ },
1757
+ isAmino(o: any): o is QueryDelegatorValidatorsResponseAmino {
1758
+ return o && (o.$typeUrl === QueryDelegatorValidatorsResponse.typeUrl || Array.isArray(o.validators) && (!o.validators.length || typeof o.validators[0] === "string"));
1759
+ },
1760
+ encode(message: QueryDelegatorValidatorsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1761
+ for (const v of message.validators) {
1762
+ writer.uint32(10).string(v!);
1763
+ }
1764
+ return writer;
1765
+ },
1766
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse {
1767
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1768
+ let end = length === undefined ? reader.len : reader.pos + length;
1769
+ const message = createBaseQueryDelegatorValidatorsResponse();
1770
+ while (reader.pos < end) {
1771
+ const tag = reader.uint32();
1772
+ switch (tag >>> 3) {
1773
+ case 1:
1774
+ message.validators.push(reader.string());
1775
+ break;
1776
+ default:
1777
+ reader.skipType(tag & 7);
1778
+ break;
1779
+ }
1780
+ }
1781
+ return message;
1782
+ },
1783
+ fromPartial(object: DeepPartial<QueryDelegatorValidatorsResponse>): QueryDelegatorValidatorsResponse {
1784
+ const message = createBaseQueryDelegatorValidatorsResponse();
1785
+ message.validators = object.validators?.map(e => e) || [];
1786
+ return message;
1787
+ },
1788
+ fromAmino(object: QueryDelegatorValidatorsResponseAmino): QueryDelegatorValidatorsResponse {
1789
+ const message = createBaseQueryDelegatorValidatorsResponse();
1790
+ message.validators = object.validators?.map(e => e) || [];
1791
+ return message;
1792
+ },
1793
+ toAmino(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAmino {
1794
+ const obj: any = {};
1795
+ if (message.validators) {
1796
+ obj.validators = message.validators.map(e => e);
1797
+ } else {
1798
+ obj.validators = message.validators;
1799
+ }
1800
+ return obj;
1801
+ },
1802
+ fromAminoMsg(object: QueryDelegatorValidatorsResponseAminoMsg): QueryDelegatorValidatorsResponse {
1803
+ return QueryDelegatorValidatorsResponse.fromAmino(object.value);
1804
+ },
1805
+ toAminoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseAminoMsg {
1806
+ return {
1807
+ type: "cosmos-sdk/QueryDelegatorValidatorsResponse",
1808
+ value: QueryDelegatorValidatorsResponse.toAmino(message)
1809
+ };
1810
+ },
1811
+ fromProtoMsg(message: QueryDelegatorValidatorsResponseProtoMsg): QueryDelegatorValidatorsResponse {
1812
+ return QueryDelegatorValidatorsResponse.decode(message.value);
1813
+ },
1814
+ toProto(message: QueryDelegatorValidatorsResponse): Uint8Array {
1815
+ return QueryDelegatorValidatorsResponse.encode(message).finish();
1816
+ },
1817
+ toProtoMsg(message: QueryDelegatorValidatorsResponse): QueryDelegatorValidatorsResponseProtoMsg {
1818
+ return {
1819
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse",
1820
+ value: QueryDelegatorValidatorsResponse.encode(message).finish()
1821
+ };
1822
+ }
1823
+ };
1824
+ GlobalDecoderRegistry.register(QueryDelegatorValidatorsResponse.typeUrl, QueryDelegatorValidatorsResponse);
1825
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorValidatorsResponse.aminoType, QueryDelegatorValidatorsResponse.typeUrl);
1826
+ function createBaseQueryDelegatorWithdrawAddressRequest(): QueryDelegatorWithdrawAddressRequest {
1827
+ return {
1828
+ delegatorAddress: ""
1829
+ };
1830
+ }
1831
+ export const QueryDelegatorWithdrawAddressRequest = {
1832
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest",
1833
+ aminoType: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest",
1834
+ is(o: any): o is QueryDelegatorWithdrawAddressRequest {
1835
+ return o && (o.$typeUrl === QueryDelegatorWithdrawAddressRequest.typeUrl || typeof o.delegatorAddress === "string");
1836
+ },
1837
+ isAmino(o: any): o is QueryDelegatorWithdrawAddressRequestAmino {
1838
+ return o && (o.$typeUrl === QueryDelegatorWithdrawAddressRequest.typeUrl || typeof o.delegator_address === "string");
1839
+ },
1840
+ encode(message: QueryDelegatorWithdrawAddressRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1841
+ if (message.delegatorAddress !== "") {
1842
+ writer.uint32(10).string(message.delegatorAddress);
1843
+ }
1844
+ return writer;
1845
+ },
1846
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest {
1847
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1848
+ let end = length === undefined ? reader.len : reader.pos + length;
1849
+ const message = createBaseQueryDelegatorWithdrawAddressRequest();
1850
+ while (reader.pos < end) {
1851
+ const tag = reader.uint32();
1852
+ switch (tag >>> 3) {
1853
+ case 1:
1854
+ message.delegatorAddress = reader.string();
1855
+ break;
1856
+ default:
1857
+ reader.skipType(tag & 7);
1858
+ break;
1859
+ }
1860
+ }
1861
+ return message;
1862
+ },
1863
+ fromPartial(object: DeepPartial<QueryDelegatorWithdrawAddressRequest>): QueryDelegatorWithdrawAddressRequest {
1864
+ const message = createBaseQueryDelegatorWithdrawAddressRequest();
1865
+ message.delegatorAddress = object.delegatorAddress ?? "";
1866
+ return message;
1867
+ },
1868
+ fromAmino(object: QueryDelegatorWithdrawAddressRequestAmino): QueryDelegatorWithdrawAddressRequest {
1869
+ const message = createBaseQueryDelegatorWithdrawAddressRequest();
1870
+ if (object.delegator_address !== undefined && object.delegator_address !== null) {
1871
+ message.delegatorAddress = object.delegator_address;
1872
+ }
1873
+ return message;
1874
+ },
1875
+ toAmino(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAmino {
1876
+ const obj: any = {};
1877
+ obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
1878
+ return obj;
1879
+ },
1880
+ fromAminoMsg(object: QueryDelegatorWithdrawAddressRequestAminoMsg): QueryDelegatorWithdrawAddressRequest {
1881
+ return QueryDelegatorWithdrawAddressRequest.fromAmino(object.value);
1882
+ },
1883
+ toAminoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAminoMsg {
1884
+ return {
1885
+ type: "cosmos-sdk/QueryDelegatorWithdrawAddressRequest",
1886
+ value: QueryDelegatorWithdrawAddressRequest.toAmino(message)
1887
+ };
1888
+ },
1889
+ fromProtoMsg(message: QueryDelegatorWithdrawAddressRequestProtoMsg): QueryDelegatorWithdrawAddressRequest {
1890
+ return QueryDelegatorWithdrawAddressRequest.decode(message.value);
1891
+ },
1892
+ toProto(message: QueryDelegatorWithdrawAddressRequest): Uint8Array {
1893
+ return QueryDelegatorWithdrawAddressRequest.encode(message).finish();
1894
+ },
1895
+ toProtoMsg(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestProtoMsg {
1896
+ return {
1897
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest",
1898
+ value: QueryDelegatorWithdrawAddressRequest.encode(message).finish()
1899
+ };
1900
+ }
1901
+ };
1902
+ GlobalDecoderRegistry.register(QueryDelegatorWithdrawAddressRequest.typeUrl, QueryDelegatorWithdrawAddressRequest);
1903
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorWithdrawAddressRequest.aminoType, QueryDelegatorWithdrawAddressRequest.typeUrl);
1904
+ function createBaseQueryDelegatorWithdrawAddressResponse(): QueryDelegatorWithdrawAddressResponse {
1905
+ return {
1906
+ withdrawAddress: ""
1907
+ };
1908
+ }
1909
+ export const QueryDelegatorWithdrawAddressResponse = {
1910
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse",
1911
+ aminoType: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse",
1912
+ is(o: any): o is QueryDelegatorWithdrawAddressResponse {
1913
+ return o && (o.$typeUrl === QueryDelegatorWithdrawAddressResponse.typeUrl || typeof o.withdrawAddress === "string");
1914
+ },
1915
+ isAmino(o: any): o is QueryDelegatorWithdrawAddressResponseAmino {
1916
+ return o && (o.$typeUrl === QueryDelegatorWithdrawAddressResponse.typeUrl || typeof o.withdraw_address === "string");
1917
+ },
1918
+ encode(message: QueryDelegatorWithdrawAddressResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1919
+ if (message.withdrawAddress !== "") {
1920
+ writer.uint32(10).string(message.withdrawAddress);
1921
+ }
1922
+ return writer;
1923
+ },
1924
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse {
1925
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1926
+ let end = length === undefined ? reader.len : reader.pos + length;
1927
+ const message = createBaseQueryDelegatorWithdrawAddressResponse();
1928
+ while (reader.pos < end) {
1929
+ const tag = reader.uint32();
1930
+ switch (tag >>> 3) {
1931
+ case 1:
1932
+ message.withdrawAddress = reader.string();
1933
+ break;
1934
+ default:
1935
+ reader.skipType(tag & 7);
1936
+ break;
1937
+ }
1938
+ }
1939
+ return message;
1940
+ },
1941
+ fromPartial(object: DeepPartial<QueryDelegatorWithdrawAddressResponse>): QueryDelegatorWithdrawAddressResponse {
1942
+ const message = createBaseQueryDelegatorWithdrawAddressResponse();
1943
+ message.withdrawAddress = object.withdrawAddress ?? "";
1944
+ return message;
1945
+ },
1946
+ fromAmino(object: QueryDelegatorWithdrawAddressResponseAmino): QueryDelegatorWithdrawAddressResponse {
1947
+ const message = createBaseQueryDelegatorWithdrawAddressResponse();
1948
+ if (object.withdraw_address !== undefined && object.withdraw_address !== null) {
1949
+ message.withdrawAddress = object.withdraw_address;
1950
+ }
1951
+ return message;
1952
+ },
1953
+ toAmino(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAmino {
1954
+ const obj: any = {};
1955
+ obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress;
1956
+ return obj;
1957
+ },
1958
+ fromAminoMsg(object: QueryDelegatorWithdrawAddressResponseAminoMsg): QueryDelegatorWithdrawAddressResponse {
1959
+ return QueryDelegatorWithdrawAddressResponse.fromAmino(object.value);
1960
+ },
1961
+ toAminoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAminoMsg {
1962
+ return {
1963
+ type: "cosmos-sdk/QueryDelegatorWithdrawAddressResponse",
1964
+ value: QueryDelegatorWithdrawAddressResponse.toAmino(message)
1965
+ };
1966
+ },
1967
+ fromProtoMsg(message: QueryDelegatorWithdrawAddressResponseProtoMsg): QueryDelegatorWithdrawAddressResponse {
1968
+ return QueryDelegatorWithdrawAddressResponse.decode(message.value);
1969
+ },
1970
+ toProto(message: QueryDelegatorWithdrawAddressResponse): Uint8Array {
1971
+ return QueryDelegatorWithdrawAddressResponse.encode(message).finish();
1972
+ },
1973
+ toProtoMsg(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseProtoMsg {
1974
+ return {
1975
+ typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse",
1976
+ value: QueryDelegatorWithdrawAddressResponse.encode(message).finish()
1977
+ };
1978
+ }
1979
+ };
1980
+ GlobalDecoderRegistry.register(QueryDelegatorWithdrawAddressResponse.typeUrl, QueryDelegatorWithdrawAddressResponse);
1981
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryDelegatorWithdrawAddressResponse.aminoType, QueryDelegatorWithdrawAddressResponse.typeUrl);
1982
+ function createBaseQueryCommunityPoolRequest(): QueryCommunityPoolRequest {
1983
+ return {};
1984
+ }
1985
+ export const QueryCommunityPoolRequest = {
1986
+ typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest",
1987
+ aminoType: "cosmos-sdk/QueryCommunityPoolRequest",
1988
+ is(o: any): o is QueryCommunityPoolRequest {
1989
+ return o && o.$typeUrl === QueryCommunityPoolRequest.typeUrl;
1990
+ },
1991
+ isAmino(o: any): o is QueryCommunityPoolRequestAmino {
1992
+ return o && o.$typeUrl === QueryCommunityPoolRequest.typeUrl;
1993
+ },
1994
+ encode(_: QueryCommunityPoolRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1995
+ return writer;
1996
+ },
1997
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolRequest {
1998
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1999
+ let end = length === undefined ? reader.len : reader.pos + length;
2000
+ const message = createBaseQueryCommunityPoolRequest();
2001
+ while (reader.pos < end) {
2002
+ const tag = reader.uint32();
2003
+ switch (tag >>> 3) {
2004
+ default:
2005
+ reader.skipType(tag & 7);
2006
+ break;
2007
+ }
2008
+ }
2009
+ return message;
2010
+ },
2011
+ fromPartial(_: DeepPartial<QueryCommunityPoolRequest>): QueryCommunityPoolRequest {
2012
+ const message = createBaseQueryCommunityPoolRequest();
2013
+ return message;
2014
+ },
2015
+ fromAmino(_: QueryCommunityPoolRequestAmino): QueryCommunityPoolRequest {
2016
+ const message = createBaseQueryCommunityPoolRequest();
2017
+ return message;
2018
+ },
2019
+ toAmino(_: QueryCommunityPoolRequest): QueryCommunityPoolRequestAmino {
2020
+ const obj: any = {};
2021
+ return obj;
2022
+ },
2023
+ fromAminoMsg(object: QueryCommunityPoolRequestAminoMsg): QueryCommunityPoolRequest {
2024
+ return QueryCommunityPoolRequest.fromAmino(object.value);
2025
+ },
2026
+ toAminoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestAminoMsg {
2027
+ return {
2028
+ type: "cosmos-sdk/QueryCommunityPoolRequest",
2029
+ value: QueryCommunityPoolRequest.toAmino(message)
2030
+ };
2031
+ },
2032
+ fromProtoMsg(message: QueryCommunityPoolRequestProtoMsg): QueryCommunityPoolRequest {
2033
+ return QueryCommunityPoolRequest.decode(message.value);
2034
+ },
2035
+ toProto(message: QueryCommunityPoolRequest): Uint8Array {
2036
+ return QueryCommunityPoolRequest.encode(message).finish();
2037
+ },
2038
+ toProtoMsg(message: QueryCommunityPoolRequest): QueryCommunityPoolRequestProtoMsg {
2039
+ return {
2040
+ typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest",
2041
+ value: QueryCommunityPoolRequest.encode(message).finish()
2042
+ };
2043
+ }
2044
+ };
2045
+ GlobalDecoderRegistry.register(QueryCommunityPoolRequest.typeUrl, QueryCommunityPoolRequest);
2046
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryCommunityPoolRequest.aminoType, QueryCommunityPoolRequest.typeUrl);
2047
+ function createBaseQueryCommunityPoolResponse(): QueryCommunityPoolResponse {
2048
+ return {
2049
+ pool: []
2050
+ };
2051
+ }
2052
+ export const QueryCommunityPoolResponse = {
2053
+ typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse",
2054
+ aminoType: "cosmos-sdk/QueryCommunityPoolResponse",
2055
+ is(o: any): o is QueryCommunityPoolResponse {
2056
+ return o && (o.$typeUrl === QueryCommunityPoolResponse.typeUrl || Array.isArray(o.pool) && (!o.pool.length || DecCoin.is(o.pool[0])));
2057
+ },
2058
+ isAmino(o: any): o is QueryCommunityPoolResponseAmino {
2059
+ return o && (o.$typeUrl === QueryCommunityPoolResponse.typeUrl || Array.isArray(o.pool) && (!o.pool.length || DecCoin.isAmino(o.pool[0])));
2060
+ },
2061
+ encode(message: QueryCommunityPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2062
+ for (const v of message.pool) {
2063
+ DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
2064
+ }
2065
+ return writer;
2066
+ },
2067
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolResponse {
2068
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2069
+ let end = length === undefined ? reader.len : reader.pos + length;
2070
+ const message = createBaseQueryCommunityPoolResponse();
2071
+ while (reader.pos < end) {
2072
+ const tag = reader.uint32();
2073
+ switch (tag >>> 3) {
2074
+ case 1:
2075
+ message.pool.push(DecCoin.decode(reader, reader.uint32()));
2076
+ break;
2077
+ default:
2078
+ reader.skipType(tag & 7);
2079
+ break;
2080
+ }
2081
+ }
2082
+ return message;
2083
+ },
2084
+ fromPartial(object: DeepPartial<QueryCommunityPoolResponse>): QueryCommunityPoolResponse {
2085
+ const message = createBaseQueryCommunityPoolResponse();
2086
+ message.pool = object.pool?.map(e => DecCoin.fromPartial(e)) || [];
2087
+ return message;
2088
+ },
2089
+ fromAmino(object: QueryCommunityPoolResponseAmino): QueryCommunityPoolResponse {
2090
+ const message = createBaseQueryCommunityPoolResponse();
2091
+ message.pool = object.pool?.map(e => DecCoin.fromAmino(e)) || [];
2092
+ return message;
2093
+ },
2094
+ toAmino(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAmino {
2095
+ const obj: any = {};
2096
+ if (message.pool) {
2097
+ obj.pool = message.pool.map(e => e ? DecCoin.toAmino(e) : undefined);
2098
+ } else {
2099
+ obj.pool = message.pool;
2100
+ }
2101
+ return obj;
2102
+ },
2103
+ fromAminoMsg(object: QueryCommunityPoolResponseAminoMsg): QueryCommunityPoolResponse {
2104
+ return QueryCommunityPoolResponse.fromAmino(object.value);
2105
+ },
2106
+ toAminoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseAminoMsg {
2107
+ return {
2108
+ type: "cosmos-sdk/QueryCommunityPoolResponse",
2109
+ value: QueryCommunityPoolResponse.toAmino(message)
2110
+ };
2111
+ },
2112
+ fromProtoMsg(message: QueryCommunityPoolResponseProtoMsg): QueryCommunityPoolResponse {
2113
+ return QueryCommunityPoolResponse.decode(message.value);
2114
+ },
2115
+ toProto(message: QueryCommunityPoolResponse): Uint8Array {
2116
+ return QueryCommunityPoolResponse.encode(message).finish();
2117
+ },
2118
+ toProtoMsg(message: QueryCommunityPoolResponse): QueryCommunityPoolResponseProtoMsg {
2119
+ return {
2120
+ typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse",
2121
+ value: QueryCommunityPoolResponse.encode(message).finish()
2122
+ };
2123
+ }
2124
+ };
2125
+ GlobalDecoderRegistry.register(QueryCommunityPoolResponse.typeUrl, QueryCommunityPoolResponse);
2126
+ GlobalDecoderRegistry.registerAminoProtoMapping(QueryCommunityPoolResponse.aminoType, QueryCommunityPoolResponse.typeUrl);