@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
package/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # 1.7.0-beta.0 (2025-01-21)
7
+
8
+ **Note:** Version bump only for package @xpla/xpla-react
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@xpla/xpla-react",
3
+ "version": "1.7.0-beta.0",
4
+ "description": "xpla-react is a JavaScript library providing react query hooks for interacting with xpla sdk.",
5
+ "main": "index.js",
6
+ "module": "esm/index.js",
7
+ "types": "index.d.ts",
8
+ "author": "Joowon Yun <joowon@delightlabs.io>",
9
+ "homepage": "https://github.com/xpladev/xplajs",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/xpladev/xplajs"
13
+ },
14
+ "license": "MIT",
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "directory": "dist"
18
+ },
19
+ "scripts": {
20
+ "clean": "rimraf dist/**",
21
+ "build": "npm run clean; tsc; tsc -p tsconfig.esm.json",
22
+ "build:dev": "npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json",
23
+ "lint": "eslint . --fix",
24
+ "prepare": "npm run build"
25
+ },
26
+ "dependencies": {
27
+ "@interchainjs/cosmos": "1.6.3",
28
+ "@interchainjs/cosmos-types": "1.6.3",
29
+ "@interchainjs/types": "1.6.3",
30
+ "@interchainjs/utils": "1.6.3",
31
+ "@noble/hashes": "^1.3.1",
32
+ "decimal.js": "^10.4.3"
33
+ },
34
+ "devDependencies": {
35
+ "@tanstack/react-query": "4.29.1"
36
+ },
37
+ "peerDependencies": {
38
+ "@tanstack/react-query": "4.29.1"
39
+ },
40
+ "keywords": [
41
+ "cosmos",
42
+ "blockchain",
43
+ "transaction",
44
+ "cosmjs",
45
+ "wallet"
46
+ ]
47
+ }
@@ -0,0 +1 @@
1
+ export {}
package/src/binary.ts ADDED
@@ -0,0 +1,534 @@
1
+ /**
2
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
3
+ * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
+ * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
+ */
6
+
7
+
8
+ // Copyright (c) 2016, Daniel Wirtz All rights reserved.
9
+
10
+ // Redistribution and use in source and binary forms, with or without
11
+ // modification, are permitted provided that the following conditions are
12
+ // met:
13
+
14
+ // * Redistributions of source code must retain the above copyright
15
+ // notice, this list of conditions and the following disclaimer.
16
+ // * Redistributions in binary form must reproduce the above copyright
17
+ // notice, this list of conditions and the following disclaimer in the
18
+ // documentation and/or other materials provided with the distribution.
19
+ // * Neither the name of its author, nor the names of its contributors
20
+ // may be used to endorse or promote products derived from this software
21
+ // without specific prior written permission.
22
+
23
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+
35
+ // ---
36
+
37
+ // Code generated by the command line utilities is owned by the owner
38
+ // of the input file used when generating it. This code is not
39
+ // standalone and requires a support library to be linked with it. This
40
+ // support library is itself covered by the above license.
41
+
42
+ import { utf8Length, utf8Read, utf8Write } from "./utf8";
43
+ import {
44
+ int64ToString,
45
+ readInt32,
46
+ readUInt32,
47
+ uInt64ToString,
48
+ varint32read,
49
+ varint64read,
50
+ writeVarint32,
51
+ writeVarint64,
52
+ int64FromString,
53
+ int64Length,
54
+ writeFixed32,
55
+ writeByte,
56
+ zzDecode,
57
+ zzEncode,
58
+ } from "./varint";
59
+
60
+ export enum WireType {
61
+ Varint = 0,
62
+
63
+ Fixed64 = 1,
64
+
65
+ Bytes = 2,
66
+
67
+ Fixed32 = 5,
68
+ }
69
+
70
+ // Reader
71
+ export interface IBinaryReader {
72
+ buf: Uint8Array;
73
+ pos: number;
74
+ type: number;
75
+ len: number;
76
+ tag(): [number, WireType, number];
77
+ skip(length?: number): this;
78
+ skipType(wireType: number): this;
79
+ uint32(): number;
80
+ int32(): number;
81
+ sint32(): number;
82
+ fixed32(): number;
83
+ sfixed32(): number;
84
+ int64(): bigint;
85
+ uint64(): bigint;
86
+ sint64(): bigint;
87
+ fixed64(): bigint;
88
+ sfixed64(): bigint;
89
+ float(): number;
90
+ double(): number;
91
+ bool(): boolean;
92
+ bytes(): Uint8Array;
93
+ string(): string;
94
+ }
95
+
96
+ export class BinaryReader implements IBinaryReader {
97
+ buf: Uint8Array;
98
+ pos: number;
99
+ type: number;
100
+ len: number;
101
+
102
+ assertBounds(): void {
103
+ if (this.pos > this.len) throw new RangeError("premature EOF");
104
+ }
105
+
106
+ constructor(buf?: ArrayLike<number>) {
107
+ this.buf = buf ? new Uint8Array(buf) : new Uint8Array(0);
108
+ this.pos = 0;
109
+ this.type = 0;
110
+ this.len = this.buf.length;
111
+ }
112
+
113
+ tag(): [number, WireType, number] {
114
+ const tag = this.uint32(),
115
+ fieldNo = tag >>> 3,
116
+ wireType = tag & 7;
117
+ if (fieldNo <= 0 || wireType < 0 || wireType > 5)
118
+ throw new Error(
119
+ "illegal tag: field no " + fieldNo + " wire type " + wireType
120
+ );
121
+ return [fieldNo, wireType, tag];
122
+ }
123
+
124
+ skip(length?: number) {
125
+ if (typeof length === "number") {
126
+ if (this.pos + length > this.len) throw indexOutOfRange(this, length);
127
+ this.pos += length;
128
+ } else {
129
+ do {
130
+ if (this.pos >= this.len) throw indexOutOfRange(this);
131
+ } while (this.buf[this.pos++] & 128);
132
+ }
133
+ return this;
134
+ }
135
+
136
+ skipType(wireType: number) {
137
+ switch (wireType) {
138
+ case WireType.Varint:
139
+ this.skip();
140
+ break;
141
+ case WireType.Fixed64:
142
+ this.skip(8);
143
+ break;
144
+ case WireType.Bytes:
145
+ this.skip(this.uint32());
146
+ break;
147
+ case 3:
148
+ while ((wireType = this.uint32() & 7) !== 4) {
149
+ this.skipType(wireType);
150
+ }
151
+ break;
152
+ case WireType.Fixed32:
153
+ this.skip(4);
154
+ break;
155
+
156
+ /* istanbul ignore next */
157
+ default:
158
+ throw Error("invalid wire type " + wireType + " at offset " + this.pos);
159
+ }
160
+ return this;
161
+ }
162
+
163
+ uint32(): number {
164
+ return varint32read.bind(this)();
165
+ }
166
+
167
+ int32(): number {
168
+ return this.uint32() | 0;
169
+ }
170
+
171
+ sint32(): number {
172
+ const num = this.uint32();
173
+ return num % 2 === 1 ? (num + 1) / -2 : num / 2; // zigzag encoding
174
+ }
175
+
176
+ fixed32(): number {
177
+ const val = readUInt32(this.buf, this.pos);
178
+ this.pos += 4;
179
+ return val;
180
+ }
181
+
182
+ sfixed32(): number {
183
+ const val = readInt32(this.buf, this.pos);
184
+ this.pos += 4;
185
+ return val;
186
+ }
187
+
188
+ int64(): bigint {
189
+ const [lo, hi] = varint64read.bind(this)();
190
+ return BigInt(int64ToString(lo, hi));
191
+ }
192
+
193
+ uint64(): bigint {
194
+ const [lo, hi] = varint64read.bind(this)();
195
+ return BigInt(uInt64ToString(lo, hi));
196
+ }
197
+
198
+ sint64(): bigint {
199
+ let [lo, hi] = varint64read.bind(this)();
200
+ // zig zag
201
+ [lo, hi] = zzDecode(lo, hi);
202
+ return BigInt(int64ToString(lo, hi));
203
+ }
204
+
205
+ fixed64(): bigint {
206
+ const lo = this.sfixed32();
207
+ const hi = this.sfixed32();
208
+ return BigInt(uInt64ToString(lo, hi));
209
+ }
210
+ sfixed64(): bigint {
211
+ const lo = this.sfixed32();
212
+ const hi = this.sfixed32();
213
+ return BigInt(int64ToString(lo, hi));
214
+ }
215
+
216
+ float(): number {
217
+ throw new Error("float not supported");
218
+ }
219
+
220
+ double(): number {
221
+ throw new Error("double not supported");
222
+ }
223
+
224
+ bool(): boolean {
225
+ const [lo, hi] = varint64read.bind(this)();
226
+ return lo !== 0 || hi !== 0;
227
+ }
228
+
229
+ bytes(): Uint8Array {
230
+ const len = this.uint32(),
231
+ start = this.pos;
232
+ this.pos += len;
233
+ this.assertBounds();
234
+ return this.buf.subarray(start, start + len);
235
+ }
236
+
237
+ string(): string {
238
+ const bytes = this.bytes();
239
+ return utf8Read(bytes, 0, bytes.length);
240
+ }
241
+ }
242
+
243
+ // Writer
244
+ export interface IBinaryWriter {
245
+ len: number;
246
+ head: IOp;
247
+ tail: IOp;
248
+ states: State | null;
249
+ finish(): Uint8Array;
250
+ fork(): IBinaryWriter;
251
+ reset(): IBinaryWriter;
252
+ ldelim(): IBinaryWriter;
253
+ tag(fieldNo: number, type: WireType): IBinaryWriter;
254
+ uint32(value: number): IBinaryWriter;
255
+ int32(value: number): IBinaryWriter;
256
+ sint32(value: number): IBinaryWriter;
257
+ int64(value: string | number | bigint): IBinaryWriter;
258
+ uint64: (value: string | number | bigint) => IBinaryWriter;
259
+ sint64(value: string | number | bigint): IBinaryWriter;
260
+ fixed64(value: string | number | bigint): IBinaryWriter;
261
+ sfixed64: (value: string | number | bigint) => IBinaryWriter;
262
+ bool(value: boolean): IBinaryWriter;
263
+ fixed32(value: number): IBinaryWriter;
264
+ sfixed32: (value: number) => IBinaryWriter;
265
+ float(value: number): IBinaryWriter;
266
+ double(value: number): IBinaryWriter;
267
+ bytes(value: Uint8Array): IBinaryWriter;
268
+ string(value: string): IBinaryWriter;
269
+ }
270
+
271
+ interface IOp {
272
+ len: number;
273
+ next?: IOp;
274
+ proceed(buf: Uint8Array | number[], pos: number): void;
275
+ }
276
+
277
+ class Op<T> implements IOp {
278
+ fn?: ((val: T, buf: Uint8Array | number[], pos: number) => void) | null;
279
+ len: number;
280
+ val: T;
281
+ next?: IOp;
282
+
283
+ constructor(
284
+ fn:
285
+ | ((
286
+ val: T,
287
+ buf: Uint8Array | number[],
288
+ pos: number
289
+ ) => void | undefined | null)
290
+ | null,
291
+ len: number,
292
+ val: T
293
+ ) {
294
+ this.fn = fn;
295
+ this.len = len;
296
+ this.val = val;
297
+ }
298
+
299
+ proceed(buf: Uint8Array | number[], pos: number) {
300
+ if (this.fn) {
301
+ this.fn(this.val, buf, pos);
302
+ }
303
+ }
304
+ }
305
+
306
+ class State {
307
+ head: IOp;
308
+ tail: IOp;
309
+ len: number;
310
+ next: State | null;
311
+
312
+ constructor(writer: BinaryWriter) {
313
+ this.head = writer.head;
314
+ this.tail = writer.tail;
315
+ this.len = writer.len;
316
+ this.next = writer.states;
317
+ }
318
+ }
319
+
320
+ export class BinaryWriter implements IBinaryWriter {
321
+ len = 0;
322
+ head: IOp;
323
+ tail: IOp;
324
+ states: State | null;
325
+
326
+ constructor() {
327
+ this.head = new Op(null, 0, 0);
328
+ this.tail = this.head;
329
+ this.states = null;
330
+ }
331
+
332
+ static create() {
333
+ return new BinaryWriter();
334
+ }
335
+
336
+ static alloc(size: number): Uint8Array | number[] {
337
+ if (typeof Uint8Array !== "undefined") {
338
+ return pool(
339
+ (size) => new Uint8Array(size),
340
+ Uint8Array.prototype.subarray
341
+ )(size);
342
+ } else {
343
+ return new Array(size);
344
+ }
345
+ }
346
+
347
+ private _push<T>(
348
+ fn: (val: T, buf: Uint8Array | number[], pos: number) => void,
349
+ len: number,
350
+ val: T
351
+ ) {
352
+ this.tail = this.tail.next = new Op(fn, len, val);
353
+ this.len += len;
354
+ return this;
355
+ }
356
+
357
+ finish(): Uint8Array {
358
+ let head = this.head.next,
359
+ pos = 0;
360
+ const buf = BinaryWriter.alloc(this.len);
361
+ while (head) {
362
+ head.proceed(buf, pos);
363
+ pos += head.len;
364
+ head = head.next;
365
+ }
366
+ return buf as Uint8Array;
367
+ }
368
+
369
+ fork(): BinaryWriter {
370
+ this.states = new State(this);
371
+ this.head = this.tail = new Op(null, 0, 0);
372
+ this.len = 0;
373
+ return this;
374
+ }
375
+
376
+ reset(): BinaryWriter {
377
+ if (this.states) {
378
+ this.head = this.states.head;
379
+ this.tail = this.states.tail;
380
+ this.len = this.states.len;
381
+ this.states = this.states.next;
382
+ } else {
383
+ this.head = this.tail = new Op(null, 0, 0);
384
+ this.len = 0;
385
+ }
386
+ return this;
387
+ }
388
+
389
+ ldelim(): BinaryWriter {
390
+ const head = this.head,
391
+ tail = this.tail,
392
+ len = this.len;
393
+ this.reset().uint32(len);
394
+ if (len) {
395
+ this.tail.next = head.next; // skip noop
396
+ this.tail = tail;
397
+ this.len += len;
398
+ }
399
+ return this;
400
+ }
401
+
402
+ tag(fieldNo: number, type: WireType): BinaryWriter {
403
+ return this.uint32(((fieldNo << 3) | type) >>> 0);
404
+ }
405
+
406
+ uint32(value: number): BinaryWriter {
407
+ this.len += (this.tail = this.tail.next =
408
+ new Op(
409
+ writeVarint32,
410
+ (value = value >>> 0) < 128
411
+ ? 1
412
+ : value < 16384
413
+ ? 2
414
+ : value < 2097152
415
+ ? 3
416
+ : value < 268435456
417
+ ? 4
418
+ : 5,
419
+ value
420
+ )).len;
421
+ return this;
422
+ }
423
+
424
+ int32(value: number): BinaryWriter {
425
+ return value < 0
426
+ ? this._push(writeVarint64, 10, int64FromString(value.toString())) // 10 bytes per spec
427
+ : this.uint32(value);
428
+ }
429
+
430
+ sint32(value: number): BinaryWriter {
431
+ return this.uint32(((value << 1) ^ (value >> 31)) >>> 0);
432
+ }
433
+
434
+ int64(value: string | number | bigint): BinaryWriter {
435
+ const { lo, hi } = int64FromString(value.toString());
436
+ return this._push(writeVarint64, int64Length(lo, hi), { lo, hi });
437
+ }
438
+
439
+ // uint64 is the same with int64
440
+ uint64 = BinaryWriter.prototype.int64;
441
+
442
+ sint64(value: string | number | bigint): BinaryWriter {
443
+ let { lo, hi } = int64FromString(value.toString());
444
+ // zig zag
445
+ [lo, hi] = zzEncode(lo, hi);
446
+ return this._push(writeVarint64, int64Length(lo, hi), { lo, hi });
447
+ }
448
+
449
+ fixed64(value: string | number | bigint): BinaryWriter {
450
+ const { lo, hi } = int64FromString(value.toString());
451
+ return this._push(writeFixed32, 4, lo)._push(writeFixed32, 4, hi);
452
+ }
453
+
454
+ // sfixed64 is the same with fixed64
455
+ sfixed64 = BinaryWriter.prototype.fixed64;
456
+
457
+ bool(value: boolean): BinaryWriter {
458
+ return this._push(writeByte, 1, value ? 1 : 0);
459
+ }
460
+
461
+ fixed32(value: number): BinaryWriter {
462
+ return this._push(writeFixed32, 4, value >>> 0);
463
+ }
464
+
465
+ // sfixed32 is the same with fixed32
466
+ sfixed32 = BinaryWriter.prototype.fixed32;
467
+
468
+ float(value: number): BinaryWriter {
469
+ throw new Error("float not supported" + value);
470
+ }
471
+
472
+ double(value: number): BinaryWriter {
473
+ throw new Error("double not supported" + value);
474
+ }
475
+
476
+ bytes(value: Uint8Array): BinaryWriter {
477
+ const len = value.length >>> 0;
478
+ if (!len) return this._push(writeByte, 1, 0);
479
+ return this.uint32(len)._push(writeBytes, len, value);
480
+ }
481
+
482
+ string(value: string): BinaryWriter {
483
+ const len = utf8Length(value);
484
+ return len
485
+ ? this.uint32(len)._push(utf8Write, len, value)
486
+ : this._push(writeByte, 1, 0);
487
+ }
488
+ }
489
+
490
+ function writeBytes(
491
+ val: Uint8Array | number[],
492
+ buf: Uint8Array | number[],
493
+ pos: number
494
+ ) {
495
+ if (typeof Uint8Array !== "undefined") {
496
+ (buf as Uint8Array).set(val, pos);
497
+ } else {
498
+ for (let i = 0; i < val.length; ++i) buf[pos + i] = val[i];
499
+ }
500
+ }
501
+
502
+ function pool(
503
+ alloc: (size: number) => Uint8Array,
504
+ slice: (begin?: number, end?: number) => Uint8Array,
505
+ size?: number
506
+ ): (size: number) => Uint8Array {
507
+ const SIZE = size || 8192;
508
+ const MAX = SIZE >>> 1;
509
+ let slab: Uint8Array | null = null;
510
+ let offset = SIZE;
511
+ return function pool_alloc(size): Uint8Array {
512
+ if (size < 1 || size > MAX) return alloc(size);
513
+ if (offset + size > SIZE) {
514
+ slab = alloc(SIZE);
515
+ offset = 0;
516
+ }
517
+ const buf: Uint8Array = slice.call(slab, offset, (offset += size));
518
+ if (offset & 7)
519
+ // align to 32 bit
520
+ offset = (offset | 7) + 1;
521
+ return buf;
522
+ };
523
+ }
524
+
525
+ function indexOutOfRange(reader: BinaryReader, writeLength?: number) {
526
+ return RangeError(
527
+ "index out of range: " +
528
+ reader.pos +
529
+ " + " +
530
+ (writeLength || 1) +
531
+ " > " +
532
+ reader.len
533
+ );
534
+ }