@xpla/xpla-react 1.7.0-beta.0

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 (346) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +47 -0
  3. package/src/amino/amino.ts +1 -0
  4. package/src/binary.ts +534 -0
  5. package/src/cosmos/app/runtime/v1alpha1/module.ts +423 -0
  6. package/src/cosmos/app/runtime/v2/module.ts +589 -0
  7. package/src/cosmos/app/v1alpha1/config.ts +422 -0
  8. package/src/cosmos/app/v1alpha1/module.ts +461 -0
  9. package/src/cosmos/app/v1alpha1/query.rpc.func.ts +14 -0
  10. package/src/cosmos/app/v1alpha1/query.ts +177 -0
  11. package/src/cosmos/auth/module/v1/module.ts +253 -0
  12. package/src/cosmos/auth/v1beta1/accounts.ts +226 -0
  13. package/src/cosmos/auth/v1beta1/auth.ts +550 -0
  14. package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
  15. package/src/cosmos/auth/v1beta1/query.rpc.func.ts +113 -0
  16. package/src/cosmos/auth/v1beta1/query.ts +2034 -0
  17. package/src/cosmos/auth/v1beta1/tx.registry.ts +29 -0
  18. package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +13 -0
  19. package/src/cosmos/auth/v1beta1/tx.ts +219 -0
  20. package/src/cosmos/authz/module/v1/module.ts +80 -0
  21. package/src/cosmos/authz/v1beta1/authz.ts +481 -0
  22. package/src/cosmos/authz/v1beta1/event.ts +259 -0
  23. package/src/cosmos/authz/v1beta1/genesis.ts +100 -0
  24. package/src/cosmos/authz/v1beta1/query.rpc.func.ts +36 -0
  25. package/src/cosmos/authz/v1beta1/query.ts +707 -0
  26. package/src/cosmos/authz/v1beta1/tx.registry.ts +65 -0
  27. package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +31 -0
  28. package/src/cosmos/authz/v1beta1/tx.ts +647 -0
  29. package/src/cosmos/autocli/v1/options.ts +1145 -0
  30. package/src/cosmos/autocli/v1/query.rpc.func.ts +14 -0
  31. package/src/cosmos/autocli/v1/query.ts +288 -0
  32. package/src/cosmos/bank/module/v1/module.ts +153 -0
  33. package/src/cosmos/bank/v1beta1/authz.ts +138 -0
  34. package/src/cosmos/bank/v1beta1/bank.ts +974 -0
  35. package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
  36. package/src/cosmos/bank/v1beta1/query.rpc.func.ts +146 -0
  37. package/src/cosmos/bank/v1beta1/query.ts +3027 -0
  38. package/src/cosmos/bank/v1beta1/tx.registry.ts +83 -0
  39. package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +40 -0
  40. package/src/cosmos/bank/v1beta1/tx.ts +861 -0
  41. package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
  42. package/src/cosmos/base/grpc/v2/service.rpc.func.ts +25 -0
  43. package/src/cosmos/base/grpc/v2/service.ts +473 -0
  44. package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +25 -0
  45. package/src/cosmos/base/node/v1beta1/query.ts +454 -0
  46. package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
  47. package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +25 -0
  48. package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
  49. package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +69 -0
  50. package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
  51. package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +80 -0
  52. package/src/cosmos/base/tendermint/v1beta1/query.ts +2302 -0
  53. package/src/cosmos/base/tendermint/v1beta1/types.ts +455 -0
  54. package/src/cosmos/base/v1beta1/coin.ts +439 -0
  55. package/src/cosmos/circuit/module/v1/module.ts +99 -0
  56. package/src/cosmos/circuit/v1/query.rpc.func.ts +36 -0
  57. package/src/cosmos/circuit/v1/query.ts +574 -0
  58. package/src/cosmos/circuit/v1/tx.registry.ts +65 -0
  59. package/src/cosmos/circuit/v1/tx.rpc.func.ts +31 -0
  60. package/src/cosmos/circuit/v1/tx.ts +676 -0
  61. package/src/cosmos/circuit/v1/types.ts +413 -0
  62. package/src/cosmos/consensus/module/v1/module.ts +99 -0
  63. package/src/cosmos/consensus/v1/query.rpc.func.ts +14 -0
  64. package/src/cosmos/consensus/v1/query.ts +185 -0
  65. package/src/cosmos/consensus/v1/tx.registry.ts +29 -0
  66. package/src/cosmos/consensus/v1/tx.rpc.func.ts +13 -0
  67. package/src/cosmos/consensus/v1/tx.ts +255 -0
  68. package/src/cosmos/crisis/module/v1/module.ts +115 -0
  69. package/src/cosmos/crisis/v1beta1/genesis.ts +106 -0
  70. package/src/cosmos/crisis/v1beta1/tx.registry.ts +47 -0
  71. package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +22 -0
  72. package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
  73. package/src/cosmos/crypto/ed25519/keys.ts +209 -0
  74. package/src/cosmos/crypto/hd/v1/hd.ts +169 -0
  75. package/src/cosmos/crypto/keyring/v1/record.ts +529 -0
  76. package/src/cosmos/crypto/multisig/keys.ts +122 -0
  77. package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
  78. package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
  79. package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
  80. package/src/cosmos/distribution/module/v1/module.ts +113 -0
  81. package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
  82. package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
  83. package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +113 -0
  84. package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
  85. package/src/cosmos/distribution/v1beta1/tx.registry.ts +137 -0
  86. package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +67 -0
  87. package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
  88. package/src/cosmos/evidence/module/v1/module.ts +80 -0
  89. package/src/cosmos/evidence/v1beta1/evidence.ts +154 -0
  90. package/src/cosmos/evidence/v1beta1/genesis.ts +102 -0
  91. package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +25 -0
  92. package/src/cosmos/evidence/v1beta1/query.ts +451 -0
  93. package/src/cosmos/evidence/v1beta1/tx.registry.ts +29 -0
  94. package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +13 -0
  95. package/src/cosmos/evidence/v1beta1/tx.ts +221 -0
  96. package/src/cosmos/feegrant/module/v1/module.ts +80 -0
  97. package/src/cosmos/feegrant/v1beta1/feegrant.ts +573 -0
  98. package/src/cosmos/feegrant/v1beta1/genesis.ts +100 -0
  99. package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +36 -0
  100. package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
  101. package/src/cosmos/feegrant/v1beta1/tx.registry.ts +65 -0
  102. package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +31 -0
  103. package/src/cosmos/feegrant/v1beta1/tx.ts +597 -0
  104. package/src/cosmos/genutil/module/v1/module.ts +80 -0
  105. package/src/cosmos/genutil/v1beta1/genesis.ts +101 -0
  106. package/src/cosmos/gov/module/v1/module.ts +121 -0
  107. package/src/cosmos/gov/v1/genesis.ts +280 -0
  108. package/src/cosmos/gov/v1/gov.ts +1843 -0
  109. package/src/cosmos/gov/v1/query.rpc.func.ts +102 -0
  110. package/src/cosmos/gov/v1/query.ts +1970 -0
  111. package/src/cosmos/gov/v1/tx.registry.ts +137 -0
  112. package/src/cosmos/gov/v1/tx.rpc.func.ts +67 -0
  113. package/src/cosmos/gov/v1/tx.ts +1657 -0
  114. package/src/cosmos/gov/v1beta1/genesis.ts +202 -0
  115. package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
  116. package/src/cosmos/gov/v1beta1/query.rpc.func.ts +91 -0
  117. package/src/cosmos/gov/v1beta1/query.ts +1749 -0
  118. package/src/cosmos/gov/v1beta1/tx.registry.ts +83 -0
  119. package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +40 -0
  120. package/src/cosmos/gov/v1beta1/tx.ts +881 -0
  121. package/src/cosmos/group/module/v1/module.ts +128 -0
  122. package/src/cosmos/group/v1/events.ts +1044 -0
  123. package/src/cosmos/group/v1/genesis.ts +240 -0
  124. package/src/cosmos/group/v1/query.rpc.func.ts +157 -0
  125. package/src/cosmos/group/v1/query.ts +3015 -0
  126. package/src/cosmos/group/v1/tx.registry.ts +263 -0
  127. package/src/cosmos/group/v1/tx.rpc.func.ts +130 -0
  128. package/src/cosmos/group/v1/tx.ts +3207 -0
  129. package/src/cosmos/group/v1/types.ts +2081 -0
  130. package/src/cosmos/ics23/v1/proofs.ts +2060 -0
  131. package/src/cosmos/mint/module/v1/module.ts +113 -0
  132. package/src/cosmos/mint/v1beta1/genesis.ts +116 -0
  133. package/src/cosmos/mint/v1beta1/mint.ts +291 -0
  134. package/src/cosmos/mint/v1beta1/query.rpc.func.ts +36 -0
  135. package/src/cosmos/mint/v1beta1/query.ts +541 -0
  136. package/src/cosmos/mint/v1beta1/tx.registry.ts +29 -0
  137. package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +13 -0
  138. package/src/cosmos/mint/v1beta1/tx.ts +219 -0
  139. package/src/cosmos/msg/textual/v1/textual.ts +1 -0
  140. package/src/cosmos/msg/v1/msg.ts +1 -0
  141. package/src/cosmos/nft/module/v1/module.ts +80 -0
  142. package/src/cosmos/nft/v1beta1/event.ts +403 -0
  143. package/src/cosmos/nft/v1beta1/genesis.ts +234 -0
  144. package/src/cosmos/nft/v1beta1/nft.ts +356 -0
  145. package/src/cosmos/nft/v1beta1/query.rpc.func.ts +80 -0
  146. package/src/cosmos/nft/v1beta1/query.ts +1465 -0
  147. package/src/cosmos/nft/v1beta1/tx.registry.ts +29 -0
  148. package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +13 -0
  149. package/src/cosmos/nft/v1beta1/tx.ts +224 -0
  150. package/src/cosmos/orm/module/v1alpha1/module.ts +88 -0
  151. package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +25 -0
  152. package/src/cosmos/orm/query/v1alpha1/query.ts +993 -0
  153. package/src/cosmos/orm/v1/orm.ts +589 -0
  154. package/src/cosmos/orm/v1alpha1/schema.ts +325 -0
  155. package/src/cosmos/params/module/v1/module.ts +80 -0
  156. package/src/cosmos/params/v1beta1/params.ts +255 -0
  157. package/src/cosmos/params/v1beta1/query.rpc.func.ts +25 -0
  158. package/src/cosmos/params/v1beta1/query.ts +525 -0
  159. package/src/cosmos/query/v1/query.ts +1 -0
  160. package/src/cosmos/reflection/v1/reflection.rpc.func.ts +14 -0
  161. package/src/cosmos/reflection/v1/reflection.ts +179 -0
  162. package/src/cosmos/slashing/module/v1/module.ts +99 -0
  163. package/src/cosmos/slashing/v1beta1/genesis.ts +492 -0
  164. package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +36 -0
  165. package/src/cosmos/slashing/v1beta1/query.ts +598 -0
  166. package/src/cosmos/slashing/v1beta1/slashing.ts +357 -0
  167. package/src/cosmos/slashing/v1beta1/tx.registry.ts +47 -0
  168. package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +22 -0
  169. package/src/cosmos/slashing/v1beta1/tx.ts +390 -0
  170. package/src/cosmos/staking/module/v1/module.ts +157 -0
  171. package/src/cosmos/staking/v1beta1/authz.ts +323 -0
  172. package/src/cosmos/staking/v1beta1/genesis.ts +346 -0
  173. package/src/cosmos/staking/v1beta1/query.rpc.func.ts +157 -0
  174. package/src/cosmos/staking/v1beta1/query.ts +3073 -0
  175. package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
  176. package/src/cosmos/staking/v1beta1/tx.registry.ts +137 -0
  177. package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +67 -0
  178. package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
  179. package/src/cosmos/store/internal/kv/v1beta1/kv.ts +207 -0
  180. package/src/cosmos/store/snapshots/v1/snapshot.ts +863 -0
  181. package/src/cosmos/store/snapshots/v2/snapshot.ts +823 -0
  182. package/src/cosmos/store/streaming/abci/grpc.ts +393 -0
  183. package/src/cosmos/store/v1beta1/commit_info.ts +362 -0
  184. package/src/cosmos/store/v1beta1/listening.ts +286 -0
  185. package/src/cosmos/streaming/v1/grpc.ts +985 -0
  186. package/src/cosmos/tx/config/v1/config.ts +127 -0
  187. package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
  188. package/src/cosmos/tx/v1beta1/service.rpc.func.ts +102 -0
  189. package/src/cosmos/tx/v1beta1/service.ts +2294 -0
  190. package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
  191. package/src/cosmos/upgrade/module/v1/module.ts +99 -0
  192. package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +58 -0
  193. package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
  194. package/src/cosmos/upgrade/v1beta1/tx.registry.ts +47 -0
  195. package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +22 -0
  196. package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
  197. package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
  198. package/src/cosmos/validate/module/v1/module.ts +80 -0
  199. package/src/cosmos/vesting/module/v1/module.ts +80 -0
  200. package/src/cosmos/vesting/v1beta1/tx.registry.ts +65 -0
  201. package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +31 -0
  202. package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
  203. package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
  204. package/src/cosmos_proto/cosmos.ts +341 -0
  205. package/src/cosmwasm/wasm/v1/authz.ts +1231 -0
  206. package/src/cosmwasm/wasm/v1/genesis.ts +532 -0
  207. package/src/cosmwasm/wasm/v1/ibc.ts +355 -0
  208. package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
  209. package/src/cosmwasm/wasm/v1/query.rpc.func.ts +124 -0
  210. package/src/cosmwasm/wasm/v1/query.ts +2560 -0
  211. package/src/cosmwasm/wasm/v1/tx.registry.ts +317 -0
  212. package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +157 -0
  213. package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
  214. package/src/cosmwasm/wasm/v1/types.ts +1120 -0
  215. package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
  216. package/src/ethermint/evm/v1/events.ts +485 -0
  217. package/src/ethermint/evm/v1/evm.ts +1590 -0
  218. package/src/ethermint/evm/v1/genesis.ts +240 -0
  219. package/src/ethermint/evm/v1/query.rpc.func.ts +136 -0
  220. package/src/ethermint/evm/v1/query.ts +2535 -0
  221. package/src/ethermint/evm/v1/tx.registry.ts +47 -0
  222. package/src/ethermint/evm/v1/tx.rpc.func.ts +22 -0
  223. package/src/ethermint/evm/v1/tx.ts +1333 -0
  224. package/src/ethermint/feemarket/v1/events.ts +195 -0
  225. package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
  226. package/src/ethermint/feemarket/v1/genesis.ts +114 -0
  227. package/src/ethermint/feemarket/v1/query.rpc.func.ts +36 -0
  228. package/src/ethermint/feemarket/v1/query.ts +487 -0
  229. package/src/ethermint/feemarket/v1/tx.registry.ts +29 -0
  230. package/src/ethermint/feemarket/v1/tx.rpc.func.ts +13 -0
  231. package/src/ethermint/feemarket/v1/tx.ts +197 -0
  232. package/src/ethermint/types/v1/account.ts +114 -0
  233. package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
  234. package/src/ethermint/types/v1/indexer.ts +205 -0
  235. package/src/ethermint/types/v1/web3.ts +147 -0
  236. package/src/extern.ts +38 -0
  237. package/src/gogoproto/gogo.ts +1 -0
  238. package/src/google/api/annotations.ts +1 -0
  239. package/src/google/api/http.ts +1069 -0
  240. package/src/google/protobuf/any.ts +331 -0
  241. package/src/google/protobuf/descriptor.ts +7177 -0
  242. package/src/google/protobuf/duration.ts +225 -0
  243. package/src/google/protobuf/timestamp.ts +281 -0
  244. package/src/helper-func-types.ts +191 -0
  245. package/src/helpers.ts +259 -0
  246. package/src/ibc/applications/fee/v1/ack.ts +131 -0
  247. package/src/ibc/applications/fee/v1/fee.ts +481 -0
  248. package/src/ibc/applications/fee/v1/genesis.ts +661 -0
  249. package/src/ibc/applications/fee/v1/metadata.ts +121 -0
  250. package/src/ibc/applications/fee/v1/query.rpc.func.ts +113 -0
  251. package/src/ibc/applications/fee/v1/query.ts +2134 -0
  252. package/src/ibc/applications/fee/v1/tx.registry.ts +83 -0
  253. package/src/ibc/applications/fee/v1/tx.rpc.func.ts +40 -0
  254. package/src/ibc/applications/fee/v1/tx.ts +889 -0
  255. package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +105 -0
  256. package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +25 -0
  257. package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  258. package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +65 -0
  259. package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +31 -0
  260. package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +685 -0
  261. package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +661 -0
  262. package/src/ibc/applications/interchain_accounts/host/v1/host.ts +253 -0
  263. package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +14 -0
  264. package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
  265. package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +47 -0
  266. package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +22 -0
  267. package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +429 -0
  268. package/src/ibc/applications/interchain_accounts/v1/account.ts +112 -0
  269. package/src/ibc/applications/interchain_accounts/v1/metadata.ts +191 -0
  270. package/src/ibc/applications/interchain_accounts/v1/packet.ts +259 -0
  271. package/src/ibc/applications/transfer/v1/authz.ts +280 -0
  272. package/src/ibc/applications/transfer/v1/genesis.ts +153 -0
  273. package/src/ibc/applications/transfer/v1/query.rpc.func.ts +69 -0
  274. package/src/ibc/applications/transfer/v1/query.ts +1205 -0
  275. package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
  276. package/src/ibc/applications/transfer/v1/tx.registry.ts +47 -0
  277. package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +22 -0
  278. package/src/ibc/applications/transfer/v1/tx.ts +532 -0
  279. package/src/ibc/applications/transfer/v2/packet.ts +171 -0
  280. package/src/ibc/core/channel/v1/channel.ts +1510 -0
  281. package/src/ibc/core/channel/v1/genesis.ts +354 -0
  282. package/src/ibc/core/channel/v1/query.rpc.func.ts +190 -0
  283. package/src/ibc/core/channel/v1/query.ts +4354 -0
  284. package/src/ibc/core/channel/v1/tx.registry.ts +353 -0
  285. package/src/ibc/core/channel/v1/tx.rpc.func.ts +175 -0
  286. package/src/ibc/core/channel/v1/tx.ts +4866 -0
  287. package/src/ibc/core/channel/v1/upgrade.ts +388 -0
  288. package/src/ibc/core/client/v1/client.ts +927 -0
  289. package/src/ibc/core/client/v1/genesis.ts +426 -0
  290. package/src/ibc/core/client/v1/query.rpc.func.ts +113 -0
  291. package/src/ibc/core/client/v1/query.ts +2280 -0
  292. package/src/ibc/core/client/v1/tx.registry.ts +137 -0
  293. package/src/ibc/core/client/v1/tx.rpc.func.ts +67 -0
  294. package/src/ibc/core/client/v1/tx.ts +1543 -0
  295. package/src/ibc/core/commitment/v1/commitment.ts +418 -0
  296. package/src/ibc/core/connection/v1/connection.ts +1010 -0
  297. package/src/ibc/core/connection/v1/genesis.ts +146 -0
  298. package/src/ibc/core/connection/v1/query.rpc.func.ts +69 -0
  299. package/src/ibc/core/connection/v1/query.ts +1408 -0
  300. package/src/ibc/core/connection/v1/tx.registry.ts +101 -0
  301. package/src/ibc/core/connection/v1/tx.rpc.func.ts +49 -0
  302. package/src/ibc/core/connection/v1/tx.ts +1365 -0
  303. package/src/ibc/core/types/v1/genesis.ts +137 -0
  304. package/src/ibc/lightclients/localhost/v2/localhost.ts +100 -0
  305. package/src/ibc/lightclients/solomachine/v2/solomachine.ts +2103 -0
  306. package/src/ibc/lightclients/solomachine/v3/solomachine.ts +1070 -0
  307. package/src/ibc/lightclients/tendermint/v1/tendermint.ts +838 -0
  308. package/src/ibc/lightclients/wasm/v1/genesis.ts +197 -0
  309. package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +25 -0
  310. package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
  311. package/src/ibc/lightclients/wasm/v1/tx.registry.ts +65 -0
  312. package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +31 -0
  313. package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
  314. package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
  315. package/src/react-query.ts +185 -0
  316. package/src/registry.ts +218 -0
  317. package/src/tendermint/abci/types.ts +6283 -0
  318. package/src/tendermint/crypto/keys.ts +103 -0
  319. package/src/tendermint/crypto/proof.ts +555 -0
  320. package/src/tendermint/p2p/types.ts +507 -0
  321. package/src/tendermint/types/block.ts +131 -0
  322. package/src/tendermint/types/evidence.ts +476 -0
  323. package/src/tendermint/types/params.ts +814 -0
  324. package/src/tendermint/types/types.ts +2157 -0
  325. package/src/tendermint/types/validator.ts +389 -0
  326. package/src/tendermint/version/types.ts +219 -0
  327. package/src/types.ts +155 -0
  328. package/src/utf8.ts +148 -0
  329. package/src/varint.ts +488 -0
  330. package/src/xpla/reward/v1beta1/genesis.ts +92 -0
  331. package/src/xpla/reward/v1beta1/query.rpc.func.ts +25 -0
  332. package/src/xpla/reward/v1beta1/query.ts +333 -0
  333. package/src/xpla/reward/v1beta1/reward.ts +153 -0
  334. package/src/xpla/reward/v1beta1/tx.registry.ts +47 -0
  335. package/src/xpla/reward/v1beta1/tx.rpc.func.ts +22 -0
  336. package/src/xpla/reward/v1beta1/tx.ts +391 -0
  337. package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
  338. package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
  339. package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +14 -0
  340. package/src/xpla/volunteer/v1beta1/query.ts +160 -0
  341. package/src/xpla/volunteer/v1beta1/tx.registry.ts +47 -0
  342. package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +22 -0
  343. package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
  344. package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
  345. package/tsconfig.esm.json +10 -0
  346. package/tsconfig.json +10 -0
@@ -0,0 +1,735 @@
1
+ import { BaseAccount, BaseAccountAmino } from "../../auth/v1beta1/auth";
2
+ import { Coin, CoinAmino } from "../../base/v1beta1/coin";
3
+ import { BinaryReader, BinaryWriter } from "../../../binary";
4
+ import { DeepPartial } from "../../../helpers";
5
+ import { GlobalDecoderRegistry } from "../../../registry";
6
+ /**
7
+ * BaseVestingAccount implements the VestingAccount interface. It contains all
8
+ * the necessary fields needed for any vesting account implementation.
9
+ */
10
+ export interface BaseVestingAccount {
11
+ baseAccount?: BaseAccount;
12
+ originalVesting: Coin[];
13
+ delegatedFree: Coin[];
14
+ delegatedVesting: Coin[];
15
+ /** Vesting end time, as unix timestamp (in seconds). */
16
+ endTime: bigint;
17
+ }
18
+ export interface BaseVestingAccountProtoMsg {
19
+ typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount";
20
+ value: Uint8Array;
21
+ }
22
+ /**
23
+ * BaseVestingAccount implements the VestingAccount interface. It contains all
24
+ * the necessary fields needed for any vesting account implementation.
25
+ */
26
+ export interface BaseVestingAccountAmino {
27
+ base_account?: BaseAccountAmino;
28
+ original_vesting: CoinAmino[];
29
+ delegated_free: CoinAmino[];
30
+ delegated_vesting: CoinAmino[];
31
+ /** Vesting end time, as unix timestamp (in seconds). */
32
+ end_time: string;
33
+ }
34
+ export interface BaseVestingAccountAminoMsg {
35
+ type: "cosmos-sdk/BaseVestingAccount";
36
+ value: BaseVestingAccountAmino;
37
+ }
38
+ /**
39
+ * ContinuousVestingAccount implements the VestingAccount interface. It
40
+ * continuously vests by unlocking coins linearly with respect to time.
41
+ */
42
+ export interface ContinuousVestingAccount {
43
+ baseVestingAccount?: BaseVestingAccount;
44
+ /** Vesting start time, as unix timestamp (in seconds). */
45
+ startTime: bigint;
46
+ }
47
+ export interface ContinuousVestingAccountProtoMsg {
48
+ typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount";
49
+ value: Uint8Array;
50
+ }
51
+ /**
52
+ * ContinuousVestingAccount implements the VestingAccount interface. It
53
+ * continuously vests by unlocking coins linearly with respect to time.
54
+ */
55
+ export interface ContinuousVestingAccountAmino {
56
+ base_vesting_account?: BaseVestingAccountAmino;
57
+ /** Vesting start time, as unix timestamp (in seconds). */
58
+ start_time: string;
59
+ }
60
+ export interface ContinuousVestingAccountAminoMsg {
61
+ type: "cosmos-sdk/ContinuousVestingAccount";
62
+ value: ContinuousVestingAccountAmino;
63
+ }
64
+ /**
65
+ * DelayedVestingAccount implements the VestingAccount interface. It vests all
66
+ * coins after a specific time, but non prior. In other words, it keeps them
67
+ * locked until a specified time.
68
+ */
69
+ export interface DelayedVestingAccount {
70
+ baseVestingAccount?: BaseVestingAccount;
71
+ }
72
+ export interface DelayedVestingAccountProtoMsg {
73
+ typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount";
74
+ value: Uint8Array;
75
+ }
76
+ /**
77
+ * DelayedVestingAccount implements the VestingAccount interface. It vests all
78
+ * coins after a specific time, but non prior. In other words, it keeps them
79
+ * locked until a specified time.
80
+ */
81
+ export interface DelayedVestingAccountAmino {
82
+ base_vesting_account?: BaseVestingAccountAmino;
83
+ }
84
+ export interface DelayedVestingAccountAminoMsg {
85
+ type: "cosmos-sdk/DelayedVestingAccount";
86
+ value: DelayedVestingAccountAmino;
87
+ }
88
+ /** Period defines a length of time and amount of coins that will vest. */
89
+ export interface Period {
90
+ /** Period duration in seconds. */
91
+ length: bigint;
92
+ amount: Coin[];
93
+ }
94
+ export interface PeriodProtoMsg {
95
+ typeUrl: "/cosmos.vesting.v1beta1.Period";
96
+ value: Uint8Array;
97
+ }
98
+ /** Period defines a length of time and amount of coins that will vest. */
99
+ export interface PeriodAmino {
100
+ /** Period duration in seconds. */
101
+ length: string;
102
+ amount: CoinAmino[];
103
+ }
104
+ export interface PeriodAminoMsg {
105
+ type: "cosmos-sdk/Period";
106
+ value: PeriodAmino;
107
+ }
108
+ /**
109
+ * PeriodicVestingAccount implements the VestingAccount interface. It
110
+ * periodically vests by unlocking coins during each specified period.
111
+ */
112
+ export interface PeriodicVestingAccount {
113
+ baseVestingAccount?: BaseVestingAccount;
114
+ startTime: bigint;
115
+ vestingPeriods: Period[];
116
+ }
117
+ export interface PeriodicVestingAccountProtoMsg {
118
+ typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount";
119
+ value: Uint8Array;
120
+ }
121
+ /**
122
+ * PeriodicVestingAccount implements the VestingAccount interface. It
123
+ * periodically vests by unlocking coins during each specified period.
124
+ */
125
+ export interface PeriodicVestingAccountAmino {
126
+ base_vesting_account?: BaseVestingAccountAmino;
127
+ start_time: string;
128
+ vesting_periods: PeriodAmino[];
129
+ }
130
+ export interface PeriodicVestingAccountAminoMsg {
131
+ type: "cosmos-sdk/PeriodicVestingAccount";
132
+ value: PeriodicVestingAccountAmino;
133
+ }
134
+ /**
135
+ * PermanentLockedAccount implements the VestingAccount interface. It does
136
+ * not ever release coins, locking them indefinitely. Coins in this account can
137
+ * still be used for delegating and for governance votes even while locked.
138
+ *
139
+ * Since: cosmos-sdk 0.43
140
+ */
141
+ export interface PermanentLockedAccount {
142
+ baseVestingAccount?: BaseVestingAccount;
143
+ }
144
+ export interface PermanentLockedAccountProtoMsg {
145
+ typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount";
146
+ value: Uint8Array;
147
+ }
148
+ /**
149
+ * PermanentLockedAccount implements the VestingAccount interface. It does
150
+ * not ever release coins, locking them indefinitely. Coins in this account can
151
+ * still be used for delegating and for governance votes even while locked.
152
+ *
153
+ * Since: cosmos-sdk 0.43
154
+ */
155
+ export interface PermanentLockedAccountAmino {
156
+ base_vesting_account?: BaseVestingAccountAmino;
157
+ }
158
+ export interface PermanentLockedAccountAminoMsg {
159
+ type: "cosmos-sdk/PermanentLockedAccount";
160
+ value: PermanentLockedAccountAmino;
161
+ }
162
+ function createBaseBaseVestingAccount(): BaseVestingAccount {
163
+ return {
164
+ baseAccount: undefined,
165
+ originalVesting: [],
166
+ delegatedFree: [],
167
+ delegatedVesting: [],
168
+ endTime: BigInt(0)
169
+ };
170
+ }
171
+ export const BaseVestingAccount = {
172
+ typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount",
173
+ aminoType: "cosmos-sdk/BaseVestingAccount",
174
+ is(o: any): o is BaseVestingAccount {
175
+ return o && (o.$typeUrl === BaseVestingAccount.typeUrl || Array.isArray(o.originalVesting) && (!o.originalVesting.length || Coin.is(o.originalVesting[0])) && Array.isArray(o.delegatedFree) && (!o.delegatedFree.length || Coin.is(o.delegatedFree[0])) && Array.isArray(o.delegatedVesting) && (!o.delegatedVesting.length || Coin.is(o.delegatedVesting[0])) && typeof o.endTime === "bigint");
176
+ },
177
+ isAmino(o: any): o is BaseVestingAccountAmino {
178
+ return o && (o.$typeUrl === BaseVestingAccount.typeUrl || Array.isArray(o.original_vesting) && (!o.original_vesting.length || Coin.isAmino(o.original_vesting[0])) && Array.isArray(o.delegated_free) && (!o.delegated_free.length || Coin.isAmino(o.delegated_free[0])) && Array.isArray(o.delegated_vesting) && (!o.delegated_vesting.length || Coin.isAmino(o.delegated_vesting[0])) && typeof o.end_time === "bigint");
179
+ },
180
+ encode(message: BaseVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
181
+ if (message.baseAccount !== undefined) {
182
+ BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim();
183
+ }
184
+ for (const v of message.originalVesting) {
185
+ Coin.encode(v!, writer.uint32(18).fork()).ldelim();
186
+ }
187
+ for (const v of message.delegatedFree) {
188
+ Coin.encode(v!, writer.uint32(26).fork()).ldelim();
189
+ }
190
+ for (const v of message.delegatedVesting) {
191
+ Coin.encode(v!, writer.uint32(34).fork()).ldelim();
192
+ }
193
+ if (message.endTime !== BigInt(0)) {
194
+ writer.uint32(40).int64(message.endTime);
195
+ }
196
+ return writer;
197
+ },
198
+ decode(input: BinaryReader | Uint8Array, length?: number): BaseVestingAccount {
199
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
200
+ let end = length === undefined ? reader.len : reader.pos + length;
201
+ const message = createBaseBaseVestingAccount();
202
+ while (reader.pos < end) {
203
+ const tag = reader.uint32();
204
+ switch (tag >>> 3) {
205
+ case 1:
206
+ message.baseAccount = BaseAccount.decode(reader, reader.uint32());
207
+ break;
208
+ case 2:
209
+ message.originalVesting.push(Coin.decode(reader, reader.uint32()));
210
+ break;
211
+ case 3:
212
+ message.delegatedFree.push(Coin.decode(reader, reader.uint32()));
213
+ break;
214
+ case 4:
215
+ message.delegatedVesting.push(Coin.decode(reader, reader.uint32()));
216
+ break;
217
+ case 5:
218
+ message.endTime = reader.int64();
219
+ break;
220
+ default:
221
+ reader.skipType(tag & 7);
222
+ break;
223
+ }
224
+ }
225
+ return message;
226
+ },
227
+ fromPartial(object: DeepPartial<BaseVestingAccount>): BaseVestingAccount {
228
+ const message = createBaseBaseVestingAccount();
229
+ message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined;
230
+ message.originalVesting = object.originalVesting?.map(e => Coin.fromPartial(e)) || [];
231
+ message.delegatedFree = object.delegatedFree?.map(e => Coin.fromPartial(e)) || [];
232
+ message.delegatedVesting = object.delegatedVesting?.map(e => Coin.fromPartial(e)) || [];
233
+ message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0);
234
+ return message;
235
+ },
236
+ fromAmino(object: BaseVestingAccountAmino): BaseVestingAccount {
237
+ const message = createBaseBaseVestingAccount();
238
+ if (object.base_account !== undefined && object.base_account !== null) {
239
+ message.baseAccount = BaseAccount.fromAmino(object.base_account);
240
+ }
241
+ message.originalVesting = object.original_vesting?.map(e => Coin.fromAmino(e)) || [];
242
+ message.delegatedFree = object.delegated_free?.map(e => Coin.fromAmino(e)) || [];
243
+ message.delegatedVesting = object.delegated_vesting?.map(e => Coin.fromAmino(e)) || [];
244
+ if (object.end_time !== undefined && object.end_time !== null) {
245
+ message.endTime = BigInt(object.end_time);
246
+ }
247
+ return message;
248
+ },
249
+ toAmino(message: BaseVestingAccount): BaseVestingAccountAmino {
250
+ const obj: any = {};
251
+ obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined;
252
+ if (message.originalVesting) {
253
+ obj.original_vesting = message.originalVesting.map(e => e ? Coin.toAmino(e) : undefined);
254
+ } else {
255
+ obj.original_vesting = message.originalVesting;
256
+ }
257
+ if (message.delegatedFree) {
258
+ obj.delegated_free = message.delegatedFree.map(e => e ? Coin.toAmino(e) : undefined);
259
+ } else {
260
+ obj.delegated_free = message.delegatedFree;
261
+ }
262
+ if (message.delegatedVesting) {
263
+ obj.delegated_vesting = message.delegatedVesting.map(e => e ? Coin.toAmino(e) : undefined);
264
+ } else {
265
+ obj.delegated_vesting = message.delegatedVesting;
266
+ }
267
+ obj.end_time = message.endTime !== BigInt(0) ? message.endTime?.toString() : undefined;
268
+ return obj;
269
+ },
270
+ fromAminoMsg(object: BaseVestingAccountAminoMsg): BaseVestingAccount {
271
+ return BaseVestingAccount.fromAmino(object.value);
272
+ },
273
+ toAminoMsg(message: BaseVestingAccount): BaseVestingAccountAminoMsg {
274
+ return {
275
+ type: "cosmos-sdk/BaseVestingAccount",
276
+ value: BaseVestingAccount.toAmino(message)
277
+ };
278
+ },
279
+ fromProtoMsg(message: BaseVestingAccountProtoMsg): BaseVestingAccount {
280
+ return BaseVestingAccount.decode(message.value);
281
+ },
282
+ toProto(message: BaseVestingAccount): Uint8Array {
283
+ return BaseVestingAccount.encode(message).finish();
284
+ },
285
+ toProtoMsg(message: BaseVestingAccount): BaseVestingAccountProtoMsg {
286
+ return {
287
+ typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount",
288
+ value: BaseVestingAccount.encode(message).finish()
289
+ };
290
+ }
291
+ };
292
+ GlobalDecoderRegistry.register(BaseVestingAccount.typeUrl, BaseVestingAccount);
293
+ GlobalDecoderRegistry.registerAminoProtoMapping(BaseVestingAccount.aminoType, BaseVestingAccount.typeUrl);
294
+ function createBaseContinuousVestingAccount(): ContinuousVestingAccount {
295
+ return {
296
+ baseVestingAccount: undefined,
297
+ startTime: BigInt(0)
298
+ };
299
+ }
300
+ export const ContinuousVestingAccount = {
301
+ typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount",
302
+ aminoType: "cosmos-sdk/ContinuousVestingAccount",
303
+ is(o: any): o is ContinuousVestingAccount {
304
+ return o && (o.$typeUrl === ContinuousVestingAccount.typeUrl || typeof o.startTime === "bigint");
305
+ },
306
+ isAmino(o: any): o is ContinuousVestingAccountAmino {
307
+ return o && (o.$typeUrl === ContinuousVestingAccount.typeUrl || typeof o.start_time === "bigint");
308
+ },
309
+ encode(message: ContinuousVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
310
+ if (message.baseVestingAccount !== undefined) {
311
+ BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim();
312
+ }
313
+ if (message.startTime !== BigInt(0)) {
314
+ writer.uint32(16).int64(message.startTime);
315
+ }
316
+ return writer;
317
+ },
318
+ decode(input: BinaryReader | Uint8Array, length?: number): ContinuousVestingAccount {
319
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
320
+ let end = length === undefined ? reader.len : reader.pos + length;
321
+ const message = createBaseContinuousVestingAccount();
322
+ while (reader.pos < end) {
323
+ const tag = reader.uint32();
324
+ switch (tag >>> 3) {
325
+ case 1:
326
+ message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32());
327
+ break;
328
+ case 2:
329
+ message.startTime = reader.int64();
330
+ break;
331
+ default:
332
+ reader.skipType(tag & 7);
333
+ break;
334
+ }
335
+ }
336
+ return message;
337
+ },
338
+ fromPartial(object: DeepPartial<ContinuousVestingAccount>): ContinuousVestingAccount {
339
+ const message = createBaseContinuousVestingAccount();
340
+ message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined;
341
+ message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0);
342
+ return message;
343
+ },
344
+ fromAmino(object: ContinuousVestingAccountAmino): ContinuousVestingAccount {
345
+ const message = createBaseContinuousVestingAccount();
346
+ if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) {
347
+ message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account);
348
+ }
349
+ if (object.start_time !== undefined && object.start_time !== null) {
350
+ message.startTime = BigInt(object.start_time);
351
+ }
352
+ return message;
353
+ },
354
+ toAmino(message: ContinuousVestingAccount): ContinuousVestingAccountAmino {
355
+ const obj: any = {};
356
+ obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined;
357
+ obj.start_time = message.startTime !== BigInt(0) ? message.startTime?.toString() : undefined;
358
+ return obj;
359
+ },
360
+ fromAminoMsg(object: ContinuousVestingAccountAminoMsg): ContinuousVestingAccount {
361
+ return ContinuousVestingAccount.fromAmino(object.value);
362
+ },
363
+ toAminoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountAminoMsg {
364
+ return {
365
+ type: "cosmos-sdk/ContinuousVestingAccount",
366
+ value: ContinuousVestingAccount.toAmino(message)
367
+ };
368
+ },
369
+ fromProtoMsg(message: ContinuousVestingAccountProtoMsg): ContinuousVestingAccount {
370
+ return ContinuousVestingAccount.decode(message.value);
371
+ },
372
+ toProto(message: ContinuousVestingAccount): Uint8Array {
373
+ return ContinuousVestingAccount.encode(message).finish();
374
+ },
375
+ toProtoMsg(message: ContinuousVestingAccount): ContinuousVestingAccountProtoMsg {
376
+ return {
377
+ typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount",
378
+ value: ContinuousVestingAccount.encode(message).finish()
379
+ };
380
+ }
381
+ };
382
+ GlobalDecoderRegistry.register(ContinuousVestingAccount.typeUrl, ContinuousVestingAccount);
383
+ GlobalDecoderRegistry.registerAminoProtoMapping(ContinuousVestingAccount.aminoType, ContinuousVestingAccount.typeUrl);
384
+ function createBaseDelayedVestingAccount(): DelayedVestingAccount {
385
+ return {
386
+ baseVestingAccount: undefined
387
+ };
388
+ }
389
+ export const DelayedVestingAccount = {
390
+ typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount",
391
+ aminoType: "cosmos-sdk/DelayedVestingAccount",
392
+ is(o: any): o is DelayedVestingAccount {
393
+ return o && o.$typeUrl === DelayedVestingAccount.typeUrl;
394
+ },
395
+ isAmino(o: any): o is DelayedVestingAccountAmino {
396
+ return o && o.$typeUrl === DelayedVestingAccount.typeUrl;
397
+ },
398
+ encode(message: DelayedVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
399
+ if (message.baseVestingAccount !== undefined) {
400
+ BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim();
401
+ }
402
+ return writer;
403
+ },
404
+ decode(input: BinaryReader | Uint8Array, length?: number): DelayedVestingAccount {
405
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
406
+ let end = length === undefined ? reader.len : reader.pos + length;
407
+ const message = createBaseDelayedVestingAccount();
408
+ while (reader.pos < end) {
409
+ const tag = reader.uint32();
410
+ switch (tag >>> 3) {
411
+ case 1:
412
+ message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32());
413
+ break;
414
+ default:
415
+ reader.skipType(tag & 7);
416
+ break;
417
+ }
418
+ }
419
+ return message;
420
+ },
421
+ fromPartial(object: DeepPartial<DelayedVestingAccount>): DelayedVestingAccount {
422
+ const message = createBaseDelayedVestingAccount();
423
+ message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined;
424
+ return message;
425
+ },
426
+ fromAmino(object: DelayedVestingAccountAmino): DelayedVestingAccount {
427
+ const message = createBaseDelayedVestingAccount();
428
+ if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) {
429
+ message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account);
430
+ }
431
+ return message;
432
+ },
433
+ toAmino(message: DelayedVestingAccount): DelayedVestingAccountAmino {
434
+ const obj: any = {};
435
+ obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined;
436
+ return obj;
437
+ },
438
+ fromAminoMsg(object: DelayedVestingAccountAminoMsg): DelayedVestingAccount {
439
+ return DelayedVestingAccount.fromAmino(object.value);
440
+ },
441
+ toAminoMsg(message: DelayedVestingAccount): DelayedVestingAccountAminoMsg {
442
+ return {
443
+ type: "cosmos-sdk/DelayedVestingAccount",
444
+ value: DelayedVestingAccount.toAmino(message)
445
+ };
446
+ },
447
+ fromProtoMsg(message: DelayedVestingAccountProtoMsg): DelayedVestingAccount {
448
+ return DelayedVestingAccount.decode(message.value);
449
+ },
450
+ toProto(message: DelayedVestingAccount): Uint8Array {
451
+ return DelayedVestingAccount.encode(message).finish();
452
+ },
453
+ toProtoMsg(message: DelayedVestingAccount): DelayedVestingAccountProtoMsg {
454
+ return {
455
+ typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount",
456
+ value: DelayedVestingAccount.encode(message).finish()
457
+ };
458
+ }
459
+ };
460
+ GlobalDecoderRegistry.register(DelayedVestingAccount.typeUrl, DelayedVestingAccount);
461
+ GlobalDecoderRegistry.registerAminoProtoMapping(DelayedVestingAccount.aminoType, DelayedVestingAccount.typeUrl);
462
+ function createBasePeriod(): Period {
463
+ return {
464
+ length: BigInt(0),
465
+ amount: []
466
+ };
467
+ }
468
+ export const Period = {
469
+ typeUrl: "/cosmos.vesting.v1beta1.Period",
470
+ aminoType: "cosmos-sdk/Period",
471
+ is(o: any): o is Period {
472
+ return o && (o.$typeUrl === Period.typeUrl || typeof o.length === "bigint" && Array.isArray(o.amount) && (!o.amount.length || Coin.is(o.amount[0])));
473
+ },
474
+ isAmino(o: any): o is PeriodAmino {
475
+ return o && (o.$typeUrl === Period.typeUrl || typeof o.length === "bigint" && Array.isArray(o.amount) && (!o.amount.length || Coin.isAmino(o.amount[0])));
476
+ },
477
+ encode(message: Period, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
478
+ if (message.length !== BigInt(0)) {
479
+ writer.uint32(8).int64(message.length);
480
+ }
481
+ for (const v of message.amount) {
482
+ Coin.encode(v!, writer.uint32(18).fork()).ldelim();
483
+ }
484
+ return writer;
485
+ },
486
+ decode(input: BinaryReader | Uint8Array, length?: number): Period {
487
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
488
+ let end = length === undefined ? reader.len : reader.pos + length;
489
+ const message = createBasePeriod();
490
+ while (reader.pos < end) {
491
+ const tag = reader.uint32();
492
+ switch (tag >>> 3) {
493
+ case 1:
494
+ message.length = reader.int64();
495
+ break;
496
+ case 2:
497
+ message.amount.push(Coin.decode(reader, reader.uint32()));
498
+ break;
499
+ default:
500
+ reader.skipType(tag & 7);
501
+ break;
502
+ }
503
+ }
504
+ return message;
505
+ },
506
+ fromPartial(object: DeepPartial<Period>): Period {
507
+ const message = createBasePeriod();
508
+ message.length = object.length !== undefined && object.length !== null ? BigInt(object.length.toString()) : BigInt(0);
509
+ message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
510
+ return message;
511
+ },
512
+ fromAmino(object: PeriodAmino): Period {
513
+ const message = createBasePeriod();
514
+ if (object.length !== undefined && object.length !== null) {
515
+ message.length = BigInt(object.length);
516
+ }
517
+ message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
518
+ return message;
519
+ },
520
+ toAmino(message: Period): PeriodAmino {
521
+ const obj: any = {};
522
+ obj.length = message.length !== BigInt(0) ? message.length?.toString() : undefined;
523
+ if (message.amount) {
524
+ obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
525
+ } else {
526
+ obj.amount = message.amount;
527
+ }
528
+ return obj;
529
+ },
530
+ fromAminoMsg(object: PeriodAminoMsg): Period {
531
+ return Period.fromAmino(object.value);
532
+ },
533
+ toAminoMsg(message: Period): PeriodAminoMsg {
534
+ return {
535
+ type: "cosmos-sdk/Period",
536
+ value: Period.toAmino(message)
537
+ };
538
+ },
539
+ fromProtoMsg(message: PeriodProtoMsg): Period {
540
+ return Period.decode(message.value);
541
+ },
542
+ toProto(message: Period): Uint8Array {
543
+ return Period.encode(message).finish();
544
+ },
545
+ toProtoMsg(message: Period): PeriodProtoMsg {
546
+ return {
547
+ typeUrl: "/cosmos.vesting.v1beta1.Period",
548
+ value: Period.encode(message).finish()
549
+ };
550
+ }
551
+ };
552
+ GlobalDecoderRegistry.register(Period.typeUrl, Period);
553
+ GlobalDecoderRegistry.registerAminoProtoMapping(Period.aminoType, Period.typeUrl);
554
+ function createBasePeriodicVestingAccount(): PeriodicVestingAccount {
555
+ return {
556
+ baseVestingAccount: undefined,
557
+ startTime: BigInt(0),
558
+ vestingPeriods: []
559
+ };
560
+ }
561
+ export const PeriodicVestingAccount = {
562
+ typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount",
563
+ aminoType: "cosmos-sdk/PeriodicVestingAccount",
564
+ is(o: any): o is PeriodicVestingAccount {
565
+ return o && (o.$typeUrl === PeriodicVestingAccount.typeUrl || typeof o.startTime === "bigint" && Array.isArray(o.vestingPeriods) && (!o.vestingPeriods.length || Period.is(o.vestingPeriods[0])));
566
+ },
567
+ isAmino(o: any): o is PeriodicVestingAccountAmino {
568
+ return o && (o.$typeUrl === PeriodicVestingAccount.typeUrl || typeof o.start_time === "bigint" && Array.isArray(o.vesting_periods) && (!o.vesting_periods.length || Period.isAmino(o.vesting_periods[0])));
569
+ },
570
+ encode(message: PeriodicVestingAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
571
+ if (message.baseVestingAccount !== undefined) {
572
+ BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim();
573
+ }
574
+ if (message.startTime !== BigInt(0)) {
575
+ writer.uint32(16).int64(message.startTime);
576
+ }
577
+ for (const v of message.vestingPeriods) {
578
+ Period.encode(v!, writer.uint32(26).fork()).ldelim();
579
+ }
580
+ return writer;
581
+ },
582
+ decode(input: BinaryReader | Uint8Array, length?: number): PeriodicVestingAccount {
583
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
584
+ let end = length === undefined ? reader.len : reader.pos + length;
585
+ const message = createBasePeriodicVestingAccount();
586
+ while (reader.pos < end) {
587
+ const tag = reader.uint32();
588
+ switch (tag >>> 3) {
589
+ case 1:
590
+ message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32());
591
+ break;
592
+ case 2:
593
+ message.startTime = reader.int64();
594
+ break;
595
+ case 3:
596
+ message.vestingPeriods.push(Period.decode(reader, reader.uint32()));
597
+ break;
598
+ default:
599
+ reader.skipType(tag & 7);
600
+ break;
601
+ }
602
+ }
603
+ return message;
604
+ },
605
+ fromPartial(object: DeepPartial<PeriodicVestingAccount>): PeriodicVestingAccount {
606
+ const message = createBasePeriodicVestingAccount();
607
+ message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined;
608
+ message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0);
609
+ message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || [];
610
+ return message;
611
+ },
612
+ fromAmino(object: PeriodicVestingAccountAmino): PeriodicVestingAccount {
613
+ const message = createBasePeriodicVestingAccount();
614
+ if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) {
615
+ message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account);
616
+ }
617
+ if (object.start_time !== undefined && object.start_time !== null) {
618
+ message.startTime = BigInt(object.start_time);
619
+ }
620
+ message.vestingPeriods = object.vesting_periods?.map(e => Period.fromAmino(e)) || [];
621
+ return message;
622
+ },
623
+ toAmino(message: PeriodicVestingAccount): PeriodicVestingAccountAmino {
624
+ const obj: any = {};
625
+ obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined;
626
+ obj.start_time = message.startTime !== BigInt(0) ? message.startTime?.toString() : undefined;
627
+ if (message.vestingPeriods) {
628
+ obj.vesting_periods = message.vestingPeriods.map(e => e ? Period.toAmino(e) : undefined);
629
+ } else {
630
+ obj.vesting_periods = message.vestingPeriods;
631
+ }
632
+ return obj;
633
+ },
634
+ fromAminoMsg(object: PeriodicVestingAccountAminoMsg): PeriodicVestingAccount {
635
+ return PeriodicVestingAccount.fromAmino(object.value);
636
+ },
637
+ toAminoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountAminoMsg {
638
+ return {
639
+ type: "cosmos-sdk/PeriodicVestingAccount",
640
+ value: PeriodicVestingAccount.toAmino(message)
641
+ };
642
+ },
643
+ fromProtoMsg(message: PeriodicVestingAccountProtoMsg): PeriodicVestingAccount {
644
+ return PeriodicVestingAccount.decode(message.value);
645
+ },
646
+ toProto(message: PeriodicVestingAccount): Uint8Array {
647
+ return PeriodicVestingAccount.encode(message).finish();
648
+ },
649
+ toProtoMsg(message: PeriodicVestingAccount): PeriodicVestingAccountProtoMsg {
650
+ return {
651
+ typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount",
652
+ value: PeriodicVestingAccount.encode(message).finish()
653
+ };
654
+ }
655
+ };
656
+ GlobalDecoderRegistry.register(PeriodicVestingAccount.typeUrl, PeriodicVestingAccount);
657
+ GlobalDecoderRegistry.registerAminoProtoMapping(PeriodicVestingAccount.aminoType, PeriodicVestingAccount.typeUrl);
658
+ function createBasePermanentLockedAccount(): PermanentLockedAccount {
659
+ return {
660
+ baseVestingAccount: undefined
661
+ };
662
+ }
663
+ export const PermanentLockedAccount = {
664
+ typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount",
665
+ aminoType: "cosmos-sdk/PermanentLockedAccount",
666
+ is(o: any): o is PermanentLockedAccount {
667
+ return o && o.$typeUrl === PermanentLockedAccount.typeUrl;
668
+ },
669
+ isAmino(o: any): o is PermanentLockedAccountAmino {
670
+ return o && o.$typeUrl === PermanentLockedAccount.typeUrl;
671
+ },
672
+ encode(message: PermanentLockedAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
673
+ if (message.baseVestingAccount !== undefined) {
674
+ BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim();
675
+ }
676
+ return writer;
677
+ },
678
+ decode(input: BinaryReader | Uint8Array, length?: number): PermanentLockedAccount {
679
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
680
+ let end = length === undefined ? reader.len : reader.pos + length;
681
+ const message = createBasePermanentLockedAccount();
682
+ while (reader.pos < end) {
683
+ const tag = reader.uint32();
684
+ switch (tag >>> 3) {
685
+ case 1:
686
+ message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32());
687
+ break;
688
+ default:
689
+ reader.skipType(tag & 7);
690
+ break;
691
+ }
692
+ }
693
+ return message;
694
+ },
695
+ fromPartial(object: DeepPartial<PermanentLockedAccount>): PermanentLockedAccount {
696
+ const message = createBasePermanentLockedAccount();
697
+ message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined;
698
+ return message;
699
+ },
700
+ fromAmino(object: PermanentLockedAccountAmino): PermanentLockedAccount {
701
+ const message = createBasePermanentLockedAccount();
702
+ if (object.base_vesting_account !== undefined && object.base_vesting_account !== null) {
703
+ message.baseVestingAccount = BaseVestingAccount.fromAmino(object.base_vesting_account);
704
+ }
705
+ return message;
706
+ },
707
+ toAmino(message: PermanentLockedAccount): PermanentLockedAccountAmino {
708
+ const obj: any = {};
709
+ obj.base_vesting_account = message.baseVestingAccount ? BaseVestingAccount.toAmino(message.baseVestingAccount) : undefined;
710
+ return obj;
711
+ },
712
+ fromAminoMsg(object: PermanentLockedAccountAminoMsg): PermanentLockedAccount {
713
+ return PermanentLockedAccount.fromAmino(object.value);
714
+ },
715
+ toAminoMsg(message: PermanentLockedAccount): PermanentLockedAccountAminoMsg {
716
+ return {
717
+ type: "cosmos-sdk/PermanentLockedAccount",
718
+ value: PermanentLockedAccount.toAmino(message)
719
+ };
720
+ },
721
+ fromProtoMsg(message: PermanentLockedAccountProtoMsg): PermanentLockedAccount {
722
+ return PermanentLockedAccount.decode(message.value);
723
+ },
724
+ toProto(message: PermanentLockedAccount): Uint8Array {
725
+ return PermanentLockedAccount.encode(message).finish();
726
+ },
727
+ toProtoMsg(message: PermanentLockedAccount): PermanentLockedAccountProtoMsg {
728
+ return {
729
+ typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount",
730
+ value: PermanentLockedAccount.encode(message).finish()
731
+ };
732
+ }
733
+ };
734
+ GlobalDecoderRegistry.register(PermanentLockedAccount.typeUrl, PermanentLockedAccount);
735
+ GlobalDecoderRegistry.registerAminoProtoMapping(PermanentLockedAccount.aminoType, PermanentLockedAccount.typeUrl);