@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,861 @@
1
+ import { Coin, CoinAmino } from "../../base/v1beta1/coin";
2
+ import { Input, InputAmino, Output, OutputAmino, Params, ParamsAmino, SendEnabled, SendEnabledAmino } from "./bank";
3
+ import { BinaryReader, BinaryWriter } from "../../../binary";
4
+ import { DeepPartial } from "../../../helpers";
5
+ import { GlobalDecoderRegistry } from "../../../registry";
6
+ /** MsgSend represents a message to send coins from one account to another. */
7
+ export interface MsgSend {
8
+ fromAddress: string;
9
+ toAddress: string;
10
+ amount: Coin[];
11
+ }
12
+ export interface MsgSendProtoMsg {
13
+ typeUrl: "/cosmos.bank.v1beta1.MsgSend";
14
+ value: Uint8Array;
15
+ }
16
+ /** MsgSend represents a message to send coins from one account to another. */
17
+ export interface MsgSendAmino {
18
+ from_address: string;
19
+ to_address: string;
20
+ amount: CoinAmino[];
21
+ }
22
+ export interface MsgSendAminoMsg {
23
+ type: "cosmos-sdk/MsgSend";
24
+ value: MsgSendAmino;
25
+ }
26
+ /** MsgSendResponse defines the Msg/Send response type. */
27
+ export interface MsgSendResponse {}
28
+ export interface MsgSendResponseProtoMsg {
29
+ typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse";
30
+ value: Uint8Array;
31
+ }
32
+ /** MsgSendResponse defines the Msg/Send response type. */
33
+ export interface MsgSendResponseAmino {}
34
+ export interface MsgSendResponseAminoMsg {
35
+ type: "cosmos-sdk/MsgSendResponse";
36
+ value: MsgSendResponseAmino;
37
+ }
38
+ /** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */
39
+ export interface MsgMultiSend {
40
+ /**
41
+ * Inputs, despite being `repeated`, only allows one sender input. This is
42
+ * checked in MsgMultiSend's ValidateBasic.
43
+ */
44
+ inputs: Input[];
45
+ outputs: Output[];
46
+ }
47
+ export interface MsgMultiSendProtoMsg {
48
+ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend";
49
+ value: Uint8Array;
50
+ }
51
+ /** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */
52
+ export interface MsgMultiSendAmino {
53
+ /**
54
+ * Inputs, despite being `repeated`, only allows one sender input. This is
55
+ * checked in MsgMultiSend's ValidateBasic.
56
+ */
57
+ inputs: InputAmino[];
58
+ outputs: OutputAmino[];
59
+ }
60
+ export interface MsgMultiSendAminoMsg {
61
+ type: "cosmos-sdk/MsgMultiSend";
62
+ value: MsgMultiSendAmino;
63
+ }
64
+ /** MsgMultiSendResponse defines the Msg/MultiSend response type. */
65
+ export interface MsgMultiSendResponse {}
66
+ export interface MsgMultiSendResponseProtoMsg {
67
+ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse";
68
+ value: Uint8Array;
69
+ }
70
+ /** MsgMultiSendResponse defines the Msg/MultiSend response type. */
71
+ export interface MsgMultiSendResponseAmino {}
72
+ export interface MsgMultiSendResponseAminoMsg {
73
+ type: "cosmos-sdk/MsgMultiSendResponse";
74
+ value: MsgMultiSendResponseAmino;
75
+ }
76
+ /**
77
+ * MsgUpdateParams is the Msg/UpdateParams request type.
78
+ *
79
+ * Since: cosmos-sdk 0.47
80
+ */
81
+ export interface MsgUpdateParams {
82
+ /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
83
+ authority: string;
84
+ /**
85
+ * params defines the x/bank parameters to update.
86
+ *
87
+ * NOTE: All parameters must be supplied.
88
+ */
89
+ params: Params;
90
+ }
91
+ export interface MsgUpdateParamsProtoMsg {
92
+ typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams";
93
+ value: Uint8Array;
94
+ }
95
+ /**
96
+ * MsgUpdateParams is the Msg/UpdateParams request type.
97
+ *
98
+ * Since: cosmos-sdk 0.47
99
+ */
100
+ export interface MsgUpdateParamsAmino {
101
+ /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
102
+ authority: string;
103
+ /**
104
+ * params defines the x/bank parameters to update.
105
+ *
106
+ * NOTE: All parameters must be supplied.
107
+ */
108
+ params: ParamsAmino;
109
+ }
110
+ export interface MsgUpdateParamsAminoMsg {
111
+ type: "cosmos-sdk/x/bank/MsgUpdateParams";
112
+ value: MsgUpdateParamsAmino;
113
+ }
114
+ /**
115
+ * MsgUpdateParamsResponse defines the response structure for executing a
116
+ * MsgUpdateParams message.
117
+ *
118
+ * Since: cosmos-sdk 0.47
119
+ */
120
+ export interface MsgUpdateParamsResponse {}
121
+ export interface MsgUpdateParamsResponseProtoMsg {
122
+ typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParamsResponse";
123
+ value: Uint8Array;
124
+ }
125
+ /**
126
+ * MsgUpdateParamsResponse defines the response structure for executing a
127
+ * MsgUpdateParams message.
128
+ *
129
+ * Since: cosmos-sdk 0.47
130
+ */
131
+ export interface MsgUpdateParamsResponseAmino {}
132
+ export interface MsgUpdateParamsResponseAminoMsg {
133
+ type: "cosmos-sdk/MsgUpdateParamsResponse";
134
+ value: MsgUpdateParamsResponseAmino;
135
+ }
136
+ /**
137
+ * MsgSetSendEnabled is the Msg/SetSendEnabled request type.
138
+ *
139
+ * Only entries to add/update/delete need to be included.
140
+ * Existing SendEnabled entries that are not included in this
141
+ * message are left unchanged.
142
+ *
143
+ * Since: cosmos-sdk 0.47
144
+ */
145
+ export interface MsgSetSendEnabled {
146
+ /** authority is the address that controls the module. */
147
+ authority: string;
148
+ /** send_enabled is the list of entries to add or update. */
149
+ sendEnabled: SendEnabled[];
150
+ /**
151
+ * use_default_for is a list of denoms that should use the params.default_send_enabled value.
152
+ * Denoms listed here will have their SendEnabled entries deleted.
153
+ * If a denom is included that doesn't have a SendEnabled entry,
154
+ * it will be ignored.
155
+ */
156
+ useDefaultFor: string[];
157
+ }
158
+ export interface MsgSetSendEnabledProtoMsg {
159
+ typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled";
160
+ value: Uint8Array;
161
+ }
162
+ /**
163
+ * MsgSetSendEnabled is the Msg/SetSendEnabled request type.
164
+ *
165
+ * Only entries to add/update/delete need to be included.
166
+ * Existing SendEnabled entries that are not included in this
167
+ * message are left unchanged.
168
+ *
169
+ * Since: cosmos-sdk 0.47
170
+ */
171
+ export interface MsgSetSendEnabledAmino {
172
+ /** authority is the address that controls the module. */
173
+ authority: string;
174
+ /** send_enabled is the list of entries to add or update. */
175
+ send_enabled: SendEnabledAmino[];
176
+ /**
177
+ * use_default_for is a list of denoms that should use the params.default_send_enabled value.
178
+ * Denoms listed here will have their SendEnabled entries deleted.
179
+ * If a denom is included that doesn't have a SendEnabled entry,
180
+ * it will be ignored.
181
+ */
182
+ use_default_for: string[];
183
+ }
184
+ export interface MsgSetSendEnabledAminoMsg {
185
+ type: "cosmos-sdk/MsgSetSendEnabled";
186
+ value: MsgSetSendEnabledAmino;
187
+ }
188
+ /**
189
+ * MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type.
190
+ *
191
+ * Since: cosmos-sdk 0.47
192
+ */
193
+ export interface MsgSetSendEnabledResponse {}
194
+ export interface MsgSetSendEnabledResponseProtoMsg {
195
+ typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse";
196
+ value: Uint8Array;
197
+ }
198
+ /**
199
+ * MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type.
200
+ *
201
+ * Since: cosmos-sdk 0.47
202
+ */
203
+ export interface MsgSetSendEnabledResponseAmino {}
204
+ export interface MsgSetSendEnabledResponseAminoMsg {
205
+ type: "cosmos-sdk/MsgSetSendEnabledResponse";
206
+ value: MsgSetSendEnabledResponseAmino;
207
+ }
208
+ function createBaseMsgSend(): MsgSend {
209
+ return {
210
+ fromAddress: "",
211
+ toAddress: "",
212
+ amount: []
213
+ };
214
+ }
215
+ export const MsgSend = {
216
+ typeUrl: "/cosmos.bank.v1beta1.MsgSend",
217
+ aminoType: "cosmos-sdk/MsgSend",
218
+ is(o: any): o is MsgSend {
219
+ return o && (o.$typeUrl === MsgSend.typeUrl || typeof o.fromAddress === "string" && typeof o.toAddress === "string" && Array.isArray(o.amount) && (!o.amount.length || Coin.is(o.amount[0])));
220
+ },
221
+ isAmino(o: any): o is MsgSendAmino {
222
+ return o && (o.$typeUrl === MsgSend.typeUrl || typeof o.from_address === "string" && typeof o.to_address === "string" && Array.isArray(o.amount) && (!o.amount.length || Coin.isAmino(o.amount[0])));
223
+ },
224
+ encode(message: MsgSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
225
+ if (message.fromAddress !== "") {
226
+ writer.uint32(10).string(message.fromAddress);
227
+ }
228
+ if (message.toAddress !== "") {
229
+ writer.uint32(18).string(message.toAddress);
230
+ }
231
+ for (const v of message.amount) {
232
+ Coin.encode(v!, writer.uint32(26).fork()).ldelim();
233
+ }
234
+ return writer;
235
+ },
236
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSend {
237
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
238
+ let end = length === undefined ? reader.len : reader.pos + length;
239
+ const message = createBaseMsgSend();
240
+ while (reader.pos < end) {
241
+ const tag = reader.uint32();
242
+ switch (tag >>> 3) {
243
+ case 1:
244
+ message.fromAddress = reader.string();
245
+ break;
246
+ case 2:
247
+ message.toAddress = reader.string();
248
+ break;
249
+ case 3:
250
+ message.amount.push(Coin.decode(reader, reader.uint32()));
251
+ break;
252
+ default:
253
+ reader.skipType(tag & 7);
254
+ break;
255
+ }
256
+ }
257
+ return message;
258
+ },
259
+ fromPartial(object: DeepPartial<MsgSend>): MsgSend {
260
+ const message = createBaseMsgSend();
261
+ message.fromAddress = object.fromAddress ?? "";
262
+ message.toAddress = object.toAddress ?? "";
263
+ message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
264
+ return message;
265
+ },
266
+ fromAmino(object: MsgSendAmino): MsgSend {
267
+ const message = createBaseMsgSend();
268
+ if (object.from_address !== undefined && object.from_address !== null) {
269
+ message.fromAddress = object.from_address;
270
+ }
271
+ if (object.to_address !== undefined && object.to_address !== null) {
272
+ message.toAddress = object.to_address;
273
+ }
274
+ message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
275
+ return message;
276
+ },
277
+ toAmino(message: MsgSend): MsgSendAmino {
278
+ const obj: any = {};
279
+ obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress;
280
+ obj.to_address = message.toAddress === "" ? undefined : message.toAddress;
281
+ if (message.amount) {
282
+ obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
283
+ } else {
284
+ obj.amount = message.amount;
285
+ }
286
+ return obj;
287
+ },
288
+ fromAminoMsg(object: MsgSendAminoMsg): MsgSend {
289
+ return MsgSend.fromAmino(object.value);
290
+ },
291
+ toAminoMsg(message: MsgSend): MsgSendAminoMsg {
292
+ return {
293
+ type: "cosmos-sdk/MsgSend",
294
+ value: MsgSend.toAmino(message)
295
+ };
296
+ },
297
+ fromProtoMsg(message: MsgSendProtoMsg): MsgSend {
298
+ return MsgSend.decode(message.value);
299
+ },
300
+ toProto(message: MsgSend): Uint8Array {
301
+ return MsgSend.encode(message).finish();
302
+ },
303
+ toProtoMsg(message: MsgSend): MsgSendProtoMsg {
304
+ return {
305
+ typeUrl: "/cosmos.bank.v1beta1.MsgSend",
306
+ value: MsgSend.encode(message).finish()
307
+ };
308
+ }
309
+ };
310
+ GlobalDecoderRegistry.register(MsgSend.typeUrl, MsgSend);
311
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgSend.aminoType, MsgSend.typeUrl);
312
+ function createBaseMsgSendResponse(): MsgSendResponse {
313
+ return {};
314
+ }
315
+ export const MsgSendResponse = {
316
+ typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse",
317
+ aminoType: "cosmos-sdk/MsgSendResponse",
318
+ is(o: any): o is MsgSendResponse {
319
+ return o && o.$typeUrl === MsgSendResponse.typeUrl;
320
+ },
321
+ isAmino(o: any): o is MsgSendResponseAmino {
322
+ return o && o.$typeUrl === MsgSendResponse.typeUrl;
323
+ },
324
+ encode(_: MsgSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
325
+ return writer;
326
+ },
327
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse {
328
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
329
+ let end = length === undefined ? reader.len : reader.pos + length;
330
+ const message = createBaseMsgSendResponse();
331
+ while (reader.pos < end) {
332
+ const tag = reader.uint32();
333
+ switch (tag >>> 3) {
334
+ default:
335
+ reader.skipType(tag & 7);
336
+ break;
337
+ }
338
+ }
339
+ return message;
340
+ },
341
+ fromPartial(_: DeepPartial<MsgSendResponse>): MsgSendResponse {
342
+ const message = createBaseMsgSendResponse();
343
+ return message;
344
+ },
345
+ fromAmino(_: MsgSendResponseAmino): MsgSendResponse {
346
+ const message = createBaseMsgSendResponse();
347
+ return message;
348
+ },
349
+ toAmino(_: MsgSendResponse): MsgSendResponseAmino {
350
+ const obj: any = {};
351
+ return obj;
352
+ },
353
+ fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse {
354
+ return MsgSendResponse.fromAmino(object.value);
355
+ },
356
+ toAminoMsg(message: MsgSendResponse): MsgSendResponseAminoMsg {
357
+ return {
358
+ type: "cosmos-sdk/MsgSendResponse",
359
+ value: MsgSendResponse.toAmino(message)
360
+ };
361
+ },
362
+ fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse {
363
+ return MsgSendResponse.decode(message.value);
364
+ },
365
+ toProto(message: MsgSendResponse): Uint8Array {
366
+ return MsgSendResponse.encode(message).finish();
367
+ },
368
+ toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg {
369
+ return {
370
+ typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse",
371
+ value: MsgSendResponse.encode(message).finish()
372
+ };
373
+ }
374
+ };
375
+ GlobalDecoderRegistry.register(MsgSendResponse.typeUrl, MsgSendResponse);
376
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgSendResponse.aminoType, MsgSendResponse.typeUrl);
377
+ function createBaseMsgMultiSend(): MsgMultiSend {
378
+ return {
379
+ inputs: [],
380
+ outputs: []
381
+ };
382
+ }
383
+ export const MsgMultiSend = {
384
+ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend",
385
+ aminoType: "cosmos-sdk/MsgMultiSend",
386
+ is(o: any): o is MsgMultiSend {
387
+ return o && (o.$typeUrl === MsgMultiSend.typeUrl || Array.isArray(o.inputs) && (!o.inputs.length || Input.is(o.inputs[0])) && Array.isArray(o.outputs) && (!o.outputs.length || Output.is(o.outputs[0])));
388
+ },
389
+ isAmino(o: any): o is MsgMultiSendAmino {
390
+ return o && (o.$typeUrl === MsgMultiSend.typeUrl || Array.isArray(o.inputs) && (!o.inputs.length || Input.isAmino(o.inputs[0])) && Array.isArray(o.outputs) && (!o.outputs.length || Output.isAmino(o.outputs[0])));
391
+ },
392
+ encode(message: MsgMultiSend, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
393
+ for (const v of message.inputs) {
394
+ Input.encode(v!, writer.uint32(10).fork()).ldelim();
395
+ }
396
+ for (const v of message.outputs) {
397
+ Output.encode(v!, writer.uint32(18).fork()).ldelim();
398
+ }
399
+ return writer;
400
+ },
401
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSend {
402
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
403
+ let end = length === undefined ? reader.len : reader.pos + length;
404
+ const message = createBaseMsgMultiSend();
405
+ while (reader.pos < end) {
406
+ const tag = reader.uint32();
407
+ switch (tag >>> 3) {
408
+ case 1:
409
+ message.inputs.push(Input.decode(reader, reader.uint32()));
410
+ break;
411
+ case 2:
412
+ message.outputs.push(Output.decode(reader, reader.uint32()));
413
+ break;
414
+ default:
415
+ reader.skipType(tag & 7);
416
+ break;
417
+ }
418
+ }
419
+ return message;
420
+ },
421
+ fromPartial(object: DeepPartial<MsgMultiSend>): MsgMultiSend {
422
+ const message = createBaseMsgMultiSend();
423
+ message.inputs = object.inputs?.map(e => Input.fromPartial(e)) || [];
424
+ message.outputs = object.outputs?.map(e => Output.fromPartial(e)) || [];
425
+ return message;
426
+ },
427
+ fromAmino(object: MsgMultiSendAmino): MsgMultiSend {
428
+ const message = createBaseMsgMultiSend();
429
+ message.inputs = object.inputs?.map(e => Input.fromAmino(e)) || [];
430
+ message.outputs = object.outputs?.map(e => Output.fromAmino(e)) || [];
431
+ return message;
432
+ },
433
+ toAmino(message: MsgMultiSend): MsgMultiSendAmino {
434
+ const obj: any = {};
435
+ if (message.inputs) {
436
+ obj.inputs = message.inputs.map(e => e ? Input.toAmino(e) : undefined);
437
+ } else {
438
+ obj.inputs = message.inputs;
439
+ }
440
+ if (message.outputs) {
441
+ obj.outputs = message.outputs.map(e => e ? Output.toAmino(e) : undefined);
442
+ } else {
443
+ obj.outputs = message.outputs;
444
+ }
445
+ return obj;
446
+ },
447
+ fromAminoMsg(object: MsgMultiSendAminoMsg): MsgMultiSend {
448
+ return MsgMultiSend.fromAmino(object.value);
449
+ },
450
+ toAminoMsg(message: MsgMultiSend): MsgMultiSendAminoMsg {
451
+ return {
452
+ type: "cosmos-sdk/MsgMultiSend",
453
+ value: MsgMultiSend.toAmino(message)
454
+ };
455
+ },
456
+ fromProtoMsg(message: MsgMultiSendProtoMsg): MsgMultiSend {
457
+ return MsgMultiSend.decode(message.value);
458
+ },
459
+ toProto(message: MsgMultiSend): Uint8Array {
460
+ return MsgMultiSend.encode(message).finish();
461
+ },
462
+ toProtoMsg(message: MsgMultiSend): MsgMultiSendProtoMsg {
463
+ return {
464
+ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend",
465
+ value: MsgMultiSend.encode(message).finish()
466
+ };
467
+ }
468
+ };
469
+ GlobalDecoderRegistry.register(MsgMultiSend.typeUrl, MsgMultiSend);
470
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgMultiSend.aminoType, MsgMultiSend.typeUrl);
471
+ function createBaseMsgMultiSendResponse(): MsgMultiSendResponse {
472
+ return {};
473
+ }
474
+ export const MsgMultiSendResponse = {
475
+ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse",
476
+ aminoType: "cosmos-sdk/MsgMultiSendResponse",
477
+ is(o: any): o is MsgMultiSendResponse {
478
+ return o && o.$typeUrl === MsgMultiSendResponse.typeUrl;
479
+ },
480
+ isAmino(o: any): o is MsgMultiSendResponseAmino {
481
+ return o && o.$typeUrl === MsgMultiSendResponse.typeUrl;
482
+ },
483
+ encode(_: MsgMultiSendResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
484
+ return writer;
485
+ },
486
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSendResponse {
487
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
488
+ let end = length === undefined ? reader.len : reader.pos + length;
489
+ const message = createBaseMsgMultiSendResponse();
490
+ while (reader.pos < end) {
491
+ const tag = reader.uint32();
492
+ switch (tag >>> 3) {
493
+ default:
494
+ reader.skipType(tag & 7);
495
+ break;
496
+ }
497
+ }
498
+ return message;
499
+ },
500
+ fromPartial(_: DeepPartial<MsgMultiSendResponse>): MsgMultiSendResponse {
501
+ const message = createBaseMsgMultiSendResponse();
502
+ return message;
503
+ },
504
+ fromAmino(_: MsgMultiSendResponseAmino): MsgMultiSendResponse {
505
+ const message = createBaseMsgMultiSendResponse();
506
+ return message;
507
+ },
508
+ toAmino(_: MsgMultiSendResponse): MsgMultiSendResponseAmino {
509
+ const obj: any = {};
510
+ return obj;
511
+ },
512
+ fromAminoMsg(object: MsgMultiSendResponseAminoMsg): MsgMultiSendResponse {
513
+ return MsgMultiSendResponse.fromAmino(object.value);
514
+ },
515
+ toAminoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseAminoMsg {
516
+ return {
517
+ type: "cosmos-sdk/MsgMultiSendResponse",
518
+ value: MsgMultiSendResponse.toAmino(message)
519
+ };
520
+ },
521
+ fromProtoMsg(message: MsgMultiSendResponseProtoMsg): MsgMultiSendResponse {
522
+ return MsgMultiSendResponse.decode(message.value);
523
+ },
524
+ toProto(message: MsgMultiSendResponse): Uint8Array {
525
+ return MsgMultiSendResponse.encode(message).finish();
526
+ },
527
+ toProtoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseProtoMsg {
528
+ return {
529
+ typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse",
530
+ value: MsgMultiSendResponse.encode(message).finish()
531
+ };
532
+ }
533
+ };
534
+ GlobalDecoderRegistry.register(MsgMultiSendResponse.typeUrl, MsgMultiSendResponse);
535
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgMultiSendResponse.aminoType, MsgMultiSendResponse.typeUrl);
536
+ function createBaseMsgUpdateParams(): MsgUpdateParams {
537
+ return {
538
+ authority: "",
539
+ params: Params.fromPartial({})
540
+ };
541
+ }
542
+ export const MsgUpdateParams = {
543
+ typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams",
544
+ aminoType: "cosmos-sdk/x/bank/MsgUpdateParams",
545
+ is(o: any): o is MsgUpdateParams {
546
+ return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.is(o.params));
547
+ },
548
+ isAmino(o: any): o is MsgUpdateParamsAmino {
549
+ return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.isAmino(o.params));
550
+ },
551
+ encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
552
+ if (message.authority !== "") {
553
+ writer.uint32(10).string(message.authority);
554
+ }
555
+ if (message.params !== undefined) {
556
+ Params.encode(message.params, writer.uint32(18).fork()).ldelim();
557
+ }
558
+ return writer;
559
+ },
560
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
561
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
562
+ let end = length === undefined ? reader.len : reader.pos + length;
563
+ const message = createBaseMsgUpdateParams();
564
+ while (reader.pos < end) {
565
+ const tag = reader.uint32();
566
+ switch (tag >>> 3) {
567
+ case 1:
568
+ message.authority = reader.string();
569
+ break;
570
+ case 2:
571
+ message.params = Params.decode(reader, reader.uint32());
572
+ break;
573
+ default:
574
+ reader.skipType(tag & 7);
575
+ break;
576
+ }
577
+ }
578
+ return message;
579
+ },
580
+ fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
581
+ const message = createBaseMsgUpdateParams();
582
+ message.authority = object.authority ?? "";
583
+ message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
584
+ return message;
585
+ },
586
+ fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
587
+ const message = createBaseMsgUpdateParams();
588
+ if (object.authority !== undefined && object.authority !== null) {
589
+ message.authority = object.authority;
590
+ }
591
+ if (object.params !== undefined && object.params !== null) {
592
+ message.params = Params.fromAmino(object.params);
593
+ }
594
+ return message;
595
+ },
596
+ toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
597
+ const obj: any = {};
598
+ obj.authority = message.authority === "" ? undefined : message.authority;
599
+ obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
600
+ return obj;
601
+ },
602
+ fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
603
+ return MsgUpdateParams.fromAmino(object.value);
604
+ },
605
+ toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
606
+ return {
607
+ type: "cosmos-sdk/x/bank/MsgUpdateParams",
608
+ value: MsgUpdateParams.toAmino(message)
609
+ };
610
+ },
611
+ fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
612
+ return MsgUpdateParams.decode(message.value);
613
+ },
614
+ toProto(message: MsgUpdateParams): Uint8Array {
615
+ return MsgUpdateParams.encode(message).finish();
616
+ },
617
+ toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
618
+ return {
619
+ typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams",
620
+ value: MsgUpdateParams.encode(message).finish()
621
+ };
622
+ }
623
+ };
624
+ GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
625
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
626
+ function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
627
+ return {};
628
+ }
629
+ export const MsgUpdateParamsResponse = {
630
+ typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParamsResponse",
631
+ aminoType: "cosmos-sdk/MsgUpdateParamsResponse",
632
+ is(o: any): o is MsgUpdateParamsResponse {
633
+ return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
634
+ },
635
+ isAmino(o: any): o is MsgUpdateParamsResponseAmino {
636
+ return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
637
+ },
638
+ encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
639
+ return writer;
640
+ },
641
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
642
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
643
+ let end = length === undefined ? reader.len : reader.pos + length;
644
+ const message = createBaseMsgUpdateParamsResponse();
645
+ while (reader.pos < end) {
646
+ const tag = reader.uint32();
647
+ switch (tag >>> 3) {
648
+ default:
649
+ reader.skipType(tag & 7);
650
+ break;
651
+ }
652
+ }
653
+ return message;
654
+ },
655
+ fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
656
+ const message = createBaseMsgUpdateParamsResponse();
657
+ return message;
658
+ },
659
+ fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
660
+ const message = createBaseMsgUpdateParamsResponse();
661
+ return message;
662
+ },
663
+ toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
664
+ const obj: any = {};
665
+ return obj;
666
+ },
667
+ fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
668
+ return MsgUpdateParamsResponse.fromAmino(object.value);
669
+ },
670
+ toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
671
+ return {
672
+ type: "cosmos-sdk/MsgUpdateParamsResponse",
673
+ value: MsgUpdateParamsResponse.toAmino(message)
674
+ };
675
+ },
676
+ fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
677
+ return MsgUpdateParamsResponse.decode(message.value);
678
+ },
679
+ toProto(message: MsgUpdateParamsResponse): Uint8Array {
680
+ return MsgUpdateParamsResponse.encode(message).finish();
681
+ },
682
+ toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
683
+ return {
684
+ typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParamsResponse",
685
+ value: MsgUpdateParamsResponse.encode(message).finish()
686
+ };
687
+ }
688
+ };
689
+ GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
690
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
691
+ function createBaseMsgSetSendEnabled(): MsgSetSendEnabled {
692
+ return {
693
+ authority: "",
694
+ sendEnabled: [],
695
+ useDefaultFor: []
696
+ };
697
+ }
698
+ export const MsgSetSendEnabled = {
699
+ typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled",
700
+ aminoType: "cosmos-sdk/MsgSetSendEnabled",
701
+ is(o: any): o is MsgSetSendEnabled {
702
+ return o && (o.$typeUrl === MsgSetSendEnabled.typeUrl || typeof o.authority === "string" && Array.isArray(o.sendEnabled) && (!o.sendEnabled.length || SendEnabled.is(o.sendEnabled[0])) && Array.isArray(o.useDefaultFor) && (!o.useDefaultFor.length || typeof o.useDefaultFor[0] === "string"));
703
+ },
704
+ isAmino(o: any): o is MsgSetSendEnabledAmino {
705
+ return o && (o.$typeUrl === MsgSetSendEnabled.typeUrl || typeof o.authority === "string" && Array.isArray(o.send_enabled) && (!o.send_enabled.length || SendEnabled.isAmino(o.send_enabled[0])) && Array.isArray(o.use_default_for) && (!o.use_default_for.length || typeof o.use_default_for[0] === "string"));
706
+ },
707
+ encode(message: MsgSetSendEnabled, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
708
+ if (message.authority !== "") {
709
+ writer.uint32(10).string(message.authority);
710
+ }
711
+ for (const v of message.sendEnabled) {
712
+ SendEnabled.encode(v!, writer.uint32(18).fork()).ldelim();
713
+ }
714
+ for (const v of message.useDefaultFor) {
715
+ writer.uint32(26).string(v!);
716
+ }
717
+ return writer;
718
+ },
719
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSetSendEnabled {
720
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
721
+ let end = length === undefined ? reader.len : reader.pos + length;
722
+ const message = createBaseMsgSetSendEnabled();
723
+ while (reader.pos < end) {
724
+ const tag = reader.uint32();
725
+ switch (tag >>> 3) {
726
+ case 1:
727
+ message.authority = reader.string();
728
+ break;
729
+ case 2:
730
+ message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32()));
731
+ break;
732
+ case 3:
733
+ message.useDefaultFor.push(reader.string());
734
+ break;
735
+ default:
736
+ reader.skipType(tag & 7);
737
+ break;
738
+ }
739
+ }
740
+ return message;
741
+ },
742
+ fromPartial(object: DeepPartial<MsgSetSendEnabled>): MsgSetSendEnabled {
743
+ const message = createBaseMsgSetSendEnabled();
744
+ message.authority = object.authority ?? "";
745
+ message.sendEnabled = object.sendEnabled?.map(e => SendEnabled.fromPartial(e)) || [];
746
+ message.useDefaultFor = object.useDefaultFor?.map(e => e) || [];
747
+ return message;
748
+ },
749
+ fromAmino(object: MsgSetSendEnabledAmino): MsgSetSendEnabled {
750
+ const message = createBaseMsgSetSendEnabled();
751
+ if (object.authority !== undefined && object.authority !== null) {
752
+ message.authority = object.authority;
753
+ }
754
+ message.sendEnabled = object.send_enabled?.map(e => SendEnabled.fromAmino(e)) || [];
755
+ message.useDefaultFor = object.use_default_for?.map(e => e) || [];
756
+ return message;
757
+ },
758
+ toAmino(message: MsgSetSendEnabled): MsgSetSendEnabledAmino {
759
+ const obj: any = {};
760
+ obj.authority = message.authority === "" ? undefined : message.authority;
761
+ if (message.sendEnabled) {
762
+ obj.send_enabled = message.sendEnabled.map(e => e ? SendEnabled.toAmino(e) : undefined);
763
+ } else {
764
+ obj.send_enabled = message.sendEnabled;
765
+ }
766
+ if (message.useDefaultFor) {
767
+ obj.use_default_for = message.useDefaultFor.map(e => e);
768
+ } else {
769
+ obj.use_default_for = message.useDefaultFor;
770
+ }
771
+ return obj;
772
+ },
773
+ fromAminoMsg(object: MsgSetSendEnabledAminoMsg): MsgSetSendEnabled {
774
+ return MsgSetSendEnabled.fromAmino(object.value);
775
+ },
776
+ toAminoMsg(message: MsgSetSendEnabled): MsgSetSendEnabledAminoMsg {
777
+ return {
778
+ type: "cosmos-sdk/MsgSetSendEnabled",
779
+ value: MsgSetSendEnabled.toAmino(message)
780
+ };
781
+ },
782
+ fromProtoMsg(message: MsgSetSendEnabledProtoMsg): MsgSetSendEnabled {
783
+ return MsgSetSendEnabled.decode(message.value);
784
+ },
785
+ toProto(message: MsgSetSendEnabled): Uint8Array {
786
+ return MsgSetSendEnabled.encode(message).finish();
787
+ },
788
+ toProtoMsg(message: MsgSetSendEnabled): MsgSetSendEnabledProtoMsg {
789
+ return {
790
+ typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled",
791
+ value: MsgSetSendEnabled.encode(message).finish()
792
+ };
793
+ }
794
+ };
795
+ GlobalDecoderRegistry.register(MsgSetSendEnabled.typeUrl, MsgSetSendEnabled);
796
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgSetSendEnabled.aminoType, MsgSetSendEnabled.typeUrl);
797
+ function createBaseMsgSetSendEnabledResponse(): MsgSetSendEnabledResponse {
798
+ return {};
799
+ }
800
+ export const MsgSetSendEnabledResponse = {
801
+ typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse",
802
+ aminoType: "cosmos-sdk/MsgSetSendEnabledResponse",
803
+ is(o: any): o is MsgSetSendEnabledResponse {
804
+ return o && o.$typeUrl === MsgSetSendEnabledResponse.typeUrl;
805
+ },
806
+ isAmino(o: any): o is MsgSetSendEnabledResponseAmino {
807
+ return o && o.$typeUrl === MsgSetSendEnabledResponse.typeUrl;
808
+ },
809
+ encode(_: MsgSetSendEnabledResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
810
+ return writer;
811
+ },
812
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSetSendEnabledResponse {
813
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
814
+ let end = length === undefined ? reader.len : reader.pos + length;
815
+ const message = createBaseMsgSetSendEnabledResponse();
816
+ while (reader.pos < end) {
817
+ const tag = reader.uint32();
818
+ switch (tag >>> 3) {
819
+ default:
820
+ reader.skipType(tag & 7);
821
+ break;
822
+ }
823
+ }
824
+ return message;
825
+ },
826
+ fromPartial(_: DeepPartial<MsgSetSendEnabledResponse>): MsgSetSendEnabledResponse {
827
+ const message = createBaseMsgSetSendEnabledResponse();
828
+ return message;
829
+ },
830
+ fromAmino(_: MsgSetSendEnabledResponseAmino): MsgSetSendEnabledResponse {
831
+ const message = createBaseMsgSetSendEnabledResponse();
832
+ return message;
833
+ },
834
+ toAmino(_: MsgSetSendEnabledResponse): MsgSetSendEnabledResponseAmino {
835
+ const obj: any = {};
836
+ return obj;
837
+ },
838
+ fromAminoMsg(object: MsgSetSendEnabledResponseAminoMsg): MsgSetSendEnabledResponse {
839
+ return MsgSetSendEnabledResponse.fromAmino(object.value);
840
+ },
841
+ toAminoMsg(message: MsgSetSendEnabledResponse): MsgSetSendEnabledResponseAminoMsg {
842
+ return {
843
+ type: "cosmos-sdk/MsgSetSendEnabledResponse",
844
+ value: MsgSetSendEnabledResponse.toAmino(message)
845
+ };
846
+ },
847
+ fromProtoMsg(message: MsgSetSendEnabledResponseProtoMsg): MsgSetSendEnabledResponse {
848
+ return MsgSetSendEnabledResponse.decode(message.value);
849
+ },
850
+ toProto(message: MsgSetSendEnabledResponse): Uint8Array {
851
+ return MsgSetSendEnabledResponse.encode(message).finish();
852
+ },
853
+ toProtoMsg(message: MsgSetSendEnabledResponse): MsgSetSendEnabledResponseProtoMsg {
854
+ return {
855
+ typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse",
856
+ value: MsgSetSendEnabledResponse.encode(message).finish()
857
+ };
858
+ }
859
+ };
860
+ GlobalDecoderRegistry.register(MsgSetSendEnabledResponse.typeUrl, MsgSetSendEnabledResponse);
861
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgSetSendEnabledResponse.aminoType, MsgSetSendEnabledResponse.typeUrl);