decentralcardgame-cardchain-client-ts 0.0.7 → 0.0.8

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 (483) hide show
  1. package/DecentralCardGame.cardchain.cardchain/index.js +5 -0
  2. package/DecentralCardGame.cardchain.cardchain/module.js +1046 -0
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +85 -0
  4. package/DecentralCardGame.cardchain.cardchain/rest.js +396 -0
  5. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +562 -0
  6. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/collection.js +365 -0
  7. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/collection_proposal.js +93 -0
  8. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.js +102 -0
  9. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +350 -0
  10. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +254 -0
  11. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.js +88 -0
  12. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.js +210 -0
  13. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.js +67 -0
  14. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.js +73 -0
  15. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +275 -0
  16. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +1980 -0
  17. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.js +85 -0
  18. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.js +148 -0
  19. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.js +93 -0
  20. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +4294 -0
  21. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +496 -0
  22. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/vote_right.js +84 -0
  23. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting_result.js +127 -0
  24. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting_results.js +148 -0
  25. package/DecentralCardGame.cardchain.cardchain/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  26. package/DecentralCardGame.cardchain.cardchain/types/cosmos/base/v1beta1/coin.js +192 -0
  27. package/DecentralCardGame.cardchain.cardchain/types/cosmos_proto/cosmos.js +171 -0
  28. package/DecentralCardGame.cardchain.cardchain/types/gogoproto/gogo.js +2 -0
  29. package/DecentralCardGame.cardchain.cardchain/types/google/api/annotations.js +2 -0
  30. package/DecentralCardGame.cardchain.cardchain/types/google/api/http.js +260 -0
  31. package/DecentralCardGame.cardchain.cardchain/types/google/protobuf/descriptor.js +2830 -0
  32. package/DecentralCardGame.cardchain.cardchain/types.js +23 -0
  33. package/cosmos.auth.v1beta1/index.js +5 -0
  34. package/cosmos.auth.v1beta1/module.js +62 -0
  35. package/cosmos.auth.v1beta1/registry.js +2 -0
  36. package/cosmos.auth.v1beta1/rest.js +213 -0
  37. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +260 -0
  38. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.js +67 -0
  39. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +868 -0
  40. package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  41. package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  42. package/cosmos.auth.v1beta1/types/gogoproto/gogo.js +2 -0
  43. package/cosmos.auth.v1beta1/types/google/api/annotations.js +2 -0
  44. package/cosmos.auth.v1beta1/types/google/api/http.js +260 -0
  45. package/cosmos.auth.v1beta1/types/google/protobuf/any.js +99 -0
  46. package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  47. package/cosmos.auth.v1beta1/types.js +4 -0
  48. package/cosmos.authz.v1beta1/index.js +5 -0
  49. package/cosmos.authz.v1beta1/module.js +140 -0
  50. package/cosmos.authz.v1beta1/registry.js +9 -0
  51. package/cosmos.authz.v1beta1/rest.js +131 -0
  52. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.js +244 -0
  53. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.js +128 -0
  54. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.js +54 -0
  55. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.js +394 -0
  56. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.js +362 -0
  57. package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  58. package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  59. package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  60. package/cosmos.authz.v1beta1/types/gogoproto/gogo.js +2 -0
  61. package/cosmos.authz.v1beta1/types/google/api/annotations.js +2 -0
  62. package/cosmos.authz.v1beta1/types/google/api/http.js +260 -0
  63. package/cosmos.authz.v1beta1/types/google/protobuf/any.js +99 -0
  64. package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  65. package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.js +84 -0
  66. package/cosmos.authz.v1beta1/types.js +7 -0
  67. package/cosmos.bank.v1beta1/index.js +5 -0
  68. package/cosmos.bank.v1beta1/module.js +125 -0
  69. package/cosmos.bank.v1beta1/registry.js +7 -0
  70. package/cosmos.bank.v1beta1/rest.js +222 -0
  71. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +50 -0
  72. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.js +455 -0
  73. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +154 -0
  74. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1014 -0
  75. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +219 -0
  76. package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  77. package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  78. package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  79. package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  80. package/cosmos.bank.v1beta1/types/gogoproto/gogo.js +2 -0
  81. package/cosmos.bank.v1beta1/types/google/api/annotations.js +2 -0
  82. package/cosmos.bank.v1beta1/types/google/api/http.js +260 -0
  83. package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  84. package/cosmos.bank.v1beta1/types.js +11 -0
  85. package/cosmos.base.tendermint.v1beta1/index.js +5 -0
  86. package/cosmos.base.tendermint.v1beta1/module.js +70 -0
  87. package/cosmos.base.tendermint.v1beta1/registry.js +2 -0
  88. package/cosmos.base.tendermint.v1beta1/rest.js +209 -0
  89. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  90. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.js +1281 -0
  91. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.js +350 -0
  92. package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  93. package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.js +2 -0
  94. package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.js +2 -0
  95. package/cosmos.base.tendermint.v1beta1/types/google/api/http.js +260 -0
  96. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.js +99 -0
  97. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  98. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.js +84 -0
  99. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.js +100 -0
  100. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.js +356 -0
  101. package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.js +352 -0
  102. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.js +86 -0
  103. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.js +343 -0
  104. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.js +1207 -0
  105. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.js +254 -0
  106. package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.js +133 -0
  107. package/cosmos.base.tendermint.v1beta1/types.js +8 -0
  108. package/cosmos.crisis.v1beta1/index.js +5 -0
  109. package/cosmos.crisis.v1beta1/module.js +81 -0
  110. package/cosmos.crisis.v1beta1/registry.js +5 -0
  111. package/cosmos.crisis.v1beta1/rest.js +83 -0
  112. package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  113. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.js +51 -0
  114. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +111 -0
  115. package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  116. package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  117. package/cosmos.crisis.v1beta1/types/gogoproto/gogo.js +2 -0
  118. package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  119. package/cosmos.crisis.v1beta1/types.js +1 -0
  120. package/cosmos.distribution.v1beta1/index.js +5 -0
  121. package/cosmos.distribution.v1beta1/module.js +189 -0
  122. package/cosmos.distribution.v1beta1/registry.js +11 -0
  123. package/cosmos.distribution.v1beta1/rest.js +214 -0
  124. package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  125. package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  126. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.js +737 -0
  127. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.js +656 -0
  128. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +926 -0
  129. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +396 -0
  130. package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  131. package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  132. package/cosmos.distribution.v1beta1/types/gogoproto/gogo.js +2 -0
  133. package/cosmos.distribution.v1beta1/types/google/api/annotations.js +2 -0
  134. package/cosmos.distribution.v1beta1/types/google/api/http.js +260 -0
  135. package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  136. package/cosmos.distribution.v1beta1/types.js +20 -0
  137. package/cosmos.evidence.v1beta1/index.js +5 -0
  138. package/cosmos.evidence.v1beta1/module.js +84 -0
  139. package/cosmos.evidence.v1beta1/registry.js +5 -0
  140. package/cosmos.evidence.v1beta1/rest.js +115 -0
  141. package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  142. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.js +124 -0
  143. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.js +50 -0
  144. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +254 -0
  145. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.js +154 -0
  146. package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  147. package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  148. package/cosmos.evidence.v1beta1/types/gogoproto/gogo.js +2 -0
  149. package/cosmos.evidence.v1beta1/types/google/api/annotations.js +2 -0
  150. package/cosmos.evidence.v1beta1/types/google/api/http.js +260 -0
  151. package/cosmos.evidence.v1beta1/types/google/protobuf/any.js +99 -0
  152. package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  153. package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.js +84 -0
  154. package/cosmos.evidence.v1beta1/types.js +2 -0
  155. package/cosmos.feegrant.v1beta1/index.js +5 -0
  156. package/cosmos.feegrant.v1beta1/module.js +113 -0
  157. package/cosmos.feegrant.v1beta1/registry.js +7 -0
  158. package/cosmos.feegrant.v1beta1/rest.js +130 -0
  159. package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  160. package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  161. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.js +307 -0
  162. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.js +52 -0
  163. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.js +357 -0
  164. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.js +205 -0
  165. package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  166. package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  167. package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.js +2 -0
  168. package/cosmos.feegrant.v1beta1/types/google/api/annotations.js +2 -0
  169. package/cosmos.feegrant.v1beta1/types/google/api/http.js +260 -0
  170. package/cosmos.feegrant.v1beta1/types/google/protobuf/any.js +99 -0
  171. package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  172. package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.js +84 -0
  173. package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.js +84 -0
  174. package/cosmos.feegrant.v1beta1/types.js +5 -0
  175. package/cosmos.gov.v1/index.js +5 -0
  176. package/cosmos.gov.v1/module.js +167 -0
  177. package/cosmos.gov.v1/registry.js +11 -0
  178. package/cosmos.gov.v1/rest.js +242 -0
  179. package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  180. package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.js +192 -0
  181. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +162 -0
  182. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +766 -0
  183. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +917 -0
  184. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +590 -0
  185. package/cosmos.gov.v1/types/cosmos/msg/v1/msg.js +2 -0
  186. package/cosmos.gov.v1/types/cosmos_proto/cosmos.js +171 -0
  187. package/cosmos.gov.v1/types/gogoproto/gogo.js +2 -0
  188. package/cosmos.gov.v1/types/google/api/annotations.js +2 -0
  189. package/cosmos.gov.v1/types/google/api/http.js +260 -0
  190. package/cosmos.gov.v1/types/google/protobuf/any.js +99 -0
  191. package/cosmos.gov.v1/types/google/protobuf/descriptor.js +2830 -0
  192. package/cosmos.gov.v1/types/google/protobuf/duration.js +84 -0
  193. package/cosmos.gov.v1/types/google/protobuf/timestamp.js +84 -0
  194. package/cosmos.gov.v1/types.js +9 -0
  195. package/cosmos.gov.v1beta1/index.js +5 -0
  196. package/cosmos.gov.v1beta1/module.js +169 -0
  197. package/cosmos.gov.v1beta1/registry.js +11 -0
  198. package/cosmos.gov.v1beta1/rest.js +242 -0
  199. package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  200. package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  201. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.js +162 -0
  202. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.js +832 -0
  203. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.js +917 -0
  204. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.js +467 -0
  205. package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  206. package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  207. package/cosmos.gov.v1beta1/types/gogoproto/gogo.js +2 -0
  208. package/cosmos.gov.v1beta1/types/google/api/annotations.js +2 -0
  209. package/cosmos.gov.v1beta1/types/google/api/http.js +260 -0
  210. package/cosmos.gov.v1beta1/types/google/protobuf/any.js +99 -0
  211. package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  212. package/cosmos.gov.v1beta1/types/google/protobuf/duration.js +84 -0
  213. package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.js +84 -0
  214. package/cosmos.gov.v1beta1/types.js +10 -0
  215. package/cosmos.group.v1/index.js +5 -0
  216. package/cosmos.group.v1/module.js +421 -0
  217. package/cosmos.group.v1/registry.js +31 -0
  218. package/cosmos.group.v1/rest.js +366 -0
  219. package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  220. package/cosmos.group.v1/types/cosmos/group/v1/events.js +433 -0
  221. package/cosmos.group.v1/types/cosmos/group/v1/genesis.js +177 -0
  222. package/cosmos.group.v1/types/cosmos/group/v1/query.js +1578 -0
  223. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +1621 -0
  224. package/cosmos.group.v1/types/cosmos/group/v1/types.js +1105 -0
  225. package/cosmos.group.v1/types/cosmos/msg/v1/msg.js +2 -0
  226. package/cosmos.group.v1/types/cosmos_proto/cosmos.js +171 -0
  227. package/cosmos.group.v1/types/gogoproto/gogo.js +2 -0
  228. package/cosmos.group.v1/types/google/api/annotations.js +2 -0
  229. package/cosmos.group.v1/types/google/api/http.js +260 -0
  230. package/cosmos.group.v1/types/google/protobuf/any.js +99 -0
  231. package/cosmos.group.v1/types/google/protobuf/descriptor.js +2830 -0
  232. package/cosmos.group.v1/types/google/protobuf/duration.js +84 -0
  233. package/cosmos.group.v1/types/google/protobuf/timestamp.js +84 -0
  234. package/cosmos.group.v1/types.js +21 -0
  235. package/cosmos.mint.v1beta1/index.js +5 -0
  236. package/cosmos.mint.v1beta1/module.js +60 -0
  237. package/cosmos.mint.v1beta1/registry.js +2 -0
  238. package/cosmos.mint.v1beta1/rest.js +128 -0
  239. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.js +63 -0
  240. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.js +179 -0
  241. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.js +298 -0
  242. package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  243. package/cosmos.mint.v1beta1/types/gogoproto/gogo.js +2 -0
  244. package/cosmos.mint.v1beta1/types/google/api/annotations.js +2 -0
  245. package/cosmos.mint.v1beta1/types/google/api/http.js +260 -0
  246. package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  247. package/cosmos.mint.v1beta1/types.js +3 -0
  248. package/cosmos.nft.v1beta1/index.js +5 -0
  249. package/cosmos.nft.v1beta1/module.js +68 -0
  250. package/cosmos.nft.v1beta1/registry.js +2 -0
  251. package/cosmos.nft.v1beta1/rest.js +187 -0
  252. package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  253. package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  254. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.js +198 -0
  255. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.js +126 -0
  256. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.js +183 -0
  257. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.js +752 -0
  258. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.js +120 -0
  259. package/cosmos.nft.v1beta1/types/google/api/annotations.js +2 -0
  260. package/cosmos.nft.v1beta1/types/google/api/http.js +260 -0
  261. package/cosmos.nft.v1beta1/types/google/protobuf/any.js +99 -0
  262. package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  263. package/cosmos.nft.v1beta1/types.js +7 -0
  264. package/cosmos.params.v1beta1/index.js +5 -0
  265. package/cosmos.params.v1beta1/module.js +62 -0
  266. package/cosmos.params.v1beta1/registry.js +2 -0
  267. package/cosmos.params.v1beta1/rest.js +116 -0
  268. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.js +133 -0
  269. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.js +257 -0
  270. package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  271. package/cosmos.params.v1beta1/types/gogoproto/gogo.js +2 -0
  272. package/cosmos.params.v1beta1/types/google/api/annotations.js +2 -0
  273. package/cosmos.params.v1beta1/types/google/api/http.js +260 -0
  274. package/cosmos.params.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  275. package/cosmos.params.v1beta1/types.js +4 -0
  276. package/cosmos.slashing.v1beta1/index.js +5 -0
  277. package/cosmos.slashing.v1beta1/module.js +92 -0
  278. package/cosmos.slashing.v1beta1/registry.js +5 -0
  279. package/cosmos.slashing.v1beta1/rest.js +129 -0
  280. package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  281. package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  282. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.js +279 -0
  283. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.js +300 -0
  284. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.js +275 -0
  285. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +91 -0
  286. package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  287. package/cosmos.slashing.v1beta1/types/gogoproto/gogo.js +2 -0
  288. package/cosmos.slashing.v1beta1/types/google/api/annotations.js +2 -0
  289. package/cosmos.slashing.v1beta1/types/google/api/http.js +260 -0
  290. package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  291. package/cosmos.slashing.v1beta1/types/google/protobuf/duration.js +84 -0
  292. package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.js +84 -0
  293. package/cosmos.slashing.v1beta1/types.js +6 -0
  294. package/cosmos.staking.v1beta1/index.js +5 -0
  295. package/cosmos.staking.v1beta1/module.js +243 -0
  296. package/cosmos.staking.v1beta1/registry.js +15 -0
  297. package/cosmos.staking.v1beta1/rest.js +308 -0
  298. package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  299. package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  300. package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  301. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.js +184 -0
  302. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.js +259 -0
  303. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.js +1568 -0
  304. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +1436 -0
  305. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +768 -0
  306. package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  307. package/cosmos.staking.v1beta1/types/gogoproto/gogo.js +2 -0
  308. package/cosmos.staking.v1beta1/types/google/api/annotations.js +2 -0
  309. package/cosmos.staking.v1beta1/types/google/api/http.js +260 -0
  310. package/cosmos.staking.v1beta1/types/google/protobuf/any.js +99 -0
  311. package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  312. package/cosmos.staking.v1beta1/types/google/protobuf/duration.js +84 -0
  313. package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.js +84 -0
  314. package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.js +100 -0
  315. package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.js +356 -0
  316. package/cosmos.staking.v1beta1/types/tendermint/types/types.js +1207 -0
  317. package/cosmos.staking.v1beta1/types/tendermint/types/validator.js +254 -0
  318. package/cosmos.staking.v1beta1/types/tendermint/version/types.js +133 -0
  319. package/cosmos.staking.v1beta1/types.js +24 -0
  320. package/cosmos.tx.v1beta1/index.js +5 -0
  321. package/cosmos.tx.v1beta1/module.js +82 -0
  322. package/cosmos.tx.v1beta1/registry.js +2 -0
  323. package/cosmos.tx.v1beta1/rest.js +256 -0
  324. package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.js +803 -0
  325. package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  326. package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  327. package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.js +147 -0
  328. package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.js +449 -0
  329. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +802 -0
  330. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.js +959 -0
  331. package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  332. package/cosmos.tx.v1beta1/types/gogoproto/gogo.js +2 -0
  333. package/cosmos.tx.v1beta1/types/google/api/annotations.js +2 -0
  334. package/cosmos.tx.v1beta1/types/google/api/http.js +260 -0
  335. package/cosmos.tx.v1beta1/types/google/protobuf/any.js +99 -0
  336. package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  337. package/cosmos.tx.v1beta1/types/google/protobuf/duration.js +84 -0
  338. package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.js +84 -0
  339. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +3486 -0
  340. package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.js +100 -0
  341. package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.js +356 -0
  342. package/cosmos.tx.v1beta1/types/tendermint/types/block.js +86 -0
  343. package/cosmos.tx.v1beta1/types/tendermint/types/evidence.js +343 -0
  344. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +378 -0
  345. package/cosmos.tx.v1beta1/types/tendermint/types/types.js +1207 -0
  346. package/cosmos.tx.v1beta1/types/tendermint/types/validator.js +254 -0
  347. package/cosmos.tx.v1beta1/types/tendermint/version/types.js +133 -0
  348. package/cosmos.tx.v1beta1/types.js +14 -0
  349. package/cosmos.upgrade.v1beta1/index.js +5 -0
  350. package/cosmos.upgrade.v1beta1/module.js +113 -0
  351. package/cosmos.upgrade.v1beta1/registry.js +7 -0
  352. package/cosmos.upgrade.v1beta1/rest.js +162 -0
  353. package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  354. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.js +501 -0
  355. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.js +183 -0
  356. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  357. package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  358. package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.js +2 -0
  359. package/cosmos.upgrade.v1beta1/types/google/api/annotations.js +2 -0
  360. package/cosmos.upgrade.v1beta1/types/google/api/http.js +260 -0
  361. package/cosmos.upgrade.v1beta1/types/google/protobuf/any.js +99 -0
  362. package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  363. package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.js +84 -0
  364. package/cosmos.upgrade.v1beta1/types.js +5 -0
  365. package/cosmos.vesting.v1beta1/index.js +5 -0
  366. package/cosmos.vesting.v1beta1/module.js +140 -0
  367. package/cosmos.vesting.v1beta1/registry.js +9 -0
  368. package/cosmos.vesting.v1beta1/rest.js +83 -0
  369. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +260 -0
  370. package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  371. package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  372. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.js +383 -0
  373. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.js +422 -0
  374. package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  375. package/cosmos.vesting.v1beta1/types/gogoproto/gogo.js +2 -0
  376. package/cosmos.vesting.v1beta1/types/google/protobuf/any.js +99 -0
  377. package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  378. package/cosmos.vesting.v1beta1/types.js +7 -0
  379. package/ibc.applications.interchain_accounts.controller.v1/index.js +5 -0
  380. package/ibc.applications.interchain_accounts.controller.v1/module.js +58 -0
  381. package/ibc.applications.interchain_accounts.controller.v1/registry.js +2 -0
  382. package/ibc.applications.interchain_accounts.controller.v1/rest.js +123 -0
  383. package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.js +2 -0
  384. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.js +2 -0
  385. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.js +260 -0
  386. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.js +99 -0
  387. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.js +2830 -0
  388. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.js +47 -0
  389. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.js +193 -0
  390. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +266 -0
  391. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.js +192 -0
  392. package/ibc.applications.interchain_accounts.controller.v1/types.js +2 -0
  393. package/ibc.applications.interchain_accounts.host.v1/index.js +5 -0
  394. package/ibc.applications.interchain_accounts.host.v1/module.js +58 -0
  395. package/ibc.applications.interchain_accounts.host.v1/registry.js +2 -0
  396. package/ibc.applications.interchain_accounts.host.v1/rest.js +100 -0
  397. package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.js +2 -0
  398. package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.js +2 -0
  399. package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.js +260 -0
  400. package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.js +2830 -0
  401. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.js +63 -0
  402. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.js +94 -0
  403. package/ibc.applications.interchain_accounts.host.v1/types.js +2 -0
  404. package/ibc.applications.transfer.v1/index.js +5 -0
  405. package/ibc.applications.transfer.v1/module.js +86 -0
  406. package/ibc.applications.transfer.v1/registry.js +5 -0
  407. package/ibc.applications.transfer.v1/rest.js +157 -0
  408. package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  409. package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.js +192 -0
  410. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  411. package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.js +171 -0
  412. package/ibc.applications.transfer.v1/types/gogoproto/gogo.js +2 -0
  413. package/ibc.applications.transfer.v1/types/google/api/annotations.js +2 -0
  414. package/ibc.applications.transfer.v1/types/google/api/http.js +260 -0
  415. package/ibc.applications.transfer.v1/types/google/protobuf/any.js +99 -0
  416. package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.js +2830 -0
  417. package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.js +84 -0
  418. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +75 -0
  419. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +483 -0
  420. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.js +110 -0
  421. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.js +204 -0
  422. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.js +448 -0
  423. package/ibc.applications.transfer.v1/types.js +3 -0
  424. package/ibc.core.channel.v1/index.js +5 -0
  425. package/ibc.core.channel.v1/module.js +72 -0
  426. package/ibc.core.channel.v1/registry.js +2 -0
  427. package/ibc.core.channel.v1/rest.js +323 -0
  428. package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  429. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  430. package/ibc.core.channel.v1/types/cosmos_proto/cosmos.js +171 -0
  431. package/ibc.core.channel.v1/types/gogoproto/gogo.js +2 -0
  432. package/ibc.core.channel.v1/types/google/api/annotations.js +2 -0
  433. package/ibc.core.channel.v1/types/google/api/http.js +260 -0
  434. package/ibc.core.channel.v1/types/google/protobuf/any.js +99 -0
  435. package/ibc.core.channel.v1/types/google/protobuf/descriptor.js +2830 -0
  436. package/ibc.core.channel.v1/types/google/protobuf/timestamp.js +84 -0
  437. package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.js +714 -0
  438. package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.js +254 -0
  439. package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.js +1866 -0
  440. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +1425 -0
  441. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.js +448 -0
  442. package/ibc.core.channel.v1/types.js +9 -0
  443. package/ibc.core.client.v1/index.js +5 -0
  444. package/ibc.core.client.v1/module.js +74 -0
  445. package/ibc.core.client.v1/registry.js +2 -0
  446. package/ibc.core.client.v1/rest.js +218 -0
  447. package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  448. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  449. package/ibc.core.client.v1/types/cosmos_proto/cosmos.js +171 -0
  450. package/ibc.core.client.v1/types/gogoproto/gogo.js +2 -0
  451. package/ibc.core.client.v1/types/google/api/annotations.js +2 -0
  452. package/ibc.core.client.v1/types/google/api/http.js +260 -0
  453. package/ibc.core.client.v1/types/google/protobuf/any.js +99 -0
  454. package/ibc.core.client.v1/types/google/protobuf/descriptor.js +2830 -0
  455. package/ibc.core.client.v1/types/google/protobuf/timestamp.js +84 -0
  456. package/ibc.core.client.v1/types/ibc/core/client/v1/client.js +448 -0
  457. package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.js +287 -0
  458. package/ibc.core.client.v1/types/ibc/core/client/v1/query.js +1026 -0
  459. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +509 -0
  460. package/ibc.core.client.v1/types.js +10 -0
  461. package/ibc.core.connection.v1/index.js +5 -0
  462. package/ibc.core.connection.v1/module.js +70 -0
  463. package/ibc.core.connection.v1/registry.js +2 -0
  464. package/ibc.core.connection.v1/rest.js +191 -0
  465. package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  466. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  467. package/ibc.core.connection.v1/types/cosmos_proto/cosmos.js +171 -0
  468. package/ibc.core.connection.v1/types/gogoproto/gogo.js +2 -0
  469. package/ibc.core.connection.v1/types/google/api/annotations.js +2 -0
  470. package/ibc.core.connection.v1/types/google/api/http.js +260 -0
  471. package/ibc.core.connection.v1/types/google/protobuf/any.js +99 -0
  472. package/ibc.core.connection.v1/types/google/protobuf/descriptor.js +2830 -0
  473. package/ibc.core.connection.v1/types/google/protobuf/timestamp.js +84 -0
  474. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.js +448 -0
  475. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +223 -0
  476. package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.js +537 -0
  477. package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.js +120 -0
  478. package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.js +766 -0
  479. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +705 -0
  480. package/ibc.core.connection.v1/types/proofs.js +1126 -0
  481. package/ibc.core.connection.v1/types.js +8 -0
  482. package/package.json +4 -1
  483. package/tsconfig.json +0 -1
@@ -0,0 +1,926 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
5
+ import { DecCoin } from "../../base/v1beta1/coin";
6
+ import { DelegationDelegatorReward, Params, ValidatorAccumulatedCommission, ValidatorOutstandingRewards, ValidatorSlashEvent, } from "./distribution";
7
+ export const protobufPackage = "cosmos.distribution.v1beta1";
8
+ function createBaseQueryParamsRequest() {
9
+ return {};
10
+ }
11
+ export const QueryParamsRequest = {
12
+ encode(_, writer = _m0.Writer.create()) {
13
+ return writer;
14
+ },
15
+ decode(input, length) {
16
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
17
+ let end = length === undefined ? reader.len : reader.pos + length;
18
+ const message = createBaseQueryParamsRequest();
19
+ while (reader.pos < end) {
20
+ const tag = reader.uint32();
21
+ switch (tag >>> 3) {
22
+ default:
23
+ reader.skipType(tag & 7);
24
+ break;
25
+ }
26
+ }
27
+ return message;
28
+ },
29
+ fromJSON(_) {
30
+ return {};
31
+ },
32
+ toJSON(_) {
33
+ const obj = {};
34
+ return obj;
35
+ },
36
+ fromPartial(_) {
37
+ const message = createBaseQueryParamsRequest();
38
+ return message;
39
+ },
40
+ };
41
+ function createBaseQueryParamsResponse() {
42
+ return { params: undefined };
43
+ }
44
+ export const QueryParamsResponse = {
45
+ encode(message, writer = _m0.Writer.create()) {
46
+ if (message.params !== undefined) {
47
+ Params.encode(message.params, writer.uint32(10).fork()).ldelim();
48
+ }
49
+ return writer;
50
+ },
51
+ decode(input, length) {
52
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
53
+ let end = length === undefined ? reader.len : reader.pos + length;
54
+ const message = createBaseQueryParamsResponse();
55
+ while (reader.pos < end) {
56
+ const tag = reader.uint32();
57
+ switch (tag >>> 3) {
58
+ case 1:
59
+ message.params = Params.decode(reader, reader.uint32());
60
+ break;
61
+ default:
62
+ reader.skipType(tag & 7);
63
+ break;
64
+ }
65
+ }
66
+ return message;
67
+ },
68
+ fromJSON(object) {
69
+ return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
70
+ },
71
+ toJSON(message) {
72
+ const obj = {};
73
+ message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
74
+ return obj;
75
+ },
76
+ fromPartial(object) {
77
+ const message = createBaseQueryParamsResponse();
78
+ message.params = (object.params !== undefined && object.params !== null)
79
+ ? Params.fromPartial(object.params)
80
+ : undefined;
81
+ return message;
82
+ },
83
+ };
84
+ function createBaseQueryValidatorOutstandingRewardsRequest() {
85
+ return { validatorAddress: "" };
86
+ }
87
+ export const QueryValidatorOutstandingRewardsRequest = {
88
+ encode(message, writer = _m0.Writer.create()) {
89
+ if (message.validatorAddress !== "") {
90
+ writer.uint32(10).string(message.validatorAddress);
91
+ }
92
+ return writer;
93
+ },
94
+ decode(input, length) {
95
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
96
+ let end = length === undefined ? reader.len : reader.pos + length;
97
+ const message = createBaseQueryValidatorOutstandingRewardsRequest();
98
+ while (reader.pos < end) {
99
+ const tag = reader.uint32();
100
+ switch (tag >>> 3) {
101
+ case 1:
102
+ message.validatorAddress = reader.string();
103
+ break;
104
+ default:
105
+ reader.skipType(tag & 7);
106
+ break;
107
+ }
108
+ }
109
+ return message;
110
+ },
111
+ fromJSON(object) {
112
+ return { validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" };
113
+ },
114
+ toJSON(message) {
115
+ const obj = {};
116
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
117
+ return obj;
118
+ },
119
+ fromPartial(object) {
120
+ const message = createBaseQueryValidatorOutstandingRewardsRequest();
121
+ message.validatorAddress = object.validatorAddress ?? "";
122
+ return message;
123
+ },
124
+ };
125
+ function createBaseQueryValidatorOutstandingRewardsResponse() {
126
+ return { rewards: undefined };
127
+ }
128
+ export const QueryValidatorOutstandingRewardsResponse = {
129
+ encode(message, writer = _m0.Writer.create()) {
130
+ if (message.rewards !== undefined) {
131
+ ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim();
132
+ }
133
+ return writer;
134
+ },
135
+ decode(input, length) {
136
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
137
+ let end = length === undefined ? reader.len : reader.pos + length;
138
+ const message = createBaseQueryValidatorOutstandingRewardsResponse();
139
+ while (reader.pos < end) {
140
+ const tag = reader.uint32();
141
+ switch (tag >>> 3) {
142
+ case 1:
143
+ message.rewards = ValidatorOutstandingRewards.decode(reader, reader.uint32());
144
+ break;
145
+ default:
146
+ reader.skipType(tag & 7);
147
+ break;
148
+ }
149
+ }
150
+ return message;
151
+ },
152
+ fromJSON(object) {
153
+ return { rewards: isSet(object.rewards) ? ValidatorOutstandingRewards.fromJSON(object.rewards) : undefined };
154
+ },
155
+ toJSON(message) {
156
+ const obj = {};
157
+ message.rewards !== undefined
158
+ && (obj.rewards = message.rewards ? ValidatorOutstandingRewards.toJSON(message.rewards) : undefined);
159
+ return obj;
160
+ },
161
+ fromPartial(object) {
162
+ const message = createBaseQueryValidatorOutstandingRewardsResponse();
163
+ message.rewards = (object.rewards !== undefined && object.rewards !== null)
164
+ ? ValidatorOutstandingRewards.fromPartial(object.rewards)
165
+ : undefined;
166
+ return message;
167
+ },
168
+ };
169
+ function createBaseQueryValidatorCommissionRequest() {
170
+ return { validatorAddress: "" };
171
+ }
172
+ export const QueryValidatorCommissionRequest = {
173
+ encode(message, writer = _m0.Writer.create()) {
174
+ if (message.validatorAddress !== "") {
175
+ writer.uint32(10).string(message.validatorAddress);
176
+ }
177
+ return writer;
178
+ },
179
+ decode(input, length) {
180
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
181
+ let end = length === undefined ? reader.len : reader.pos + length;
182
+ const message = createBaseQueryValidatorCommissionRequest();
183
+ while (reader.pos < end) {
184
+ const tag = reader.uint32();
185
+ switch (tag >>> 3) {
186
+ case 1:
187
+ message.validatorAddress = reader.string();
188
+ break;
189
+ default:
190
+ reader.skipType(tag & 7);
191
+ break;
192
+ }
193
+ }
194
+ return message;
195
+ },
196
+ fromJSON(object) {
197
+ return { validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" };
198
+ },
199
+ toJSON(message) {
200
+ const obj = {};
201
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
202
+ return obj;
203
+ },
204
+ fromPartial(object) {
205
+ const message = createBaseQueryValidatorCommissionRequest();
206
+ message.validatorAddress = object.validatorAddress ?? "";
207
+ return message;
208
+ },
209
+ };
210
+ function createBaseQueryValidatorCommissionResponse() {
211
+ return { commission: undefined };
212
+ }
213
+ export const QueryValidatorCommissionResponse = {
214
+ encode(message, writer = _m0.Writer.create()) {
215
+ if (message.commission !== undefined) {
216
+ ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim();
217
+ }
218
+ return writer;
219
+ },
220
+ decode(input, length) {
221
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
222
+ let end = length === undefined ? reader.len : reader.pos + length;
223
+ const message = createBaseQueryValidatorCommissionResponse();
224
+ while (reader.pos < end) {
225
+ const tag = reader.uint32();
226
+ switch (tag >>> 3) {
227
+ case 1:
228
+ message.commission = ValidatorAccumulatedCommission.decode(reader, reader.uint32());
229
+ break;
230
+ default:
231
+ reader.skipType(tag & 7);
232
+ break;
233
+ }
234
+ }
235
+ return message;
236
+ },
237
+ fromJSON(object) {
238
+ return {
239
+ commission: isSet(object.commission) ? ValidatorAccumulatedCommission.fromJSON(object.commission) : undefined,
240
+ };
241
+ },
242
+ toJSON(message) {
243
+ const obj = {};
244
+ message.commission !== undefined
245
+ && (obj.commission = message.commission ? ValidatorAccumulatedCommission.toJSON(message.commission) : undefined);
246
+ return obj;
247
+ },
248
+ fromPartial(object) {
249
+ const message = createBaseQueryValidatorCommissionResponse();
250
+ message.commission = (object.commission !== undefined && object.commission !== null)
251
+ ? ValidatorAccumulatedCommission.fromPartial(object.commission)
252
+ : undefined;
253
+ return message;
254
+ },
255
+ };
256
+ function createBaseQueryValidatorSlashesRequest() {
257
+ return { validatorAddress: "", startingHeight: 0, endingHeight: 0, pagination: undefined };
258
+ }
259
+ export const QueryValidatorSlashesRequest = {
260
+ encode(message, writer = _m0.Writer.create()) {
261
+ if (message.validatorAddress !== "") {
262
+ writer.uint32(10).string(message.validatorAddress);
263
+ }
264
+ if (message.startingHeight !== 0) {
265
+ writer.uint32(16).uint64(message.startingHeight);
266
+ }
267
+ if (message.endingHeight !== 0) {
268
+ writer.uint32(24).uint64(message.endingHeight);
269
+ }
270
+ if (message.pagination !== undefined) {
271
+ PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim();
272
+ }
273
+ return writer;
274
+ },
275
+ decode(input, length) {
276
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
277
+ let end = length === undefined ? reader.len : reader.pos + length;
278
+ const message = createBaseQueryValidatorSlashesRequest();
279
+ while (reader.pos < end) {
280
+ const tag = reader.uint32();
281
+ switch (tag >>> 3) {
282
+ case 1:
283
+ message.validatorAddress = reader.string();
284
+ break;
285
+ case 2:
286
+ message.startingHeight = longToNumber(reader.uint64());
287
+ break;
288
+ case 3:
289
+ message.endingHeight = longToNumber(reader.uint64());
290
+ break;
291
+ case 4:
292
+ message.pagination = PageRequest.decode(reader, reader.uint32());
293
+ break;
294
+ default:
295
+ reader.skipType(tag & 7);
296
+ break;
297
+ }
298
+ }
299
+ return message;
300
+ },
301
+ fromJSON(object) {
302
+ return {
303
+ validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
304
+ startingHeight: isSet(object.startingHeight) ? Number(object.startingHeight) : 0,
305
+ endingHeight: isSet(object.endingHeight) ? Number(object.endingHeight) : 0,
306
+ pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
307
+ };
308
+ },
309
+ toJSON(message) {
310
+ const obj = {};
311
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
312
+ message.startingHeight !== undefined && (obj.startingHeight = Math.round(message.startingHeight));
313
+ message.endingHeight !== undefined && (obj.endingHeight = Math.round(message.endingHeight));
314
+ message.pagination !== undefined
315
+ && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
316
+ return obj;
317
+ },
318
+ fromPartial(object) {
319
+ const message = createBaseQueryValidatorSlashesRequest();
320
+ message.validatorAddress = object.validatorAddress ?? "";
321
+ message.startingHeight = object.startingHeight ?? 0;
322
+ message.endingHeight = object.endingHeight ?? 0;
323
+ message.pagination = (object.pagination !== undefined && object.pagination !== null)
324
+ ? PageRequest.fromPartial(object.pagination)
325
+ : undefined;
326
+ return message;
327
+ },
328
+ };
329
+ function createBaseQueryValidatorSlashesResponse() {
330
+ return { slashes: [], pagination: undefined };
331
+ }
332
+ export const QueryValidatorSlashesResponse = {
333
+ encode(message, writer = _m0.Writer.create()) {
334
+ for (const v of message.slashes) {
335
+ ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim();
336
+ }
337
+ if (message.pagination !== undefined) {
338
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
339
+ }
340
+ return writer;
341
+ },
342
+ decode(input, length) {
343
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
344
+ let end = length === undefined ? reader.len : reader.pos + length;
345
+ const message = createBaseQueryValidatorSlashesResponse();
346
+ while (reader.pos < end) {
347
+ const tag = reader.uint32();
348
+ switch (tag >>> 3) {
349
+ case 1:
350
+ message.slashes.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
351
+ break;
352
+ case 2:
353
+ message.pagination = PageResponse.decode(reader, reader.uint32());
354
+ break;
355
+ default:
356
+ reader.skipType(tag & 7);
357
+ break;
358
+ }
359
+ }
360
+ return message;
361
+ },
362
+ fromJSON(object) {
363
+ return {
364
+ slashes: Array.isArray(object?.slashes) ? object.slashes.map((e) => ValidatorSlashEvent.fromJSON(e)) : [],
365
+ pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
366
+ };
367
+ },
368
+ toJSON(message) {
369
+ const obj = {};
370
+ if (message.slashes) {
371
+ obj.slashes = message.slashes.map((e) => e ? ValidatorSlashEvent.toJSON(e) : undefined);
372
+ }
373
+ else {
374
+ obj.slashes = [];
375
+ }
376
+ message.pagination !== undefined
377
+ && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
378
+ return obj;
379
+ },
380
+ fromPartial(object) {
381
+ const message = createBaseQueryValidatorSlashesResponse();
382
+ message.slashes = object.slashes?.map((e) => ValidatorSlashEvent.fromPartial(e)) || [];
383
+ message.pagination = (object.pagination !== undefined && object.pagination !== null)
384
+ ? PageResponse.fromPartial(object.pagination)
385
+ : undefined;
386
+ return message;
387
+ },
388
+ };
389
+ function createBaseQueryDelegationRewardsRequest() {
390
+ return { delegatorAddress: "", validatorAddress: "" };
391
+ }
392
+ export const QueryDelegationRewardsRequest = {
393
+ encode(message, writer = _m0.Writer.create()) {
394
+ if (message.delegatorAddress !== "") {
395
+ writer.uint32(10).string(message.delegatorAddress);
396
+ }
397
+ if (message.validatorAddress !== "") {
398
+ writer.uint32(18).string(message.validatorAddress);
399
+ }
400
+ return writer;
401
+ },
402
+ decode(input, length) {
403
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
404
+ let end = length === undefined ? reader.len : reader.pos + length;
405
+ const message = createBaseQueryDelegationRewardsRequest();
406
+ while (reader.pos < end) {
407
+ const tag = reader.uint32();
408
+ switch (tag >>> 3) {
409
+ case 1:
410
+ message.delegatorAddress = reader.string();
411
+ break;
412
+ case 2:
413
+ message.validatorAddress = reader.string();
414
+ break;
415
+ default:
416
+ reader.skipType(tag & 7);
417
+ break;
418
+ }
419
+ }
420
+ return message;
421
+ },
422
+ fromJSON(object) {
423
+ return {
424
+ delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
425
+ validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
426
+ };
427
+ },
428
+ toJSON(message) {
429
+ const obj = {};
430
+ message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
431
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
432
+ return obj;
433
+ },
434
+ fromPartial(object) {
435
+ const message = createBaseQueryDelegationRewardsRequest();
436
+ message.delegatorAddress = object.delegatorAddress ?? "";
437
+ message.validatorAddress = object.validatorAddress ?? "";
438
+ return message;
439
+ },
440
+ };
441
+ function createBaseQueryDelegationRewardsResponse() {
442
+ return { rewards: [] };
443
+ }
444
+ export const QueryDelegationRewardsResponse = {
445
+ encode(message, writer = _m0.Writer.create()) {
446
+ for (const v of message.rewards) {
447
+ DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
448
+ }
449
+ return writer;
450
+ },
451
+ decode(input, length) {
452
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
453
+ let end = length === undefined ? reader.len : reader.pos + length;
454
+ const message = createBaseQueryDelegationRewardsResponse();
455
+ while (reader.pos < end) {
456
+ const tag = reader.uint32();
457
+ switch (tag >>> 3) {
458
+ case 1:
459
+ message.rewards.push(DecCoin.decode(reader, reader.uint32()));
460
+ break;
461
+ default:
462
+ reader.skipType(tag & 7);
463
+ break;
464
+ }
465
+ }
466
+ return message;
467
+ },
468
+ fromJSON(object) {
469
+ return { rewards: Array.isArray(object?.rewards) ? object.rewards.map((e) => DecCoin.fromJSON(e)) : [] };
470
+ },
471
+ toJSON(message) {
472
+ const obj = {};
473
+ if (message.rewards) {
474
+ obj.rewards = message.rewards.map((e) => e ? DecCoin.toJSON(e) : undefined);
475
+ }
476
+ else {
477
+ obj.rewards = [];
478
+ }
479
+ return obj;
480
+ },
481
+ fromPartial(object) {
482
+ const message = createBaseQueryDelegationRewardsResponse();
483
+ message.rewards = object.rewards?.map((e) => DecCoin.fromPartial(e)) || [];
484
+ return message;
485
+ },
486
+ };
487
+ function createBaseQueryDelegationTotalRewardsRequest() {
488
+ return { delegatorAddress: "" };
489
+ }
490
+ export const QueryDelegationTotalRewardsRequest = {
491
+ encode(message, writer = _m0.Writer.create()) {
492
+ if (message.delegatorAddress !== "") {
493
+ writer.uint32(10).string(message.delegatorAddress);
494
+ }
495
+ return writer;
496
+ },
497
+ decode(input, length) {
498
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
499
+ let end = length === undefined ? reader.len : reader.pos + length;
500
+ const message = createBaseQueryDelegationTotalRewardsRequest();
501
+ while (reader.pos < end) {
502
+ const tag = reader.uint32();
503
+ switch (tag >>> 3) {
504
+ case 1:
505
+ message.delegatorAddress = reader.string();
506
+ break;
507
+ default:
508
+ reader.skipType(tag & 7);
509
+ break;
510
+ }
511
+ }
512
+ return message;
513
+ },
514
+ fromJSON(object) {
515
+ return { delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "" };
516
+ },
517
+ toJSON(message) {
518
+ const obj = {};
519
+ message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
520
+ return obj;
521
+ },
522
+ fromPartial(object) {
523
+ const message = createBaseQueryDelegationTotalRewardsRequest();
524
+ message.delegatorAddress = object.delegatorAddress ?? "";
525
+ return message;
526
+ },
527
+ };
528
+ function createBaseQueryDelegationTotalRewardsResponse() {
529
+ return { rewards: [], total: [] };
530
+ }
531
+ export const QueryDelegationTotalRewardsResponse = {
532
+ encode(message, writer = _m0.Writer.create()) {
533
+ for (const v of message.rewards) {
534
+ DelegationDelegatorReward.encode(v, writer.uint32(10).fork()).ldelim();
535
+ }
536
+ for (const v of message.total) {
537
+ DecCoin.encode(v, writer.uint32(18).fork()).ldelim();
538
+ }
539
+ return writer;
540
+ },
541
+ decode(input, length) {
542
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
543
+ let end = length === undefined ? reader.len : reader.pos + length;
544
+ const message = createBaseQueryDelegationTotalRewardsResponse();
545
+ while (reader.pos < end) {
546
+ const tag = reader.uint32();
547
+ switch (tag >>> 3) {
548
+ case 1:
549
+ message.rewards.push(DelegationDelegatorReward.decode(reader, reader.uint32()));
550
+ break;
551
+ case 2:
552
+ message.total.push(DecCoin.decode(reader, reader.uint32()));
553
+ break;
554
+ default:
555
+ reader.skipType(tag & 7);
556
+ break;
557
+ }
558
+ }
559
+ return message;
560
+ },
561
+ fromJSON(object) {
562
+ return {
563
+ rewards: Array.isArray(object?.rewards)
564
+ ? object.rewards.map((e) => DelegationDelegatorReward.fromJSON(e))
565
+ : [],
566
+ total: Array.isArray(object?.total) ? object.total.map((e) => DecCoin.fromJSON(e)) : [],
567
+ };
568
+ },
569
+ toJSON(message) {
570
+ const obj = {};
571
+ if (message.rewards) {
572
+ obj.rewards = message.rewards.map((e) => e ? DelegationDelegatorReward.toJSON(e) : undefined);
573
+ }
574
+ else {
575
+ obj.rewards = [];
576
+ }
577
+ if (message.total) {
578
+ obj.total = message.total.map((e) => e ? DecCoin.toJSON(e) : undefined);
579
+ }
580
+ else {
581
+ obj.total = [];
582
+ }
583
+ return obj;
584
+ },
585
+ fromPartial(object) {
586
+ const message = createBaseQueryDelegationTotalRewardsResponse();
587
+ message.rewards = object.rewards?.map((e) => DelegationDelegatorReward.fromPartial(e)) || [];
588
+ message.total = object.total?.map((e) => DecCoin.fromPartial(e)) || [];
589
+ return message;
590
+ },
591
+ };
592
+ function createBaseQueryDelegatorValidatorsRequest() {
593
+ return { delegatorAddress: "" };
594
+ }
595
+ export const QueryDelegatorValidatorsRequest = {
596
+ encode(message, writer = _m0.Writer.create()) {
597
+ if (message.delegatorAddress !== "") {
598
+ writer.uint32(10).string(message.delegatorAddress);
599
+ }
600
+ return writer;
601
+ },
602
+ decode(input, length) {
603
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
604
+ let end = length === undefined ? reader.len : reader.pos + length;
605
+ const message = createBaseQueryDelegatorValidatorsRequest();
606
+ while (reader.pos < end) {
607
+ const tag = reader.uint32();
608
+ switch (tag >>> 3) {
609
+ case 1:
610
+ message.delegatorAddress = reader.string();
611
+ break;
612
+ default:
613
+ reader.skipType(tag & 7);
614
+ break;
615
+ }
616
+ }
617
+ return message;
618
+ },
619
+ fromJSON(object) {
620
+ return { delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "" };
621
+ },
622
+ toJSON(message) {
623
+ const obj = {};
624
+ message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
625
+ return obj;
626
+ },
627
+ fromPartial(object) {
628
+ const message = createBaseQueryDelegatorValidatorsRequest();
629
+ message.delegatorAddress = object.delegatorAddress ?? "";
630
+ return message;
631
+ },
632
+ };
633
+ function createBaseQueryDelegatorValidatorsResponse() {
634
+ return { validators: [] };
635
+ }
636
+ export const QueryDelegatorValidatorsResponse = {
637
+ encode(message, writer = _m0.Writer.create()) {
638
+ for (const v of message.validators) {
639
+ writer.uint32(10).string(v);
640
+ }
641
+ return writer;
642
+ },
643
+ decode(input, length) {
644
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
645
+ let end = length === undefined ? reader.len : reader.pos + length;
646
+ const message = createBaseQueryDelegatorValidatorsResponse();
647
+ while (reader.pos < end) {
648
+ const tag = reader.uint32();
649
+ switch (tag >>> 3) {
650
+ case 1:
651
+ message.validators.push(reader.string());
652
+ break;
653
+ default:
654
+ reader.skipType(tag & 7);
655
+ break;
656
+ }
657
+ }
658
+ return message;
659
+ },
660
+ fromJSON(object) {
661
+ return { validators: Array.isArray(object?.validators) ? object.validators.map((e) => String(e)) : [] };
662
+ },
663
+ toJSON(message) {
664
+ const obj = {};
665
+ if (message.validators) {
666
+ obj.validators = message.validators.map((e) => e);
667
+ }
668
+ else {
669
+ obj.validators = [];
670
+ }
671
+ return obj;
672
+ },
673
+ fromPartial(object) {
674
+ const message = createBaseQueryDelegatorValidatorsResponse();
675
+ message.validators = object.validators?.map((e) => e) || [];
676
+ return message;
677
+ },
678
+ };
679
+ function createBaseQueryDelegatorWithdrawAddressRequest() {
680
+ return { delegatorAddress: "" };
681
+ }
682
+ export const QueryDelegatorWithdrawAddressRequest = {
683
+ encode(message, writer = _m0.Writer.create()) {
684
+ if (message.delegatorAddress !== "") {
685
+ writer.uint32(10).string(message.delegatorAddress);
686
+ }
687
+ return writer;
688
+ },
689
+ decode(input, length) {
690
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
691
+ let end = length === undefined ? reader.len : reader.pos + length;
692
+ const message = createBaseQueryDelegatorWithdrawAddressRequest();
693
+ while (reader.pos < end) {
694
+ const tag = reader.uint32();
695
+ switch (tag >>> 3) {
696
+ case 1:
697
+ message.delegatorAddress = reader.string();
698
+ break;
699
+ default:
700
+ reader.skipType(tag & 7);
701
+ break;
702
+ }
703
+ }
704
+ return message;
705
+ },
706
+ fromJSON(object) {
707
+ return { delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "" };
708
+ },
709
+ toJSON(message) {
710
+ const obj = {};
711
+ message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
712
+ return obj;
713
+ },
714
+ fromPartial(object) {
715
+ const message = createBaseQueryDelegatorWithdrawAddressRequest();
716
+ message.delegatorAddress = object.delegatorAddress ?? "";
717
+ return message;
718
+ },
719
+ };
720
+ function createBaseQueryDelegatorWithdrawAddressResponse() {
721
+ return { withdrawAddress: "" };
722
+ }
723
+ export const QueryDelegatorWithdrawAddressResponse = {
724
+ encode(message, writer = _m0.Writer.create()) {
725
+ if (message.withdrawAddress !== "") {
726
+ writer.uint32(10).string(message.withdrawAddress);
727
+ }
728
+ return writer;
729
+ },
730
+ decode(input, length) {
731
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
732
+ let end = length === undefined ? reader.len : reader.pos + length;
733
+ const message = createBaseQueryDelegatorWithdrawAddressResponse();
734
+ while (reader.pos < end) {
735
+ const tag = reader.uint32();
736
+ switch (tag >>> 3) {
737
+ case 1:
738
+ message.withdrawAddress = reader.string();
739
+ break;
740
+ default:
741
+ reader.skipType(tag & 7);
742
+ break;
743
+ }
744
+ }
745
+ return message;
746
+ },
747
+ fromJSON(object) {
748
+ return { withdrawAddress: isSet(object.withdrawAddress) ? String(object.withdrawAddress) : "" };
749
+ },
750
+ toJSON(message) {
751
+ const obj = {};
752
+ message.withdrawAddress !== undefined && (obj.withdrawAddress = message.withdrawAddress);
753
+ return obj;
754
+ },
755
+ fromPartial(object) {
756
+ const message = createBaseQueryDelegatorWithdrawAddressResponse();
757
+ message.withdrawAddress = object.withdrawAddress ?? "";
758
+ return message;
759
+ },
760
+ };
761
+ function createBaseQueryCommunityPoolRequest() {
762
+ return {};
763
+ }
764
+ export const QueryCommunityPoolRequest = {
765
+ encode(_, writer = _m0.Writer.create()) {
766
+ return writer;
767
+ },
768
+ decode(input, length) {
769
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
770
+ let end = length === undefined ? reader.len : reader.pos + length;
771
+ const message = createBaseQueryCommunityPoolRequest();
772
+ while (reader.pos < end) {
773
+ const tag = reader.uint32();
774
+ switch (tag >>> 3) {
775
+ default:
776
+ reader.skipType(tag & 7);
777
+ break;
778
+ }
779
+ }
780
+ return message;
781
+ },
782
+ fromJSON(_) {
783
+ return {};
784
+ },
785
+ toJSON(_) {
786
+ const obj = {};
787
+ return obj;
788
+ },
789
+ fromPartial(_) {
790
+ const message = createBaseQueryCommunityPoolRequest();
791
+ return message;
792
+ },
793
+ };
794
+ function createBaseQueryCommunityPoolResponse() {
795
+ return { pool: [] };
796
+ }
797
+ export const QueryCommunityPoolResponse = {
798
+ encode(message, writer = _m0.Writer.create()) {
799
+ for (const v of message.pool) {
800
+ DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
801
+ }
802
+ return writer;
803
+ },
804
+ decode(input, length) {
805
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
806
+ let end = length === undefined ? reader.len : reader.pos + length;
807
+ const message = createBaseQueryCommunityPoolResponse();
808
+ while (reader.pos < end) {
809
+ const tag = reader.uint32();
810
+ switch (tag >>> 3) {
811
+ case 1:
812
+ message.pool.push(DecCoin.decode(reader, reader.uint32()));
813
+ break;
814
+ default:
815
+ reader.skipType(tag & 7);
816
+ break;
817
+ }
818
+ }
819
+ return message;
820
+ },
821
+ fromJSON(object) {
822
+ return { pool: Array.isArray(object?.pool) ? object.pool.map((e) => DecCoin.fromJSON(e)) : [] };
823
+ },
824
+ toJSON(message) {
825
+ const obj = {};
826
+ if (message.pool) {
827
+ obj.pool = message.pool.map((e) => e ? DecCoin.toJSON(e) : undefined);
828
+ }
829
+ else {
830
+ obj.pool = [];
831
+ }
832
+ return obj;
833
+ },
834
+ fromPartial(object) {
835
+ const message = createBaseQueryCommunityPoolResponse();
836
+ message.pool = object.pool?.map((e) => DecCoin.fromPartial(e)) || [];
837
+ return message;
838
+ },
839
+ };
840
+ export class QueryClientImpl {
841
+ constructor(rpc) {
842
+ this.rpc = rpc;
843
+ this.Params = this.Params.bind(this);
844
+ this.ValidatorOutstandingRewards = this.ValidatorOutstandingRewards.bind(this);
845
+ this.ValidatorCommission = this.ValidatorCommission.bind(this);
846
+ this.ValidatorSlashes = this.ValidatorSlashes.bind(this);
847
+ this.DelegationRewards = this.DelegationRewards.bind(this);
848
+ this.DelegationTotalRewards = this.DelegationTotalRewards.bind(this);
849
+ this.DelegatorValidators = this.DelegatorValidators.bind(this);
850
+ this.DelegatorWithdrawAddress = this.DelegatorWithdrawAddress.bind(this);
851
+ this.CommunityPool = this.CommunityPool.bind(this);
852
+ }
853
+ Params(request) {
854
+ const data = QueryParamsRequest.encode(request).finish();
855
+ const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data);
856
+ return promise.then((data) => QueryParamsResponse.decode(new _m0.Reader(data)));
857
+ }
858
+ ValidatorOutstandingRewards(request) {
859
+ const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish();
860
+ const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data);
861
+ return promise.then((data) => QueryValidatorOutstandingRewardsResponse.decode(new _m0.Reader(data)));
862
+ }
863
+ ValidatorCommission(request) {
864
+ const data = QueryValidatorCommissionRequest.encode(request).finish();
865
+ const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorCommission", data);
866
+ return promise.then((data) => QueryValidatorCommissionResponse.decode(new _m0.Reader(data)));
867
+ }
868
+ ValidatorSlashes(request) {
869
+ const data = QueryValidatorSlashesRequest.encode(request).finish();
870
+ const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorSlashes", data);
871
+ return promise.then((data) => QueryValidatorSlashesResponse.decode(new _m0.Reader(data)));
872
+ }
873
+ DelegationRewards(request) {
874
+ const data = QueryDelegationRewardsRequest.encode(request).finish();
875
+ const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationRewards", data);
876
+ return promise.then((data) => QueryDelegationRewardsResponse.decode(new _m0.Reader(data)));
877
+ }
878
+ DelegationTotalRewards(request) {
879
+ const data = QueryDelegationTotalRewardsRequest.encode(request).finish();
880
+ const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationTotalRewards", data);
881
+ return promise.then((data) => QueryDelegationTotalRewardsResponse.decode(new _m0.Reader(data)));
882
+ }
883
+ DelegatorValidators(request) {
884
+ const data = QueryDelegatorValidatorsRequest.encode(request).finish();
885
+ const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorValidators", data);
886
+ return promise.then((data) => QueryDelegatorValidatorsResponse.decode(new _m0.Reader(data)));
887
+ }
888
+ DelegatorWithdrawAddress(request) {
889
+ const data = QueryDelegatorWithdrawAddressRequest.encode(request).finish();
890
+ const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress", data);
891
+ return promise.then((data) => QueryDelegatorWithdrawAddressResponse.decode(new _m0.Reader(data)));
892
+ }
893
+ CommunityPool(request) {
894
+ const data = QueryCommunityPoolRequest.encode(request).finish();
895
+ const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "CommunityPool", data);
896
+ return promise.then((data) => QueryCommunityPoolResponse.decode(new _m0.Reader(data)));
897
+ }
898
+ }
899
+ var globalThis = (() => {
900
+ if (typeof globalThis !== "undefined") {
901
+ return globalThis;
902
+ }
903
+ if (typeof self !== "undefined") {
904
+ return self;
905
+ }
906
+ if (typeof window !== "undefined") {
907
+ return window;
908
+ }
909
+ if (typeof global !== "undefined") {
910
+ return global;
911
+ }
912
+ throw "Unable to locate global object";
913
+ })();
914
+ function longToNumber(long) {
915
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
916
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
917
+ }
918
+ return long.toNumber();
919
+ }
920
+ if (_m0.util.Long !== Long) {
921
+ _m0.util.Long = Long;
922
+ _m0.configure();
923
+ }
924
+ function isSet(value) {
925
+ return value !== null && value !== undefined;
926
+ }