@iconlake/client 0.0.1

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 (497) hide show
  1. package/client.ts +170 -0
  2. package/cosmos.auth.v1beta1/index.ts +6 -0
  3. package/cosmos.auth.v1beta1/module.ts +102 -0
  4. package/cosmos.auth.v1beta1/registry.ts +7 -0
  5. package/cosmos.auth.v1beta1/rest.ts +641 -0
  6. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  7. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +95 -0
  8. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +1212 -0
  9. package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  10. package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  11. package/cosmos.auth.v1beta1/types/gogoproto/gogo.ts +2 -0
  12. package/cosmos.auth.v1beta1/types/google/api/annotations.ts +2 -0
  13. package/cosmos.auth.v1beta1/types/google/api/http.ts +589 -0
  14. package/cosmos.auth.v1beta1/types/google/protobuf/any.ts +240 -0
  15. package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  16. package/cosmos.auth.v1beta1/types.ts +11 -0
  17. package/cosmos.authz.v1beta1/index.ts +6 -0
  18. package/cosmos.authz.v1beta1/module.ts +207 -0
  19. package/cosmos.authz.v1beta1/registry.ts +13 -0
  20. package/cosmos.authz.v1beta1/rest.ts +604 -0
  21. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.ts +325 -0
  22. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.ts +175 -0
  23. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.ts +78 -0
  24. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.ts +516 -0
  25. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +493 -0
  26. package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  27. package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  28. package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  29. package/cosmos.authz.v1beta1/types/gogoproto/gogo.ts +2 -0
  30. package/cosmos.authz.v1beta1/types/google/api/annotations.ts +2 -0
  31. package/cosmos.authz.v1beta1/types/google/api/http.ts +589 -0
  32. package/cosmos.authz.v1beta1/types/google/protobuf/any.ts +240 -0
  33. package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  34. package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  35. package/cosmos.authz.v1beta1/types.ts +17 -0
  36. package/cosmos.bank.v1beta1/index.ts +6 -0
  37. package/cosmos.bank.v1beta1/module.ts +182 -0
  38. package/cosmos.bank.v1beta1/registry.ts +11 -0
  39. package/cosmos.bank.v1beta1/rest.ts +656 -0
  40. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +77 -0
  41. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +604 -0
  42. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +203 -0
  43. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +1366 -0
  44. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +289 -0
  45. package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  46. package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  47. package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  48. package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  49. package/cosmos.bank.v1beta1/types/gogoproto/gogo.ts +2 -0
  50. package/cosmos.bank.v1beta1/types/google/api/annotations.ts +2 -0
  51. package/cosmos.bank.v1beta1/types/google/api/http.ts +589 -0
  52. package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  53. package/cosmos.bank.v1beta1/types.ts +25 -0
  54. package/cosmos.base.node.v1beta1/index.ts +6 -0
  55. package/cosmos.base.node.v1beta1/module.ts +96 -0
  56. package/cosmos.base.node.v1beta1/registry.ts +7 -0
  57. package/cosmos.base.node.v1beta1/rest.ts +170 -0
  58. package/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.ts +137 -0
  59. package/cosmos.base.node.v1beta1/types/google/api/annotations.ts +2 -0
  60. package/cosmos.base.node.v1beta1/types/google/api/http.ts +589 -0
  61. package/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  62. package/cosmos.base.node.v1beta1/types.ts +5 -0
  63. package/cosmos.base.tendermint.v1beta1/index.ts +6 -0
  64. package/cosmos.base.tendermint.v1beta1/module.ts +110 -0
  65. package/cosmos.base.tendermint.v1beta1/registry.ts +7 -0
  66. package/cosmos.base.tendermint.v1beta1/rest.ts +1147 -0
  67. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  68. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +1646 -0
  69. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.ts +442 -0
  70. package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  71. package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.ts +2 -0
  72. package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.ts +2 -0
  73. package/cosmos.base.tendermint.v1beta1/types/google/api/http.ts +589 -0
  74. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.ts +240 -0
  75. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  76. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  77. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  78. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  79. package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.ts +423 -0
  80. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.ts +112 -0
  81. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.ts +412 -0
  82. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1452 -0
  83. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.ts +308 -0
  84. package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.ts +184 -0
  85. package/cosmos.base.tendermint.v1beta1/types.ts +19 -0
  86. package/cosmos.crisis.v1beta1/index.ts +6 -0
  87. package/cosmos.crisis.v1beta1/module.ts +129 -0
  88. package/cosmos.crisis.v1beta1/registry.ts +9 -0
  89. package/cosmos.crisis.v1beta1/rest.ts +152 -0
  90. package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  91. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.ts +79 -0
  92. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +159 -0
  93. package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  94. package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  95. package/cosmos.crisis.v1beta1/types/gogoproto/gogo.ts +2 -0
  96. package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  97. package/cosmos.crisis.v1beta1/types.ts +5 -0
  98. package/cosmos.distribution.v1beta1/index.ts +6 -0
  99. package/cosmos.distribution.v1beta1/module.ts +266 -0
  100. package/cosmos.distribution.v1beta1/registry.ts +15 -0
  101. package/cosmos.distribution.v1beta1/rest.ts +557 -0
  102. package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  103. package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  104. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +945 -0
  105. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +849 -0
  106. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1289 -0
  107. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +550 -0
  108. package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  109. package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  110. package/cosmos.distribution.v1beta1/types/gogoproto/gogo.ts +2 -0
  111. package/cosmos.distribution.v1beta1/types/google/api/annotations.ts +2 -0
  112. package/cosmos.distribution.v1beta1/types/google/api/http.ts +589 -0
  113. package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  114. package/cosmos.distribution.v1beta1/types.ts +43 -0
  115. package/cosmos.evidence.v1beta1/index.ts +6 -0
  116. package/cosmos.evidence.v1beta1/module.ts +131 -0
  117. package/cosmos.evidence.v1beta1/registry.ts +9 -0
  118. package/cosmos.evidence.v1beta1/rest.ts +402 -0
  119. package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  120. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +161 -0
  121. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.ts +73 -0
  122. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +343 -0
  123. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +213 -0
  124. package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  125. package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  126. package/cosmos.evidence.v1beta1/types/gogoproto/gogo.ts +2 -0
  127. package/cosmos.evidence.v1beta1/types/google/api/annotations.ts +2 -0
  128. package/cosmos.evidence.v1beta1/types/google/api/http.ts +589 -0
  129. package/cosmos.evidence.v1beta1/types/google/protobuf/any.ts +240 -0
  130. package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  131. package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  132. package/cosmos.evidence.v1beta1/types.ts +7 -0
  133. package/cosmos.feegrant.v1beta1/index.ts +6 -0
  134. package/cosmos.feegrant.v1beta1/module.ts +170 -0
  135. package/cosmos.feegrant.v1beta1/registry.ts +11 -0
  136. package/cosmos.feegrant.v1beta1/rest.ts +452 -0
  137. package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  138. package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  139. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.ts +409 -0
  140. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.ts +76 -0
  141. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.ts +484 -0
  142. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.ts +294 -0
  143. package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  144. package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  145. package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.ts +2 -0
  146. package/cosmos.feegrant.v1beta1/types/google/api/annotations.ts +2 -0
  147. package/cosmos.feegrant.v1beta1/types/google/api/http.ts +589 -0
  148. package/cosmos.feegrant.v1beta1/types/google/protobuf/any.ts +240 -0
  149. package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  150. package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.ts +187 -0
  151. package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  152. package/cosmos.feegrant.v1beta1/types.ts +13 -0
  153. package/cosmos.gov.v1/index.ts +6 -0
  154. package/cosmos.gov.v1/module.ts +244 -0
  155. package/cosmos.gov.v1/registry.ts +15 -0
  156. package/cosmos.gov.v1/rest.ts +798 -0
  157. package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  158. package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  159. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +208 -0
  160. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +925 -0
  161. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +1202 -0
  162. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +763 -0
  163. package/cosmos.gov.v1/types/cosmos/msg/v1/msg.ts +2 -0
  164. package/cosmos.gov.v1/types/cosmos_proto/cosmos.ts +247 -0
  165. package/cosmos.gov.v1/types/gogoproto/gogo.ts +2 -0
  166. package/cosmos.gov.v1/types/google/api/annotations.ts +2 -0
  167. package/cosmos.gov.v1/types/google/api/http.ts +589 -0
  168. package/cosmos.gov.v1/types/google/protobuf/any.ts +240 -0
  169. package/cosmos.gov.v1/types/google/protobuf/descriptor.ts +3753 -0
  170. package/cosmos.gov.v1/types/google/protobuf/duration.ts +187 -0
  171. package/cosmos.gov.v1/types/google/protobuf/timestamp.ts +216 -0
  172. package/cosmos.gov.v1/types.ts +21 -0
  173. package/cosmos.gov.v1beta1/index.ts +6 -0
  174. package/cosmos.gov.v1beta1/module.ts +246 -0
  175. package/cosmos.gov.v1beta1/registry.ts +15 -0
  176. package/cosmos.gov.v1beta1/rest.ts +864 -0
  177. package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  178. package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  179. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +206 -0
  180. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +1015 -0
  181. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +1200 -0
  182. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +612 -0
  183. package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  184. package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  185. package/cosmos.gov.v1beta1/types/gogoproto/gogo.ts +2 -0
  186. package/cosmos.gov.v1beta1/types/google/api/annotations.ts +2 -0
  187. package/cosmos.gov.v1beta1/types/google/api/http.ts +589 -0
  188. package/cosmos.gov.v1beta1/types/google/protobuf/any.ts +240 -0
  189. package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  190. package/cosmos.gov.v1beta1/types/google/protobuf/duration.ts +187 -0
  191. package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  192. package/cosmos.gov.v1beta1/types.ts +23 -0
  193. package/cosmos.group.v1/index.ts +6 -0
  194. package/cosmos.group.v1/module.ts +598 -0
  195. package/cosmos.group.v1/registry.ts +35 -0
  196. package/cosmos.group.v1/rest.ts +1162 -0
  197. package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  198. package/cosmos.group.v1/types/cosmos/group/v1/events.ts +568 -0
  199. package/cosmos.group.v1/types/cosmos/group/v1/genesis.ts +228 -0
  200. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +1897 -0
  201. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +2113 -0
  202. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +1422 -0
  203. package/cosmos.group.v1/types/cosmos/msg/v1/msg.ts +2 -0
  204. package/cosmos.group.v1/types/cosmos_proto/cosmos.ts +247 -0
  205. package/cosmos.group.v1/types/gogoproto/gogo.ts +2 -0
  206. package/cosmos.group.v1/types/google/api/annotations.ts +2 -0
  207. package/cosmos.group.v1/types/google/api/http.ts +589 -0
  208. package/cosmos.group.v1/types/google/protobuf/any.ts +240 -0
  209. package/cosmos.group.v1/types/google/protobuf/descriptor.ts +3753 -0
  210. package/cosmos.group.v1/types/google/protobuf/duration.ts +187 -0
  211. package/cosmos.group.v1/types/google/protobuf/timestamp.ts +216 -0
  212. package/cosmos.group.v1/types.ts +45 -0
  213. package/cosmos.mint.v1beta1/index.ts +6 -0
  214. package/cosmos.mint.v1beta1/module.ts +100 -0
  215. package/cosmos.mint.v1beta1/registry.ts +7 -0
  216. package/cosmos.mint.v1beta1/rest.ts +253 -0
  217. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +92 -0
  218. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +234 -0
  219. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.ts +412 -0
  220. package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  221. package/cosmos.mint.v1beta1/types/gogoproto/gogo.ts +2 -0
  222. package/cosmos.mint.v1beta1/types/google/api/annotations.ts +2 -0
  223. package/cosmos.mint.v1beta1/types/google/api/http.ts +589 -0
  224. package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  225. package/cosmos.mint.v1beta1/types.ts +9 -0
  226. package/cosmos.nft.v1beta1/index.ts +6 -0
  227. package/cosmos.nft.v1beta1/module.ts +108 -0
  228. package/cosmos.nft.v1beta1/registry.ts +7 -0
  229. package/cosmos.nft.v1beta1/rest.ts +685 -0
  230. package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  231. package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  232. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +251 -0
  233. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +163 -0
  234. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.ts +240 -0
  235. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +964 -0
  236. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.ts +173 -0
  237. package/cosmos.nft.v1beta1/types/google/api/annotations.ts +2 -0
  238. package/cosmos.nft.v1beta1/types/google/api/http.ts +589 -0
  239. package/cosmos.nft.v1beta1/types/google/protobuf/any.ts +240 -0
  240. package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  241. package/cosmos.nft.v1beta1/types.ts +17 -0
  242. package/cosmos.params.v1beta1/index.ts +6 -0
  243. package/cosmos.params.v1beta1/module.ts +102 -0
  244. package/cosmos.params.v1beta1/registry.ts +7 -0
  245. package/cosmos.params.v1beta1/rest.ts +220 -0
  246. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.ts +174 -0
  247. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.ts +364 -0
  248. package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  249. package/cosmos.params.v1beta1/types/gogoproto/gogo.ts +2 -0
  250. package/cosmos.params.v1beta1/types/google/api/annotations.ts +2 -0
  251. package/cosmos.params.v1beta1/types/google/api/http.ts +589 -0
  252. package/cosmos.params.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  253. package/cosmos.params.v1beta1/types.ts +11 -0
  254. package/cosmos.slashing.v1beta1/index.ts +6 -0
  255. package/cosmos.slashing.v1beta1/module.ts +139 -0
  256. package/cosmos.slashing.v1beta1/registry.ts +9 -0
  257. package/cosmos.slashing.v1beta1/rest.ts +368 -0
  258. package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  259. package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  260. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +364 -0
  261. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.ts +411 -0
  262. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.ts +352 -0
  263. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +141 -0
  264. package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  265. package/cosmos.slashing.v1beta1/types/gogoproto/gogo.ts +2 -0
  266. package/cosmos.slashing.v1beta1/types/google/api/annotations.ts +2 -0
  267. package/cosmos.slashing.v1beta1/types/google/api/http.ts +589 -0
  268. package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  269. package/cosmos.slashing.v1beta1/types/google/protobuf/duration.ts +187 -0
  270. package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  271. package/cosmos.slashing.v1beta1/types.ts +15 -0
  272. package/cosmos.staking.v1beta1/index.ts +6 -0
  273. package/cosmos.staking.v1beta1/module.ts +340 -0
  274. package/cosmos.staking.v1beta1/registry.ts +19 -0
  275. package/cosmos.staking.v1beta1/rest.ts +1239 -0
  276. package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  277. package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  278. package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  279. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.ts +245 -0
  280. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +322 -0
  281. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +2109 -0
  282. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +1829 -0
  283. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1005 -0
  284. package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  285. package/cosmos.staking.v1beta1/types/gogoproto/gogo.ts +2 -0
  286. package/cosmos.staking.v1beta1/types/google/api/annotations.ts +2 -0
  287. package/cosmos.staking.v1beta1/types/google/api/http.ts +589 -0
  288. package/cosmos.staking.v1beta1/types/google/protobuf/any.ts +240 -0
  289. package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  290. package/cosmos.staking.v1beta1/types/google/protobuf/duration.ts +187 -0
  291. package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  292. package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  293. package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  294. package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1452 -0
  295. package/cosmos.staking.v1beta1/types/tendermint/types/validator.ts +308 -0
  296. package/cosmos.staking.v1beta1/types/tendermint/version/types.ts +184 -0
  297. package/cosmos.staking.v1beta1/types.ts +51 -0
  298. package/cosmos.tx.v1beta1/index.ts +6 -0
  299. package/cosmos.tx.v1beta1/module.ts +122 -0
  300. package/cosmos.tx.v1beta1/registry.ts +7 -0
  301. package/cosmos.tx.v1beta1/rest.ts +1372 -0
  302. package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.ts +1040 -0
  303. package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  304. package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  305. package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.ts +195 -0
  306. package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.ts +556 -0
  307. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +1057 -0
  308. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.ts +1355 -0
  309. package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  310. package/cosmos.tx.v1beta1/types/gogoproto/gogo.ts +2 -0
  311. package/cosmos.tx.v1beta1/types/google/api/annotations.ts +2 -0
  312. package/cosmos.tx.v1beta1/types/google/api/http.ts +589 -0
  313. package/cosmos.tx.v1beta1/types/google/protobuf/any.ts +240 -0
  314. package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  315. package/cosmos.tx.v1beta1/types/google/protobuf/duration.ts +187 -0
  316. package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  317. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +4154 -0
  318. package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  319. package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  320. package/cosmos.tx.v1beta1/types/tendermint/types/block.ts +112 -0
  321. package/cosmos.tx.v1beta1/types/tendermint/types/evidence.ts +412 -0
  322. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +514 -0
  323. package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1452 -0
  324. package/cosmos.tx.v1beta1/types/tendermint/types/validator.ts +308 -0
  325. package/cosmos.tx.v1beta1/types/tendermint/version/types.ts +184 -0
  326. package/cosmos.tx.v1beta1/types.ts +31 -0
  327. package/cosmos.upgrade.v1beta1/index.ts +6 -0
  328. package/cosmos.upgrade.v1beta1/module.ts +170 -0
  329. package/cosmos.upgrade.v1beta1/registry.ts +11 -0
  330. package/cosmos.upgrade.v1beta1/rest.ts +468 -0
  331. package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  332. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.ts +728 -0
  333. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +284 -0
  334. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  335. package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  336. package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.ts +2 -0
  337. package/cosmos.upgrade.v1beta1/types/google/api/annotations.ts +2 -0
  338. package/cosmos.upgrade.v1beta1/types/google/api/http.ts +589 -0
  339. package/cosmos.upgrade.v1beta1/types/google/protobuf/any.ts +240 -0
  340. package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  341. package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  342. package/cosmos.upgrade.v1beta1/types.ts +13 -0
  343. package/cosmos.vesting.v1beta1/index.ts +6 -0
  344. package/cosmos.vesting.v1beta1/module.ts +207 -0
  345. package/cosmos.vesting.v1beta1/registry.ts +13 -0
  346. package/cosmos.vesting.v1beta1/rest.ts +297 -0
  347. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  348. package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  349. package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  350. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +540 -0
  351. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +529 -0
  352. package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  353. package/cosmos.vesting.v1beta1/types/gogoproto/gogo.ts +2 -0
  354. package/cosmos.vesting.v1beta1/types/google/protobuf/any.ts +240 -0
  355. package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  356. package/cosmos.vesting.v1beta1/types.ts +17 -0
  357. package/env.ts +7 -0
  358. package/helpers.ts +32 -0
  359. package/ibc.applications.interchain_accounts.controller.v1/index.ts +6 -0
  360. package/ibc.applications.interchain_accounts.controller.v1/module.ts +98 -0
  361. package/ibc.applications.interchain_accounts.controller.v1/registry.ts +7 -0
  362. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +346 -0
  363. package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.ts +2 -0
  364. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.ts +2 -0
  365. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.ts +589 -0
  366. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.ts +240 -0
  367. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.ts +3753 -0
  368. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +75 -0
  369. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.ts +274 -0
  370. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +361 -0
  371. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.ts +234 -0
  372. package/ibc.applications.interchain_accounts.controller.v1/types.ts +7 -0
  373. package/ibc.applications.interchain_accounts.host.v1/index.ts +6 -0
  374. package/ibc.applications.interchain_accounts.host.v1/module.ts +98 -0
  375. package/ibc.applications.interchain_accounts.host.v1/registry.ts +7 -0
  376. package/ibc.applications.interchain_accounts.host.v1/rest.ts +183 -0
  377. package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.ts +2 -0
  378. package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.ts +2 -0
  379. package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.ts +589 -0
  380. package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.ts +3753 -0
  381. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.ts +92 -0
  382. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.ts +141 -0
  383. package/ibc.applications.interchain_accounts.host.v1/types.ts +7 -0
  384. package/ibc.applications.transfer.v1/index.ts +6 -0
  385. package/ibc.applications.transfer.v1/module.ts +133 -0
  386. package/ibc.applications.transfer.v1/registry.ts +9 -0
  387. package/ibc.applications.transfer.v1/rest.ts +544 -0
  388. package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  389. package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  390. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  391. package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.ts +247 -0
  392. package/ibc.applications.transfer.v1/types/gogoproto/gogo.ts +2 -0
  393. package/ibc.applications.transfer.v1/types/google/api/annotations.ts +2 -0
  394. package/ibc.applications.transfer.v1/types/google/api/http.ts +589 -0
  395. package/ibc.applications.transfer.v1/types/google/protobuf/any.ts +240 -0
  396. package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.ts +3753 -0
  397. package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.ts +216 -0
  398. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +100 -0
  399. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +659 -0
  400. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.ts +168 -0
  401. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.ts +287 -0
  402. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +608 -0
  403. package/ibc.applications.transfer.v1/types.ts +9 -0
  404. package/ibc.core.channel.v1/index.ts +6 -0
  405. package/ibc.core.channel.v1/module.ts +112 -0
  406. package/ibc.core.channel.v1/registry.ts +7 -0
  407. package/ibc.core.channel.v1/rest.ts +1375 -0
  408. package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  409. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  410. package/ibc.core.channel.v1/types/cosmos_proto/cosmos.ts +247 -0
  411. package/ibc.core.channel.v1/types/gogoproto/gogo.ts +2 -0
  412. package/ibc.core.channel.v1/types/google/api/annotations.ts +2 -0
  413. package/ibc.core.channel.v1/types/google/api/http.ts +589 -0
  414. package/ibc.core.channel.v1/types/google/protobuf/any.ts +240 -0
  415. package/ibc.core.channel.v1/types/google/protobuf/descriptor.ts +3753 -0
  416. package/ibc.core.channel.v1/types/google/protobuf/timestamp.ts +216 -0
  417. package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.ts +905 -0
  418. package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.ts +301 -0
  419. package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.ts +2472 -0
  420. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +1784 -0
  421. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +608 -0
  422. package/ibc.core.channel.v1/types.ts +21 -0
  423. package/ibc.core.client.v1/index.ts +6 -0
  424. package/ibc.core.client.v1/module.ts +114 -0
  425. package/ibc.core.client.v1/registry.ts +7 -0
  426. package/ibc.core.client.v1/rest.ts +1084 -0
  427. package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  428. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  429. package/ibc.core.client.v1/types/cosmos_proto/cosmos.ts +247 -0
  430. package/ibc.core.client.v1/types/gogoproto/gogo.ts +2 -0
  431. package/ibc.core.client.v1/types/google/api/annotations.ts +2 -0
  432. package/ibc.core.client.v1/types/google/api/http.ts +589 -0
  433. package/ibc.core.client.v1/types/google/protobuf/any.ts +240 -0
  434. package/ibc.core.client.v1/types/google/protobuf/descriptor.ts +3753 -0
  435. package/ibc.core.client.v1/types/google/protobuf/timestamp.ts +216 -0
  436. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +608 -0
  437. package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.ts +357 -0
  438. package/ibc.core.client.v1/types/ibc/core/client/v1/query.ts +1390 -0
  439. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +691 -0
  440. package/ibc.core.client.v1/types.ts +23 -0
  441. package/ibc.core.connection.v1/index.ts +6 -0
  442. package/ibc.core.connection.v1/module.ts +110 -0
  443. package/ibc.core.connection.v1/registry.ts +7 -0
  444. package/ibc.core.connection.v1/rest.ts +889 -0
  445. package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  446. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  447. package/ibc.core.connection.v1/types/cosmos_proto/cosmos.ts +247 -0
  448. package/ibc.core.connection.v1/types/gogoproto/gogo.ts +2 -0
  449. package/ibc.core.connection.v1/types/google/api/annotations.ts +2 -0
  450. package/ibc.core.connection.v1/types/google/api/http.ts +589 -0
  451. package/ibc.core.connection.v1/types/google/protobuf/any.ts +240 -0
  452. package/ibc.core.connection.v1/types/google/protobuf/descriptor.ts +3753 -0
  453. package/ibc.core.connection.v1/types/google/protobuf/timestamp.ts +216 -0
  454. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +608 -0
  455. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +299 -0
  456. package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.ts +698 -0
  457. package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.ts +152 -0
  458. package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.ts +1041 -0
  459. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +908 -0
  460. package/ibc.core.connection.v1/types/proofs.ts +1408 -0
  461. package/ibc.core.connection.v1/types.ts +19 -0
  462. package/iconlake.icon/index.ts +6 -0
  463. package/iconlake.icon/module.ts +135 -0
  464. package/iconlake.icon/registry.ts +9 -0
  465. package/iconlake.icon/rest.ts +206 -0
  466. package/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  467. package/iconlake.icon/types/gogoproto/gogo.ts +2 -0
  468. package/iconlake.icon/types/google/api/annotations.ts +2 -0
  469. package/iconlake.icon/types/google/api/http.ts +589 -0
  470. package/iconlake.icon/types/google/protobuf/descriptor.ts +3753 -0
  471. package/iconlake.icon/types/iconlake/icon/genesis.ts +74 -0
  472. package/iconlake.icon/types/iconlake/icon/params.ts +58 -0
  473. package/iconlake.icon/types/iconlake/icon/query.ts +276 -0
  474. package/iconlake.icon/types/iconlake/icon/tx.ts +374 -0
  475. package/iconlake.icon/types.ts +11 -0
  476. package/iconlake.iconlake/index.ts +6 -0
  477. package/iconlake.iconlake/module.ts +133 -0
  478. package/iconlake.iconlake/registry.ts +9 -0
  479. package/iconlake.iconlake/rest.ts +342 -0
  480. package/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  481. package/iconlake.iconlake/types/cosmos/base/v1beta1/coin.ts +261 -0
  482. package/iconlake.iconlake/types/cosmos_proto/cosmos.ts +247 -0
  483. package/iconlake.iconlake/types/gogoproto/gogo.ts +2 -0
  484. package/iconlake.iconlake/types/google/api/annotations.ts +2 -0
  485. package/iconlake.iconlake/types/google/api/http.ts +589 -0
  486. package/iconlake.iconlake/types/google/protobuf/descriptor.ts +3753 -0
  487. package/iconlake.iconlake/types/iconlake/iconlake/account.ts +140 -0
  488. package/iconlake.iconlake/types/iconlake/iconlake/genesis.ts +91 -0
  489. package/iconlake.iconlake/types/iconlake/iconlake/params.ts +58 -0
  490. package/iconlake.iconlake/types/iconlake/iconlake/query.ts +388 -0
  491. package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +214 -0
  492. package/iconlake.iconlake/types.ts +9 -0
  493. package/index.ts +75 -0
  494. package/modules.ts +5 -0
  495. package/package.json +35 -0
  496. package/tsconfig.json +12 -0
  497. package/types.d.ts +21 -0
@@ -0,0 +1,945 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ import { Coin, DecCoin } from "../../base/v1beta1/coin";
5
+
6
+ export const protobufPackage = "cosmos.distribution.v1beta1";
7
+
8
+ /** Params defines the set of params for the distribution module. */
9
+ export interface Params {
10
+ communityTax: string;
11
+ baseProposerReward: string;
12
+ bonusProposerReward: string;
13
+ withdrawAddrEnabled: boolean;
14
+ }
15
+
16
+ /**
17
+ * ValidatorHistoricalRewards represents historical rewards for a validator.
18
+ * Height is implicit within the store key.
19
+ * Cumulative reward ratio is the sum from the zeroeth period
20
+ * until this period of rewards / tokens, per the spec.
21
+ * The reference count indicates the number of objects
22
+ * which might need to reference this historical entry at any point.
23
+ * ReferenceCount =
24
+ * number of outstanding delegations which ended the associated period (and
25
+ * might need to read that record)
26
+ * + number of slashes which ended the associated period (and might need to
27
+ * read that record)
28
+ * + one per validator for the zeroeth period, set on initialization
29
+ */
30
+ export interface ValidatorHistoricalRewards {
31
+ cumulativeRewardRatio: DecCoin[];
32
+ referenceCount: number;
33
+ }
34
+
35
+ /**
36
+ * ValidatorCurrentRewards represents current rewards and current
37
+ * period for a validator kept as a running counter and incremented
38
+ * each block as long as the validator's tokens remain constant.
39
+ */
40
+ export interface ValidatorCurrentRewards {
41
+ rewards: DecCoin[];
42
+ period: number;
43
+ }
44
+
45
+ /**
46
+ * ValidatorAccumulatedCommission represents accumulated commission
47
+ * for a validator kept as a running counter, can be withdrawn at any time.
48
+ */
49
+ export interface ValidatorAccumulatedCommission {
50
+ commission: DecCoin[];
51
+ }
52
+
53
+ /**
54
+ * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
55
+ * for a validator inexpensive to track, allows simple sanity checks.
56
+ */
57
+ export interface ValidatorOutstandingRewards {
58
+ rewards: DecCoin[];
59
+ }
60
+
61
+ /**
62
+ * ValidatorSlashEvent represents a validator slash event.
63
+ * Height is implicit within the store key.
64
+ * This is needed to calculate appropriate amount of staking tokens
65
+ * for delegations which are withdrawn after a slash has occurred.
66
+ */
67
+ export interface ValidatorSlashEvent {
68
+ validatorPeriod: number;
69
+ fraction: string;
70
+ }
71
+
72
+ /** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */
73
+ export interface ValidatorSlashEvents {
74
+ validatorSlashEvents: ValidatorSlashEvent[];
75
+ }
76
+
77
+ /** FeePool is the global fee pool for distribution. */
78
+ export interface FeePool {
79
+ communityPool: DecCoin[];
80
+ }
81
+
82
+ /**
83
+ * CommunityPoolSpendProposal details a proposal for use of community funds,
84
+ * together with how many coins are proposed to be spent, and to which
85
+ * recipient account.
86
+ */
87
+ export interface CommunityPoolSpendProposal {
88
+ title: string;
89
+ description: string;
90
+ recipient: string;
91
+ amount: Coin[];
92
+ }
93
+
94
+ /**
95
+ * DelegatorStartingInfo represents the starting info for a delegator reward
96
+ * period. It tracks the previous validator period, the delegation's amount of
97
+ * staking token, and the creation height (to check later on if any slashes have
98
+ * occurred). NOTE: Even though validators are slashed to whole staking tokens,
99
+ * the delegators within the validator may be left with less than a full token,
100
+ * thus sdk.Dec is used.
101
+ */
102
+ export interface DelegatorStartingInfo {
103
+ previousPeriod: number;
104
+ stake: string;
105
+ height: number;
106
+ }
107
+
108
+ /**
109
+ * DelegationDelegatorReward represents the properties
110
+ * of a delegator's delegation reward.
111
+ */
112
+ export interface DelegationDelegatorReward {
113
+ validatorAddress: string;
114
+ reward: DecCoin[];
115
+ }
116
+
117
+ /**
118
+ * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
119
+ * with a deposit
120
+ */
121
+ export interface CommunityPoolSpendProposalWithDeposit {
122
+ title: string;
123
+ description: string;
124
+ recipient: string;
125
+ amount: string;
126
+ deposit: string;
127
+ }
128
+
129
+ function createBaseParams(): Params {
130
+ return { communityTax: "", baseProposerReward: "", bonusProposerReward: "", withdrawAddrEnabled: false };
131
+ }
132
+
133
+ export const Params = {
134
+ encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
135
+ if (message.communityTax !== "") {
136
+ writer.uint32(10).string(message.communityTax);
137
+ }
138
+ if (message.baseProposerReward !== "") {
139
+ writer.uint32(18).string(message.baseProposerReward);
140
+ }
141
+ if (message.bonusProposerReward !== "") {
142
+ writer.uint32(26).string(message.bonusProposerReward);
143
+ }
144
+ if (message.withdrawAddrEnabled === true) {
145
+ writer.uint32(32).bool(message.withdrawAddrEnabled);
146
+ }
147
+ return writer;
148
+ },
149
+
150
+ decode(input: _m0.Reader | Uint8Array, length?: number): Params {
151
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
152
+ let end = length === undefined ? reader.len : reader.pos + length;
153
+ const message = createBaseParams();
154
+ while (reader.pos < end) {
155
+ const tag = reader.uint32();
156
+ switch (tag >>> 3) {
157
+ case 1:
158
+ message.communityTax = reader.string();
159
+ break;
160
+ case 2:
161
+ message.baseProposerReward = reader.string();
162
+ break;
163
+ case 3:
164
+ message.bonusProposerReward = reader.string();
165
+ break;
166
+ case 4:
167
+ message.withdrawAddrEnabled = reader.bool();
168
+ break;
169
+ default:
170
+ reader.skipType(tag & 7);
171
+ break;
172
+ }
173
+ }
174
+ return message;
175
+ },
176
+
177
+ fromJSON(object: any): Params {
178
+ return {
179
+ communityTax: isSet(object.communityTax) ? String(object.communityTax) : "",
180
+ baseProposerReward: isSet(object.baseProposerReward) ? String(object.baseProposerReward) : "",
181
+ bonusProposerReward: isSet(object.bonusProposerReward) ? String(object.bonusProposerReward) : "",
182
+ withdrawAddrEnabled: isSet(object.withdrawAddrEnabled) ? Boolean(object.withdrawAddrEnabled) : false,
183
+ };
184
+ },
185
+
186
+ toJSON(message: Params): unknown {
187
+ const obj: any = {};
188
+ message.communityTax !== undefined && (obj.communityTax = message.communityTax);
189
+ message.baseProposerReward !== undefined && (obj.baseProposerReward = message.baseProposerReward);
190
+ message.bonusProposerReward !== undefined && (obj.bonusProposerReward = message.bonusProposerReward);
191
+ message.withdrawAddrEnabled !== undefined && (obj.withdrawAddrEnabled = message.withdrawAddrEnabled);
192
+ return obj;
193
+ },
194
+
195
+ fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
196
+ const message = createBaseParams();
197
+ message.communityTax = object.communityTax ?? "";
198
+ message.baseProposerReward = object.baseProposerReward ?? "";
199
+ message.bonusProposerReward = object.bonusProposerReward ?? "";
200
+ message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false;
201
+ return message;
202
+ },
203
+ };
204
+
205
+ function createBaseValidatorHistoricalRewards(): ValidatorHistoricalRewards {
206
+ return { cumulativeRewardRatio: [], referenceCount: 0 };
207
+ }
208
+
209
+ export const ValidatorHistoricalRewards = {
210
+ encode(message: ValidatorHistoricalRewards, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
211
+ for (const v of message.cumulativeRewardRatio) {
212
+ DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
213
+ }
214
+ if (message.referenceCount !== 0) {
215
+ writer.uint32(16).uint32(message.referenceCount);
216
+ }
217
+ return writer;
218
+ },
219
+
220
+ decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorHistoricalRewards {
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 = createBaseValidatorHistoricalRewards();
224
+ while (reader.pos < end) {
225
+ const tag = reader.uint32();
226
+ switch (tag >>> 3) {
227
+ case 1:
228
+ message.cumulativeRewardRatio.push(DecCoin.decode(reader, reader.uint32()));
229
+ break;
230
+ case 2:
231
+ message.referenceCount = reader.uint32();
232
+ break;
233
+ default:
234
+ reader.skipType(tag & 7);
235
+ break;
236
+ }
237
+ }
238
+ return message;
239
+ },
240
+
241
+ fromJSON(object: any): ValidatorHistoricalRewards {
242
+ return {
243
+ cumulativeRewardRatio: Array.isArray(object?.cumulativeRewardRatio)
244
+ ? object.cumulativeRewardRatio.map((e: any) => DecCoin.fromJSON(e))
245
+ : [],
246
+ referenceCount: isSet(object.referenceCount) ? Number(object.referenceCount) : 0,
247
+ };
248
+ },
249
+
250
+ toJSON(message: ValidatorHistoricalRewards): unknown {
251
+ const obj: any = {};
252
+ if (message.cumulativeRewardRatio) {
253
+ obj.cumulativeRewardRatio = message.cumulativeRewardRatio.map((e) => e ? DecCoin.toJSON(e) : undefined);
254
+ } else {
255
+ obj.cumulativeRewardRatio = [];
256
+ }
257
+ message.referenceCount !== undefined && (obj.referenceCount = Math.round(message.referenceCount));
258
+ return obj;
259
+ },
260
+
261
+ fromPartial<I extends Exact<DeepPartial<ValidatorHistoricalRewards>, I>>(object: I): ValidatorHistoricalRewards {
262
+ const message = createBaseValidatorHistoricalRewards();
263
+ message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map((e) => DecCoin.fromPartial(e)) || [];
264
+ message.referenceCount = object.referenceCount ?? 0;
265
+ return message;
266
+ },
267
+ };
268
+
269
+ function createBaseValidatorCurrentRewards(): ValidatorCurrentRewards {
270
+ return { rewards: [], period: 0 };
271
+ }
272
+
273
+ export const ValidatorCurrentRewards = {
274
+ encode(message: ValidatorCurrentRewards, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
275
+ for (const v of message.rewards) {
276
+ DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
277
+ }
278
+ if (message.period !== 0) {
279
+ writer.uint32(16).uint64(message.period);
280
+ }
281
+ return writer;
282
+ },
283
+
284
+ decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorCurrentRewards {
285
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
286
+ let end = length === undefined ? reader.len : reader.pos + length;
287
+ const message = createBaseValidatorCurrentRewards();
288
+ while (reader.pos < end) {
289
+ const tag = reader.uint32();
290
+ switch (tag >>> 3) {
291
+ case 1:
292
+ message.rewards.push(DecCoin.decode(reader, reader.uint32()));
293
+ break;
294
+ case 2:
295
+ message.period = longToNumber(reader.uint64() as Long);
296
+ break;
297
+ default:
298
+ reader.skipType(tag & 7);
299
+ break;
300
+ }
301
+ }
302
+ return message;
303
+ },
304
+
305
+ fromJSON(object: any): ValidatorCurrentRewards {
306
+ return {
307
+ rewards: Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [],
308
+ period: isSet(object.period) ? Number(object.period) : 0,
309
+ };
310
+ },
311
+
312
+ toJSON(message: ValidatorCurrentRewards): unknown {
313
+ const obj: any = {};
314
+ if (message.rewards) {
315
+ obj.rewards = message.rewards.map((e) => e ? DecCoin.toJSON(e) : undefined);
316
+ } else {
317
+ obj.rewards = [];
318
+ }
319
+ message.period !== undefined && (obj.period = Math.round(message.period));
320
+ return obj;
321
+ },
322
+
323
+ fromPartial<I extends Exact<DeepPartial<ValidatorCurrentRewards>, I>>(object: I): ValidatorCurrentRewards {
324
+ const message = createBaseValidatorCurrentRewards();
325
+ message.rewards = object.rewards?.map((e) => DecCoin.fromPartial(e)) || [];
326
+ message.period = object.period ?? 0;
327
+ return message;
328
+ },
329
+ };
330
+
331
+ function createBaseValidatorAccumulatedCommission(): ValidatorAccumulatedCommission {
332
+ return { commission: [] };
333
+ }
334
+
335
+ export const ValidatorAccumulatedCommission = {
336
+ encode(message: ValidatorAccumulatedCommission, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
337
+ for (const v of message.commission) {
338
+ DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
339
+ }
340
+ return writer;
341
+ },
342
+
343
+ decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorAccumulatedCommission {
344
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
345
+ let end = length === undefined ? reader.len : reader.pos + length;
346
+ const message = createBaseValidatorAccumulatedCommission();
347
+ while (reader.pos < end) {
348
+ const tag = reader.uint32();
349
+ switch (tag >>> 3) {
350
+ case 1:
351
+ message.commission.push(DecCoin.decode(reader, reader.uint32()));
352
+ break;
353
+ default:
354
+ reader.skipType(tag & 7);
355
+ break;
356
+ }
357
+ }
358
+ return message;
359
+ },
360
+
361
+ fromJSON(object: any): ValidatorAccumulatedCommission {
362
+ return {
363
+ commission: Array.isArray(object?.commission) ? object.commission.map((e: any) => DecCoin.fromJSON(e)) : [],
364
+ };
365
+ },
366
+
367
+ toJSON(message: ValidatorAccumulatedCommission): unknown {
368
+ const obj: any = {};
369
+ if (message.commission) {
370
+ obj.commission = message.commission.map((e) => e ? DecCoin.toJSON(e) : undefined);
371
+ } else {
372
+ obj.commission = [];
373
+ }
374
+ return obj;
375
+ },
376
+
377
+ fromPartial<I extends Exact<DeepPartial<ValidatorAccumulatedCommission>, I>>(
378
+ object: I,
379
+ ): ValidatorAccumulatedCommission {
380
+ const message = createBaseValidatorAccumulatedCommission();
381
+ message.commission = object.commission?.map((e) => DecCoin.fromPartial(e)) || [];
382
+ return message;
383
+ },
384
+ };
385
+
386
+ function createBaseValidatorOutstandingRewards(): ValidatorOutstandingRewards {
387
+ return { rewards: [] };
388
+ }
389
+
390
+ export const ValidatorOutstandingRewards = {
391
+ encode(message: ValidatorOutstandingRewards, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
392
+ for (const v of message.rewards) {
393
+ DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
394
+ }
395
+ return writer;
396
+ },
397
+
398
+ decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorOutstandingRewards {
399
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
400
+ let end = length === undefined ? reader.len : reader.pos + length;
401
+ const message = createBaseValidatorOutstandingRewards();
402
+ while (reader.pos < end) {
403
+ const tag = reader.uint32();
404
+ switch (tag >>> 3) {
405
+ case 1:
406
+ message.rewards.push(DecCoin.decode(reader, reader.uint32()));
407
+ break;
408
+ default:
409
+ reader.skipType(tag & 7);
410
+ break;
411
+ }
412
+ }
413
+ return message;
414
+ },
415
+
416
+ fromJSON(object: any): ValidatorOutstandingRewards {
417
+ return { rewards: Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [] };
418
+ },
419
+
420
+ toJSON(message: ValidatorOutstandingRewards): unknown {
421
+ const obj: any = {};
422
+ if (message.rewards) {
423
+ obj.rewards = message.rewards.map((e) => e ? DecCoin.toJSON(e) : undefined);
424
+ } else {
425
+ obj.rewards = [];
426
+ }
427
+ return obj;
428
+ },
429
+
430
+ fromPartial<I extends Exact<DeepPartial<ValidatorOutstandingRewards>, I>>(object: I): ValidatorOutstandingRewards {
431
+ const message = createBaseValidatorOutstandingRewards();
432
+ message.rewards = object.rewards?.map((e) => DecCoin.fromPartial(e)) || [];
433
+ return message;
434
+ },
435
+ };
436
+
437
+ function createBaseValidatorSlashEvent(): ValidatorSlashEvent {
438
+ return { validatorPeriod: 0, fraction: "" };
439
+ }
440
+
441
+ export const ValidatorSlashEvent = {
442
+ encode(message: ValidatorSlashEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
443
+ if (message.validatorPeriod !== 0) {
444
+ writer.uint32(8).uint64(message.validatorPeriod);
445
+ }
446
+ if (message.fraction !== "") {
447
+ writer.uint32(18).string(message.fraction);
448
+ }
449
+ return writer;
450
+ },
451
+
452
+ decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvent {
453
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
454
+ let end = length === undefined ? reader.len : reader.pos + length;
455
+ const message = createBaseValidatorSlashEvent();
456
+ while (reader.pos < end) {
457
+ const tag = reader.uint32();
458
+ switch (tag >>> 3) {
459
+ case 1:
460
+ message.validatorPeriod = longToNumber(reader.uint64() as Long);
461
+ break;
462
+ case 2:
463
+ message.fraction = reader.string();
464
+ break;
465
+ default:
466
+ reader.skipType(tag & 7);
467
+ break;
468
+ }
469
+ }
470
+ return message;
471
+ },
472
+
473
+ fromJSON(object: any): ValidatorSlashEvent {
474
+ return {
475
+ validatorPeriod: isSet(object.validatorPeriod) ? Number(object.validatorPeriod) : 0,
476
+ fraction: isSet(object.fraction) ? String(object.fraction) : "",
477
+ };
478
+ },
479
+
480
+ toJSON(message: ValidatorSlashEvent): unknown {
481
+ const obj: any = {};
482
+ message.validatorPeriod !== undefined && (obj.validatorPeriod = Math.round(message.validatorPeriod));
483
+ message.fraction !== undefined && (obj.fraction = message.fraction);
484
+ return obj;
485
+ },
486
+
487
+ fromPartial<I extends Exact<DeepPartial<ValidatorSlashEvent>, I>>(object: I): ValidatorSlashEvent {
488
+ const message = createBaseValidatorSlashEvent();
489
+ message.validatorPeriod = object.validatorPeriod ?? 0;
490
+ message.fraction = object.fraction ?? "";
491
+ return message;
492
+ },
493
+ };
494
+
495
+ function createBaseValidatorSlashEvents(): ValidatorSlashEvents {
496
+ return { validatorSlashEvents: [] };
497
+ }
498
+
499
+ export const ValidatorSlashEvents = {
500
+ encode(message: ValidatorSlashEvents, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
501
+ for (const v of message.validatorSlashEvents) {
502
+ ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).ldelim();
503
+ }
504
+ return writer;
505
+ },
506
+
507
+ decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvents {
508
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
509
+ let end = length === undefined ? reader.len : reader.pos + length;
510
+ const message = createBaseValidatorSlashEvents();
511
+ while (reader.pos < end) {
512
+ const tag = reader.uint32();
513
+ switch (tag >>> 3) {
514
+ case 1:
515
+ message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
516
+ break;
517
+ default:
518
+ reader.skipType(tag & 7);
519
+ break;
520
+ }
521
+ }
522
+ return message;
523
+ },
524
+
525
+ fromJSON(object: any): ValidatorSlashEvents {
526
+ return {
527
+ validatorSlashEvents: Array.isArray(object?.validatorSlashEvents)
528
+ ? object.validatorSlashEvents.map((e: any) => ValidatorSlashEvent.fromJSON(e))
529
+ : [],
530
+ };
531
+ },
532
+
533
+ toJSON(message: ValidatorSlashEvents): unknown {
534
+ const obj: any = {};
535
+ if (message.validatorSlashEvents) {
536
+ obj.validatorSlashEvents = message.validatorSlashEvents.map((e) => e ? ValidatorSlashEvent.toJSON(e) : undefined);
537
+ } else {
538
+ obj.validatorSlashEvents = [];
539
+ }
540
+ return obj;
541
+ },
542
+
543
+ fromPartial<I extends Exact<DeepPartial<ValidatorSlashEvents>, I>>(object: I): ValidatorSlashEvents {
544
+ const message = createBaseValidatorSlashEvents();
545
+ message.validatorSlashEvents = object.validatorSlashEvents?.map((e) => ValidatorSlashEvent.fromPartial(e)) || [];
546
+ return message;
547
+ },
548
+ };
549
+
550
+ function createBaseFeePool(): FeePool {
551
+ return { communityPool: [] };
552
+ }
553
+
554
+ export const FeePool = {
555
+ encode(message: FeePool, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
556
+ for (const v of message.communityPool) {
557
+ DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
558
+ }
559
+ return writer;
560
+ },
561
+
562
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeePool {
563
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
564
+ let end = length === undefined ? reader.len : reader.pos + length;
565
+ const message = createBaseFeePool();
566
+ while (reader.pos < end) {
567
+ const tag = reader.uint32();
568
+ switch (tag >>> 3) {
569
+ case 1:
570
+ message.communityPool.push(DecCoin.decode(reader, reader.uint32()));
571
+ break;
572
+ default:
573
+ reader.skipType(tag & 7);
574
+ break;
575
+ }
576
+ }
577
+ return message;
578
+ },
579
+
580
+ fromJSON(object: any): FeePool {
581
+ return {
582
+ communityPool: Array.isArray(object?.communityPool)
583
+ ? object.communityPool.map((e: any) => DecCoin.fromJSON(e))
584
+ : [],
585
+ };
586
+ },
587
+
588
+ toJSON(message: FeePool): unknown {
589
+ const obj: any = {};
590
+ if (message.communityPool) {
591
+ obj.communityPool = message.communityPool.map((e) => e ? DecCoin.toJSON(e) : undefined);
592
+ } else {
593
+ obj.communityPool = [];
594
+ }
595
+ return obj;
596
+ },
597
+
598
+ fromPartial<I extends Exact<DeepPartial<FeePool>, I>>(object: I): FeePool {
599
+ const message = createBaseFeePool();
600
+ message.communityPool = object.communityPool?.map((e) => DecCoin.fromPartial(e)) || [];
601
+ return message;
602
+ },
603
+ };
604
+
605
+ function createBaseCommunityPoolSpendProposal(): CommunityPoolSpendProposal {
606
+ return { title: "", description: "", recipient: "", amount: [] };
607
+ }
608
+
609
+ export const CommunityPoolSpendProposal = {
610
+ encode(message: CommunityPoolSpendProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
611
+ if (message.title !== "") {
612
+ writer.uint32(10).string(message.title);
613
+ }
614
+ if (message.description !== "") {
615
+ writer.uint32(18).string(message.description);
616
+ }
617
+ if (message.recipient !== "") {
618
+ writer.uint32(26).string(message.recipient);
619
+ }
620
+ for (const v of message.amount) {
621
+ Coin.encode(v!, writer.uint32(34).fork()).ldelim();
622
+ }
623
+ return writer;
624
+ },
625
+
626
+ decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposal {
627
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
628
+ let end = length === undefined ? reader.len : reader.pos + length;
629
+ const message = createBaseCommunityPoolSpendProposal();
630
+ while (reader.pos < end) {
631
+ const tag = reader.uint32();
632
+ switch (tag >>> 3) {
633
+ case 1:
634
+ message.title = reader.string();
635
+ break;
636
+ case 2:
637
+ message.description = reader.string();
638
+ break;
639
+ case 3:
640
+ message.recipient = reader.string();
641
+ break;
642
+ case 4:
643
+ message.amount.push(Coin.decode(reader, reader.uint32()));
644
+ break;
645
+ default:
646
+ reader.skipType(tag & 7);
647
+ break;
648
+ }
649
+ }
650
+ return message;
651
+ },
652
+
653
+ fromJSON(object: any): CommunityPoolSpendProposal {
654
+ return {
655
+ title: isSet(object.title) ? String(object.title) : "",
656
+ description: isSet(object.description) ? String(object.description) : "",
657
+ recipient: isSet(object.recipient) ? String(object.recipient) : "",
658
+ amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [],
659
+ };
660
+ },
661
+
662
+ toJSON(message: CommunityPoolSpendProposal): unknown {
663
+ const obj: any = {};
664
+ message.title !== undefined && (obj.title = message.title);
665
+ message.description !== undefined && (obj.description = message.description);
666
+ message.recipient !== undefined && (obj.recipient = message.recipient);
667
+ if (message.amount) {
668
+ obj.amount = message.amount.map((e) => e ? Coin.toJSON(e) : undefined);
669
+ } else {
670
+ obj.amount = [];
671
+ }
672
+ return obj;
673
+ },
674
+
675
+ fromPartial<I extends Exact<DeepPartial<CommunityPoolSpendProposal>, I>>(object: I): CommunityPoolSpendProposal {
676
+ const message = createBaseCommunityPoolSpendProposal();
677
+ message.title = object.title ?? "";
678
+ message.description = object.description ?? "";
679
+ message.recipient = object.recipient ?? "";
680
+ message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
681
+ return message;
682
+ },
683
+ };
684
+
685
+ function createBaseDelegatorStartingInfo(): DelegatorStartingInfo {
686
+ return { previousPeriod: 0, stake: "", height: 0 };
687
+ }
688
+
689
+ export const DelegatorStartingInfo = {
690
+ encode(message: DelegatorStartingInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
691
+ if (message.previousPeriod !== 0) {
692
+ writer.uint32(8).uint64(message.previousPeriod);
693
+ }
694
+ if (message.stake !== "") {
695
+ writer.uint32(18).string(message.stake);
696
+ }
697
+ if (message.height !== 0) {
698
+ writer.uint32(24).uint64(message.height);
699
+ }
700
+ return writer;
701
+ },
702
+
703
+ decode(input: _m0.Reader | Uint8Array, length?: number): DelegatorStartingInfo {
704
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
705
+ let end = length === undefined ? reader.len : reader.pos + length;
706
+ const message = createBaseDelegatorStartingInfo();
707
+ while (reader.pos < end) {
708
+ const tag = reader.uint32();
709
+ switch (tag >>> 3) {
710
+ case 1:
711
+ message.previousPeriod = longToNumber(reader.uint64() as Long);
712
+ break;
713
+ case 2:
714
+ message.stake = reader.string();
715
+ break;
716
+ case 3:
717
+ message.height = longToNumber(reader.uint64() as Long);
718
+ break;
719
+ default:
720
+ reader.skipType(tag & 7);
721
+ break;
722
+ }
723
+ }
724
+ return message;
725
+ },
726
+
727
+ fromJSON(object: any): DelegatorStartingInfo {
728
+ return {
729
+ previousPeriod: isSet(object.previousPeriod) ? Number(object.previousPeriod) : 0,
730
+ stake: isSet(object.stake) ? String(object.stake) : "",
731
+ height: isSet(object.height) ? Number(object.height) : 0,
732
+ };
733
+ },
734
+
735
+ toJSON(message: DelegatorStartingInfo): unknown {
736
+ const obj: any = {};
737
+ message.previousPeriod !== undefined && (obj.previousPeriod = Math.round(message.previousPeriod));
738
+ message.stake !== undefined && (obj.stake = message.stake);
739
+ message.height !== undefined && (obj.height = Math.round(message.height));
740
+ return obj;
741
+ },
742
+
743
+ fromPartial<I extends Exact<DeepPartial<DelegatorStartingInfo>, I>>(object: I): DelegatorStartingInfo {
744
+ const message = createBaseDelegatorStartingInfo();
745
+ message.previousPeriod = object.previousPeriod ?? 0;
746
+ message.stake = object.stake ?? "";
747
+ message.height = object.height ?? 0;
748
+ return message;
749
+ },
750
+ };
751
+
752
+ function createBaseDelegationDelegatorReward(): DelegationDelegatorReward {
753
+ return { validatorAddress: "", reward: [] };
754
+ }
755
+
756
+ export const DelegationDelegatorReward = {
757
+ encode(message: DelegationDelegatorReward, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
758
+ if (message.validatorAddress !== "") {
759
+ writer.uint32(10).string(message.validatorAddress);
760
+ }
761
+ for (const v of message.reward) {
762
+ DecCoin.encode(v!, writer.uint32(18).fork()).ldelim();
763
+ }
764
+ return writer;
765
+ },
766
+
767
+ decode(input: _m0.Reader | Uint8Array, length?: number): DelegationDelegatorReward {
768
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
769
+ let end = length === undefined ? reader.len : reader.pos + length;
770
+ const message = createBaseDelegationDelegatorReward();
771
+ while (reader.pos < end) {
772
+ const tag = reader.uint32();
773
+ switch (tag >>> 3) {
774
+ case 1:
775
+ message.validatorAddress = reader.string();
776
+ break;
777
+ case 2:
778
+ message.reward.push(DecCoin.decode(reader, reader.uint32()));
779
+ break;
780
+ default:
781
+ reader.skipType(tag & 7);
782
+ break;
783
+ }
784
+ }
785
+ return message;
786
+ },
787
+
788
+ fromJSON(object: any): DelegationDelegatorReward {
789
+ return {
790
+ validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
791
+ reward: Array.isArray(object?.reward) ? object.reward.map((e: any) => DecCoin.fromJSON(e)) : [],
792
+ };
793
+ },
794
+
795
+ toJSON(message: DelegationDelegatorReward): unknown {
796
+ const obj: any = {};
797
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
798
+ if (message.reward) {
799
+ obj.reward = message.reward.map((e) => e ? DecCoin.toJSON(e) : undefined);
800
+ } else {
801
+ obj.reward = [];
802
+ }
803
+ return obj;
804
+ },
805
+
806
+ fromPartial<I extends Exact<DeepPartial<DelegationDelegatorReward>, I>>(object: I): DelegationDelegatorReward {
807
+ const message = createBaseDelegationDelegatorReward();
808
+ message.validatorAddress = object.validatorAddress ?? "";
809
+ message.reward = object.reward?.map((e) => DecCoin.fromPartial(e)) || [];
810
+ return message;
811
+ },
812
+ };
813
+
814
+ function createBaseCommunityPoolSpendProposalWithDeposit(): CommunityPoolSpendProposalWithDeposit {
815
+ return { title: "", description: "", recipient: "", amount: "", deposit: "" };
816
+ }
817
+
818
+ export const CommunityPoolSpendProposalWithDeposit = {
819
+ encode(message: CommunityPoolSpendProposalWithDeposit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
820
+ if (message.title !== "") {
821
+ writer.uint32(10).string(message.title);
822
+ }
823
+ if (message.description !== "") {
824
+ writer.uint32(18).string(message.description);
825
+ }
826
+ if (message.recipient !== "") {
827
+ writer.uint32(26).string(message.recipient);
828
+ }
829
+ if (message.amount !== "") {
830
+ writer.uint32(34).string(message.amount);
831
+ }
832
+ if (message.deposit !== "") {
833
+ writer.uint32(42).string(message.deposit);
834
+ }
835
+ return writer;
836
+ },
837
+
838
+ decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit {
839
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
840
+ let end = length === undefined ? reader.len : reader.pos + length;
841
+ const message = createBaseCommunityPoolSpendProposalWithDeposit();
842
+ while (reader.pos < end) {
843
+ const tag = reader.uint32();
844
+ switch (tag >>> 3) {
845
+ case 1:
846
+ message.title = reader.string();
847
+ break;
848
+ case 2:
849
+ message.description = reader.string();
850
+ break;
851
+ case 3:
852
+ message.recipient = reader.string();
853
+ break;
854
+ case 4:
855
+ message.amount = reader.string();
856
+ break;
857
+ case 5:
858
+ message.deposit = reader.string();
859
+ break;
860
+ default:
861
+ reader.skipType(tag & 7);
862
+ break;
863
+ }
864
+ }
865
+ return message;
866
+ },
867
+
868
+ fromJSON(object: any): CommunityPoolSpendProposalWithDeposit {
869
+ return {
870
+ title: isSet(object.title) ? String(object.title) : "",
871
+ description: isSet(object.description) ? String(object.description) : "",
872
+ recipient: isSet(object.recipient) ? String(object.recipient) : "",
873
+ amount: isSet(object.amount) ? String(object.amount) : "",
874
+ deposit: isSet(object.deposit) ? String(object.deposit) : "",
875
+ };
876
+ },
877
+
878
+ toJSON(message: CommunityPoolSpendProposalWithDeposit): unknown {
879
+ const obj: any = {};
880
+ message.title !== undefined && (obj.title = message.title);
881
+ message.description !== undefined && (obj.description = message.description);
882
+ message.recipient !== undefined && (obj.recipient = message.recipient);
883
+ message.amount !== undefined && (obj.amount = message.amount);
884
+ message.deposit !== undefined && (obj.deposit = message.deposit);
885
+ return obj;
886
+ },
887
+
888
+ fromPartial<I extends Exact<DeepPartial<CommunityPoolSpendProposalWithDeposit>, I>>(
889
+ object: I,
890
+ ): CommunityPoolSpendProposalWithDeposit {
891
+ const message = createBaseCommunityPoolSpendProposalWithDeposit();
892
+ message.title = object.title ?? "";
893
+ message.description = object.description ?? "";
894
+ message.recipient = object.recipient ?? "";
895
+ message.amount = object.amount ?? "";
896
+ message.deposit = object.deposit ?? "";
897
+ return message;
898
+ },
899
+ };
900
+
901
+ declare var self: any | undefined;
902
+ declare var window: any | undefined;
903
+ declare var global: any | undefined;
904
+ var globalThis: any = (() => {
905
+ if (typeof globalThis !== "undefined") {
906
+ return globalThis;
907
+ }
908
+ if (typeof self !== "undefined") {
909
+ return self;
910
+ }
911
+ if (typeof window !== "undefined") {
912
+ return window;
913
+ }
914
+ if (typeof global !== "undefined") {
915
+ return global;
916
+ }
917
+ throw "Unable to locate global object";
918
+ })();
919
+
920
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
921
+
922
+ export type DeepPartial<T> = T extends Builtin ? T
923
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
924
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
925
+ : Partial<T>;
926
+
927
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
928
+ export type Exact<P, I extends P> = P extends Builtin ? P
929
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
930
+
931
+ function longToNumber(long: Long): number {
932
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
933
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
934
+ }
935
+ return long.toNumber();
936
+ }
937
+
938
+ if (_m0.util.Long !== Long) {
939
+ _m0.util.Long = Long as any;
940
+ _m0.configure();
941
+ }
942
+
943
+ function isSet(value: any): boolean {
944
+ return value !== null && value !== undefined;
945
+ }