@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,589 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../../binary";
2
+ import { DeepPartial } from "../../../../helpers";
3
+ import { GlobalDecoderRegistry } from "../../../../registry";
4
+ /** Module is the config object for the runtime module. */
5
+ export interface Module {
6
+ /** app_name is the name of the app. */
7
+ appName: string;
8
+ /**
9
+ * pre_blockers specifies the module names of pre blockers
10
+ * to call in the order in which they should be called. If this is left empty
11
+ * no pre blocker will be registered.
12
+ */
13
+ preBlockers: string[];
14
+ /**
15
+ * begin_blockers specifies the module names of begin blockers
16
+ * to call in the order in which they should be called. If this is left empty
17
+ * no begin blocker will be registered.
18
+ */
19
+ beginBlockers: string[];
20
+ /**
21
+ * end_blockers specifies the module names of the end blockers
22
+ * to call in the order in which they should be called. If this is left empty
23
+ * no end blocker will be registered.
24
+ */
25
+ endBlockers: string[];
26
+ /**
27
+ * tx_validators specifies the module names for tx validators
28
+ * If this is left empty, no tx validation will be registered.
29
+ */
30
+ txValidators: string[];
31
+ /**
32
+ * init_genesis specifies the module names of init genesis functions
33
+ * to call in the order in which they should be called. If this is left empty
34
+ * no init genesis function will be registered.
35
+ */
36
+ initGenesis: string[];
37
+ /**
38
+ * export_genesis specifies the order in which to export module genesis data.
39
+ * If this is left empty, the init_genesis order will be used for export genesis
40
+ * if it is specified.
41
+ */
42
+ exportGenesis: string[];
43
+ /**
44
+ * order_migrations defines the order in which module migrations are performed.
45
+ * If this is left empty, it uses the default migration order (alphabetically).
46
+ */
47
+ orderMigrations: string[];
48
+ /** GasConfig is the config object for gas limits. */
49
+ gasConfig?: GasConfig;
50
+ /**
51
+ * override_store_keys is an optional list of overrides for the module store keys
52
+ * to be used in keeper construction.
53
+ */
54
+ overrideStoreKeys: StoreKeyConfig[];
55
+ /**
56
+ * skip_store_keys is an optional list of store keys to skip when constructing the
57
+ * module's keeper. This is useful when a module does not have a store key.
58
+ * NOTE: the provided environment variable will have a fake store service.
59
+ */
60
+ skipStoreKeys: string[];
61
+ }
62
+ export interface ModuleProtoMsg {
63
+ typeUrl: "/cosmos.app.runtime.v2.Module";
64
+ value: Uint8Array;
65
+ }
66
+ /** Module is the config object for the runtime module. */
67
+ export interface ModuleAmino {
68
+ /** app_name is the name of the app. */
69
+ app_name: string;
70
+ /**
71
+ * pre_blockers specifies the module names of pre blockers
72
+ * to call in the order in which they should be called. If this is left empty
73
+ * no pre blocker will be registered.
74
+ */
75
+ pre_blockers: string[];
76
+ /**
77
+ * begin_blockers specifies the module names of begin blockers
78
+ * to call in the order in which they should be called. If this is left empty
79
+ * no begin blocker will be registered.
80
+ */
81
+ begin_blockers: string[];
82
+ /**
83
+ * end_blockers specifies the module names of the end blockers
84
+ * to call in the order in which they should be called. If this is left empty
85
+ * no end blocker will be registered.
86
+ */
87
+ end_blockers: string[];
88
+ /**
89
+ * tx_validators specifies the module names for tx validators
90
+ * If this is left empty, no tx validation will be registered.
91
+ */
92
+ tx_validators: string[];
93
+ /**
94
+ * init_genesis specifies the module names of init genesis functions
95
+ * to call in the order in which they should be called. If this is left empty
96
+ * no init genesis function will be registered.
97
+ */
98
+ init_genesis: string[];
99
+ /**
100
+ * export_genesis specifies the order in which to export module genesis data.
101
+ * If this is left empty, the init_genesis order will be used for export genesis
102
+ * if it is specified.
103
+ */
104
+ export_genesis: string[];
105
+ /**
106
+ * order_migrations defines the order in which module migrations are performed.
107
+ * If this is left empty, it uses the default migration order (alphabetically).
108
+ */
109
+ order_migrations: string[];
110
+ /** GasConfig is the config object for gas limits. */
111
+ gas_config?: GasConfigAmino;
112
+ /**
113
+ * override_store_keys is an optional list of overrides for the module store keys
114
+ * to be used in keeper construction.
115
+ */
116
+ override_store_keys: StoreKeyConfigAmino[];
117
+ /**
118
+ * skip_store_keys is an optional list of store keys to skip when constructing the
119
+ * module's keeper. This is useful when a module does not have a store key.
120
+ * NOTE: the provided environment variable will have a fake store service.
121
+ */
122
+ skip_store_keys: string[];
123
+ }
124
+ export interface ModuleAminoMsg {
125
+ type: "cosmos-sdk/Module";
126
+ value: ModuleAmino;
127
+ }
128
+ /** GasConfig is the config object for gas limits. */
129
+ export interface GasConfig {
130
+ /** validate_tx_gas_limit is the gas limit for validating a tx. */
131
+ validateTxGasLimit: bigint;
132
+ /** query_gas_limit is the gas limit for querying. */
133
+ queryGasLimit: bigint;
134
+ /** simulation_gas_limit is the gas limit for simulation. */
135
+ simulationGasLimit: bigint;
136
+ }
137
+ export interface GasConfigProtoMsg {
138
+ typeUrl: "/cosmos.app.runtime.v2.GasConfig";
139
+ value: Uint8Array;
140
+ }
141
+ /** GasConfig is the config object for gas limits. */
142
+ export interface GasConfigAmino {
143
+ /** validate_tx_gas_limit is the gas limit for validating a tx. */
144
+ validate_tx_gas_limit: string;
145
+ /** query_gas_limit is the gas limit for querying. */
146
+ query_gas_limit: string;
147
+ /** simulation_gas_limit is the gas limit for simulation. */
148
+ simulation_gas_limit: string;
149
+ }
150
+ export interface GasConfigAminoMsg {
151
+ type: "cosmos-sdk/GasConfig";
152
+ value: GasConfigAmino;
153
+ }
154
+ /**
155
+ * StoreKeyConfig may be supplied to override the default module store key, which
156
+ * is the module name.
157
+ */
158
+ export interface StoreKeyConfig {
159
+ /** name of the module to override the store key of */
160
+ moduleName: string;
161
+ /** the kv store key to use instead of the module name. */
162
+ kvStoreKey: string;
163
+ }
164
+ export interface StoreKeyConfigProtoMsg {
165
+ typeUrl: "/cosmos.app.runtime.v2.StoreKeyConfig";
166
+ value: Uint8Array;
167
+ }
168
+ /**
169
+ * StoreKeyConfig may be supplied to override the default module store key, which
170
+ * is the module name.
171
+ */
172
+ export interface StoreKeyConfigAmino {
173
+ /** name of the module to override the store key of */
174
+ module_name: string;
175
+ /** the kv store key to use instead of the module name. */
176
+ kv_store_key: string;
177
+ }
178
+ export interface StoreKeyConfigAminoMsg {
179
+ type: "cosmos-sdk/StoreKeyConfig";
180
+ value: StoreKeyConfigAmino;
181
+ }
182
+ function createBaseModule(): Module {
183
+ return {
184
+ appName: "",
185
+ preBlockers: [],
186
+ beginBlockers: [],
187
+ endBlockers: [],
188
+ txValidators: [],
189
+ initGenesis: [],
190
+ exportGenesis: [],
191
+ orderMigrations: [],
192
+ gasConfig: undefined,
193
+ overrideStoreKeys: [],
194
+ skipStoreKeys: []
195
+ };
196
+ }
197
+ export const Module = {
198
+ typeUrl: "/cosmos.app.runtime.v2.Module",
199
+ aminoType: "cosmos-sdk/Module",
200
+ is(o: any): o is Module {
201
+ return o && (o.$typeUrl === Module.typeUrl || typeof o.appName === "string" && Array.isArray(o.preBlockers) && (!o.preBlockers.length || typeof o.preBlockers[0] === "string") && Array.isArray(o.beginBlockers) && (!o.beginBlockers.length || typeof o.beginBlockers[0] === "string") && Array.isArray(o.endBlockers) && (!o.endBlockers.length || typeof o.endBlockers[0] === "string") && Array.isArray(o.txValidators) && (!o.txValidators.length || typeof o.txValidators[0] === "string") && Array.isArray(o.initGenesis) && (!o.initGenesis.length || typeof o.initGenesis[0] === "string") && Array.isArray(o.exportGenesis) && (!o.exportGenesis.length || typeof o.exportGenesis[0] === "string") && Array.isArray(o.orderMigrations) && (!o.orderMigrations.length || typeof o.orderMigrations[0] === "string") && Array.isArray(o.overrideStoreKeys) && (!o.overrideStoreKeys.length || StoreKeyConfig.is(o.overrideStoreKeys[0])) && Array.isArray(o.skipStoreKeys) && (!o.skipStoreKeys.length || typeof o.skipStoreKeys[0] === "string"));
202
+ },
203
+ isAmino(o: any): o is ModuleAmino {
204
+ return o && (o.$typeUrl === Module.typeUrl || typeof o.app_name === "string" && Array.isArray(o.pre_blockers) && (!o.pre_blockers.length || typeof o.pre_blockers[0] === "string") && Array.isArray(o.begin_blockers) && (!o.begin_blockers.length || typeof o.begin_blockers[0] === "string") && Array.isArray(o.end_blockers) && (!o.end_blockers.length || typeof o.end_blockers[0] === "string") && Array.isArray(o.tx_validators) && (!o.tx_validators.length || typeof o.tx_validators[0] === "string") && Array.isArray(o.init_genesis) && (!o.init_genesis.length || typeof o.init_genesis[0] === "string") && Array.isArray(o.export_genesis) && (!o.export_genesis.length || typeof o.export_genesis[0] === "string") && Array.isArray(o.order_migrations) && (!o.order_migrations.length || typeof o.order_migrations[0] === "string") && Array.isArray(o.override_store_keys) && (!o.override_store_keys.length || StoreKeyConfig.isAmino(o.override_store_keys[0])) && Array.isArray(o.skip_store_keys) && (!o.skip_store_keys.length || typeof o.skip_store_keys[0] === "string"));
205
+ },
206
+ encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
207
+ if (message.appName !== "") {
208
+ writer.uint32(10).string(message.appName);
209
+ }
210
+ for (const v of message.preBlockers) {
211
+ writer.uint32(18).string(v!);
212
+ }
213
+ for (const v of message.beginBlockers) {
214
+ writer.uint32(26).string(v!);
215
+ }
216
+ for (const v of message.endBlockers) {
217
+ writer.uint32(34).string(v!);
218
+ }
219
+ for (const v of message.txValidators) {
220
+ writer.uint32(42).string(v!);
221
+ }
222
+ for (const v of message.initGenesis) {
223
+ writer.uint32(50).string(v!);
224
+ }
225
+ for (const v of message.exportGenesis) {
226
+ writer.uint32(58).string(v!);
227
+ }
228
+ for (const v of message.orderMigrations) {
229
+ writer.uint32(66).string(v!);
230
+ }
231
+ if (message.gasConfig !== undefined) {
232
+ GasConfig.encode(message.gasConfig, writer.uint32(74).fork()).ldelim();
233
+ }
234
+ for (const v of message.overrideStoreKeys) {
235
+ StoreKeyConfig.encode(v!, writer.uint32(82).fork()).ldelim();
236
+ }
237
+ for (const v of message.skipStoreKeys) {
238
+ writer.uint32(90).string(v!);
239
+ }
240
+ return writer;
241
+ },
242
+ decode(input: BinaryReader | Uint8Array, length?: number): Module {
243
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
244
+ let end = length === undefined ? reader.len : reader.pos + length;
245
+ const message = createBaseModule();
246
+ while (reader.pos < end) {
247
+ const tag = reader.uint32();
248
+ switch (tag >>> 3) {
249
+ case 1:
250
+ message.appName = reader.string();
251
+ break;
252
+ case 2:
253
+ message.preBlockers.push(reader.string());
254
+ break;
255
+ case 3:
256
+ message.beginBlockers.push(reader.string());
257
+ break;
258
+ case 4:
259
+ message.endBlockers.push(reader.string());
260
+ break;
261
+ case 5:
262
+ message.txValidators.push(reader.string());
263
+ break;
264
+ case 6:
265
+ message.initGenesis.push(reader.string());
266
+ break;
267
+ case 7:
268
+ message.exportGenesis.push(reader.string());
269
+ break;
270
+ case 8:
271
+ message.orderMigrations.push(reader.string());
272
+ break;
273
+ case 9:
274
+ message.gasConfig = GasConfig.decode(reader, reader.uint32());
275
+ break;
276
+ case 10:
277
+ message.overrideStoreKeys.push(StoreKeyConfig.decode(reader, reader.uint32()));
278
+ break;
279
+ case 11:
280
+ message.skipStoreKeys.push(reader.string());
281
+ break;
282
+ default:
283
+ reader.skipType(tag & 7);
284
+ break;
285
+ }
286
+ }
287
+ return message;
288
+ },
289
+ fromPartial(object: DeepPartial<Module>): Module {
290
+ const message = createBaseModule();
291
+ message.appName = object.appName ?? "";
292
+ message.preBlockers = object.preBlockers?.map(e => e) || [];
293
+ message.beginBlockers = object.beginBlockers?.map(e => e) || [];
294
+ message.endBlockers = object.endBlockers?.map(e => e) || [];
295
+ message.txValidators = object.txValidators?.map(e => e) || [];
296
+ message.initGenesis = object.initGenesis?.map(e => e) || [];
297
+ message.exportGenesis = object.exportGenesis?.map(e => e) || [];
298
+ message.orderMigrations = object.orderMigrations?.map(e => e) || [];
299
+ message.gasConfig = object.gasConfig !== undefined && object.gasConfig !== null ? GasConfig.fromPartial(object.gasConfig) : undefined;
300
+ message.overrideStoreKeys = object.overrideStoreKeys?.map(e => StoreKeyConfig.fromPartial(e)) || [];
301
+ message.skipStoreKeys = object.skipStoreKeys?.map(e => e) || [];
302
+ return message;
303
+ },
304
+ fromAmino(object: ModuleAmino): Module {
305
+ const message = createBaseModule();
306
+ if (object.app_name !== undefined && object.app_name !== null) {
307
+ message.appName = object.app_name;
308
+ }
309
+ message.preBlockers = object.pre_blockers?.map(e => e) || [];
310
+ message.beginBlockers = object.begin_blockers?.map(e => e) || [];
311
+ message.endBlockers = object.end_blockers?.map(e => e) || [];
312
+ message.txValidators = object.tx_validators?.map(e => e) || [];
313
+ message.initGenesis = object.init_genesis?.map(e => e) || [];
314
+ message.exportGenesis = object.export_genesis?.map(e => e) || [];
315
+ message.orderMigrations = object.order_migrations?.map(e => e) || [];
316
+ if (object.gas_config !== undefined && object.gas_config !== null) {
317
+ message.gasConfig = GasConfig.fromAmino(object.gas_config);
318
+ }
319
+ message.overrideStoreKeys = object.override_store_keys?.map(e => StoreKeyConfig.fromAmino(e)) || [];
320
+ message.skipStoreKeys = object.skip_store_keys?.map(e => e) || [];
321
+ return message;
322
+ },
323
+ toAmino(message: Module): ModuleAmino {
324
+ const obj: any = {};
325
+ obj.app_name = message.appName === "" ? undefined : message.appName;
326
+ if (message.preBlockers) {
327
+ obj.pre_blockers = message.preBlockers.map(e => e);
328
+ } else {
329
+ obj.pre_blockers = message.preBlockers;
330
+ }
331
+ if (message.beginBlockers) {
332
+ obj.begin_blockers = message.beginBlockers.map(e => e);
333
+ } else {
334
+ obj.begin_blockers = message.beginBlockers;
335
+ }
336
+ if (message.endBlockers) {
337
+ obj.end_blockers = message.endBlockers.map(e => e);
338
+ } else {
339
+ obj.end_blockers = message.endBlockers;
340
+ }
341
+ if (message.txValidators) {
342
+ obj.tx_validators = message.txValidators.map(e => e);
343
+ } else {
344
+ obj.tx_validators = message.txValidators;
345
+ }
346
+ if (message.initGenesis) {
347
+ obj.init_genesis = message.initGenesis.map(e => e);
348
+ } else {
349
+ obj.init_genesis = message.initGenesis;
350
+ }
351
+ if (message.exportGenesis) {
352
+ obj.export_genesis = message.exportGenesis.map(e => e);
353
+ } else {
354
+ obj.export_genesis = message.exportGenesis;
355
+ }
356
+ if (message.orderMigrations) {
357
+ obj.order_migrations = message.orderMigrations.map(e => e);
358
+ } else {
359
+ obj.order_migrations = message.orderMigrations;
360
+ }
361
+ obj.gas_config = message.gasConfig ? GasConfig.toAmino(message.gasConfig) : undefined;
362
+ if (message.overrideStoreKeys) {
363
+ obj.override_store_keys = message.overrideStoreKeys.map(e => e ? StoreKeyConfig.toAmino(e) : undefined);
364
+ } else {
365
+ obj.override_store_keys = message.overrideStoreKeys;
366
+ }
367
+ if (message.skipStoreKeys) {
368
+ obj.skip_store_keys = message.skipStoreKeys.map(e => e);
369
+ } else {
370
+ obj.skip_store_keys = message.skipStoreKeys;
371
+ }
372
+ return obj;
373
+ },
374
+ fromAminoMsg(object: ModuleAminoMsg): Module {
375
+ return Module.fromAmino(object.value);
376
+ },
377
+ toAminoMsg(message: Module): ModuleAminoMsg {
378
+ return {
379
+ type: "cosmos-sdk/Module",
380
+ value: Module.toAmino(message)
381
+ };
382
+ },
383
+ fromProtoMsg(message: ModuleProtoMsg): Module {
384
+ return Module.decode(message.value);
385
+ },
386
+ toProto(message: Module): Uint8Array {
387
+ return Module.encode(message).finish();
388
+ },
389
+ toProtoMsg(message: Module): ModuleProtoMsg {
390
+ return {
391
+ typeUrl: "/cosmos.app.runtime.v2.Module",
392
+ value: Module.encode(message).finish()
393
+ };
394
+ }
395
+ };
396
+ GlobalDecoderRegistry.register(Module.typeUrl, Module);
397
+ GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
398
+ function createBaseGasConfig(): GasConfig {
399
+ return {
400
+ validateTxGasLimit: BigInt(0),
401
+ queryGasLimit: BigInt(0),
402
+ simulationGasLimit: BigInt(0)
403
+ };
404
+ }
405
+ export const GasConfig = {
406
+ typeUrl: "/cosmos.app.runtime.v2.GasConfig",
407
+ aminoType: "cosmos-sdk/GasConfig",
408
+ is(o: any): o is GasConfig {
409
+ return o && (o.$typeUrl === GasConfig.typeUrl || typeof o.validateTxGasLimit === "bigint" && typeof o.queryGasLimit === "bigint" && typeof o.simulationGasLimit === "bigint");
410
+ },
411
+ isAmino(o: any): o is GasConfigAmino {
412
+ return o && (o.$typeUrl === GasConfig.typeUrl || typeof o.validate_tx_gas_limit === "bigint" && typeof o.query_gas_limit === "bigint" && typeof o.simulation_gas_limit === "bigint");
413
+ },
414
+ encode(message: GasConfig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
415
+ if (message.validateTxGasLimit !== BigInt(0)) {
416
+ writer.uint32(8).uint64(message.validateTxGasLimit);
417
+ }
418
+ if (message.queryGasLimit !== BigInt(0)) {
419
+ writer.uint32(16).uint64(message.queryGasLimit);
420
+ }
421
+ if (message.simulationGasLimit !== BigInt(0)) {
422
+ writer.uint32(24).uint64(message.simulationGasLimit);
423
+ }
424
+ return writer;
425
+ },
426
+ decode(input: BinaryReader | Uint8Array, length?: number): GasConfig {
427
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
428
+ let end = length === undefined ? reader.len : reader.pos + length;
429
+ const message = createBaseGasConfig();
430
+ while (reader.pos < end) {
431
+ const tag = reader.uint32();
432
+ switch (tag >>> 3) {
433
+ case 1:
434
+ message.validateTxGasLimit = reader.uint64();
435
+ break;
436
+ case 2:
437
+ message.queryGasLimit = reader.uint64();
438
+ break;
439
+ case 3:
440
+ message.simulationGasLimit = reader.uint64();
441
+ break;
442
+ default:
443
+ reader.skipType(tag & 7);
444
+ break;
445
+ }
446
+ }
447
+ return message;
448
+ },
449
+ fromPartial(object: DeepPartial<GasConfig>): GasConfig {
450
+ const message = createBaseGasConfig();
451
+ message.validateTxGasLimit = object.validateTxGasLimit !== undefined && object.validateTxGasLimit !== null ? BigInt(object.validateTxGasLimit.toString()) : BigInt(0);
452
+ message.queryGasLimit = object.queryGasLimit !== undefined && object.queryGasLimit !== null ? BigInt(object.queryGasLimit.toString()) : BigInt(0);
453
+ message.simulationGasLimit = object.simulationGasLimit !== undefined && object.simulationGasLimit !== null ? BigInt(object.simulationGasLimit.toString()) : BigInt(0);
454
+ return message;
455
+ },
456
+ fromAmino(object: GasConfigAmino): GasConfig {
457
+ const message = createBaseGasConfig();
458
+ if (object.validate_tx_gas_limit !== undefined && object.validate_tx_gas_limit !== null) {
459
+ message.validateTxGasLimit = BigInt(object.validate_tx_gas_limit);
460
+ }
461
+ if (object.query_gas_limit !== undefined && object.query_gas_limit !== null) {
462
+ message.queryGasLimit = BigInt(object.query_gas_limit);
463
+ }
464
+ if (object.simulation_gas_limit !== undefined && object.simulation_gas_limit !== null) {
465
+ message.simulationGasLimit = BigInt(object.simulation_gas_limit);
466
+ }
467
+ return message;
468
+ },
469
+ toAmino(message: GasConfig): GasConfigAmino {
470
+ const obj: any = {};
471
+ obj.validate_tx_gas_limit = message.validateTxGasLimit !== BigInt(0) ? message.validateTxGasLimit?.toString() : undefined;
472
+ obj.query_gas_limit = message.queryGasLimit !== BigInt(0) ? message.queryGasLimit?.toString() : undefined;
473
+ obj.simulation_gas_limit = message.simulationGasLimit !== BigInt(0) ? message.simulationGasLimit?.toString() : undefined;
474
+ return obj;
475
+ },
476
+ fromAminoMsg(object: GasConfigAminoMsg): GasConfig {
477
+ return GasConfig.fromAmino(object.value);
478
+ },
479
+ toAminoMsg(message: GasConfig): GasConfigAminoMsg {
480
+ return {
481
+ type: "cosmos-sdk/GasConfig",
482
+ value: GasConfig.toAmino(message)
483
+ };
484
+ },
485
+ fromProtoMsg(message: GasConfigProtoMsg): GasConfig {
486
+ return GasConfig.decode(message.value);
487
+ },
488
+ toProto(message: GasConfig): Uint8Array {
489
+ return GasConfig.encode(message).finish();
490
+ },
491
+ toProtoMsg(message: GasConfig): GasConfigProtoMsg {
492
+ return {
493
+ typeUrl: "/cosmos.app.runtime.v2.GasConfig",
494
+ value: GasConfig.encode(message).finish()
495
+ };
496
+ }
497
+ };
498
+ GlobalDecoderRegistry.register(GasConfig.typeUrl, GasConfig);
499
+ GlobalDecoderRegistry.registerAminoProtoMapping(GasConfig.aminoType, GasConfig.typeUrl);
500
+ function createBaseStoreKeyConfig(): StoreKeyConfig {
501
+ return {
502
+ moduleName: "",
503
+ kvStoreKey: ""
504
+ };
505
+ }
506
+ export const StoreKeyConfig = {
507
+ typeUrl: "/cosmos.app.runtime.v2.StoreKeyConfig",
508
+ aminoType: "cosmos-sdk/StoreKeyConfig",
509
+ is(o: any): o is StoreKeyConfig {
510
+ return o && (o.$typeUrl === StoreKeyConfig.typeUrl || typeof o.moduleName === "string" && typeof o.kvStoreKey === "string");
511
+ },
512
+ isAmino(o: any): o is StoreKeyConfigAmino {
513
+ return o && (o.$typeUrl === StoreKeyConfig.typeUrl || typeof o.module_name === "string" && typeof o.kv_store_key === "string");
514
+ },
515
+ encode(message: StoreKeyConfig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
516
+ if (message.moduleName !== "") {
517
+ writer.uint32(10).string(message.moduleName);
518
+ }
519
+ if (message.kvStoreKey !== "") {
520
+ writer.uint32(18).string(message.kvStoreKey);
521
+ }
522
+ return writer;
523
+ },
524
+ decode(input: BinaryReader | Uint8Array, length?: number): StoreKeyConfig {
525
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
526
+ let end = length === undefined ? reader.len : reader.pos + length;
527
+ const message = createBaseStoreKeyConfig();
528
+ while (reader.pos < end) {
529
+ const tag = reader.uint32();
530
+ switch (tag >>> 3) {
531
+ case 1:
532
+ message.moduleName = reader.string();
533
+ break;
534
+ case 2:
535
+ message.kvStoreKey = reader.string();
536
+ break;
537
+ default:
538
+ reader.skipType(tag & 7);
539
+ break;
540
+ }
541
+ }
542
+ return message;
543
+ },
544
+ fromPartial(object: DeepPartial<StoreKeyConfig>): StoreKeyConfig {
545
+ const message = createBaseStoreKeyConfig();
546
+ message.moduleName = object.moduleName ?? "";
547
+ message.kvStoreKey = object.kvStoreKey ?? "";
548
+ return message;
549
+ },
550
+ fromAmino(object: StoreKeyConfigAmino): StoreKeyConfig {
551
+ const message = createBaseStoreKeyConfig();
552
+ if (object.module_name !== undefined && object.module_name !== null) {
553
+ message.moduleName = object.module_name;
554
+ }
555
+ if (object.kv_store_key !== undefined && object.kv_store_key !== null) {
556
+ message.kvStoreKey = object.kv_store_key;
557
+ }
558
+ return message;
559
+ },
560
+ toAmino(message: StoreKeyConfig): StoreKeyConfigAmino {
561
+ const obj: any = {};
562
+ obj.module_name = message.moduleName === "" ? undefined : message.moduleName;
563
+ obj.kv_store_key = message.kvStoreKey === "" ? undefined : message.kvStoreKey;
564
+ return obj;
565
+ },
566
+ fromAminoMsg(object: StoreKeyConfigAminoMsg): StoreKeyConfig {
567
+ return StoreKeyConfig.fromAmino(object.value);
568
+ },
569
+ toAminoMsg(message: StoreKeyConfig): StoreKeyConfigAminoMsg {
570
+ return {
571
+ type: "cosmos-sdk/StoreKeyConfig",
572
+ value: StoreKeyConfig.toAmino(message)
573
+ };
574
+ },
575
+ fromProtoMsg(message: StoreKeyConfigProtoMsg): StoreKeyConfig {
576
+ return StoreKeyConfig.decode(message.value);
577
+ },
578
+ toProto(message: StoreKeyConfig): Uint8Array {
579
+ return StoreKeyConfig.encode(message).finish();
580
+ },
581
+ toProtoMsg(message: StoreKeyConfig): StoreKeyConfigProtoMsg {
582
+ return {
583
+ typeUrl: "/cosmos.app.runtime.v2.StoreKeyConfig",
584
+ value: StoreKeyConfig.encode(message).finish()
585
+ };
586
+ }
587
+ };
588
+ GlobalDecoderRegistry.register(StoreKeyConfig.typeUrl, StoreKeyConfig);
589
+ GlobalDecoderRegistry.registerAminoProtoMapping(StoreKeyConfig.aminoType, StoreKeyConfig.typeUrl);