@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,1005 @@
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
+ import { Coin } from "../../base/v1beta1/coin";
7
+ import { CommissionRates, Description } from "./staking";
8
+
9
+ export const protobufPackage = "cosmos.staking.v1beta1";
10
+
11
+ /** MsgCreateValidator defines a SDK message for creating a new validator. */
12
+ export interface MsgCreateValidator {
13
+ description: Description | undefined;
14
+ commission: CommissionRates | undefined;
15
+ minSelfDelegation: string;
16
+ delegatorAddress: string;
17
+ validatorAddress: string;
18
+ pubkey: Any | undefined;
19
+ value: Coin | undefined;
20
+ }
21
+
22
+ /** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */
23
+ export interface MsgCreateValidatorResponse {
24
+ }
25
+
26
+ /** MsgEditValidator defines a SDK message for editing an existing validator. */
27
+ export interface MsgEditValidator {
28
+ description: Description | undefined;
29
+ validatorAddress: string;
30
+ /**
31
+ * We pass a reference to the new commission rate and min self delegation as
32
+ * it's not mandatory to update. If not updated, the deserialized rate will be
33
+ * zero with no way to distinguish if an update was intended.
34
+ * REF: #2373
35
+ */
36
+ commissionRate: string;
37
+ minSelfDelegation: string;
38
+ }
39
+
40
+ /** MsgEditValidatorResponse defines the Msg/EditValidator response type. */
41
+ export interface MsgEditValidatorResponse {
42
+ }
43
+
44
+ /**
45
+ * MsgDelegate defines a SDK message for performing a delegation of coins
46
+ * from a delegator to a validator.
47
+ */
48
+ export interface MsgDelegate {
49
+ delegatorAddress: string;
50
+ validatorAddress: string;
51
+ amount: Coin | undefined;
52
+ }
53
+
54
+ /** MsgDelegateResponse defines the Msg/Delegate response type. */
55
+ export interface MsgDelegateResponse {
56
+ }
57
+
58
+ /**
59
+ * MsgBeginRedelegate defines a SDK message for performing a redelegation
60
+ * of coins from a delegator and source validator to a destination validator.
61
+ */
62
+ export interface MsgBeginRedelegate {
63
+ delegatorAddress: string;
64
+ validatorSrcAddress: string;
65
+ validatorDstAddress: string;
66
+ amount: Coin | undefined;
67
+ }
68
+
69
+ /** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */
70
+ export interface MsgBeginRedelegateResponse {
71
+ completionTime: Date | undefined;
72
+ }
73
+
74
+ /**
75
+ * MsgUndelegate defines a SDK message for performing an undelegation from a
76
+ * delegate and a validator.
77
+ */
78
+ export interface MsgUndelegate {
79
+ delegatorAddress: string;
80
+ validatorAddress: string;
81
+ amount: Coin | undefined;
82
+ }
83
+
84
+ /** MsgUndelegateResponse defines the Msg/Undelegate response type. */
85
+ export interface MsgUndelegateResponse {
86
+ completionTime: Date | undefined;
87
+ }
88
+
89
+ /**
90
+ * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
91
+ *
92
+ * Since: cosmos-sdk 0.46
93
+ */
94
+ export interface MsgCancelUnbondingDelegation {
95
+ delegatorAddress: string;
96
+ validatorAddress: string;
97
+ /** amount is always less than or equal to unbonding delegation entry balance */
98
+ amount:
99
+ | Coin
100
+ | undefined;
101
+ /** creation_height is the height which the unbonding took place. */
102
+ creationHeight: number;
103
+ }
104
+
105
+ /**
106
+ * MsgCancelUnbondingDelegationResponse
107
+ *
108
+ * Since: cosmos-sdk 0.46
109
+ */
110
+ export interface MsgCancelUnbondingDelegationResponse {
111
+ }
112
+
113
+ function createBaseMsgCreateValidator(): MsgCreateValidator {
114
+ return {
115
+ description: undefined,
116
+ commission: undefined,
117
+ minSelfDelegation: "",
118
+ delegatorAddress: "",
119
+ validatorAddress: "",
120
+ pubkey: undefined,
121
+ value: undefined,
122
+ };
123
+ }
124
+
125
+ export const MsgCreateValidator = {
126
+ encode(message: MsgCreateValidator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
127
+ if (message.description !== undefined) {
128
+ Description.encode(message.description, writer.uint32(10).fork()).ldelim();
129
+ }
130
+ if (message.commission !== undefined) {
131
+ CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim();
132
+ }
133
+ if (message.minSelfDelegation !== "") {
134
+ writer.uint32(26).string(message.minSelfDelegation);
135
+ }
136
+ if (message.delegatorAddress !== "") {
137
+ writer.uint32(34).string(message.delegatorAddress);
138
+ }
139
+ if (message.validatorAddress !== "") {
140
+ writer.uint32(42).string(message.validatorAddress);
141
+ }
142
+ if (message.pubkey !== undefined) {
143
+ Any.encode(message.pubkey, writer.uint32(50).fork()).ldelim();
144
+ }
145
+ if (message.value !== undefined) {
146
+ Coin.encode(message.value, writer.uint32(58).fork()).ldelim();
147
+ }
148
+ return writer;
149
+ },
150
+
151
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidator {
152
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
153
+ let end = length === undefined ? reader.len : reader.pos + length;
154
+ const message = createBaseMsgCreateValidator();
155
+ while (reader.pos < end) {
156
+ const tag = reader.uint32();
157
+ switch (tag >>> 3) {
158
+ case 1:
159
+ message.description = Description.decode(reader, reader.uint32());
160
+ break;
161
+ case 2:
162
+ message.commission = CommissionRates.decode(reader, reader.uint32());
163
+ break;
164
+ case 3:
165
+ message.minSelfDelegation = reader.string();
166
+ break;
167
+ case 4:
168
+ message.delegatorAddress = reader.string();
169
+ break;
170
+ case 5:
171
+ message.validatorAddress = reader.string();
172
+ break;
173
+ case 6:
174
+ message.pubkey = Any.decode(reader, reader.uint32());
175
+ break;
176
+ case 7:
177
+ message.value = Coin.decode(reader, reader.uint32());
178
+ break;
179
+ default:
180
+ reader.skipType(tag & 7);
181
+ break;
182
+ }
183
+ }
184
+ return message;
185
+ },
186
+
187
+ fromJSON(object: any): MsgCreateValidator {
188
+ return {
189
+ description: isSet(object.description) ? Description.fromJSON(object.description) : undefined,
190
+ commission: isSet(object.commission) ? CommissionRates.fromJSON(object.commission) : undefined,
191
+ minSelfDelegation: isSet(object.minSelfDelegation) ? String(object.minSelfDelegation) : "",
192
+ delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
193
+ validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
194
+ pubkey: isSet(object.pubkey) ? Any.fromJSON(object.pubkey) : undefined,
195
+ value: isSet(object.value) ? Coin.fromJSON(object.value) : undefined,
196
+ };
197
+ },
198
+
199
+ toJSON(message: MsgCreateValidator): unknown {
200
+ const obj: any = {};
201
+ message.description !== undefined
202
+ && (obj.description = message.description ? Description.toJSON(message.description) : undefined);
203
+ message.commission !== undefined
204
+ && (obj.commission = message.commission ? CommissionRates.toJSON(message.commission) : undefined);
205
+ message.minSelfDelegation !== undefined && (obj.minSelfDelegation = message.minSelfDelegation);
206
+ message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
207
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
208
+ message.pubkey !== undefined && (obj.pubkey = message.pubkey ? Any.toJSON(message.pubkey) : undefined);
209
+ message.value !== undefined && (obj.value = message.value ? Coin.toJSON(message.value) : undefined);
210
+ return obj;
211
+ },
212
+
213
+ fromPartial<I extends Exact<DeepPartial<MsgCreateValidator>, I>>(object: I): MsgCreateValidator {
214
+ const message = createBaseMsgCreateValidator();
215
+ message.description = (object.description !== undefined && object.description !== null)
216
+ ? Description.fromPartial(object.description)
217
+ : undefined;
218
+ message.commission = (object.commission !== undefined && object.commission !== null)
219
+ ? CommissionRates.fromPartial(object.commission)
220
+ : undefined;
221
+ message.minSelfDelegation = object.minSelfDelegation ?? "";
222
+ message.delegatorAddress = object.delegatorAddress ?? "";
223
+ message.validatorAddress = object.validatorAddress ?? "";
224
+ message.pubkey = (object.pubkey !== undefined && object.pubkey !== null)
225
+ ? Any.fromPartial(object.pubkey)
226
+ : undefined;
227
+ message.value = (object.value !== undefined && object.value !== null) ? Coin.fromPartial(object.value) : undefined;
228
+ return message;
229
+ },
230
+ };
231
+
232
+ function createBaseMsgCreateValidatorResponse(): MsgCreateValidatorResponse {
233
+ return {};
234
+ }
235
+
236
+ export const MsgCreateValidatorResponse = {
237
+ encode(_: MsgCreateValidatorResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
238
+ return writer;
239
+ },
240
+
241
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidatorResponse {
242
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
243
+ let end = length === undefined ? reader.len : reader.pos + length;
244
+ const message = createBaseMsgCreateValidatorResponse();
245
+ while (reader.pos < end) {
246
+ const tag = reader.uint32();
247
+ switch (tag >>> 3) {
248
+ default:
249
+ reader.skipType(tag & 7);
250
+ break;
251
+ }
252
+ }
253
+ return message;
254
+ },
255
+
256
+ fromJSON(_: any): MsgCreateValidatorResponse {
257
+ return {};
258
+ },
259
+
260
+ toJSON(_: MsgCreateValidatorResponse): unknown {
261
+ const obj: any = {};
262
+ return obj;
263
+ },
264
+
265
+ fromPartial<I extends Exact<DeepPartial<MsgCreateValidatorResponse>, I>>(_: I): MsgCreateValidatorResponse {
266
+ const message = createBaseMsgCreateValidatorResponse();
267
+ return message;
268
+ },
269
+ };
270
+
271
+ function createBaseMsgEditValidator(): MsgEditValidator {
272
+ return { description: undefined, validatorAddress: "", commissionRate: "", minSelfDelegation: "" };
273
+ }
274
+
275
+ export const MsgEditValidator = {
276
+ encode(message: MsgEditValidator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
277
+ if (message.description !== undefined) {
278
+ Description.encode(message.description, writer.uint32(10).fork()).ldelim();
279
+ }
280
+ if (message.validatorAddress !== "") {
281
+ writer.uint32(18).string(message.validatorAddress);
282
+ }
283
+ if (message.commissionRate !== "") {
284
+ writer.uint32(26).string(message.commissionRate);
285
+ }
286
+ if (message.minSelfDelegation !== "") {
287
+ writer.uint32(34).string(message.minSelfDelegation);
288
+ }
289
+ return writer;
290
+ },
291
+
292
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidator {
293
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
294
+ let end = length === undefined ? reader.len : reader.pos + length;
295
+ const message = createBaseMsgEditValidator();
296
+ while (reader.pos < end) {
297
+ const tag = reader.uint32();
298
+ switch (tag >>> 3) {
299
+ case 1:
300
+ message.description = Description.decode(reader, reader.uint32());
301
+ break;
302
+ case 2:
303
+ message.validatorAddress = reader.string();
304
+ break;
305
+ case 3:
306
+ message.commissionRate = reader.string();
307
+ break;
308
+ case 4:
309
+ message.minSelfDelegation = reader.string();
310
+ break;
311
+ default:
312
+ reader.skipType(tag & 7);
313
+ break;
314
+ }
315
+ }
316
+ return message;
317
+ },
318
+
319
+ fromJSON(object: any): MsgEditValidator {
320
+ return {
321
+ description: isSet(object.description) ? Description.fromJSON(object.description) : undefined,
322
+ validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
323
+ commissionRate: isSet(object.commissionRate) ? String(object.commissionRate) : "",
324
+ minSelfDelegation: isSet(object.minSelfDelegation) ? String(object.minSelfDelegation) : "",
325
+ };
326
+ },
327
+
328
+ toJSON(message: MsgEditValidator): unknown {
329
+ const obj: any = {};
330
+ message.description !== undefined
331
+ && (obj.description = message.description ? Description.toJSON(message.description) : undefined);
332
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
333
+ message.commissionRate !== undefined && (obj.commissionRate = message.commissionRate);
334
+ message.minSelfDelegation !== undefined && (obj.minSelfDelegation = message.minSelfDelegation);
335
+ return obj;
336
+ },
337
+
338
+ fromPartial<I extends Exact<DeepPartial<MsgEditValidator>, I>>(object: I): MsgEditValidator {
339
+ const message = createBaseMsgEditValidator();
340
+ message.description = (object.description !== undefined && object.description !== null)
341
+ ? Description.fromPartial(object.description)
342
+ : undefined;
343
+ message.validatorAddress = object.validatorAddress ?? "";
344
+ message.commissionRate = object.commissionRate ?? "";
345
+ message.minSelfDelegation = object.minSelfDelegation ?? "";
346
+ return message;
347
+ },
348
+ };
349
+
350
+ function createBaseMsgEditValidatorResponse(): MsgEditValidatorResponse {
351
+ return {};
352
+ }
353
+
354
+ export const MsgEditValidatorResponse = {
355
+ encode(_: MsgEditValidatorResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
356
+ return writer;
357
+ },
358
+
359
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidatorResponse {
360
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
361
+ let end = length === undefined ? reader.len : reader.pos + length;
362
+ const message = createBaseMsgEditValidatorResponse();
363
+ while (reader.pos < end) {
364
+ const tag = reader.uint32();
365
+ switch (tag >>> 3) {
366
+ default:
367
+ reader.skipType(tag & 7);
368
+ break;
369
+ }
370
+ }
371
+ return message;
372
+ },
373
+
374
+ fromJSON(_: any): MsgEditValidatorResponse {
375
+ return {};
376
+ },
377
+
378
+ toJSON(_: MsgEditValidatorResponse): unknown {
379
+ const obj: any = {};
380
+ return obj;
381
+ },
382
+
383
+ fromPartial<I extends Exact<DeepPartial<MsgEditValidatorResponse>, I>>(_: I): MsgEditValidatorResponse {
384
+ const message = createBaseMsgEditValidatorResponse();
385
+ return message;
386
+ },
387
+ };
388
+
389
+ function createBaseMsgDelegate(): MsgDelegate {
390
+ return { delegatorAddress: "", validatorAddress: "", amount: undefined };
391
+ }
392
+
393
+ export const MsgDelegate = {
394
+ encode(message: MsgDelegate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
395
+ if (message.delegatorAddress !== "") {
396
+ writer.uint32(10).string(message.delegatorAddress);
397
+ }
398
+ if (message.validatorAddress !== "") {
399
+ writer.uint32(18).string(message.validatorAddress);
400
+ }
401
+ if (message.amount !== undefined) {
402
+ Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
403
+ }
404
+ return writer;
405
+ },
406
+
407
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegate {
408
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
409
+ let end = length === undefined ? reader.len : reader.pos + length;
410
+ const message = createBaseMsgDelegate();
411
+ while (reader.pos < end) {
412
+ const tag = reader.uint32();
413
+ switch (tag >>> 3) {
414
+ case 1:
415
+ message.delegatorAddress = reader.string();
416
+ break;
417
+ case 2:
418
+ message.validatorAddress = reader.string();
419
+ break;
420
+ case 3:
421
+ message.amount = Coin.decode(reader, reader.uint32());
422
+ break;
423
+ default:
424
+ reader.skipType(tag & 7);
425
+ break;
426
+ }
427
+ }
428
+ return message;
429
+ },
430
+
431
+ fromJSON(object: any): MsgDelegate {
432
+ return {
433
+ delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
434
+ validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
435
+ amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined,
436
+ };
437
+ },
438
+
439
+ toJSON(message: MsgDelegate): unknown {
440
+ const obj: any = {};
441
+ message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
442
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
443
+ message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined);
444
+ return obj;
445
+ },
446
+
447
+ fromPartial<I extends Exact<DeepPartial<MsgDelegate>, I>>(object: I): MsgDelegate {
448
+ const message = createBaseMsgDelegate();
449
+ message.delegatorAddress = object.delegatorAddress ?? "";
450
+ message.validatorAddress = object.validatorAddress ?? "";
451
+ message.amount = (object.amount !== undefined && object.amount !== null)
452
+ ? Coin.fromPartial(object.amount)
453
+ : undefined;
454
+ return message;
455
+ },
456
+ };
457
+
458
+ function createBaseMsgDelegateResponse(): MsgDelegateResponse {
459
+ return {};
460
+ }
461
+
462
+ export const MsgDelegateResponse = {
463
+ encode(_: MsgDelegateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
464
+ return writer;
465
+ },
466
+
467
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegateResponse {
468
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
469
+ let end = length === undefined ? reader.len : reader.pos + length;
470
+ const message = createBaseMsgDelegateResponse();
471
+ while (reader.pos < end) {
472
+ const tag = reader.uint32();
473
+ switch (tag >>> 3) {
474
+ default:
475
+ reader.skipType(tag & 7);
476
+ break;
477
+ }
478
+ }
479
+ return message;
480
+ },
481
+
482
+ fromJSON(_: any): MsgDelegateResponse {
483
+ return {};
484
+ },
485
+
486
+ toJSON(_: MsgDelegateResponse): unknown {
487
+ const obj: any = {};
488
+ return obj;
489
+ },
490
+
491
+ fromPartial<I extends Exact<DeepPartial<MsgDelegateResponse>, I>>(_: I): MsgDelegateResponse {
492
+ const message = createBaseMsgDelegateResponse();
493
+ return message;
494
+ },
495
+ };
496
+
497
+ function createBaseMsgBeginRedelegate(): MsgBeginRedelegate {
498
+ return { delegatorAddress: "", validatorSrcAddress: "", validatorDstAddress: "", amount: undefined };
499
+ }
500
+
501
+ export const MsgBeginRedelegate = {
502
+ encode(message: MsgBeginRedelegate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
503
+ if (message.delegatorAddress !== "") {
504
+ writer.uint32(10).string(message.delegatorAddress);
505
+ }
506
+ if (message.validatorSrcAddress !== "") {
507
+ writer.uint32(18).string(message.validatorSrcAddress);
508
+ }
509
+ if (message.validatorDstAddress !== "") {
510
+ writer.uint32(26).string(message.validatorDstAddress);
511
+ }
512
+ if (message.amount !== undefined) {
513
+ Coin.encode(message.amount, writer.uint32(34).fork()).ldelim();
514
+ }
515
+ return writer;
516
+ },
517
+
518
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegate {
519
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
520
+ let end = length === undefined ? reader.len : reader.pos + length;
521
+ const message = createBaseMsgBeginRedelegate();
522
+ while (reader.pos < end) {
523
+ const tag = reader.uint32();
524
+ switch (tag >>> 3) {
525
+ case 1:
526
+ message.delegatorAddress = reader.string();
527
+ break;
528
+ case 2:
529
+ message.validatorSrcAddress = reader.string();
530
+ break;
531
+ case 3:
532
+ message.validatorDstAddress = reader.string();
533
+ break;
534
+ case 4:
535
+ message.amount = Coin.decode(reader, reader.uint32());
536
+ break;
537
+ default:
538
+ reader.skipType(tag & 7);
539
+ break;
540
+ }
541
+ }
542
+ return message;
543
+ },
544
+
545
+ fromJSON(object: any): MsgBeginRedelegate {
546
+ return {
547
+ delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
548
+ validatorSrcAddress: isSet(object.validatorSrcAddress) ? String(object.validatorSrcAddress) : "",
549
+ validatorDstAddress: isSet(object.validatorDstAddress) ? String(object.validatorDstAddress) : "",
550
+ amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined,
551
+ };
552
+ },
553
+
554
+ toJSON(message: MsgBeginRedelegate): unknown {
555
+ const obj: any = {};
556
+ message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
557
+ message.validatorSrcAddress !== undefined && (obj.validatorSrcAddress = message.validatorSrcAddress);
558
+ message.validatorDstAddress !== undefined && (obj.validatorDstAddress = message.validatorDstAddress);
559
+ message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined);
560
+ return obj;
561
+ },
562
+
563
+ fromPartial<I extends Exact<DeepPartial<MsgBeginRedelegate>, I>>(object: I): MsgBeginRedelegate {
564
+ const message = createBaseMsgBeginRedelegate();
565
+ message.delegatorAddress = object.delegatorAddress ?? "";
566
+ message.validatorSrcAddress = object.validatorSrcAddress ?? "";
567
+ message.validatorDstAddress = object.validatorDstAddress ?? "";
568
+ message.amount = (object.amount !== undefined && object.amount !== null)
569
+ ? Coin.fromPartial(object.amount)
570
+ : undefined;
571
+ return message;
572
+ },
573
+ };
574
+
575
+ function createBaseMsgBeginRedelegateResponse(): MsgBeginRedelegateResponse {
576
+ return { completionTime: undefined };
577
+ }
578
+
579
+ export const MsgBeginRedelegateResponse = {
580
+ encode(message: MsgBeginRedelegateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
581
+ if (message.completionTime !== undefined) {
582
+ Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim();
583
+ }
584
+ return writer;
585
+ },
586
+
587
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegateResponse {
588
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
589
+ let end = length === undefined ? reader.len : reader.pos + length;
590
+ const message = createBaseMsgBeginRedelegateResponse();
591
+ while (reader.pos < end) {
592
+ const tag = reader.uint32();
593
+ switch (tag >>> 3) {
594
+ case 1:
595
+ message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
596
+ break;
597
+ default:
598
+ reader.skipType(tag & 7);
599
+ break;
600
+ }
601
+ }
602
+ return message;
603
+ },
604
+
605
+ fromJSON(object: any): MsgBeginRedelegateResponse {
606
+ return { completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined };
607
+ },
608
+
609
+ toJSON(message: MsgBeginRedelegateResponse): unknown {
610
+ const obj: any = {};
611
+ message.completionTime !== undefined && (obj.completionTime = message.completionTime.toISOString());
612
+ return obj;
613
+ },
614
+
615
+ fromPartial<I extends Exact<DeepPartial<MsgBeginRedelegateResponse>, I>>(object: I): MsgBeginRedelegateResponse {
616
+ const message = createBaseMsgBeginRedelegateResponse();
617
+ message.completionTime = object.completionTime ?? undefined;
618
+ return message;
619
+ },
620
+ };
621
+
622
+ function createBaseMsgUndelegate(): MsgUndelegate {
623
+ return { delegatorAddress: "", validatorAddress: "", amount: undefined };
624
+ }
625
+
626
+ export const MsgUndelegate = {
627
+ encode(message: MsgUndelegate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
628
+ if (message.delegatorAddress !== "") {
629
+ writer.uint32(10).string(message.delegatorAddress);
630
+ }
631
+ if (message.validatorAddress !== "") {
632
+ writer.uint32(18).string(message.validatorAddress);
633
+ }
634
+ if (message.amount !== undefined) {
635
+ Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
636
+ }
637
+ return writer;
638
+ },
639
+
640
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegate {
641
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
642
+ let end = length === undefined ? reader.len : reader.pos + length;
643
+ const message = createBaseMsgUndelegate();
644
+ while (reader.pos < end) {
645
+ const tag = reader.uint32();
646
+ switch (tag >>> 3) {
647
+ case 1:
648
+ message.delegatorAddress = reader.string();
649
+ break;
650
+ case 2:
651
+ message.validatorAddress = reader.string();
652
+ break;
653
+ case 3:
654
+ message.amount = Coin.decode(reader, reader.uint32());
655
+ break;
656
+ default:
657
+ reader.skipType(tag & 7);
658
+ break;
659
+ }
660
+ }
661
+ return message;
662
+ },
663
+
664
+ fromJSON(object: any): MsgUndelegate {
665
+ return {
666
+ delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
667
+ validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
668
+ amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined,
669
+ };
670
+ },
671
+
672
+ toJSON(message: MsgUndelegate): unknown {
673
+ const obj: any = {};
674
+ message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
675
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
676
+ message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined);
677
+ return obj;
678
+ },
679
+
680
+ fromPartial<I extends Exact<DeepPartial<MsgUndelegate>, I>>(object: I): MsgUndelegate {
681
+ const message = createBaseMsgUndelegate();
682
+ message.delegatorAddress = object.delegatorAddress ?? "";
683
+ message.validatorAddress = object.validatorAddress ?? "";
684
+ message.amount = (object.amount !== undefined && object.amount !== null)
685
+ ? Coin.fromPartial(object.amount)
686
+ : undefined;
687
+ return message;
688
+ },
689
+ };
690
+
691
+ function createBaseMsgUndelegateResponse(): MsgUndelegateResponse {
692
+ return { completionTime: undefined };
693
+ }
694
+
695
+ export const MsgUndelegateResponse = {
696
+ encode(message: MsgUndelegateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
697
+ if (message.completionTime !== undefined) {
698
+ Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim();
699
+ }
700
+ return writer;
701
+ },
702
+
703
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegateResponse {
704
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
705
+ let end = length === undefined ? reader.len : reader.pos + length;
706
+ const message = createBaseMsgUndelegateResponse();
707
+ while (reader.pos < end) {
708
+ const tag = reader.uint32();
709
+ switch (tag >>> 3) {
710
+ case 1:
711
+ message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
712
+ break;
713
+ default:
714
+ reader.skipType(tag & 7);
715
+ break;
716
+ }
717
+ }
718
+ return message;
719
+ },
720
+
721
+ fromJSON(object: any): MsgUndelegateResponse {
722
+ return { completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined };
723
+ },
724
+
725
+ toJSON(message: MsgUndelegateResponse): unknown {
726
+ const obj: any = {};
727
+ message.completionTime !== undefined && (obj.completionTime = message.completionTime.toISOString());
728
+ return obj;
729
+ },
730
+
731
+ fromPartial<I extends Exact<DeepPartial<MsgUndelegateResponse>, I>>(object: I): MsgUndelegateResponse {
732
+ const message = createBaseMsgUndelegateResponse();
733
+ message.completionTime = object.completionTime ?? undefined;
734
+ return message;
735
+ },
736
+ };
737
+
738
+ function createBaseMsgCancelUnbondingDelegation(): MsgCancelUnbondingDelegation {
739
+ return { delegatorAddress: "", validatorAddress: "", amount: undefined, creationHeight: 0 };
740
+ }
741
+
742
+ export const MsgCancelUnbondingDelegation = {
743
+ encode(message: MsgCancelUnbondingDelegation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
744
+ if (message.delegatorAddress !== "") {
745
+ writer.uint32(10).string(message.delegatorAddress);
746
+ }
747
+ if (message.validatorAddress !== "") {
748
+ writer.uint32(18).string(message.validatorAddress);
749
+ }
750
+ if (message.amount !== undefined) {
751
+ Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
752
+ }
753
+ if (message.creationHeight !== 0) {
754
+ writer.uint32(32).int64(message.creationHeight);
755
+ }
756
+ return writer;
757
+ },
758
+
759
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelUnbondingDelegation {
760
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
761
+ let end = length === undefined ? reader.len : reader.pos + length;
762
+ const message = createBaseMsgCancelUnbondingDelegation();
763
+ while (reader.pos < end) {
764
+ const tag = reader.uint32();
765
+ switch (tag >>> 3) {
766
+ case 1:
767
+ message.delegatorAddress = reader.string();
768
+ break;
769
+ case 2:
770
+ message.validatorAddress = reader.string();
771
+ break;
772
+ case 3:
773
+ message.amount = Coin.decode(reader, reader.uint32());
774
+ break;
775
+ case 4:
776
+ message.creationHeight = longToNumber(reader.int64() as Long);
777
+ break;
778
+ default:
779
+ reader.skipType(tag & 7);
780
+ break;
781
+ }
782
+ }
783
+ return message;
784
+ },
785
+
786
+ fromJSON(object: any): MsgCancelUnbondingDelegation {
787
+ return {
788
+ delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
789
+ validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
790
+ amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined,
791
+ creationHeight: isSet(object.creationHeight) ? Number(object.creationHeight) : 0,
792
+ };
793
+ },
794
+
795
+ toJSON(message: MsgCancelUnbondingDelegation): unknown {
796
+ const obj: any = {};
797
+ message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
798
+ message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
799
+ message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined);
800
+ message.creationHeight !== undefined && (obj.creationHeight = Math.round(message.creationHeight));
801
+ return obj;
802
+ },
803
+
804
+ fromPartial<I extends Exact<DeepPartial<MsgCancelUnbondingDelegation>, I>>(object: I): MsgCancelUnbondingDelegation {
805
+ const message = createBaseMsgCancelUnbondingDelegation();
806
+ message.delegatorAddress = object.delegatorAddress ?? "";
807
+ message.validatorAddress = object.validatorAddress ?? "";
808
+ message.amount = (object.amount !== undefined && object.amount !== null)
809
+ ? Coin.fromPartial(object.amount)
810
+ : undefined;
811
+ message.creationHeight = object.creationHeight ?? 0;
812
+ return message;
813
+ },
814
+ };
815
+
816
+ function createBaseMsgCancelUnbondingDelegationResponse(): MsgCancelUnbondingDelegationResponse {
817
+ return {};
818
+ }
819
+
820
+ export const MsgCancelUnbondingDelegationResponse = {
821
+ encode(_: MsgCancelUnbondingDelegationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
822
+ return writer;
823
+ },
824
+
825
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse {
826
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
827
+ let end = length === undefined ? reader.len : reader.pos + length;
828
+ const message = createBaseMsgCancelUnbondingDelegationResponse();
829
+ while (reader.pos < end) {
830
+ const tag = reader.uint32();
831
+ switch (tag >>> 3) {
832
+ default:
833
+ reader.skipType(tag & 7);
834
+ break;
835
+ }
836
+ }
837
+ return message;
838
+ },
839
+
840
+ fromJSON(_: any): MsgCancelUnbondingDelegationResponse {
841
+ return {};
842
+ },
843
+
844
+ toJSON(_: MsgCancelUnbondingDelegationResponse): unknown {
845
+ const obj: any = {};
846
+ return obj;
847
+ },
848
+
849
+ fromPartial<I extends Exact<DeepPartial<MsgCancelUnbondingDelegationResponse>, I>>(
850
+ _: I,
851
+ ): MsgCancelUnbondingDelegationResponse {
852
+ const message = createBaseMsgCancelUnbondingDelegationResponse();
853
+ return message;
854
+ },
855
+ };
856
+
857
+ /** Msg defines the staking Msg service. */
858
+ export interface Msg {
859
+ /** CreateValidator defines a method for creating a new validator. */
860
+ CreateValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse>;
861
+ /** EditValidator defines a method for editing an existing validator. */
862
+ EditValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse>;
863
+ /**
864
+ * Delegate defines a method for performing a delegation of coins
865
+ * from a delegator to a validator.
866
+ */
867
+ Delegate(request: MsgDelegate): Promise<MsgDelegateResponse>;
868
+ /**
869
+ * BeginRedelegate defines a method for performing a redelegation
870
+ * of coins from a delegator and source validator to a destination validator.
871
+ */
872
+ BeginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse>;
873
+ /**
874
+ * Undelegate defines a method for performing an undelegation from a
875
+ * delegate and a validator.
876
+ */
877
+ Undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse>;
878
+ /**
879
+ * CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
880
+ * and delegate back to previous validator.
881
+ *
882
+ * Since: cosmos-sdk 0.46
883
+ */
884
+ CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise<MsgCancelUnbondingDelegationResponse>;
885
+ }
886
+
887
+ export class MsgClientImpl implements Msg {
888
+ private readonly rpc: Rpc;
889
+ constructor(rpc: Rpc) {
890
+ this.rpc = rpc;
891
+ this.CreateValidator = this.CreateValidator.bind(this);
892
+ this.EditValidator = this.EditValidator.bind(this);
893
+ this.Delegate = this.Delegate.bind(this);
894
+ this.BeginRedelegate = this.BeginRedelegate.bind(this);
895
+ this.Undelegate = this.Undelegate.bind(this);
896
+ this.CancelUnbondingDelegation = this.CancelUnbondingDelegation.bind(this);
897
+ }
898
+ CreateValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse> {
899
+ const data = MsgCreateValidator.encode(request).finish();
900
+ const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", data);
901
+ return promise.then((data) => MsgCreateValidatorResponse.decode(new _m0.Reader(data)));
902
+ }
903
+
904
+ EditValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse> {
905
+ const data = MsgEditValidator.encode(request).finish();
906
+ const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", data);
907
+ return promise.then((data) => MsgEditValidatorResponse.decode(new _m0.Reader(data)));
908
+ }
909
+
910
+ Delegate(request: MsgDelegate): Promise<MsgDelegateResponse> {
911
+ const data = MsgDelegate.encode(request).finish();
912
+ const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", data);
913
+ return promise.then((data) => MsgDelegateResponse.decode(new _m0.Reader(data)));
914
+ }
915
+
916
+ BeginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse> {
917
+ const data = MsgBeginRedelegate.encode(request).finish();
918
+ const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", data);
919
+ return promise.then((data) => MsgBeginRedelegateResponse.decode(new _m0.Reader(data)));
920
+ }
921
+
922
+ Undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse> {
923
+ const data = MsgUndelegate.encode(request).finish();
924
+ const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", data);
925
+ return promise.then((data) => MsgUndelegateResponse.decode(new _m0.Reader(data)));
926
+ }
927
+
928
+ CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise<MsgCancelUnbondingDelegationResponse> {
929
+ const data = MsgCancelUnbondingDelegation.encode(request).finish();
930
+ const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CancelUnbondingDelegation", data);
931
+ return promise.then((data) => MsgCancelUnbondingDelegationResponse.decode(new _m0.Reader(data)));
932
+ }
933
+ }
934
+
935
+ interface Rpc {
936
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
937
+ }
938
+
939
+ declare var self: any | undefined;
940
+ declare var window: any | undefined;
941
+ declare var global: any | undefined;
942
+ var globalThis: any = (() => {
943
+ if (typeof globalThis !== "undefined") {
944
+ return globalThis;
945
+ }
946
+ if (typeof self !== "undefined") {
947
+ return self;
948
+ }
949
+ if (typeof window !== "undefined") {
950
+ return window;
951
+ }
952
+ if (typeof global !== "undefined") {
953
+ return global;
954
+ }
955
+ throw "Unable to locate global object";
956
+ })();
957
+
958
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
959
+
960
+ export type DeepPartial<T> = T extends Builtin ? T
961
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
962
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
963
+ : Partial<T>;
964
+
965
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
966
+ export type Exact<P, I extends P> = P extends Builtin ? P
967
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
968
+
969
+ function toTimestamp(date: Date): Timestamp {
970
+ const seconds = date.getTime() / 1_000;
971
+ const nanos = (date.getTime() % 1_000) * 1_000_000;
972
+ return { seconds, nanos };
973
+ }
974
+
975
+ function fromTimestamp(t: Timestamp): Date {
976
+ let millis = t.seconds * 1_000;
977
+ millis += t.nanos / 1_000_000;
978
+ return new Date(millis);
979
+ }
980
+
981
+ function fromJsonTimestamp(o: any): Date {
982
+ if (o instanceof Date) {
983
+ return o;
984
+ } else if (typeof o === "string") {
985
+ return new Date(o);
986
+ } else {
987
+ return fromTimestamp(Timestamp.fromJSON(o));
988
+ }
989
+ }
990
+
991
+ function longToNumber(long: Long): number {
992
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
993
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
994
+ }
995
+ return long.toNumber();
996
+ }
997
+
998
+ if (_m0.util.Long !== Long) {
999
+ _m0.util.Long = Long as any;
1000
+ _m0.configure();
1001
+ }
1002
+
1003
+ function isSet(value: any): boolean {
1004
+ return value !== null && value !== undefined;
1005
+ }