@iconlake/client 0.0.1

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 (497) hide show
  1. package/client.ts +170 -0
  2. package/cosmos.auth.v1beta1/index.ts +6 -0
  3. package/cosmos.auth.v1beta1/module.ts +102 -0
  4. package/cosmos.auth.v1beta1/registry.ts +7 -0
  5. package/cosmos.auth.v1beta1/rest.ts +641 -0
  6. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  7. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +95 -0
  8. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +1212 -0
  9. package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  10. package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  11. package/cosmos.auth.v1beta1/types/gogoproto/gogo.ts +2 -0
  12. package/cosmos.auth.v1beta1/types/google/api/annotations.ts +2 -0
  13. package/cosmos.auth.v1beta1/types/google/api/http.ts +589 -0
  14. package/cosmos.auth.v1beta1/types/google/protobuf/any.ts +240 -0
  15. package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  16. package/cosmos.auth.v1beta1/types.ts +11 -0
  17. package/cosmos.authz.v1beta1/index.ts +6 -0
  18. package/cosmos.authz.v1beta1/module.ts +207 -0
  19. package/cosmos.authz.v1beta1/registry.ts +13 -0
  20. package/cosmos.authz.v1beta1/rest.ts +604 -0
  21. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.ts +325 -0
  22. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.ts +175 -0
  23. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.ts +78 -0
  24. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.ts +516 -0
  25. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +493 -0
  26. package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  27. package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  28. package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  29. package/cosmos.authz.v1beta1/types/gogoproto/gogo.ts +2 -0
  30. package/cosmos.authz.v1beta1/types/google/api/annotations.ts +2 -0
  31. package/cosmos.authz.v1beta1/types/google/api/http.ts +589 -0
  32. package/cosmos.authz.v1beta1/types/google/protobuf/any.ts +240 -0
  33. package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  34. package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  35. package/cosmos.authz.v1beta1/types.ts +17 -0
  36. package/cosmos.bank.v1beta1/index.ts +6 -0
  37. package/cosmos.bank.v1beta1/module.ts +182 -0
  38. package/cosmos.bank.v1beta1/registry.ts +11 -0
  39. package/cosmos.bank.v1beta1/rest.ts +656 -0
  40. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +77 -0
  41. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +604 -0
  42. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +203 -0
  43. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +1366 -0
  44. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +289 -0
  45. package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  46. package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  47. package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  48. package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  49. package/cosmos.bank.v1beta1/types/gogoproto/gogo.ts +2 -0
  50. package/cosmos.bank.v1beta1/types/google/api/annotations.ts +2 -0
  51. package/cosmos.bank.v1beta1/types/google/api/http.ts +589 -0
  52. package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  53. package/cosmos.bank.v1beta1/types.ts +25 -0
  54. package/cosmos.base.node.v1beta1/index.ts +6 -0
  55. package/cosmos.base.node.v1beta1/module.ts +96 -0
  56. package/cosmos.base.node.v1beta1/registry.ts +7 -0
  57. package/cosmos.base.node.v1beta1/rest.ts +170 -0
  58. package/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.ts +137 -0
  59. package/cosmos.base.node.v1beta1/types/google/api/annotations.ts +2 -0
  60. package/cosmos.base.node.v1beta1/types/google/api/http.ts +589 -0
  61. package/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  62. package/cosmos.base.node.v1beta1/types.ts +5 -0
  63. package/cosmos.base.tendermint.v1beta1/index.ts +6 -0
  64. package/cosmos.base.tendermint.v1beta1/module.ts +110 -0
  65. package/cosmos.base.tendermint.v1beta1/registry.ts +7 -0
  66. package/cosmos.base.tendermint.v1beta1/rest.ts +1147 -0
  67. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  68. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +1646 -0
  69. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.ts +442 -0
  70. package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  71. package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.ts +2 -0
  72. package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.ts +2 -0
  73. package/cosmos.base.tendermint.v1beta1/types/google/api/http.ts +589 -0
  74. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.ts +240 -0
  75. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  76. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  77. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  78. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  79. package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.ts +423 -0
  80. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.ts +112 -0
  81. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.ts +412 -0
  82. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1452 -0
  83. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.ts +308 -0
  84. package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.ts +184 -0
  85. package/cosmos.base.tendermint.v1beta1/types.ts +19 -0
  86. package/cosmos.crisis.v1beta1/index.ts +6 -0
  87. package/cosmos.crisis.v1beta1/module.ts +129 -0
  88. package/cosmos.crisis.v1beta1/registry.ts +9 -0
  89. package/cosmos.crisis.v1beta1/rest.ts +152 -0
  90. package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  91. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.ts +79 -0
  92. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +159 -0
  93. package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  94. package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  95. package/cosmos.crisis.v1beta1/types/gogoproto/gogo.ts +2 -0
  96. package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  97. package/cosmos.crisis.v1beta1/types.ts +5 -0
  98. package/cosmos.distribution.v1beta1/index.ts +6 -0
  99. package/cosmos.distribution.v1beta1/module.ts +266 -0
  100. package/cosmos.distribution.v1beta1/registry.ts +15 -0
  101. package/cosmos.distribution.v1beta1/rest.ts +557 -0
  102. package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  103. package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  104. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +945 -0
  105. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +849 -0
  106. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1289 -0
  107. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +550 -0
  108. package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  109. package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  110. package/cosmos.distribution.v1beta1/types/gogoproto/gogo.ts +2 -0
  111. package/cosmos.distribution.v1beta1/types/google/api/annotations.ts +2 -0
  112. package/cosmos.distribution.v1beta1/types/google/api/http.ts +589 -0
  113. package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  114. package/cosmos.distribution.v1beta1/types.ts +43 -0
  115. package/cosmos.evidence.v1beta1/index.ts +6 -0
  116. package/cosmos.evidence.v1beta1/module.ts +131 -0
  117. package/cosmos.evidence.v1beta1/registry.ts +9 -0
  118. package/cosmos.evidence.v1beta1/rest.ts +402 -0
  119. package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  120. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +161 -0
  121. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.ts +73 -0
  122. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +343 -0
  123. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +213 -0
  124. package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  125. package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  126. package/cosmos.evidence.v1beta1/types/gogoproto/gogo.ts +2 -0
  127. package/cosmos.evidence.v1beta1/types/google/api/annotations.ts +2 -0
  128. package/cosmos.evidence.v1beta1/types/google/api/http.ts +589 -0
  129. package/cosmos.evidence.v1beta1/types/google/protobuf/any.ts +240 -0
  130. package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  131. package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  132. package/cosmos.evidence.v1beta1/types.ts +7 -0
  133. package/cosmos.feegrant.v1beta1/index.ts +6 -0
  134. package/cosmos.feegrant.v1beta1/module.ts +170 -0
  135. package/cosmos.feegrant.v1beta1/registry.ts +11 -0
  136. package/cosmos.feegrant.v1beta1/rest.ts +452 -0
  137. package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  138. package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  139. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.ts +409 -0
  140. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.ts +76 -0
  141. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.ts +484 -0
  142. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.ts +294 -0
  143. package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  144. package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  145. package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.ts +2 -0
  146. package/cosmos.feegrant.v1beta1/types/google/api/annotations.ts +2 -0
  147. package/cosmos.feegrant.v1beta1/types/google/api/http.ts +589 -0
  148. package/cosmos.feegrant.v1beta1/types/google/protobuf/any.ts +240 -0
  149. package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  150. package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.ts +187 -0
  151. package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  152. package/cosmos.feegrant.v1beta1/types.ts +13 -0
  153. package/cosmos.gov.v1/index.ts +6 -0
  154. package/cosmos.gov.v1/module.ts +244 -0
  155. package/cosmos.gov.v1/registry.ts +15 -0
  156. package/cosmos.gov.v1/rest.ts +798 -0
  157. package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  158. package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  159. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +208 -0
  160. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +925 -0
  161. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +1202 -0
  162. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +763 -0
  163. package/cosmos.gov.v1/types/cosmos/msg/v1/msg.ts +2 -0
  164. package/cosmos.gov.v1/types/cosmos_proto/cosmos.ts +247 -0
  165. package/cosmos.gov.v1/types/gogoproto/gogo.ts +2 -0
  166. package/cosmos.gov.v1/types/google/api/annotations.ts +2 -0
  167. package/cosmos.gov.v1/types/google/api/http.ts +589 -0
  168. package/cosmos.gov.v1/types/google/protobuf/any.ts +240 -0
  169. package/cosmos.gov.v1/types/google/protobuf/descriptor.ts +3753 -0
  170. package/cosmos.gov.v1/types/google/protobuf/duration.ts +187 -0
  171. package/cosmos.gov.v1/types/google/protobuf/timestamp.ts +216 -0
  172. package/cosmos.gov.v1/types.ts +21 -0
  173. package/cosmos.gov.v1beta1/index.ts +6 -0
  174. package/cosmos.gov.v1beta1/module.ts +246 -0
  175. package/cosmos.gov.v1beta1/registry.ts +15 -0
  176. package/cosmos.gov.v1beta1/rest.ts +864 -0
  177. package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  178. package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  179. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +206 -0
  180. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +1015 -0
  181. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +1200 -0
  182. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +612 -0
  183. package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  184. package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  185. package/cosmos.gov.v1beta1/types/gogoproto/gogo.ts +2 -0
  186. package/cosmos.gov.v1beta1/types/google/api/annotations.ts +2 -0
  187. package/cosmos.gov.v1beta1/types/google/api/http.ts +589 -0
  188. package/cosmos.gov.v1beta1/types/google/protobuf/any.ts +240 -0
  189. package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  190. package/cosmos.gov.v1beta1/types/google/protobuf/duration.ts +187 -0
  191. package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  192. package/cosmos.gov.v1beta1/types.ts +23 -0
  193. package/cosmos.group.v1/index.ts +6 -0
  194. package/cosmos.group.v1/module.ts +598 -0
  195. package/cosmos.group.v1/registry.ts +35 -0
  196. package/cosmos.group.v1/rest.ts +1162 -0
  197. package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  198. package/cosmos.group.v1/types/cosmos/group/v1/events.ts +568 -0
  199. package/cosmos.group.v1/types/cosmos/group/v1/genesis.ts +228 -0
  200. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +1897 -0
  201. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +2113 -0
  202. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +1422 -0
  203. package/cosmos.group.v1/types/cosmos/msg/v1/msg.ts +2 -0
  204. package/cosmos.group.v1/types/cosmos_proto/cosmos.ts +247 -0
  205. package/cosmos.group.v1/types/gogoproto/gogo.ts +2 -0
  206. package/cosmos.group.v1/types/google/api/annotations.ts +2 -0
  207. package/cosmos.group.v1/types/google/api/http.ts +589 -0
  208. package/cosmos.group.v1/types/google/protobuf/any.ts +240 -0
  209. package/cosmos.group.v1/types/google/protobuf/descriptor.ts +3753 -0
  210. package/cosmos.group.v1/types/google/protobuf/duration.ts +187 -0
  211. package/cosmos.group.v1/types/google/protobuf/timestamp.ts +216 -0
  212. package/cosmos.group.v1/types.ts +45 -0
  213. package/cosmos.mint.v1beta1/index.ts +6 -0
  214. package/cosmos.mint.v1beta1/module.ts +100 -0
  215. package/cosmos.mint.v1beta1/registry.ts +7 -0
  216. package/cosmos.mint.v1beta1/rest.ts +253 -0
  217. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +92 -0
  218. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +234 -0
  219. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.ts +412 -0
  220. package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  221. package/cosmos.mint.v1beta1/types/gogoproto/gogo.ts +2 -0
  222. package/cosmos.mint.v1beta1/types/google/api/annotations.ts +2 -0
  223. package/cosmos.mint.v1beta1/types/google/api/http.ts +589 -0
  224. package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  225. package/cosmos.mint.v1beta1/types.ts +9 -0
  226. package/cosmos.nft.v1beta1/index.ts +6 -0
  227. package/cosmos.nft.v1beta1/module.ts +108 -0
  228. package/cosmos.nft.v1beta1/registry.ts +7 -0
  229. package/cosmos.nft.v1beta1/rest.ts +685 -0
  230. package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  231. package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  232. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +251 -0
  233. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +163 -0
  234. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.ts +240 -0
  235. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +964 -0
  236. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.ts +173 -0
  237. package/cosmos.nft.v1beta1/types/google/api/annotations.ts +2 -0
  238. package/cosmos.nft.v1beta1/types/google/api/http.ts +589 -0
  239. package/cosmos.nft.v1beta1/types/google/protobuf/any.ts +240 -0
  240. package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  241. package/cosmos.nft.v1beta1/types.ts +17 -0
  242. package/cosmos.params.v1beta1/index.ts +6 -0
  243. package/cosmos.params.v1beta1/module.ts +102 -0
  244. package/cosmos.params.v1beta1/registry.ts +7 -0
  245. package/cosmos.params.v1beta1/rest.ts +220 -0
  246. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.ts +174 -0
  247. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.ts +364 -0
  248. package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  249. package/cosmos.params.v1beta1/types/gogoproto/gogo.ts +2 -0
  250. package/cosmos.params.v1beta1/types/google/api/annotations.ts +2 -0
  251. package/cosmos.params.v1beta1/types/google/api/http.ts +589 -0
  252. package/cosmos.params.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  253. package/cosmos.params.v1beta1/types.ts +11 -0
  254. package/cosmos.slashing.v1beta1/index.ts +6 -0
  255. package/cosmos.slashing.v1beta1/module.ts +139 -0
  256. package/cosmos.slashing.v1beta1/registry.ts +9 -0
  257. package/cosmos.slashing.v1beta1/rest.ts +368 -0
  258. package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  259. package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  260. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +364 -0
  261. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.ts +411 -0
  262. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.ts +352 -0
  263. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +141 -0
  264. package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  265. package/cosmos.slashing.v1beta1/types/gogoproto/gogo.ts +2 -0
  266. package/cosmos.slashing.v1beta1/types/google/api/annotations.ts +2 -0
  267. package/cosmos.slashing.v1beta1/types/google/api/http.ts +589 -0
  268. package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  269. package/cosmos.slashing.v1beta1/types/google/protobuf/duration.ts +187 -0
  270. package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  271. package/cosmos.slashing.v1beta1/types.ts +15 -0
  272. package/cosmos.staking.v1beta1/index.ts +6 -0
  273. package/cosmos.staking.v1beta1/module.ts +340 -0
  274. package/cosmos.staking.v1beta1/registry.ts +19 -0
  275. package/cosmos.staking.v1beta1/rest.ts +1239 -0
  276. package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  277. package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  278. package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  279. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.ts +245 -0
  280. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +322 -0
  281. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +2109 -0
  282. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +1829 -0
  283. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1005 -0
  284. package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  285. package/cosmos.staking.v1beta1/types/gogoproto/gogo.ts +2 -0
  286. package/cosmos.staking.v1beta1/types/google/api/annotations.ts +2 -0
  287. package/cosmos.staking.v1beta1/types/google/api/http.ts +589 -0
  288. package/cosmos.staking.v1beta1/types/google/protobuf/any.ts +240 -0
  289. package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  290. package/cosmos.staking.v1beta1/types/google/protobuf/duration.ts +187 -0
  291. package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  292. package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  293. package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  294. package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1452 -0
  295. package/cosmos.staking.v1beta1/types/tendermint/types/validator.ts +308 -0
  296. package/cosmos.staking.v1beta1/types/tendermint/version/types.ts +184 -0
  297. package/cosmos.staking.v1beta1/types.ts +51 -0
  298. package/cosmos.tx.v1beta1/index.ts +6 -0
  299. package/cosmos.tx.v1beta1/module.ts +122 -0
  300. package/cosmos.tx.v1beta1/registry.ts +7 -0
  301. package/cosmos.tx.v1beta1/rest.ts +1372 -0
  302. package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.ts +1040 -0
  303. package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  304. package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  305. package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.ts +195 -0
  306. package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.ts +556 -0
  307. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +1057 -0
  308. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.ts +1355 -0
  309. package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  310. package/cosmos.tx.v1beta1/types/gogoproto/gogo.ts +2 -0
  311. package/cosmos.tx.v1beta1/types/google/api/annotations.ts +2 -0
  312. package/cosmos.tx.v1beta1/types/google/api/http.ts +589 -0
  313. package/cosmos.tx.v1beta1/types/google/protobuf/any.ts +240 -0
  314. package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  315. package/cosmos.tx.v1beta1/types/google/protobuf/duration.ts +187 -0
  316. package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  317. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +4154 -0
  318. package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  319. package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  320. package/cosmos.tx.v1beta1/types/tendermint/types/block.ts +112 -0
  321. package/cosmos.tx.v1beta1/types/tendermint/types/evidence.ts +412 -0
  322. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +514 -0
  323. package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1452 -0
  324. package/cosmos.tx.v1beta1/types/tendermint/types/validator.ts +308 -0
  325. package/cosmos.tx.v1beta1/types/tendermint/version/types.ts +184 -0
  326. package/cosmos.tx.v1beta1/types.ts +31 -0
  327. package/cosmos.upgrade.v1beta1/index.ts +6 -0
  328. package/cosmos.upgrade.v1beta1/module.ts +170 -0
  329. package/cosmos.upgrade.v1beta1/registry.ts +11 -0
  330. package/cosmos.upgrade.v1beta1/rest.ts +468 -0
  331. package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  332. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.ts +728 -0
  333. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +284 -0
  334. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  335. package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  336. package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.ts +2 -0
  337. package/cosmos.upgrade.v1beta1/types/google/api/annotations.ts +2 -0
  338. package/cosmos.upgrade.v1beta1/types/google/api/http.ts +589 -0
  339. package/cosmos.upgrade.v1beta1/types/google/protobuf/any.ts +240 -0
  340. package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  341. package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  342. package/cosmos.upgrade.v1beta1/types.ts +13 -0
  343. package/cosmos.vesting.v1beta1/index.ts +6 -0
  344. package/cosmos.vesting.v1beta1/module.ts +207 -0
  345. package/cosmos.vesting.v1beta1/registry.ts +13 -0
  346. package/cosmos.vesting.v1beta1/rest.ts +297 -0
  347. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  348. package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  349. package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  350. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +540 -0
  351. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +529 -0
  352. package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  353. package/cosmos.vesting.v1beta1/types/gogoproto/gogo.ts +2 -0
  354. package/cosmos.vesting.v1beta1/types/google/protobuf/any.ts +240 -0
  355. package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  356. package/cosmos.vesting.v1beta1/types.ts +17 -0
  357. package/env.ts +7 -0
  358. package/helpers.ts +32 -0
  359. package/ibc.applications.interchain_accounts.controller.v1/index.ts +6 -0
  360. package/ibc.applications.interchain_accounts.controller.v1/module.ts +98 -0
  361. package/ibc.applications.interchain_accounts.controller.v1/registry.ts +7 -0
  362. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +346 -0
  363. package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.ts +2 -0
  364. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.ts +2 -0
  365. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.ts +589 -0
  366. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.ts +240 -0
  367. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.ts +3753 -0
  368. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +75 -0
  369. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.ts +274 -0
  370. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +361 -0
  371. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.ts +234 -0
  372. package/ibc.applications.interchain_accounts.controller.v1/types.ts +7 -0
  373. package/ibc.applications.interchain_accounts.host.v1/index.ts +6 -0
  374. package/ibc.applications.interchain_accounts.host.v1/module.ts +98 -0
  375. package/ibc.applications.interchain_accounts.host.v1/registry.ts +7 -0
  376. package/ibc.applications.interchain_accounts.host.v1/rest.ts +183 -0
  377. package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.ts +2 -0
  378. package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.ts +2 -0
  379. package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.ts +589 -0
  380. package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.ts +3753 -0
  381. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.ts +92 -0
  382. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.ts +141 -0
  383. package/ibc.applications.interchain_accounts.host.v1/types.ts +7 -0
  384. package/ibc.applications.transfer.v1/index.ts +6 -0
  385. package/ibc.applications.transfer.v1/module.ts +133 -0
  386. package/ibc.applications.transfer.v1/registry.ts +9 -0
  387. package/ibc.applications.transfer.v1/rest.ts +544 -0
  388. package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  389. package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  390. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  391. package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.ts +247 -0
  392. package/ibc.applications.transfer.v1/types/gogoproto/gogo.ts +2 -0
  393. package/ibc.applications.transfer.v1/types/google/api/annotations.ts +2 -0
  394. package/ibc.applications.transfer.v1/types/google/api/http.ts +589 -0
  395. package/ibc.applications.transfer.v1/types/google/protobuf/any.ts +240 -0
  396. package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.ts +3753 -0
  397. package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.ts +216 -0
  398. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +100 -0
  399. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +659 -0
  400. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.ts +168 -0
  401. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.ts +287 -0
  402. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +608 -0
  403. package/ibc.applications.transfer.v1/types.ts +9 -0
  404. package/ibc.core.channel.v1/index.ts +6 -0
  405. package/ibc.core.channel.v1/module.ts +112 -0
  406. package/ibc.core.channel.v1/registry.ts +7 -0
  407. package/ibc.core.channel.v1/rest.ts +1375 -0
  408. package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  409. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  410. package/ibc.core.channel.v1/types/cosmos_proto/cosmos.ts +247 -0
  411. package/ibc.core.channel.v1/types/gogoproto/gogo.ts +2 -0
  412. package/ibc.core.channel.v1/types/google/api/annotations.ts +2 -0
  413. package/ibc.core.channel.v1/types/google/api/http.ts +589 -0
  414. package/ibc.core.channel.v1/types/google/protobuf/any.ts +240 -0
  415. package/ibc.core.channel.v1/types/google/protobuf/descriptor.ts +3753 -0
  416. package/ibc.core.channel.v1/types/google/protobuf/timestamp.ts +216 -0
  417. package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.ts +905 -0
  418. package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.ts +301 -0
  419. package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.ts +2472 -0
  420. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +1784 -0
  421. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +608 -0
  422. package/ibc.core.channel.v1/types.ts +21 -0
  423. package/ibc.core.client.v1/index.ts +6 -0
  424. package/ibc.core.client.v1/module.ts +114 -0
  425. package/ibc.core.client.v1/registry.ts +7 -0
  426. package/ibc.core.client.v1/rest.ts +1084 -0
  427. package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  428. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  429. package/ibc.core.client.v1/types/cosmos_proto/cosmos.ts +247 -0
  430. package/ibc.core.client.v1/types/gogoproto/gogo.ts +2 -0
  431. package/ibc.core.client.v1/types/google/api/annotations.ts +2 -0
  432. package/ibc.core.client.v1/types/google/api/http.ts +589 -0
  433. package/ibc.core.client.v1/types/google/protobuf/any.ts +240 -0
  434. package/ibc.core.client.v1/types/google/protobuf/descriptor.ts +3753 -0
  435. package/ibc.core.client.v1/types/google/protobuf/timestamp.ts +216 -0
  436. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +608 -0
  437. package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.ts +357 -0
  438. package/ibc.core.client.v1/types/ibc/core/client/v1/query.ts +1390 -0
  439. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +691 -0
  440. package/ibc.core.client.v1/types.ts +23 -0
  441. package/ibc.core.connection.v1/index.ts +6 -0
  442. package/ibc.core.connection.v1/module.ts +110 -0
  443. package/ibc.core.connection.v1/registry.ts +7 -0
  444. package/ibc.core.connection.v1/rest.ts +889 -0
  445. package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  446. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  447. package/ibc.core.connection.v1/types/cosmos_proto/cosmos.ts +247 -0
  448. package/ibc.core.connection.v1/types/gogoproto/gogo.ts +2 -0
  449. package/ibc.core.connection.v1/types/google/api/annotations.ts +2 -0
  450. package/ibc.core.connection.v1/types/google/api/http.ts +589 -0
  451. package/ibc.core.connection.v1/types/google/protobuf/any.ts +240 -0
  452. package/ibc.core.connection.v1/types/google/protobuf/descriptor.ts +3753 -0
  453. package/ibc.core.connection.v1/types/google/protobuf/timestamp.ts +216 -0
  454. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +608 -0
  455. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +299 -0
  456. package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.ts +698 -0
  457. package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.ts +152 -0
  458. package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.ts +1041 -0
  459. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +908 -0
  460. package/ibc.core.connection.v1/types/proofs.ts +1408 -0
  461. package/ibc.core.connection.v1/types.ts +19 -0
  462. package/iconlake.icon/index.ts +6 -0
  463. package/iconlake.icon/module.ts +135 -0
  464. package/iconlake.icon/registry.ts +9 -0
  465. package/iconlake.icon/rest.ts +206 -0
  466. package/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  467. package/iconlake.icon/types/gogoproto/gogo.ts +2 -0
  468. package/iconlake.icon/types/google/api/annotations.ts +2 -0
  469. package/iconlake.icon/types/google/api/http.ts +589 -0
  470. package/iconlake.icon/types/google/protobuf/descriptor.ts +3753 -0
  471. package/iconlake.icon/types/iconlake/icon/genesis.ts +74 -0
  472. package/iconlake.icon/types/iconlake/icon/params.ts +58 -0
  473. package/iconlake.icon/types/iconlake/icon/query.ts +276 -0
  474. package/iconlake.icon/types/iconlake/icon/tx.ts +374 -0
  475. package/iconlake.icon/types.ts +11 -0
  476. package/iconlake.iconlake/index.ts +6 -0
  477. package/iconlake.iconlake/module.ts +133 -0
  478. package/iconlake.iconlake/registry.ts +9 -0
  479. package/iconlake.iconlake/rest.ts +342 -0
  480. package/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  481. package/iconlake.iconlake/types/cosmos/base/v1beta1/coin.ts +261 -0
  482. package/iconlake.iconlake/types/cosmos_proto/cosmos.ts +247 -0
  483. package/iconlake.iconlake/types/gogoproto/gogo.ts +2 -0
  484. package/iconlake.iconlake/types/google/api/annotations.ts +2 -0
  485. package/iconlake.iconlake/types/google/api/http.ts +589 -0
  486. package/iconlake.iconlake/types/google/protobuf/descriptor.ts +3753 -0
  487. package/iconlake.iconlake/types/iconlake/iconlake/account.ts +140 -0
  488. package/iconlake.iconlake/types/iconlake/iconlake/genesis.ts +91 -0
  489. package/iconlake.iconlake/types/iconlake/iconlake/params.ts +58 -0
  490. package/iconlake.iconlake/types/iconlake/iconlake/query.ts +388 -0
  491. package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +214 -0
  492. package/iconlake.iconlake/types.ts +9 -0
  493. package/index.ts +75 -0
  494. package/modules.ts +5 -0
  495. package/package.json +35 -0
  496. package/tsconfig.json +12 -0
  497. package/types.d.ts +21 -0
@@ -0,0 +1,598 @@
1
+ // Generated by Ignite ignite.com/cli
2
+
3
+ import { StdFee } from "@cosmjs/launchpad";
4
+ import { SigningStargateClient, DeliverTxResponse } from "@cosmjs/stargate";
5
+ import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
6
+ import { msgTypes } from './registry';
7
+ import { IgniteClient } from "../client"
8
+ import { MissingWalletError } from "../helpers"
9
+ import { Api } from "./rest";
10
+ import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
11
+ import { MsgExec } from "./types/cosmos/group/v1/tx";
12
+ import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
13
+ import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
14
+ import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
15
+ import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
16
+ import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
17
+ import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
18
+ import { MsgVote } from "./types/cosmos/group/v1/tx";
19
+ import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
20
+ import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
21
+ import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
22
+ import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
23
+ import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
24
+
25
+ import { EventCreateGroup as typeEventCreateGroup} from "./types"
26
+ import { EventUpdateGroup as typeEventUpdateGroup} from "./types"
27
+ import { EventCreateGroupPolicy as typeEventCreateGroupPolicy} from "./types"
28
+ import { EventUpdateGroupPolicy as typeEventUpdateGroupPolicy} from "./types"
29
+ import { EventSubmitProposal as typeEventSubmitProposal} from "./types"
30
+ import { EventWithdrawProposal as typeEventWithdrawProposal} from "./types"
31
+ import { EventVote as typeEventVote} from "./types"
32
+ import { EventExec as typeEventExec} from "./types"
33
+ import { EventLeaveGroup as typeEventLeaveGroup} from "./types"
34
+ import { Member as typeMember} from "./types"
35
+ import { MemberRequest as typeMemberRequest} from "./types"
36
+ import { ThresholdDecisionPolicy as typeThresholdDecisionPolicy} from "./types"
37
+ import { PercentageDecisionPolicy as typePercentageDecisionPolicy} from "./types"
38
+ import { DecisionPolicyWindows as typeDecisionPolicyWindows} from "./types"
39
+ import { GroupInfo as typeGroupInfo} from "./types"
40
+ import { GroupMember as typeGroupMember} from "./types"
41
+ import { GroupPolicyInfo as typeGroupPolicyInfo} from "./types"
42
+ import { Proposal as typeProposal} from "./types"
43
+ import { TallyResult as typeTallyResult} from "./types"
44
+ import { Vote as typeVote} from "./types"
45
+
46
+ export { MsgCreateGroupPolicy, MsgExec, MsgCreateGroupWithPolicy, MsgUpdateGroupMetadata, MsgUpdateGroupAdmin, MsgSubmitProposal, MsgUpdateGroupPolicyAdmin, MsgWithdrawProposal, MsgVote, MsgUpdateGroupMembers, MsgUpdateGroupPolicyDecisionPolicy, MsgLeaveGroup, MsgUpdateGroupPolicyMetadata, MsgCreateGroup };
47
+
48
+ type sendMsgCreateGroupPolicyParams = {
49
+ value: MsgCreateGroupPolicy,
50
+ fee?: StdFee,
51
+ memo?: string
52
+ };
53
+
54
+ type sendMsgExecParams = {
55
+ value: MsgExec,
56
+ fee?: StdFee,
57
+ memo?: string
58
+ };
59
+
60
+ type sendMsgCreateGroupWithPolicyParams = {
61
+ value: MsgCreateGroupWithPolicy,
62
+ fee?: StdFee,
63
+ memo?: string
64
+ };
65
+
66
+ type sendMsgUpdateGroupMetadataParams = {
67
+ value: MsgUpdateGroupMetadata,
68
+ fee?: StdFee,
69
+ memo?: string
70
+ };
71
+
72
+ type sendMsgUpdateGroupAdminParams = {
73
+ value: MsgUpdateGroupAdmin,
74
+ fee?: StdFee,
75
+ memo?: string
76
+ };
77
+
78
+ type sendMsgSubmitProposalParams = {
79
+ value: MsgSubmitProposal,
80
+ fee?: StdFee,
81
+ memo?: string
82
+ };
83
+
84
+ type sendMsgUpdateGroupPolicyAdminParams = {
85
+ value: MsgUpdateGroupPolicyAdmin,
86
+ fee?: StdFee,
87
+ memo?: string
88
+ };
89
+
90
+ type sendMsgWithdrawProposalParams = {
91
+ value: MsgWithdrawProposal,
92
+ fee?: StdFee,
93
+ memo?: string
94
+ };
95
+
96
+ type sendMsgVoteParams = {
97
+ value: MsgVote,
98
+ fee?: StdFee,
99
+ memo?: string
100
+ };
101
+
102
+ type sendMsgUpdateGroupMembersParams = {
103
+ value: MsgUpdateGroupMembers,
104
+ fee?: StdFee,
105
+ memo?: string
106
+ };
107
+
108
+ type sendMsgUpdateGroupPolicyDecisionPolicyParams = {
109
+ value: MsgUpdateGroupPolicyDecisionPolicy,
110
+ fee?: StdFee,
111
+ memo?: string
112
+ };
113
+
114
+ type sendMsgLeaveGroupParams = {
115
+ value: MsgLeaveGroup,
116
+ fee?: StdFee,
117
+ memo?: string
118
+ };
119
+
120
+ type sendMsgUpdateGroupPolicyMetadataParams = {
121
+ value: MsgUpdateGroupPolicyMetadata,
122
+ fee?: StdFee,
123
+ memo?: string
124
+ };
125
+
126
+ type sendMsgCreateGroupParams = {
127
+ value: MsgCreateGroup,
128
+ fee?: StdFee,
129
+ memo?: string
130
+ };
131
+
132
+
133
+ type msgCreateGroupPolicyParams = {
134
+ value: MsgCreateGroupPolicy,
135
+ };
136
+
137
+ type msgExecParams = {
138
+ value: MsgExec,
139
+ };
140
+
141
+ type msgCreateGroupWithPolicyParams = {
142
+ value: MsgCreateGroupWithPolicy,
143
+ };
144
+
145
+ type msgUpdateGroupMetadataParams = {
146
+ value: MsgUpdateGroupMetadata,
147
+ };
148
+
149
+ type msgUpdateGroupAdminParams = {
150
+ value: MsgUpdateGroupAdmin,
151
+ };
152
+
153
+ type msgSubmitProposalParams = {
154
+ value: MsgSubmitProposal,
155
+ };
156
+
157
+ type msgUpdateGroupPolicyAdminParams = {
158
+ value: MsgUpdateGroupPolicyAdmin,
159
+ };
160
+
161
+ type msgWithdrawProposalParams = {
162
+ value: MsgWithdrawProposal,
163
+ };
164
+
165
+ type msgVoteParams = {
166
+ value: MsgVote,
167
+ };
168
+
169
+ type msgUpdateGroupMembersParams = {
170
+ value: MsgUpdateGroupMembers,
171
+ };
172
+
173
+ type msgUpdateGroupPolicyDecisionPolicyParams = {
174
+ value: MsgUpdateGroupPolicyDecisionPolicy,
175
+ };
176
+
177
+ type msgLeaveGroupParams = {
178
+ value: MsgLeaveGroup,
179
+ };
180
+
181
+ type msgUpdateGroupPolicyMetadataParams = {
182
+ value: MsgUpdateGroupPolicyMetadata,
183
+ };
184
+
185
+ type msgCreateGroupParams = {
186
+ value: MsgCreateGroup,
187
+ };
188
+
189
+
190
+ export const registry = new Registry(msgTypes);
191
+
192
+ type Field = {
193
+ name: string;
194
+ type: unknown;
195
+ }
196
+ function getStructure(template) {
197
+ const structure: {fields: Field[]} = { fields: [] }
198
+ for (let [key, value] of Object.entries(template)) {
199
+ let field = { name: key, type: typeof value }
200
+ structure.fields.push(field)
201
+ }
202
+ return structure
203
+ }
204
+ const defaultFee = {
205
+ amount: [],
206
+ gas: "200000",
207
+ };
208
+
209
+ interface TxClientOptions {
210
+ addr: string
211
+ prefix: string
212
+ signer?: OfflineSigner
213
+ }
214
+
215
+ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
216
+
217
+ return {
218
+
219
+ async sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise<DeliverTxResponse> {
220
+ if (!signer) {
221
+ throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.')
222
+ }
223
+ try {
224
+ const { address } = (await signer.getAccounts())[0];
225
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
226
+ let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) })
227
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
228
+ } catch (e: any) {
229
+ throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: '+ e.message)
230
+ }
231
+ },
232
+
233
+ async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise<DeliverTxResponse> {
234
+ if (!signer) {
235
+ throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.')
236
+ }
237
+ try {
238
+ const { address } = (await signer.getAccounts())[0];
239
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
240
+ let msg = this.msgExec({ value: MsgExec.fromPartial(value) })
241
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
242
+ } catch (e: any) {
243
+ throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: '+ e.message)
244
+ }
245
+ },
246
+
247
+ async sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise<DeliverTxResponse> {
248
+ if (!signer) {
249
+ throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.')
250
+ }
251
+ try {
252
+ const { address } = (await signer.getAccounts())[0];
253
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
254
+ let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) })
255
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
256
+ } catch (e: any) {
257
+ throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: '+ e.message)
258
+ }
259
+ },
260
+
261
+ async sendMsgUpdateGroupMetadata({ value, fee, memo }: sendMsgUpdateGroupMetadataParams): Promise<DeliverTxResponse> {
262
+ if (!signer) {
263
+ throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.')
264
+ }
265
+ try {
266
+ const { address } = (await signer.getAccounts())[0];
267
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
268
+ let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) })
269
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
270
+ } catch (e: any) {
271
+ throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: '+ e.message)
272
+ }
273
+ },
274
+
275
+ async sendMsgUpdateGroupAdmin({ value, fee, memo }: sendMsgUpdateGroupAdminParams): Promise<DeliverTxResponse> {
276
+ if (!signer) {
277
+ throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.')
278
+ }
279
+ try {
280
+ const { address } = (await signer.getAccounts())[0];
281
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
282
+ let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) })
283
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
284
+ } catch (e: any) {
285
+ throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: '+ e.message)
286
+ }
287
+ },
288
+
289
+ async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse> {
290
+ if (!signer) {
291
+ throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.')
292
+ }
293
+ try {
294
+ const { address } = (await signer.getAccounts())[0];
295
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
296
+ let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) })
297
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
298
+ } catch (e: any) {
299
+ throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message)
300
+ }
301
+ },
302
+
303
+ async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminParams): Promise<DeliverTxResponse> {
304
+ if (!signer) {
305
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.')
306
+ }
307
+ try {
308
+ const { address } = (await signer.getAccounts())[0];
309
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
310
+ let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) })
311
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
312
+ } catch (e: any) {
313
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: '+ e.message)
314
+ }
315
+ },
316
+
317
+ async sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise<DeliverTxResponse> {
318
+ if (!signer) {
319
+ throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.')
320
+ }
321
+ try {
322
+ const { address } = (await signer.getAccounts())[0];
323
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
324
+ let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) })
325
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
326
+ } catch (e: any) {
327
+ throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: '+ e.message)
328
+ }
329
+ },
330
+
331
+ async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
332
+ if (!signer) {
333
+ throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.')
334
+ }
335
+ try {
336
+ const { address } = (await signer.getAccounts())[0];
337
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
338
+ let msg = this.msgVote({ value: MsgVote.fromPartial(value) })
339
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
340
+ } catch (e: any) {
341
+ throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message)
342
+ }
343
+ },
344
+
345
+ async sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise<DeliverTxResponse> {
346
+ if (!signer) {
347
+ throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.')
348
+ }
349
+ try {
350
+ const { address } = (await signer.getAccounts())[0];
351
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
352
+ let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) })
353
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
354
+ } catch (e: any) {
355
+ throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: '+ e.message)
356
+ }
357
+ },
358
+
359
+ async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise<DeliverTxResponse> {
360
+ if (!signer) {
361
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.')
362
+ }
363
+ try {
364
+ const { address } = (await signer.getAccounts())[0];
365
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
366
+ let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) })
367
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
368
+ } catch (e: any) {
369
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: '+ e.message)
370
+ }
371
+ },
372
+
373
+ async sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise<DeliverTxResponse> {
374
+ if (!signer) {
375
+ throw new Error('TxClient:sendMsgLeaveGroup: Unable to sign Tx. Signer is not present.')
376
+ }
377
+ try {
378
+ const { address } = (await signer.getAccounts())[0];
379
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
380
+ let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) })
381
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
382
+ } catch (e: any) {
383
+ throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: '+ e.message)
384
+ }
385
+ },
386
+
387
+ async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise<DeliverTxResponse> {
388
+ if (!signer) {
389
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.')
390
+ }
391
+ try {
392
+ const { address } = (await signer.getAccounts())[0];
393
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
394
+ let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) })
395
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
396
+ } catch (e: any) {
397
+ throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: '+ e.message)
398
+ }
399
+ },
400
+
401
+ async sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise<DeliverTxResponse> {
402
+ if (!signer) {
403
+ throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.')
404
+ }
405
+ try {
406
+ const { address } = (await signer.getAccounts())[0];
407
+ const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
408
+ let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) })
409
+ return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
410
+ } catch (e: any) {
411
+ throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: '+ e.message)
412
+ }
413
+ },
414
+
415
+
416
+ msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject {
417
+ try {
418
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial( value ) }
419
+ } catch (e: any) {
420
+ throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message)
421
+ }
422
+ },
423
+
424
+ msgExec({ value }: msgExecParams): EncodeObject {
425
+ try {
426
+ return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial( value ) }
427
+ } catch (e: any) {
428
+ throw new Error('TxClient:MsgExec: Could not create message: ' + e.message)
429
+ }
430
+ },
431
+
432
+ msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject {
433
+ try {
434
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial( value ) }
435
+ } catch (e: any) {
436
+ throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message)
437
+ }
438
+ },
439
+
440
+ msgUpdateGroupMetadata({ value }: msgUpdateGroupMetadataParams): EncodeObject {
441
+ try {
442
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial( value ) }
443
+ } catch (e: any) {
444
+ throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message)
445
+ }
446
+ },
447
+
448
+ msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject {
449
+ try {
450
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial( value ) }
451
+ } catch (e: any) {
452
+ throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message)
453
+ }
454
+ },
455
+
456
+ msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
457
+ try {
458
+ return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
459
+ } catch (e: any) {
460
+ throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message)
461
+ }
462
+ },
463
+
464
+ msgUpdateGroupPolicyAdmin({ value }: msgUpdateGroupPolicyAdminParams): EncodeObject {
465
+ try {
466
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial( value ) }
467
+ } catch (e: any) {
468
+ throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message)
469
+ }
470
+ },
471
+
472
+ msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject {
473
+ try {
474
+ return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial( value ) }
475
+ } catch (e: any) {
476
+ throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message)
477
+ }
478
+ },
479
+
480
+ msgVote({ value }: msgVoteParams): EncodeObject {
481
+ try {
482
+ return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial( value ) }
483
+ } catch (e: any) {
484
+ throw new Error('TxClient:MsgVote: Could not create message: ' + e.message)
485
+ }
486
+ },
487
+
488
+ msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject {
489
+ try {
490
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial( value ) }
491
+ } catch (e: any) {
492
+ throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message)
493
+ }
494
+ },
495
+
496
+ msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject {
497
+ try {
498
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial( value ) }
499
+ } catch (e: any) {
500
+ throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message)
501
+ }
502
+ },
503
+
504
+ msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject {
505
+ try {
506
+ return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial( value ) }
507
+ } catch (e: any) {
508
+ throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message)
509
+ }
510
+ },
511
+
512
+ msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject {
513
+ try {
514
+ return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial( value ) }
515
+ } catch (e: any) {
516
+ throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message)
517
+ }
518
+ },
519
+
520
+ msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject {
521
+ try {
522
+ return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial( value ) }
523
+ } catch (e: any) {
524
+ throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message)
525
+ }
526
+ },
527
+
528
+ }
529
+ };
530
+
531
+ interface QueryClientOptions {
532
+ addr: string
533
+ }
534
+
535
+ export const queryClient = ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => {
536
+ return new Api({ baseURL: addr });
537
+ };
538
+
539
+ class SDKModule {
540
+ public query: ReturnType<typeof queryClient>;
541
+ public tx: ReturnType<typeof txClient>;
542
+ public structure: Record<string,unknown>;
543
+ public registry: Array<[string, GeneratedType]> = [];
544
+
545
+ constructor(client: IgniteClient) {
546
+
547
+ this.query = queryClient({ addr: client.env.apiURL });
548
+ this.updateTX(client);
549
+ this.structure = {
550
+ EventCreateGroup: getStructure(typeEventCreateGroup.fromPartial({})),
551
+ EventUpdateGroup: getStructure(typeEventUpdateGroup.fromPartial({})),
552
+ EventCreateGroupPolicy: getStructure(typeEventCreateGroupPolicy.fromPartial({})),
553
+ EventUpdateGroupPolicy: getStructure(typeEventUpdateGroupPolicy.fromPartial({})),
554
+ EventSubmitProposal: getStructure(typeEventSubmitProposal.fromPartial({})),
555
+ EventWithdrawProposal: getStructure(typeEventWithdrawProposal.fromPartial({})),
556
+ EventVote: getStructure(typeEventVote.fromPartial({})),
557
+ EventExec: getStructure(typeEventExec.fromPartial({})),
558
+ EventLeaveGroup: getStructure(typeEventLeaveGroup.fromPartial({})),
559
+ Member: getStructure(typeMember.fromPartial({})),
560
+ MemberRequest: getStructure(typeMemberRequest.fromPartial({})),
561
+ ThresholdDecisionPolicy: getStructure(typeThresholdDecisionPolicy.fromPartial({})),
562
+ PercentageDecisionPolicy: getStructure(typePercentageDecisionPolicy.fromPartial({})),
563
+ DecisionPolicyWindows: getStructure(typeDecisionPolicyWindows.fromPartial({})),
564
+ GroupInfo: getStructure(typeGroupInfo.fromPartial({})),
565
+ GroupMember: getStructure(typeGroupMember.fromPartial({})),
566
+ GroupPolicyInfo: getStructure(typeGroupPolicyInfo.fromPartial({})),
567
+ Proposal: getStructure(typeProposal.fromPartial({})),
568
+ TallyResult: getStructure(typeTallyResult.fromPartial({})),
569
+ Vote: getStructure(typeVote.fromPartial({})),
570
+
571
+ };
572
+ client.on('signer-changed',(signer) => {
573
+ this.updateTX(client);
574
+ })
575
+ }
576
+ updateTX(client: IgniteClient) {
577
+ const methods = txClient({
578
+ signer: client.signer,
579
+ addr: client.env.rpcURL,
580
+ prefix: client.env.prefix ?? "cosmos",
581
+ })
582
+
583
+ this.tx = methods;
584
+ for (let m in methods) {
585
+ this.tx[m] = methods[m].bind(this.tx);
586
+ }
587
+ }
588
+ };
589
+
590
+ const Module = (test: IgniteClient) => {
591
+ return {
592
+ module: {
593
+ CosmosGroupV1: new SDKModule(test)
594
+ },
595
+ registry: msgTypes
596
+ }
597
+ }
598
+ export default Module;
@@ -0,0 +1,35 @@
1
+ import { GeneratedType } from "@cosmjs/proto-signing";
2
+ import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
3
+ import { MsgExec } from "./types/cosmos/group/v1/tx";
4
+ import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
5
+ import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
6
+ import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
7
+ import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
8
+ import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
9
+ import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
10
+ import { MsgVote } from "./types/cosmos/group/v1/tx";
11
+ import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
12
+ import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
13
+ import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
14
+ import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
15
+ import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
16
+
17
+ const msgTypes: Array<[string, GeneratedType]> = [
18
+ ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy],
19
+ ["/cosmos.group.v1.MsgExec", MsgExec],
20
+ ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy],
21
+ ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata],
22
+ ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
23
+ ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal],
24
+ ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
25
+ ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
26
+ ["/cosmos.group.v1.MsgVote", MsgVote],
27
+ ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers],
28
+ ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
29
+ ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup],
30
+ ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
31
+ ["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
32
+
33
+ ];
34
+
35
+ export { msgTypes }