decentralcardgame-cardchain-client-ts 0.0.7 → 0.0.8

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 (483) hide show
  1. package/DecentralCardGame.cardchain.cardchain/index.js +5 -0
  2. package/DecentralCardGame.cardchain.cardchain/module.js +1046 -0
  3. package/DecentralCardGame.cardchain.cardchain/registry.js +85 -0
  4. package/DecentralCardGame.cardchain.cardchain/rest.js +396 -0
  5. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +562 -0
  6. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/collection.js +365 -0
  7. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/collection_proposal.js +93 -0
  8. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.js +102 -0
  9. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +350 -0
  10. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +254 -0
  11. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.js +88 -0
  12. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.js +210 -0
  13. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.js +67 -0
  14. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.js +73 -0
  15. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +275 -0
  16. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +1980 -0
  17. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.js +85 -0
  18. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.js +148 -0
  19. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.js +93 -0
  20. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +4294 -0
  21. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +496 -0
  22. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/vote_right.js +84 -0
  23. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting_result.js +127 -0
  24. package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting_results.js +148 -0
  25. package/DecentralCardGame.cardchain.cardchain/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  26. package/DecentralCardGame.cardchain.cardchain/types/cosmos/base/v1beta1/coin.js +192 -0
  27. package/DecentralCardGame.cardchain.cardchain/types/cosmos_proto/cosmos.js +171 -0
  28. package/DecentralCardGame.cardchain.cardchain/types/gogoproto/gogo.js +2 -0
  29. package/DecentralCardGame.cardchain.cardchain/types/google/api/annotations.js +2 -0
  30. package/DecentralCardGame.cardchain.cardchain/types/google/api/http.js +260 -0
  31. package/DecentralCardGame.cardchain.cardchain/types/google/protobuf/descriptor.js +2830 -0
  32. package/DecentralCardGame.cardchain.cardchain/types.js +23 -0
  33. package/cosmos.auth.v1beta1/index.js +5 -0
  34. package/cosmos.auth.v1beta1/module.js +62 -0
  35. package/cosmos.auth.v1beta1/registry.js +2 -0
  36. package/cosmos.auth.v1beta1/rest.js +213 -0
  37. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +260 -0
  38. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.js +67 -0
  39. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +868 -0
  40. package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  41. package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  42. package/cosmos.auth.v1beta1/types/gogoproto/gogo.js +2 -0
  43. package/cosmos.auth.v1beta1/types/google/api/annotations.js +2 -0
  44. package/cosmos.auth.v1beta1/types/google/api/http.js +260 -0
  45. package/cosmos.auth.v1beta1/types/google/protobuf/any.js +99 -0
  46. package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  47. package/cosmos.auth.v1beta1/types.js +4 -0
  48. package/cosmos.authz.v1beta1/index.js +5 -0
  49. package/cosmos.authz.v1beta1/module.js +140 -0
  50. package/cosmos.authz.v1beta1/registry.js +9 -0
  51. package/cosmos.authz.v1beta1/rest.js +131 -0
  52. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.js +244 -0
  53. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.js +128 -0
  54. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.js +54 -0
  55. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.js +394 -0
  56. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.js +362 -0
  57. package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  58. package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  59. package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  60. package/cosmos.authz.v1beta1/types/gogoproto/gogo.js +2 -0
  61. package/cosmos.authz.v1beta1/types/google/api/annotations.js +2 -0
  62. package/cosmos.authz.v1beta1/types/google/api/http.js +260 -0
  63. package/cosmos.authz.v1beta1/types/google/protobuf/any.js +99 -0
  64. package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  65. package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.js +84 -0
  66. package/cosmos.authz.v1beta1/types.js +7 -0
  67. package/cosmos.bank.v1beta1/index.js +5 -0
  68. package/cosmos.bank.v1beta1/module.js +125 -0
  69. package/cosmos.bank.v1beta1/registry.js +7 -0
  70. package/cosmos.bank.v1beta1/rest.js +222 -0
  71. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +50 -0
  72. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.js +455 -0
  73. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +154 -0
  74. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1014 -0
  75. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +219 -0
  76. package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  77. package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  78. package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  79. package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  80. package/cosmos.bank.v1beta1/types/gogoproto/gogo.js +2 -0
  81. package/cosmos.bank.v1beta1/types/google/api/annotations.js +2 -0
  82. package/cosmos.bank.v1beta1/types/google/api/http.js +260 -0
  83. package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  84. package/cosmos.bank.v1beta1/types.js +11 -0
  85. package/cosmos.base.tendermint.v1beta1/index.js +5 -0
  86. package/cosmos.base.tendermint.v1beta1/module.js +70 -0
  87. package/cosmos.base.tendermint.v1beta1/registry.js +2 -0
  88. package/cosmos.base.tendermint.v1beta1/rest.js +209 -0
  89. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  90. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.js +1281 -0
  91. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.js +350 -0
  92. package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  93. package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.js +2 -0
  94. package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.js +2 -0
  95. package/cosmos.base.tendermint.v1beta1/types/google/api/http.js +260 -0
  96. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.js +99 -0
  97. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  98. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.js +84 -0
  99. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.js +100 -0
  100. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.js +356 -0
  101. package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.js +352 -0
  102. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.js +86 -0
  103. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.js +343 -0
  104. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.js +1207 -0
  105. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.js +254 -0
  106. package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.js +133 -0
  107. package/cosmos.base.tendermint.v1beta1/types.js +8 -0
  108. package/cosmos.crisis.v1beta1/index.js +5 -0
  109. package/cosmos.crisis.v1beta1/module.js +81 -0
  110. package/cosmos.crisis.v1beta1/registry.js +5 -0
  111. package/cosmos.crisis.v1beta1/rest.js +83 -0
  112. package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  113. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.js +51 -0
  114. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +111 -0
  115. package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  116. package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  117. package/cosmos.crisis.v1beta1/types/gogoproto/gogo.js +2 -0
  118. package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  119. package/cosmos.crisis.v1beta1/types.js +1 -0
  120. package/cosmos.distribution.v1beta1/index.js +5 -0
  121. package/cosmos.distribution.v1beta1/module.js +189 -0
  122. package/cosmos.distribution.v1beta1/registry.js +11 -0
  123. package/cosmos.distribution.v1beta1/rest.js +214 -0
  124. package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  125. package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  126. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.js +737 -0
  127. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.js +656 -0
  128. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +926 -0
  129. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +396 -0
  130. package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  131. package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  132. package/cosmos.distribution.v1beta1/types/gogoproto/gogo.js +2 -0
  133. package/cosmos.distribution.v1beta1/types/google/api/annotations.js +2 -0
  134. package/cosmos.distribution.v1beta1/types/google/api/http.js +260 -0
  135. package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  136. package/cosmos.distribution.v1beta1/types.js +20 -0
  137. package/cosmos.evidence.v1beta1/index.js +5 -0
  138. package/cosmos.evidence.v1beta1/module.js +84 -0
  139. package/cosmos.evidence.v1beta1/registry.js +5 -0
  140. package/cosmos.evidence.v1beta1/rest.js +115 -0
  141. package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  142. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.js +124 -0
  143. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.js +50 -0
  144. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +254 -0
  145. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.js +154 -0
  146. package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  147. package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  148. package/cosmos.evidence.v1beta1/types/gogoproto/gogo.js +2 -0
  149. package/cosmos.evidence.v1beta1/types/google/api/annotations.js +2 -0
  150. package/cosmos.evidence.v1beta1/types/google/api/http.js +260 -0
  151. package/cosmos.evidence.v1beta1/types/google/protobuf/any.js +99 -0
  152. package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  153. package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.js +84 -0
  154. package/cosmos.evidence.v1beta1/types.js +2 -0
  155. package/cosmos.feegrant.v1beta1/index.js +5 -0
  156. package/cosmos.feegrant.v1beta1/module.js +113 -0
  157. package/cosmos.feegrant.v1beta1/registry.js +7 -0
  158. package/cosmos.feegrant.v1beta1/rest.js +130 -0
  159. package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  160. package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  161. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.js +307 -0
  162. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.js +52 -0
  163. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.js +357 -0
  164. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.js +205 -0
  165. package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  166. package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  167. package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.js +2 -0
  168. package/cosmos.feegrant.v1beta1/types/google/api/annotations.js +2 -0
  169. package/cosmos.feegrant.v1beta1/types/google/api/http.js +260 -0
  170. package/cosmos.feegrant.v1beta1/types/google/protobuf/any.js +99 -0
  171. package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  172. package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.js +84 -0
  173. package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.js +84 -0
  174. package/cosmos.feegrant.v1beta1/types.js +5 -0
  175. package/cosmos.gov.v1/index.js +5 -0
  176. package/cosmos.gov.v1/module.js +167 -0
  177. package/cosmos.gov.v1/registry.js +11 -0
  178. package/cosmos.gov.v1/rest.js +242 -0
  179. package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  180. package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.js +192 -0
  181. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +162 -0
  182. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +766 -0
  183. package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +917 -0
  184. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +590 -0
  185. package/cosmos.gov.v1/types/cosmos/msg/v1/msg.js +2 -0
  186. package/cosmos.gov.v1/types/cosmos_proto/cosmos.js +171 -0
  187. package/cosmos.gov.v1/types/gogoproto/gogo.js +2 -0
  188. package/cosmos.gov.v1/types/google/api/annotations.js +2 -0
  189. package/cosmos.gov.v1/types/google/api/http.js +260 -0
  190. package/cosmos.gov.v1/types/google/protobuf/any.js +99 -0
  191. package/cosmos.gov.v1/types/google/protobuf/descriptor.js +2830 -0
  192. package/cosmos.gov.v1/types/google/protobuf/duration.js +84 -0
  193. package/cosmos.gov.v1/types/google/protobuf/timestamp.js +84 -0
  194. package/cosmos.gov.v1/types.js +9 -0
  195. package/cosmos.gov.v1beta1/index.js +5 -0
  196. package/cosmos.gov.v1beta1/module.js +169 -0
  197. package/cosmos.gov.v1beta1/registry.js +11 -0
  198. package/cosmos.gov.v1beta1/rest.js +242 -0
  199. package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  200. package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  201. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.js +162 -0
  202. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.js +832 -0
  203. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.js +917 -0
  204. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.js +467 -0
  205. package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  206. package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  207. package/cosmos.gov.v1beta1/types/gogoproto/gogo.js +2 -0
  208. package/cosmos.gov.v1beta1/types/google/api/annotations.js +2 -0
  209. package/cosmos.gov.v1beta1/types/google/api/http.js +260 -0
  210. package/cosmos.gov.v1beta1/types/google/protobuf/any.js +99 -0
  211. package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  212. package/cosmos.gov.v1beta1/types/google/protobuf/duration.js +84 -0
  213. package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.js +84 -0
  214. package/cosmos.gov.v1beta1/types.js +10 -0
  215. package/cosmos.group.v1/index.js +5 -0
  216. package/cosmos.group.v1/module.js +421 -0
  217. package/cosmos.group.v1/registry.js +31 -0
  218. package/cosmos.group.v1/rest.js +366 -0
  219. package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  220. package/cosmos.group.v1/types/cosmos/group/v1/events.js +433 -0
  221. package/cosmos.group.v1/types/cosmos/group/v1/genesis.js +177 -0
  222. package/cosmos.group.v1/types/cosmos/group/v1/query.js +1578 -0
  223. package/cosmos.group.v1/types/cosmos/group/v1/tx.js +1621 -0
  224. package/cosmos.group.v1/types/cosmos/group/v1/types.js +1105 -0
  225. package/cosmos.group.v1/types/cosmos/msg/v1/msg.js +2 -0
  226. package/cosmos.group.v1/types/cosmos_proto/cosmos.js +171 -0
  227. package/cosmos.group.v1/types/gogoproto/gogo.js +2 -0
  228. package/cosmos.group.v1/types/google/api/annotations.js +2 -0
  229. package/cosmos.group.v1/types/google/api/http.js +260 -0
  230. package/cosmos.group.v1/types/google/protobuf/any.js +99 -0
  231. package/cosmos.group.v1/types/google/protobuf/descriptor.js +2830 -0
  232. package/cosmos.group.v1/types/google/protobuf/duration.js +84 -0
  233. package/cosmos.group.v1/types/google/protobuf/timestamp.js +84 -0
  234. package/cosmos.group.v1/types.js +21 -0
  235. package/cosmos.mint.v1beta1/index.js +5 -0
  236. package/cosmos.mint.v1beta1/module.js +60 -0
  237. package/cosmos.mint.v1beta1/registry.js +2 -0
  238. package/cosmos.mint.v1beta1/rest.js +128 -0
  239. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.js +63 -0
  240. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.js +179 -0
  241. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.js +298 -0
  242. package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  243. package/cosmos.mint.v1beta1/types/gogoproto/gogo.js +2 -0
  244. package/cosmos.mint.v1beta1/types/google/api/annotations.js +2 -0
  245. package/cosmos.mint.v1beta1/types/google/api/http.js +260 -0
  246. package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  247. package/cosmos.mint.v1beta1/types.js +3 -0
  248. package/cosmos.nft.v1beta1/index.js +5 -0
  249. package/cosmos.nft.v1beta1/module.js +68 -0
  250. package/cosmos.nft.v1beta1/registry.js +2 -0
  251. package/cosmos.nft.v1beta1/rest.js +187 -0
  252. package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  253. package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  254. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.js +198 -0
  255. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.js +126 -0
  256. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.js +183 -0
  257. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.js +752 -0
  258. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.js +120 -0
  259. package/cosmos.nft.v1beta1/types/google/api/annotations.js +2 -0
  260. package/cosmos.nft.v1beta1/types/google/api/http.js +260 -0
  261. package/cosmos.nft.v1beta1/types/google/protobuf/any.js +99 -0
  262. package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  263. package/cosmos.nft.v1beta1/types.js +7 -0
  264. package/cosmos.params.v1beta1/index.js +5 -0
  265. package/cosmos.params.v1beta1/module.js +62 -0
  266. package/cosmos.params.v1beta1/registry.js +2 -0
  267. package/cosmos.params.v1beta1/rest.js +116 -0
  268. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.js +133 -0
  269. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.js +257 -0
  270. package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  271. package/cosmos.params.v1beta1/types/gogoproto/gogo.js +2 -0
  272. package/cosmos.params.v1beta1/types/google/api/annotations.js +2 -0
  273. package/cosmos.params.v1beta1/types/google/api/http.js +260 -0
  274. package/cosmos.params.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  275. package/cosmos.params.v1beta1/types.js +4 -0
  276. package/cosmos.slashing.v1beta1/index.js +5 -0
  277. package/cosmos.slashing.v1beta1/module.js +92 -0
  278. package/cosmos.slashing.v1beta1/registry.js +5 -0
  279. package/cosmos.slashing.v1beta1/rest.js +129 -0
  280. package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  281. package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  282. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.js +279 -0
  283. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.js +300 -0
  284. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.js +275 -0
  285. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +91 -0
  286. package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  287. package/cosmos.slashing.v1beta1/types/gogoproto/gogo.js +2 -0
  288. package/cosmos.slashing.v1beta1/types/google/api/annotations.js +2 -0
  289. package/cosmos.slashing.v1beta1/types/google/api/http.js +260 -0
  290. package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  291. package/cosmos.slashing.v1beta1/types/google/protobuf/duration.js +84 -0
  292. package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.js +84 -0
  293. package/cosmos.slashing.v1beta1/types.js +6 -0
  294. package/cosmos.staking.v1beta1/index.js +5 -0
  295. package/cosmos.staking.v1beta1/module.js +243 -0
  296. package/cosmos.staking.v1beta1/registry.js +15 -0
  297. package/cosmos.staking.v1beta1/rest.js +308 -0
  298. package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  299. package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  300. package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  301. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.js +184 -0
  302. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.js +259 -0
  303. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.js +1568 -0
  304. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +1436 -0
  305. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +768 -0
  306. package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  307. package/cosmos.staking.v1beta1/types/gogoproto/gogo.js +2 -0
  308. package/cosmos.staking.v1beta1/types/google/api/annotations.js +2 -0
  309. package/cosmos.staking.v1beta1/types/google/api/http.js +260 -0
  310. package/cosmos.staking.v1beta1/types/google/protobuf/any.js +99 -0
  311. package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  312. package/cosmos.staking.v1beta1/types/google/protobuf/duration.js +84 -0
  313. package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.js +84 -0
  314. package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.js +100 -0
  315. package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.js +356 -0
  316. package/cosmos.staking.v1beta1/types/tendermint/types/types.js +1207 -0
  317. package/cosmos.staking.v1beta1/types/tendermint/types/validator.js +254 -0
  318. package/cosmos.staking.v1beta1/types/tendermint/version/types.js +133 -0
  319. package/cosmos.staking.v1beta1/types.js +24 -0
  320. package/cosmos.tx.v1beta1/index.js +5 -0
  321. package/cosmos.tx.v1beta1/module.js +82 -0
  322. package/cosmos.tx.v1beta1/registry.js +2 -0
  323. package/cosmos.tx.v1beta1/rest.js +256 -0
  324. package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.js +803 -0
  325. package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  326. package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  327. package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.js +147 -0
  328. package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.js +449 -0
  329. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +802 -0
  330. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.js +959 -0
  331. package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  332. package/cosmos.tx.v1beta1/types/gogoproto/gogo.js +2 -0
  333. package/cosmos.tx.v1beta1/types/google/api/annotations.js +2 -0
  334. package/cosmos.tx.v1beta1/types/google/api/http.js +260 -0
  335. package/cosmos.tx.v1beta1/types/google/protobuf/any.js +99 -0
  336. package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  337. package/cosmos.tx.v1beta1/types/google/protobuf/duration.js +84 -0
  338. package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.js +84 -0
  339. package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +3486 -0
  340. package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.js +100 -0
  341. package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.js +356 -0
  342. package/cosmos.tx.v1beta1/types/tendermint/types/block.js +86 -0
  343. package/cosmos.tx.v1beta1/types/tendermint/types/evidence.js +343 -0
  344. package/cosmos.tx.v1beta1/types/tendermint/types/params.js +378 -0
  345. package/cosmos.tx.v1beta1/types/tendermint/types/types.js +1207 -0
  346. package/cosmos.tx.v1beta1/types/tendermint/types/validator.js +254 -0
  347. package/cosmos.tx.v1beta1/types/tendermint/version/types.js +133 -0
  348. package/cosmos.tx.v1beta1/types.js +14 -0
  349. package/cosmos.upgrade.v1beta1/index.js +5 -0
  350. package/cosmos.upgrade.v1beta1/module.js +113 -0
  351. package/cosmos.upgrade.v1beta1/registry.js +7 -0
  352. package/cosmos.upgrade.v1beta1/rest.js +162 -0
  353. package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  354. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.js +501 -0
  355. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.js +183 -0
  356. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  357. package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  358. package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.js +2 -0
  359. package/cosmos.upgrade.v1beta1/types/google/api/annotations.js +2 -0
  360. package/cosmos.upgrade.v1beta1/types/google/api/http.js +260 -0
  361. package/cosmos.upgrade.v1beta1/types/google/protobuf/any.js +99 -0
  362. package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  363. package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.js +84 -0
  364. package/cosmos.upgrade.v1beta1/types.js +5 -0
  365. package/cosmos.vesting.v1beta1/index.js +5 -0
  366. package/cosmos.vesting.v1beta1/module.js +140 -0
  367. package/cosmos.vesting.v1beta1/registry.js +9 -0
  368. package/cosmos.vesting.v1beta1/rest.js +83 -0
  369. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +260 -0
  370. package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
  371. package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
  372. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.js +383 -0
  373. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.js +422 -0
  374. package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.js +171 -0
  375. package/cosmos.vesting.v1beta1/types/gogoproto/gogo.js +2 -0
  376. package/cosmos.vesting.v1beta1/types/google/protobuf/any.js +99 -0
  377. package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.js +2830 -0
  378. package/cosmos.vesting.v1beta1/types.js +7 -0
  379. package/ibc.applications.interchain_accounts.controller.v1/index.js +5 -0
  380. package/ibc.applications.interchain_accounts.controller.v1/module.js +58 -0
  381. package/ibc.applications.interchain_accounts.controller.v1/registry.js +2 -0
  382. package/ibc.applications.interchain_accounts.controller.v1/rest.js +123 -0
  383. package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.js +2 -0
  384. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.js +2 -0
  385. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.js +260 -0
  386. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.js +99 -0
  387. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.js +2830 -0
  388. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.js +47 -0
  389. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.js +193 -0
  390. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +266 -0
  391. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.js +192 -0
  392. package/ibc.applications.interchain_accounts.controller.v1/types.js +2 -0
  393. package/ibc.applications.interchain_accounts.host.v1/index.js +5 -0
  394. package/ibc.applications.interchain_accounts.host.v1/module.js +58 -0
  395. package/ibc.applications.interchain_accounts.host.v1/registry.js +2 -0
  396. package/ibc.applications.interchain_accounts.host.v1/rest.js +100 -0
  397. package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.js +2 -0
  398. package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.js +2 -0
  399. package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.js +260 -0
  400. package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.js +2830 -0
  401. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.js +63 -0
  402. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.js +94 -0
  403. package/ibc.applications.interchain_accounts.host.v1/types.js +2 -0
  404. package/ibc.applications.transfer.v1/index.js +5 -0
  405. package/ibc.applications.transfer.v1/module.js +86 -0
  406. package/ibc.applications.transfer.v1/registry.js +5 -0
  407. package/ibc.applications.transfer.v1/rest.js +157 -0
  408. package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  409. package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.js +192 -0
  410. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  411. package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.js +171 -0
  412. package/ibc.applications.transfer.v1/types/gogoproto/gogo.js +2 -0
  413. package/ibc.applications.transfer.v1/types/google/api/annotations.js +2 -0
  414. package/ibc.applications.transfer.v1/types/google/api/http.js +260 -0
  415. package/ibc.applications.transfer.v1/types/google/protobuf/any.js +99 -0
  416. package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.js +2830 -0
  417. package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.js +84 -0
  418. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +75 -0
  419. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +483 -0
  420. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.js +110 -0
  421. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.js +204 -0
  422. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.js +448 -0
  423. package/ibc.applications.transfer.v1/types.js +3 -0
  424. package/ibc.core.channel.v1/index.js +5 -0
  425. package/ibc.core.channel.v1/module.js +72 -0
  426. package/ibc.core.channel.v1/registry.js +2 -0
  427. package/ibc.core.channel.v1/rest.js +323 -0
  428. package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  429. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  430. package/ibc.core.channel.v1/types/cosmos_proto/cosmos.js +171 -0
  431. package/ibc.core.channel.v1/types/gogoproto/gogo.js +2 -0
  432. package/ibc.core.channel.v1/types/google/api/annotations.js +2 -0
  433. package/ibc.core.channel.v1/types/google/api/http.js +260 -0
  434. package/ibc.core.channel.v1/types/google/protobuf/any.js +99 -0
  435. package/ibc.core.channel.v1/types/google/protobuf/descriptor.js +2830 -0
  436. package/ibc.core.channel.v1/types/google/protobuf/timestamp.js +84 -0
  437. package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.js +714 -0
  438. package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.js +254 -0
  439. package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.js +1866 -0
  440. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +1425 -0
  441. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.js +448 -0
  442. package/ibc.core.channel.v1/types.js +9 -0
  443. package/ibc.core.client.v1/index.js +5 -0
  444. package/ibc.core.client.v1/module.js +74 -0
  445. package/ibc.core.client.v1/registry.js +2 -0
  446. package/ibc.core.client.v1/rest.js +218 -0
  447. package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  448. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  449. package/ibc.core.client.v1/types/cosmos_proto/cosmos.js +171 -0
  450. package/ibc.core.client.v1/types/gogoproto/gogo.js +2 -0
  451. package/ibc.core.client.v1/types/google/api/annotations.js +2 -0
  452. package/ibc.core.client.v1/types/google/api/http.js +260 -0
  453. package/ibc.core.client.v1/types/google/protobuf/any.js +99 -0
  454. package/ibc.core.client.v1/types/google/protobuf/descriptor.js +2830 -0
  455. package/ibc.core.client.v1/types/google/protobuf/timestamp.js +84 -0
  456. package/ibc.core.client.v1/types/ibc/core/client/v1/client.js +448 -0
  457. package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.js +287 -0
  458. package/ibc.core.client.v1/types/ibc/core/client/v1/query.js +1026 -0
  459. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +509 -0
  460. package/ibc.core.client.v1/types.js +10 -0
  461. package/ibc.core.connection.v1/index.js +5 -0
  462. package/ibc.core.connection.v1/module.js +70 -0
  463. package/ibc.core.connection.v1/registry.js +2 -0
  464. package/ibc.core.connection.v1/rest.js +191 -0
  465. package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
  466. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
  467. package/ibc.core.connection.v1/types/cosmos_proto/cosmos.js +171 -0
  468. package/ibc.core.connection.v1/types/gogoproto/gogo.js +2 -0
  469. package/ibc.core.connection.v1/types/google/api/annotations.js +2 -0
  470. package/ibc.core.connection.v1/types/google/api/http.js +260 -0
  471. package/ibc.core.connection.v1/types/google/protobuf/any.js +99 -0
  472. package/ibc.core.connection.v1/types/google/protobuf/descriptor.js +2830 -0
  473. package/ibc.core.connection.v1/types/google/protobuf/timestamp.js +84 -0
  474. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.js +448 -0
  475. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +223 -0
  476. package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.js +537 -0
  477. package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.js +120 -0
  478. package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.js +766 -0
  479. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +705 -0
  480. package/ibc.core.connection.v1/types/proofs.js +1126 -0
  481. package/ibc.core.connection.v1/types.js +8 -0
  482. package/package.json +4 -1
  483. package/tsconfig.json +0 -1
@@ -0,0 +1,4 @@
1
+ import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth";
2
+ import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth";
3
+ import { Params } from "./types/cosmos/auth/v1beta1/auth";
4
+ export { BaseAccount, ModuleAccount, Params, };
@@ -0,0 +1,5 @@
1
+ import Module from './module';
2
+ import { txClient, queryClient, registry } from './module';
3
+ import { msgTypes } from './registry';
4
+ export * from "./types";
5
+ export { Module, msgTypes, txClient, queryClient, registry };
@@ -0,0 +1,140 @@
1
+ // Generated by Ignite ignite.com/cli
2
+ import { SigningStargateClient } from "@cosmjs/stargate";
3
+ import { Registry } from "@cosmjs/proto-signing";
4
+ import { msgTypes } from './registry';
5
+ import { Api } from "./rest";
6
+ import { MsgExec } from "./types/cosmos/authz/v1beta1/tx";
7
+ import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx";
8
+ import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx";
9
+ import { GenericAuthorization as typeGenericAuthorization } from "./types";
10
+ import { Grant as typeGrant } from "./types";
11
+ import { GrantAuthorization as typeGrantAuthorization } from "./types";
12
+ import { GrantQueueItem as typeGrantQueueItem } from "./types";
13
+ import { EventGrant as typeEventGrant } from "./types";
14
+ import { EventRevoke as typeEventRevoke } from "./types";
15
+ export { MsgExec, MsgRevoke, MsgGrant };
16
+ export const registry = new Registry(msgTypes);
17
+ function getStructure(template) {
18
+ const structure = { fields: [] };
19
+ for (let [key, value] of Object.entries(template)) {
20
+ let field = { name: key, type: typeof value };
21
+ structure.fields.push(field);
22
+ }
23
+ return structure;
24
+ }
25
+ const defaultFee = {
26
+ amount: [],
27
+ gas: "200000",
28
+ };
29
+ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
30
+ return {
31
+ async sendMsgExec({ value, fee, memo }) {
32
+ if (!signer) {
33
+ throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.');
34
+ }
35
+ try {
36
+ const { address } = (await signer.getAccounts())[0];
37
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
38
+ let msg = this.msgExec({ value: MsgExec.fromPartial(value) });
39
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
40
+ }
41
+ catch (e) {
42
+ throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message);
43
+ }
44
+ },
45
+ async sendMsgRevoke({ value, fee, memo }) {
46
+ if (!signer) {
47
+ throw new Error('TxClient:sendMsgRevoke: Unable to sign Tx. Signer is not present.');
48
+ }
49
+ try {
50
+ const { address } = (await signer.getAccounts())[0];
51
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
52
+ let msg = this.msgRevoke({ value: MsgRevoke.fromPartial(value) });
53
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
54
+ }
55
+ catch (e) {
56
+ throw new Error('TxClient:sendMsgRevoke: Could not broadcast Tx: ' + e.message);
57
+ }
58
+ },
59
+ async sendMsgGrant({ value, fee, memo }) {
60
+ if (!signer) {
61
+ throw new Error('TxClient:sendMsgGrant: Unable to sign Tx. Signer is not present.');
62
+ }
63
+ try {
64
+ const { address } = (await signer.getAccounts())[0];
65
+ const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
66
+ let msg = this.msgGrant({ value: MsgGrant.fromPartial(value) });
67
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
68
+ }
69
+ catch (e) {
70
+ throw new Error('TxClient:sendMsgGrant: Could not broadcast Tx: ' + e.message);
71
+ }
72
+ },
73
+ msgExec({ value }) {
74
+ try {
75
+ return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: MsgExec.fromPartial(value) };
76
+ }
77
+ catch (e) {
78
+ throw new Error('TxClient:MsgExec: Could not create message: ' + e.message);
79
+ }
80
+ },
81
+ msgRevoke({ value }) {
82
+ try {
83
+ return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.fromPartial(value) };
84
+ }
85
+ catch (e) {
86
+ throw new Error('TxClient:MsgRevoke: Could not create message: ' + e.message);
87
+ }
88
+ },
89
+ msgGrant({ value }) {
90
+ try {
91
+ return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: MsgGrant.fromPartial(value) };
92
+ }
93
+ catch (e) {
94
+ throw new Error('TxClient:MsgGrant: Could not create message: ' + e.message);
95
+ }
96
+ },
97
+ };
98
+ };
99
+ export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
100
+ return new Api({ baseURL: addr });
101
+ };
102
+ class SDKModule {
103
+ constructor(client) {
104
+ this.registry = [];
105
+ this.query = queryClient({ addr: client.env.apiURL });
106
+ this.updateTX(client);
107
+ this.structure = {
108
+ GenericAuthorization: getStructure(typeGenericAuthorization.fromPartial({})),
109
+ Grant: getStructure(typeGrant.fromPartial({})),
110
+ GrantAuthorization: getStructure(typeGrantAuthorization.fromPartial({})),
111
+ GrantQueueItem: getStructure(typeGrantQueueItem.fromPartial({})),
112
+ EventGrant: getStructure(typeEventGrant.fromPartial({})),
113
+ EventRevoke: getStructure(typeEventRevoke.fromPartial({})),
114
+ };
115
+ client.on('signer-changed', (signer) => {
116
+ this.updateTX(client);
117
+ });
118
+ }
119
+ updateTX(client) {
120
+ const methods = txClient({
121
+ signer: client.signer,
122
+ addr: client.env.rpcURL,
123
+ prefix: client.env.prefix ?? "cosmos",
124
+ });
125
+ this.tx = methods;
126
+ for (let m in methods) {
127
+ this.tx[m] = methods[m].bind(this.tx);
128
+ }
129
+ }
130
+ }
131
+ ;
132
+ const Module = (test) => {
133
+ return {
134
+ module: {
135
+ CosmosAuthzV1Beta1: new SDKModule(test)
136
+ },
137
+ registry: msgTypes
138
+ };
139
+ };
140
+ export default Module;
@@ -0,0 +1,9 @@
1
+ import { MsgExec } from "./types/cosmos/authz/v1beta1/tx";
2
+ import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx";
3
+ import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx";
4
+ const msgTypes = [
5
+ ["/cosmos.authz.v1beta1.MsgExec", MsgExec],
6
+ ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke],
7
+ ["/cosmos.authz.v1beta1.MsgGrant", MsgGrant],
8
+ ];
9
+ export { msgTypes };
@@ -0,0 +1,131 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /*
4
+ * ---------------------------------------------------------------
5
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
6
+ * ## ##
7
+ * ## AUTHOR: acacode ##
8
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
9
+ * ---------------------------------------------------------------
10
+ */
11
+ import axios from "axios";
12
+ export var ContentType;
13
+ (function (ContentType) {
14
+ ContentType["Json"] = "application/json";
15
+ ContentType["FormData"] = "multipart/form-data";
16
+ ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
17
+ })(ContentType || (ContentType = {}));
18
+ export class HttpClient {
19
+ constructor({ securityWorker, secure, format, ...axiosConfig } = {}) {
20
+ this.securityData = null;
21
+ this.setSecurityData = (data) => {
22
+ this.securityData = data;
23
+ };
24
+ this.request = async ({ secure, path, type, query, format, body, ...params }) => {
25
+ const secureParams = ((typeof secure === "boolean" ? secure : this.secure) &&
26
+ this.securityWorker &&
27
+ (await this.securityWorker(this.securityData))) ||
28
+ {};
29
+ const requestParams = this.mergeRequestParams(params, secureParams);
30
+ const responseFormat = (format && this.format) || void 0;
31
+ if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
32
+ requestParams.headers.common = { Accept: "*/*" };
33
+ requestParams.headers.post = {};
34
+ requestParams.headers.put = {};
35
+ body = this.createFormData(body);
36
+ }
37
+ return this.instance.request({
38
+ ...requestParams,
39
+ headers: {
40
+ ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
41
+ ...(requestParams.headers || {}),
42
+ },
43
+ params: query,
44
+ responseType: responseFormat,
45
+ data: body,
46
+ url: path,
47
+ });
48
+ };
49
+ this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
50
+ this.secure = secure;
51
+ this.format = format;
52
+ this.securityWorker = securityWorker;
53
+ }
54
+ mergeRequestParams(params1, params2) {
55
+ return {
56
+ ...this.instance.defaults,
57
+ ...params1,
58
+ ...(params2 || {}),
59
+ headers: {
60
+ ...(this.instance.defaults.headers || {}),
61
+ ...(params1.headers || {}),
62
+ ...((params2 && params2.headers) || {}),
63
+ },
64
+ };
65
+ }
66
+ createFormData(input) {
67
+ return Object.keys(input || {}).reduce((formData, key) => {
68
+ const property = input[key];
69
+ formData.append(key, property instanceof Blob
70
+ ? property
71
+ : typeof property === "object" && property !== null
72
+ ? JSON.stringify(property)
73
+ : `${property}`);
74
+ return formData;
75
+ }, new FormData());
76
+ }
77
+ }
78
+ /**
79
+ * @title cosmos/authz/v1beta1/authz.proto
80
+ * @version version not set
81
+ */
82
+ export class Api extends HttpClient {
83
+ constructor() {
84
+ super(...arguments);
85
+ /**
86
+ * No description
87
+ *
88
+ * @tags Query
89
+ * @name QueryGrants
90
+ * @summary Returns list of `Authorization`, granted to the grantee by the granter.
91
+ * @request GET:/cosmos/authz/v1beta1/grants
92
+ */
93
+ this.queryGrants = (query, params = {}) => this.request({
94
+ path: `/cosmos/authz/v1beta1/grants`,
95
+ method: "GET",
96
+ query: query,
97
+ format: "json",
98
+ ...params,
99
+ });
100
+ /**
101
+ * @description Since: cosmos-sdk 0.46
102
+ *
103
+ * @tags Query
104
+ * @name QueryGranteeGrants
105
+ * @summary GranteeGrants returns a list of `GrantAuthorization` by grantee.
106
+ * @request GET:/cosmos/authz/v1beta1/grants/grantee/{grantee}
107
+ */
108
+ this.queryGranteeGrants = (grantee, query, params = {}) => this.request({
109
+ path: `/cosmos/authz/v1beta1/grants/grantee/${grantee}`,
110
+ method: "GET",
111
+ query: query,
112
+ format: "json",
113
+ ...params,
114
+ });
115
+ /**
116
+ * @description Since: cosmos-sdk 0.46
117
+ *
118
+ * @tags Query
119
+ * @name QueryGranterGrants
120
+ * @summary GranterGrants returns list of `GrantAuthorization`, granted by granter.
121
+ * @request GET:/cosmos/authz/v1beta1/grants/granter/{granter}
122
+ */
123
+ this.queryGranterGrants = (granter, query, params = {}) => this.request({
124
+ path: `/cosmos/authz/v1beta1/grants/granter/${granter}`,
125
+ method: "GET",
126
+ query: query,
127
+ format: "json",
128
+ ...params,
129
+ });
130
+ }
131
+ }
@@ -0,0 +1,244 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Any } from "../../../google/protobuf/any";
4
+ import { Timestamp } from "../../../google/protobuf/timestamp";
5
+ export const protobufPackage = "cosmos.authz.v1beta1";
6
+ function createBaseGenericAuthorization() {
7
+ return { msg: "" };
8
+ }
9
+ export const GenericAuthorization = {
10
+ encode(message, writer = _m0.Writer.create()) {
11
+ if (message.msg !== "") {
12
+ writer.uint32(10).string(message.msg);
13
+ }
14
+ return writer;
15
+ },
16
+ decode(input, length) {
17
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
18
+ let end = length === undefined ? reader.len : reader.pos + length;
19
+ const message = createBaseGenericAuthorization();
20
+ while (reader.pos < end) {
21
+ const tag = reader.uint32();
22
+ switch (tag >>> 3) {
23
+ case 1:
24
+ message.msg = reader.string();
25
+ break;
26
+ default:
27
+ reader.skipType(tag & 7);
28
+ break;
29
+ }
30
+ }
31
+ return message;
32
+ },
33
+ fromJSON(object) {
34
+ return { msg: isSet(object.msg) ? String(object.msg) : "" };
35
+ },
36
+ toJSON(message) {
37
+ const obj = {};
38
+ message.msg !== undefined && (obj.msg = message.msg);
39
+ return obj;
40
+ },
41
+ fromPartial(object) {
42
+ const message = createBaseGenericAuthorization();
43
+ message.msg = object.msg ?? "";
44
+ return message;
45
+ },
46
+ };
47
+ function createBaseGrant() {
48
+ return { authorization: undefined, expiration: undefined };
49
+ }
50
+ export const Grant = {
51
+ encode(message, writer = _m0.Writer.create()) {
52
+ if (message.authorization !== undefined) {
53
+ Any.encode(message.authorization, writer.uint32(10).fork()).ldelim();
54
+ }
55
+ if (message.expiration !== undefined) {
56
+ Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim();
57
+ }
58
+ return writer;
59
+ },
60
+ decode(input, length) {
61
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
62
+ let end = length === undefined ? reader.len : reader.pos + length;
63
+ const message = createBaseGrant();
64
+ while (reader.pos < end) {
65
+ const tag = reader.uint32();
66
+ switch (tag >>> 3) {
67
+ case 1:
68
+ message.authorization = Any.decode(reader, reader.uint32());
69
+ break;
70
+ case 2:
71
+ message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
72
+ break;
73
+ default:
74
+ reader.skipType(tag & 7);
75
+ break;
76
+ }
77
+ }
78
+ return message;
79
+ },
80
+ fromJSON(object) {
81
+ return {
82
+ authorization: isSet(object.authorization) ? Any.fromJSON(object.authorization) : undefined,
83
+ expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined,
84
+ };
85
+ },
86
+ toJSON(message) {
87
+ const obj = {};
88
+ message.authorization !== undefined
89
+ && (obj.authorization = message.authorization ? Any.toJSON(message.authorization) : undefined);
90
+ message.expiration !== undefined && (obj.expiration = message.expiration.toISOString());
91
+ return obj;
92
+ },
93
+ fromPartial(object) {
94
+ const message = createBaseGrant();
95
+ message.authorization = (object.authorization !== undefined && object.authorization !== null)
96
+ ? Any.fromPartial(object.authorization)
97
+ : undefined;
98
+ message.expiration = object.expiration ?? undefined;
99
+ return message;
100
+ },
101
+ };
102
+ function createBaseGrantAuthorization() {
103
+ return { granter: "", grantee: "", authorization: undefined, expiration: undefined };
104
+ }
105
+ export const GrantAuthorization = {
106
+ encode(message, writer = _m0.Writer.create()) {
107
+ if (message.granter !== "") {
108
+ writer.uint32(10).string(message.granter);
109
+ }
110
+ if (message.grantee !== "") {
111
+ writer.uint32(18).string(message.grantee);
112
+ }
113
+ if (message.authorization !== undefined) {
114
+ Any.encode(message.authorization, writer.uint32(26).fork()).ldelim();
115
+ }
116
+ if (message.expiration !== undefined) {
117
+ Timestamp.encode(toTimestamp(message.expiration), writer.uint32(34).fork()).ldelim();
118
+ }
119
+ return writer;
120
+ },
121
+ decode(input, length) {
122
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
123
+ let end = length === undefined ? reader.len : reader.pos + length;
124
+ const message = createBaseGrantAuthorization();
125
+ while (reader.pos < end) {
126
+ const tag = reader.uint32();
127
+ switch (tag >>> 3) {
128
+ case 1:
129
+ message.granter = reader.string();
130
+ break;
131
+ case 2:
132
+ message.grantee = reader.string();
133
+ break;
134
+ case 3:
135
+ message.authorization = Any.decode(reader, reader.uint32());
136
+ break;
137
+ case 4:
138
+ message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
139
+ break;
140
+ default:
141
+ reader.skipType(tag & 7);
142
+ break;
143
+ }
144
+ }
145
+ return message;
146
+ },
147
+ fromJSON(object) {
148
+ return {
149
+ granter: isSet(object.granter) ? String(object.granter) : "",
150
+ grantee: isSet(object.grantee) ? String(object.grantee) : "",
151
+ authorization: isSet(object.authorization) ? Any.fromJSON(object.authorization) : undefined,
152
+ expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined,
153
+ };
154
+ },
155
+ toJSON(message) {
156
+ const obj = {};
157
+ message.granter !== undefined && (obj.granter = message.granter);
158
+ message.grantee !== undefined && (obj.grantee = message.grantee);
159
+ message.authorization !== undefined
160
+ && (obj.authorization = message.authorization ? Any.toJSON(message.authorization) : undefined);
161
+ message.expiration !== undefined && (obj.expiration = message.expiration.toISOString());
162
+ return obj;
163
+ },
164
+ fromPartial(object) {
165
+ const message = createBaseGrantAuthorization();
166
+ message.granter = object.granter ?? "";
167
+ message.grantee = object.grantee ?? "";
168
+ message.authorization = (object.authorization !== undefined && object.authorization !== null)
169
+ ? Any.fromPartial(object.authorization)
170
+ : undefined;
171
+ message.expiration = object.expiration ?? undefined;
172
+ return message;
173
+ },
174
+ };
175
+ function createBaseGrantQueueItem() {
176
+ return { msgTypeUrls: [] };
177
+ }
178
+ export const GrantQueueItem = {
179
+ encode(message, writer = _m0.Writer.create()) {
180
+ for (const v of message.msgTypeUrls) {
181
+ writer.uint32(10).string(v);
182
+ }
183
+ return writer;
184
+ },
185
+ decode(input, length) {
186
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
187
+ let end = length === undefined ? reader.len : reader.pos + length;
188
+ const message = createBaseGrantQueueItem();
189
+ while (reader.pos < end) {
190
+ const tag = reader.uint32();
191
+ switch (tag >>> 3) {
192
+ case 1:
193
+ message.msgTypeUrls.push(reader.string());
194
+ break;
195
+ default:
196
+ reader.skipType(tag & 7);
197
+ break;
198
+ }
199
+ }
200
+ return message;
201
+ },
202
+ fromJSON(object) {
203
+ return { msgTypeUrls: Array.isArray(object?.msgTypeUrls) ? object.msgTypeUrls.map((e) => String(e)) : [] };
204
+ },
205
+ toJSON(message) {
206
+ const obj = {};
207
+ if (message.msgTypeUrls) {
208
+ obj.msgTypeUrls = message.msgTypeUrls.map((e) => e);
209
+ }
210
+ else {
211
+ obj.msgTypeUrls = [];
212
+ }
213
+ return obj;
214
+ },
215
+ fromPartial(object) {
216
+ const message = createBaseGrantQueueItem();
217
+ message.msgTypeUrls = object.msgTypeUrls?.map((e) => e) || [];
218
+ return message;
219
+ },
220
+ };
221
+ function toTimestamp(date) {
222
+ const seconds = date.getTime() / 1000;
223
+ const nanos = (date.getTime() % 1000) * 1000000;
224
+ return { seconds, nanos };
225
+ }
226
+ function fromTimestamp(t) {
227
+ let millis = t.seconds * 1000;
228
+ millis += t.nanos / 1000000;
229
+ return new Date(millis);
230
+ }
231
+ function fromJsonTimestamp(o) {
232
+ if (o instanceof Date) {
233
+ return o;
234
+ }
235
+ else if (typeof o === "string") {
236
+ return new Date(o);
237
+ }
238
+ else {
239
+ return fromTimestamp(Timestamp.fromJSON(o));
240
+ }
241
+ }
242
+ function isSet(value) {
243
+ return value !== null && value !== undefined;
244
+ }
@@ -0,0 +1,128 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ export const protobufPackage = "cosmos.authz.v1beta1";
4
+ function createBaseEventGrant() {
5
+ return { msgTypeUrl: "", granter: "", grantee: "" };
6
+ }
7
+ export const EventGrant = {
8
+ encode(message, writer = _m0.Writer.create()) {
9
+ if (message.msgTypeUrl !== "") {
10
+ writer.uint32(18).string(message.msgTypeUrl);
11
+ }
12
+ if (message.granter !== "") {
13
+ writer.uint32(26).string(message.granter);
14
+ }
15
+ if (message.grantee !== "") {
16
+ writer.uint32(34).string(message.grantee);
17
+ }
18
+ return writer;
19
+ },
20
+ decode(input, length) {
21
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
22
+ let end = length === undefined ? reader.len : reader.pos + length;
23
+ const message = createBaseEventGrant();
24
+ while (reader.pos < end) {
25
+ const tag = reader.uint32();
26
+ switch (tag >>> 3) {
27
+ case 2:
28
+ message.msgTypeUrl = reader.string();
29
+ break;
30
+ case 3:
31
+ message.granter = reader.string();
32
+ break;
33
+ case 4:
34
+ message.grantee = reader.string();
35
+ break;
36
+ default:
37
+ reader.skipType(tag & 7);
38
+ break;
39
+ }
40
+ }
41
+ return message;
42
+ },
43
+ fromJSON(object) {
44
+ return {
45
+ msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "",
46
+ granter: isSet(object.granter) ? String(object.granter) : "",
47
+ grantee: isSet(object.grantee) ? String(object.grantee) : "",
48
+ };
49
+ },
50
+ toJSON(message) {
51
+ const obj = {};
52
+ message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl);
53
+ message.granter !== undefined && (obj.granter = message.granter);
54
+ message.grantee !== undefined && (obj.grantee = message.grantee);
55
+ return obj;
56
+ },
57
+ fromPartial(object) {
58
+ const message = createBaseEventGrant();
59
+ message.msgTypeUrl = object.msgTypeUrl ?? "";
60
+ message.granter = object.granter ?? "";
61
+ message.grantee = object.grantee ?? "";
62
+ return message;
63
+ },
64
+ };
65
+ function createBaseEventRevoke() {
66
+ return { msgTypeUrl: "", granter: "", grantee: "" };
67
+ }
68
+ export const EventRevoke = {
69
+ encode(message, writer = _m0.Writer.create()) {
70
+ if (message.msgTypeUrl !== "") {
71
+ writer.uint32(18).string(message.msgTypeUrl);
72
+ }
73
+ if (message.granter !== "") {
74
+ writer.uint32(26).string(message.granter);
75
+ }
76
+ if (message.grantee !== "") {
77
+ writer.uint32(34).string(message.grantee);
78
+ }
79
+ return writer;
80
+ },
81
+ decode(input, length) {
82
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
83
+ let end = length === undefined ? reader.len : reader.pos + length;
84
+ const message = createBaseEventRevoke();
85
+ while (reader.pos < end) {
86
+ const tag = reader.uint32();
87
+ switch (tag >>> 3) {
88
+ case 2:
89
+ message.msgTypeUrl = reader.string();
90
+ break;
91
+ case 3:
92
+ message.granter = reader.string();
93
+ break;
94
+ case 4:
95
+ message.grantee = reader.string();
96
+ break;
97
+ default:
98
+ reader.skipType(tag & 7);
99
+ break;
100
+ }
101
+ }
102
+ return message;
103
+ },
104
+ fromJSON(object) {
105
+ return {
106
+ msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "",
107
+ granter: isSet(object.granter) ? String(object.granter) : "",
108
+ grantee: isSet(object.grantee) ? String(object.grantee) : "",
109
+ };
110
+ },
111
+ toJSON(message) {
112
+ const obj = {};
113
+ message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl);
114
+ message.granter !== undefined && (obj.granter = message.granter);
115
+ message.grantee !== undefined && (obj.grantee = message.grantee);
116
+ return obj;
117
+ },
118
+ fromPartial(object) {
119
+ const message = createBaseEventRevoke();
120
+ message.msgTypeUrl = object.msgTypeUrl ?? "";
121
+ message.granter = object.granter ?? "";
122
+ message.grantee = object.grantee ?? "";
123
+ return message;
124
+ },
125
+ };
126
+ function isSet(value) {
127
+ return value !== null && value !== undefined;
128
+ }