@burnt-labs/xion-types 0.0.1-test.1762962136

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 (554) hide show
  1. package/jest.config.js +18 -0
  2. package/package.json +56 -0
  3. package/scripts/aminos.ts +29 -0
  4. package/scripts/codegen.ts +94 -0
  5. package/scripts/download-protos.ts +248 -0
  6. package/telescope.config.json +84 -0
  7. package/tsconfig.esm.json +9 -0
  8. package/tsconfig.json +18 -0
  9. package/types/abstractaccount/bundle.ts +35 -0
  10. package/types/abstractaccount/client.ts +48 -0
  11. package/types/abstractaccount/lcd.ts +130 -0
  12. package/types/abstractaccount/rpc.query.ts +93 -0
  13. package/types/abstractaccount/rpc.tx.ts +74 -0
  14. package/types/abstractaccount/v1/account.ts +250 -0
  15. package/types/abstractaccount/v1/events.ts +135 -0
  16. package/types/abstractaccount/v1/genesis.ts +106 -0
  17. package/types/abstractaccount/v1/params.ts +192 -0
  18. package/types/abstractaccount/v1/query.lcd.ts +19 -0
  19. package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
  20. package/types/abstractaccount/v1/query.ts +160 -0
  21. package/types/abstractaccount/v1/tx.amino.ts +14 -0
  22. package/types/abstractaccount/v1/tx.registry.ts +53 -0
  23. package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
  24. package/types/abstractaccount/v1/tx.ts +454 -0
  25. package/types/amino/amino.ts +1 -0
  26. package/types/amino/bundle.ts +5 -0
  27. package/types/binary.ts +535 -0
  28. package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
  29. package/types/cosmos/app/v1alpha1/config.ts +437 -0
  30. package/types/cosmos/app/v1alpha1/module.ts +466 -0
  31. package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
  32. package/types/cosmos/app/v1alpha1/query.ts +176 -0
  33. package/types/cosmos/auth/module/v1/module.ts +288 -0
  34. package/types/cosmos/auth/v1beta1/auth.ts +562 -0
  35. package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
  36. package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
  37. package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
  38. package/types/cosmos/auth/v1beta1/query.ts +2005 -0
  39. package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
  40. package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
  41. package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
  42. package/types/cosmos/auth/v1beta1/tx.ts +208 -0
  43. package/types/cosmos/authz/module/v1/module.ts +77 -0
  44. package/types/cosmos/authz/v1beta1/authz.ts +599 -0
  45. package/types/cosmos/authz/v1beta1/event.ts +274 -0
  46. package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
  47. package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
  48. package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
  49. package/types/cosmos/authz/v1beta1/query.ts +734 -0
  50. package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
  51. package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
  52. package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
  53. package/types/cosmos/authz/v1beta1/tx.ts +666 -0
  54. package/types/cosmos/autocli/v1/options.ts +1317 -0
  55. package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
  56. package/types/cosmos/autocli/v1/query.ts +298 -0
  57. package/types/cosmos/bank/module/v1/module.ts +156 -0
  58. package/types/cosmos/bank/v1beta1/authz.ts +134 -0
  59. package/types/cosmos/bank/v1beta1/bank.ts +984 -0
  60. package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
  61. package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
  62. package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
  63. package/types/cosmos/bank/v1beta1/query.ts +3051 -0
  64. package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
  65. package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
  66. package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
  67. package/types/cosmos/bank/v1beta1/tx.ts +845 -0
  68. package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
  69. package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
  70. package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
  71. package/types/cosmos/base/node/v1beta1/query.ts +467 -0
  72. package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
  73. package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
  74. package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
  75. package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
  76. package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
  77. package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
  78. package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
  79. package/types/cosmos/base/v1beta1/coin.ts +449 -0
  80. package/types/cosmos/benchmark/module/v1/module.ts +384 -0
  81. package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
  82. package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
  83. package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
  84. package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
  85. package/types/cosmos/benchmark/v1/tx.ts +224 -0
  86. package/types/cosmos/bundle.ts +807 -0
  87. package/types/cosmos/circuit/module/v1/module.ts +100 -0
  88. package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
  89. package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
  90. package/types/cosmos/circuit/v1/query.ts +576 -0
  91. package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
  92. package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
  93. package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
  94. package/types/cosmos/circuit/v1/tx.ts +685 -0
  95. package/types/cosmos/circuit/v1/types.ts +419 -0
  96. package/types/cosmos/client.ts +100 -0
  97. package/types/cosmos/consensus/module/v1/module.ts +100 -0
  98. package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
  99. package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
  100. package/types/cosmos/consensus/v1/query.ts +182 -0
  101. package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
  102. package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
  103. package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
  104. package/types/cosmos/consensus/v1/tx.ts +257 -0
  105. package/types/cosmos/counter/module/v1/module.ts +100 -0
  106. package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
  107. package/types/cosmos/counter/v1/query.ts +171 -0
  108. package/types/cosmos/counter/v1/tx.amino.ts +9 -0
  109. package/types/cosmos/counter/v1/tx.registry.ts +35 -0
  110. package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
  111. package/types/cosmos/counter/v1/tx.ts +217 -0
  112. package/types/cosmos/crisis/module/v1/module.ts +119 -0
  113. package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
  114. package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
  115. package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
  116. package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
  117. package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
  118. package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
  119. package/types/cosmos/crypto/ed25519/keys.ts +214 -0
  120. package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
  121. package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
  122. package/types/cosmos/crypto/multisig/keys.ts +124 -0
  123. package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
  124. package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
  125. package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
  126. package/types/cosmos/distribution/module/v1/module.ts +115 -0
  127. package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
  128. package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
  129. package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
  130. package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
  131. package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
  132. package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
  133. package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
  134. package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
  135. package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
  136. package/types/cosmos/epochs/module/v1/module.ts +77 -0
  137. package/types/cosmos/epochs/v1beta1/events.ts +205 -0
  138. package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
  139. package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
  140. package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
  141. package/types/cosmos/epochs/v1beta1/query.ts +390 -0
  142. package/types/cosmos/evidence/module/v1/module.ts +77 -0
  143. package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
  144. package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
  145. package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
  146. package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
  147. package/types/cosmos/evidence/v1beta1/query.ts +458 -0
  148. package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
  149. package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
  150. package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
  151. package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
  152. package/types/cosmos/feegrant/module/v1/module.ts +77 -0
  153. package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
  154. package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
  155. package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
  156. package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
  157. package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
  158. package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
  159. package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
  160. package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
  161. package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
  162. package/types/cosmos/genutil/module/v1/module.ts +77 -0
  163. package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
  164. package/types/cosmos/gov/module/v1/module.ts +123 -0
  165. package/types/cosmos/gov/v1/genesis.ts +288 -0
  166. package/types/cosmos/gov/v1/gov.ts +1889 -0
  167. package/types/cosmos/gov/v1/query.lcd.ts +95 -0
  168. package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
  169. package/types/cosmos/gov/v1/query.ts +2026 -0
  170. package/types/cosmos/gov/v1/tx.amino.ts +39 -0
  171. package/types/cosmos/gov/v1/tx.registry.ts +143 -0
  172. package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
  173. package/types/cosmos/gov/v1/tx.ts +1911 -0
  174. package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
  175. package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
  176. package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
  177. package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
  178. package/types/cosmos/gov/v1beta1/query.ts +1813 -0
  179. package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
  180. package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
  181. package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
  182. package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
  183. package/types/cosmos/group/module/v1/module.ts +128 -0
  184. package/types/cosmos/group/v1/events.ts +1195 -0
  185. package/types/cosmos/group/v1/genesis.ts +256 -0
  186. package/types/cosmos/group/v1/query.lcd.ts +158 -0
  187. package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
  188. package/types/cosmos/group/v1/query.ts +3108 -0
  189. package/types/cosmos/group/v1/tx.amino.ts +74 -0
  190. package/types/cosmos/group/v1/tx.registry.ts +269 -0
  191. package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
  192. package/types/cosmos/group/v1/tx.ts +3353 -0
  193. package/types/cosmos/group/v1/types.ts +2248 -0
  194. package/types/cosmos/ics23/v1/proofs.ts +2167 -0
  195. package/types/cosmos/lcd.ts +125 -0
  196. package/types/cosmos/mint/module/v1/module.ts +115 -0
  197. package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
  198. package/types/cosmos/mint/v1beta1/mint.ts +313 -0
  199. package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
  200. package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
  201. package/types/cosmos/mint/v1beta1/query.ts +544 -0
  202. package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
  203. package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
  204. package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
  205. package/types/cosmos/mint/v1beta1/tx.ts +208 -0
  206. package/types/cosmos/msg/textual/v1/textual.ts +1 -0
  207. package/types/cosmos/msg/v1/msg.ts +1 -0
  208. package/types/cosmos/nft/module/v1/module.ts +77 -0
  209. package/types/cosmos/nft/v1beta1/event.ts +429 -0
  210. package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
  211. package/types/cosmos/nft/v1beta1/nft.ts +389 -0
  212. package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
  213. package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
  214. package/types/cosmos/nft/v1beta1/query.ts +1513 -0
  215. package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
  216. package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
  217. package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
  218. package/types/cosmos/nft/v1beta1/tx.ts +232 -0
  219. package/types/cosmos/params/module/v1/module.ts +77 -0
  220. package/types/cosmos/params/v1beta1/params.ts +262 -0
  221. package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
  222. package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
  223. package/types/cosmos/params/v1beta1/query.ts +521 -0
  224. package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
  225. package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
  226. package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
  227. package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
  228. package/types/cosmos/protocolpool/v1/query.ts +761 -0
  229. package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
  230. package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
  231. package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
  232. package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
  233. package/types/cosmos/protocolpool/v1/types.ts +268 -0
  234. package/types/cosmos/query/v1/query.ts +1 -0
  235. package/types/cosmos/reflection/v1/reflection.ts +178 -0
  236. package/types/cosmos/rpc.query.ts +90 -0
  237. package/types/cosmos/rpc.tx.ts +71 -0
  238. package/types/cosmos/slashing/module/v1/module.ts +100 -0
  239. package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
  240. package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
  241. package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
  242. package/types/cosmos/slashing/v1beta1/query.ts +606 -0
  243. package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
  244. package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
  245. package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
  246. package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
  247. package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
  248. package/types/cosmos/staking/module/v1/module.ts +165 -0
  249. package/types/cosmos/staking/v1beta1/authz.ts +321 -0
  250. package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
  251. package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
  252. package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
  253. package/types/cosmos/staking/v1beta1/query.ts +3187 -0
  254. package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
  255. package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
  256. package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
  257. package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
  258. package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
  259. package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
  260. package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
  261. package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
  262. package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
  263. package/types/cosmos/store/v1beta1/listening.ts +296 -0
  264. package/types/cosmos/tx/config/v1/config.ts +127 -0
  265. package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
  266. package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
  267. package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
  268. package/types/cosmos/tx/v1beta1/service.ts +2319 -0
  269. package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
  270. package/types/cosmos/upgrade/module/v1/module.ts +100 -0
  271. package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
  272. package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
  273. package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
  274. package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
  275. package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
  276. package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
  277. package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
  278. package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
  279. package/types/cosmos/vesting/module/v1/module.ts +77 -0
  280. package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
  281. package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
  282. package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
  283. package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
  284. package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
  285. package/types/cosmos_proto/bundle.ts +5 -0
  286. package/types/cosmos_proto/cosmos.ts +355 -0
  287. package/types/cosmwasm/bundle.ts +39 -0
  288. package/types/cosmwasm/client.ts +48 -0
  289. package/types/cosmwasm/lcd.ts +132 -0
  290. package/types/cosmwasm/rpc.query.ts +95 -0
  291. package/types/cosmwasm/rpc.tx.ts +76 -0
  292. package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
  293. package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
  294. package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
  295. package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
  296. package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
  297. package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
  298. package/types/cosmwasm/wasm/v1/query.ts +3339 -0
  299. package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
  300. package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
  301. package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
  302. package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
  303. package/types/cosmwasm/wasm/v1/types.ts +1193 -0
  304. package/types/gogoproto/bundle.ts +5 -0
  305. package/types/gogoproto/gogo.ts +1 -0
  306. package/types/google/api/annotations.ts +1 -0
  307. package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
  308. package/types/google/api/apikeys/v2/resources.ts +1268 -0
  309. package/types/google/api/auth.ts +1175 -0
  310. package/types/google/api/backend.ts +691 -0
  311. package/types/google/api/billing.ts +333 -0
  312. package/types/google/api/client.ts +3100 -0
  313. package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
  314. package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
  315. package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
  316. package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
  317. package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
  318. package/types/google/api/config_change.ts +385 -0
  319. package/types/google/api/consumer.ts +362 -0
  320. package/types/google/api/context.ts +418 -0
  321. package/types/google/api/control.ts +141 -0
  322. package/types/google/api/distribution.ts +1253 -0
  323. package/types/google/api/documentation.ts +738 -0
  324. package/types/google/api/endpoint.ts +245 -0
  325. package/types/google/api/error_reason.ts +816 -0
  326. package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
  327. package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
  328. package/types/google/api/expr/v1alpha1/eval.ts +675 -0
  329. package/types/google/api/expr/v1alpha1/explain.ts +257 -0
  330. package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
  331. package/types/google/api/expr/v1alpha1/value.ts +771 -0
  332. package/types/google/api/expr/v1beta1/decl.ts +563 -0
  333. package/types/google/api/expr/v1beta1/eval.ts +758 -0
  334. package/types/google/api/expr/v1beta1/expr.ts +1750 -0
  335. package/types/google/api/expr/v1beta1/source.ts +446 -0
  336. package/types/google/api/expr/v1beta1/value.ts +771 -0
  337. package/types/google/api/field_behavior.ts +136 -0
  338. package/types/google/api/field_info.ts +319 -0
  339. package/types/google/api/http.ts +1362 -0
  340. package/types/google/api/httpbody.ts +270 -0
  341. package/types/google/api/label.ts +174 -0
  342. package/types/google/api/launch_stage.ts +112 -0
  343. package/types/google/api/log.ts +201 -0
  344. package/types/google/api/logging.ts +355 -0
  345. package/types/google/api/metric.ts +1174 -0
  346. package/types/google/api/monitored_resource.ts +841 -0
  347. package/types/google/api/monitoring.ts +430 -0
  348. package/types/google/api/policy.ts +314 -0
  349. package/types/google/api/quota.ts +1040 -0
  350. package/types/google/api/resource.ts +769 -0
  351. package/types/google/api/routing.ts +1405 -0
  352. package/types/google/api/service.ts +790 -0
  353. package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
  354. package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
  355. package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
  356. package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
  357. package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
  358. package/types/google/api/servicecontrol/v1/operation.ts +544 -0
  359. package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
  360. package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
  361. package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
  362. package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
  363. package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
  364. package/types/google/api/serviceusage/v1/resources.ts +629 -0
  365. package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
  366. package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
  367. package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
  368. package/types/google/api/source_info.ts +97 -0
  369. package/types/google/api/system_parameter.ts +461 -0
  370. package/types/google/api/usage.ts +404 -0
  371. package/types/google/api/visibility.ts +328 -0
  372. package/types/google/bundle.ts +115 -0
  373. package/types/google/logging/type/log_severity.ts +104 -0
  374. package/types/google/longrunning/operations.ts +1153 -0
  375. package/types/google/protobuf/any.ts +424 -0
  376. package/types/google/protobuf/api.ts +942 -0
  377. package/types/google/protobuf/descriptor.ts +7801 -0
  378. package/types/google/protobuf/duration.ts +284 -0
  379. package/types/google/protobuf/empty.ts +93 -0
  380. package/types/google/protobuf/field_mask.ts +694 -0
  381. package/types/google/protobuf/source_context.ts +105 -0
  382. package/types/google/protobuf/struct.ts +584 -0
  383. package/types/google/protobuf/timestamp.ts +373 -0
  384. package/types/google/protobuf/type.ts +1279 -0
  385. package/types/google/protobuf/wrappers.ts +1002 -0
  386. package/types/google/rpc/code.ts +286 -0
  387. package/types/google/rpc/context/attribute_context.ts +2517 -0
  388. package/types/google/rpc/context/audit_context.ts +188 -0
  389. package/types/google/rpc/error_details.ts +2467 -0
  390. package/types/google/rpc/http.ts +424 -0
  391. package/types/google/rpc/status.ts +173 -0
  392. package/types/helpers.ts +259 -0
  393. package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
  394. package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
  395. package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
  396. package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  397. package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
  398. package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
  399. package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
  400. package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
  401. package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
  402. package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
  403. package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
  404. package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
  405. package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
  406. package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
  407. package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
  408. package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
  409. package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
  410. package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
  411. package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
  412. package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
  413. package/types/ibc/applications/transfer/v1/authz.ts +297 -0
  414. package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
  415. package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
  416. package/types/ibc/applications/transfer/v1/packet.ts +186 -0
  417. package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
  418. package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
  419. package/types/ibc/applications/transfer/v1/query.ts +1233 -0
  420. package/types/ibc/applications/transfer/v1/token.ts +347 -0
  421. package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
  422. package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
  423. package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
  424. package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
  425. package/types/ibc/applications/transfer/v1/tx.ts +579 -0
  426. package/types/ibc/bundle.ts +265 -0
  427. package/types/ibc/client.ts +72 -0
  428. package/types/ibc/core/channel/v1/channel.ts +1455 -0
  429. package/types/ibc/core/channel/v1/genesis.ts +351 -0
  430. package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
  431. package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
  432. package/types/ibc/core/channel/v1/query.ts +3943 -0
  433. package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
  434. package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
  435. package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
  436. package/types/ibc/core/channel/v1/tx.ts +2558 -0
  437. package/types/ibc/core/channel/v2/genesis.ts +433 -0
  438. package/types/ibc/core/channel/v2/packet.ts +640 -0
  439. package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
  440. package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
  441. package/types/ibc/core/channel/v2/query.ts +2075 -0
  442. package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
  443. package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
  444. package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
  445. package/types/ibc/core/channel/v2/tx.ts +1003 -0
  446. package/types/ibc/core/client/v1/client.ts +636 -0
  447. package/types/ibc/core/client/v1/genesis.ts +448 -0
  448. package/types/ibc/core/client/v1/query.lcd.ts +102 -0
  449. package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
  450. package/types/ibc/core/client/v1/query.ts +2588 -0
  451. package/types/ibc/core/client/v1/tx.amino.ts +44 -0
  452. package/types/ibc/core/client/v1/tx.registry.ts +161 -0
  453. package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
  454. package/types/ibc/core/client/v1/tx.ts +1796 -0
  455. package/types/ibc/core/client/v2/config.ts +115 -0
  456. package/types/ibc/core/client/v2/counterparty.ts +122 -0
  457. package/types/ibc/core/client/v2/genesis.ts +220 -0
  458. package/types/ibc/core/client/v2/query.lcd.ts +25 -0
  459. package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
  460. package/types/ibc/core/client/v2/query.ts +402 -0
  461. package/types/ibc/core/client/v2/tx.amino.ts +14 -0
  462. package/types/ibc/core/client/v2/tx.registry.ts +53 -0
  463. package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
  464. package/types/ibc/core/client/v2/tx.ts +453 -0
  465. package/types/ibc/core/commitment/v1/commitment.ts +321 -0
  466. package/types/ibc/core/commitment/v2/commitment.ts +193 -0
  467. package/types/ibc/core/connection/v1/connection.ts +1056 -0
  468. package/types/ibc/core/connection/v1/genesis.ts +150 -0
  469. package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
  470. package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
  471. package/types/ibc/core/connection/v1/query.ts +1472 -0
  472. package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
  473. package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
  474. package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
  475. package/types/ibc/core/connection/v1/tx.ts +1456 -0
  476. package/types/ibc/core/types/v1/genesis.ts +191 -0
  477. package/types/ibc/lcd.ts +176 -0
  478. package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
  479. package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
  480. package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
  481. package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
  482. package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
  483. package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
  484. package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
  485. package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
  486. package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
  487. package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
  488. package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
  489. package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
  490. package/types/ibc/rpc.query.ts +123 -0
  491. package/types/ibc/rpc.tx.ts +104 -0
  492. package/types/index.ts +25 -0
  493. package/types/tendermint/abci/types.ts +6565 -0
  494. package/types/tendermint/bundle.ts +33 -0
  495. package/types/tendermint/crypto/keys.ts +106 -0
  496. package/types/tendermint/crypto/proof.ts +576 -0
  497. package/types/tendermint/p2p/types.ts +523 -0
  498. package/types/tendermint/types/block.ts +134 -0
  499. package/types/tendermint/types/evidence.ts +491 -0
  500. package/types/tendermint/types/params.ts +839 -0
  501. package/types/tendermint/types/types.ts +2266 -0
  502. package/types/tendermint/types/validator.ts +399 -0
  503. package/types/tendermint/version/types.ts +228 -0
  504. package/types/utf8.ts +149 -0
  505. package/types/varint.ts +489 -0
  506. package/types/xion/bundle.ts +117 -0
  507. package/types/xion/client.ts +57 -0
  508. package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
  509. package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
  510. package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
  511. package/types/xion/feeabs/v1beta1/params.ts +189 -0
  512. package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
  513. package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
  514. package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
  515. package/types/xion/feeabs/v1beta1/query.ts +732 -0
  516. package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
  517. package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
  518. package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
  519. package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
  520. package/types/xion/globalfee/v1/genesis.ts +249 -0
  521. package/types/xion/globalfee/v1/query.lcd.ts +19 -0
  522. package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
  523. package/types/xion/globalfee/v1/query.ts +178 -0
  524. package/types/xion/jwk/v1/audience.ts +224 -0
  525. package/types/xion/jwk/v1/genesis.ts +117 -0
  526. package/types/xion/jwk/v1/params.ts +113 -0
  527. package/types/xion/jwk/v1/query.lcd.ts +52 -0
  528. package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
  529. package/types/xion/jwk/v1/query.ts +1697 -0
  530. package/types/xion/jwk/v1/tx.amino.ts +29 -0
  531. package/types/xion/jwk/v1/tx.registry.ts +107 -0
  532. package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
  533. package/types/xion/jwk/v1/tx.ts +1040 -0
  534. package/types/xion/lcd.ts +147 -0
  535. package/types/xion/mint/v1/event.ts +216 -0
  536. package/types/xion/mint/v1/genesis.ts +114 -0
  537. package/types/xion/mint/v1/mint.ts +307 -0
  538. package/types/xion/mint/v1/query.lcd.ts +31 -0
  539. package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
  540. package/types/xion/mint/v1/query.ts +508 -0
  541. package/types/xion/mint/v1/tx.amino.ts +9 -0
  542. package/types/xion/mint/v1/tx.registry.ts +35 -0
  543. package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
  544. package/types/xion/mint/v1/tx.ts +222 -0
  545. package/types/xion/rpc.query.ts +105 -0
  546. package/types/xion/rpc.tx.ts +83 -0
  547. package/types/xion/v1/feegrant.ts +457 -0
  548. package/types/xion/v1/genesis.ts +116 -0
  549. package/types/xion/v1/query.rpc.Query.ts +64 -0
  550. package/types/xion/v1/query.ts +862 -0
  551. package/types/xion/v1/tx.amino.ts +24 -0
  552. package/types/xion/v1/tx.registry.ts +89 -0
  553. package/types/xion/v1/tx.rpc.msg.ts +57 -0
  554. package/types/xion/v1/tx.ts +793 -0
@@ -0,0 +1,1208 @@
1
+ //@ts-nocheck
2
+ import { DecCoin, DecCoinAmino, DecCoinSDKType } from "../../base/v1beta1/coin";
3
+ import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorAccumulatedCommissionSDKType, ValidatorHistoricalRewards, ValidatorHistoricalRewardsAmino, ValidatorHistoricalRewardsSDKType, ValidatorCurrentRewards, ValidatorCurrentRewardsAmino, ValidatorCurrentRewardsSDKType, DelegatorStartingInfo, DelegatorStartingInfoAmino, DelegatorStartingInfoSDKType, ValidatorSlashEvent, ValidatorSlashEventAmino, ValidatorSlashEventSDKType, Params, ParamsAmino, ParamsSDKType, FeePool, FeePoolAmino, FeePoolSDKType } from "./distribution";
4
+ import { BinaryReader, BinaryWriter } from "../../../binary";
5
+ /**
6
+ * DelegatorWithdrawInfo is the address for where distributions rewards are
7
+ * withdrawn to by default this struct is only used at genesis to feed in
8
+ * default withdraw addresses.
9
+ */
10
+ export interface DelegatorWithdrawInfo {
11
+ /** delegator_address is the address of the delegator. */
12
+ delegatorAddress: string;
13
+ /** withdraw_address is the address to withdraw the delegation rewards to. */
14
+ withdrawAddress: string;
15
+ }
16
+ export interface DelegatorWithdrawInfoProtoMsg {
17
+ typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo";
18
+ value: Uint8Array;
19
+ }
20
+ /**
21
+ * DelegatorWithdrawInfo is the address for where distributions rewards are
22
+ * withdrawn to by default this struct is only used at genesis to feed in
23
+ * default withdraw addresses.
24
+ * @name DelegatorWithdrawInfoAmino
25
+ * @package cosmos.distribution.v1beta1
26
+ * @see proto type: cosmos.distribution.v1beta1.DelegatorWithdrawInfo
27
+ */
28
+ export interface DelegatorWithdrawInfoAmino {
29
+ /**
30
+ * delegator_address is the address of the delegator.
31
+ */
32
+ delegator_address?: string;
33
+ /**
34
+ * withdraw_address is the address to withdraw the delegation rewards to.
35
+ */
36
+ withdraw_address?: string;
37
+ }
38
+ export interface DelegatorWithdrawInfoAminoMsg {
39
+ type: "cosmos-sdk/DelegatorWithdrawInfo";
40
+ value: DelegatorWithdrawInfoAmino;
41
+ }
42
+ /**
43
+ * DelegatorWithdrawInfo is the address for where distributions rewards are
44
+ * withdrawn to by default this struct is only used at genesis to feed in
45
+ * default withdraw addresses.
46
+ */
47
+ export interface DelegatorWithdrawInfoSDKType {
48
+ delegator_address: string;
49
+ withdraw_address: string;
50
+ }
51
+ /** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */
52
+ export interface ValidatorOutstandingRewardsRecord {
53
+ /** validator_address is the address of the validator. */
54
+ validatorAddress: string;
55
+ /** outstanding_rewards represents the outstanding rewards of a validator. */
56
+ outstandingRewards: DecCoin[];
57
+ }
58
+ export interface ValidatorOutstandingRewardsRecordProtoMsg {
59
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord";
60
+ value: Uint8Array;
61
+ }
62
+ /**
63
+ * ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
64
+ * @name ValidatorOutstandingRewardsRecordAmino
65
+ * @package cosmos.distribution.v1beta1
66
+ * @see proto type: cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord
67
+ */
68
+ export interface ValidatorOutstandingRewardsRecordAmino {
69
+ /**
70
+ * validator_address is the address of the validator.
71
+ */
72
+ validator_address?: string;
73
+ /**
74
+ * outstanding_rewards represents the outstanding rewards of a validator.
75
+ */
76
+ outstanding_rewards: DecCoinAmino[];
77
+ }
78
+ export interface ValidatorOutstandingRewardsRecordAminoMsg {
79
+ type: "cosmos-sdk/ValidatorOutstandingRewardsRecord";
80
+ value: ValidatorOutstandingRewardsRecordAmino;
81
+ }
82
+ /** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */
83
+ export interface ValidatorOutstandingRewardsRecordSDKType {
84
+ validator_address: string;
85
+ outstanding_rewards: DecCoinSDKType[];
86
+ }
87
+ /**
88
+ * ValidatorAccumulatedCommissionRecord is used for import / export via genesis
89
+ * json.
90
+ */
91
+ export interface ValidatorAccumulatedCommissionRecord {
92
+ /** validator_address is the address of the validator. */
93
+ validatorAddress: string;
94
+ /** accumulated is the accumulated commission of a validator. */
95
+ accumulated: ValidatorAccumulatedCommission;
96
+ }
97
+ export interface ValidatorAccumulatedCommissionRecordProtoMsg {
98
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord";
99
+ value: Uint8Array;
100
+ }
101
+ /**
102
+ * ValidatorAccumulatedCommissionRecord is used for import / export via genesis
103
+ * json.
104
+ * @name ValidatorAccumulatedCommissionRecordAmino
105
+ * @package cosmos.distribution.v1beta1
106
+ * @see proto type: cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord
107
+ */
108
+ export interface ValidatorAccumulatedCommissionRecordAmino {
109
+ /**
110
+ * validator_address is the address of the validator.
111
+ */
112
+ validator_address?: string;
113
+ /**
114
+ * accumulated is the accumulated commission of a validator.
115
+ */
116
+ accumulated: ValidatorAccumulatedCommissionAmino;
117
+ }
118
+ export interface ValidatorAccumulatedCommissionRecordAminoMsg {
119
+ type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord";
120
+ value: ValidatorAccumulatedCommissionRecordAmino;
121
+ }
122
+ /**
123
+ * ValidatorAccumulatedCommissionRecord is used for import / export via genesis
124
+ * json.
125
+ */
126
+ export interface ValidatorAccumulatedCommissionRecordSDKType {
127
+ validator_address: string;
128
+ accumulated: ValidatorAccumulatedCommissionSDKType;
129
+ }
130
+ /**
131
+ * ValidatorHistoricalRewardsRecord is used for import / export via genesis
132
+ * json.
133
+ */
134
+ export interface ValidatorHistoricalRewardsRecord {
135
+ /** validator_address is the address of the validator. */
136
+ validatorAddress: string;
137
+ /** period defines the period the historical rewards apply to. */
138
+ period: bigint;
139
+ /** rewards defines the historical rewards of a validator. */
140
+ rewards: ValidatorHistoricalRewards;
141
+ }
142
+ export interface ValidatorHistoricalRewardsRecordProtoMsg {
143
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord";
144
+ value: Uint8Array;
145
+ }
146
+ /**
147
+ * ValidatorHistoricalRewardsRecord is used for import / export via genesis
148
+ * json.
149
+ * @name ValidatorHistoricalRewardsRecordAmino
150
+ * @package cosmos.distribution.v1beta1
151
+ * @see proto type: cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord
152
+ */
153
+ export interface ValidatorHistoricalRewardsRecordAmino {
154
+ /**
155
+ * validator_address is the address of the validator.
156
+ */
157
+ validator_address?: string;
158
+ /**
159
+ * period defines the period the historical rewards apply to.
160
+ */
161
+ period?: string;
162
+ /**
163
+ * rewards defines the historical rewards of a validator.
164
+ */
165
+ rewards: ValidatorHistoricalRewardsAmino;
166
+ }
167
+ export interface ValidatorHistoricalRewardsRecordAminoMsg {
168
+ type: "cosmos-sdk/ValidatorHistoricalRewardsRecord";
169
+ value: ValidatorHistoricalRewardsRecordAmino;
170
+ }
171
+ /**
172
+ * ValidatorHistoricalRewardsRecord is used for import / export via genesis
173
+ * json.
174
+ */
175
+ export interface ValidatorHistoricalRewardsRecordSDKType {
176
+ validator_address: string;
177
+ period: bigint;
178
+ rewards: ValidatorHistoricalRewardsSDKType;
179
+ }
180
+ /** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */
181
+ export interface ValidatorCurrentRewardsRecord {
182
+ /** validator_address is the address of the validator. */
183
+ validatorAddress: string;
184
+ /** rewards defines the current rewards of a validator. */
185
+ rewards: ValidatorCurrentRewards;
186
+ }
187
+ export interface ValidatorCurrentRewardsRecordProtoMsg {
188
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord";
189
+ value: Uint8Array;
190
+ }
191
+ /**
192
+ * ValidatorCurrentRewardsRecord is used for import / export via genesis json.
193
+ * @name ValidatorCurrentRewardsRecordAmino
194
+ * @package cosmos.distribution.v1beta1
195
+ * @see proto type: cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord
196
+ */
197
+ export interface ValidatorCurrentRewardsRecordAmino {
198
+ /**
199
+ * validator_address is the address of the validator.
200
+ */
201
+ validator_address?: string;
202
+ /**
203
+ * rewards defines the current rewards of a validator.
204
+ */
205
+ rewards: ValidatorCurrentRewardsAmino;
206
+ }
207
+ export interface ValidatorCurrentRewardsRecordAminoMsg {
208
+ type: "cosmos-sdk/ValidatorCurrentRewardsRecord";
209
+ value: ValidatorCurrentRewardsRecordAmino;
210
+ }
211
+ /** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */
212
+ export interface ValidatorCurrentRewardsRecordSDKType {
213
+ validator_address: string;
214
+ rewards: ValidatorCurrentRewardsSDKType;
215
+ }
216
+ /** DelegatorStartingInfoRecord used for import / export via genesis json. */
217
+ export interface DelegatorStartingInfoRecord {
218
+ /** delegator_address is the address of the delegator. */
219
+ delegatorAddress: string;
220
+ /** validator_address is the address of the validator. */
221
+ validatorAddress: string;
222
+ /** starting_info defines the starting info of a delegator. */
223
+ startingInfo: DelegatorStartingInfo;
224
+ }
225
+ export interface DelegatorStartingInfoRecordProtoMsg {
226
+ typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord";
227
+ value: Uint8Array;
228
+ }
229
+ /**
230
+ * DelegatorStartingInfoRecord used for import / export via genesis json.
231
+ * @name DelegatorStartingInfoRecordAmino
232
+ * @package cosmos.distribution.v1beta1
233
+ * @see proto type: cosmos.distribution.v1beta1.DelegatorStartingInfoRecord
234
+ */
235
+ export interface DelegatorStartingInfoRecordAmino {
236
+ /**
237
+ * delegator_address is the address of the delegator.
238
+ */
239
+ delegator_address?: string;
240
+ /**
241
+ * validator_address is the address of the validator.
242
+ */
243
+ validator_address?: string;
244
+ /**
245
+ * starting_info defines the starting info of a delegator.
246
+ */
247
+ starting_info: DelegatorStartingInfoAmino;
248
+ }
249
+ export interface DelegatorStartingInfoRecordAminoMsg {
250
+ type: "cosmos-sdk/DelegatorStartingInfoRecord";
251
+ value: DelegatorStartingInfoRecordAmino;
252
+ }
253
+ /** DelegatorStartingInfoRecord used for import / export via genesis json. */
254
+ export interface DelegatorStartingInfoRecordSDKType {
255
+ delegator_address: string;
256
+ validator_address: string;
257
+ starting_info: DelegatorStartingInfoSDKType;
258
+ }
259
+ /** ValidatorSlashEventRecord is used for import / export via genesis json. */
260
+ export interface ValidatorSlashEventRecord {
261
+ /** validator_address is the address of the validator. */
262
+ validatorAddress: string;
263
+ /** height defines the block height at which the slash event occurred. */
264
+ height: bigint;
265
+ /** period is the period of the slash event. */
266
+ period: bigint;
267
+ /** validator_slash_event describes the slash event. */
268
+ validatorSlashEvent: ValidatorSlashEvent;
269
+ }
270
+ export interface ValidatorSlashEventRecordProtoMsg {
271
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord";
272
+ value: Uint8Array;
273
+ }
274
+ /**
275
+ * ValidatorSlashEventRecord is used for import / export via genesis json.
276
+ * @name ValidatorSlashEventRecordAmino
277
+ * @package cosmos.distribution.v1beta1
278
+ * @see proto type: cosmos.distribution.v1beta1.ValidatorSlashEventRecord
279
+ */
280
+ export interface ValidatorSlashEventRecordAmino {
281
+ /**
282
+ * validator_address is the address of the validator.
283
+ */
284
+ validator_address?: string;
285
+ /**
286
+ * height defines the block height at which the slash event occurred.
287
+ */
288
+ height?: string;
289
+ /**
290
+ * period is the period of the slash event.
291
+ */
292
+ period?: string;
293
+ /**
294
+ * validator_slash_event describes the slash event.
295
+ */
296
+ validator_slash_event: ValidatorSlashEventAmino;
297
+ }
298
+ export interface ValidatorSlashEventRecordAminoMsg {
299
+ type: "cosmos-sdk/ValidatorSlashEventRecord";
300
+ value: ValidatorSlashEventRecordAmino;
301
+ }
302
+ /** ValidatorSlashEventRecord is used for import / export via genesis json. */
303
+ export interface ValidatorSlashEventRecordSDKType {
304
+ validator_address: string;
305
+ height: bigint;
306
+ period: bigint;
307
+ validator_slash_event: ValidatorSlashEventSDKType;
308
+ }
309
+ /** GenesisState defines the distribution module's genesis state. */
310
+ export interface GenesisState {
311
+ /** params defines all the parameters of the module. */
312
+ params: Params;
313
+ /** fee_pool defines the fee pool at genesis. */
314
+ feePool: FeePool;
315
+ /** fee_pool defines the delegator withdraw infos at genesis. */
316
+ delegatorWithdrawInfos: DelegatorWithdrawInfo[];
317
+ /** fee_pool defines the previous proposer at genesis. */
318
+ previousProposer: string;
319
+ /** fee_pool defines the outstanding rewards of all validators at genesis. */
320
+ outstandingRewards: ValidatorOutstandingRewardsRecord[];
321
+ /** fee_pool defines the accumulated commissions of all validators at genesis. */
322
+ validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[];
323
+ /** fee_pool defines the historical rewards of all validators at genesis. */
324
+ validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[];
325
+ /** fee_pool defines the current rewards of all validators at genesis. */
326
+ validatorCurrentRewards: ValidatorCurrentRewardsRecord[];
327
+ /** fee_pool defines the delegator starting infos at genesis. */
328
+ delegatorStartingInfos: DelegatorStartingInfoRecord[];
329
+ /** fee_pool defines the validator slash events at genesis. */
330
+ validatorSlashEvents: ValidatorSlashEventRecord[];
331
+ }
332
+ export interface GenesisStateProtoMsg {
333
+ typeUrl: "/cosmos.distribution.v1beta1.GenesisState";
334
+ value: Uint8Array;
335
+ }
336
+ /**
337
+ * GenesisState defines the distribution module's genesis state.
338
+ * @name GenesisStateAmino
339
+ * @package cosmos.distribution.v1beta1
340
+ * @see proto type: cosmos.distribution.v1beta1.GenesisState
341
+ */
342
+ export interface GenesisStateAmino {
343
+ /**
344
+ * params defines all the parameters of the module.
345
+ */
346
+ params: ParamsAmino;
347
+ /**
348
+ * fee_pool defines the fee pool at genesis.
349
+ */
350
+ fee_pool: FeePoolAmino;
351
+ /**
352
+ * fee_pool defines the delegator withdraw infos at genesis.
353
+ */
354
+ delegator_withdraw_infos: DelegatorWithdrawInfoAmino[];
355
+ /**
356
+ * fee_pool defines the previous proposer at genesis.
357
+ */
358
+ previous_proposer?: string;
359
+ /**
360
+ * fee_pool defines the outstanding rewards of all validators at genesis.
361
+ */
362
+ outstanding_rewards: ValidatorOutstandingRewardsRecordAmino[];
363
+ /**
364
+ * fee_pool defines the accumulated commissions of all validators at genesis.
365
+ */
366
+ validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordAmino[];
367
+ /**
368
+ * fee_pool defines the historical rewards of all validators at genesis.
369
+ */
370
+ validator_historical_rewards: ValidatorHistoricalRewardsRecordAmino[];
371
+ /**
372
+ * fee_pool defines the current rewards of all validators at genesis.
373
+ */
374
+ validator_current_rewards: ValidatorCurrentRewardsRecordAmino[];
375
+ /**
376
+ * fee_pool defines the delegator starting infos at genesis.
377
+ */
378
+ delegator_starting_infos: DelegatorStartingInfoRecordAmino[];
379
+ /**
380
+ * fee_pool defines the validator slash events at genesis.
381
+ */
382
+ validator_slash_events: ValidatorSlashEventRecordAmino[];
383
+ }
384
+ export interface GenesisStateAminoMsg {
385
+ type: "cosmos-sdk/GenesisState";
386
+ value: GenesisStateAmino;
387
+ }
388
+ /** GenesisState defines the distribution module's genesis state. */
389
+ export interface GenesisStateSDKType {
390
+ params: ParamsSDKType;
391
+ fee_pool: FeePoolSDKType;
392
+ delegator_withdraw_infos: DelegatorWithdrawInfoSDKType[];
393
+ previous_proposer: string;
394
+ outstanding_rewards: ValidatorOutstandingRewardsRecordSDKType[];
395
+ validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordSDKType[];
396
+ validator_historical_rewards: ValidatorHistoricalRewardsRecordSDKType[];
397
+ validator_current_rewards: ValidatorCurrentRewardsRecordSDKType[];
398
+ delegator_starting_infos: DelegatorStartingInfoRecordSDKType[];
399
+ validator_slash_events: ValidatorSlashEventRecordSDKType[];
400
+ }
401
+ function createBaseDelegatorWithdrawInfo(): DelegatorWithdrawInfo {
402
+ return {
403
+ delegatorAddress: "",
404
+ withdrawAddress: ""
405
+ };
406
+ }
407
+ export const DelegatorWithdrawInfo = {
408
+ typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo",
409
+ encode(message: DelegatorWithdrawInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
410
+ if (message.delegatorAddress !== "") {
411
+ writer.uint32(10).string(message.delegatorAddress);
412
+ }
413
+ if (message.withdrawAddress !== "") {
414
+ writer.uint32(18).string(message.withdrawAddress);
415
+ }
416
+ return writer;
417
+ },
418
+ decode(input: BinaryReader | Uint8Array, length?: number): DelegatorWithdrawInfo {
419
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
420
+ let end = length === undefined ? reader.len : reader.pos + length;
421
+ const message = createBaseDelegatorWithdrawInfo();
422
+ while (reader.pos < end) {
423
+ const tag = reader.uint32();
424
+ switch (tag >>> 3) {
425
+ case 1:
426
+ message.delegatorAddress = reader.string();
427
+ break;
428
+ case 2:
429
+ message.withdrawAddress = reader.string();
430
+ break;
431
+ default:
432
+ reader.skipType(tag & 7);
433
+ break;
434
+ }
435
+ }
436
+ return message;
437
+ },
438
+ fromPartial(object: Partial<DelegatorWithdrawInfo>): DelegatorWithdrawInfo {
439
+ const message = createBaseDelegatorWithdrawInfo();
440
+ message.delegatorAddress = object.delegatorAddress ?? "";
441
+ message.withdrawAddress = object.withdrawAddress ?? "";
442
+ return message;
443
+ },
444
+ fromAmino(object: DelegatorWithdrawInfoAmino): DelegatorWithdrawInfo {
445
+ const message = createBaseDelegatorWithdrawInfo();
446
+ if (object.delegator_address !== undefined && object.delegator_address !== null) {
447
+ message.delegatorAddress = object.delegator_address;
448
+ }
449
+ if (object.withdraw_address !== undefined && object.withdraw_address !== null) {
450
+ message.withdrawAddress = object.withdraw_address;
451
+ }
452
+ return message;
453
+ },
454
+ toAmino(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAmino {
455
+ const obj: any = {};
456
+ obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
457
+ obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress;
458
+ return obj;
459
+ },
460
+ fromAminoMsg(object: DelegatorWithdrawInfoAminoMsg): DelegatorWithdrawInfo {
461
+ return DelegatorWithdrawInfo.fromAmino(object.value);
462
+ },
463
+ toAminoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAminoMsg {
464
+ return {
465
+ type: "cosmos-sdk/DelegatorWithdrawInfo",
466
+ value: DelegatorWithdrawInfo.toAmino(message)
467
+ };
468
+ },
469
+ fromProtoMsg(message: DelegatorWithdrawInfoProtoMsg): DelegatorWithdrawInfo {
470
+ return DelegatorWithdrawInfo.decode(message.value);
471
+ },
472
+ toProto(message: DelegatorWithdrawInfo): Uint8Array {
473
+ return DelegatorWithdrawInfo.encode(message).finish();
474
+ },
475
+ toProtoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoProtoMsg {
476
+ return {
477
+ typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo",
478
+ value: DelegatorWithdrawInfo.encode(message).finish()
479
+ };
480
+ }
481
+ };
482
+ function createBaseValidatorOutstandingRewardsRecord(): ValidatorOutstandingRewardsRecord {
483
+ return {
484
+ validatorAddress: "",
485
+ outstandingRewards: []
486
+ };
487
+ }
488
+ export const ValidatorOutstandingRewardsRecord = {
489
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord",
490
+ encode(message: ValidatorOutstandingRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
491
+ if (message.validatorAddress !== "") {
492
+ writer.uint32(10).string(message.validatorAddress);
493
+ }
494
+ for (const v of message.outstandingRewards) {
495
+ DecCoin.encode(v!, writer.uint32(18).fork()).ldelim();
496
+ }
497
+ return writer;
498
+ },
499
+ decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord {
500
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
501
+ let end = length === undefined ? reader.len : reader.pos + length;
502
+ const message = createBaseValidatorOutstandingRewardsRecord();
503
+ while (reader.pos < end) {
504
+ const tag = reader.uint32();
505
+ switch (tag >>> 3) {
506
+ case 1:
507
+ message.validatorAddress = reader.string();
508
+ break;
509
+ case 2:
510
+ message.outstandingRewards.push(DecCoin.decode(reader, reader.uint32()));
511
+ break;
512
+ default:
513
+ reader.skipType(tag & 7);
514
+ break;
515
+ }
516
+ }
517
+ return message;
518
+ },
519
+ fromPartial(object: Partial<ValidatorOutstandingRewardsRecord>): ValidatorOutstandingRewardsRecord {
520
+ const message = createBaseValidatorOutstandingRewardsRecord();
521
+ message.validatorAddress = object.validatorAddress ?? "";
522
+ message.outstandingRewards = object.outstandingRewards?.map(e => DecCoin.fromPartial(e)) || [];
523
+ return message;
524
+ },
525
+ fromAmino(object: ValidatorOutstandingRewardsRecordAmino): ValidatorOutstandingRewardsRecord {
526
+ const message = createBaseValidatorOutstandingRewardsRecord();
527
+ if (object.validator_address !== undefined && object.validator_address !== null) {
528
+ message.validatorAddress = object.validator_address;
529
+ }
530
+ message.outstandingRewards = object.outstanding_rewards?.map(e => DecCoin.fromAmino(e)) || [];
531
+ return message;
532
+ },
533
+ toAmino(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAmino {
534
+ const obj: any = {};
535
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
536
+ if (message.outstandingRewards) {
537
+ obj.outstanding_rewards = message.outstandingRewards.map(e => e ? DecCoin.toAmino(e) : undefined);
538
+ } else {
539
+ obj.outstanding_rewards = message.outstandingRewards;
540
+ }
541
+ return obj;
542
+ },
543
+ fromAminoMsg(object: ValidatorOutstandingRewardsRecordAminoMsg): ValidatorOutstandingRewardsRecord {
544
+ return ValidatorOutstandingRewardsRecord.fromAmino(object.value);
545
+ },
546
+ toAminoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAminoMsg {
547
+ return {
548
+ type: "cosmos-sdk/ValidatorOutstandingRewardsRecord",
549
+ value: ValidatorOutstandingRewardsRecord.toAmino(message)
550
+ };
551
+ },
552
+ fromProtoMsg(message: ValidatorOutstandingRewardsRecordProtoMsg): ValidatorOutstandingRewardsRecord {
553
+ return ValidatorOutstandingRewardsRecord.decode(message.value);
554
+ },
555
+ toProto(message: ValidatorOutstandingRewardsRecord): Uint8Array {
556
+ return ValidatorOutstandingRewardsRecord.encode(message).finish();
557
+ },
558
+ toProtoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordProtoMsg {
559
+ return {
560
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord",
561
+ value: ValidatorOutstandingRewardsRecord.encode(message).finish()
562
+ };
563
+ }
564
+ };
565
+ function createBaseValidatorAccumulatedCommissionRecord(): ValidatorAccumulatedCommissionRecord {
566
+ return {
567
+ validatorAddress: "",
568
+ accumulated: ValidatorAccumulatedCommission.fromPartial({})
569
+ };
570
+ }
571
+ export const ValidatorAccumulatedCommissionRecord = {
572
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord",
573
+ encode(message: ValidatorAccumulatedCommissionRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
574
+ if (message.validatorAddress !== "") {
575
+ writer.uint32(10).string(message.validatorAddress);
576
+ }
577
+ if (message.accumulated !== undefined) {
578
+ ValidatorAccumulatedCommission.encode(message.accumulated, writer.uint32(18).fork()).ldelim();
579
+ }
580
+ return writer;
581
+ },
582
+ decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord {
583
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
584
+ let end = length === undefined ? reader.len : reader.pos + length;
585
+ const message = createBaseValidatorAccumulatedCommissionRecord();
586
+ while (reader.pos < end) {
587
+ const tag = reader.uint32();
588
+ switch (tag >>> 3) {
589
+ case 1:
590
+ message.validatorAddress = reader.string();
591
+ break;
592
+ case 2:
593
+ message.accumulated = ValidatorAccumulatedCommission.decode(reader, reader.uint32());
594
+ break;
595
+ default:
596
+ reader.skipType(tag & 7);
597
+ break;
598
+ }
599
+ }
600
+ return message;
601
+ },
602
+ fromPartial(object: Partial<ValidatorAccumulatedCommissionRecord>): ValidatorAccumulatedCommissionRecord {
603
+ const message = createBaseValidatorAccumulatedCommissionRecord();
604
+ message.validatorAddress = object.validatorAddress ?? "";
605
+ message.accumulated = object.accumulated !== undefined && object.accumulated !== null ? ValidatorAccumulatedCommission.fromPartial(object.accumulated) : undefined;
606
+ return message;
607
+ },
608
+ fromAmino(object: ValidatorAccumulatedCommissionRecordAmino): ValidatorAccumulatedCommissionRecord {
609
+ const message = createBaseValidatorAccumulatedCommissionRecord();
610
+ if (object.validator_address !== undefined && object.validator_address !== null) {
611
+ message.validatorAddress = object.validator_address;
612
+ }
613
+ if (object.accumulated !== undefined && object.accumulated !== null) {
614
+ message.accumulated = ValidatorAccumulatedCommission.fromAmino(object.accumulated);
615
+ }
616
+ return message;
617
+ },
618
+ toAmino(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAmino {
619
+ const obj: any = {};
620
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
621
+ obj.accumulated = message.accumulated ? ValidatorAccumulatedCommission.toAmino(message.accumulated) : ValidatorAccumulatedCommission.toAmino(ValidatorAccumulatedCommission.fromPartial({}));
622
+ return obj;
623
+ },
624
+ fromAminoMsg(object: ValidatorAccumulatedCommissionRecordAminoMsg): ValidatorAccumulatedCommissionRecord {
625
+ return ValidatorAccumulatedCommissionRecord.fromAmino(object.value);
626
+ },
627
+ toAminoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAminoMsg {
628
+ return {
629
+ type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord",
630
+ value: ValidatorAccumulatedCommissionRecord.toAmino(message)
631
+ };
632
+ },
633
+ fromProtoMsg(message: ValidatorAccumulatedCommissionRecordProtoMsg): ValidatorAccumulatedCommissionRecord {
634
+ return ValidatorAccumulatedCommissionRecord.decode(message.value);
635
+ },
636
+ toProto(message: ValidatorAccumulatedCommissionRecord): Uint8Array {
637
+ return ValidatorAccumulatedCommissionRecord.encode(message).finish();
638
+ },
639
+ toProtoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordProtoMsg {
640
+ return {
641
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord",
642
+ value: ValidatorAccumulatedCommissionRecord.encode(message).finish()
643
+ };
644
+ }
645
+ };
646
+ function createBaseValidatorHistoricalRewardsRecord(): ValidatorHistoricalRewardsRecord {
647
+ return {
648
+ validatorAddress: "",
649
+ period: BigInt(0),
650
+ rewards: ValidatorHistoricalRewards.fromPartial({})
651
+ };
652
+ }
653
+ export const ValidatorHistoricalRewardsRecord = {
654
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord",
655
+ encode(message: ValidatorHistoricalRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
656
+ if (message.validatorAddress !== "") {
657
+ writer.uint32(10).string(message.validatorAddress);
658
+ }
659
+ if (message.period !== BigInt(0)) {
660
+ writer.uint32(16).uint64(message.period);
661
+ }
662
+ if (message.rewards !== undefined) {
663
+ ValidatorHistoricalRewards.encode(message.rewards, writer.uint32(26).fork()).ldelim();
664
+ }
665
+ return writer;
666
+ },
667
+ decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord {
668
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
669
+ let end = length === undefined ? reader.len : reader.pos + length;
670
+ const message = createBaseValidatorHistoricalRewardsRecord();
671
+ while (reader.pos < end) {
672
+ const tag = reader.uint32();
673
+ switch (tag >>> 3) {
674
+ case 1:
675
+ message.validatorAddress = reader.string();
676
+ break;
677
+ case 2:
678
+ message.period = reader.uint64();
679
+ break;
680
+ case 3:
681
+ message.rewards = ValidatorHistoricalRewards.decode(reader, reader.uint32());
682
+ break;
683
+ default:
684
+ reader.skipType(tag & 7);
685
+ break;
686
+ }
687
+ }
688
+ return message;
689
+ },
690
+ fromPartial(object: Partial<ValidatorHistoricalRewardsRecord>): ValidatorHistoricalRewardsRecord {
691
+ const message = createBaseValidatorHistoricalRewardsRecord();
692
+ message.validatorAddress = object.validatorAddress ?? "";
693
+ message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0);
694
+ message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorHistoricalRewards.fromPartial(object.rewards) : undefined;
695
+ return message;
696
+ },
697
+ fromAmino(object: ValidatorHistoricalRewardsRecordAmino): ValidatorHistoricalRewardsRecord {
698
+ const message = createBaseValidatorHistoricalRewardsRecord();
699
+ if (object.validator_address !== undefined && object.validator_address !== null) {
700
+ message.validatorAddress = object.validator_address;
701
+ }
702
+ if (object.period !== undefined && object.period !== null) {
703
+ message.period = BigInt(object.period);
704
+ }
705
+ if (object.rewards !== undefined && object.rewards !== null) {
706
+ message.rewards = ValidatorHistoricalRewards.fromAmino(object.rewards);
707
+ }
708
+ return message;
709
+ },
710
+ toAmino(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAmino {
711
+ const obj: any = {};
712
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
713
+ obj.period = message.period !== BigInt(0) ? message.period?.toString() : undefined;
714
+ obj.rewards = message.rewards ? ValidatorHistoricalRewards.toAmino(message.rewards) : ValidatorHistoricalRewards.toAmino(ValidatorHistoricalRewards.fromPartial({}));
715
+ return obj;
716
+ },
717
+ fromAminoMsg(object: ValidatorHistoricalRewardsRecordAminoMsg): ValidatorHistoricalRewardsRecord {
718
+ return ValidatorHistoricalRewardsRecord.fromAmino(object.value);
719
+ },
720
+ toAminoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAminoMsg {
721
+ return {
722
+ type: "cosmos-sdk/ValidatorHistoricalRewardsRecord",
723
+ value: ValidatorHistoricalRewardsRecord.toAmino(message)
724
+ };
725
+ },
726
+ fromProtoMsg(message: ValidatorHistoricalRewardsRecordProtoMsg): ValidatorHistoricalRewardsRecord {
727
+ return ValidatorHistoricalRewardsRecord.decode(message.value);
728
+ },
729
+ toProto(message: ValidatorHistoricalRewardsRecord): Uint8Array {
730
+ return ValidatorHistoricalRewardsRecord.encode(message).finish();
731
+ },
732
+ toProtoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordProtoMsg {
733
+ return {
734
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord",
735
+ value: ValidatorHistoricalRewardsRecord.encode(message).finish()
736
+ };
737
+ }
738
+ };
739
+ function createBaseValidatorCurrentRewardsRecord(): ValidatorCurrentRewardsRecord {
740
+ return {
741
+ validatorAddress: "",
742
+ rewards: ValidatorCurrentRewards.fromPartial({})
743
+ };
744
+ }
745
+ export const ValidatorCurrentRewardsRecord = {
746
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord",
747
+ encode(message: ValidatorCurrentRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
748
+ if (message.validatorAddress !== "") {
749
+ writer.uint32(10).string(message.validatorAddress);
750
+ }
751
+ if (message.rewards !== undefined) {
752
+ ValidatorCurrentRewards.encode(message.rewards, writer.uint32(18).fork()).ldelim();
753
+ }
754
+ return writer;
755
+ },
756
+ decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord {
757
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
758
+ let end = length === undefined ? reader.len : reader.pos + length;
759
+ const message = createBaseValidatorCurrentRewardsRecord();
760
+ while (reader.pos < end) {
761
+ const tag = reader.uint32();
762
+ switch (tag >>> 3) {
763
+ case 1:
764
+ message.validatorAddress = reader.string();
765
+ break;
766
+ case 2:
767
+ message.rewards = ValidatorCurrentRewards.decode(reader, reader.uint32());
768
+ break;
769
+ default:
770
+ reader.skipType(tag & 7);
771
+ break;
772
+ }
773
+ }
774
+ return message;
775
+ },
776
+ fromPartial(object: Partial<ValidatorCurrentRewardsRecord>): ValidatorCurrentRewardsRecord {
777
+ const message = createBaseValidatorCurrentRewardsRecord();
778
+ message.validatorAddress = object.validatorAddress ?? "";
779
+ message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorCurrentRewards.fromPartial(object.rewards) : undefined;
780
+ return message;
781
+ },
782
+ fromAmino(object: ValidatorCurrentRewardsRecordAmino): ValidatorCurrentRewardsRecord {
783
+ const message = createBaseValidatorCurrentRewardsRecord();
784
+ if (object.validator_address !== undefined && object.validator_address !== null) {
785
+ message.validatorAddress = object.validator_address;
786
+ }
787
+ if (object.rewards !== undefined && object.rewards !== null) {
788
+ message.rewards = ValidatorCurrentRewards.fromAmino(object.rewards);
789
+ }
790
+ return message;
791
+ },
792
+ toAmino(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAmino {
793
+ const obj: any = {};
794
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
795
+ obj.rewards = message.rewards ? ValidatorCurrentRewards.toAmino(message.rewards) : ValidatorCurrentRewards.toAmino(ValidatorCurrentRewards.fromPartial({}));
796
+ return obj;
797
+ },
798
+ fromAminoMsg(object: ValidatorCurrentRewardsRecordAminoMsg): ValidatorCurrentRewardsRecord {
799
+ return ValidatorCurrentRewardsRecord.fromAmino(object.value);
800
+ },
801
+ toAminoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAminoMsg {
802
+ return {
803
+ type: "cosmos-sdk/ValidatorCurrentRewardsRecord",
804
+ value: ValidatorCurrentRewardsRecord.toAmino(message)
805
+ };
806
+ },
807
+ fromProtoMsg(message: ValidatorCurrentRewardsRecordProtoMsg): ValidatorCurrentRewardsRecord {
808
+ return ValidatorCurrentRewardsRecord.decode(message.value);
809
+ },
810
+ toProto(message: ValidatorCurrentRewardsRecord): Uint8Array {
811
+ return ValidatorCurrentRewardsRecord.encode(message).finish();
812
+ },
813
+ toProtoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordProtoMsg {
814
+ return {
815
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord",
816
+ value: ValidatorCurrentRewardsRecord.encode(message).finish()
817
+ };
818
+ }
819
+ };
820
+ function createBaseDelegatorStartingInfoRecord(): DelegatorStartingInfoRecord {
821
+ return {
822
+ delegatorAddress: "",
823
+ validatorAddress: "",
824
+ startingInfo: DelegatorStartingInfo.fromPartial({})
825
+ };
826
+ }
827
+ export const DelegatorStartingInfoRecord = {
828
+ typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord",
829
+ encode(message: DelegatorStartingInfoRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
830
+ if (message.delegatorAddress !== "") {
831
+ writer.uint32(10).string(message.delegatorAddress);
832
+ }
833
+ if (message.validatorAddress !== "") {
834
+ writer.uint32(18).string(message.validatorAddress);
835
+ }
836
+ if (message.startingInfo !== undefined) {
837
+ DelegatorStartingInfo.encode(message.startingInfo, writer.uint32(26).fork()).ldelim();
838
+ }
839
+ return writer;
840
+ },
841
+ decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfoRecord {
842
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
843
+ let end = length === undefined ? reader.len : reader.pos + length;
844
+ const message = createBaseDelegatorStartingInfoRecord();
845
+ while (reader.pos < end) {
846
+ const tag = reader.uint32();
847
+ switch (tag >>> 3) {
848
+ case 1:
849
+ message.delegatorAddress = reader.string();
850
+ break;
851
+ case 2:
852
+ message.validatorAddress = reader.string();
853
+ break;
854
+ case 3:
855
+ message.startingInfo = DelegatorStartingInfo.decode(reader, reader.uint32());
856
+ break;
857
+ default:
858
+ reader.skipType(tag & 7);
859
+ break;
860
+ }
861
+ }
862
+ return message;
863
+ },
864
+ fromPartial(object: Partial<DelegatorStartingInfoRecord>): DelegatorStartingInfoRecord {
865
+ const message = createBaseDelegatorStartingInfoRecord();
866
+ message.delegatorAddress = object.delegatorAddress ?? "";
867
+ message.validatorAddress = object.validatorAddress ?? "";
868
+ message.startingInfo = object.startingInfo !== undefined && object.startingInfo !== null ? DelegatorStartingInfo.fromPartial(object.startingInfo) : undefined;
869
+ return message;
870
+ },
871
+ fromAmino(object: DelegatorStartingInfoRecordAmino): DelegatorStartingInfoRecord {
872
+ const message = createBaseDelegatorStartingInfoRecord();
873
+ if (object.delegator_address !== undefined && object.delegator_address !== null) {
874
+ message.delegatorAddress = object.delegator_address;
875
+ }
876
+ if (object.validator_address !== undefined && object.validator_address !== null) {
877
+ message.validatorAddress = object.validator_address;
878
+ }
879
+ if (object.starting_info !== undefined && object.starting_info !== null) {
880
+ message.startingInfo = DelegatorStartingInfo.fromAmino(object.starting_info);
881
+ }
882
+ return message;
883
+ },
884
+ toAmino(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAmino {
885
+ const obj: any = {};
886
+ obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
887
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
888
+ obj.starting_info = message.startingInfo ? DelegatorStartingInfo.toAmino(message.startingInfo) : DelegatorStartingInfo.toAmino(DelegatorStartingInfo.fromPartial({}));
889
+ return obj;
890
+ },
891
+ fromAminoMsg(object: DelegatorStartingInfoRecordAminoMsg): DelegatorStartingInfoRecord {
892
+ return DelegatorStartingInfoRecord.fromAmino(object.value);
893
+ },
894
+ toAminoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAminoMsg {
895
+ return {
896
+ type: "cosmos-sdk/DelegatorStartingInfoRecord",
897
+ value: DelegatorStartingInfoRecord.toAmino(message)
898
+ };
899
+ },
900
+ fromProtoMsg(message: DelegatorStartingInfoRecordProtoMsg): DelegatorStartingInfoRecord {
901
+ return DelegatorStartingInfoRecord.decode(message.value);
902
+ },
903
+ toProto(message: DelegatorStartingInfoRecord): Uint8Array {
904
+ return DelegatorStartingInfoRecord.encode(message).finish();
905
+ },
906
+ toProtoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordProtoMsg {
907
+ return {
908
+ typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord",
909
+ value: DelegatorStartingInfoRecord.encode(message).finish()
910
+ };
911
+ }
912
+ };
913
+ function createBaseValidatorSlashEventRecord(): ValidatorSlashEventRecord {
914
+ return {
915
+ validatorAddress: "",
916
+ height: BigInt(0),
917
+ period: BigInt(0),
918
+ validatorSlashEvent: ValidatorSlashEvent.fromPartial({})
919
+ };
920
+ }
921
+ export const ValidatorSlashEventRecord = {
922
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord",
923
+ encode(message: ValidatorSlashEventRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
924
+ if (message.validatorAddress !== "") {
925
+ writer.uint32(10).string(message.validatorAddress);
926
+ }
927
+ if (message.height !== BigInt(0)) {
928
+ writer.uint32(16).uint64(message.height);
929
+ }
930
+ if (message.period !== BigInt(0)) {
931
+ writer.uint32(24).uint64(message.period);
932
+ }
933
+ if (message.validatorSlashEvent !== undefined) {
934
+ ValidatorSlashEvent.encode(message.validatorSlashEvent, writer.uint32(34).fork()).ldelim();
935
+ }
936
+ return writer;
937
+ },
938
+ decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEventRecord {
939
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
940
+ let end = length === undefined ? reader.len : reader.pos + length;
941
+ const message = createBaseValidatorSlashEventRecord();
942
+ while (reader.pos < end) {
943
+ const tag = reader.uint32();
944
+ switch (tag >>> 3) {
945
+ case 1:
946
+ message.validatorAddress = reader.string();
947
+ break;
948
+ case 2:
949
+ message.height = reader.uint64();
950
+ break;
951
+ case 3:
952
+ message.period = reader.uint64();
953
+ break;
954
+ case 4:
955
+ message.validatorSlashEvent = ValidatorSlashEvent.decode(reader, reader.uint32());
956
+ break;
957
+ default:
958
+ reader.skipType(tag & 7);
959
+ break;
960
+ }
961
+ }
962
+ return message;
963
+ },
964
+ fromPartial(object: Partial<ValidatorSlashEventRecord>): ValidatorSlashEventRecord {
965
+ const message = createBaseValidatorSlashEventRecord();
966
+ message.validatorAddress = object.validatorAddress ?? "";
967
+ message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
968
+ message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0);
969
+ message.validatorSlashEvent = object.validatorSlashEvent !== undefined && object.validatorSlashEvent !== null ? ValidatorSlashEvent.fromPartial(object.validatorSlashEvent) : undefined;
970
+ return message;
971
+ },
972
+ fromAmino(object: ValidatorSlashEventRecordAmino): ValidatorSlashEventRecord {
973
+ const message = createBaseValidatorSlashEventRecord();
974
+ if (object.validator_address !== undefined && object.validator_address !== null) {
975
+ message.validatorAddress = object.validator_address;
976
+ }
977
+ if (object.height !== undefined && object.height !== null) {
978
+ message.height = BigInt(object.height);
979
+ }
980
+ if (object.period !== undefined && object.period !== null) {
981
+ message.period = BigInt(object.period);
982
+ }
983
+ if (object.validator_slash_event !== undefined && object.validator_slash_event !== null) {
984
+ message.validatorSlashEvent = ValidatorSlashEvent.fromAmino(object.validator_slash_event);
985
+ }
986
+ return message;
987
+ },
988
+ toAmino(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAmino {
989
+ const obj: any = {};
990
+ obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
991
+ obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
992
+ obj.period = message.period !== BigInt(0) ? message.period?.toString() : undefined;
993
+ obj.validator_slash_event = message.validatorSlashEvent ? ValidatorSlashEvent.toAmino(message.validatorSlashEvent) : ValidatorSlashEvent.toAmino(ValidatorSlashEvent.fromPartial({}));
994
+ return obj;
995
+ },
996
+ fromAminoMsg(object: ValidatorSlashEventRecordAminoMsg): ValidatorSlashEventRecord {
997
+ return ValidatorSlashEventRecord.fromAmino(object.value);
998
+ },
999
+ toAminoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAminoMsg {
1000
+ return {
1001
+ type: "cosmos-sdk/ValidatorSlashEventRecord",
1002
+ value: ValidatorSlashEventRecord.toAmino(message)
1003
+ };
1004
+ },
1005
+ fromProtoMsg(message: ValidatorSlashEventRecordProtoMsg): ValidatorSlashEventRecord {
1006
+ return ValidatorSlashEventRecord.decode(message.value);
1007
+ },
1008
+ toProto(message: ValidatorSlashEventRecord): Uint8Array {
1009
+ return ValidatorSlashEventRecord.encode(message).finish();
1010
+ },
1011
+ toProtoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordProtoMsg {
1012
+ return {
1013
+ typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord",
1014
+ value: ValidatorSlashEventRecord.encode(message).finish()
1015
+ };
1016
+ }
1017
+ };
1018
+ function createBaseGenesisState(): GenesisState {
1019
+ return {
1020
+ params: Params.fromPartial({}),
1021
+ feePool: FeePool.fromPartial({}),
1022
+ delegatorWithdrawInfos: [],
1023
+ previousProposer: "",
1024
+ outstandingRewards: [],
1025
+ validatorAccumulatedCommissions: [],
1026
+ validatorHistoricalRewards: [],
1027
+ validatorCurrentRewards: [],
1028
+ delegatorStartingInfos: [],
1029
+ validatorSlashEvents: []
1030
+ };
1031
+ }
1032
+ export const GenesisState = {
1033
+ typeUrl: "/cosmos.distribution.v1beta1.GenesisState",
1034
+ encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1035
+ if (message.params !== undefined) {
1036
+ Params.encode(message.params, writer.uint32(10).fork()).ldelim();
1037
+ }
1038
+ if (message.feePool !== undefined) {
1039
+ FeePool.encode(message.feePool, writer.uint32(18).fork()).ldelim();
1040
+ }
1041
+ for (const v of message.delegatorWithdrawInfos) {
1042
+ DelegatorWithdrawInfo.encode(v!, writer.uint32(26).fork()).ldelim();
1043
+ }
1044
+ if (message.previousProposer !== "") {
1045
+ writer.uint32(34).string(message.previousProposer);
1046
+ }
1047
+ for (const v of message.outstandingRewards) {
1048
+ ValidatorOutstandingRewardsRecord.encode(v!, writer.uint32(42).fork()).ldelim();
1049
+ }
1050
+ for (const v of message.validatorAccumulatedCommissions) {
1051
+ ValidatorAccumulatedCommissionRecord.encode(v!, writer.uint32(50).fork()).ldelim();
1052
+ }
1053
+ for (const v of message.validatorHistoricalRewards) {
1054
+ ValidatorHistoricalRewardsRecord.encode(v!, writer.uint32(58).fork()).ldelim();
1055
+ }
1056
+ for (const v of message.validatorCurrentRewards) {
1057
+ ValidatorCurrentRewardsRecord.encode(v!, writer.uint32(66).fork()).ldelim();
1058
+ }
1059
+ for (const v of message.delegatorStartingInfos) {
1060
+ DelegatorStartingInfoRecord.encode(v!, writer.uint32(74).fork()).ldelim();
1061
+ }
1062
+ for (const v of message.validatorSlashEvents) {
1063
+ ValidatorSlashEventRecord.encode(v!, writer.uint32(82).fork()).ldelim();
1064
+ }
1065
+ return writer;
1066
+ },
1067
+ decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
1068
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1069
+ let end = length === undefined ? reader.len : reader.pos + length;
1070
+ const message = createBaseGenesisState();
1071
+ while (reader.pos < end) {
1072
+ const tag = reader.uint32();
1073
+ switch (tag >>> 3) {
1074
+ case 1:
1075
+ message.params = Params.decode(reader, reader.uint32());
1076
+ break;
1077
+ case 2:
1078
+ message.feePool = FeePool.decode(reader, reader.uint32());
1079
+ break;
1080
+ case 3:
1081
+ message.delegatorWithdrawInfos.push(DelegatorWithdrawInfo.decode(reader, reader.uint32()));
1082
+ break;
1083
+ case 4:
1084
+ message.previousProposer = reader.string();
1085
+ break;
1086
+ case 5:
1087
+ message.outstandingRewards.push(ValidatorOutstandingRewardsRecord.decode(reader, reader.uint32()));
1088
+ break;
1089
+ case 6:
1090
+ message.validatorAccumulatedCommissions.push(ValidatorAccumulatedCommissionRecord.decode(reader, reader.uint32()));
1091
+ break;
1092
+ case 7:
1093
+ message.validatorHistoricalRewards.push(ValidatorHistoricalRewardsRecord.decode(reader, reader.uint32()));
1094
+ break;
1095
+ case 8:
1096
+ message.validatorCurrentRewards.push(ValidatorCurrentRewardsRecord.decode(reader, reader.uint32()));
1097
+ break;
1098
+ case 9:
1099
+ message.delegatorStartingInfos.push(DelegatorStartingInfoRecord.decode(reader, reader.uint32()));
1100
+ break;
1101
+ case 10:
1102
+ message.validatorSlashEvents.push(ValidatorSlashEventRecord.decode(reader, reader.uint32()));
1103
+ break;
1104
+ default:
1105
+ reader.skipType(tag & 7);
1106
+ break;
1107
+ }
1108
+ }
1109
+ return message;
1110
+ },
1111
+ fromPartial(object: Partial<GenesisState>): GenesisState {
1112
+ const message = createBaseGenesisState();
1113
+ message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
1114
+ message.feePool = object.feePool !== undefined && object.feePool !== null ? FeePool.fromPartial(object.feePool) : undefined;
1115
+ message.delegatorWithdrawInfos = object.delegatorWithdrawInfos?.map(e => DelegatorWithdrawInfo.fromPartial(e)) || [];
1116
+ message.previousProposer = object.previousProposer ?? "";
1117
+ message.outstandingRewards = object.outstandingRewards?.map(e => ValidatorOutstandingRewardsRecord.fromPartial(e)) || [];
1118
+ message.validatorAccumulatedCommissions = object.validatorAccumulatedCommissions?.map(e => ValidatorAccumulatedCommissionRecord.fromPartial(e)) || [];
1119
+ message.validatorHistoricalRewards = object.validatorHistoricalRewards?.map(e => ValidatorHistoricalRewardsRecord.fromPartial(e)) || [];
1120
+ message.validatorCurrentRewards = object.validatorCurrentRewards?.map(e => ValidatorCurrentRewardsRecord.fromPartial(e)) || [];
1121
+ message.delegatorStartingInfos = object.delegatorStartingInfos?.map(e => DelegatorStartingInfoRecord.fromPartial(e)) || [];
1122
+ message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEventRecord.fromPartial(e)) || [];
1123
+ return message;
1124
+ },
1125
+ fromAmino(object: GenesisStateAmino): GenesisState {
1126
+ const message = createBaseGenesisState();
1127
+ if (object.params !== undefined && object.params !== null) {
1128
+ message.params = Params.fromAmino(object.params);
1129
+ }
1130
+ if (object.fee_pool !== undefined && object.fee_pool !== null) {
1131
+ message.feePool = FeePool.fromAmino(object.fee_pool);
1132
+ }
1133
+ message.delegatorWithdrawInfos = object.delegator_withdraw_infos?.map(e => DelegatorWithdrawInfo.fromAmino(e)) || [];
1134
+ if (object.previous_proposer !== undefined && object.previous_proposer !== null) {
1135
+ message.previousProposer = object.previous_proposer;
1136
+ }
1137
+ message.outstandingRewards = object.outstanding_rewards?.map(e => ValidatorOutstandingRewardsRecord.fromAmino(e)) || [];
1138
+ message.validatorAccumulatedCommissions = object.validator_accumulated_commissions?.map(e => ValidatorAccumulatedCommissionRecord.fromAmino(e)) || [];
1139
+ message.validatorHistoricalRewards = object.validator_historical_rewards?.map(e => ValidatorHistoricalRewardsRecord.fromAmino(e)) || [];
1140
+ message.validatorCurrentRewards = object.validator_current_rewards?.map(e => ValidatorCurrentRewardsRecord.fromAmino(e)) || [];
1141
+ message.delegatorStartingInfos = object.delegator_starting_infos?.map(e => DelegatorStartingInfoRecord.fromAmino(e)) || [];
1142
+ message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEventRecord.fromAmino(e)) || [];
1143
+ return message;
1144
+ },
1145
+ toAmino(message: GenesisState): GenesisStateAmino {
1146
+ const obj: any = {};
1147
+ obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
1148
+ obj.fee_pool = message.feePool ? FeePool.toAmino(message.feePool) : FeePool.toAmino(FeePool.fromPartial({}));
1149
+ if (message.delegatorWithdrawInfos) {
1150
+ obj.delegator_withdraw_infos = message.delegatorWithdrawInfos.map(e => e ? DelegatorWithdrawInfo.toAmino(e) : undefined);
1151
+ } else {
1152
+ obj.delegator_withdraw_infos = message.delegatorWithdrawInfos;
1153
+ }
1154
+ obj.previous_proposer = message.previousProposer === "" ? undefined : message.previousProposer;
1155
+ if (message.outstandingRewards) {
1156
+ obj.outstanding_rewards = message.outstandingRewards.map(e => e ? ValidatorOutstandingRewardsRecord.toAmino(e) : undefined);
1157
+ } else {
1158
+ obj.outstanding_rewards = message.outstandingRewards;
1159
+ }
1160
+ if (message.validatorAccumulatedCommissions) {
1161
+ obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions.map(e => e ? ValidatorAccumulatedCommissionRecord.toAmino(e) : undefined);
1162
+ } else {
1163
+ obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions;
1164
+ }
1165
+ if (message.validatorHistoricalRewards) {
1166
+ obj.validator_historical_rewards = message.validatorHistoricalRewards.map(e => e ? ValidatorHistoricalRewardsRecord.toAmino(e) : undefined);
1167
+ } else {
1168
+ obj.validator_historical_rewards = message.validatorHistoricalRewards;
1169
+ }
1170
+ if (message.validatorCurrentRewards) {
1171
+ obj.validator_current_rewards = message.validatorCurrentRewards.map(e => e ? ValidatorCurrentRewardsRecord.toAmino(e) : undefined);
1172
+ } else {
1173
+ obj.validator_current_rewards = message.validatorCurrentRewards;
1174
+ }
1175
+ if (message.delegatorStartingInfos) {
1176
+ obj.delegator_starting_infos = message.delegatorStartingInfos.map(e => e ? DelegatorStartingInfoRecord.toAmino(e) : undefined);
1177
+ } else {
1178
+ obj.delegator_starting_infos = message.delegatorStartingInfos;
1179
+ }
1180
+ if (message.validatorSlashEvents) {
1181
+ obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEventRecord.toAmino(e) : undefined);
1182
+ } else {
1183
+ obj.validator_slash_events = message.validatorSlashEvents;
1184
+ }
1185
+ return obj;
1186
+ },
1187
+ fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
1188
+ return GenesisState.fromAmino(object.value);
1189
+ },
1190
+ toAminoMsg(message: GenesisState): GenesisStateAminoMsg {
1191
+ return {
1192
+ type: "cosmos-sdk/GenesisState",
1193
+ value: GenesisState.toAmino(message)
1194
+ };
1195
+ },
1196
+ fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
1197
+ return GenesisState.decode(message.value);
1198
+ },
1199
+ toProto(message: GenesisState): Uint8Array {
1200
+ return GenesisState.encode(message).finish();
1201
+ },
1202
+ toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
1203
+ return {
1204
+ typeUrl: "/cosmos.distribution.v1beta1.GenesisState",
1205
+ value: GenesisState.encode(message).finish()
1206
+ };
1207
+ }
1208
+ };