@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,219 @@
1
+ import { Params, ParamsAmino } from "./mint";
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ import { DeepPartial } from "../../../helpers";
4
+ import { GlobalDecoderRegistry } from "../../../registry";
5
+ /**
6
+ * MsgUpdateParams is the Msg/UpdateParams request type.
7
+ *
8
+ * Since: cosmos-sdk 0.47
9
+ */
10
+ export interface MsgUpdateParams {
11
+ /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
12
+ authority: string;
13
+ /**
14
+ * params defines the x/mint parameters to update.
15
+ *
16
+ * NOTE: All parameters must be supplied.
17
+ */
18
+ params: Params;
19
+ }
20
+ export interface MsgUpdateParamsProtoMsg {
21
+ typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams";
22
+ value: Uint8Array;
23
+ }
24
+ /**
25
+ * MsgUpdateParams is the Msg/UpdateParams request type.
26
+ *
27
+ * Since: cosmos-sdk 0.47
28
+ */
29
+ export interface MsgUpdateParamsAmino {
30
+ /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
31
+ authority: string;
32
+ /**
33
+ * params defines the x/mint parameters to update.
34
+ *
35
+ * NOTE: All parameters must be supplied.
36
+ */
37
+ params: ParamsAmino;
38
+ }
39
+ export interface MsgUpdateParamsAminoMsg {
40
+ type: "cosmos-sdk/x/mint/MsgUpdateParams";
41
+ value: MsgUpdateParamsAmino;
42
+ }
43
+ /**
44
+ * MsgUpdateParamsResponse defines the response structure for executing a
45
+ * MsgUpdateParams message.
46
+ *
47
+ * Since: cosmos-sdk 0.47
48
+ */
49
+ export interface MsgUpdateParamsResponse {}
50
+ export interface MsgUpdateParamsResponseProtoMsg {
51
+ typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParamsResponse";
52
+ value: Uint8Array;
53
+ }
54
+ /**
55
+ * MsgUpdateParamsResponse defines the response structure for executing a
56
+ * MsgUpdateParams message.
57
+ *
58
+ * Since: cosmos-sdk 0.47
59
+ */
60
+ export interface MsgUpdateParamsResponseAmino {}
61
+ export interface MsgUpdateParamsResponseAminoMsg {
62
+ type: "cosmos-sdk/MsgUpdateParamsResponse";
63
+ value: MsgUpdateParamsResponseAmino;
64
+ }
65
+ function createBaseMsgUpdateParams(): MsgUpdateParams {
66
+ return {
67
+ authority: "",
68
+ params: Params.fromPartial({})
69
+ };
70
+ }
71
+ export const MsgUpdateParams = {
72
+ typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams",
73
+ aminoType: "cosmos-sdk/x/mint/MsgUpdateParams",
74
+ is(o: any): o is MsgUpdateParams {
75
+ return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.is(o.params));
76
+ },
77
+ isAmino(o: any): o is MsgUpdateParamsAmino {
78
+ return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.isAmino(o.params));
79
+ },
80
+ encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
81
+ if (message.authority !== "") {
82
+ writer.uint32(10).string(message.authority);
83
+ }
84
+ if (message.params !== undefined) {
85
+ Params.encode(message.params, writer.uint32(18).fork()).ldelim();
86
+ }
87
+ return writer;
88
+ },
89
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
90
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
91
+ let end = length === undefined ? reader.len : reader.pos + length;
92
+ const message = createBaseMsgUpdateParams();
93
+ while (reader.pos < end) {
94
+ const tag = reader.uint32();
95
+ switch (tag >>> 3) {
96
+ case 1:
97
+ message.authority = reader.string();
98
+ break;
99
+ case 2:
100
+ message.params = Params.decode(reader, reader.uint32());
101
+ break;
102
+ default:
103
+ reader.skipType(tag & 7);
104
+ break;
105
+ }
106
+ }
107
+ return message;
108
+ },
109
+ fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
110
+ const message = createBaseMsgUpdateParams();
111
+ message.authority = object.authority ?? "";
112
+ message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
113
+ return message;
114
+ },
115
+ fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
116
+ const message = createBaseMsgUpdateParams();
117
+ if (object.authority !== undefined && object.authority !== null) {
118
+ message.authority = object.authority;
119
+ }
120
+ if (object.params !== undefined && object.params !== null) {
121
+ message.params = Params.fromAmino(object.params);
122
+ }
123
+ return message;
124
+ },
125
+ toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
126
+ const obj: any = {};
127
+ obj.authority = message.authority === "" ? undefined : message.authority;
128
+ obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
129
+ return obj;
130
+ },
131
+ fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
132
+ return MsgUpdateParams.fromAmino(object.value);
133
+ },
134
+ toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
135
+ return {
136
+ type: "cosmos-sdk/x/mint/MsgUpdateParams",
137
+ value: MsgUpdateParams.toAmino(message)
138
+ };
139
+ },
140
+ fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
141
+ return MsgUpdateParams.decode(message.value);
142
+ },
143
+ toProto(message: MsgUpdateParams): Uint8Array {
144
+ return MsgUpdateParams.encode(message).finish();
145
+ },
146
+ toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
147
+ return {
148
+ typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams",
149
+ value: MsgUpdateParams.encode(message).finish()
150
+ };
151
+ }
152
+ };
153
+ GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
154
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
155
+ function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
156
+ return {};
157
+ }
158
+ export const MsgUpdateParamsResponse = {
159
+ typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParamsResponse",
160
+ aminoType: "cosmos-sdk/MsgUpdateParamsResponse",
161
+ is(o: any): o is MsgUpdateParamsResponse {
162
+ return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
163
+ },
164
+ isAmino(o: any): o is MsgUpdateParamsResponseAmino {
165
+ return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
166
+ },
167
+ encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
168
+ return writer;
169
+ },
170
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
171
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
172
+ let end = length === undefined ? reader.len : reader.pos + length;
173
+ const message = createBaseMsgUpdateParamsResponse();
174
+ while (reader.pos < end) {
175
+ const tag = reader.uint32();
176
+ switch (tag >>> 3) {
177
+ default:
178
+ reader.skipType(tag & 7);
179
+ break;
180
+ }
181
+ }
182
+ return message;
183
+ },
184
+ fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
185
+ const message = createBaseMsgUpdateParamsResponse();
186
+ return message;
187
+ },
188
+ fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
189
+ const message = createBaseMsgUpdateParamsResponse();
190
+ return message;
191
+ },
192
+ toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
193
+ const obj: any = {};
194
+ return obj;
195
+ },
196
+ fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
197
+ return MsgUpdateParamsResponse.fromAmino(object.value);
198
+ },
199
+ toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
200
+ return {
201
+ type: "cosmos-sdk/MsgUpdateParamsResponse",
202
+ value: MsgUpdateParamsResponse.toAmino(message)
203
+ };
204
+ },
205
+ fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
206
+ return MsgUpdateParamsResponse.decode(message.value);
207
+ },
208
+ toProto(message: MsgUpdateParamsResponse): Uint8Array {
209
+ return MsgUpdateParamsResponse.encode(message).finish();
210
+ },
211
+ toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
212
+ return {
213
+ typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParamsResponse",
214
+ value: MsgUpdateParamsResponse.encode(message).finish()
215
+ };
216
+ }
217
+ };
218
+ GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
219
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,80 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../../binary";
2
+ import { DeepPartial } from "../../../../helpers";
3
+ import { GlobalDecoderRegistry } from "../../../../registry";
4
+ /** Module is the config object of the nft module. */
5
+ export interface Module {}
6
+ export interface ModuleProtoMsg {
7
+ typeUrl: "/cosmos.nft.module.v1.Module";
8
+ value: Uint8Array;
9
+ }
10
+ /** Module is the config object of the nft module. */
11
+ export interface ModuleAmino {}
12
+ export interface ModuleAminoMsg {
13
+ type: "cosmos-sdk/Module";
14
+ value: ModuleAmino;
15
+ }
16
+ function createBaseModule(): Module {
17
+ return {};
18
+ }
19
+ export const Module = {
20
+ typeUrl: "/cosmos.nft.module.v1.Module",
21
+ aminoType: "cosmos-sdk/Module",
22
+ is(o: any): o is Module {
23
+ return o && o.$typeUrl === Module.typeUrl;
24
+ },
25
+ isAmino(o: any): o is ModuleAmino {
26
+ return o && o.$typeUrl === Module.typeUrl;
27
+ },
28
+ encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
29
+ return writer;
30
+ },
31
+ decode(input: BinaryReader | Uint8Array, length?: number): Module {
32
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33
+ let end = length === undefined ? reader.len : reader.pos + length;
34
+ const message = createBaseModule();
35
+ while (reader.pos < end) {
36
+ const tag = reader.uint32();
37
+ switch (tag >>> 3) {
38
+ default:
39
+ reader.skipType(tag & 7);
40
+ break;
41
+ }
42
+ }
43
+ return message;
44
+ },
45
+ fromPartial(_: DeepPartial<Module>): Module {
46
+ const message = createBaseModule();
47
+ return message;
48
+ },
49
+ fromAmino(_: ModuleAmino): Module {
50
+ const message = createBaseModule();
51
+ return message;
52
+ },
53
+ toAmino(_: Module): ModuleAmino {
54
+ const obj: any = {};
55
+ return obj;
56
+ },
57
+ fromAminoMsg(object: ModuleAminoMsg): Module {
58
+ return Module.fromAmino(object.value);
59
+ },
60
+ toAminoMsg(message: Module): ModuleAminoMsg {
61
+ return {
62
+ type: "cosmos-sdk/Module",
63
+ value: Module.toAmino(message)
64
+ };
65
+ },
66
+ fromProtoMsg(message: ModuleProtoMsg): Module {
67
+ return Module.decode(message.value);
68
+ },
69
+ toProto(message: Module): Uint8Array {
70
+ return Module.encode(message).finish();
71
+ },
72
+ toProtoMsg(message: Module): ModuleProtoMsg {
73
+ return {
74
+ typeUrl: "/cosmos.nft.module.v1.Module",
75
+ value: Module.encode(message).finish()
76
+ };
77
+ }
78
+ };
79
+ GlobalDecoderRegistry.register(Module.typeUrl, Module);
80
+ GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
@@ -0,0 +1,403 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../binary";
2
+ import { DeepPartial } from "../../../helpers";
3
+ import { GlobalDecoderRegistry } from "../../../registry";
4
+ /** EventSend is emitted on Msg/Send */
5
+ export interface EventSend {
6
+ /** class_id associated with the nft */
7
+ classId: string;
8
+ /** id is a unique identifier of the nft */
9
+ id: string;
10
+ /** sender is the address of the owner of nft */
11
+ sender: string;
12
+ /** receiver is the receiver address of nft */
13
+ receiver: string;
14
+ }
15
+ export interface EventSendProtoMsg {
16
+ typeUrl: "/cosmos.nft.v1beta1.EventSend";
17
+ value: Uint8Array;
18
+ }
19
+ /** EventSend is emitted on Msg/Send */
20
+ export interface EventSendAmino {
21
+ /** class_id associated with the nft */
22
+ class_id: string;
23
+ /** id is a unique identifier of the nft */
24
+ id: string;
25
+ /** sender is the address of the owner of nft */
26
+ sender: string;
27
+ /** receiver is the receiver address of nft */
28
+ receiver: string;
29
+ }
30
+ export interface EventSendAminoMsg {
31
+ type: "cosmos-sdk/EventSend";
32
+ value: EventSendAmino;
33
+ }
34
+ /** EventMint is emitted on Mint */
35
+ export interface EventMint {
36
+ /** class_id associated with the nft */
37
+ classId: string;
38
+ /** id is a unique identifier of the nft */
39
+ id: string;
40
+ /** owner is the owner address of the nft */
41
+ owner: string;
42
+ }
43
+ export interface EventMintProtoMsg {
44
+ typeUrl: "/cosmos.nft.v1beta1.EventMint";
45
+ value: Uint8Array;
46
+ }
47
+ /** EventMint is emitted on Mint */
48
+ export interface EventMintAmino {
49
+ /** class_id associated with the nft */
50
+ class_id: string;
51
+ /** id is a unique identifier of the nft */
52
+ id: string;
53
+ /** owner is the owner address of the nft */
54
+ owner: string;
55
+ }
56
+ export interface EventMintAminoMsg {
57
+ type: "cosmos-sdk/EventMint";
58
+ value: EventMintAmino;
59
+ }
60
+ /** EventBurn is emitted on Burn */
61
+ export interface EventBurn {
62
+ /** class_id associated with the nft */
63
+ classId: string;
64
+ /** id is a unique identifier of the nft */
65
+ id: string;
66
+ /** owner is the owner address of the nft */
67
+ owner: string;
68
+ }
69
+ export interface EventBurnProtoMsg {
70
+ typeUrl: "/cosmos.nft.v1beta1.EventBurn";
71
+ value: Uint8Array;
72
+ }
73
+ /** EventBurn is emitted on Burn */
74
+ export interface EventBurnAmino {
75
+ /** class_id associated with the nft */
76
+ class_id: string;
77
+ /** id is a unique identifier of the nft */
78
+ id: string;
79
+ /** owner is the owner address of the nft */
80
+ owner: string;
81
+ }
82
+ export interface EventBurnAminoMsg {
83
+ type: "cosmos-sdk/EventBurn";
84
+ value: EventBurnAmino;
85
+ }
86
+ function createBaseEventSend(): EventSend {
87
+ return {
88
+ classId: "",
89
+ id: "",
90
+ sender: "",
91
+ receiver: ""
92
+ };
93
+ }
94
+ export const EventSend = {
95
+ typeUrl: "/cosmos.nft.v1beta1.EventSend",
96
+ aminoType: "cosmos-sdk/EventSend",
97
+ is(o: any): o is EventSend {
98
+ return o && (o.$typeUrl === EventSend.typeUrl || typeof o.classId === "string" && typeof o.id === "string" && typeof o.sender === "string" && typeof o.receiver === "string");
99
+ },
100
+ isAmino(o: any): o is EventSendAmino {
101
+ return o && (o.$typeUrl === EventSend.typeUrl || typeof o.class_id === "string" && typeof o.id === "string" && typeof o.sender === "string" && typeof o.receiver === "string");
102
+ },
103
+ encode(message: EventSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
104
+ if (message.classId !== "") {
105
+ writer.uint32(10).string(message.classId);
106
+ }
107
+ if (message.id !== "") {
108
+ writer.uint32(18).string(message.id);
109
+ }
110
+ if (message.sender !== "") {
111
+ writer.uint32(26).string(message.sender);
112
+ }
113
+ if (message.receiver !== "") {
114
+ writer.uint32(34).string(message.receiver);
115
+ }
116
+ return writer;
117
+ },
118
+ decode(input: BinaryReader | Uint8Array, length?: number): EventSend {
119
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
120
+ let end = length === undefined ? reader.len : reader.pos + length;
121
+ const message = createBaseEventSend();
122
+ while (reader.pos < end) {
123
+ const tag = reader.uint32();
124
+ switch (tag >>> 3) {
125
+ case 1:
126
+ message.classId = reader.string();
127
+ break;
128
+ case 2:
129
+ message.id = reader.string();
130
+ break;
131
+ case 3:
132
+ message.sender = reader.string();
133
+ break;
134
+ case 4:
135
+ message.receiver = reader.string();
136
+ break;
137
+ default:
138
+ reader.skipType(tag & 7);
139
+ break;
140
+ }
141
+ }
142
+ return message;
143
+ },
144
+ fromPartial(object: DeepPartial<EventSend>): EventSend {
145
+ const message = createBaseEventSend();
146
+ message.classId = object.classId ?? "";
147
+ message.id = object.id ?? "";
148
+ message.sender = object.sender ?? "";
149
+ message.receiver = object.receiver ?? "";
150
+ return message;
151
+ },
152
+ fromAmino(object: EventSendAmino): EventSend {
153
+ const message = createBaseEventSend();
154
+ if (object.class_id !== undefined && object.class_id !== null) {
155
+ message.classId = object.class_id;
156
+ }
157
+ if (object.id !== undefined && object.id !== null) {
158
+ message.id = object.id;
159
+ }
160
+ if (object.sender !== undefined && object.sender !== null) {
161
+ message.sender = object.sender;
162
+ }
163
+ if (object.receiver !== undefined && object.receiver !== null) {
164
+ message.receiver = object.receiver;
165
+ }
166
+ return message;
167
+ },
168
+ toAmino(message: EventSend): EventSendAmino {
169
+ const obj: any = {};
170
+ obj.class_id = message.classId === "" ? undefined : message.classId;
171
+ obj.id = message.id === "" ? undefined : message.id;
172
+ obj.sender = message.sender === "" ? undefined : message.sender;
173
+ obj.receiver = message.receiver === "" ? undefined : message.receiver;
174
+ return obj;
175
+ },
176
+ fromAminoMsg(object: EventSendAminoMsg): EventSend {
177
+ return EventSend.fromAmino(object.value);
178
+ },
179
+ toAminoMsg(message: EventSend): EventSendAminoMsg {
180
+ return {
181
+ type: "cosmos-sdk/EventSend",
182
+ value: EventSend.toAmino(message)
183
+ };
184
+ },
185
+ fromProtoMsg(message: EventSendProtoMsg): EventSend {
186
+ return EventSend.decode(message.value);
187
+ },
188
+ toProto(message: EventSend): Uint8Array {
189
+ return EventSend.encode(message).finish();
190
+ },
191
+ toProtoMsg(message: EventSend): EventSendProtoMsg {
192
+ return {
193
+ typeUrl: "/cosmos.nft.v1beta1.EventSend",
194
+ value: EventSend.encode(message).finish()
195
+ };
196
+ }
197
+ };
198
+ GlobalDecoderRegistry.register(EventSend.typeUrl, EventSend);
199
+ GlobalDecoderRegistry.registerAminoProtoMapping(EventSend.aminoType, EventSend.typeUrl);
200
+ function createBaseEventMint(): EventMint {
201
+ return {
202
+ classId: "",
203
+ id: "",
204
+ owner: ""
205
+ };
206
+ }
207
+ export const EventMint = {
208
+ typeUrl: "/cosmos.nft.v1beta1.EventMint",
209
+ aminoType: "cosmos-sdk/EventMint",
210
+ is(o: any): o is EventMint {
211
+ return o && (o.$typeUrl === EventMint.typeUrl || typeof o.classId === "string" && typeof o.id === "string" && typeof o.owner === "string");
212
+ },
213
+ isAmino(o: any): o is EventMintAmino {
214
+ return o && (o.$typeUrl === EventMint.typeUrl || typeof o.class_id === "string" && typeof o.id === "string" && typeof o.owner === "string");
215
+ },
216
+ encode(message: EventMint, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
217
+ if (message.classId !== "") {
218
+ writer.uint32(10).string(message.classId);
219
+ }
220
+ if (message.id !== "") {
221
+ writer.uint32(18).string(message.id);
222
+ }
223
+ if (message.owner !== "") {
224
+ writer.uint32(26).string(message.owner);
225
+ }
226
+ return writer;
227
+ },
228
+ decode(input: BinaryReader | Uint8Array, length?: number): EventMint {
229
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
230
+ let end = length === undefined ? reader.len : reader.pos + length;
231
+ const message = createBaseEventMint();
232
+ while (reader.pos < end) {
233
+ const tag = reader.uint32();
234
+ switch (tag >>> 3) {
235
+ case 1:
236
+ message.classId = reader.string();
237
+ break;
238
+ case 2:
239
+ message.id = reader.string();
240
+ break;
241
+ case 3:
242
+ message.owner = reader.string();
243
+ break;
244
+ default:
245
+ reader.skipType(tag & 7);
246
+ break;
247
+ }
248
+ }
249
+ return message;
250
+ },
251
+ fromPartial(object: DeepPartial<EventMint>): EventMint {
252
+ const message = createBaseEventMint();
253
+ message.classId = object.classId ?? "";
254
+ message.id = object.id ?? "";
255
+ message.owner = object.owner ?? "";
256
+ return message;
257
+ },
258
+ fromAmino(object: EventMintAmino): EventMint {
259
+ const message = createBaseEventMint();
260
+ if (object.class_id !== undefined && object.class_id !== null) {
261
+ message.classId = object.class_id;
262
+ }
263
+ if (object.id !== undefined && object.id !== null) {
264
+ message.id = object.id;
265
+ }
266
+ if (object.owner !== undefined && object.owner !== null) {
267
+ message.owner = object.owner;
268
+ }
269
+ return message;
270
+ },
271
+ toAmino(message: EventMint): EventMintAmino {
272
+ const obj: any = {};
273
+ obj.class_id = message.classId === "" ? undefined : message.classId;
274
+ obj.id = message.id === "" ? undefined : message.id;
275
+ obj.owner = message.owner === "" ? undefined : message.owner;
276
+ return obj;
277
+ },
278
+ fromAminoMsg(object: EventMintAminoMsg): EventMint {
279
+ return EventMint.fromAmino(object.value);
280
+ },
281
+ toAminoMsg(message: EventMint): EventMintAminoMsg {
282
+ return {
283
+ type: "cosmos-sdk/EventMint",
284
+ value: EventMint.toAmino(message)
285
+ };
286
+ },
287
+ fromProtoMsg(message: EventMintProtoMsg): EventMint {
288
+ return EventMint.decode(message.value);
289
+ },
290
+ toProto(message: EventMint): Uint8Array {
291
+ return EventMint.encode(message).finish();
292
+ },
293
+ toProtoMsg(message: EventMint): EventMintProtoMsg {
294
+ return {
295
+ typeUrl: "/cosmos.nft.v1beta1.EventMint",
296
+ value: EventMint.encode(message).finish()
297
+ };
298
+ }
299
+ };
300
+ GlobalDecoderRegistry.register(EventMint.typeUrl, EventMint);
301
+ GlobalDecoderRegistry.registerAminoProtoMapping(EventMint.aminoType, EventMint.typeUrl);
302
+ function createBaseEventBurn(): EventBurn {
303
+ return {
304
+ classId: "",
305
+ id: "",
306
+ owner: ""
307
+ };
308
+ }
309
+ export const EventBurn = {
310
+ typeUrl: "/cosmos.nft.v1beta1.EventBurn",
311
+ aminoType: "cosmos-sdk/EventBurn",
312
+ is(o: any): o is EventBurn {
313
+ return o && (o.$typeUrl === EventBurn.typeUrl || typeof o.classId === "string" && typeof o.id === "string" && typeof o.owner === "string");
314
+ },
315
+ isAmino(o: any): o is EventBurnAmino {
316
+ return o && (o.$typeUrl === EventBurn.typeUrl || typeof o.class_id === "string" && typeof o.id === "string" && typeof o.owner === "string");
317
+ },
318
+ encode(message: EventBurn, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
319
+ if (message.classId !== "") {
320
+ writer.uint32(10).string(message.classId);
321
+ }
322
+ if (message.id !== "") {
323
+ writer.uint32(18).string(message.id);
324
+ }
325
+ if (message.owner !== "") {
326
+ writer.uint32(26).string(message.owner);
327
+ }
328
+ return writer;
329
+ },
330
+ decode(input: BinaryReader | Uint8Array, length?: number): EventBurn {
331
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
332
+ let end = length === undefined ? reader.len : reader.pos + length;
333
+ const message = createBaseEventBurn();
334
+ while (reader.pos < end) {
335
+ const tag = reader.uint32();
336
+ switch (tag >>> 3) {
337
+ case 1:
338
+ message.classId = reader.string();
339
+ break;
340
+ case 2:
341
+ message.id = reader.string();
342
+ break;
343
+ case 3:
344
+ message.owner = reader.string();
345
+ break;
346
+ default:
347
+ reader.skipType(tag & 7);
348
+ break;
349
+ }
350
+ }
351
+ return message;
352
+ },
353
+ fromPartial(object: DeepPartial<EventBurn>): EventBurn {
354
+ const message = createBaseEventBurn();
355
+ message.classId = object.classId ?? "";
356
+ message.id = object.id ?? "";
357
+ message.owner = object.owner ?? "";
358
+ return message;
359
+ },
360
+ fromAmino(object: EventBurnAmino): EventBurn {
361
+ const message = createBaseEventBurn();
362
+ if (object.class_id !== undefined && object.class_id !== null) {
363
+ message.classId = object.class_id;
364
+ }
365
+ if (object.id !== undefined && object.id !== null) {
366
+ message.id = object.id;
367
+ }
368
+ if (object.owner !== undefined && object.owner !== null) {
369
+ message.owner = object.owner;
370
+ }
371
+ return message;
372
+ },
373
+ toAmino(message: EventBurn): EventBurnAmino {
374
+ const obj: any = {};
375
+ obj.class_id = message.classId === "" ? undefined : message.classId;
376
+ obj.id = message.id === "" ? undefined : message.id;
377
+ obj.owner = message.owner === "" ? undefined : message.owner;
378
+ return obj;
379
+ },
380
+ fromAminoMsg(object: EventBurnAminoMsg): EventBurn {
381
+ return EventBurn.fromAmino(object.value);
382
+ },
383
+ toAminoMsg(message: EventBurn): EventBurnAminoMsg {
384
+ return {
385
+ type: "cosmos-sdk/EventBurn",
386
+ value: EventBurn.toAmino(message)
387
+ };
388
+ },
389
+ fromProtoMsg(message: EventBurnProtoMsg): EventBurn {
390
+ return EventBurn.decode(message.value);
391
+ },
392
+ toProto(message: EventBurn): Uint8Array {
393
+ return EventBurn.encode(message).finish();
394
+ },
395
+ toProtoMsg(message: EventBurn): EventBurnProtoMsg {
396
+ return {
397
+ typeUrl: "/cosmos.nft.v1beta1.EventBurn",
398
+ value: EventBurn.encode(message).finish()
399
+ };
400
+ }
401
+ };
402
+ GlobalDecoderRegistry.register(EventBurn.typeUrl, EventBurn);
403
+ GlobalDecoderRegistry.registerAminoProtoMapping(EventBurn.aminoType, EventBurn.typeUrl);