@iconlake/client 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/client.ts +170 -0
  2. package/cosmos.auth.v1beta1/index.ts +6 -0
  3. package/cosmos.auth.v1beta1/module.ts +102 -0
  4. package/cosmos.auth.v1beta1/registry.ts +7 -0
  5. package/cosmos.auth.v1beta1/rest.ts +641 -0
  6. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  7. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +95 -0
  8. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +1212 -0
  9. package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  10. package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  11. package/cosmos.auth.v1beta1/types/gogoproto/gogo.ts +2 -0
  12. package/cosmos.auth.v1beta1/types/google/api/annotations.ts +2 -0
  13. package/cosmos.auth.v1beta1/types/google/api/http.ts +589 -0
  14. package/cosmos.auth.v1beta1/types/google/protobuf/any.ts +240 -0
  15. package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  16. package/cosmos.auth.v1beta1/types.ts +11 -0
  17. package/cosmos.authz.v1beta1/index.ts +6 -0
  18. package/cosmos.authz.v1beta1/module.ts +207 -0
  19. package/cosmos.authz.v1beta1/registry.ts +13 -0
  20. package/cosmos.authz.v1beta1/rest.ts +604 -0
  21. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.ts +325 -0
  22. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.ts +175 -0
  23. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.ts +78 -0
  24. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.ts +516 -0
  25. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +493 -0
  26. package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  27. package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  28. package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  29. package/cosmos.authz.v1beta1/types/gogoproto/gogo.ts +2 -0
  30. package/cosmos.authz.v1beta1/types/google/api/annotations.ts +2 -0
  31. package/cosmos.authz.v1beta1/types/google/api/http.ts +589 -0
  32. package/cosmos.authz.v1beta1/types/google/protobuf/any.ts +240 -0
  33. package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  34. package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  35. package/cosmos.authz.v1beta1/types.ts +17 -0
  36. package/cosmos.bank.v1beta1/index.ts +6 -0
  37. package/cosmos.bank.v1beta1/module.ts +182 -0
  38. package/cosmos.bank.v1beta1/registry.ts +11 -0
  39. package/cosmos.bank.v1beta1/rest.ts +656 -0
  40. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +77 -0
  41. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +604 -0
  42. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +203 -0
  43. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +1366 -0
  44. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +289 -0
  45. package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  46. package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  47. package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  48. package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  49. package/cosmos.bank.v1beta1/types/gogoproto/gogo.ts +2 -0
  50. package/cosmos.bank.v1beta1/types/google/api/annotations.ts +2 -0
  51. package/cosmos.bank.v1beta1/types/google/api/http.ts +589 -0
  52. package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  53. package/cosmos.bank.v1beta1/types.ts +25 -0
  54. package/cosmos.base.node.v1beta1/index.ts +6 -0
  55. package/cosmos.base.node.v1beta1/module.ts +96 -0
  56. package/cosmos.base.node.v1beta1/registry.ts +7 -0
  57. package/cosmos.base.node.v1beta1/rest.ts +170 -0
  58. package/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.ts +137 -0
  59. package/cosmos.base.node.v1beta1/types/google/api/annotations.ts +2 -0
  60. package/cosmos.base.node.v1beta1/types/google/api/http.ts +589 -0
  61. package/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  62. package/cosmos.base.node.v1beta1/types.ts +5 -0
  63. package/cosmos.base.tendermint.v1beta1/index.ts +6 -0
  64. package/cosmos.base.tendermint.v1beta1/module.ts +110 -0
  65. package/cosmos.base.tendermint.v1beta1/registry.ts +7 -0
  66. package/cosmos.base.tendermint.v1beta1/rest.ts +1147 -0
  67. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  68. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +1646 -0
  69. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.ts +442 -0
  70. package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  71. package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.ts +2 -0
  72. package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.ts +2 -0
  73. package/cosmos.base.tendermint.v1beta1/types/google/api/http.ts +589 -0
  74. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.ts +240 -0
  75. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  76. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  77. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  78. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  79. package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.ts +423 -0
  80. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.ts +112 -0
  81. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.ts +412 -0
  82. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1452 -0
  83. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.ts +308 -0
  84. package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.ts +184 -0
  85. package/cosmos.base.tendermint.v1beta1/types.ts +19 -0
  86. package/cosmos.crisis.v1beta1/index.ts +6 -0
  87. package/cosmos.crisis.v1beta1/module.ts +129 -0
  88. package/cosmos.crisis.v1beta1/registry.ts +9 -0
  89. package/cosmos.crisis.v1beta1/rest.ts +152 -0
  90. package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  91. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.ts +79 -0
  92. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +159 -0
  93. package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  94. package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  95. package/cosmos.crisis.v1beta1/types/gogoproto/gogo.ts +2 -0
  96. package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  97. package/cosmos.crisis.v1beta1/types.ts +5 -0
  98. package/cosmos.distribution.v1beta1/index.ts +6 -0
  99. package/cosmos.distribution.v1beta1/module.ts +266 -0
  100. package/cosmos.distribution.v1beta1/registry.ts +15 -0
  101. package/cosmos.distribution.v1beta1/rest.ts +557 -0
  102. package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  103. package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  104. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +945 -0
  105. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +849 -0
  106. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1289 -0
  107. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +550 -0
  108. package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  109. package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  110. package/cosmos.distribution.v1beta1/types/gogoproto/gogo.ts +2 -0
  111. package/cosmos.distribution.v1beta1/types/google/api/annotations.ts +2 -0
  112. package/cosmos.distribution.v1beta1/types/google/api/http.ts +589 -0
  113. package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  114. package/cosmos.distribution.v1beta1/types.ts +43 -0
  115. package/cosmos.evidence.v1beta1/index.ts +6 -0
  116. package/cosmos.evidence.v1beta1/module.ts +131 -0
  117. package/cosmos.evidence.v1beta1/registry.ts +9 -0
  118. package/cosmos.evidence.v1beta1/rest.ts +402 -0
  119. package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  120. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +161 -0
  121. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.ts +73 -0
  122. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +343 -0
  123. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +213 -0
  124. package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  125. package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  126. package/cosmos.evidence.v1beta1/types/gogoproto/gogo.ts +2 -0
  127. package/cosmos.evidence.v1beta1/types/google/api/annotations.ts +2 -0
  128. package/cosmos.evidence.v1beta1/types/google/api/http.ts +589 -0
  129. package/cosmos.evidence.v1beta1/types/google/protobuf/any.ts +240 -0
  130. package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  131. package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  132. package/cosmos.evidence.v1beta1/types.ts +7 -0
  133. package/cosmos.feegrant.v1beta1/index.ts +6 -0
  134. package/cosmos.feegrant.v1beta1/module.ts +170 -0
  135. package/cosmos.feegrant.v1beta1/registry.ts +11 -0
  136. package/cosmos.feegrant.v1beta1/rest.ts +452 -0
  137. package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  138. package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  139. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.ts +409 -0
  140. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.ts +76 -0
  141. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.ts +484 -0
  142. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.ts +294 -0
  143. package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  144. package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  145. package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.ts +2 -0
  146. package/cosmos.feegrant.v1beta1/types/google/api/annotations.ts +2 -0
  147. package/cosmos.feegrant.v1beta1/types/google/api/http.ts +589 -0
  148. package/cosmos.feegrant.v1beta1/types/google/protobuf/any.ts +240 -0
  149. package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  150. package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.ts +187 -0
  151. package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  152. package/cosmos.feegrant.v1beta1/types.ts +13 -0
  153. package/cosmos.gov.v1/index.ts +6 -0
  154. package/cosmos.gov.v1/module.ts +244 -0
  155. package/cosmos.gov.v1/registry.ts +15 -0
  156. package/cosmos.gov.v1/rest.ts +798 -0
  157. package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  158. package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  159. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +208 -0
  160. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +925 -0
  161. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +1202 -0
  162. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +763 -0
  163. package/cosmos.gov.v1/types/cosmos/msg/v1/msg.ts +2 -0
  164. package/cosmos.gov.v1/types/cosmos_proto/cosmos.ts +247 -0
  165. package/cosmos.gov.v1/types/gogoproto/gogo.ts +2 -0
  166. package/cosmos.gov.v1/types/google/api/annotations.ts +2 -0
  167. package/cosmos.gov.v1/types/google/api/http.ts +589 -0
  168. package/cosmos.gov.v1/types/google/protobuf/any.ts +240 -0
  169. package/cosmos.gov.v1/types/google/protobuf/descriptor.ts +3753 -0
  170. package/cosmos.gov.v1/types/google/protobuf/duration.ts +187 -0
  171. package/cosmos.gov.v1/types/google/protobuf/timestamp.ts +216 -0
  172. package/cosmos.gov.v1/types.ts +21 -0
  173. package/cosmos.gov.v1beta1/index.ts +6 -0
  174. package/cosmos.gov.v1beta1/module.ts +246 -0
  175. package/cosmos.gov.v1beta1/registry.ts +15 -0
  176. package/cosmos.gov.v1beta1/rest.ts +864 -0
  177. package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  178. package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  179. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +206 -0
  180. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +1015 -0
  181. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +1200 -0
  182. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +612 -0
  183. package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  184. package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  185. package/cosmos.gov.v1beta1/types/gogoproto/gogo.ts +2 -0
  186. package/cosmos.gov.v1beta1/types/google/api/annotations.ts +2 -0
  187. package/cosmos.gov.v1beta1/types/google/api/http.ts +589 -0
  188. package/cosmos.gov.v1beta1/types/google/protobuf/any.ts +240 -0
  189. package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  190. package/cosmos.gov.v1beta1/types/google/protobuf/duration.ts +187 -0
  191. package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  192. package/cosmos.gov.v1beta1/types.ts +23 -0
  193. package/cosmos.group.v1/index.ts +6 -0
  194. package/cosmos.group.v1/module.ts +598 -0
  195. package/cosmos.group.v1/registry.ts +35 -0
  196. package/cosmos.group.v1/rest.ts +1162 -0
  197. package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  198. package/cosmos.group.v1/types/cosmos/group/v1/events.ts +568 -0
  199. package/cosmos.group.v1/types/cosmos/group/v1/genesis.ts +228 -0
  200. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +1897 -0
  201. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +2113 -0
  202. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +1422 -0
  203. package/cosmos.group.v1/types/cosmos/msg/v1/msg.ts +2 -0
  204. package/cosmos.group.v1/types/cosmos_proto/cosmos.ts +247 -0
  205. package/cosmos.group.v1/types/gogoproto/gogo.ts +2 -0
  206. package/cosmos.group.v1/types/google/api/annotations.ts +2 -0
  207. package/cosmos.group.v1/types/google/api/http.ts +589 -0
  208. package/cosmos.group.v1/types/google/protobuf/any.ts +240 -0
  209. package/cosmos.group.v1/types/google/protobuf/descriptor.ts +3753 -0
  210. package/cosmos.group.v1/types/google/protobuf/duration.ts +187 -0
  211. package/cosmos.group.v1/types/google/protobuf/timestamp.ts +216 -0
  212. package/cosmos.group.v1/types.ts +45 -0
  213. package/cosmos.mint.v1beta1/index.ts +6 -0
  214. package/cosmos.mint.v1beta1/module.ts +100 -0
  215. package/cosmos.mint.v1beta1/registry.ts +7 -0
  216. package/cosmos.mint.v1beta1/rest.ts +253 -0
  217. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +92 -0
  218. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +234 -0
  219. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.ts +412 -0
  220. package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  221. package/cosmos.mint.v1beta1/types/gogoproto/gogo.ts +2 -0
  222. package/cosmos.mint.v1beta1/types/google/api/annotations.ts +2 -0
  223. package/cosmos.mint.v1beta1/types/google/api/http.ts +589 -0
  224. package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  225. package/cosmos.mint.v1beta1/types.ts +9 -0
  226. package/cosmos.nft.v1beta1/index.ts +6 -0
  227. package/cosmos.nft.v1beta1/module.ts +108 -0
  228. package/cosmos.nft.v1beta1/registry.ts +7 -0
  229. package/cosmos.nft.v1beta1/rest.ts +685 -0
  230. package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  231. package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  232. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +251 -0
  233. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +163 -0
  234. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.ts +240 -0
  235. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +964 -0
  236. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.ts +173 -0
  237. package/cosmos.nft.v1beta1/types/google/api/annotations.ts +2 -0
  238. package/cosmos.nft.v1beta1/types/google/api/http.ts +589 -0
  239. package/cosmos.nft.v1beta1/types/google/protobuf/any.ts +240 -0
  240. package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  241. package/cosmos.nft.v1beta1/types.ts +17 -0
  242. package/cosmos.params.v1beta1/index.ts +6 -0
  243. package/cosmos.params.v1beta1/module.ts +102 -0
  244. package/cosmos.params.v1beta1/registry.ts +7 -0
  245. package/cosmos.params.v1beta1/rest.ts +220 -0
  246. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.ts +174 -0
  247. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.ts +364 -0
  248. package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  249. package/cosmos.params.v1beta1/types/gogoproto/gogo.ts +2 -0
  250. package/cosmos.params.v1beta1/types/google/api/annotations.ts +2 -0
  251. package/cosmos.params.v1beta1/types/google/api/http.ts +589 -0
  252. package/cosmos.params.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  253. package/cosmos.params.v1beta1/types.ts +11 -0
  254. package/cosmos.slashing.v1beta1/index.ts +6 -0
  255. package/cosmos.slashing.v1beta1/module.ts +139 -0
  256. package/cosmos.slashing.v1beta1/registry.ts +9 -0
  257. package/cosmos.slashing.v1beta1/rest.ts +368 -0
  258. package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  259. package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  260. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +364 -0
  261. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.ts +411 -0
  262. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.ts +352 -0
  263. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +141 -0
  264. package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  265. package/cosmos.slashing.v1beta1/types/gogoproto/gogo.ts +2 -0
  266. package/cosmos.slashing.v1beta1/types/google/api/annotations.ts +2 -0
  267. package/cosmos.slashing.v1beta1/types/google/api/http.ts +589 -0
  268. package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  269. package/cosmos.slashing.v1beta1/types/google/protobuf/duration.ts +187 -0
  270. package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  271. package/cosmos.slashing.v1beta1/types.ts +15 -0
  272. package/cosmos.staking.v1beta1/index.ts +6 -0
  273. package/cosmos.staking.v1beta1/module.ts +340 -0
  274. package/cosmos.staking.v1beta1/registry.ts +19 -0
  275. package/cosmos.staking.v1beta1/rest.ts +1239 -0
  276. package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  277. package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  278. package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  279. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.ts +245 -0
  280. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +322 -0
  281. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +2109 -0
  282. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +1829 -0
  283. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1005 -0
  284. package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  285. package/cosmos.staking.v1beta1/types/gogoproto/gogo.ts +2 -0
  286. package/cosmos.staking.v1beta1/types/google/api/annotations.ts +2 -0
  287. package/cosmos.staking.v1beta1/types/google/api/http.ts +589 -0
  288. package/cosmos.staking.v1beta1/types/google/protobuf/any.ts +240 -0
  289. package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  290. package/cosmos.staking.v1beta1/types/google/protobuf/duration.ts +187 -0
  291. package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  292. package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  293. package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  294. package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1452 -0
  295. package/cosmos.staking.v1beta1/types/tendermint/types/validator.ts +308 -0
  296. package/cosmos.staking.v1beta1/types/tendermint/version/types.ts +184 -0
  297. package/cosmos.staking.v1beta1/types.ts +51 -0
  298. package/cosmos.tx.v1beta1/index.ts +6 -0
  299. package/cosmos.tx.v1beta1/module.ts +122 -0
  300. package/cosmos.tx.v1beta1/registry.ts +7 -0
  301. package/cosmos.tx.v1beta1/rest.ts +1372 -0
  302. package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.ts +1040 -0
  303. package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  304. package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  305. package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.ts +195 -0
  306. package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.ts +556 -0
  307. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +1057 -0
  308. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.ts +1355 -0
  309. package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  310. package/cosmos.tx.v1beta1/types/gogoproto/gogo.ts +2 -0
  311. package/cosmos.tx.v1beta1/types/google/api/annotations.ts +2 -0
  312. package/cosmos.tx.v1beta1/types/google/api/http.ts +589 -0
  313. package/cosmos.tx.v1beta1/types/google/protobuf/any.ts +240 -0
  314. package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  315. package/cosmos.tx.v1beta1/types/google/protobuf/duration.ts +187 -0
  316. package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  317. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +4154 -0
  318. package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  319. package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  320. package/cosmos.tx.v1beta1/types/tendermint/types/block.ts +112 -0
  321. package/cosmos.tx.v1beta1/types/tendermint/types/evidence.ts +412 -0
  322. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +514 -0
  323. package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1452 -0
  324. package/cosmos.tx.v1beta1/types/tendermint/types/validator.ts +308 -0
  325. package/cosmos.tx.v1beta1/types/tendermint/version/types.ts +184 -0
  326. package/cosmos.tx.v1beta1/types.ts +31 -0
  327. package/cosmos.upgrade.v1beta1/index.ts +6 -0
  328. package/cosmos.upgrade.v1beta1/module.ts +170 -0
  329. package/cosmos.upgrade.v1beta1/registry.ts +11 -0
  330. package/cosmos.upgrade.v1beta1/rest.ts +468 -0
  331. package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  332. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.ts +728 -0
  333. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +284 -0
  334. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  335. package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  336. package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.ts +2 -0
  337. package/cosmos.upgrade.v1beta1/types/google/api/annotations.ts +2 -0
  338. package/cosmos.upgrade.v1beta1/types/google/api/http.ts +589 -0
  339. package/cosmos.upgrade.v1beta1/types/google/protobuf/any.ts +240 -0
  340. package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  341. package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  342. package/cosmos.upgrade.v1beta1/types.ts +13 -0
  343. package/cosmos.vesting.v1beta1/index.ts +6 -0
  344. package/cosmos.vesting.v1beta1/module.ts +207 -0
  345. package/cosmos.vesting.v1beta1/registry.ts +13 -0
  346. package/cosmos.vesting.v1beta1/rest.ts +297 -0
  347. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  348. package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  349. package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  350. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +540 -0
  351. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +529 -0
  352. package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  353. package/cosmos.vesting.v1beta1/types/gogoproto/gogo.ts +2 -0
  354. package/cosmos.vesting.v1beta1/types/google/protobuf/any.ts +240 -0
  355. package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  356. package/cosmos.vesting.v1beta1/types.ts +17 -0
  357. package/env.ts +7 -0
  358. package/helpers.ts +32 -0
  359. package/ibc.applications.interchain_accounts.controller.v1/index.ts +6 -0
  360. package/ibc.applications.interchain_accounts.controller.v1/module.ts +98 -0
  361. package/ibc.applications.interchain_accounts.controller.v1/registry.ts +7 -0
  362. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +346 -0
  363. package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.ts +2 -0
  364. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.ts +2 -0
  365. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.ts +589 -0
  366. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.ts +240 -0
  367. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.ts +3753 -0
  368. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +75 -0
  369. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.ts +274 -0
  370. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +361 -0
  371. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.ts +234 -0
  372. package/ibc.applications.interchain_accounts.controller.v1/types.ts +7 -0
  373. package/ibc.applications.interchain_accounts.host.v1/index.ts +6 -0
  374. package/ibc.applications.interchain_accounts.host.v1/module.ts +98 -0
  375. package/ibc.applications.interchain_accounts.host.v1/registry.ts +7 -0
  376. package/ibc.applications.interchain_accounts.host.v1/rest.ts +183 -0
  377. package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.ts +2 -0
  378. package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.ts +2 -0
  379. package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.ts +589 -0
  380. package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.ts +3753 -0
  381. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.ts +92 -0
  382. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.ts +141 -0
  383. package/ibc.applications.interchain_accounts.host.v1/types.ts +7 -0
  384. package/ibc.applications.transfer.v1/index.ts +6 -0
  385. package/ibc.applications.transfer.v1/module.ts +133 -0
  386. package/ibc.applications.transfer.v1/registry.ts +9 -0
  387. package/ibc.applications.transfer.v1/rest.ts +544 -0
  388. package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  389. package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  390. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  391. package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.ts +247 -0
  392. package/ibc.applications.transfer.v1/types/gogoproto/gogo.ts +2 -0
  393. package/ibc.applications.transfer.v1/types/google/api/annotations.ts +2 -0
  394. package/ibc.applications.transfer.v1/types/google/api/http.ts +589 -0
  395. package/ibc.applications.transfer.v1/types/google/protobuf/any.ts +240 -0
  396. package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.ts +3753 -0
  397. package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.ts +216 -0
  398. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +100 -0
  399. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +659 -0
  400. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.ts +168 -0
  401. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.ts +287 -0
  402. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +608 -0
  403. package/ibc.applications.transfer.v1/types.ts +9 -0
  404. package/ibc.core.channel.v1/index.ts +6 -0
  405. package/ibc.core.channel.v1/module.ts +112 -0
  406. package/ibc.core.channel.v1/registry.ts +7 -0
  407. package/ibc.core.channel.v1/rest.ts +1375 -0
  408. package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  409. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  410. package/ibc.core.channel.v1/types/cosmos_proto/cosmos.ts +247 -0
  411. package/ibc.core.channel.v1/types/gogoproto/gogo.ts +2 -0
  412. package/ibc.core.channel.v1/types/google/api/annotations.ts +2 -0
  413. package/ibc.core.channel.v1/types/google/api/http.ts +589 -0
  414. package/ibc.core.channel.v1/types/google/protobuf/any.ts +240 -0
  415. package/ibc.core.channel.v1/types/google/protobuf/descriptor.ts +3753 -0
  416. package/ibc.core.channel.v1/types/google/protobuf/timestamp.ts +216 -0
  417. package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.ts +905 -0
  418. package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.ts +301 -0
  419. package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.ts +2472 -0
  420. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +1784 -0
  421. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +608 -0
  422. package/ibc.core.channel.v1/types.ts +21 -0
  423. package/ibc.core.client.v1/index.ts +6 -0
  424. package/ibc.core.client.v1/module.ts +114 -0
  425. package/ibc.core.client.v1/registry.ts +7 -0
  426. package/ibc.core.client.v1/rest.ts +1084 -0
  427. package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  428. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  429. package/ibc.core.client.v1/types/cosmos_proto/cosmos.ts +247 -0
  430. package/ibc.core.client.v1/types/gogoproto/gogo.ts +2 -0
  431. package/ibc.core.client.v1/types/google/api/annotations.ts +2 -0
  432. package/ibc.core.client.v1/types/google/api/http.ts +589 -0
  433. package/ibc.core.client.v1/types/google/protobuf/any.ts +240 -0
  434. package/ibc.core.client.v1/types/google/protobuf/descriptor.ts +3753 -0
  435. package/ibc.core.client.v1/types/google/protobuf/timestamp.ts +216 -0
  436. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +608 -0
  437. package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.ts +357 -0
  438. package/ibc.core.client.v1/types/ibc/core/client/v1/query.ts +1390 -0
  439. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +691 -0
  440. package/ibc.core.client.v1/types.ts +23 -0
  441. package/ibc.core.connection.v1/index.ts +6 -0
  442. package/ibc.core.connection.v1/module.ts +110 -0
  443. package/ibc.core.connection.v1/registry.ts +7 -0
  444. package/ibc.core.connection.v1/rest.ts +889 -0
  445. package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  446. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  447. package/ibc.core.connection.v1/types/cosmos_proto/cosmos.ts +247 -0
  448. package/ibc.core.connection.v1/types/gogoproto/gogo.ts +2 -0
  449. package/ibc.core.connection.v1/types/google/api/annotations.ts +2 -0
  450. package/ibc.core.connection.v1/types/google/api/http.ts +589 -0
  451. package/ibc.core.connection.v1/types/google/protobuf/any.ts +240 -0
  452. package/ibc.core.connection.v1/types/google/protobuf/descriptor.ts +3753 -0
  453. package/ibc.core.connection.v1/types/google/protobuf/timestamp.ts +216 -0
  454. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +608 -0
  455. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +299 -0
  456. package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.ts +698 -0
  457. package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.ts +152 -0
  458. package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.ts +1041 -0
  459. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +908 -0
  460. package/ibc.core.connection.v1/types/proofs.ts +1408 -0
  461. package/ibc.core.connection.v1/types.ts +19 -0
  462. package/iconlake.icon/index.ts +6 -0
  463. package/iconlake.icon/module.ts +135 -0
  464. package/iconlake.icon/registry.ts +9 -0
  465. package/iconlake.icon/rest.ts +206 -0
  466. package/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  467. package/iconlake.icon/types/gogoproto/gogo.ts +2 -0
  468. package/iconlake.icon/types/google/api/annotations.ts +2 -0
  469. package/iconlake.icon/types/google/api/http.ts +589 -0
  470. package/iconlake.icon/types/google/protobuf/descriptor.ts +3753 -0
  471. package/iconlake.icon/types/iconlake/icon/genesis.ts +74 -0
  472. package/iconlake.icon/types/iconlake/icon/params.ts +58 -0
  473. package/iconlake.icon/types/iconlake/icon/query.ts +276 -0
  474. package/iconlake.icon/types/iconlake/icon/tx.ts +374 -0
  475. package/iconlake.icon/types.ts +11 -0
  476. package/iconlake.iconlake/index.ts +6 -0
  477. package/iconlake.iconlake/module.ts +133 -0
  478. package/iconlake.iconlake/registry.ts +9 -0
  479. package/iconlake.iconlake/rest.ts +342 -0
  480. package/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  481. package/iconlake.iconlake/types/cosmos/base/v1beta1/coin.ts +261 -0
  482. package/iconlake.iconlake/types/cosmos_proto/cosmos.ts +247 -0
  483. package/iconlake.iconlake/types/gogoproto/gogo.ts +2 -0
  484. package/iconlake.iconlake/types/google/api/annotations.ts +2 -0
  485. package/iconlake.iconlake/types/google/api/http.ts +589 -0
  486. package/iconlake.iconlake/types/google/protobuf/descriptor.ts +3753 -0
  487. package/iconlake.iconlake/types/iconlake/iconlake/account.ts +140 -0
  488. package/iconlake.iconlake/types/iconlake/iconlake/genesis.ts +91 -0
  489. package/iconlake.iconlake/types/iconlake/iconlake/params.ts +58 -0
  490. package/iconlake.iconlake/types/iconlake/iconlake/query.ts +388 -0
  491. package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +214 -0
  492. package/iconlake.iconlake/types.ts +9 -0
  493. package/index.ts +75 -0
  494. package/modules.ts +5 -0
  495. package/package.json +35 -0
  496. package/tsconfig.json +12 -0
  497. package/types.d.ts +21 -0
@@ -0,0 +1,286 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+
5
+ export const protobufPackage = "cosmos.base.query.v1beta1";
6
+
7
+ /**
8
+ * PageRequest is to be embedded in gRPC request messages for efficient
9
+ * pagination. Ex:
10
+ *
11
+ * message SomeRequest {
12
+ * Foo some_parameter = 1;
13
+ * PageRequest pagination = 2;
14
+ * }
15
+ */
16
+ export interface PageRequest {
17
+ /**
18
+ * key is a value returned in PageResponse.next_key to begin
19
+ * querying the next page most efficiently. Only one of offset or key
20
+ * should be set.
21
+ */
22
+ key: Uint8Array;
23
+ /**
24
+ * offset is a numeric offset that can be used when key is unavailable.
25
+ * It is less efficient than using key. Only one of offset or key should
26
+ * be set.
27
+ */
28
+ offset: number;
29
+ /**
30
+ * limit is the total number of results to be returned in the result page.
31
+ * If left empty it will default to a value to be set by each app.
32
+ */
33
+ limit: number;
34
+ /**
35
+ * count_total is set to true to indicate that the result set should include
36
+ * a count of the total number of items available for pagination in UIs.
37
+ * count_total is only respected when offset is used. It is ignored when key
38
+ * is set.
39
+ */
40
+ countTotal: boolean;
41
+ /**
42
+ * reverse is set to true if results are to be returned in the descending order.
43
+ *
44
+ * Since: cosmos-sdk 0.43
45
+ */
46
+ reverse: boolean;
47
+ }
48
+
49
+ /**
50
+ * PageResponse is to be embedded in gRPC response messages where the
51
+ * corresponding request message has used PageRequest.
52
+ *
53
+ * message SomeResponse {
54
+ * repeated Bar results = 1;
55
+ * PageResponse page = 2;
56
+ * }
57
+ */
58
+ export interface PageResponse {
59
+ /**
60
+ * next_key is the key to be passed to PageRequest.key to
61
+ * query the next page most efficiently. It will be empty if
62
+ * there are no more results.
63
+ */
64
+ nextKey: Uint8Array;
65
+ /**
66
+ * total is total number of results available if PageRequest.count_total
67
+ * was set, its value is undefined otherwise
68
+ */
69
+ total: number;
70
+ }
71
+
72
+ function createBasePageRequest(): PageRequest {
73
+ return { key: new Uint8Array(), offset: 0, limit: 0, countTotal: false, reverse: false };
74
+ }
75
+
76
+ export const PageRequest = {
77
+ encode(message: PageRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
78
+ if (message.key.length !== 0) {
79
+ writer.uint32(10).bytes(message.key);
80
+ }
81
+ if (message.offset !== 0) {
82
+ writer.uint32(16).uint64(message.offset);
83
+ }
84
+ if (message.limit !== 0) {
85
+ writer.uint32(24).uint64(message.limit);
86
+ }
87
+ if (message.countTotal === true) {
88
+ writer.uint32(32).bool(message.countTotal);
89
+ }
90
+ if (message.reverse === true) {
91
+ writer.uint32(40).bool(message.reverse);
92
+ }
93
+ return writer;
94
+ },
95
+
96
+ decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest {
97
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
98
+ let end = length === undefined ? reader.len : reader.pos + length;
99
+ const message = createBasePageRequest();
100
+ while (reader.pos < end) {
101
+ const tag = reader.uint32();
102
+ switch (tag >>> 3) {
103
+ case 1:
104
+ message.key = reader.bytes();
105
+ break;
106
+ case 2:
107
+ message.offset = longToNumber(reader.uint64() as Long);
108
+ break;
109
+ case 3:
110
+ message.limit = longToNumber(reader.uint64() as Long);
111
+ break;
112
+ case 4:
113
+ message.countTotal = reader.bool();
114
+ break;
115
+ case 5:
116
+ message.reverse = reader.bool();
117
+ break;
118
+ default:
119
+ reader.skipType(tag & 7);
120
+ break;
121
+ }
122
+ }
123
+ return message;
124
+ },
125
+
126
+ fromJSON(object: any): PageRequest {
127
+ return {
128
+ key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
129
+ offset: isSet(object.offset) ? Number(object.offset) : 0,
130
+ limit: isSet(object.limit) ? Number(object.limit) : 0,
131
+ countTotal: isSet(object.countTotal) ? Boolean(object.countTotal) : false,
132
+ reverse: isSet(object.reverse) ? Boolean(object.reverse) : false,
133
+ };
134
+ },
135
+
136
+ toJSON(message: PageRequest): unknown {
137
+ const obj: any = {};
138
+ message.key !== undefined
139
+ && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
140
+ message.offset !== undefined && (obj.offset = Math.round(message.offset));
141
+ message.limit !== undefined && (obj.limit = Math.round(message.limit));
142
+ message.countTotal !== undefined && (obj.countTotal = message.countTotal);
143
+ message.reverse !== undefined && (obj.reverse = message.reverse);
144
+ return obj;
145
+ },
146
+
147
+ fromPartial<I extends Exact<DeepPartial<PageRequest>, I>>(object: I): PageRequest {
148
+ const message = createBasePageRequest();
149
+ message.key = object.key ?? new Uint8Array();
150
+ message.offset = object.offset ?? 0;
151
+ message.limit = object.limit ?? 0;
152
+ message.countTotal = object.countTotal ?? false;
153
+ message.reverse = object.reverse ?? false;
154
+ return message;
155
+ },
156
+ };
157
+
158
+ function createBasePageResponse(): PageResponse {
159
+ return { nextKey: new Uint8Array(), total: 0 };
160
+ }
161
+
162
+ export const PageResponse = {
163
+ encode(message: PageResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
164
+ if (message.nextKey.length !== 0) {
165
+ writer.uint32(10).bytes(message.nextKey);
166
+ }
167
+ if (message.total !== 0) {
168
+ writer.uint32(16).uint64(message.total);
169
+ }
170
+ return writer;
171
+ },
172
+
173
+ decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse {
174
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
175
+ let end = length === undefined ? reader.len : reader.pos + length;
176
+ const message = createBasePageResponse();
177
+ while (reader.pos < end) {
178
+ const tag = reader.uint32();
179
+ switch (tag >>> 3) {
180
+ case 1:
181
+ message.nextKey = reader.bytes();
182
+ break;
183
+ case 2:
184
+ message.total = longToNumber(reader.uint64() as Long);
185
+ break;
186
+ default:
187
+ reader.skipType(tag & 7);
188
+ break;
189
+ }
190
+ }
191
+ return message;
192
+ },
193
+
194
+ fromJSON(object: any): PageResponse {
195
+ return {
196
+ nextKey: isSet(object.nextKey) ? bytesFromBase64(object.nextKey) : new Uint8Array(),
197
+ total: isSet(object.total) ? Number(object.total) : 0,
198
+ };
199
+ },
200
+
201
+ toJSON(message: PageResponse): unknown {
202
+ const obj: any = {};
203
+ message.nextKey !== undefined
204
+ && (obj.nextKey = base64FromBytes(message.nextKey !== undefined ? message.nextKey : new Uint8Array()));
205
+ message.total !== undefined && (obj.total = Math.round(message.total));
206
+ return obj;
207
+ },
208
+
209
+ fromPartial<I extends Exact<DeepPartial<PageResponse>, I>>(object: I): PageResponse {
210
+ const message = createBasePageResponse();
211
+ message.nextKey = object.nextKey ?? new Uint8Array();
212
+ message.total = object.total ?? 0;
213
+ return message;
214
+ },
215
+ };
216
+
217
+ declare var self: any | undefined;
218
+ declare var window: any | undefined;
219
+ declare var global: any | undefined;
220
+ var globalThis: any = (() => {
221
+ if (typeof globalThis !== "undefined") {
222
+ return globalThis;
223
+ }
224
+ if (typeof self !== "undefined") {
225
+ return self;
226
+ }
227
+ if (typeof window !== "undefined") {
228
+ return window;
229
+ }
230
+ if (typeof global !== "undefined") {
231
+ return global;
232
+ }
233
+ throw "Unable to locate global object";
234
+ })();
235
+
236
+ function bytesFromBase64(b64: string): Uint8Array {
237
+ if (globalThis.Buffer) {
238
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
239
+ } else {
240
+ const bin = globalThis.atob(b64);
241
+ const arr = new Uint8Array(bin.length);
242
+ for (let i = 0; i < bin.length; ++i) {
243
+ arr[i] = bin.charCodeAt(i);
244
+ }
245
+ return arr;
246
+ }
247
+ }
248
+
249
+ function base64FromBytes(arr: Uint8Array): string {
250
+ if (globalThis.Buffer) {
251
+ return globalThis.Buffer.from(arr).toString("base64");
252
+ } else {
253
+ const bin: string[] = [];
254
+ arr.forEach((byte) => {
255
+ bin.push(String.fromCharCode(byte));
256
+ });
257
+ return globalThis.btoa(bin.join(""));
258
+ }
259
+ }
260
+
261
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
262
+
263
+ export type DeepPartial<T> = T extends Builtin ? T
264
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
265
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
266
+ : Partial<T>;
267
+
268
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
269
+ export type Exact<P, I extends P> = P extends Builtin ? P
270
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
271
+
272
+ function longToNumber(long: Long): number {
273
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
274
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
275
+ }
276
+ return long.toNumber();
277
+ }
278
+
279
+ if (_m0.util.Long !== Long) {
280
+ _m0.util.Long = Long as any;
281
+ _m0.configure();
282
+ }
283
+
284
+ function isSet(value: any): boolean {
285
+ return value !== null && value !== undefined;
286
+ }
@@ -0,0 +1,429 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ import { Any } from "../../../google/protobuf/any";
5
+ import { Timestamp } from "../../../google/protobuf/timestamp";
6
+
7
+ export const protobufPackage = "cosmos.upgrade.v1beta1";
8
+
9
+ /** Plan specifies information about a planned upgrade and when it should occur. */
10
+ export interface Plan {
11
+ /**
12
+ * Sets the name for the upgrade. This name will be used by the upgraded
13
+ * version of the software to apply any special "on-upgrade" commands during
14
+ * the first BeginBlock method after the upgrade is applied. It is also used
15
+ * to detect whether a software version can handle a given upgrade. If no
16
+ * upgrade handler with this name has been set in the software, it will be
17
+ * assumed that the software is out-of-date when the upgrade Time or Height is
18
+ * reached and the software will exit.
19
+ */
20
+ name: string;
21
+ /**
22
+ * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic
23
+ * has been removed from the SDK.
24
+ * If this field is not empty, an error will be thrown.
25
+ *
26
+ * @deprecated
27
+ */
28
+ time:
29
+ | Date
30
+ | undefined;
31
+ /**
32
+ * The height at which the upgrade must be performed.
33
+ * Only used if Time is not set.
34
+ */
35
+ height: number;
36
+ /**
37
+ * Any application specific upgrade info to be included on-chain
38
+ * such as a git commit that validators could automatically upgrade to
39
+ */
40
+ info: string;
41
+ /**
42
+ * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been
43
+ * moved to the IBC module in the sub module 02-client.
44
+ * If this field is not empty, an error will be thrown.
45
+ *
46
+ * @deprecated
47
+ */
48
+ upgradedClientState: Any | undefined;
49
+ }
50
+
51
+ /**
52
+ * SoftwareUpgradeProposal is a gov Content type for initiating a software
53
+ * upgrade.
54
+ * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
55
+ * proposals, see MsgSoftwareUpgrade.
56
+ *
57
+ * @deprecated
58
+ */
59
+ export interface SoftwareUpgradeProposal {
60
+ title: string;
61
+ description: string;
62
+ plan: Plan | undefined;
63
+ }
64
+
65
+ /**
66
+ * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
67
+ * upgrade.
68
+ * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
69
+ * proposals, see MsgCancelUpgrade.
70
+ *
71
+ * @deprecated
72
+ */
73
+ export interface CancelSoftwareUpgradeProposal {
74
+ title: string;
75
+ description: string;
76
+ }
77
+
78
+ /**
79
+ * ModuleVersion specifies a module and its consensus version.
80
+ *
81
+ * Since: cosmos-sdk 0.43
82
+ */
83
+ export interface ModuleVersion {
84
+ /** name of the app module */
85
+ name: string;
86
+ /** consensus version of the app module */
87
+ version: number;
88
+ }
89
+
90
+ function createBasePlan(): Plan {
91
+ return { name: "", time: undefined, height: 0, info: "", upgradedClientState: undefined };
92
+ }
93
+
94
+ export const Plan = {
95
+ encode(message: Plan, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
96
+ if (message.name !== "") {
97
+ writer.uint32(10).string(message.name);
98
+ }
99
+ if (message.time !== undefined) {
100
+ Timestamp.encode(toTimestamp(message.time), writer.uint32(18).fork()).ldelim();
101
+ }
102
+ if (message.height !== 0) {
103
+ writer.uint32(24).int64(message.height);
104
+ }
105
+ if (message.info !== "") {
106
+ writer.uint32(34).string(message.info);
107
+ }
108
+ if (message.upgradedClientState !== undefined) {
109
+ Any.encode(message.upgradedClientState, writer.uint32(42).fork()).ldelim();
110
+ }
111
+ return writer;
112
+ },
113
+
114
+ decode(input: _m0.Reader | Uint8Array, length?: number): Plan {
115
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
116
+ let end = length === undefined ? reader.len : reader.pos + length;
117
+ const message = createBasePlan();
118
+ while (reader.pos < end) {
119
+ const tag = reader.uint32();
120
+ switch (tag >>> 3) {
121
+ case 1:
122
+ message.name = reader.string();
123
+ break;
124
+ case 2:
125
+ message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
126
+ break;
127
+ case 3:
128
+ message.height = longToNumber(reader.int64() as Long);
129
+ break;
130
+ case 4:
131
+ message.info = reader.string();
132
+ break;
133
+ case 5:
134
+ message.upgradedClientState = Any.decode(reader, reader.uint32());
135
+ break;
136
+ default:
137
+ reader.skipType(tag & 7);
138
+ break;
139
+ }
140
+ }
141
+ return message;
142
+ },
143
+
144
+ fromJSON(object: any): Plan {
145
+ return {
146
+ name: isSet(object.name) ? String(object.name) : "",
147
+ time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
148
+ height: isSet(object.height) ? Number(object.height) : 0,
149
+ info: isSet(object.info) ? String(object.info) : "",
150
+ upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined,
151
+ };
152
+ },
153
+
154
+ toJSON(message: Plan): unknown {
155
+ const obj: any = {};
156
+ message.name !== undefined && (obj.name = message.name);
157
+ message.time !== undefined && (obj.time = message.time.toISOString());
158
+ message.height !== undefined && (obj.height = Math.round(message.height));
159
+ message.info !== undefined && (obj.info = message.info);
160
+ message.upgradedClientState !== undefined
161
+ && (obj.upgradedClientState = message.upgradedClientState ? Any.toJSON(message.upgradedClientState) : undefined);
162
+ return obj;
163
+ },
164
+
165
+ fromPartial<I extends Exact<DeepPartial<Plan>, I>>(object: I): Plan {
166
+ const message = createBasePlan();
167
+ message.name = object.name ?? "";
168
+ message.time = object.time ?? undefined;
169
+ message.height = object.height ?? 0;
170
+ message.info = object.info ?? "";
171
+ message.upgradedClientState = (object.upgradedClientState !== undefined && object.upgradedClientState !== null)
172
+ ? Any.fromPartial(object.upgradedClientState)
173
+ : undefined;
174
+ return message;
175
+ },
176
+ };
177
+
178
+ function createBaseSoftwareUpgradeProposal(): SoftwareUpgradeProposal {
179
+ return { title: "", description: "", plan: undefined };
180
+ }
181
+
182
+ export const SoftwareUpgradeProposal = {
183
+ encode(message: SoftwareUpgradeProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
184
+ if (message.title !== "") {
185
+ writer.uint32(10).string(message.title);
186
+ }
187
+ if (message.description !== "") {
188
+ writer.uint32(18).string(message.description);
189
+ }
190
+ if (message.plan !== undefined) {
191
+ Plan.encode(message.plan, writer.uint32(26).fork()).ldelim();
192
+ }
193
+ return writer;
194
+ },
195
+
196
+ decode(input: _m0.Reader | Uint8Array, length?: number): SoftwareUpgradeProposal {
197
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
198
+ let end = length === undefined ? reader.len : reader.pos + length;
199
+ const message = createBaseSoftwareUpgradeProposal();
200
+ while (reader.pos < end) {
201
+ const tag = reader.uint32();
202
+ switch (tag >>> 3) {
203
+ case 1:
204
+ message.title = reader.string();
205
+ break;
206
+ case 2:
207
+ message.description = reader.string();
208
+ break;
209
+ case 3:
210
+ message.plan = Plan.decode(reader, reader.uint32());
211
+ break;
212
+ default:
213
+ reader.skipType(tag & 7);
214
+ break;
215
+ }
216
+ }
217
+ return message;
218
+ },
219
+
220
+ fromJSON(object: any): SoftwareUpgradeProposal {
221
+ return {
222
+ title: isSet(object.title) ? String(object.title) : "",
223
+ description: isSet(object.description) ? String(object.description) : "",
224
+ plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,
225
+ };
226
+ },
227
+
228
+ toJSON(message: SoftwareUpgradeProposal): unknown {
229
+ const obj: any = {};
230
+ message.title !== undefined && (obj.title = message.title);
231
+ message.description !== undefined && (obj.description = message.description);
232
+ message.plan !== undefined && (obj.plan = message.plan ? Plan.toJSON(message.plan) : undefined);
233
+ return obj;
234
+ },
235
+
236
+ fromPartial<I extends Exact<DeepPartial<SoftwareUpgradeProposal>, I>>(object: I): SoftwareUpgradeProposal {
237
+ const message = createBaseSoftwareUpgradeProposal();
238
+ message.title = object.title ?? "";
239
+ message.description = object.description ?? "";
240
+ message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;
241
+ return message;
242
+ },
243
+ };
244
+
245
+ function createBaseCancelSoftwareUpgradeProposal(): CancelSoftwareUpgradeProposal {
246
+ return { title: "", description: "" };
247
+ }
248
+
249
+ export const CancelSoftwareUpgradeProposal = {
250
+ encode(message: CancelSoftwareUpgradeProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
251
+ if (message.title !== "") {
252
+ writer.uint32(10).string(message.title);
253
+ }
254
+ if (message.description !== "") {
255
+ writer.uint32(18).string(message.description);
256
+ }
257
+ return writer;
258
+ },
259
+
260
+ decode(input: _m0.Reader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal {
261
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
262
+ let end = length === undefined ? reader.len : reader.pos + length;
263
+ const message = createBaseCancelSoftwareUpgradeProposal();
264
+ while (reader.pos < end) {
265
+ const tag = reader.uint32();
266
+ switch (tag >>> 3) {
267
+ case 1:
268
+ message.title = reader.string();
269
+ break;
270
+ case 2:
271
+ message.description = reader.string();
272
+ break;
273
+ default:
274
+ reader.skipType(tag & 7);
275
+ break;
276
+ }
277
+ }
278
+ return message;
279
+ },
280
+
281
+ fromJSON(object: any): CancelSoftwareUpgradeProposal {
282
+ return {
283
+ title: isSet(object.title) ? String(object.title) : "",
284
+ description: isSet(object.description) ? String(object.description) : "",
285
+ };
286
+ },
287
+
288
+ toJSON(message: CancelSoftwareUpgradeProposal): unknown {
289
+ const obj: any = {};
290
+ message.title !== undefined && (obj.title = message.title);
291
+ message.description !== undefined && (obj.description = message.description);
292
+ return obj;
293
+ },
294
+
295
+ fromPartial<I extends Exact<DeepPartial<CancelSoftwareUpgradeProposal>, I>>(
296
+ object: I,
297
+ ): CancelSoftwareUpgradeProposal {
298
+ const message = createBaseCancelSoftwareUpgradeProposal();
299
+ message.title = object.title ?? "";
300
+ message.description = object.description ?? "";
301
+ return message;
302
+ },
303
+ };
304
+
305
+ function createBaseModuleVersion(): ModuleVersion {
306
+ return { name: "", version: 0 };
307
+ }
308
+
309
+ export const ModuleVersion = {
310
+ encode(message: ModuleVersion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
311
+ if (message.name !== "") {
312
+ writer.uint32(10).string(message.name);
313
+ }
314
+ if (message.version !== 0) {
315
+ writer.uint32(16).uint64(message.version);
316
+ }
317
+ return writer;
318
+ },
319
+
320
+ decode(input: _m0.Reader | Uint8Array, length?: number): ModuleVersion {
321
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
322
+ let end = length === undefined ? reader.len : reader.pos + length;
323
+ const message = createBaseModuleVersion();
324
+ while (reader.pos < end) {
325
+ const tag = reader.uint32();
326
+ switch (tag >>> 3) {
327
+ case 1:
328
+ message.name = reader.string();
329
+ break;
330
+ case 2:
331
+ message.version = longToNumber(reader.uint64() as Long);
332
+ break;
333
+ default:
334
+ reader.skipType(tag & 7);
335
+ break;
336
+ }
337
+ }
338
+ return message;
339
+ },
340
+
341
+ fromJSON(object: any): ModuleVersion {
342
+ return {
343
+ name: isSet(object.name) ? String(object.name) : "",
344
+ version: isSet(object.version) ? Number(object.version) : 0,
345
+ };
346
+ },
347
+
348
+ toJSON(message: ModuleVersion): unknown {
349
+ const obj: any = {};
350
+ message.name !== undefined && (obj.name = message.name);
351
+ message.version !== undefined && (obj.version = Math.round(message.version));
352
+ return obj;
353
+ },
354
+
355
+ fromPartial<I extends Exact<DeepPartial<ModuleVersion>, I>>(object: I): ModuleVersion {
356
+ const message = createBaseModuleVersion();
357
+ message.name = object.name ?? "";
358
+ message.version = object.version ?? 0;
359
+ return message;
360
+ },
361
+ };
362
+
363
+ declare var self: any | undefined;
364
+ declare var window: any | undefined;
365
+ declare var global: any | undefined;
366
+ var globalThis: any = (() => {
367
+ if (typeof globalThis !== "undefined") {
368
+ return globalThis;
369
+ }
370
+ if (typeof self !== "undefined") {
371
+ return self;
372
+ }
373
+ if (typeof window !== "undefined") {
374
+ return window;
375
+ }
376
+ if (typeof global !== "undefined") {
377
+ return global;
378
+ }
379
+ throw "Unable to locate global object";
380
+ })();
381
+
382
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
383
+
384
+ export type DeepPartial<T> = T extends Builtin ? T
385
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
386
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
387
+ : Partial<T>;
388
+
389
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
390
+ export type Exact<P, I extends P> = P extends Builtin ? P
391
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
392
+
393
+ function toTimestamp(date: Date): Timestamp {
394
+ const seconds = date.getTime() / 1_000;
395
+ const nanos = (date.getTime() % 1_000) * 1_000_000;
396
+ return { seconds, nanos };
397
+ }
398
+
399
+ function fromTimestamp(t: Timestamp): Date {
400
+ let millis = t.seconds * 1_000;
401
+ millis += t.nanos / 1_000_000;
402
+ return new Date(millis);
403
+ }
404
+
405
+ function fromJsonTimestamp(o: any): Date {
406
+ if (o instanceof Date) {
407
+ return o;
408
+ } else if (typeof o === "string") {
409
+ return new Date(o);
410
+ } else {
411
+ return fromTimestamp(Timestamp.fromJSON(o));
412
+ }
413
+ }
414
+
415
+ function longToNumber(long: Long): number {
416
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
417
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
418
+ }
419
+ return long.toNumber();
420
+ }
421
+
422
+ if (_m0.util.Long !== Long) {
423
+ _m0.util.Long = Long as any;
424
+ _m0.configure();
425
+ }
426
+
427
+ function isSet(value: any): boolean {
428
+ return value !== null && value !== undefined;
429
+ }