@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,647 @@
1
+ import { Grant, GrantAmino } from "./authz";
2
+ import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
3
+ import { BinaryReader, BinaryWriter } from "../../../binary";
4
+ import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
5
+ import { GlobalDecoderRegistry } from "../../../registry";
6
+ /**
7
+ * MsgGrant is a request type for Grant method. It declares authorization to the grantee
8
+ * on behalf of the granter with the provided expiration time.
9
+ */
10
+ export interface MsgGrant {
11
+ granter: string;
12
+ grantee: string;
13
+ grant: Grant;
14
+ }
15
+ export interface MsgGrantProtoMsg {
16
+ typeUrl: "/cosmos.authz.v1beta1.MsgGrant";
17
+ value: Uint8Array;
18
+ }
19
+ /**
20
+ * MsgGrant is a request type for Grant method. It declares authorization to the grantee
21
+ * on behalf of the granter with the provided expiration time.
22
+ */
23
+ export interface MsgGrantAmino {
24
+ granter: string;
25
+ grantee: string;
26
+ grant: GrantAmino;
27
+ }
28
+ export interface MsgGrantAminoMsg {
29
+ type: "cosmos-sdk/MsgGrant";
30
+ value: MsgGrantAmino;
31
+ }
32
+ /** MsgGrantResponse defines the Msg/MsgGrant response type. */
33
+ export interface MsgGrantResponse {}
34
+ export interface MsgGrantResponseProtoMsg {
35
+ typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse";
36
+ value: Uint8Array;
37
+ }
38
+ /** MsgGrantResponse defines the Msg/MsgGrant response type. */
39
+ export interface MsgGrantResponseAmino {}
40
+ export interface MsgGrantResponseAminoMsg {
41
+ type: "cosmos-sdk/MsgGrantResponse";
42
+ value: MsgGrantResponseAmino;
43
+ }
44
+ /**
45
+ * MsgExec attempts to execute the provided messages using
46
+ * authorizations granted to the grantee. Each message should have only
47
+ * one signer corresponding to the granter of the authorization.
48
+ */
49
+ export interface MsgExec {
50
+ grantee: string;
51
+ /**
52
+ * Execute Msg.
53
+ * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
54
+ * triple and validate it.
55
+ */
56
+ msgs: (Any)[] | Any[];
57
+ }
58
+ export interface MsgExecProtoMsg {
59
+ typeUrl: "/cosmos.authz.v1beta1.MsgExec";
60
+ value: Uint8Array;
61
+ }
62
+ export type MsgExecEncoded = Omit<MsgExec, "msgs"> & {
63
+ /**
64
+ * Execute Msg.
65
+ * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
66
+ * triple and validate it.
67
+ */
68
+ msgs: (AnyProtoMsg)[];
69
+ };
70
+ /**
71
+ * MsgExec attempts to execute the provided messages using
72
+ * authorizations granted to the grantee. Each message should have only
73
+ * one signer corresponding to the granter of the authorization.
74
+ */
75
+ export interface MsgExecAmino {
76
+ grantee: string;
77
+ /**
78
+ * Execute Msg.
79
+ * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
80
+ * triple and validate it.
81
+ */
82
+ msgs: AnyAmino[];
83
+ }
84
+ export interface MsgExecAminoMsg {
85
+ type: "cosmos-sdk/MsgExec";
86
+ value: MsgExecAmino;
87
+ }
88
+ /** MsgExecResponse defines the Msg/MsgExecResponse response type. */
89
+ export interface MsgExecResponse {
90
+ results: Uint8Array[];
91
+ }
92
+ export interface MsgExecResponseProtoMsg {
93
+ typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse";
94
+ value: Uint8Array;
95
+ }
96
+ /** MsgExecResponse defines the Msg/MsgExecResponse response type. */
97
+ export interface MsgExecResponseAmino {
98
+ results: string[];
99
+ }
100
+ export interface MsgExecResponseAminoMsg {
101
+ type: "cosmos-sdk/MsgExecResponse";
102
+ value: MsgExecResponseAmino;
103
+ }
104
+ /**
105
+ * MsgRevoke revokes any authorization with the provided sdk.Msg type on the
106
+ * granter's account with that has been granted to the grantee.
107
+ */
108
+ export interface MsgRevoke {
109
+ granter: string;
110
+ grantee: string;
111
+ msgTypeUrl: string;
112
+ }
113
+ export interface MsgRevokeProtoMsg {
114
+ typeUrl: "/cosmos.authz.v1beta1.MsgRevoke";
115
+ value: Uint8Array;
116
+ }
117
+ /**
118
+ * MsgRevoke revokes any authorization with the provided sdk.Msg type on the
119
+ * granter's account with that has been granted to the grantee.
120
+ */
121
+ export interface MsgRevokeAmino {
122
+ granter: string;
123
+ grantee: string;
124
+ msg_type_url: string;
125
+ }
126
+ export interface MsgRevokeAminoMsg {
127
+ type: "cosmos-sdk/MsgRevoke";
128
+ value: MsgRevokeAmino;
129
+ }
130
+ /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */
131
+ export interface MsgRevokeResponse {}
132
+ export interface MsgRevokeResponseProtoMsg {
133
+ typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse";
134
+ value: Uint8Array;
135
+ }
136
+ /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */
137
+ export interface MsgRevokeResponseAmino {}
138
+ export interface MsgRevokeResponseAminoMsg {
139
+ type: "cosmos-sdk/MsgRevokeResponse";
140
+ value: MsgRevokeResponseAmino;
141
+ }
142
+ function createBaseMsgGrant(): MsgGrant {
143
+ return {
144
+ granter: "",
145
+ grantee: "",
146
+ grant: Grant.fromPartial({})
147
+ };
148
+ }
149
+ export const MsgGrant = {
150
+ typeUrl: "/cosmos.authz.v1beta1.MsgGrant",
151
+ aminoType: "cosmos-sdk/MsgGrant",
152
+ is(o: any): o is MsgGrant {
153
+ return o && (o.$typeUrl === MsgGrant.typeUrl || typeof o.granter === "string" && typeof o.grantee === "string" && Grant.is(o.grant));
154
+ },
155
+ isAmino(o: any): o is MsgGrantAmino {
156
+ return o && (o.$typeUrl === MsgGrant.typeUrl || typeof o.granter === "string" && typeof o.grantee === "string" && Grant.isAmino(o.grant));
157
+ },
158
+ encode(message: MsgGrant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
159
+ if (message.granter !== "") {
160
+ writer.uint32(10).string(message.granter);
161
+ }
162
+ if (message.grantee !== "") {
163
+ writer.uint32(18).string(message.grantee);
164
+ }
165
+ if (message.grant !== undefined) {
166
+ Grant.encode(message.grant, writer.uint32(26).fork()).ldelim();
167
+ }
168
+ return writer;
169
+ },
170
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant {
171
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
172
+ let end = length === undefined ? reader.len : reader.pos + length;
173
+ const message = createBaseMsgGrant();
174
+ while (reader.pos < end) {
175
+ const tag = reader.uint32();
176
+ switch (tag >>> 3) {
177
+ case 1:
178
+ message.granter = reader.string();
179
+ break;
180
+ case 2:
181
+ message.grantee = reader.string();
182
+ break;
183
+ case 3:
184
+ message.grant = Grant.decode(reader, reader.uint32());
185
+ break;
186
+ default:
187
+ reader.skipType(tag & 7);
188
+ break;
189
+ }
190
+ }
191
+ return message;
192
+ },
193
+ fromPartial(object: DeepPartial<MsgGrant>): MsgGrant {
194
+ const message = createBaseMsgGrant();
195
+ message.granter = object.granter ?? "";
196
+ message.grantee = object.grantee ?? "";
197
+ message.grant = object.grant !== undefined && object.grant !== null ? Grant.fromPartial(object.grant) : undefined;
198
+ return message;
199
+ },
200
+ fromAmino(object: MsgGrantAmino): MsgGrant {
201
+ const message = createBaseMsgGrant();
202
+ if (object.granter !== undefined && object.granter !== null) {
203
+ message.granter = object.granter;
204
+ }
205
+ if (object.grantee !== undefined && object.grantee !== null) {
206
+ message.grantee = object.grantee;
207
+ }
208
+ if (object.grant !== undefined && object.grant !== null) {
209
+ message.grant = Grant.fromAmino(object.grant);
210
+ }
211
+ return message;
212
+ },
213
+ toAmino(message: MsgGrant): MsgGrantAmino {
214
+ const obj: any = {};
215
+ obj.granter = message.granter === "" ? undefined : message.granter;
216
+ obj.grantee = message.grantee === "" ? undefined : message.grantee;
217
+ obj.grant = message.grant ? Grant.toAmino(message.grant) : Grant.toAmino(Grant.fromPartial({}));
218
+ return obj;
219
+ },
220
+ fromAminoMsg(object: MsgGrantAminoMsg): MsgGrant {
221
+ return MsgGrant.fromAmino(object.value);
222
+ },
223
+ toAminoMsg(message: MsgGrant): MsgGrantAminoMsg {
224
+ return {
225
+ type: "cosmos-sdk/MsgGrant",
226
+ value: MsgGrant.toAmino(message)
227
+ };
228
+ },
229
+ fromProtoMsg(message: MsgGrantProtoMsg): MsgGrant {
230
+ return MsgGrant.decode(message.value);
231
+ },
232
+ toProto(message: MsgGrant): Uint8Array {
233
+ return MsgGrant.encode(message).finish();
234
+ },
235
+ toProtoMsg(message: MsgGrant): MsgGrantProtoMsg {
236
+ return {
237
+ typeUrl: "/cosmos.authz.v1beta1.MsgGrant",
238
+ value: MsgGrant.encode(message).finish()
239
+ };
240
+ }
241
+ };
242
+ GlobalDecoderRegistry.register(MsgGrant.typeUrl, MsgGrant);
243
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgGrant.aminoType, MsgGrant.typeUrl);
244
+ function createBaseMsgGrantResponse(): MsgGrantResponse {
245
+ return {};
246
+ }
247
+ export const MsgGrantResponse = {
248
+ typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse",
249
+ aminoType: "cosmos-sdk/MsgGrantResponse",
250
+ is(o: any): o is MsgGrantResponse {
251
+ return o && o.$typeUrl === MsgGrantResponse.typeUrl;
252
+ },
253
+ isAmino(o: any): o is MsgGrantResponseAmino {
254
+ return o && o.$typeUrl === MsgGrantResponse.typeUrl;
255
+ },
256
+ encode(_: MsgGrantResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
257
+ return writer;
258
+ },
259
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse {
260
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
261
+ let end = length === undefined ? reader.len : reader.pos + length;
262
+ const message = createBaseMsgGrantResponse();
263
+ while (reader.pos < end) {
264
+ const tag = reader.uint32();
265
+ switch (tag >>> 3) {
266
+ default:
267
+ reader.skipType(tag & 7);
268
+ break;
269
+ }
270
+ }
271
+ return message;
272
+ },
273
+ fromPartial(_: DeepPartial<MsgGrantResponse>): MsgGrantResponse {
274
+ const message = createBaseMsgGrantResponse();
275
+ return message;
276
+ },
277
+ fromAmino(_: MsgGrantResponseAmino): MsgGrantResponse {
278
+ const message = createBaseMsgGrantResponse();
279
+ return message;
280
+ },
281
+ toAmino(_: MsgGrantResponse): MsgGrantResponseAmino {
282
+ const obj: any = {};
283
+ return obj;
284
+ },
285
+ fromAminoMsg(object: MsgGrantResponseAminoMsg): MsgGrantResponse {
286
+ return MsgGrantResponse.fromAmino(object.value);
287
+ },
288
+ toAminoMsg(message: MsgGrantResponse): MsgGrantResponseAminoMsg {
289
+ return {
290
+ type: "cosmos-sdk/MsgGrantResponse",
291
+ value: MsgGrantResponse.toAmino(message)
292
+ };
293
+ },
294
+ fromProtoMsg(message: MsgGrantResponseProtoMsg): MsgGrantResponse {
295
+ return MsgGrantResponse.decode(message.value);
296
+ },
297
+ toProto(message: MsgGrantResponse): Uint8Array {
298
+ return MsgGrantResponse.encode(message).finish();
299
+ },
300
+ toProtoMsg(message: MsgGrantResponse): MsgGrantResponseProtoMsg {
301
+ return {
302
+ typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse",
303
+ value: MsgGrantResponse.encode(message).finish()
304
+ };
305
+ }
306
+ };
307
+ GlobalDecoderRegistry.register(MsgGrantResponse.typeUrl, MsgGrantResponse);
308
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgGrantResponse.aminoType, MsgGrantResponse.typeUrl);
309
+ function createBaseMsgExec(): MsgExec {
310
+ return {
311
+ grantee: "",
312
+ msgs: []
313
+ };
314
+ }
315
+ export const MsgExec = {
316
+ typeUrl: "/cosmos.authz.v1beta1.MsgExec",
317
+ aminoType: "cosmos-sdk/MsgExec",
318
+ is(o: any): o is MsgExec {
319
+ return o && (o.$typeUrl === MsgExec.typeUrl || typeof o.grantee === "string" && Array.isArray(o.msgs) && (!o.msgs.length || Any.is(o.msgs[0])));
320
+ },
321
+ isAmino(o: any): o is MsgExecAmino {
322
+ return o && (o.$typeUrl === MsgExec.typeUrl || typeof o.grantee === "string" && Array.isArray(o.msgs) && (!o.msgs.length || Any.isAmino(o.msgs[0])));
323
+ },
324
+ encode(message: MsgExec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
325
+ if (message.grantee !== "") {
326
+ writer.uint32(10).string(message.grantee);
327
+ }
328
+ for (const v of message.msgs) {
329
+ Any.encode(GlobalDecoderRegistry.wrapAny(v!), writer.uint32(18).fork()).ldelim();
330
+ }
331
+ return writer;
332
+ },
333
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgExec {
334
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
335
+ let end = length === undefined ? reader.len : reader.pos + length;
336
+ const message = createBaseMsgExec();
337
+ while (reader.pos < end) {
338
+ const tag = reader.uint32();
339
+ switch (tag >>> 3) {
340
+ case 1:
341
+ message.grantee = reader.string();
342
+ break;
343
+ case 2:
344
+ message.msgs.push(GlobalDecoderRegistry.unwrapAny(reader));
345
+ break;
346
+ default:
347
+ reader.skipType(tag & 7);
348
+ break;
349
+ }
350
+ }
351
+ return message;
352
+ },
353
+ fromPartial(object: DeepPartial<MsgExec>): MsgExec {
354
+ const message = createBaseMsgExec();
355
+ message.grantee = object.grantee ?? "";
356
+ message.msgs = object.msgs?.map(e => GlobalDecoderRegistry.fromPartial(e) as any) || [];
357
+ return message;
358
+ },
359
+ fromAmino(object: MsgExecAmino): MsgExec {
360
+ const message = createBaseMsgExec();
361
+ if (object.grantee !== undefined && object.grantee !== null) {
362
+ message.grantee = object.grantee;
363
+ }
364
+ message.msgs = object.msgs?.map(e => GlobalDecoderRegistry.fromAminoMsg(e)) || [];
365
+ return message;
366
+ },
367
+ toAmino(message: MsgExec): MsgExecAmino {
368
+ const obj: any = {};
369
+ obj.grantee = message.grantee === "" ? undefined : message.grantee;
370
+ if (message.msgs) {
371
+ obj.msgs = message.msgs.map(e => e ? GlobalDecoderRegistry.toAminoMsg(e) : undefined);
372
+ } else {
373
+ obj.msgs = message.msgs;
374
+ }
375
+ return obj;
376
+ },
377
+ fromAminoMsg(object: MsgExecAminoMsg): MsgExec {
378
+ return MsgExec.fromAmino(object.value);
379
+ },
380
+ toAminoMsg(message: MsgExec): MsgExecAminoMsg {
381
+ return {
382
+ type: "cosmos-sdk/MsgExec",
383
+ value: MsgExec.toAmino(message)
384
+ };
385
+ },
386
+ fromProtoMsg(message: MsgExecProtoMsg): MsgExec {
387
+ return MsgExec.decode(message.value);
388
+ },
389
+ toProto(message: MsgExec): Uint8Array {
390
+ return MsgExec.encode(message).finish();
391
+ },
392
+ toProtoMsg(message: MsgExec): MsgExecProtoMsg {
393
+ return {
394
+ typeUrl: "/cosmos.authz.v1beta1.MsgExec",
395
+ value: MsgExec.encode(message).finish()
396
+ };
397
+ }
398
+ };
399
+ GlobalDecoderRegistry.register(MsgExec.typeUrl, MsgExec);
400
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgExec.aminoType, MsgExec.typeUrl);
401
+ function createBaseMsgExecResponse(): MsgExecResponse {
402
+ return {
403
+ results: []
404
+ };
405
+ }
406
+ export const MsgExecResponse = {
407
+ typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse",
408
+ aminoType: "cosmos-sdk/MsgExecResponse",
409
+ is(o: any): o is MsgExecResponse {
410
+ return o && (o.$typeUrl === MsgExecResponse.typeUrl || Array.isArray(o.results) && (!o.results.length || o.results[0] instanceof Uint8Array || typeof o.results[0] === "string"));
411
+ },
412
+ isAmino(o: any): o is MsgExecResponseAmino {
413
+ return o && (o.$typeUrl === MsgExecResponse.typeUrl || Array.isArray(o.results) && (!o.results.length || o.results[0] instanceof Uint8Array || typeof o.results[0] === "string"));
414
+ },
415
+ encode(message: MsgExecResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
416
+ for (const v of message.results) {
417
+ writer.uint32(10).bytes(v!);
418
+ }
419
+ return writer;
420
+ },
421
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse {
422
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
423
+ let end = length === undefined ? reader.len : reader.pos + length;
424
+ const message = createBaseMsgExecResponse();
425
+ while (reader.pos < end) {
426
+ const tag = reader.uint32();
427
+ switch (tag >>> 3) {
428
+ case 1:
429
+ message.results.push(reader.bytes());
430
+ break;
431
+ default:
432
+ reader.skipType(tag & 7);
433
+ break;
434
+ }
435
+ }
436
+ return message;
437
+ },
438
+ fromPartial(object: DeepPartial<MsgExecResponse>): MsgExecResponse {
439
+ const message = createBaseMsgExecResponse();
440
+ message.results = object.results?.map(e => e) || [];
441
+ return message;
442
+ },
443
+ fromAmino(object: MsgExecResponseAmino): MsgExecResponse {
444
+ const message = createBaseMsgExecResponse();
445
+ message.results = object.results?.map(e => bytesFromBase64(e)) || [];
446
+ return message;
447
+ },
448
+ toAmino(message: MsgExecResponse): MsgExecResponseAmino {
449
+ const obj: any = {};
450
+ if (message.results) {
451
+ obj.results = message.results.map(e => base64FromBytes(e));
452
+ } else {
453
+ obj.results = message.results;
454
+ }
455
+ return obj;
456
+ },
457
+ fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse {
458
+ return MsgExecResponse.fromAmino(object.value);
459
+ },
460
+ toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg {
461
+ return {
462
+ type: "cosmos-sdk/MsgExecResponse",
463
+ value: MsgExecResponse.toAmino(message)
464
+ };
465
+ },
466
+ fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse {
467
+ return MsgExecResponse.decode(message.value);
468
+ },
469
+ toProto(message: MsgExecResponse): Uint8Array {
470
+ return MsgExecResponse.encode(message).finish();
471
+ },
472
+ toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg {
473
+ return {
474
+ typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse",
475
+ value: MsgExecResponse.encode(message).finish()
476
+ };
477
+ }
478
+ };
479
+ GlobalDecoderRegistry.register(MsgExecResponse.typeUrl, MsgExecResponse);
480
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgExecResponse.aminoType, MsgExecResponse.typeUrl);
481
+ function createBaseMsgRevoke(): MsgRevoke {
482
+ return {
483
+ granter: "",
484
+ grantee: "",
485
+ msgTypeUrl: ""
486
+ };
487
+ }
488
+ export const MsgRevoke = {
489
+ typeUrl: "/cosmos.authz.v1beta1.MsgRevoke",
490
+ aminoType: "cosmos-sdk/MsgRevoke",
491
+ is(o: any): o is MsgRevoke {
492
+ return o && (o.$typeUrl === MsgRevoke.typeUrl || typeof o.granter === "string" && typeof o.grantee === "string" && typeof o.msgTypeUrl === "string");
493
+ },
494
+ isAmino(o: any): o is MsgRevokeAmino {
495
+ return o && (o.$typeUrl === MsgRevoke.typeUrl || typeof o.granter === "string" && typeof o.grantee === "string" && typeof o.msg_type_url === "string");
496
+ },
497
+ encode(message: MsgRevoke, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
498
+ if (message.granter !== "") {
499
+ writer.uint32(10).string(message.granter);
500
+ }
501
+ if (message.grantee !== "") {
502
+ writer.uint32(18).string(message.grantee);
503
+ }
504
+ if (message.msgTypeUrl !== "") {
505
+ writer.uint32(26).string(message.msgTypeUrl);
506
+ }
507
+ return writer;
508
+ },
509
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke {
510
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
511
+ let end = length === undefined ? reader.len : reader.pos + length;
512
+ const message = createBaseMsgRevoke();
513
+ while (reader.pos < end) {
514
+ const tag = reader.uint32();
515
+ switch (tag >>> 3) {
516
+ case 1:
517
+ message.granter = reader.string();
518
+ break;
519
+ case 2:
520
+ message.grantee = reader.string();
521
+ break;
522
+ case 3:
523
+ message.msgTypeUrl = reader.string();
524
+ break;
525
+ default:
526
+ reader.skipType(tag & 7);
527
+ break;
528
+ }
529
+ }
530
+ return message;
531
+ },
532
+ fromPartial(object: DeepPartial<MsgRevoke>): MsgRevoke {
533
+ const message = createBaseMsgRevoke();
534
+ message.granter = object.granter ?? "";
535
+ message.grantee = object.grantee ?? "";
536
+ message.msgTypeUrl = object.msgTypeUrl ?? "";
537
+ return message;
538
+ },
539
+ fromAmino(object: MsgRevokeAmino): MsgRevoke {
540
+ const message = createBaseMsgRevoke();
541
+ if (object.granter !== undefined && object.granter !== null) {
542
+ message.granter = object.granter;
543
+ }
544
+ if (object.grantee !== undefined && object.grantee !== null) {
545
+ message.grantee = object.grantee;
546
+ }
547
+ if (object.msg_type_url !== undefined && object.msg_type_url !== null) {
548
+ message.msgTypeUrl = object.msg_type_url;
549
+ }
550
+ return message;
551
+ },
552
+ toAmino(message: MsgRevoke): MsgRevokeAmino {
553
+ const obj: any = {};
554
+ obj.granter = message.granter === "" ? undefined : message.granter;
555
+ obj.grantee = message.grantee === "" ? undefined : message.grantee;
556
+ obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl;
557
+ return obj;
558
+ },
559
+ fromAminoMsg(object: MsgRevokeAminoMsg): MsgRevoke {
560
+ return MsgRevoke.fromAmino(object.value);
561
+ },
562
+ toAminoMsg(message: MsgRevoke): MsgRevokeAminoMsg {
563
+ return {
564
+ type: "cosmos-sdk/MsgRevoke",
565
+ value: MsgRevoke.toAmino(message)
566
+ };
567
+ },
568
+ fromProtoMsg(message: MsgRevokeProtoMsg): MsgRevoke {
569
+ return MsgRevoke.decode(message.value);
570
+ },
571
+ toProto(message: MsgRevoke): Uint8Array {
572
+ return MsgRevoke.encode(message).finish();
573
+ },
574
+ toProtoMsg(message: MsgRevoke): MsgRevokeProtoMsg {
575
+ return {
576
+ typeUrl: "/cosmos.authz.v1beta1.MsgRevoke",
577
+ value: MsgRevoke.encode(message).finish()
578
+ };
579
+ }
580
+ };
581
+ GlobalDecoderRegistry.register(MsgRevoke.typeUrl, MsgRevoke);
582
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgRevoke.aminoType, MsgRevoke.typeUrl);
583
+ function createBaseMsgRevokeResponse(): MsgRevokeResponse {
584
+ return {};
585
+ }
586
+ export const MsgRevokeResponse = {
587
+ typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse",
588
+ aminoType: "cosmos-sdk/MsgRevokeResponse",
589
+ is(o: any): o is MsgRevokeResponse {
590
+ return o && o.$typeUrl === MsgRevokeResponse.typeUrl;
591
+ },
592
+ isAmino(o: any): o is MsgRevokeResponseAmino {
593
+ return o && o.$typeUrl === MsgRevokeResponse.typeUrl;
594
+ },
595
+ encode(_: MsgRevokeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
596
+ return writer;
597
+ },
598
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse {
599
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
600
+ let end = length === undefined ? reader.len : reader.pos + length;
601
+ const message = createBaseMsgRevokeResponse();
602
+ while (reader.pos < end) {
603
+ const tag = reader.uint32();
604
+ switch (tag >>> 3) {
605
+ default:
606
+ reader.skipType(tag & 7);
607
+ break;
608
+ }
609
+ }
610
+ return message;
611
+ },
612
+ fromPartial(_: DeepPartial<MsgRevokeResponse>): MsgRevokeResponse {
613
+ const message = createBaseMsgRevokeResponse();
614
+ return message;
615
+ },
616
+ fromAmino(_: MsgRevokeResponseAmino): MsgRevokeResponse {
617
+ const message = createBaseMsgRevokeResponse();
618
+ return message;
619
+ },
620
+ toAmino(_: MsgRevokeResponse): MsgRevokeResponseAmino {
621
+ const obj: any = {};
622
+ return obj;
623
+ },
624
+ fromAminoMsg(object: MsgRevokeResponseAminoMsg): MsgRevokeResponse {
625
+ return MsgRevokeResponse.fromAmino(object.value);
626
+ },
627
+ toAminoMsg(message: MsgRevokeResponse): MsgRevokeResponseAminoMsg {
628
+ return {
629
+ type: "cosmos-sdk/MsgRevokeResponse",
630
+ value: MsgRevokeResponse.toAmino(message)
631
+ };
632
+ },
633
+ fromProtoMsg(message: MsgRevokeResponseProtoMsg): MsgRevokeResponse {
634
+ return MsgRevokeResponse.decode(message.value);
635
+ },
636
+ toProto(message: MsgRevokeResponse): Uint8Array {
637
+ return MsgRevokeResponse.encode(message).finish();
638
+ },
639
+ toProtoMsg(message: MsgRevokeResponse): MsgRevokeResponseProtoMsg {
640
+ return {
641
+ typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse",
642
+ value: MsgRevokeResponse.encode(message).finish()
643
+ };
644
+ }
645
+ };
646
+ GlobalDecoderRegistry.register(MsgRevokeResponse.typeUrl, MsgRevokeResponse);
647
+ GlobalDecoderRegistry.registerAminoProtoMapping(MsgRevokeResponse.aminoType, MsgRevokeResponse.typeUrl);