juno-network 0.2.2 → 0.2.5

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 (259) hide show
  1. package/README.md +1 -1
  2. package/main/codegen/JunoSwap.client.js +1 -1
  3. package/main/codegen/confio/proofs.js +1471 -0
  4. package/main/codegen/contracts.js +1 -3
  5. package/main/codegen/cosmos/app/v1alpha1/config.js +172 -0
  6. package/main/codegen/cosmos/app/v1alpha1/module.js +272 -0
  7. package/main/codegen/cosmos/app/v1alpha1/query.js +113 -0
  8. package/main/codegen/cosmos/app/v1alpha1/query.rpc.query.js +48 -0
  9. package/main/codegen/cosmos/auth/v1beta1/auth.js +323 -0
  10. package/main/codegen/cosmos/auth/v1beta1/genesis.js +118 -0
  11. package/main/codegen/cosmos/auth/v1beta1/query.js +827 -0
  12. package/main/codegen/cosmos/auth/v1beta1/query.lcd.js +317 -0
  13. package/main/codegen/cosmos/auth/v1beta1/query.rpc.query.js +114 -0
  14. package/main/codegen/cosmos/authz/v1beta1/authz.js +324 -0
  15. package/main/codegen/cosmos/authz/v1beta1/event.js +178 -0
  16. package/main/codegen/cosmos/authz/v1beta1/genesis.js +102 -0
  17. package/main/codegen/cosmos/authz/v1beta1/query.js +533 -0
  18. package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +185 -0
  19. package/main/codegen/cosmos/authz/v1beta1/query.rpc.query.js +70 -0
  20. package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +96 -0
  21. package/main/codegen/cosmos/authz/v1beta1/tx.js +439 -0
  22. package/main/codegen/cosmos/authz/v1beta1/tx.registry.js +130 -0
  23. package/main/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +70 -0
  24. package/main/codegen/cosmos/base/abci/v1beta1/abci.js +1128 -0
  25. package/main/codegen/cosmos/base/kv/v1beta1/kv.js +170 -0
  26. package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +277 -0
  27. package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +745 -0
  28. package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +251 -0
  29. package/main/codegen/cosmos/base/store/v1beta1/listening.js +109 -0
  30. package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +1130 -0
  31. package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +103 -0
  32. package/main/codegen/cosmos/bundle.js +143 -55
  33. package/main/codegen/cosmos/client.js +34 -2
  34. package/main/codegen/cosmos/crisis/v1beta1/genesis.js +73 -0
  35. package/main/codegen/cosmos/crisis/v1beta1/tx.amino.js +32 -0
  36. package/main/codegen/cosmos/crisis/v1beta1/tx.js +137 -0
  37. package/main/codegen/cosmos/crisis/v1beta1/tx.registry.js +70 -0
  38. package/main/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +48 -0
  39. package/main/codegen/cosmos/evidence/v1beta1/evidence.js +111 -0
  40. package/main/codegen/cosmos/evidence/v1beta1/genesis.js +102 -0
  41. package/main/codegen/cosmos/evidence/v1beta1/query.js +285 -0
  42. package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +135 -0
  43. package/main/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +59 -0
  44. package/main/codegen/cosmos/evidence/v1beta1/tx.amino.js +34 -0
  45. package/main/codegen/cosmos/evidence/v1beta1/tx.js +144 -0
  46. package/main/codegen/cosmos/evidence/v1beta1/tx.registry.js +70 -0
  47. package/main/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +48 -0
  48. package/main/codegen/cosmos/feegrant/v1beta1/feegrant.js +444 -0
  49. package/main/codegen/cosmos/feegrant/v1beta1/genesis.js +102 -0
  50. package/main/codegen/cosmos/feegrant/v1beta1/query.js +472 -0
  51. package/main/codegen/cosmos/feegrant/v1beta1/query.lcd.js +162 -0
  52. package/main/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +70 -0
  53. package/main/codegen/cosmos/feegrant/v1beta1/tx.amino.js +57 -0
  54. package/main/codegen/cosmos/feegrant/v1beta1/tx.js +248 -0
  55. package/main/codegen/cosmos/feegrant/v1beta1/tx.registry.js +100 -0
  56. package/main/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +59 -0
  57. package/main/codegen/cosmos/genutil/v1beta1/genesis.js +101 -0
  58. package/main/codegen/cosmos/lcd.js +168 -33
  59. package/main/codegen/cosmos/mint/v1beta1/genesis.js +85 -0
  60. package/main/codegen/cosmos/mint/v1beta1/mint.js +202 -0
  61. package/main/codegen/cosmos/mint/v1beta1/query.js +307 -0
  62. package/main/codegen/cosmos/mint/v1beta1/query.lcd.js +155 -0
  63. package/main/codegen/cosmos/mint/v1beta1/query.rpc.query.js +70 -0
  64. package/main/codegen/cosmos/nft/v1beta1/event.js +271 -0
  65. package/main/codegen/cosmos/nft/v1beta1/genesis.js +229 -0
  66. package/main/codegen/cosmos/nft/v1beta1/nft.js +252 -0
  67. package/main/codegen/cosmos/nft/v1beta1/query.js +944 -0
  68. package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +344 -0
  69. package/main/codegen/cosmos/nft/v1beta1/query.rpc.query.js +114 -0
  70. package/main/codegen/cosmos/nft/v1beta1/tx.amino.js +36 -0
  71. package/main/codegen/cosmos/nft/v1beta1/tx.js +149 -0
  72. package/main/codegen/cosmos/nft/v1beta1/tx.registry.js +70 -0
  73. package/main/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +48 -0
  74. package/main/codegen/cosmos/orm/v1/orm.js +332 -0
  75. package/main/codegen/cosmos/params/v1beta1/params.js +206 -0
  76. package/main/codegen/cosmos/params/v1beta1/query.js +358 -0
  77. package/main/codegen/cosmos/params/v1beta1/query.lcd.js +128 -0
  78. package/main/codegen/cosmos/params/v1beta1/query.rpc.query.js +59 -0
  79. package/main/codegen/cosmos/rpc.query.js +164 -34
  80. package/main/codegen/cosmos/rpc.tx.js +137 -33
  81. package/main/codegen/cosmos/slashing/v1beta1/genesis.js +377 -0
  82. package/main/codegen/cosmos/slashing/v1beta1/query.js +380 -0
  83. package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +171 -0
  84. package/main/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +70 -0
  85. package/main/codegen/cosmos/slashing/v1beta1/slashing.js +242 -0
  86. package/main/codegen/cosmos/slashing/v1beta1/tx.amino.js +24 -0
  87. package/main/codegen/cosmos/slashing/v1beta1/tx.js +113 -0
  88. package/main/codegen/cosmos/slashing/v1beta1/tx.registry.js +70 -0
  89. package/main/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +48 -0
  90. package/main/codegen/cosmos/upgrade/v1beta1/query.js +577 -0
  91. package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +238 -0
  92. package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +92 -0
  93. package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +64 -0
  94. package/main/codegen/cosmos/upgrade/v1beta1/tx.js +224 -0
  95. package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +100 -0
  96. package/main/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +59 -0
  97. package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +344 -0
  98. package/main/codegen/cosmos/vesting/v1beta1/tx.amino.js +133 -0
  99. package/main/codegen/cosmos/vesting/v1beta1/tx.js +494 -0
  100. package/main/codegen/cosmos/vesting/v1beta1/tx.registry.js +130 -0
  101. package/main/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +70 -0
  102. package/main/codegen/cosmos/vesting/v1beta1/vesting.js +570 -0
  103. package/main/codegen/cosmwasm/bundle.js +10 -10
  104. package/main/codegen/cosmwasm/lcd.js +177 -42
  105. package/main/codegen/cosmwasm/rpc.query.js +172 -42
  106. package/main/codegen/cosmwasm/rpc.tx.js +146 -42
  107. package/main/codegen/google/api/annotations.js +5 -0
  108. package/main/codegen/google/api/http.js +369 -0
  109. package/main/codegen/ibc/bundle.js +36 -24
  110. package/main/codegen/ibc/client.js +6 -2
  111. package/main/codegen/ibc/core/connection/v1/connection.js +755 -0
  112. package/main/codegen/ibc/core/connection/v1/genesis.js +162 -0
  113. package/main/codegen/ibc/core/connection/v1/query.js +799 -0
  114. package/main/codegen/ibc/core/connection/v1/query.lcd.js +266 -0
  115. package/main/codegen/ibc/core/connection/v1/query.rpc.query.js +92 -0
  116. package/main/codegen/ibc/core/connection/v1/tx.amino.js +274 -0
  117. package/main/codegen/ibc/core/connection/v1/tx.js +763 -0
  118. package/main/codegen/ibc/core/connection/v1/tx.registry.js +160 -0
  119. package/main/codegen/ibc/core/connection/v1/tx.rpc.msg.js +81 -0
  120. package/main/codegen/ibc/core/port/v1/query.js +192 -0
  121. package/main/codegen/ibc/core/port/v1/query.rpc.query.js +48 -0
  122. package/main/codegen/ibc/core/types/v1/genesis.js +101 -0
  123. package/main/codegen/ibc/lcd.js +212 -62
  124. package/main/codegen/ibc/rpc.query.js +218 -62
  125. package/main/codegen/ibc/rpc.tx.js +179 -62
  126. package/main/codegen/juno/bundle.js +6 -6
  127. package/main/codegen/juno/lcd.js +175 -40
  128. package/main/codegen/juno/rpc.query.js +170 -40
  129. package/module/codegen/JunoSwap.client.js +1 -1
  130. package/module/codegen/confio/proofs.js +1371 -0
  131. package/module/codegen/contracts.js +2 -3
  132. package/module/codegen/cosmos/app/v1alpha1/config.js +148 -0
  133. package/module/codegen/cosmos/app/v1alpha1/module.js +227 -0
  134. package/module/codegen/cosmos/app/v1alpha1/query.js +104 -0
  135. package/module/codegen/cosmos/app/v1alpha1/query.rpc.query.js +20 -0
  136. package/module/codegen/cosmos/auth/v1beta1/auth.js +297 -0
  137. package/module/codegen/cosmos/auth/v1beta1/genesis.js +82 -0
  138. package/module/codegen/cosmos/auth/v1beta1/query.js +806 -0
  139. package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +89 -0
  140. package/module/codegen/cosmos/auth/v1beta1/query.rpc.query.js +62 -0
  141. package/module/codegen/cosmos/authz/v1beta1/authz.js +298 -0
  142. package/module/codegen/cosmos/authz/v1beta1/event.js +169 -0
  143. package/module/codegen/cosmos/authz/v1beta1/genesis.js +67 -0
  144. package/module/codegen/cosmos/authz/v1beta1/query.js +473 -0
  145. package/module/codegen/cosmos/authz/v1beta1/query.lcd.js +73 -0
  146. package/module/codegen/cosmos/authz/v1beta1/query.rpc.query.js +34 -0
  147. package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +91 -0
  148. package/module/codegen/cosmos/authz/v1beta1/tx.js +402 -0
  149. package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +124 -0
  150. package/module/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +34 -0
  151. package/module/codegen/cosmos/base/abci/v1beta1/abci.js +982 -0
  152. package/module/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
  153. package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +235 -0
  154. package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +712 -0
  155. package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +225 -0
  156. package/module/codegen/cosmos/base/store/v1beta1/listening.js +104 -0
  157. package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +1091 -0
  158. package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +55 -0
  159. package/module/codegen/cosmos/bundle.js +99 -55
  160. package/module/codegen/cosmos/client.js +18 -2
  161. package/module/codegen/cosmos/crisis/v1beta1/genesis.js +61 -0
  162. package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +27 -0
  163. package/module/codegen/cosmos/crisis/v1beta1/tx.js +129 -0
  164. package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +54 -0
  165. package/module/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +20 -0
  166. package/module/codegen/cosmos/evidence/v1beta1/evidence.js +102 -0
  167. package/module/codegen/cosmos/evidence/v1beta1/genesis.js +67 -0
  168. package/module/codegen/cosmos/evidence/v1beta1/query.js +255 -0
  169. package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +44 -0
  170. package/module/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +27 -0
  171. package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +29 -0
  172. package/module/codegen/cosmos/evidence/v1beta1/tx.js +137 -0
  173. package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +54 -0
  174. package/module/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +20 -0
  175. package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +365 -0
  176. package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +67 -0
  177. package/module/codegen/cosmos/feegrant/v1beta1/query.js +429 -0
  178. package/module/codegen/cosmos/feegrant/v1beta1/query.lcd.js +50 -0
  179. package/module/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +34 -0
  180. package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +54 -0
  181. package/module/codegen/cosmos/feegrant/v1beta1/tx.js +247 -0
  182. package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +89 -0
  183. package/module/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +27 -0
  184. package/module/codegen/cosmos/genutil/v1beta1/genesis.js +68 -0
  185. package/module/codegen/cosmos/lcd.js +45 -0
  186. package/module/codegen/cosmos/mint/v1beta1/genesis.js +73 -0
  187. package/module/codegen/cosmos/mint/v1beta1/mint.js +193 -0
  188. package/module/codegen/cosmos/mint/v1beta1/query.js +308 -0
  189. package/module/codegen/cosmos/mint/v1beta1/query.lcd.js +32 -0
  190. package/module/codegen/cosmos/mint/v1beta1/query.rpc.query.js +34 -0
  191. package/module/codegen/cosmos/nft/v1beta1/event.js +264 -0
  192. package/module/codegen/cosmos/nft/v1beta1/genesis.js +163 -0
  193. package/module/codegen/cosmos/nft/v1beta1/nft.js +242 -0
  194. package/module/codegen/cosmos/nft/v1beta1/query.js +917 -0
  195. package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +128 -0
  196. package/module/codegen/cosmos/nft/v1beta1/query.rpc.query.js +62 -0
  197. package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +31 -0
  198. package/module/codegen/cosmos/nft/v1beta1/tx.js +141 -0
  199. package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +54 -0
  200. package/module/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +20 -0
  201. package/module/codegen/cosmos/orm/v1/orm.js +305 -0
  202. package/module/codegen/cosmos/params/v1beta1/params.js +175 -0
  203. package/module/codegen/cosmos/params/v1beta1/query.js +317 -0
  204. package/module/codegen/cosmos/params/v1beta1/query.lcd.js +38 -0
  205. package/module/codegen/cosmos/params/v1beta1/query.rpc.query.js +27 -0
  206. package/module/codegen/cosmos/rpc.query.js +30 -0
  207. package/module/codegen/cosmos/rpc.tx.js +24 -0
  208. package/module/codegen/cosmos/slashing/v1beta1/genesis.js +317 -0
  209. package/module/codegen/cosmos/slashing/v1beta1/query.js +355 -0
  210. package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +51 -0
  211. package/module/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +34 -0
  212. package/module/codegen/cosmos/slashing/v1beta1/slashing.js +234 -0
  213. package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +19 -0
  214. package/module/codegen/cosmos/slashing/v1beta1/tx.js +105 -0
  215. package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +54 -0
  216. package/module/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +20 -0
  217. package/module/codegen/cosmos/upgrade/v1beta1/query.js +565 -0
  218. package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +69 -0
  219. package/module/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +48 -0
  220. package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +59 -0
  221. package/module/codegen/cosmos/upgrade/v1beta1/tx.js +224 -0
  222. package/module/codegen/cosmos/upgrade/v1beta1/tx.registry.js +89 -0
  223. package/module/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +27 -0
  224. package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +337 -0
  225. package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +114 -0
  226. package/module/codegen/cosmos/vesting/v1beta1/tx.js +440 -0
  227. package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +124 -0
  228. package/module/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +34 -0
  229. package/module/codegen/cosmos/vesting/v1beta1/vesting.js +480 -0
  230. package/module/codegen/cosmwasm/bundle.js +10 -10
  231. package/module/codegen/cosmwasm/lcd.js +45 -0
  232. package/module/codegen/cosmwasm/rpc.query.js +30 -0
  233. package/module/codegen/cosmwasm/rpc.tx.js +24 -0
  234. package/module/codegen/google/api/annotations.js +1 -0
  235. package/module/codegen/google/api/http.js +328 -0
  236. package/module/codegen/ibc/bundle.js +30 -24
  237. package/module/codegen/ibc/client.js +4 -2
  238. package/module/codegen/ibc/core/connection/v1/connection.js +663 -0
  239. package/module/codegen/ibc/core/connection/v1/genesis.js +110 -0
  240. package/module/codegen/ibc/core/connection/v1/query.js +766 -0
  241. package/module/codegen/ibc/core/connection/v1/query.lcd.js +100 -0
  242. package/module/codegen/ibc/core/connection/v1/query.rpc.query.js +48 -0
  243. package/module/codegen/ibc/core/connection/v1/tx.amino.js +269 -0
  244. package/module/codegen/ibc/core/connection/v1/tx.js +747 -0
  245. package/module/codegen/ibc/core/connection/v1/tx.registry.js +159 -0
  246. package/module/codegen/ibc/core/connection/v1/tx.rpc.msg.js +41 -0
  247. package/module/codegen/ibc/core/port/v1/query.js +182 -0
  248. package/module/codegen/ibc/core/port/v1/query.rpc.query.js +20 -0
  249. package/module/codegen/ibc/core/types/v1/genesis.js +87 -0
  250. package/module/codegen/ibc/lcd.js +50 -0
  251. package/module/codegen/ibc/rpc.query.js +36 -0
  252. package/module/codegen/ibc/rpc.tx.js +27 -0
  253. package/module/codegen/index.js +1 -1
  254. package/module/codegen/juno/bundle.js +6 -6
  255. package/module/codegen/juno/lcd.js +45 -0
  256. package/module/codegen/juno/rpc.query.js +30 -0
  257. package/package.json +12 -12
  258. package/main/codegen/JunoSwap.react-query.js +0 -152
  259. package/module/codegen/JunoSwap.react-query.js +0 -119
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @osmonauts/telescope@0.18.2
2
+ * This file and any referenced files were automatically generated by @osmonauts/telescope@0.18.8
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or yarn proto command to regenerate this bundle.
5
5
  */
@@ -7,14 +7,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
7
7
  import * as _135 from "./mint/genesis";
8
8
  import * as _136 from "./mint/mint";
9
9
  import * as _137 from "./mint/query";
10
- import * as _200 from "./mint/query.lcd";
11
- import * as _201 from "./mint/query.rpc.query";
12
- import * as _211 from "./lcd";
13
- import * as _212 from "./rpc.query";
10
+ import * as _250 from "./mint/query.lcd";
11
+ import * as _251 from "./mint/query.rpc.query";
12
+ import * as _261 from "./lcd";
13
+ import * as _262 from "./rpc.query";
14
14
  export let juno;
15
15
 
16
16
  (function (_juno) {
17
- const mint = _juno.mint = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _135), _136), _137), _200), _201);
17
+ const mint = _juno.mint = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _135), _136), _137), _250), _251);
18
18
 
19
- const ClientFactory = _juno.ClientFactory = _objectSpread(_objectSpread({}, _211), _212);
19
+ const ClientFactory = _juno.ClientFactory = _objectSpread(_objectSpread({}, _261), _262);
20
20
  })(juno || (juno = {}));
@@ -2,6 +2,16 @@ export const createLCDClient = async ({
2
2
  restEndpoint
3
3
  }) => ({
4
4
  cosmos: {
5
+ auth: {
6
+ v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({
7
+ restEndpoint
8
+ })
9
+ },
10
+ authz: {
11
+ v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({
12
+ restEndpoint
13
+ })
14
+ },
5
15
  bank: {
6
16
  v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({
7
17
  restEndpoint
@@ -12,6 +22,16 @@ export const createLCDClient = async ({
12
22
  restEndpoint
13
23
  })
14
24
  },
25
+ evidence: {
26
+ v1beta1: new (await import("../cosmos/evidence/v1beta1/query.lcd")).LCDQueryClient({
27
+ restEndpoint
28
+ })
29
+ },
30
+ feegrant: {
31
+ v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({
32
+ restEndpoint
33
+ })
34
+ },
15
35
  gov: {
16
36
  v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({
17
37
  restEndpoint
@@ -25,10 +45,35 @@ export const createLCDClient = async ({
25
45
  restEndpoint
26
46
  })
27
47
  },
48
+ mint: {
49
+ v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({
50
+ restEndpoint
51
+ })
52
+ },
53
+ nft: {
54
+ v1beta1: new (await import("../cosmos/nft/v1beta1/query.lcd")).LCDQueryClient({
55
+ restEndpoint
56
+ })
57
+ },
58
+ params: {
59
+ v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({
60
+ restEndpoint
61
+ })
62
+ },
63
+ slashing: {
64
+ v1beta1: new (await import("../cosmos/slashing/v1beta1/query.lcd")).LCDQueryClient({
65
+ restEndpoint
66
+ })
67
+ },
28
68
  staking: {
29
69
  v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({
30
70
  restEndpoint
31
71
  })
72
+ },
73
+ upgrade: {
74
+ v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({
75
+ restEndpoint
76
+ })
32
77
  }
33
78
  },
34
79
  juno: {
@@ -2,12 +2,27 @@ export const createRPCQueryClient = async ({
2
2
  rpc
3
3
  }) => ({
4
4
  cosmos: {
5
+ app: {
6
+ v1alpha1: new (await import("../cosmos/app/v1alpha1/query.rpc.query")).QueryClientImpl(rpc)
7
+ },
8
+ auth: {
9
+ v1beta1: new (await import("../cosmos/auth/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
10
+ },
11
+ authz: {
12
+ v1beta1: new (await import("../cosmos/authz/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
13
+ },
5
14
  bank: {
6
15
  v1beta1: new (await import("../cosmos/bank/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
7
16
  },
8
17
  distribution: {
9
18
  v1beta1: new (await import("../cosmos/distribution/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
10
19
  },
20
+ evidence: {
21
+ v1beta1: new (await import("../cosmos/evidence/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
22
+ },
23
+ feegrant: {
24
+ v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
25
+ },
11
26
  gov: {
12
27
  v1: new (await import("../cosmos/gov/v1/query.rpc.query")).QueryClientImpl(rpc),
13
28
  v1beta1: new (await import("../cosmos/gov/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
@@ -15,8 +30,23 @@ export const createRPCQueryClient = async ({
15
30
  group: {
16
31
  v1: new (await import("../cosmos/group/v1/query.rpc.query")).QueryClientImpl(rpc)
17
32
  },
33
+ mint: {
34
+ v1beta1: new (await import("../cosmos/mint/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
35
+ },
36
+ nft: {
37
+ v1beta1: new (await import("../cosmos/nft/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
38
+ },
39
+ params: {
40
+ v1beta1: new (await import("../cosmos/params/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
41
+ },
42
+ slashing: {
43
+ v1beta1: new (await import("../cosmos/slashing/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
44
+ },
18
45
  staking: {
19
46
  v1beta1: new (await import("../cosmos/staking/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
47
+ },
48
+ upgrade: {
49
+ v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.rpc.query")).QueryClientImpl(rpc)
20
50
  }
21
51
  },
22
52
  juno: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juno-network",
3
- "version": "0.2.2",
3
+ "version": "0.2.5",
4
4
  "description": "juno",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/CosmosContracts/typescript#readme",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/cli": "7.18.10",
48
- "@babel/core": "7.18.13",
48
+ "@babel/core": "7.19.0",
49
49
  "@babel/eslint-parser": "^7.18.9",
50
50
  "@babel/node": "^7.18.10",
51
51
  "@babel/plugin-proposal-class-properties": "7.18.6",
@@ -55,32 +55,32 @@
55
55
  "@babel/plugin-proposal-object-rest-spread": "7.18.9",
56
56
  "@babel/plugin-proposal-optional-chaining": "7.18.9",
57
57
  "@babel/plugin-transform-runtime": "7.18.10",
58
- "@babel/preset-env": "7.18.10",
58
+ "@babel/preset-env": "7.19.0",
59
59
  "@babel/preset-typescript": "^7.18.6",
60
- "@osmonauts/telescope": "^0.18.2",
60
+ "@osmonauts/telescope": "^0.18.8",
61
61
  "@protobufs/cosmos": "^0.0.11",
62
62
  "@protobufs/cosmwasm": "^0.0.11",
63
63
  "@protobufs/ibc": "^0.0.11",
64
64
  "@protobufs/juno": "^0.0.14",
65
- "@types/jest": "^28.1.7",
65
+ "@types/jest": "^29.0.0",
66
66
  "babel-core": "7.0.0-bridge.0",
67
- "babel-jest": "28.1.3",
67
+ "babel-jest": "29.0.2",
68
68
  "babel-watch": "^7.0.0",
69
69
  "cross-env": "^7.0.2",
70
- "eslint": "8.22.0",
70
+ "eslint": "8.23.0",
71
71
  "eslint-config-prettier": "^8.5.0",
72
72
  "eslint-plugin-prettier": "^4.2.1",
73
- "jest": "^28.1.3",
73
+ "jest": "^29.0.2",
74
74
  "jest-in-case": "^1.0.2",
75
75
  "long": "^5.2.0",
76
76
  "prettier": "^2.7.1",
77
77
  "regenerator-runtime": "^0.13.7",
78
78
  "rimraf": "^3.0.2",
79
79
  "ts-jest": "^28.0.8",
80
- "typescript": "^4.7.4"
80
+ "typescript": "^4.8.2"
81
81
  },
82
82
  "dependencies": {
83
- "@babel/runtime": "^7.18.9",
83
+ "@babel/runtime": "^7.19.0",
84
84
  "@cosmjs/amino": "0.28.13",
85
85
  "@cosmjs/cosmwasm-stargate": "^0.28.13",
86
86
  "@cosmjs/proto-signing": "0.28.13",
@@ -88,8 +88,8 @@
88
88
  "@cosmjs/tendermint-rpc": "^0.28.13",
89
89
  "@osmonauts/helpers": "^0.4.3",
90
90
  "@osmonauts/lcd": "0.4.0",
91
- "@tanstack/react-query": "^4.2.1",
91
+ "@tanstack/react-query": "^4.2.3",
92
92
  "protobufjs": "^6.11.2"
93
93
  },
94
- "gitHead": "f7952a72560a3eb9a3ff4763ccb400714258d4b8"
94
+ "gitHead": "f7d5d0958c87231d4924c6fa3f8745958875b2df"
95
95
  }
@@ -1,152 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.useJunoSwapAddLiquidityMutation = useJunoSwapAddLiquidityMutation;
9
- exports.useJunoSwapBalanceQuery = useJunoSwapBalanceQuery;
10
- exports.useJunoSwapInfoQuery = useJunoSwapInfoQuery;
11
- exports.useJunoSwapMultiContractSwapMutation = useJunoSwapMultiContractSwapMutation;
12
- exports.useJunoSwapRemoveLiquidityMutation = useJunoSwapRemoveLiquidityMutation;
13
- exports.useJunoSwapSwapToMutation = useJunoSwapSwapToMutation;
14
- exports.useJunoSwapSwapToken1ForToken2Mutation = useJunoSwapSwapToken1ForToken2Mutation;
15
- exports.useJunoSwapSwapToken2ForToken1Mutation = useJunoSwapSwapToken2ForToken1Mutation;
16
- exports.useJunoSwapToken1ForToken2PriceQuery = useJunoSwapToken1ForToken2PriceQuery;
17
- exports.useJunoSwapToken2ForToken1PriceQuery = useJunoSwapToken2ForToken1PriceQuery;
18
-
19
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
20
-
21
- var _reactQuery = require("@tanstack/react-query");
22
-
23
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24
-
25
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26
-
27
- function useJunoSwapToken2ForToken1PriceQuery(_ref) {
28
- var client = _ref.client,
29
- args = _ref.args,
30
- options = _ref.options;
31
- return (0, _reactQuery.useQuery)(["junoSwapToken2ForToken1Price", client === null || client === void 0 ? void 0 : client.contractAddress, JSON.stringify(args)], function () {
32
- return client ? client.token2ForToken1Price({
33
- token2Amount: args.token2Amount
34
- }) : Promise.reject(new Error("Invalid client"));
35
- }, _objectSpread(_objectSpread({}, options), {}, {
36
- enabled: !!client && ((options === null || options === void 0 ? void 0 : options.enabled) != undefined ? options.enabled : true)
37
- }));
38
- }
39
-
40
- function useJunoSwapToken1ForToken2PriceQuery(_ref2) {
41
- var client = _ref2.client,
42
- args = _ref2.args,
43
- options = _ref2.options;
44
- return (0, _reactQuery.useQuery)(["junoSwapToken1ForToken2Price", client === null || client === void 0 ? void 0 : client.contractAddress, JSON.stringify(args)], function () {
45
- return client ? client.token1ForToken2Price({
46
- token1Amount: args.token1Amount
47
- }) : Promise.reject(new Error("Invalid client"));
48
- }, _objectSpread(_objectSpread({}, options), {}, {
49
- enabled: !!client && ((options === null || options === void 0 ? void 0 : options.enabled) != undefined ? options.enabled : true)
50
- }));
51
- }
52
-
53
- function useJunoSwapInfoQuery(_ref3) {
54
- var client = _ref3.client,
55
- options = _ref3.options;
56
- return (0, _reactQuery.useQuery)(["junoSwapInfo", client === null || client === void 0 ? void 0 : client.contractAddress], function () {
57
- return client ? client.info() : Promise.reject(new Error("Invalid client"));
58
- }, _objectSpread(_objectSpread({}, options), {}, {
59
- enabled: !!client && ((options === null || options === void 0 ? void 0 : options.enabled) != undefined ? options.enabled : true)
60
- }));
61
- }
62
-
63
- function useJunoSwapBalanceQuery(_ref4) {
64
- var client = _ref4.client,
65
- args = _ref4.args,
66
- options = _ref4.options;
67
- return (0, _reactQuery.useQuery)(["junoSwapBalance", client === null || client === void 0 ? void 0 : client.contractAddress, JSON.stringify(args)], function () {
68
- return client ? client.balance({
69
- address: args.address
70
- }) : Promise.reject(new Error("Invalid client"));
71
- }, _objectSpread(_objectSpread({}, options), {}, {
72
- enabled: !!client && ((options === null || options === void 0 ? void 0 : options.enabled) != undefined ? options.enabled : true)
73
- }));
74
- }
75
-
76
- function useJunoSwapSwapToMutation(options) {
77
- return (0, _reactQuery.useMutation)(function (_ref5) {
78
- var client = _ref5.client,
79
- msg = _ref5.msg,
80
- _ref5$args = _ref5.args;
81
- _ref5$args = _ref5$args === void 0 ? {} : _ref5$args;
82
- var fee = _ref5$args.fee,
83
- memo = _ref5$args.memo,
84
- funds = _ref5$args.funds;
85
- return client.swapTo(msg, fee, memo, funds);
86
- }, options);
87
- }
88
-
89
- function useJunoSwapMultiContractSwapMutation(options) {
90
- return (0, _reactQuery.useMutation)(function (_ref6) {
91
- var client = _ref6.client,
92
- msg = _ref6.msg,
93
- _ref6$args = _ref6.args;
94
- _ref6$args = _ref6$args === void 0 ? {} : _ref6$args;
95
- var fee = _ref6$args.fee,
96
- memo = _ref6$args.memo,
97
- funds = _ref6$args.funds;
98
- return client.multiContractSwap(msg, fee, memo, funds);
99
- }, options);
100
- }
101
-
102
- function useJunoSwapSwapToken2ForToken1Mutation(options) {
103
- return (0, _reactQuery.useMutation)(function (_ref7) {
104
- var client = _ref7.client,
105
- msg = _ref7.msg,
106
- _ref7$args = _ref7.args;
107
- _ref7$args = _ref7$args === void 0 ? {} : _ref7$args;
108
- var fee = _ref7$args.fee,
109
- memo = _ref7$args.memo,
110
- funds = _ref7$args.funds;
111
- return client.swapToken2ForToken1(msg, fee, memo, funds);
112
- }, options);
113
- }
114
-
115
- function useJunoSwapSwapToken1ForToken2Mutation(options) {
116
- return (0, _reactQuery.useMutation)(function (_ref8) {
117
- var client = _ref8.client,
118
- msg = _ref8.msg,
119
- _ref8$args = _ref8.args;
120
- _ref8$args = _ref8$args === void 0 ? {} : _ref8$args;
121
- var fee = _ref8$args.fee,
122
- memo = _ref8$args.memo,
123
- funds = _ref8$args.funds;
124
- return client.swapToken1ForToken2(msg, fee, memo, funds);
125
- }, options);
126
- }
127
-
128
- function useJunoSwapRemoveLiquidityMutation(options) {
129
- return (0, _reactQuery.useMutation)(function (_ref9) {
130
- var client = _ref9.client,
131
- msg = _ref9.msg,
132
- _ref9$args = _ref9.args;
133
- _ref9$args = _ref9$args === void 0 ? {} : _ref9$args;
134
- var fee = _ref9$args.fee,
135
- memo = _ref9$args.memo,
136
- funds = _ref9$args.funds;
137
- return client.removeLiquidity(msg, fee, memo, funds);
138
- }, options);
139
- }
140
-
141
- function useJunoSwapAddLiquidityMutation(options) {
142
- return (0, _reactQuery.useMutation)(function (_ref10) {
143
- var client = _ref10.client,
144
- msg = _ref10.msg,
145
- _ref10$args = _ref10.args;
146
- _ref10$args = _ref10$args === void 0 ? {} : _ref10$args;
147
- var fee = _ref10$args.fee,
148
- memo = _ref10$args.memo,
149
- funds = _ref10$args.funds;
150
- return client.addLiquidity(msg, fee, memo, funds);
151
- }, options);
152
- }
@@ -1,119 +0,0 @@
1
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
-
3
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
-
5
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
-
7
- /**
8
- * This file was automatically generated by @cosmwasm/ts-codegen@0.13.0.
9
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
10
- * and run the @cosmwasm/ts-codegen generate command to regenerate this file.
11
- */
12
- import { useQuery, useMutation } from "@tanstack/react-query";
13
- export function useJunoSwapToken2ForToken1PriceQuery({
14
- client,
15
- args,
16
- options
17
- }) {
18
- return useQuery(["junoSwapToken2ForToken1Price", client === null || client === void 0 ? void 0 : client.contractAddress, JSON.stringify(args)], () => client ? client.token2ForToken1Price({
19
- token2Amount: args.token2Amount
20
- }) : Promise.reject(new Error("Invalid client")), _objectSpread(_objectSpread({}, options), {}, {
21
- enabled: !!client && ((options === null || options === void 0 ? void 0 : options.enabled) != undefined ? options.enabled : true)
22
- }));
23
- }
24
- export function useJunoSwapToken1ForToken2PriceQuery({
25
- client,
26
- args,
27
- options
28
- }) {
29
- return useQuery(["junoSwapToken1ForToken2Price", client === null || client === void 0 ? void 0 : client.contractAddress, JSON.stringify(args)], () => client ? client.token1ForToken2Price({
30
- token1Amount: args.token1Amount
31
- }) : Promise.reject(new Error("Invalid client")), _objectSpread(_objectSpread({}, options), {}, {
32
- enabled: !!client && ((options === null || options === void 0 ? void 0 : options.enabled) != undefined ? options.enabled : true)
33
- }));
34
- }
35
- export function useJunoSwapInfoQuery({
36
- client,
37
- options
38
- }) {
39
- return useQuery(["junoSwapInfo", client === null || client === void 0 ? void 0 : client.contractAddress], () => client ? client.info() : Promise.reject(new Error("Invalid client")), _objectSpread(_objectSpread({}, options), {}, {
40
- enabled: !!client && ((options === null || options === void 0 ? void 0 : options.enabled) != undefined ? options.enabled : true)
41
- }));
42
- }
43
- export function useJunoSwapBalanceQuery({
44
- client,
45
- args,
46
- options
47
- }) {
48
- return useQuery(["junoSwapBalance", client === null || client === void 0 ? void 0 : client.contractAddress, JSON.stringify(args)], () => client ? client.balance({
49
- address: args.address
50
- }) : Promise.reject(new Error("Invalid client")), _objectSpread(_objectSpread({}, options), {}, {
51
- enabled: !!client && ((options === null || options === void 0 ? void 0 : options.enabled) != undefined ? options.enabled : true)
52
- }));
53
- }
54
- export function useJunoSwapSwapToMutation(options) {
55
- return useMutation(({
56
- client,
57
- msg,
58
- args: {
59
- fee,
60
- memo,
61
- funds
62
- } = {}
63
- }) => client.swapTo(msg, fee, memo, funds), options);
64
- }
65
- export function useJunoSwapMultiContractSwapMutation(options) {
66
- return useMutation(({
67
- client,
68
- msg,
69
- args: {
70
- fee,
71
- memo,
72
- funds
73
- } = {}
74
- }) => client.multiContractSwap(msg, fee, memo, funds), options);
75
- }
76
- export function useJunoSwapSwapToken2ForToken1Mutation(options) {
77
- return useMutation(({
78
- client,
79
- msg,
80
- args: {
81
- fee,
82
- memo,
83
- funds
84
- } = {}
85
- }) => client.swapToken2ForToken1(msg, fee, memo, funds), options);
86
- }
87
- export function useJunoSwapSwapToken1ForToken2Mutation(options) {
88
- return useMutation(({
89
- client,
90
- msg,
91
- args: {
92
- fee,
93
- memo,
94
- funds
95
- } = {}
96
- }) => client.swapToken1ForToken2(msg, fee, memo, funds), options);
97
- }
98
- export function useJunoSwapRemoveLiquidityMutation(options) {
99
- return useMutation(({
100
- client,
101
- msg,
102
- args: {
103
- fee,
104
- memo,
105
- funds
106
- } = {}
107
- }) => client.removeLiquidity(msg, fee, memo, funds), options);
108
- }
109
- export function useJunoSwapAddLiquidityMutation(options) {
110
- return useMutation(({
111
- client,
112
- msg,
113
- args: {
114
- fee,
115
- memo,
116
- funds
117
- } = {}
118
- }) => client.addLiquidity(msg, fee, memo, funds), options);
119
- }