@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,234 @@
1
+ import { Class, ClassAmino, NFT, NFTAmino } from "./nft";
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ import { DeepPartial } from "../../../helpers";
4
+ import { GlobalDecoderRegistry } from "../../../registry";
5
+ /** GenesisState defines the nft module's genesis state. */
6
+ export interface GenesisState {
7
+ /** class defines the class of the nft type. */
8
+ classes: Class[];
9
+ /** entry defines all nft owned by a person. */
10
+ entries: Entry[];
11
+ }
12
+ export interface GenesisStateProtoMsg {
13
+ typeUrl: "/cosmos.nft.v1beta1.GenesisState";
14
+ value: Uint8Array;
15
+ }
16
+ /** GenesisState defines the nft module's genesis state. */
17
+ export interface GenesisStateAmino {
18
+ /** class defines the class of the nft type. */
19
+ classes: ClassAmino[];
20
+ /** entry defines all nft owned by a person. */
21
+ entries: EntryAmino[];
22
+ }
23
+ export interface GenesisStateAminoMsg {
24
+ type: "cosmos-sdk/GenesisState";
25
+ value: GenesisStateAmino;
26
+ }
27
+ /** Entry Defines all nft owned by a person */
28
+ export interface Entry {
29
+ /** owner is the owner address of the following nft */
30
+ owner: string;
31
+ /** nfts is a group of nfts of the same owner */
32
+ nfts: NFT[];
33
+ }
34
+ export interface EntryProtoMsg {
35
+ typeUrl: "/cosmos.nft.v1beta1.Entry";
36
+ value: Uint8Array;
37
+ }
38
+ /** Entry Defines all nft owned by a person */
39
+ export interface EntryAmino {
40
+ /** owner is the owner address of the following nft */
41
+ owner: string;
42
+ /** nfts is a group of nfts of the same owner */
43
+ nfts: NFTAmino[];
44
+ }
45
+ export interface EntryAminoMsg {
46
+ type: "cosmos-sdk/Entry";
47
+ value: EntryAmino;
48
+ }
49
+ function createBaseGenesisState(): GenesisState {
50
+ return {
51
+ classes: [],
52
+ entries: []
53
+ };
54
+ }
55
+ export const GenesisState = {
56
+ typeUrl: "/cosmos.nft.v1beta1.GenesisState",
57
+ aminoType: "cosmos-sdk/GenesisState",
58
+ is(o: any): o is GenesisState {
59
+ return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.classes) && (!o.classes.length || Class.is(o.classes[0])) && Array.isArray(o.entries) && (!o.entries.length || Entry.is(o.entries[0])));
60
+ },
61
+ isAmino(o: any): o is GenesisStateAmino {
62
+ return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.classes) && (!o.classes.length || Class.isAmino(o.classes[0])) && Array.isArray(o.entries) && (!o.entries.length || Entry.isAmino(o.entries[0])));
63
+ },
64
+ encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
65
+ for (const v of message.classes) {
66
+ Class.encode(v!, writer.uint32(10).fork()).ldelim();
67
+ }
68
+ for (const v of message.entries) {
69
+ Entry.encode(v!, writer.uint32(18).fork()).ldelim();
70
+ }
71
+ return writer;
72
+ },
73
+ decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
74
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
75
+ let end = length === undefined ? reader.len : reader.pos + length;
76
+ const message = createBaseGenesisState();
77
+ while (reader.pos < end) {
78
+ const tag = reader.uint32();
79
+ switch (tag >>> 3) {
80
+ case 1:
81
+ message.classes.push(Class.decode(reader, reader.uint32()));
82
+ break;
83
+ case 2:
84
+ message.entries.push(Entry.decode(reader, reader.uint32()));
85
+ break;
86
+ default:
87
+ reader.skipType(tag & 7);
88
+ break;
89
+ }
90
+ }
91
+ return message;
92
+ },
93
+ fromPartial(object: DeepPartial<GenesisState>): GenesisState {
94
+ const message = createBaseGenesisState();
95
+ message.classes = object.classes?.map(e => Class.fromPartial(e)) || [];
96
+ message.entries = object.entries?.map(e => Entry.fromPartial(e)) || [];
97
+ return message;
98
+ },
99
+ fromAmino(object: GenesisStateAmino): GenesisState {
100
+ const message = createBaseGenesisState();
101
+ message.classes = object.classes?.map(e => Class.fromAmino(e)) || [];
102
+ message.entries = object.entries?.map(e => Entry.fromAmino(e)) || [];
103
+ return message;
104
+ },
105
+ toAmino(message: GenesisState): GenesisStateAmino {
106
+ const obj: any = {};
107
+ if (message.classes) {
108
+ obj.classes = message.classes.map(e => e ? Class.toAmino(e) : undefined);
109
+ } else {
110
+ obj.classes = message.classes;
111
+ }
112
+ if (message.entries) {
113
+ obj.entries = message.entries.map(e => e ? Entry.toAmino(e) : undefined);
114
+ } else {
115
+ obj.entries = message.entries;
116
+ }
117
+ return obj;
118
+ },
119
+ fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
120
+ return GenesisState.fromAmino(object.value);
121
+ },
122
+ toAminoMsg(message: GenesisState): GenesisStateAminoMsg {
123
+ return {
124
+ type: "cosmos-sdk/GenesisState",
125
+ value: GenesisState.toAmino(message)
126
+ };
127
+ },
128
+ fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
129
+ return GenesisState.decode(message.value);
130
+ },
131
+ toProto(message: GenesisState): Uint8Array {
132
+ return GenesisState.encode(message).finish();
133
+ },
134
+ toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
135
+ return {
136
+ typeUrl: "/cosmos.nft.v1beta1.GenesisState",
137
+ value: GenesisState.encode(message).finish()
138
+ };
139
+ }
140
+ };
141
+ GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
142
+ GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
143
+ function createBaseEntry(): Entry {
144
+ return {
145
+ owner: "",
146
+ nfts: []
147
+ };
148
+ }
149
+ export const Entry = {
150
+ typeUrl: "/cosmos.nft.v1beta1.Entry",
151
+ aminoType: "cosmos-sdk/Entry",
152
+ is(o: any): o is Entry {
153
+ return o && (o.$typeUrl === Entry.typeUrl || typeof o.owner === "string" && Array.isArray(o.nfts) && (!o.nfts.length || NFT.is(o.nfts[0])));
154
+ },
155
+ isAmino(o: any): o is EntryAmino {
156
+ return o && (o.$typeUrl === Entry.typeUrl || typeof o.owner === "string" && Array.isArray(o.nfts) && (!o.nfts.length || NFT.isAmino(o.nfts[0])));
157
+ },
158
+ encode(message: Entry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
159
+ if (message.owner !== "") {
160
+ writer.uint32(10).string(message.owner);
161
+ }
162
+ for (const v of message.nfts) {
163
+ NFT.encode(v!, writer.uint32(18).fork()).ldelim();
164
+ }
165
+ return writer;
166
+ },
167
+ decode(input: BinaryReader | Uint8Array, length?: number): Entry {
168
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
169
+ let end = length === undefined ? reader.len : reader.pos + length;
170
+ const message = createBaseEntry();
171
+ while (reader.pos < end) {
172
+ const tag = reader.uint32();
173
+ switch (tag >>> 3) {
174
+ case 1:
175
+ message.owner = reader.string();
176
+ break;
177
+ case 2:
178
+ message.nfts.push(NFT.decode(reader, reader.uint32()));
179
+ break;
180
+ default:
181
+ reader.skipType(tag & 7);
182
+ break;
183
+ }
184
+ }
185
+ return message;
186
+ },
187
+ fromPartial(object: DeepPartial<Entry>): Entry {
188
+ const message = createBaseEntry();
189
+ message.owner = object.owner ?? "";
190
+ message.nfts = object.nfts?.map(e => NFT.fromPartial(e)) || [];
191
+ return message;
192
+ },
193
+ fromAmino(object: EntryAmino): Entry {
194
+ const message = createBaseEntry();
195
+ if (object.owner !== undefined && object.owner !== null) {
196
+ message.owner = object.owner;
197
+ }
198
+ message.nfts = object.nfts?.map(e => NFT.fromAmino(e)) || [];
199
+ return message;
200
+ },
201
+ toAmino(message: Entry): EntryAmino {
202
+ const obj: any = {};
203
+ obj.owner = message.owner === "" ? undefined : message.owner;
204
+ if (message.nfts) {
205
+ obj.nfts = message.nfts.map(e => e ? NFT.toAmino(e) : undefined);
206
+ } else {
207
+ obj.nfts = message.nfts;
208
+ }
209
+ return obj;
210
+ },
211
+ fromAminoMsg(object: EntryAminoMsg): Entry {
212
+ return Entry.fromAmino(object.value);
213
+ },
214
+ toAminoMsg(message: Entry): EntryAminoMsg {
215
+ return {
216
+ type: "cosmos-sdk/Entry",
217
+ value: Entry.toAmino(message)
218
+ };
219
+ },
220
+ fromProtoMsg(message: EntryProtoMsg): Entry {
221
+ return Entry.decode(message.value);
222
+ },
223
+ toProto(message: Entry): Uint8Array {
224
+ return Entry.encode(message).finish();
225
+ },
226
+ toProtoMsg(message: Entry): EntryProtoMsg {
227
+ return {
228
+ typeUrl: "/cosmos.nft.v1beta1.Entry",
229
+ value: Entry.encode(message).finish()
230
+ };
231
+ }
232
+ };
233
+ GlobalDecoderRegistry.register(Entry.typeUrl, Entry);
234
+ GlobalDecoderRegistry.registerAminoProtoMapping(Entry.aminoType, Entry.typeUrl);
@@ -0,0 +1,356 @@
1
+ import { Any, AnyAmino } from "../../../google/protobuf/any";
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ import { DeepPartial } from "../../../helpers";
4
+ import { GlobalDecoderRegistry } from "../../../registry";
5
+ /** Class defines the class of the nft type. */
6
+ export interface Class {
7
+ /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */
8
+ id: string;
9
+ /** name defines the human-readable name of the NFT classification. Optional */
10
+ name: string;
11
+ /** symbol is an abbreviated name for nft classification. Optional */
12
+ symbol: string;
13
+ /** description is a brief description of nft classification. Optional */
14
+ description: string;
15
+ /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */
16
+ uri: string;
17
+ /** uri_hash is a hash of the document pointed by uri. Optional */
18
+ uriHash: string;
19
+ /** data is the app specific metadata of the NFT class. Optional */
20
+ data?: Any;
21
+ }
22
+ export interface ClassProtoMsg {
23
+ typeUrl: "/cosmos.nft.v1beta1.Class";
24
+ value: Uint8Array;
25
+ }
26
+ /** Class defines the class of the nft type. */
27
+ export interface ClassAmino {
28
+ /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */
29
+ id: string;
30
+ /** name defines the human-readable name of the NFT classification. Optional */
31
+ name: string;
32
+ /** symbol is an abbreviated name for nft classification. Optional */
33
+ symbol: string;
34
+ /** description is a brief description of nft classification. Optional */
35
+ description: string;
36
+ /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */
37
+ uri: string;
38
+ /** uri_hash is a hash of the document pointed by uri. Optional */
39
+ uri_hash: string;
40
+ /** data is the app specific metadata of the NFT class. Optional */
41
+ data?: AnyAmino;
42
+ }
43
+ export interface ClassAminoMsg {
44
+ type: "cosmos-sdk/Class";
45
+ value: ClassAmino;
46
+ }
47
+ /** NFT defines the NFT. */
48
+ export interface NFT {
49
+ /** class_id associated with the NFT, similar to the contract address of ERC721 */
50
+ classId: string;
51
+ /** id is a unique identifier of the NFT */
52
+ id: string;
53
+ /** uri for the NFT metadata stored off chain */
54
+ uri: string;
55
+ /** uri_hash is a hash of the document pointed by uri */
56
+ uriHash: string;
57
+ /** data is an app specific data of the NFT. Optional */
58
+ data?: Any;
59
+ }
60
+ export interface NFTProtoMsg {
61
+ typeUrl: "/cosmos.nft.v1beta1.NFT";
62
+ value: Uint8Array;
63
+ }
64
+ /** NFT defines the NFT. */
65
+ export interface NFTAmino {
66
+ /** class_id associated with the NFT, similar to the contract address of ERC721 */
67
+ class_id: string;
68
+ /** id is a unique identifier of the NFT */
69
+ id: string;
70
+ /** uri for the NFT metadata stored off chain */
71
+ uri: string;
72
+ /** uri_hash is a hash of the document pointed by uri */
73
+ uri_hash: string;
74
+ /** data is an app specific data of the NFT. Optional */
75
+ data?: AnyAmino;
76
+ }
77
+ export interface NFTAminoMsg {
78
+ type: "cosmos-sdk/NFT";
79
+ value: NFTAmino;
80
+ }
81
+ function createBaseClass(): Class {
82
+ return {
83
+ id: "",
84
+ name: "",
85
+ symbol: "",
86
+ description: "",
87
+ uri: "",
88
+ uriHash: "",
89
+ data: undefined
90
+ };
91
+ }
92
+ export const Class = {
93
+ typeUrl: "/cosmos.nft.v1beta1.Class",
94
+ aminoType: "cosmos-sdk/Class",
95
+ is(o: any): o is Class {
96
+ return o && (o.$typeUrl === Class.typeUrl || typeof o.id === "string" && typeof o.name === "string" && typeof o.symbol === "string" && typeof o.description === "string" && typeof o.uri === "string" && typeof o.uriHash === "string");
97
+ },
98
+ isAmino(o: any): o is ClassAmino {
99
+ return o && (o.$typeUrl === Class.typeUrl || typeof o.id === "string" && typeof o.name === "string" && typeof o.symbol === "string" && typeof o.description === "string" && typeof o.uri === "string" && typeof o.uri_hash === "string");
100
+ },
101
+ encode(message: Class, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
102
+ if (message.id !== "") {
103
+ writer.uint32(10).string(message.id);
104
+ }
105
+ if (message.name !== "") {
106
+ writer.uint32(18).string(message.name);
107
+ }
108
+ if (message.symbol !== "") {
109
+ writer.uint32(26).string(message.symbol);
110
+ }
111
+ if (message.description !== "") {
112
+ writer.uint32(34).string(message.description);
113
+ }
114
+ if (message.uri !== "") {
115
+ writer.uint32(42).string(message.uri);
116
+ }
117
+ if (message.uriHash !== "") {
118
+ writer.uint32(50).string(message.uriHash);
119
+ }
120
+ if (message.data !== undefined) {
121
+ Any.encode(message.data, writer.uint32(58).fork()).ldelim();
122
+ }
123
+ return writer;
124
+ },
125
+ decode(input: BinaryReader | Uint8Array, length?: number): Class {
126
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
127
+ let end = length === undefined ? reader.len : reader.pos + length;
128
+ const message = createBaseClass();
129
+ while (reader.pos < end) {
130
+ const tag = reader.uint32();
131
+ switch (tag >>> 3) {
132
+ case 1:
133
+ message.id = reader.string();
134
+ break;
135
+ case 2:
136
+ message.name = reader.string();
137
+ break;
138
+ case 3:
139
+ message.symbol = reader.string();
140
+ break;
141
+ case 4:
142
+ message.description = reader.string();
143
+ break;
144
+ case 5:
145
+ message.uri = reader.string();
146
+ break;
147
+ case 6:
148
+ message.uriHash = reader.string();
149
+ break;
150
+ case 7:
151
+ message.data = Any.decode(reader, reader.uint32());
152
+ break;
153
+ default:
154
+ reader.skipType(tag & 7);
155
+ break;
156
+ }
157
+ }
158
+ return message;
159
+ },
160
+ fromPartial(object: DeepPartial<Class>): Class {
161
+ const message = createBaseClass();
162
+ message.id = object.id ?? "";
163
+ message.name = object.name ?? "";
164
+ message.symbol = object.symbol ?? "";
165
+ message.description = object.description ?? "";
166
+ message.uri = object.uri ?? "";
167
+ message.uriHash = object.uriHash ?? "";
168
+ message.data = object.data !== undefined && object.data !== null ? Any.fromPartial(object.data) : undefined;
169
+ return message;
170
+ },
171
+ fromAmino(object: ClassAmino): Class {
172
+ const message = createBaseClass();
173
+ if (object.id !== undefined && object.id !== null) {
174
+ message.id = object.id;
175
+ }
176
+ if (object.name !== undefined && object.name !== null) {
177
+ message.name = object.name;
178
+ }
179
+ if (object.symbol !== undefined && object.symbol !== null) {
180
+ message.symbol = object.symbol;
181
+ }
182
+ if (object.description !== undefined && object.description !== null) {
183
+ message.description = object.description;
184
+ }
185
+ if (object.uri !== undefined && object.uri !== null) {
186
+ message.uri = object.uri;
187
+ }
188
+ if (object.uri_hash !== undefined && object.uri_hash !== null) {
189
+ message.uriHash = object.uri_hash;
190
+ }
191
+ if (object.data !== undefined && object.data !== null) {
192
+ message.data = Any.fromAmino(object.data);
193
+ }
194
+ return message;
195
+ },
196
+ toAmino(message: Class): ClassAmino {
197
+ const obj: any = {};
198
+ obj.id = message.id === "" ? undefined : message.id;
199
+ obj.name = message.name === "" ? undefined : message.name;
200
+ obj.symbol = message.symbol === "" ? undefined : message.symbol;
201
+ obj.description = message.description === "" ? undefined : message.description;
202
+ obj.uri = message.uri === "" ? undefined : message.uri;
203
+ obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash;
204
+ obj.data = message.data ? Any.toAmino(message.data) : undefined;
205
+ return obj;
206
+ },
207
+ fromAminoMsg(object: ClassAminoMsg): Class {
208
+ return Class.fromAmino(object.value);
209
+ },
210
+ toAminoMsg(message: Class): ClassAminoMsg {
211
+ return {
212
+ type: "cosmos-sdk/Class",
213
+ value: Class.toAmino(message)
214
+ };
215
+ },
216
+ fromProtoMsg(message: ClassProtoMsg): Class {
217
+ return Class.decode(message.value);
218
+ },
219
+ toProto(message: Class): Uint8Array {
220
+ return Class.encode(message).finish();
221
+ },
222
+ toProtoMsg(message: Class): ClassProtoMsg {
223
+ return {
224
+ typeUrl: "/cosmos.nft.v1beta1.Class",
225
+ value: Class.encode(message).finish()
226
+ };
227
+ }
228
+ };
229
+ GlobalDecoderRegistry.register(Class.typeUrl, Class);
230
+ GlobalDecoderRegistry.registerAminoProtoMapping(Class.aminoType, Class.typeUrl);
231
+ function createBaseNFT(): NFT {
232
+ return {
233
+ classId: "",
234
+ id: "",
235
+ uri: "",
236
+ uriHash: "",
237
+ data: undefined
238
+ };
239
+ }
240
+ export const NFT = {
241
+ typeUrl: "/cosmos.nft.v1beta1.NFT",
242
+ aminoType: "cosmos-sdk/NFT",
243
+ is(o: any): o is NFT {
244
+ return o && (o.$typeUrl === NFT.typeUrl || typeof o.classId === "string" && typeof o.id === "string" && typeof o.uri === "string" && typeof o.uriHash === "string");
245
+ },
246
+ isAmino(o: any): o is NFTAmino {
247
+ return o && (o.$typeUrl === NFT.typeUrl || typeof o.class_id === "string" && typeof o.id === "string" && typeof o.uri === "string" && typeof o.uri_hash === "string");
248
+ },
249
+ encode(message: NFT, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
250
+ if (message.classId !== "") {
251
+ writer.uint32(10).string(message.classId);
252
+ }
253
+ if (message.id !== "") {
254
+ writer.uint32(18).string(message.id);
255
+ }
256
+ if (message.uri !== "") {
257
+ writer.uint32(26).string(message.uri);
258
+ }
259
+ if (message.uriHash !== "") {
260
+ writer.uint32(34).string(message.uriHash);
261
+ }
262
+ if (message.data !== undefined) {
263
+ Any.encode(message.data, writer.uint32(82).fork()).ldelim();
264
+ }
265
+ return writer;
266
+ },
267
+ decode(input: BinaryReader | Uint8Array, length?: number): NFT {
268
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
269
+ let end = length === undefined ? reader.len : reader.pos + length;
270
+ const message = createBaseNFT();
271
+ while (reader.pos < end) {
272
+ const tag = reader.uint32();
273
+ switch (tag >>> 3) {
274
+ case 1:
275
+ message.classId = reader.string();
276
+ break;
277
+ case 2:
278
+ message.id = reader.string();
279
+ break;
280
+ case 3:
281
+ message.uri = reader.string();
282
+ break;
283
+ case 4:
284
+ message.uriHash = reader.string();
285
+ break;
286
+ case 10:
287
+ message.data = Any.decode(reader, reader.uint32());
288
+ break;
289
+ default:
290
+ reader.skipType(tag & 7);
291
+ break;
292
+ }
293
+ }
294
+ return message;
295
+ },
296
+ fromPartial(object: DeepPartial<NFT>): NFT {
297
+ const message = createBaseNFT();
298
+ message.classId = object.classId ?? "";
299
+ message.id = object.id ?? "";
300
+ message.uri = object.uri ?? "";
301
+ message.uriHash = object.uriHash ?? "";
302
+ message.data = object.data !== undefined && object.data !== null ? Any.fromPartial(object.data) : undefined;
303
+ return message;
304
+ },
305
+ fromAmino(object: NFTAmino): NFT {
306
+ const message = createBaseNFT();
307
+ if (object.class_id !== undefined && object.class_id !== null) {
308
+ message.classId = object.class_id;
309
+ }
310
+ if (object.id !== undefined && object.id !== null) {
311
+ message.id = object.id;
312
+ }
313
+ if (object.uri !== undefined && object.uri !== null) {
314
+ message.uri = object.uri;
315
+ }
316
+ if (object.uri_hash !== undefined && object.uri_hash !== null) {
317
+ message.uriHash = object.uri_hash;
318
+ }
319
+ if (object.data !== undefined && object.data !== null) {
320
+ message.data = Any.fromAmino(object.data);
321
+ }
322
+ return message;
323
+ },
324
+ toAmino(message: NFT): NFTAmino {
325
+ const obj: any = {};
326
+ obj.class_id = message.classId === "" ? undefined : message.classId;
327
+ obj.id = message.id === "" ? undefined : message.id;
328
+ obj.uri = message.uri === "" ? undefined : message.uri;
329
+ obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash;
330
+ obj.data = message.data ? Any.toAmino(message.data) : undefined;
331
+ return obj;
332
+ },
333
+ fromAminoMsg(object: NFTAminoMsg): NFT {
334
+ return NFT.fromAmino(object.value);
335
+ },
336
+ toAminoMsg(message: NFT): NFTAminoMsg {
337
+ return {
338
+ type: "cosmos-sdk/NFT",
339
+ value: NFT.toAmino(message)
340
+ };
341
+ },
342
+ fromProtoMsg(message: NFTProtoMsg): NFT {
343
+ return NFT.decode(message.value);
344
+ },
345
+ toProto(message: NFT): Uint8Array {
346
+ return NFT.encode(message).finish();
347
+ },
348
+ toProtoMsg(message: NFT): NFTProtoMsg {
349
+ return {
350
+ typeUrl: "/cosmos.nft.v1beta1.NFT",
351
+ value: NFT.encode(message).finish()
352
+ };
353
+ }
354
+ };
355
+ GlobalDecoderRegistry.register(NFT.typeUrl, NFT);
356
+ GlobalDecoderRegistry.registerAminoProtoMapping(NFT.aminoType, NFT.typeUrl);
@@ -0,0 +1,80 @@
1
+ import { RpcResolver, buildQuery } from "../../../helper-func-types";
2
+ import { buildUseQuery } from "../../../react-query";
3
+ import { QueryBalanceRequest, QueryBalanceResponse, QueryOwnerRequest, QueryOwnerResponse, QuerySupplyRequest, QuerySupplyResponse, QueryNFTsRequest, QueryNFTsResponse, QueryNFTRequest, QueryNFTResponse, QueryClassRequest, QueryClassResponse, QueryClassesRequest, QueryClassesResponse } from "./query";
4
+ export const createGetBalance = (clientResolver?: RpcResolver) => buildQuery<QueryBalanceRequest, QueryBalanceResponse>({
5
+ encode: QueryBalanceRequest.encode,
6
+ decode: QueryBalanceResponse.decode,
7
+ service: "cosmos.nft.v1beta1.Query",
8
+ method: "Balance",
9
+ clientResolver
10
+ });
11
+ export const useGetBalance = buildUseQuery<QueryBalanceRequest, QueryBalanceResponse>({
12
+ builderQueryFn: createGetBalance,
13
+ queryKeyPrefix: "BalanceQuery"
14
+ });
15
+ export const createGetOwner = (clientResolver?: RpcResolver) => buildQuery<QueryOwnerRequest, QueryOwnerResponse>({
16
+ encode: QueryOwnerRequest.encode,
17
+ decode: QueryOwnerResponse.decode,
18
+ service: "cosmos.nft.v1beta1.Query",
19
+ method: "Owner",
20
+ clientResolver
21
+ });
22
+ export const useGetOwner = buildUseQuery<QueryOwnerRequest, QueryOwnerResponse>({
23
+ builderQueryFn: createGetOwner,
24
+ queryKeyPrefix: "OwnerQuery"
25
+ });
26
+ export const createGetSupply = (clientResolver?: RpcResolver) => buildQuery<QuerySupplyRequest, QuerySupplyResponse>({
27
+ encode: QuerySupplyRequest.encode,
28
+ decode: QuerySupplyResponse.decode,
29
+ service: "cosmos.nft.v1beta1.Query",
30
+ method: "Supply",
31
+ clientResolver
32
+ });
33
+ export const useGetSupply = buildUseQuery<QuerySupplyRequest, QuerySupplyResponse>({
34
+ builderQueryFn: createGetSupply,
35
+ queryKeyPrefix: "SupplyQuery"
36
+ });
37
+ export const createGetNFTs = (clientResolver?: RpcResolver) => buildQuery<QueryNFTsRequest, QueryNFTsResponse>({
38
+ encode: QueryNFTsRequest.encode,
39
+ decode: QueryNFTsResponse.decode,
40
+ service: "cosmos.nft.v1beta1.Query",
41
+ method: "NFTs",
42
+ clientResolver
43
+ });
44
+ export const useGetNFTs = buildUseQuery<QueryNFTsRequest, QueryNFTsResponse>({
45
+ builderQueryFn: createGetNFTs,
46
+ queryKeyPrefix: "NFTsQuery"
47
+ });
48
+ export const createGetNFT = (clientResolver?: RpcResolver) => buildQuery<QueryNFTRequest, QueryNFTResponse>({
49
+ encode: QueryNFTRequest.encode,
50
+ decode: QueryNFTResponse.decode,
51
+ service: "cosmos.nft.v1beta1.Query",
52
+ method: "NFT",
53
+ clientResolver
54
+ });
55
+ export const useGetNFT = buildUseQuery<QueryNFTRequest, QueryNFTResponse>({
56
+ builderQueryFn: createGetNFT,
57
+ queryKeyPrefix: "NFTQuery"
58
+ });
59
+ export const createGetClass = (clientResolver?: RpcResolver) => buildQuery<QueryClassRequest, QueryClassResponse>({
60
+ encode: QueryClassRequest.encode,
61
+ decode: QueryClassResponse.decode,
62
+ service: "cosmos.nft.v1beta1.Query",
63
+ method: "Class",
64
+ clientResolver
65
+ });
66
+ export const useGetClass = buildUseQuery<QueryClassRequest, QueryClassResponse>({
67
+ builderQueryFn: createGetClass,
68
+ queryKeyPrefix: "ClassQuery"
69
+ });
70
+ export const createGetClasses = (clientResolver?: RpcResolver) => buildQuery<QueryClassesRequest, QueryClassesResponse>({
71
+ encode: QueryClassesRequest.encode,
72
+ decode: QueryClassesResponse.decode,
73
+ service: "cosmos.nft.v1beta1.Query",
74
+ method: "Classes",
75
+ clientResolver
76
+ });
77
+ export const useGetClasses = buildUseQuery<QueryClassesRequest, QueryClassesResponse>({
78
+ builderQueryFn: createGetClasses,
79
+ queryKeyPrefix: "ClassesQuery"
80
+ });