@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,685 @@
1
+ import { Order } from "../../../../core/channel/v1/channel";
2
+ import { InterchainAccountPacketData, InterchainAccountPacketDataAmino } from "../../v1/packet";
3
+ import { Params, ParamsAmino } from "./controller";
4
+ import { isSet, DeepPartial } from "../../../../../helpers";
5
+ import { BinaryReader, BinaryWriter } from "../../../../../binary";
6
+ import { GlobalDecoderRegistry } from "../../../../../registry";
7
+ /** MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount */
8
+ export interface MsgRegisterInterchainAccount {
9
+ owner: string;
10
+ connectionId: string;
11
+ version: string;
12
+ ordering: Order;
13
+ }
14
+ export interface MsgRegisterInterchainAccountProtoMsg {
15
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount";
16
+ value: Uint8Array;
17
+ }
18
+ /** MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount */
19
+ export interface MsgRegisterInterchainAccountAmino {
20
+ owner: string;
21
+ connection_id: string;
22
+ version: string;
23
+ ordering: Order;
24
+ }
25
+ export interface MsgRegisterInterchainAccountAminoMsg {
26
+ type: "cosmos-sdk/MsgRegisterInterchainAccount";
27
+ value: MsgRegisterInterchainAccountAmino;
28
+ }
29
+ /** MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount */
30
+ export interface MsgRegisterInterchainAccountResponse {
31
+ channelId: string;
32
+ portId: string;
33
+ }
34
+ export interface MsgRegisterInterchainAccountResponseProtoMsg {
35
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse";
36
+ value: Uint8Array;
37
+ }
38
+ /** MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount */
39
+ export interface MsgRegisterInterchainAccountResponseAmino {
40
+ channel_id: string;
41
+ port_id: string;
42
+ }
43
+ export interface MsgRegisterInterchainAccountResponseAminoMsg {
44
+ type: "cosmos-sdk/MsgRegisterInterchainAccountResponse";
45
+ value: MsgRegisterInterchainAccountResponseAmino;
46
+ }
47
+ /** MsgSendTx defines the payload for Msg/SendTx */
48
+ export interface MsgSendTx {
49
+ owner: string;
50
+ connectionId: string;
51
+ packetData: InterchainAccountPacketData;
52
+ /**
53
+ * Relative timeout timestamp provided will be added to the current block time during transaction execution.
54
+ * The timeout timestamp must be non-zero.
55
+ */
56
+ relativeTimeout: bigint;
57
+ }
58
+ export interface MsgSendTxProtoMsg {
59
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx";
60
+ value: Uint8Array;
61
+ }
62
+ /** MsgSendTx defines the payload for Msg/SendTx */
63
+ export interface MsgSendTxAmino {
64
+ owner: string;
65
+ connection_id: string;
66
+ packet_data: InterchainAccountPacketDataAmino;
67
+ /**
68
+ * Relative timeout timestamp provided will be added to the current block time during transaction execution.
69
+ * The timeout timestamp must be non-zero.
70
+ */
71
+ relative_timeout: string;
72
+ }
73
+ export interface MsgSendTxAminoMsg {
74
+ type: "cosmos-sdk/MsgSendTx";
75
+ value: MsgSendTxAmino;
76
+ }
77
+ /** MsgSendTxResponse defines the response for MsgSendTx */
78
+ export interface MsgSendTxResponse {
79
+ sequence: bigint;
80
+ }
81
+ export interface MsgSendTxResponseProtoMsg {
82
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse";
83
+ value: Uint8Array;
84
+ }
85
+ /** MsgSendTxResponse defines the response for MsgSendTx */
86
+ export interface MsgSendTxResponseAmino {
87
+ sequence: string;
88
+ }
89
+ export interface MsgSendTxResponseAminoMsg {
90
+ type: "cosmos-sdk/MsgSendTxResponse";
91
+ value: MsgSendTxResponseAmino;
92
+ }
93
+ /** MsgUpdateParams defines the payload for Msg/UpdateParams */
94
+ export interface MsgUpdateParams {
95
+ /** signer address */
96
+ signer: string;
97
+ /**
98
+ * params defines the 27-interchain-accounts/controller parameters to update.
99
+ *
100
+ * NOTE: All parameters must be supplied.
101
+ */
102
+ params: Params;
103
+ }
104
+ export interface MsgUpdateParamsProtoMsg {
105
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams";
106
+ value: Uint8Array;
107
+ }
108
+ /** MsgUpdateParams defines the payload for Msg/UpdateParams */
109
+ export interface MsgUpdateParamsAmino {
110
+ /** signer address */
111
+ signer: string;
112
+ /**
113
+ * params defines the 27-interchain-accounts/controller parameters to update.
114
+ *
115
+ * NOTE: All parameters must be supplied.
116
+ */
117
+ params: ParamsAmino;
118
+ }
119
+ export interface MsgUpdateParamsAminoMsg {
120
+ type: "cosmos-sdk/MsgUpdateParams";
121
+ value: MsgUpdateParamsAmino;
122
+ }
123
+ /** MsgUpdateParamsResponse defines the response for Msg/UpdateParams */
124
+ export interface MsgUpdateParamsResponse {}
125
+ export interface MsgUpdateParamsResponseProtoMsg {
126
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse";
127
+ value: Uint8Array;
128
+ }
129
+ /** MsgUpdateParamsResponse defines the response for Msg/UpdateParams */
130
+ export interface MsgUpdateParamsResponseAmino {}
131
+ export interface MsgUpdateParamsResponseAminoMsg {
132
+ type: "cosmos-sdk/MsgUpdateParamsResponse";
133
+ value: MsgUpdateParamsResponseAmino;
134
+ }
135
+ function createBaseMsgRegisterInterchainAccount(): MsgRegisterInterchainAccount {
136
+ return {
137
+ owner: "",
138
+ connectionId: "",
139
+ version: "",
140
+ ordering: 0
141
+ };
142
+ }
143
+ export const MsgRegisterInterchainAccount = {
144
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount",
145
+ aminoType: "cosmos-sdk/MsgRegisterInterchainAccount",
146
+ is(o: any): o is MsgRegisterInterchainAccount {
147
+ return o && (o.$typeUrl === MsgRegisterInterchainAccount.typeUrl || typeof o.owner === "string" && typeof o.connectionId === "string" && typeof o.version === "string" && isSet(o.ordering));
148
+ },
149
+ isAmino(o: any): o is MsgRegisterInterchainAccountAmino {
150
+ return o && (o.$typeUrl === MsgRegisterInterchainAccount.typeUrl || typeof o.owner === "string" && typeof o.connection_id === "string" && typeof o.version === "string" && isSet(o.ordering));
151
+ },
152
+ encode(message: MsgRegisterInterchainAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
153
+ if (message.owner !== "") {
154
+ writer.uint32(10).string(message.owner);
155
+ }
156
+ if (message.connectionId !== "") {
157
+ writer.uint32(18).string(message.connectionId);
158
+ }
159
+ if (message.version !== "") {
160
+ writer.uint32(26).string(message.version);
161
+ }
162
+ if (message.ordering !== 0) {
163
+ writer.uint32(32).int32(message.ordering);
164
+ }
165
+ return writer;
166
+ },
167
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterInterchainAccount {
168
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
169
+ let end = length === undefined ? reader.len : reader.pos + length;
170
+ const message = createBaseMsgRegisterInterchainAccount();
171
+ while (reader.pos < end) {
172
+ const tag = reader.uint32();
173
+ switch (tag >>> 3) {
174
+ case 1:
175
+ message.owner = reader.string();
176
+ break;
177
+ case 2:
178
+ message.connectionId = reader.string();
179
+ break;
180
+ case 3:
181
+ message.version = reader.string();
182
+ break;
183
+ case 4:
184
+ message.ordering = reader.int32() as any;
185
+ break;
186
+ default:
187
+ reader.skipType(tag & 7);
188
+ break;
189
+ }
190
+ }
191
+ return message;
192
+ },
193
+ fromPartial(object: DeepPartial<MsgRegisterInterchainAccount>): MsgRegisterInterchainAccount {
194
+ const message = createBaseMsgRegisterInterchainAccount();
195
+ message.owner = object.owner ?? "";
196
+ message.connectionId = object.connectionId ?? "";
197
+ message.version = object.version ?? "";
198
+ message.ordering = object.ordering ?? 0;
199
+ return message;
200
+ },
201
+ fromAmino(object: MsgRegisterInterchainAccountAmino): MsgRegisterInterchainAccount {
202
+ const message = createBaseMsgRegisterInterchainAccount();
203
+ if (object.owner !== undefined && object.owner !== null) {
204
+ message.owner = object.owner;
205
+ }
206
+ if (object.connection_id !== undefined && object.connection_id !== null) {
207
+ message.connectionId = object.connection_id;
208
+ }
209
+ if (object.version !== undefined && object.version !== null) {
210
+ message.version = object.version;
211
+ }
212
+ if (object.ordering !== undefined && object.ordering !== null) {
213
+ message.ordering = object.ordering;
214
+ }
215
+ return message;
216
+ },
217
+ toAmino(message: MsgRegisterInterchainAccount): MsgRegisterInterchainAccountAmino {
218
+ const obj: any = {};
219
+ obj.owner = message.owner === "" ? undefined : message.owner;
220
+ obj.connection_id = message.connectionId === "" ? undefined : message.connectionId;
221
+ obj.version = message.version === "" ? undefined : message.version;
222
+ obj.ordering = message.ordering === 0 ? undefined : message.ordering;
223
+ return obj;
224
+ },
225
+ fromAminoMsg(object: MsgRegisterInterchainAccountAminoMsg): MsgRegisterInterchainAccount {
226
+ return MsgRegisterInterchainAccount.fromAmino(object.value);
227
+ },
228
+ toAminoMsg(message: MsgRegisterInterchainAccount): MsgRegisterInterchainAccountAminoMsg {
229
+ return {
230
+ type: "cosmos-sdk/MsgRegisterInterchainAccount",
231
+ value: MsgRegisterInterchainAccount.toAmino(message)
232
+ };
233
+ },
234
+ fromProtoMsg(message: MsgRegisterInterchainAccountProtoMsg): MsgRegisterInterchainAccount {
235
+ return MsgRegisterInterchainAccount.decode(message.value);
236
+ },
237
+ toProto(message: MsgRegisterInterchainAccount): Uint8Array {
238
+ return MsgRegisterInterchainAccount.encode(message).finish();
239
+ },
240
+ toProtoMsg(message: MsgRegisterInterchainAccount): MsgRegisterInterchainAccountProtoMsg {
241
+ return {
242
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount",
243
+ value: MsgRegisterInterchainAccount.encode(message).finish()
244
+ };
245
+ }
246
+ };
247
+ GlobalDecoderRegistry.register(MsgRegisterInterchainAccount.typeUrl, MsgRegisterInterchainAccount);
248
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgRegisterInterchainAccount.aminoType, MsgRegisterInterchainAccount.typeUrl);
249
+ function createBaseMsgRegisterInterchainAccountResponse(): MsgRegisterInterchainAccountResponse {
250
+ return {
251
+ channelId: "",
252
+ portId: ""
253
+ };
254
+ }
255
+ export const MsgRegisterInterchainAccountResponse = {
256
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse",
257
+ aminoType: "cosmos-sdk/MsgRegisterInterchainAccountResponse",
258
+ is(o: any): o is MsgRegisterInterchainAccountResponse {
259
+ return o && (o.$typeUrl === MsgRegisterInterchainAccountResponse.typeUrl || typeof o.channelId === "string" && typeof o.portId === "string");
260
+ },
261
+ isAmino(o: any): o is MsgRegisterInterchainAccountResponseAmino {
262
+ return o && (o.$typeUrl === MsgRegisterInterchainAccountResponse.typeUrl || typeof o.channel_id === "string" && typeof o.port_id === "string");
263
+ },
264
+ encode(message: MsgRegisterInterchainAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
265
+ if (message.channelId !== "") {
266
+ writer.uint32(10).string(message.channelId);
267
+ }
268
+ if (message.portId !== "") {
269
+ writer.uint32(18).string(message.portId);
270
+ }
271
+ return writer;
272
+ },
273
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterInterchainAccountResponse {
274
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
275
+ let end = length === undefined ? reader.len : reader.pos + length;
276
+ const message = createBaseMsgRegisterInterchainAccountResponse();
277
+ while (reader.pos < end) {
278
+ const tag = reader.uint32();
279
+ switch (tag >>> 3) {
280
+ case 1:
281
+ message.channelId = reader.string();
282
+ break;
283
+ case 2:
284
+ message.portId = reader.string();
285
+ break;
286
+ default:
287
+ reader.skipType(tag & 7);
288
+ break;
289
+ }
290
+ }
291
+ return message;
292
+ },
293
+ fromPartial(object: DeepPartial<MsgRegisterInterchainAccountResponse>): MsgRegisterInterchainAccountResponse {
294
+ const message = createBaseMsgRegisterInterchainAccountResponse();
295
+ message.channelId = object.channelId ?? "";
296
+ message.portId = object.portId ?? "";
297
+ return message;
298
+ },
299
+ fromAmino(object: MsgRegisterInterchainAccountResponseAmino): MsgRegisterInterchainAccountResponse {
300
+ const message = createBaseMsgRegisterInterchainAccountResponse();
301
+ if (object.channel_id !== undefined && object.channel_id !== null) {
302
+ message.channelId = object.channel_id;
303
+ }
304
+ if (object.port_id !== undefined && object.port_id !== null) {
305
+ message.portId = object.port_id;
306
+ }
307
+ return message;
308
+ },
309
+ toAmino(message: MsgRegisterInterchainAccountResponse): MsgRegisterInterchainAccountResponseAmino {
310
+ const obj: any = {};
311
+ obj.channel_id = message.channelId === "" ? undefined : message.channelId;
312
+ obj.port_id = message.portId === "" ? undefined : message.portId;
313
+ return obj;
314
+ },
315
+ fromAminoMsg(object: MsgRegisterInterchainAccountResponseAminoMsg): MsgRegisterInterchainAccountResponse {
316
+ return MsgRegisterInterchainAccountResponse.fromAmino(object.value);
317
+ },
318
+ toAminoMsg(message: MsgRegisterInterchainAccountResponse): MsgRegisterInterchainAccountResponseAminoMsg {
319
+ return {
320
+ type: "cosmos-sdk/MsgRegisterInterchainAccountResponse",
321
+ value: MsgRegisterInterchainAccountResponse.toAmino(message)
322
+ };
323
+ },
324
+ fromProtoMsg(message: MsgRegisterInterchainAccountResponseProtoMsg): MsgRegisterInterchainAccountResponse {
325
+ return MsgRegisterInterchainAccountResponse.decode(message.value);
326
+ },
327
+ toProto(message: MsgRegisterInterchainAccountResponse): Uint8Array {
328
+ return MsgRegisterInterchainAccountResponse.encode(message).finish();
329
+ },
330
+ toProtoMsg(message: MsgRegisterInterchainAccountResponse): MsgRegisterInterchainAccountResponseProtoMsg {
331
+ return {
332
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse",
333
+ value: MsgRegisterInterchainAccountResponse.encode(message).finish()
334
+ };
335
+ }
336
+ };
337
+ GlobalDecoderRegistry.register(MsgRegisterInterchainAccountResponse.typeUrl, MsgRegisterInterchainAccountResponse);
338
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgRegisterInterchainAccountResponse.aminoType, MsgRegisterInterchainAccountResponse.typeUrl);
339
+ function createBaseMsgSendTx(): MsgSendTx {
340
+ return {
341
+ owner: "",
342
+ connectionId: "",
343
+ packetData: InterchainAccountPacketData.fromPartial({}),
344
+ relativeTimeout: BigInt(0)
345
+ };
346
+ }
347
+ export const MsgSendTx = {
348
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx",
349
+ aminoType: "cosmos-sdk/MsgSendTx",
350
+ is(o: any): o is MsgSendTx {
351
+ return o && (o.$typeUrl === MsgSendTx.typeUrl || typeof o.owner === "string" && typeof o.connectionId === "string" && InterchainAccountPacketData.is(o.packetData) && typeof o.relativeTimeout === "bigint");
352
+ },
353
+ isAmino(o: any): o is MsgSendTxAmino {
354
+ return o && (o.$typeUrl === MsgSendTx.typeUrl || typeof o.owner === "string" && typeof o.connection_id === "string" && InterchainAccountPacketData.isAmino(o.packet_data) && typeof o.relative_timeout === "bigint");
355
+ },
356
+ encode(message: MsgSendTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
357
+ if (message.owner !== "") {
358
+ writer.uint32(10).string(message.owner);
359
+ }
360
+ if (message.connectionId !== "") {
361
+ writer.uint32(18).string(message.connectionId);
362
+ }
363
+ if (message.packetData !== undefined) {
364
+ InterchainAccountPacketData.encode(message.packetData, writer.uint32(26).fork()).ldelim();
365
+ }
366
+ if (message.relativeTimeout !== BigInt(0)) {
367
+ writer.uint32(32).uint64(message.relativeTimeout);
368
+ }
369
+ return writer;
370
+ },
371
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSendTx {
372
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
373
+ let end = length === undefined ? reader.len : reader.pos + length;
374
+ const message = createBaseMsgSendTx();
375
+ while (reader.pos < end) {
376
+ const tag = reader.uint32();
377
+ switch (tag >>> 3) {
378
+ case 1:
379
+ message.owner = reader.string();
380
+ break;
381
+ case 2:
382
+ message.connectionId = reader.string();
383
+ break;
384
+ case 3:
385
+ message.packetData = InterchainAccountPacketData.decode(reader, reader.uint32());
386
+ break;
387
+ case 4:
388
+ message.relativeTimeout = reader.uint64();
389
+ break;
390
+ default:
391
+ reader.skipType(tag & 7);
392
+ break;
393
+ }
394
+ }
395
+ return message;
396
+ },
397
+ fromPartial(object: DeepPartial<MsgSendTx>): MsgSendTx {
398
+ const message = createBaseMsgSendTx();
399
+ message.owner = object.owner ?? "";
400
+ message.connectionId = object.connectionId ?? "";
401
+ message.packetData = object.packetData !== undefined && object.packetData !== null ? InterchainAccountPacketData.fromPartial(object.packetData) : undefined;
402
+ message.relativeTimeout = object.relativeTimeout !== undefined && object.relativeTimeout !== null ? BigInt(object.relativeTimeout.toString()) : BigInt(0);
403
+ return message;
404
+ },
405
+ fromAmino(object: MsgSendTxAmino): MsgSendTx {
406
+ const message = createBaseMsgSendTx();
407
+ if (object.owner !== undefined && object.owner !== null) {
408
+ message.owner = object.owner;
409
+ }
410
+ if (object.connection_id !== undefined && object.connection_id !== null) {
411
+ message.connectionId = object.connection_id;
412
+ }
413
+ if (object.packet_data !== undefined && object.packet_data !== null) {
414
+ message.packetData = InterchainAccountPacketData.fromAmino(object.packet_data);
415
+ }
416
+ if (object.relative_timeout !== undefined && object.relative_timeout !== null) {
417
+ message.relativeTimeout = BigInt(object.relative_timeout);
418
+ }
419
+ return message;
420
+ },
421
+ toAmino(message: MsgSendTx): MsgSendTxAmino {
422
+ const obj: any = {};
423
+ obj.owner = message.owner === "" ? undefined : message.owner;
424
+ obj.connection_id = message.connectionId === "" ? undefined : message.connectionId;
425
+ obj.packet_data = message.packetData ? InterchainAccountPacketData.toAmino(message.packetData) : undefined;
426
+ obj.relative_timeout = message.relativeTimeout !== BigInt(0) ? message.relativeTimeout?.toString() : undefined;
427
+ return obj;
428
+ },
429
+ fromAminoMsg(object: MsgSendTxAminoMsg): MsgSendTx {
430
+ return MsgSendTx.fromAmino(object.value);
431
+ },
432
+ toAminoMsg(message: MsgSendTx): MsgSendTxAminoMsg {
433
+ return {
434
+ type: "cosmos-sdk/MsgSendTx",
435
+ value: MsgSendTx.toAmino(message)
436
+ };
437
+ },
438
+ fromProtoMsg(message: MsgSendTxProtoMsg): MsgSendTx {
439
+ return MsgSendTx.decode(message.value);
440
+ },
441
+ toProto(message: MsgSendTx): Uint8Array {
442
+ return MsgSendTx.encode(message).finish();
443
+ },
444
+ toProtoMsg(message: MsgSendTx): MsgSendTxProtoMsg {
445
+ return {
446
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx",
447
+ value: MsgSendTx.encode(message).finish()
448
+ };
449
+ }
450
+ };
451
+ GlobalDecoderRegistry.register(MsgSendTx.typeUrl, MsgSendTx);
452
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgSendTx.aminoType, MsgSendTx.typeUrl);
453
+ function createBaseMsgSendTxResponse(): MsgSendTxResponse {
454
+ return {
455
+ sequence: BigInt(0)
456
+ };
457
+ }
458
+ export const MsgSendTxResponse = {
459
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse",
460
+ aminoType: "cosmos-sdk/MsgSendTxResponse",
461
+ is(o: any): o is MsgSendTxResponse {
462
+ return o && (o.$typeUrl === MsgSendTxResponse.typeUrl || typeof o.sequence === "bigint");
463
+ },
464
+ isAmino(o: any): o is MsgSendTxResponseAmino {
465
+ return o && (o.$typeUrl === MsgSendTxResponse.typeUrl || typeof o.sequence === "bigint");
466
+ },
467
+ encode(message: MsgSendTxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
468
+ if (message.sequence !== BigInt(0)) {
469
+ writer.uint32(8).uint64(message.sequence);
470
+ }
471
+ return writer;
472
+ },
473
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSendTxResponse {
474
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
475
+ let end = length === undefined ? reader.len : reader.pos + length;
476
+ const message = createBaseMsgSendTxResponse();
477
+ while (reader.pos < end) {
478
+ const tag = reader.uint32();
479
+ switch (tag >>> 3) {
480
+ case 1:
481
+ message.sequence = reader.uint64();
482
+ break;
483
+ default:
484
+ reader.skipType(tag & 7);
485
+ break;
486
+ }
487
+ }
488
+ return message;
489
+ },
490
+ fromPartial(object: DeepPartial<MsgSendTxResponse>): MsgSendTxResponse {
491
+ const message = createBaseMsgSendTxResponse();
492
+ message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0);
493
+ return message;
494
+ },
495
+ fromAmino(object: MsgSendTxResponseAmino): MsgSendTxResponse {
496
+ const message = createBaseMsgSendTxResponse();
497
+ if (object.sequence !== undefined && object.sequence !== null) {
498
+ message.sequence = BigInt(object.sequence);
499
+ }
500
+ return message;
501
+ },
502
+ toAmino(message: MsgSendTxResponse): MsgSendTxResponseAmino {
503
+ const obj: any = {};
504
+ obj.sequence = message.sequence !== BigInt(0) ? message.sequence?.toString() : undefined;
505
+ return obj;
506
+ },
507
+ fromAminoMsg(object: MsgSendTxResponseAminoMsg): MsgSendTxResponse {
508
+ return MsgSendTxResponse.fromAmino(object.value);
509
+ },
510
+ toAminoMsg(message: MsgSendTxResponse): MsgSendTxResponseAminoMsg {
511
+ return {
512
+ type: "cosmos-sdk/MsgSendTxResponse",
513
+ value: MsgSendTxResponse.toAmino(message)
514
+ };
515
+ },
516
+ fromProtoMsg(message: MsgSendTxResponseProtoMsg): MsgSendTxResponse {
517
+ return MsgSendTxResponse.decode(message.value);
518
+ },
519
+ toProto(message: MsgSendTxResponse): Uint8Array {
520
+ return MsgSendTxResponse.encode(message).finish();
521
+ },
522
+ toProtoMsg(message: MsgSendTxResponse): MsgSendTxResponseProtoMsg {
523
+ return {
524
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse",
525
+ value: MsgSendTxResponse.encode(message).finish()
526
+ };
527
+ }
528
+ };
529
+ GlobalDecoderRegistry.register(MsgSendTxResponse.typeUrl, MsgSendTxResponse);
530
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgSendTxResponse.aminoType, MsgSendTxResponse.typeUrl);
531
+ function createBaseMsgUpdateParams(): MsgUpdateParams {
532
+ return {
533
+ signer: "",
534
+ params: Params.fromPartial({})
535
+ };
536
+ }
537
+ export const MsgUpdateParams = {
538
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams",
539
+ aminoType: "cosmos-sdk/MsgUpdateParams",
540
+ is(o: any): o is MsgUpdateParams {
541
+ return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.signer === "string" && Params.is(o.params));
542
+ },
543
+ isAmino(o: any): o is MsgUpdateParamsAmino {
544
+ return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.signer === "string" && Params.isAmino(o.params));
545
+ },
546
+ encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
547
+ if (message.signer !== "") {
548
+ writer.uint32(10).string(message.signer);
549
+ }
550
+ if (message.params !== undefined) {
551
+ Params.encode(message.params, writer.uint32(18).fork()).ldelim();
552
+ }
553
+ return writer;
554
+ },
555
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
556
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
557
+ let end = length === undefined ? reader.len : reader.pos + length;
558
+ const message = createBaseMsgUpdateParams();
559
+ while (reader.pos < end) {
560
+ const tag = reader.uint32();
561
+ switch (tag >>> 3) {
562
+ case 1:
563
+ message.signer = reader.string();
564
+ break;
565
+ case 2:
566
+ message.params = Params.decode(reader, reader.uint32());
567
+ break;
568
+ default:
569
+ reader.skipType(tag & 7);
570
+ break;
571
+ }
572
+ }
573
+ return message;
574
+ },
575
+ fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
576
+ const message = createBaseMsgUpdateParams();
577
+ message.signer = object.signer ?? "";
578
+ message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
579
+ return message;
580
+ },
581
+ fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
582
+ const message = createBaseMsgUpdateParams();
583
+ if (object.signer !== undefined && object.signer !== null) {
584
+ message.signer = object.signer;
585
+ }
586
+ if (object.params !== undefined && object.params !== null) {
587
+ message.params = Params.fromAmino(object.params);
588
+ }
589
+ return message;
590
+ },
591
+ toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
592
+ const obj: any = {};
593
+ obj.signer = message.signer === "" ? undefined : message.signer;
594
+ obj.params = message.params ? Params.toAmino(message.params) : undefined;
595
+ return obj;
596
+ },
597
+ fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
598
+ return MsgUpdateParams.fromAmino(object.value);
599
+ },
600
+ toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
601
+ return {
602
+ type: "cosmos-sdk/MsgUpdateParams",
603
+ value: MsgUpdateParams.toAmino(message)
604
+ };
605
+ },
606
+ fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
607
+ return MsgUpdateParams.decode(message.value);
608
+ },
609
+ toProto(message: MsgUpdateParams): Uint8Array {
610
+ return MsgUpdateParams.encode(message).finish();
611
+ },
612
+ toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
613
+ return {
614
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams",
615
+ value: MsgUpdateParams.encode(message).finish()
616
+ };
617
+ }
618
+ };
619
+ GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
620
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
621
+ function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
622
+ return {};
623
+ }
624
+ export const MsgUpdateParamsResponse = {
625
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse",
626
+ aminoType: "cosmos-sdk/MsgUpdateParamsResponse",
627
+ is(o: any): o is MsgUpdateParamsResponse {
628
+ return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
629
+ },
630
+ isAmino(o: any): o is MsgUpdateParamsResponseAmino {
631
+ return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
632
+ },
633
+ encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
634
+ return writer;
635
+ },
636
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
637
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
638
+ let end = length === undefined ? reader.len : reader.pos + length;
639
+ const message = createBaseMsgUpdateParamsResponse();
640
+ while (reader.pos < end) {
641
+ const tag = reader.uint32();
642
+ switch (tag >>> 3) {
643
+ default:
644
+ reader.skipType(tag & 7);
645
+ break;
646
+ }
647
+ }
648
+ return message;
649
+ },
650
+ fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
651
+ const message = createBaseMsgUpdateParamsResponse();
652
+ return message;
653
+ },
654
+ fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
655
+ const message = createBaseMsgUpdateParamsResponse();
656
+ return message;
657
+ },
658
+ toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
659
+ const obj: any = {};
660
+ return obj;
661
+ },
662
+ fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
663
+ return MsgUpdateParamsResponse.fromAmino(object.value);
664
+ },
665
+ toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
666
+ return {
667
+ type: "cosmos-sdk/MsgUpdateParamsResponse",
668
+ value: MsgUpdateParamsResponse.toAmino(message)
669
+ };
670
+ },
671
+ fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
672
+ return MsgUpdateParamsResponse.decode(message.value);
673
+ },
674
+ toProto(message: MsgUpdateParamsResponse): Uint8Array {
675
+ return MsgUpdateParamsResponse.encode(message).finish();
676
+ },
677
+ toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
678
+ return {
679
+ typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse",
680
+ value: MsgUpdateParamsResponse.encode(message).finish()
681
+ };
682
+ }
683
+ };
684
+ GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
685
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);