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