injectivejs 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +335 -0
  3. package/main/codegen/AtomicOrder.client.js +76 -0
  4. package/main/codegen/AtomicOrder.types.js +1 -0
  5. package/main/codegen/Registry.client.js +293 -0
  6. package/main/codegen/Registry.types.js +1 -0
  7. package/main/codegen/confio/proofs.js +1256 -0
  8. package/main/codegen/contracts.js +37 -0
  9. package/main/codegen/cosmos/app/v1alpha1/config.js +138 -0
  10. package/main/codegen/cosmos/app/v1alpha1/module.js +215 -0
  11. package/main/codegen/cosmos/app/v1alpha1/query.js +94 -0
  12. package/main/codegen/cosmos/app/v1alpha1/query.rpc.query.js +64 -0
  13. package/main/codegen/cosmos/auth/v1beta1/auth.js +265 -0
  14. package/main/codegen/cosmos/auth/v1beta1/genesis.js +94 -0
  15. package/main/codegen/cosmos/auth/v1beta1/query.js +672 -0
  16. package/main/codegen/cosmos/auth/v1beta1/query.lcd.js +293 -0
  17. package/main/codegen/cosmos/auth/v1beta1/query.rpc.query.js +156 -0
  18. package/main/codegen/cosmos/authz/v1beta1/authz.js +266 -0
  19. package/main/codegen/cosmos/authz/v1beta1/event.js +148 -0
  20. package/main/codegen/cosmos/authz/v1beta1/genesis.js +82 -0
  21. package/main/codegen/cosmos/authz/v1beta1/query.js +425 -0
  22. package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +173 -0
  23. package/main/codegen/cosmos/authz/v1beta1/query.rpc.query.js +90 -0
  24. package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +96 -0
  25. package/main/codegen/cosmos/authz/v1beta1/tx.js +353 -0
  26. package/main/codegen/cosmos/authz/v1beta1/tx.registry.js +90 -0
  27. package/main/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +70 -0
  28. package/main/codegen/cosmos/bank/v1beta1/authz.js +82 -0
  29. package/main/codegen/cosmos/bank/v1beta1/bank.js +556 -0
  30. package/main/codegen/cosmos/bank/v1beta1/genesis.js +209 -0
  31. package/main/codegen/cosmos/bank/v1beta1/query.js +1057 -0
  32. package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +406 -0
  33. package/main/codegen/cosmos/bank/v1beta1/query.rpc.query.js +184 -0
  34. package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +101 -0
  35. package/main/codegen/cosmos/bank/v1beta1/tx.js +253 -0
  36. package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +72 -0
  37. package/main/codegen/cosmos/bank/v1beta1/tx.rpc.msg.js +59 -0
  38. package/main/codegen/cosmos/base/abci/v1beta1/abci.js +884 -0
  39. package/main/codegen/cosmos/base/kv/v1beta1/kv.js +136 -0
  40. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +160 -0
  41. package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +218 -0
  42. package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1390 -0
  43. package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +607 -0
  44. package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +205 -0
  45. package/main/codegen/cosmos/base/store/v1beta1/listening.js +91 -0
  46. package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +919 -0
  47. package/main/codegen/cosmos/base/tendermint/v1beta1/query.lcd.js +266 -0
  48. package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +142 -0
  49. package/main/codegen/cosmos/base/v1beta1/coin.js +222 -0
  50. package/main/codegen/cosmos/bundle.js +587 -0
  51. package/main/codegen/cosmos/capability/v1beta1/capability.js +183 -0
  52. package/main/codegen/cosmos/capability/v1beta1/genesis.js +148 -0
  53. package/main/codegen/cosmos/client.js +138 -0
  54. package/main/codegen/cosmos/crisis/v1beta1/genesis.js +61 -0
  55. package/main/codegen/cosmos/crisis/v1beta1/tx.amino.js +32 -0
  56. package/main/codegen/cosmos/crisis/v1beta1/tx.js +114 -0
  57. package/main/codegen/cosmos/crisis/v1beta1/tx.registry.js +54 -0
  58. package/main/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +48 -0
  59. package/main/codegen/cosmos/crypto/ed25519/keys.js +108 -0
  60. package/main/codegen/cosmos/crypto/hd/v1/hd.js +101 -0
  61. package/main/codegen/cosmos/crypto/keyring/v1/record.js +283 -0
  62. package/main/codegen/cosmos/crypto/multisig/keys.js +92 -0
  63. package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +136 -0
  64. package/main/codegen/cosmos/crypto/secp256k1/keys.js +108 -0
  65. package/main/codegen/cosmos/crypto/secp256r1/keys.js +108 -0
  66. package/main/codegen/cosmos/distribution/v1beta1/distribution.js +851 -0
  67. package/main/codegen/cosmos/distribution/v1beta1/genesis.js +699 -0
  68. package/main/codegen/cosmos/distribution/v1beta1/query.js +977 -0
  69. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +356 -0
  70. package/main/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +178 -0
  71. package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +91 -0
  72. package/main/codegen/cosmos/distribution/v1beta1/tx.js +439 -0
  73. package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +108 -0
  74. package/main/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +81 -0
  75. package/main/codegen/cosmos/evidence/v1beta1/evidence.js +95 -0
  76. package/main/codegen/cosmos/evidence/v1beta1/genesis.js +82 -0
  77. package/main/codegen/cosmos/evidence/v1beta1/query.js +231 -0
  78. package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +114 -0
  79. package/main/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +80 -0
  80. package/main/codegen/cosmos/evidence/v1beta1/tx.amino.js +34 -0
  81. package/main/codegen/cosmos/evidence/v1beta1/tx.js +120 -0
  82. package/main/codegen/cosmos/evidence/v1beta1/tx.registry.js +54 -0
  83. package/main/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +48 -0
  84. package/main/codegen/cosmos/feegrant/v1beta1/feegrant.js +349 -0
  85. package/main/codegen/cosmos/feegrant/v1beta1/genesis.js +82 -0
  86. package/main/codegen/cosmos/feegrant/v1beta1/query.js +380 -0
  87. package/main/codegen/cosmos/feegrant/v1beta1/query.lcd.js +150 -0
  88. package/main/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +90 -0
  89. package/main/codegen/cosmos/feegrant/v1beta1/tx.amino.js +57 -0
  90. package/main/codegen/cosmos/feegrant/v1beta1/tx.js +206 -0
  91. package/main/codegen/cosmos/feegrant/v1beta1/tx.registry.js +72 -0
  92. package/main/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +59 -0
  93. package/main/codegen/cosmos/genutil/v1beta1/genesis.js +79 -0
  94. package/main/codegen/cosmos/gov/v1/genesis.js +170 -0
  95. package/main/codegen/cosmos/gov/v1/gov.js +852 -0
  96. package/main/codegen/cosmos/gov/v1/query.js +919 -0
  97. package/main/codegen/cosmos/gov/v1/query.lcd.js +334 -0
  98. package/main/codegen/cosmos/gov/v1/query.rpc.query.js +160 -0
  99. package/main/codegen/cosmos/gov/v1/tx.amino.js +183 -0
  100. package/main/codegen/cosmos/gov/v1/tx.js +612 -0
  101. package/main/codegen/cosmos/gov/v1/tx.registry.js +126 -0
  102. package/main/codegen/cosmos/gov/v1/tx.rpc.msg.js +92 -0
  103. package/main/codegen/cosmos/gov/v1beta1/genesis.js +170 -0
  104. package/main/codegen/cosmos/gov/v1beta1/gov.js +890 -0
  105. package/main/codegen/cosmos/gov/v1beta1/query.js +919 -0
  106. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +334 -0
  107. package/main/codegen/cosmos/gov/v1beta1/query.rpc.query.js +160 -0
  108. package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +142 -0
  109. package/main/codegen/cosmos/gov/v1beta1/tx.js +479 -0
  110. package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +108 -0
  111. package/main/codegen/cosmos/gov/v1beta1/tx.rpc.msg.js +81 -0
  112. package/main/codegen/cosmos/group/v1/events.js +449 -0
  113. package/main/codegen/cosmos/group/v1/genesis.js +206 -0
  114. package/main/codegen/cosmos/group/v1/query.js +1500 -0
  115. package/main/codegen/cosmos/group/v1/query.lcd.js +527 -0
  116. package/main/codegen/cosmos/group/v1/query.rpc.query.js +230 -0
  117. package/main/codegen/cosmos/group/v1/tx.amino.js +428 -0
  118. package/main/codegen/cosmos/group/v1/tx.js +1657 -0
  119. package/main/codegen/cosmos/group/v1/tx.registry.js +288 -0
  120. package/main/codegen/cosmos/group/v1/tx.rpc.msg.js +191 -0
  121. package/main/codegen/cosmos/group/v1/types.js +1260 -0
  122. package/main/codegen/cosmos/lcd.js +307 -0
  123. package/main/codegen/cosmos/mint/v1beta1/genesis.js +71 -0
  124. package/main/codegen/cosmos/mint/v1beta1/mint.js +170 -0
  125. package/main/codegen/cosmos/mint/v1beta1/query.js +254 -0
  126. package/main/codegen/cosmos/mint/v1beta1/query.lcd.js +143 -0
  127. package/main/codegen/cosmos/mint/v1beta1/query.rpc.query.js +96 -0
  128. package/main/codegen/cosmos/msg/v1/msg.js +5 -0
  129. package/main/codegen/cosmos/nft/v1beta1/event.js +225 -0
  130. package/main/codegen/cosmos/nft/v1beta1/genesis.js +174 -0
  131. package/main/codegen/cosmos/nft/v1beta1/nft.js +210 -0
  132. package/main/codegen/cosmos/nft/v1beta1/query.js +770 -0
  133. package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +296 -0
  134. package/main/codegen/cosmos/nft/v1beta1/query.rpc.query.js +150 -0
  135. package/main/codegen/cosmos/nft/v1beta1/tx.amino.js +36 -0
  136. package/main/codegen/cosmos/nft/v1beta1/tx.js +124 -0
  137. package/main/codegen/cosmos/nft/v1beta1/tx.registry.js +54 -0
  138. package/main/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +48 -0
  139. package/main/codegen/cosmos/orm/v1/orm.js +270 -0
  140. package/main/codegen/cosmos/orm/v1alpha1/schema.js +238 -0
  141. package/main/codegen/cosmos/params/v1beta1/params.js +166 -0
  142. package/main/codegen/cosmos/params/v1beta1/query.js +285 -0
  143. package/main/codegen/cosmos/params/v1beta1/query.lcd.js +115 -0
  144. package/main/codegen/cosmos/params/v1beta1/query.rpc.query.js +78 -0
  145. package/main/codegen/cosmos/rpc.query.js +255 -0
  146. package/main/codegen/cosmos/rpc.tx.js +226 -0
  147. package/main/codegen/cosmos/slashing/v1beta1/genesis.js +298 -0
  148. package/main/codegen/cosmos/slashing/v1beta1/query.js +309 -0
  149. package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +151 -0
  150. package/main/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +96 -0
  151. package/main/codegen/cosmos/slashing/v1beta1/slashing.js +204 -0
  152. package/main/codegen/cosmos/slashing/v1beta1/tx.amino.js +24 -0
  153. package/main/codegen/cosmos/slashing/v1beta1/tx.js +94 -0
  154. package/main/codegen/cosmos/slashing/v1beta1/tx.registry.js +54 -0
  155. package/main/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +48 -0
  156. package/main/codegen/cosmos/staking/v1beta1/authz.js +243 -0
  157. package/main/codegen/cosmos/staking/v1beta1/genesis.js +262 -0
  158. package/main/codegen/cosmos/staking/v1beta1/query.js +1579 -0
  159. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +576 -0
  160. package/main/codegen/cosmos/staking/v1beta1/query.rpc.query.js +248 -0
  161. package/main/codegen/cosmos/staking/v1beta1/staking.js +1562 -0
  162. package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +217 -0
  163. package/main/codegen/cosmos/staking/v1beta1/tx.js +612 -0
  164. package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +126 -0
  165. package/main/codegen/cosmos/staking/v1beta1/tx.rpc.msg.js +92 -0
  166. package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +431 -0
  167. package/main/codegen/cosmos/tx/v1beta1/service.js +804 -0
  168. package/main/codegen/cosmos/tx/v1beta1/service.lcd.js +159 -0
  169. package/main/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +118 -0
  170. package/main/codegen/cosmos/tx/v1beta1/tx.js +1038 -0
  171. package/main/codegen/cosmos/upgrade/v1beta1/query.js +473 -0
  172. package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +220 -0
  173. package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +122 -0
  174. package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +64 -0
  175. package/main/codegen/cosmos/upgrade/v1beta1/tx.js +186 -0
  176. package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +72 -0
  177. package/main/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +59 -0
  178. package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +288 -0
  179. package/main/codegen/cosmos/vesting/v1beta1/tx.amino.js +133 -0
  180. package/main/codegen/cosmos/vesting/v1beta1/tx.js +395 -0
  181. package/main/codegen/cosmos/vesting/v1beta1/tx.registry.js +90 -0
  182. package/main/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +70 -0
  183. package/main/codegen/cosmos/vesting/v1beta1/vesting.js +446 -0
  184. package/main/codegen/cosmos_proto/bundle.js +26 -0
  185. package/main/codegen/cosmos_proto/cosmos.js +232 -0
  186. package/main/codegen/cosmwasm/bundle.js +61 -0
  187. package/main/codegen/cosmwasm/client.js +92 -0
  188. package/main/codegen/cosmwasm/lcd.js +325 -0
  189. package/main/codegen/cosmwasm/rpc.query.js +269 -0
  190. package/main/codegen/cosmwasm/rpc.tx.js +242 -0
  191. package/main/codegen/cosmwasm/wasm/v1/genesis.js +440 -0
  192. package/main/codegen/cosmwasm/wasm/v1/ibc.js +140 -0
  193. package/main/codegen/cosmwasm/wasm/v1/proposal.js +843 -0
  194. package/main/codegen/cosmwasm/wasm/v1/query.js +1125 -0
  195. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +383 -0
  196. package/main/codegen/cosmwasm/wasm/v1/query.rpc.query.js +182 -0
  197. package/main/codegen/cosmwasm/wasm/v1/tx.amino.js +196 -0
  198. package/main/codegen/cosmwasm/wasm/v1/tx.js +756 -0
  199. package/main/codegen/cosmwasm/wasm/v1/tx.registry.js +144 -0
  200. package/main/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +103 -0
  201. package/main/codegen/cosmwasm/wasm/v1/types.js +697 -0
  202. package/main/codegen/gogoproto/bundle.js +26 -0
  203. package/main/codegen/gogoproto/gogo.js +5 -0
  204. package/main/codegen/google/api/annotations.js +5 -0
  205. package/main/codegen/google/api/http.js +295 -0
  206. package/main/codegen/google/bundle.js +49 -0
  207. package/main/codegen/google/protobuf/any.js +71 -0
  208. package/main/codegen/google/protobuf/descriptor.js +3264 -0
  209. package/main/codegen/google/protobuf/duration.js +73 -0
  210. package/main/codegen/google/protobuf/empty.js +47 -0
  211. package/main/codegen/google/protobuf/field_mask.js +79 -0
  212. package/main/codegen/google/protobuf/struct.js +358 -0
  213. package/main/codegen/google/protobuf/timestamp.js +73 -0
  214. package/main/codegen/google/protobuf/wrappers.js +435 -0
  215. package/main/codegen/ibc/applications/transfer/v1/genesis.js +102 -0
  216. package/main/codegen/ibc/applications/transfer/v1/query.js +309 -0
  217. package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +151 -0
  218. package/main/codegen/ibc/applications/transfer/v1/query.rpc.query.js +96 -0
  219. package/main/codegen/ibc/applications/transfer/v1/transfer.js +128 -0
  220. package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +65 -0
  221. package/main/codegen/ibc/applications/transfer/v1/tx.js +160 -0
  222. package/main/codegen/ibc/applications/transfer/v1/tx.registry.js +54 -0
  223. package/main/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +48 -0
  224. package/main/codegen/ibc/applications/transfer/v2/packet.js +91 -0
  225. package/main/codegen/ibc/bundle.js +199 -0
  226. package/main/codegen/ibc/client.js +104 -0
  227. package/main/codegen/ibc/core/channel/v1/channel.js +705 -0
  228. package/main/codegen/ibc/core/channel/v1/genesis.js +296 -0
  229. package/main/codegen/ibc/core/channel/v1/query.js +1892 -0
  230. package/main/codegen/ibc/core/channel/v1/query.lcd.js +513 -0
  231. package/main/codegen/ibc/core/channel/v1/query.rpc.query.js +234 -0
  232. package/main/codegen/ibc/core/channel/v1/tx.amino.js +520 -0
  233. package/main/codegen/ibc/core/channel/v1/tx.js +1220 -0
  234. package/main/codegen/ibc/core/channel/v1/tx.registry.js +216 -0
  235. package/main/codegen/ibc/core/channel/v1/tx.rpc.msg.js +147 -0
  236. package/main/codegen/ibc/core/client/v1/client.js +475 -0
  237. package/main/codegen/ibc/core/client/v1/genesis.js +285 -0
  238. package/main/codegen/ibc/core/client/v1/query.js +856 -0
  239. package/main/codegen/ibc/core/client/v1/query.lcd.js +342 -0
  240. package/main/codegen/ibc/core/client/v1/query.rpc.query.js +170 -0
  241. package/main/codegen/ibc/core/client/v1/tx.amino.js +149 -0
  242. package/main/codegen/ibc/core/client/v1/tx.js +446 -0
  243. package/main/codegen/ibc/core/client/v1/tx.registry.js +108 -0
  244. package/main/codegen/ibc/core/client/v1/tx.rpc.msg.js +81 -0
  245. package/main/codegen/ibc/core/commitment/v1/commitment.js +235 -0
  246. package/main/codegen/ibc/core/connection/v1/connection.js +625 -0
  247. package/main/codegen/ibc/core/connection/v1/genesis.js +127 -0
  248. package/main/codegen/ibc/core/connection/v1/query.js +653 -0
  249. package/main/codegen/ibc/core/connection/v1/query.lcd.js +216 -0
  250. package/main/codegen/ibc/core/connection/v1/query.rpc.query.js +122 -0
  251. package/main/codegen/ibc/core/connection/v1/tx.amino.js +274 -0
  252. package/main/codegen/ibc/core/connection/v1/tx.js +631 -0
  253. package/main/codegen/ibc/core/connection/v1/tx.registry.js +108 -0
  254. package/main/codegen/ibc/core/connection/v1/tx.rpc.msg.js +81 -0
  255. package/main/codegen/ibc/core/port/v1/query.js +160 -0
  256. package/main/codegen/ibc/core/port/v1/query.rpc.query.js +62 -0
  257. package/main/codegen/ibc/core/types/v1/genesis.js +85 -0
  258. package/main/codegen/ibc/lcd.js +376 -0
  259. package/main/codegen/ibc/lightclients/localhost/v1/localhost.js +73 -0
  260. package/main/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1190 -0
  261. package/main/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1190 -0
  262. package/main/codegen/ibc/lightclients/tendermint/v1/tendermint.js +472 -0
  263. package/main/codegen/ibc/rpc.query.js +319 -0
  264. package/main/codegen/ibc/rpc.tx.js +287 -0
  265. package/main/codegen/ics23/bundle.js +26 -0
  266. package/main/codegen/index.js +187 -0
  267. package/main/codegen/injective/auction/v1beta1/auction.js +352 -0
  268. package/main/codegen/injective/auction/v1beta1/genesis.js +93 -0
  269. package/main/codegen/injective/auction/v1beta1/query.js +317 -0
  270. package/main/codegen/injective/auction/v1beta1/query.lcd.js +143 -0
  271. package/main/codegen/injective/auction/v1beta1/query.rpc.query.js +96 -0
  272. package/main/codegen/injective/auction/v1beta1/tx.amino.js +41 -0
  273. package/main/codegen/injective/auction/v1beta1/tx.js +118 -0
  274. package/main/codegen/injective/auction/v1beta1/tx.registry.js +54 -0
  275. package/main/codegen/injective/auction/v1beta1/tx.rpc.msg.js +48 -0
  276. package/main/codegen/injective/bundle.js +239 -0
  277. package/main/codegen/injective/client.js +112 -0
  278. package/main/codegen/injective/crypto/v1beta1/ethsecp256k1/keys.js +108 -0
  279. package/main/codegen/injective/exchange/v1beta1/authz.js +801 -0
  280. package/main/codegen/injective/exchange/v1beta1/events.js +1892 -0
  281. package/main/codegen/injective/exchange/v1beta1/exchange.js +3929 -0
  282. package/main/codegen/injective/exchange/v1beta1/genesis.js +1573 -0
  283. package/main/codegen/injective/exchange/v1beta1/query.js +6020 -0
  284. package/main/codegen/injective/exchange/v1beta1/query.lcd.js +1718 -0
  285. package/main/codegen/injective/exchange/v1beta1/query.rpc.query.js +712 -0
  286. package/main/codegen/injective/exchange/v1beta1/tx.amino.js +1248 -0
  287. package/main/codegen/injective/exchange/v1beta1/tx.js +6365 -0
  288. package/main/codegen/injective/exchange/v1beta1/tx.registry.js +540 -0
  289. package/main/codegen/injective/exchange/v1beta1/tx.rpc.msg.js +345 -0
  290. package/main/codegen/injective/insurance/v1beta1/genesis.js +137 -0
  291. package/main/codegen/injective/insurance/v1beta1/insurance.js +525 -0
  292. package/main/codegen/injective/insurance/v1beta1/query.js +601 -0
  293. package/main/codegen/injective/insurance/v1beta1/query.lcd.js +266 -0
  294. package/main/codegen/injective/insurance/v1beta1/query.rpc.query.js +138 -0
  295. package/main/codegen/injective/insurance/v1beta1/tx.amino.js +121 -0
  296. package/main/codegen/injective/insurance/v1beta1/tx.js +368 -0
  297. package/main/codegen/injective/insurance/v1beta1/tx.registry.js +90 -0
  298. package/main/codegen/injective/insurance/v1beta1/tx.rpc.msg.js +70 -0
  299. package/main/codegen/injective/lcd.js +415 -0
  300. package/main/codegen/injective/ocr/v1beta1/genesis.js +671 -0
  301. package/main/codegen/injective/ocr/v1beta1/ocr.js +1875 -0
  302. package/main/codegen/injective/ocr/v1beta1/query.js +690 -0
  303. package/main/codegen/injective/ocr/v1beta1/query.lcd.js +271 -0
  304. package/main/codegen/injective/ocr/v1beta1/query.rpc.query.js +150 -0
  305. package/main/codegen/injective/ocr/v1beta1/tx.amino.js +302 -0
  306. package/main/codegen/injective/ocr/v1beta1/tx.js +1006 -0
  307. package/main/codegen/injective/ocr/v1beta1/tx.registry.js +180 -0
  308. package/main/codegen/injective/ocr/v1beta1/tx.rpc.msg.js +125 -0
  309. package/main/codegen/injective/oracle/v1beta1/events.js +677 -0
  310. package/main/codegen/injective/oracle/v1beta1/genesis.js +386 -0
  311. package/main/codegen/injective/oracle/v1beta1/oracle.js +1588 -0
  312. package/main/codegen/injective/oracle/v1beta1/proposal.js +769 -0
  313. package/main/codegen/injective/oracle/v1beta1/query.js +1277 -0
  314. package/main/codegen/injective/oracle/v1beta1/query.lcd.js +496 -0
  315. package/main/codegen/injective/oracle/v1beta1/query.rpc.query.js +232 -0
  316. package/main/codegen/injective/oracle/v1beta1/tx.amino.js +151 -0
  317. package/main/codegen/injective/oracle/v1beta1/tx.js +720 -0
  318. package/main/codegen/injective/oracle/v1beta1/tx.registry.js +126 -0
  319. package/main/codegen/injective/oracle/v1beta1/tx.rpc.msg.js +92 -0
  320. package/main/codegen/injective/peggy/v1/attestation.js +274 -0
  321. package/main/codegen/injective/peggy/v1/batch.js +210 -0
  322. package/main/codegen/injective/peggy/v1/ethereum_signer.js +68 -0
  323. package/main/codegen/injective/peggy/v1/events.js +1374 -0
  324. package/main/codegen/injective/peggy/v1/genesis.js +582 -0
  325. package/main/codegen/injective/peggy/v1/msgs.amino.js +365 -0
  326. package/main/codegen/injective/peggy/v1/msgs.js +1321 -0
  327. package/main/codegen/injective/peggy/v1/msgs.registry.js +234 -0
  328. package/main/codegen/injective/peggy/v1/msgs.rpc.msg.js +158 -0
  329. package/main/codegen/injective/peggy/v1/pool.js +149 -0
  330. package/main/codegen/injective/peggy/v1/proposal.js +178 -0
  331. package/main/codegen/injective/peggy/v1/query.js +2002 -0
  332. package/main/codegen/injective/peggy/v1/query.lcd.js +824 -0
  333. package/main/codegen/injective/peggy/v1/query.rpc.query.js +340 -0
  334. package/main/codegen/injective/peggy/v1/types.js +345 -0
  335. package/main/codegen/injective/rpc.query.js +335 -0
  336. package/main/codegen/injective/rpc.tx.js +307 -0
  337. package/main/codegen/injective/types/v1beta1/account.js +73 -0
  338. package/main/codegen/injective/types/v1beta1/tx_ext.js +83 -0
  339. package/main/codegen/injective/types/v1beta1/tx_response.js +136 -0
  340. package/main/codegen/injective/wasmx/v1/genesis.js +61 -0
  341. package/main/codegen/injective/wasmx/v1/query.js +174 -0
  342. package/main/codegen/injective/wasmx/v1/query.lcd.js +106 -0
  343. package/main/codegen/injective/wasmx/v1/query.rpc.query.js +80 -0
  344. package/main/codegen/injective/wasmx/v1/tx.js +5 -0
  345. package/main/codegen/injective/wasmx/v1/wasmx.js +332 -0
  346. package/main/codegen/tendermint/abci/types.js +3542 -0
  347. package/main/codegen/tendermint/bundle.js +63 -0
  348. package/main/codegen/tendermint/crypto/keys.js +71 -0
  349. package/main/codegen/tendermint/crypto/proof.js +361 -0
  350. package/main/codegen/tendermint/libs/bits/types.js +103 -0
  351. package/main/codegen/tendermint/p2p/types.js +419 -0
  352. package/main/codegen/tendermint/types/block.js +93 -0
  353. package/main/codegen/tendermint/types/evidence.js +329 -0
  354. package/main/codegen/tendermint/types/params.js +390 -0
  355. package/main/codegen/tendermint/types/types.js +1234 -0
  356. package/main/codegen/tendermint/types/validator.js +235 -0
  357. package/main/codegen/tendermint/version/types.js +128 -0
  358. package/main/index.js +18 -0
  359. package/package.json +86 -0
@@ -0,0 +1,1718 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.LCDQueryClient = void 0;
9
+
10
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
+
12
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
+
14
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
+
16
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
+
18
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
+
20
+ var LCDQueryClient = /*#__PURE__*/function () {
21
+ function LCDQueryClient(_ref) {
22
+ var requestClient = _ref.requestClient;
23
+ (0, _classCallCheck2["default"])(this, LCDQueryClient);
24
+ (0, _defineProperty2["default"])(this, "req", void 0);
25
+ this.req = requestClient;
26
+ this.queryExchangeParams = this.queryExchangeParams.bind(this);
27
+ this.subaccountDeposits = this.subaccountDeposits.bind(this);
28
+ this.subaccountDeposit = this.subaccountDeposit.bind(this);
29
+ this.exchangeBalances = this.exchangeBalances.bind(this);
30
+ this.spotMarkets = this.spotMarkets.bind(this);
31
+ this.spotMarket = this.spotMarket.bind(this);
32
+ this.spotOrderbook = this.spotOrderbook.bind(this);
33
+ this.traderSpotOrders = this.traderSpotOrders.bind(this);
34
+ this.spotOrdersByHashes = this.spotOrdersByHashes.bind(this);
35
+ this.subaccountOrders = this.subaccountOrders.bind(this);
36
+ this.traderSpotTransientOrders = this.traderSpotTransientOrders.bind(this);
37
+ this.spotMidPriceAndTOB = this.spotMidPriceAndTOB.bind(this);
38
+ this.derivativeMidPriceAndTOB = this.derivativeMidPriceAndTOB.bind(this);
39
+ this.derivativeOrderbook = this.derivativeOrderbook.bind(this);
40
+ this.traderDerivativeOrders = this.traderDerivativeOrders.bind(this);
41
+ this.derivativeOrdersByHashes = this.derivativeOrdersByHashes.bind(this);
42
+ this.traderDerivativeTransientOrders = this.traderDerivativeTransientOrders.bind(this);
43
+ this.derivativeMarkets = this.derivativeMarkets.bind(this);
44
+ this.derivativeMarket = this.derivativeMarket.bind(this);
45
+ this.derivativeMarketAddress = this.derivativeMarketAddress.bind(this);
46
+ this.subaccountTradeNonce = this.subaccountTradeNonce.bind(this);
47
+ this.exchangeModuleState = this.exchangeModuleState.bind(this);
48
+ this.positions = this.positions.bind(this);
49
+ this.subaccountPositions = this.subaccountPositions.bind(this);
50
+ this.subaccountPositionInMarket = this.subaccountPositionInMarket.bind(this);
51
+ this.subaccountEffectivePositionInMarket = this.subaccountEffectivePositionInMarket.bind(this);
52
+ this.perpetualMarketInfo = this.perpetualMarketInfo.bind(this);
53
+ this.expiryFuturesMarketInfo = this.expiryFuturesMarketInfo.bind(this);
54
+ this.perpetualMarketFunding = this.perpetualMarketFunding.bind(this);
55
+ this.subaccountOrderMetadata = this.subaccountOrderMetadata.bind(this);
56
+ this.tradeRewardPoints = this.tradeRewardPoints.bind(this);
57
+ this.pendingTradeRewardPoints = this.pendingTradeRewardPoints.bind(this);
58
+ this.tradeRewardCampaign = this.tradeRewardCampaign.bind(this);
59
+ this.feeDiscountAccountInfo = this.feeDiscountAccountInfo.bind(this);
60
+ this.feeDiscountSchedule = this.feeDiscountSchedule.bind(this);
61
+ this.balanceMismatches = this.balanceMismatches.bind(this);
62
+ this.balanceWithBalanceHolds = this.balanceWithBalanceHolds.bind(this);
63
+ this.feeDiscountTierStatistics = this.feeDiscountTierStatistics.bind(this);
64
+ this.ninjaVaultInfos = this.ninjaVaultInfos.bind(this);
65
+ this.queryMarketIDFromVault = this.queryMarketIDFromVault.bind(this);
66
+ this.historicalTradeRecords = this.historicalTradeRecords.bind(this);
67
+ this.isOptedOutOfRewards = this.isOptedOutOfRewards.bind(this);
68
+ this.optedOutOfRewardsAccounts = this.optedOutOfRewardsAccounts.bind(this);
69
+ this.marketVolatility = this.marketVolatility.bind(this);
70
+ this.binaryOptionsMarkets = this.binaryOptionsMarkets.bind(this);
71
+ this.traderDerivativeConditionalOrders = this.traderDerivativeConditionalOrders.bind(this);
72
+ }
73
+ /* Retrieves exchange params */
74
+
75
+
76
+ (0, _createClass2["default"])(LCDQueryClient, [{
77
+ key: "queryExchangeParams",
78
+ value: function () {
79
+ var _queryExchangeParams = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
80
+ var _params,
81
+ endpoint,
82
+ _args = arguments;
83
+
84
+ return _regenerator["default"].wrap(function _callee$(_context) {
85
+ while (1) {
86
+ switch (_context.prev = _context.next) {
87
+ case 0:
88
+ _params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
89
+ endpoint = "injective/exchange/v1beta1/exchangeParams";
90
+ _context.next = 4;
91
+ return this.req.get(endpoint);
92
+
93
+ case 4:
94
+ return _context.abrupt("return", _context.sent);
95
+
96
+ case 5:
97
+ case "end":
98
+ return _context.stop();
99
+ }
100
+ }
101
+ }, _callee, this);
102
+ }));
103
+
104
+ function queryExchangeParams() {
105
+ return _queryExchangeParams.apply(this, arguments);
106
+ }
107
+
108
+ return queryExchangeParams;
109
+ }()
110
+ /* Retrieves a Subaccount's Deposits */
111
+
112
+ }, {
113
+ key: "subaccountDeposits",
114
+ value: function () {
115
+ var _subaccountDeposits = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(params) {
116
+ var options, endpoint;
117
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
118
+ while (1) {
119
+ switch (_context2.prev = _context2.next) {
120
+ case 0:
121
+ options = {
122
+ params: {}
123
+ };
124
+
125
+ if (typeof (params === null || params === void 0 ? void 0 : params.subaccountId) !== "undefined") {
126
+ options.params.subaccount_id = params.subaccountId;
127
+ }
128
+
129
+ if (typeof (params === null || params === void 0 ? void 0 : params.subaccount) !== "undefined") {
130
+ options.params.subaccount = params.subaccount;
131
+ }
132
+
133
+ endpoint = "injective/exchange/v1beta1/exchange/subaccountDeposits";
134
+ _context2.next = 6;
135
+ return this.req.get(endpoint, options);
136
+
137
+ case 6:
138
+ return _context2.abrupt("return", _context2.sent);
139
+
140
+ case 7:
141
+ case "end":
142
+ return _context2.stop();
143
+ }
144
+ }
145
+ }, _callee2, this);
146
+ }));
147
+
148
+ function subaccountDeposits(_x) {
149
+ return _subaccountDeposits.apply(this, arguments);
150
+ }
151
+
152
+ return subaccountDeposits;
153
+ }()
154
+ /* Retrieves a Subaccount's Deposits */
155
+
156
+ }, {
157
+ key: "subaccountDeposit",
158
+ value: function () {
159
+ var _subaccountDeposit = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
160
+ var options, endpoint;
161
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
162
+ while (1) {
163
+ switch (_context3.prev = _context3.next) {
164
+ case 0:
165
+ options = {
166
+ params: {}
167
+ };
168
+
169
+ if (typeof (params === null || params === void 0 ? void 0 : params.subaccountId) !== "undefined") {
170
+ options.params.subaccount_id = params.subaccountId;
171
+ }
172
+
173
+ if (typeof (params === null || params === void 0 ? void 0 : params.denom) !== "undefined") {
174
+ options.params.denom = params.denom;
175
+ }
176
+
177
+ endpoint = "injective/exchange/v1beta1/exchange/subaccountDeposit";
178
+ _context3.next = 6;
179
+ return this.req.get(endpoint, options);
180
+
181
+ case 6:
182
+ return _context3.abrupt("return", _context3.sent);
183
+
184
+ case 7:
185
+ case "end":
186
+ return _context3.stop();
187
+ }
188
+ }
189
+ }, _callee3, this);
190
+ }));
191
+
192
+ function subaccountDeposit(_x2) {
193
+ return _subaccountDeposit.apply(this, arguments);
194
+ }
195
+
196
+ return subaccountDeposit;
197
+ }()
198
+ /* Retrieves all of the balances of all users on the exchange. */
199
+
200
+ }, {
201
+ key: "exchangeBalances",
202
+ value: function () {
203
+ var _exchangeBalances = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
204
+ var _params,
205
+ endpoint,
206
+ _args4 = arguments;
207
+
208
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
209
+ while (1) {
210
+ switch (_context4.prev = _context4.next) {
211
+ case 0:
212
+ _params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
213
+ endpoint = "injective/exchange/v1beta1/exchange/exchangeBalances";
214
+ _context4.next = 4;
215
+ return this.req.get(endpoint);
216
+
217
+ case 4:
218
+ return _context4.abrupt("return", _context4.sent);
219
+
220
+ case 5:
221
+ case "end":
222
+ return _context4.stop();
223
+ }
224
+ }
225
+ }, _callee4, this);
226
+ }));
227
+
228
+ function exchangeBalances() {
229
+ return _exchangeBalances.apply(this, arguments);
230
+ }
231
+
232
+ return exchangeBalances;
233
+ }()
234
+ /* Retrieves a list of spot markets. */
235
+
236
+ }, {
237
+ key: "spotMarkets",
238
+ value: function () {
239
+ var _spotMarkets = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(params) {
240
+ var options, endpoint;
241
+ return _regenerator["default"].wrap(function _callee5$(_context5) {
242
+ while (1) {
243
+ switch (_context5.prev = _context5.next) {
244
+ case 0:
245
+ options = {
246
+ params: {}
247
+ };
248
+
249
+ if (typeof (params === null || params === void 0 ? void 0 : params.status) !== "undefined") {
250
+ options.params.status = params.status;
251
+ }
252
+
253
+ endpoint = "injective/exchange/v1beta1/spot/markets";
254
+ _context5.next = 5;
255
+ return this.req.get(endpoint, options);
256
+
257
+ case 5:
258
+ return _context5.abrupt("return", _context5.sent);
259
+
260
+ case 6:
261
+ case "end":
262
+ return _context5.stop();
263
+ }
264
+ }
265
+ }, _callee5, this);
266
+ }));
267
+
268
+ function spotMarkets(_x3) {
269
+ return _spotMarkets.apply(this, arguments);
270
+ }
271
+
272
+ return spotMarkets;
273
+ }()
274
+ /* Retrieves a spot market by ticker */
275
+
276
+ }, {
277
+ key: "spotMarket",
278
+ value: function () {
279
+ var _spotMarket = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(params) {
280
+ var endpoint;
281
+ return _regenerator["default"].wrap(function _callee6$(_context6) {
282
+ while (1) {
283
+ switch (_context6.prev = _context6.next) {
284
+ case 0:
285
+ endpoint = "injective/exchange/v1beta1/spot/markets/".concat(params.marketId);
286
+ _context6.next = 3;
287
+ return this.req.get(endpoint);
288
+
289
+ case 3:
290
+ return _context6.abrupt("return", _context6.sent);
291
+
292
+ case 4:
293
+ case "end":
294
+ return _context6.stop();
295
+ }
296
+ }
297
+ }, _callee6, this);
298
+ }));
299
+
300
+ function spotMarket(_x4) {
301
+ return _spotMarket.apply(this, arguments);
302
+ }
303
+
304
+ return spotMarket;
305
+ }()
306
+ /* Retrieves a spot market's orderbook by marketID */
307
+
308
+ }, {
309
+ key: "spotOrderbook",
310
+ value: function () {
311
+ var _spotOrderbook = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(params) {
312
+ var options, endpoint;
313
+ return _regenerator["default"].wrap(function _callee7$(_context7) {
314
+ while (1) {
315
+ switch (_context7.prev = _context7.next) {
316
+ case 0:
317
+ options = {
318
+ params: {}
319
+ };
320
+
321
+ if (typeof (params === null || params === void 0 ? void 0 : params.limit) !== "undefined") {
322
+ options.params.limit = params.limit;
323
+ }
324
+
325
+ endpoint = "injective/exchange/v1beta1/spot/orderbook/".concat(params.marketId);
326
+ _context7.next = 5;
327
+ return this.req.get(endpoint, options);
328
+
329
+ case 5:
330
+ return _context7.abrupt("return", _context7.sent);
331
+
332
+ case 6:
333
+ case "end":
334
+ return _context7.stop();
335
+ }
336
+ }
337
+ }, _callee7, this);
338
+ }));
339
+
340
+ function spotOrderbook(_x5) {
341
+ return _spotOrderbook.apply(this, arguments);
342
+ }
343
+
344
+ return spotOrderbook;
345
+ }()
346
+ /* Retrieves a trader's spot orders */
347
+
348
+ }, {
349
+ key: "traderSpotOrders",
350
+ value: function () {
351
+ var _traderSpotOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(params) {
352
+ var endpoint;
353
+ return _regenerator["default"].wrap(function _callee8$(_context8) {
354
+ while (1) {
355
+ switch (_context8.prev = _context8.next) {
356
+ case 0:
357
+ endpoint = "injective/exchange/v1beta1/spot/orders/".concat(params.marketId, "/").concat(params.subaccountId);
358
+ _context8.next = 3;
359
+ return this.req.get(endpoint);
360
+
361
+ case 3:
362
+ return _context8.abrupt("return", _context8.sent);
363
+
364
+ case 4:
365
+ case "end":
366
+ return _context8.stop();
367
+ }
368
+ }
369
+ }, _callee8, this);
370
+ }));
371
+
372
+ function traderSpotOrders(_x6) {
373
+ return _traderSpotOrders.apply(this, arguments);
374
+ }
375
+
376
+ return traderSpotOrders;
377
+ }()
378
+ /* Retrieves spot orders corresponding to specified order hashes for a given subaccountID and marketID */
379
+
380
+ }, {
381
+ key: "spotOrdersByHashes",
382
+ value: function () {
383
+ var _spotOrdersByHashes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(params) {
384
+ var options, endpoint;
385
+ return _regenerator["default"].wrap(function _callee9$(_context9) {
386
+ while (1) {
387
+ switch (_context9.prev = _context9.next) {
388
+ case 0:
389
+ options = {
390
+ params: {}
391
+ };
392
+
393
+ if (typeof (params === null || params === void 0 ? void 0 : params.orderHashes) !== "undefined") {
394
+ options.params.order_hashes = params.orderHashes;
395
+ }
396
+
397
+ endpoint = "injective/exchange/v1beta1/spot/orders_by_hashes/".concat(params.marketId, "/").concat(params.subaccountId);
398
+ _context9.next = 5;
399
+ return this.req.get(endpoint, options);
400
+
401
+ case 5:
402
+ return _context9.abrupt("return", _context9.sent);
403
+
404
+ case 6:
405
+ case "end":
406
+ return _context9.stop();
407
+ }
408
+ }
409
+ }, _callee9, this);
410
+ }));
411
+
412
+ function spotOrdersByHashes(_x7) {
413
+ return _spotOrdersByHashes.apply(this, arguments);
414
+ }
415
+
416
+ return spotOrdersByHashes;
417
+ }()
418
+ /* Retrieves subaccount's orders */
419
+
420
+ }, {
421
+ key: "subaccountOrders",
422
+ value: function () {
423
+ var _subaccountOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(params) {
424
+ var options, endpoint;
425
+ return _regenerator["default"].wrap(function _callee10$(_context10) {
426
+ while (1) {
427
+ switch (_context10.prev = _context10.next) {
428
+ case 0:
429
+ options = {
430
+ params: {}
431
+ };
432
+
433
+ if (typeof (params === null || params === void 0 ? void 0 : params.marketId) !== "undefined") {
434
+ options.params.market_id = params.marketId;
435
+ }
436
+
437
+ endpoint = "injective/exchange/v1beta1/orders/".concat(params.subaccountId);
438
+ _context10.next = 5;
439
+ return this.req.get(endpoint, options);
440
+
441
+ case 5:
442
+ return _context10.abrupt("return", _context10.sent);
443
+
444
+ case 6:
445
+ case "end":
446
+ return _context10.stop();
447
+ }
448
+ }
449
+ }, _callee10, this);
450
+ }));
451
+
452
+ function subaccountOrders(_x8) {
453
+ return _subaccountOrders.apply(this, arguments);
454
+ }
455
+
456
+ return subaccountOrders;
457
+ }()
458
+ /* Retrieves a trader's transient spot orders */
459
+
460
+ }, {
461
+ key: "traderSpotTransientOrders",
462
+ value: function () {
463
+ var _traderSpotTransientOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(params) {
464
+ var endpoint;
465
+ return _regenerator["default"].wrap(function _callee11$(_context11) {
466
+ while (1) {
467
+ switch (_context11.prev = _context11.next) {
468
+ case 0:
469
+ endpoint = "injective/exchange/v1beta1/spot/transient_orders/".concat(params.marketId, "/").concat(params.subaccountId);
470
+ _context11.next = 3;
471
+ return this.req.get(endpoint);
472
+
473
+ case 3:
474
+ return _context11.abrupt("return", _context11.sent);
475
+
476
+ case 4:
477
+ case "end":
478
+ return _context11.stop();
479
+ }
480
+ }
481
+ }, _callee11, this);
482
+ }));
483
+
484
+ function traderSpotTransientOrders(_x9) {
485
+ return _traderSpotTransientOrders.apply(this, arguments);
486
+ }
487
+
488
+ return traderSpotTransientOrders;
489
+ }()
490
+ /* Retrieves a spot market's mid-price */
491
+
492
+ }, {
493
+ key: "spotMidPriceAndTOB",
494
+ value: function () {
495
+ var _spotMidPriceAndTOB = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(params) {
496
+ var endpoint;
497
+ return _regenerator["default"].wrap(function _callee12$(_context12) {
498
+ while (1) {
499
+ switch (_context12.prev = _context12.next) {
500
+ case 0:
501
+ endpoint = "injective/exchange/v1beta1/spot/mid_price_and_tob/".concat(params.marketId);
502
+ _context12.next = 3;
503
+ return this.req.get(endpoint);
504
+
505
+ case 3:
506
+ return _context12.abrupt("return", _context12.sent);
507
+
508
+ case 4:
509
+ case "end":
510
+ return _context12.stop();
511
+ }
512
+ }
513
+ }, _callee12, this);
514
+ }));
515
+
516
+ function spotMidPriceAndTOB(_x10) {
517
+ return _spotMidPriceAndTOB.apply(this, arguments);
518
+ }
519
+
520
+ return spotMidPriceAndTOB;
521
+ }()
522
+ /* Retrieves a derivative market's mid-price */
523
+
524
+ }, {
525
+ key: "derivativeMidPriceAndTOB",
526
+ value: function () {
527
+ var _derivativeMidPriceAndTOB = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(params) {
528
+ var endpoint;
529
+ return _regenerator["default"].wrap(function _callee13$(_context13) {
530
+ while (1) {
531
+ switch (_context13.prev = _context13.next) {
532
+ case 0:
533
+ endpoint = "injective/exchange/v1beta1/derivative/mid_price_and_tob/".concat(params.marketId);
534
+ _context13.next = 3;
535
+ return this.req.get(endpoint);
536
+
537
+ case 3:
538
+ return _context13.abrupt("return", _context13.sent);
539
+
540
+ case 4:
541
+ case "end":
542
+ return _context13.stop();
543
+ }
544
+ }
545
+ }, _callee13, this);
546
+ }));
547
+
548
+ function derivativeMidPriceAndTOB(_x11) {
549
+ return _derivativeMidPriceAndTOB.apply(this, arguments);
550
+ }
551
+
552
+ return derivativeMidPriceAndTOB;
553
+ }()
554
+ /* Retrieves a derivative market's orderbook by marketID */
555
+
556
+ }, {
557
+ key: "derivativeOrderbook",
558
+ value: function () {
559
+ var _derivativeOrderbook = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(params) {
560
+ var options, endpoint;
561
+ return _regenerator["default"].wrap(function _callee14$(_context14) {
562
+ while (1) {
563
+ switch (_context14.prev = _context14.next) {
564
+ case 0:
565
+ options = {
566
+ params: {}
567
+ };
568
+
569
+ if (typeof (params === null || params === void 0 ? void 0 : params.limit) !== "undefined") {
570
+ options.params.limit = params.limit;
571
+ }
572
+
573
+ endpoint = "injective/exchange/v1beta1/derivative/orderbook/".concat(params.marketId);
574
+ _context14.next = 5;
575
+ return this.req.get(endpoint, options);
576
+
577
+ case 5:
578
+ return _context14.abrupt("return", _context14.sent);
579
+
580
+ case 6:
581
+ case "end":
582
+ return _context14.stop();
583
+ }
584
+ }
585
+ }, _callee14, this);
586
+ }));
587
+
588
+ function derivativeOrderbook(_x12) {
589
+ return _derivativeOrderbook.apply(this, arguments);
590
+ }
591
+
592
+ return derivativeOrderbook;
593
+ }()
594
+ /* Retrieves a trader's derivative orders */
595
+
596
+ }, {
597
+ key: "traderDerivativeOrders",
598
+ value: function () {
599
+ var _traderDerivativeOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee15(params) {
600
+ var endpoint;
601
+ return _regenerator["default"].wrap(function _callee15$(_context15) {
602
+ while (1) {
603
+ switch (_context15.prev = _context15.next) {
604
+ case 0:
605
+ endpoint = "injective/exchange/v1beta1/derivative/orders/".concat(params.marketId, "/").concat(params.subaccountId);
606
+ _context15.next = 3;
607
+ return this.req.get(endpoint);
608
+
609
+ case 3:
610
+ return _context15.abrupt("return", _context15.sent);
611
+
612
+ case 4:
613
+ case "end":
614
+ return _context15.stop();
615
+ }
616
+ }
617
+ }, _callee15, this);
618
+ }));
619
+
620
+ function traderDerivativeOrders(_x13) {
621
+ return _traderDerivativeOrders.apply(this, arguments);
622
+ }
623
+
624
+ return traderDerivativeOrders;
625
+ }()
626
+ /* Retrieves a trader's derivative orders */
627
+
628
+ }, {
629
+ key: "derivativeOrdersByHashes",
630
+ value: function () {
631
+ var _derivativeOrdersByHashes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee16(params) {
632
+ var options, endpoint;
633
+ return _regenerator["default"].wrap(function _callee16$(_context16) {
634
+ while (1) {
635
+ switch (_context16.prev = _context16.next) {
636
+ case 0:
637
+ options = {
638
+ params: {}
639
+ };
640
+
641
+ if (typeof (params === null || params === void 0 ? void 0 : params.orderHashes) !== "undefined") {
642
+ options.params.order_hashes = params.orderHashes;
643
+ }
644
+
645
+ endpoint = "injective/exchange/v1beta1/derivative/orders_by_hashes/".concat(params.marketId, "/").concat(params.subaccountId);
646
+ _context16.next = 5;
647
+ return this.req.get(endpoint, options);
648
+
649
+ case 5:
650
+ return _context16.abrupt("return", _context16.sent);
651
+
652
+ case 6:
653
+ case "end":
654
+ return _context16.stop();
655
+ }
656
+ }
657
+ }, _callee16, this);
658
+ }));
659
+
660
+ function derivativeOrdersByHashes(_x14) {
661
+ return _derivativeOrdersByHashes.apply(this, arguments);
662
+ }
663
+
664
+ return derivativeOrdersByHashes;
665
+ }()
666
+ /* Retrieves a trader's transient derivative orders */
667
+
668
+ }, {
669
+ key: "traderDerivativeTransientOrders",
670
+ value: function () {
671
+ var _traderDerivativeTransientOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee17(params) {
672
+ var endpoint;
673
+ return _regenerator["default"].wrap(function _callee17$(_context17) {
674
+ while (1) {
675
+ switch (_context17.prev = _context17.next) {
676
+ case 0:
677
+ endpoint = "injective/exchange/v1beta1/derivative/transient_orders/".concat(params.marketId, "/").concat(params.subaccountId);
678
+ _context17.next = 3;
679
+ return this.req.get(endpoint);
680
+
681
+ case 3:
682
+ return _context17.abrupt("return", _context17.sent);
683
+
684
+ case 4:
685
+ case "end":
686
+ return _context17.stop();
687
+ }
688
+ }
689
+ }, _callee17, this);
690
+ }));
691
+
692
+ function traderDerivativeTransientOrders(_x15) {
693
+ return _traderDerivativeTransientOrders.apply(this, arguments);
694
+ }
695
+
696
+ return traderDerivativeTransientOrders;
697
+ }()
698
+ /* Retrieves a list of derivative markets. */
699
+
700
+ }, {
701
+ key: "derivativeMarkets",
702
+ value: function () {
703
+ var _derivativeMarkets = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee18(params) {
704
+ var options, endpoint;
705
+ return _regenerator["default"].wrap(function _callee18$(_context18) {
706
+ while (1) {
707
+ switch (_context18.prev = _context18.next) {
708
+ case 0:
709
+ options = {
710
+ params: {}
711
+ };
712
+
713
+ if (typeof (params === null || params === void 0 ? void 0 : params.status) !== "undefined") {
714
+ options.params.status = params.status;
715
+ }
716
+
717
+ endpoint = "injective/exchange/v1beta1/derivative/markets";
718
+ _context18.next = 5;
719
+ return this.req.get(endpoint, options);
720
+
721
+ case 5:
722
+ return _context18.abrupt("return", _context18.sent);
723
+
724
+ case 6:
725
+ case "end":
726
+ return _context18.stop();
727
+ }
728
+ }
729
+ }, _callee18, this);
730
+ }));
731
+
732
+ function derivativeMarkets(_x16) {
733
+ return _derivativeMarkets.apply(this, arguments);
734
+ }
735
+
736
+ return derivativeMarkets;
737
+ }()
738
+ /* Retrieves a derivative market by ticker */
739
+
740
+ }, {
741
+ key: "derivativeMarket",
742
+ value: function () {
743
+ var _derivativeMarket = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee19(params) {
744
+ var endpoint;
745
+ return _regenerator["default"].wrap(function _callee19$(_context19) {
746
+ while (1) {
747
+ switch (_context19.prev = _context19.next) {
748
+ case 0:
749
+ endpoint = "injective/exchange/v1beta1/derivative/markets/".concat(params.marketId);
750
+ _context19.next = 3;
751
+ return this.req.get(endpoint);
752
+
753
+ case 3:
754
+ return _context19.abrupt("return", _context19.sent);
755
+
756
+ case 4:
757
+ case "end":
758
+ return _context19.stop();
759
+ }
760
+ }
761
+ }, _callee19, this);
762
+ }));
763
+
764
+ function derivativeMarket(_x17) {
765
+ return _derivativeMarket.apply(this, arguments);
766
+ }
767
+
768
+ return derivativeMarket;
769
+ }()
770
+ /* Retrieves a derivative market's corresponding address for fees that contribute to the market's insurance fund */
771
+
772
+ }, {
773
+ key: "derivativeMarketAddress",
774
+ value: function () {
775
+ var _derivativeMarketAddress = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee20(params) {
776
+ var endpoint;
777
+ return _regenerator["default"].wrap(function _callee20$(_context20) {
778
+ while (1) {
779
+ switch (_context20.prev = _context20.next) {
780
+ case 0:
781
+ endpoint = "injective/exchange/v1beta1/derivative/market_address/".concat(params.marketId);
782
+ _context20.next = 3;
783
+ return this.req.get(endpoint);
784
+
785
+ case 3:
786
+ return _context20.abrupt("return", _context20.sent);
787
+
788
+ case 4:
789
+ case "end":
790
+ return _context20.stop();
791
+ }
792
+ }
793
+ }, _callee20, this);
794
+ }));
795
+
796
+ function derivativeMarketAddress(_x18) {
797
+ return _derivativeMarketAddress.apply(this, arguments);
798
+ }
799
+
800
+ return derivativeMarketAddress;
801
+ }()
802
+ /* Retrieves a subaccount's trade nonce */
803
+
804
+ }, {
805
+ key: "subaccountTradeNonce",
806
+ value: function () {
807
+ var _subaccountTradeNonce = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee21(params) {
808
+ var endpoint;
809
+ return _regenerator["default"].wrap(function _callee21$(_context21) {
810
+ while (1) {
811
+ switch (_context21.prev = _context21.next) {
812
+ case 0:
813
+ endpoint = "injective/exchange/v1beta1/exchange/".concat(params.subaccountId);
814
+ _context21.next = 3;
815
+ return this.req.get(endpoint);
816
+
817
+ case 3:
818
+ return _context21.abrupt("return", _context21.sent);
819
+
820
+ case 4:
821
+ case "end":
822
+ return _context21.stop();
823
+ }
824
+ }
825
+ }, _callee21, this);
826
+ }));
827
+
828
+ function subaccountTradeNonce(_x19) {
829
+ return _subaccountTradeNonce.apply(this, arguments);
830
+ }
831
+
832
+ return subaccountTradeNonce;
833
+ }()
834
+ /* Retrieves the entire exchange module's state */
835
+
836
+ }, {
837
+ key: "exchangeModuleState",
838
+ value: function () {
839
+ var _exchangeModuleState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee22() {
840
+ var _params,
841
+ endpoint,
842
+ _args22 = arguments;
843
+
844
+ return _regenerator["default"].wrap(function _callee22$(_context22) {
845
+ while (1) {
846
+ switch (_context22.prev = _context22.next) {
847
+ case 0:
848
+ _params = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
849
+ endpoint = "injective/exchange/v1beta1/module_state";
850
+ _context22.next = 4;
851
+ return this.req.get(endpoint);
852
+
853
+ case 4:
854
+ return _context22.abrupt("return", _context22.sent);
855
+
856
+ case 5:
857
+ case "end":
858
+ return _context22.stop();
859
+ }
860
+ }
861
+ }, _callee22, this);
862
+ }));
863
+
864
+ function exchangeModuleState() {
865
+ return _exchangeModuleState.apply(this, arguments);
866
+ }
867
+
868
+ return exchangeModuleState;
869
+ }()
870
+ /* Retrieves the entire exchange module's positions */
871
+
872
+ }, {
873
+ key: "positions",
874
+ value: function () {
875
+ var _positions = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee23() {
876
+ var _params,
877
+ endpoint,
878
+ _args23 = arguments;
879
+
880
+ return _regenerator["default"].wrap(function _callee23$(_context23) {
881
+ while (1) {
882
+ switch (_context23.prev = _context23.next) {
883
+ case 0:
884
+ _params = _args23.length > 0 && _args23[0] !== undefined ? _args23[0] : {};
885
+ endpoint = "injective/exchange/v1beta1/positions";
886
+ _context23.next = 4;
887
+ return this.req.get(endpoint);
888
+
889
+ case 4:
890
+ return _context23.abrupt("return", _context23.sent);
891
+
892
+ case 5:
893
+ case "end":
894
+ return _context23.stop();
895
+ }
896
+ }
897
+ }, _callee23, this);
898
+ }));
899
+
900
+ function positions() {
901
+ return _positions.apply(this, arguments);
902
+ }
903
+
904
+ return positions;
905
+ }()
906
+ /* Retrieves subaccount's positions */
907
+
908
+ }, {
909
+ key: "subaccountPositions",
910
+ value: function () {
911
+ var _subaccountPositions = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee24(params) {
912
+ var endpoint;
913
+ return _regenerator["default"].wrap(function _callee24$(_context24) {
914
+ while (1) {
915
+ switch (_context24.prev = _context24.next) {
916
+ case 0:
917
+ endpoint = "injective/exchange/v1beta1/positions/".concat(params.subaccountId);
918
+ _context24.next = 3;
919
+ return this.req.get(endpoint);
920
+
921
+ case 3:
922
+ return _context24.abrupt("return", _context24.sent);
923
+
924
+ case 4:
925
+ case "end":
926
+ return _context24.stop();
927
+ }
928
+ }
929
+ }, _callee24, this);
930
+ }));
931
+
932
+ function subaccountPositions(_x20) {
933
+ return _subaccountPositions.apply(this, arguments);
934
+ }
935
+
936
+ return subaccountPositions;
937
+ }()
938
+ /* Retrieves subaccount's position in market */
939
+
940
+ }, {
941
+ key: "subaccountPositionInMarket",
942
+ value: function () {
943
+ var _subaccountPositionInMarket = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee25(params) {
944
+ var endpoint;
945
+ return _regenerator["default"].wrap(function _callee25$(_context25) {
946
+ while (1) {
947
+ switch (_context25.prev = _context25.next) {
948
+ case 0:
949
+ endpoint = "injective/exchange/v1beta1/positions/".concat(params.subaccountId, "/").concat(params.marketId);
950
+ _context25.next = 3;
951
+ return this.req.get(endpoint);
952
+
953
+ case 3:
954
+ return _context25.abrupt("return", _context25.sent);
955
+
956
+ case 4:
957
+ case "end":
958
+ return _context25.stop();
959
+ }
960
+ }
961
+ }, _callee25, this);
962
+ }));
963
+
964
+ function subaccountPositionInMarket(_x21) {
965
+ return _subaccountPositionInMarket.apply(this, arguments);
966
+ }
967
+
968
+ return subaccountPositionInMarket;
969
+ }()
970
+ /* Retrieves subaccount's position in market */
971
+
972
+ }, {
973
+ key: "subaccountEffectivePositionInMarket",
974
+ value: function () {
975
+ var _subaccountEffectivePositionInMarket = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee26(params) {
976
+ var endpoint;
977
+ return _regenerator["default"].wrap(function _callee26$(_context26) {
978
+ while (1) {
979
+ switch (_context26.prev = _context26.next) {
980
+ case 0:
981
+ endpoint = "injective/exchange/v1beta1/effective_positions/".concat(params.subaccountId, "/").concat(params.marketId);
982
+ _context26.next = 3;
983
+ return this.req.get(endpoint);
984
+
985
+ case 3:
986
+ return _context26.abrupt("return", _context26.sent);
987
+
988
+ case 4:
989
+ case "end":
990
+ return _context26.stop();
991
+ }
992
+ }
993
+ }, _callee26, this);
994
+ }));
995
+
996
+ function subaccountEffectivePositionInMarket(_x22) {
997
+ return _subaccountEffectivePositionInMarket.apply(this, arguments);
998
+ }
999
+
1000
+ return subaccountEffectivePositionInMarket;
1001
+ }()
1002
+ /* Retrieves perpetual market info */
1003
+
1004
+ }, {
1005
+ key: "perpetualMarketInfo",
1006
+ value: function () {
1007
+ var _perpetualMarketInfo = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee27(params) {
1008
+ var endpoint;
1009
+ return _regenerator["default"].wrap(function _callee27$(_context27) {
1010
+ while (1) {
1011
+ switch (_context27.prev = _context27.next) {
1012
+ case 0:
1013
+ endpoint = "injective/exchange/v1beta1/perpetual_market_info/".concat(params.marketId);
1014
+ _context27.next = 3;
1015
+ return this.req.get(endpoint);
1016
+
1017
+ case 3:
1018
+ return _context27.abrupt("return", _context27.sent);
1019
+
1020
+ case 4:
1021
+ case "end":
1022
+ return _context27.stop();
1023
+ }
1024
+ }
1025
+ }, _callee27, this);
1026
+ }));
1027
+
1028
+ function perpetualMarketInfo(_x23) {
1029
+ return _perpetualMarketInfo.apply(this, arguments);
1030
+ }
1031
+
1032
+ return perpetualMarketInfo;
1033
+ }()
1034
+ /* Retrieves expiry market info */
1035
+
1036
+ }, {
1037
+ key: "expiryFuturesMarketInfo",
1038
+ value: function () {
1039
+ var _expiryFuturesMarketInfo = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee28(params) {
1040
+ var endpoint;
1041
+ return _regenerator["default"].wrap(function _callee28$(_context28) {
1042
+ while (1) {
1043
+ switch (_context28.prev = _context28.next) {
1044
+ case 0:
1045
+ endpoint = "injective/exchange/v1beta1/expiry_market_info/".concat(params.marketId);
1046
+ _context28.next = 3;
1047
+ return this.req.get(endpoint);
1048
+
1049
+ case 3:
1050
+ return _context28.abrupt("return", _context28.sent);
1051
+
1052
+ case 4:
1053
+ case "end":
1054
+ return _context28.stop();
1055
+ }
1056
+ }
1057
+ }, _callee28, this);
1058
+ }));
1059
+
1060
+ function expiryFuturesMarketInfo(_x24) {
1061
+ return _expiryFuturesMarketInfo.apply(this, arguments);
1062
+ }
1063
+
1064
+ return expiryFuturesMarketInfo;
1065
+ }()
1066
+ /* Retrieves perpetual market funding */
1067
+
1068
+ }, {
1069
+ key: "perpetualMarketFunding",
1070
+ value: function () {
1071
+ var _perpetualMarketFunding = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee29(params) {
1072
+ var endpoint;
1073
+ return _regenerator["default"].wrap(function _callee29$(_context29) {
1074
+ while (1) {
1075
+ switch (_context29.prev = _context29.next) {
1076
+ case 0:
1077
+ endpoint = "injective/exchange/v1beta1/perpetual_market_funding/".concat(params.marketId);
1078
+ _context29.next = 3;
1079
+ return this.req.get(endpoint);
1080
+
1081
+ case 3:
1082
+ return _context29.abrupt("return", _context29.sent);
1083
+
1084
+ case 4:
1085
+ case "end":
1086
+ return _context29.stop();
1087
+ }
1088
+ }
1089
+ }, _callee29, this);
1090
+ }));
1091
+
1092
+ function perpetualMarketFunding(_x25) {
1093
+ return _perpetualMarketFunding.apply(this, arguments);
1094
+ }
1095
+
1096
+ return perpetualMarketFunding;
1097
+ }()
1098
+ /* Retrieves subaccount's order metadata */
1099
+
1100
+ }, {
1101
+ key: "subaccountOrderMetadata",
1102
+ value: function () {
1103
+ var _subaccountOrderMetadata = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee30(params) {
1104
+ var endpoint;
1105
+ return _regenerator["default"].wrap(function _callee30$(_context30) {
1106
+ while (1) {
1107
+ switch (_context30.prev = _context30.next) {
1108
+ case 0:
1109
+ endpoint = "injective/exchange/v1beta1/order_metadata/".concat(params.subaccountId);
1110
+ _context30.next = 3;
1111
+ return this.req.get(endpoint);
1112
+
1113
+ case 3:
1114
+ return _context30.abrupt("return", _context30.sent);
1115
+
1116
+ case 4:
1117
+ case "end":
1118
+ return _context30.stop();
1119
+ }
1120
+ }
1121
+ }, _callee30, this);
1122
+ }));
1123
+
1124
+ function subaccountOrderMetadata(_x26) {
1125
+ return _subaccountOrderMetadata.apply(this, arguments);
1126
+ }
1127
+
1128
+ return subaccountOrderMetadata;
1129
+ }()
1130
+ /* Retrieves the account and total trade rewards points */
1131
+
1132
+ }, {
1133
+ key: "tradeRewardPoints",
1134
+ value: function () {
1135
+ var _tradeRewardPoints = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee31(params) {
1136
+ var options, endpoint;
1137
+ return _regenerator["default"].wrap(function _callee31$(_context31) {
1138
+ while (1) {
1139
+ switch (_context31.prev = _context31.next) {
1140
+ case 0:
1141
+ options = {
1142
+ params: {}
1143
+ };
1144
+
1145
+ if (typeof (params === null || params === void 0 ? void 0 : params.accounts) !== "undefined") {
1146
+ options.params.accounts = params.accounts;
1147
+ }
1148
+
1149
+ if (typeof (params === null || params === void 0 ? void 0 : params.pendingPoolTimestamp) !== "undefined") {
1150
+ options.params.pending_pool_timestamp = params.pendingPoolTimestamp;
1151
+ }
1152
+
1153
+ endpoint = "injective/exchange/v1beta1/trade_reward_points";
1154
+ _context31.next = 6;
1155
+ return this.req.get(endpoint, options);
1156
+
1157
+ case 6:
1158
+ return _context31.abrupt("return", _context31.sent);
1159
+
1160
+ case 7:
1161
+ case "end":
1162
+ return _context31.stop();
1163
+ }
1164
+ }
1165
+ }, _callee31, this);
1166
+ }));
1167
+
1168
+ function tradeRewardPoints(_x27) {
1169
+ return _tradeRewardPoints.apply(this, arguments);
1170
+ }
1171
+
1172
+ return tradeRewardPoints;
1173
+ }()
1174
+ /* Retrieves the pending account and total trade rewards points */
1175
+
1176
+ }, {
1177
+ key: "pendingTradeRewardPoints",
1178
+ value: function () {
1179
+ var _pendingTradeRewardPoints = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee32(params) {
1180
+ var options, endpoint;
1181
+ return _regenerator["default"].wrap(function _callee32$(_context32) {
1182
+ while (1) {
1183
+ switch (_context32.prev = _context32.next) {
1184
+ case 0:
1185
+ options = {
1186
+ params: {}
1187
+ };
1188
+
1189
+ if (typeof (params === null || params === void 0 ? void 0 : params.accounts) !== "undefined") {
1190
+ options.params.accounts = params.accounts;
1191
+ }
1192
+
1193
+ if (typeof (params === null || params === void 0 ? void 0 : params.pendingPoolTimestamp) !== "undefined") {
1194
+ options.params.pending_pool_timestamp = params.pendingPoolTimestamp;
1195
+ }
1196
+
1197
+ endpoint = "injective/exchange/v1beta1/pending_trade_reward_points";
1198
+ _context32.next = 6;
1199
+ return this.req.get(endpoint, options);
1200
+
1201
+ case 6:
1202
+ return _context32.abrupt("return", _context32.sent);
1203
+
1204
+ case 7:
1205
+ case "end":
1206
+ return _context32.stop();
1207
+ }
1208
+ }
1209
+ }, _callee32, this);
1210
+ }));
1211
+
1212
+ function pendingTradeRewardPoints(_x28) {
1213
+ return _pendingTradeRewardPoints.apply(this, arguments);
1214
+ }
1215
+
1216
+ return pendingTradeRewardPoints;
1217
+ }()
1218
+ /* Retrieves the trade reward campaign */
1219
+
1220
+ }, {
1221
+ key: "tradeRewardCampaign",
1222
+ value: function () {
1223
+ var _tradeRewardCampaign = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee33() {
1224
+ var _params,
1225
+ endpoint,
1226
+ _args33 = arguments;
1227
+
1228
+ return _regenerator["default"].wrap(function _callee33$(_context33) {
1229
+ while (1) {
1230
+ switch (_context33.prev = _context33.next) {
1231
+ case 0:
1232
+ _params = _args33.length > 0 && _args33[0] !== undefined ? _args33[0] : {};
1233
+ endpoint = "injective/exchange/v1beta1/trade_reward_campaign";
1234
+ _context33.next = 4;
1235
+ return this.req.get(endpoint);
1236
+
1237
+ case 4:
1238
+ return _context33.abrupt("return", _context33.sent);
1239
+
1240
+ case 5:
1241
+ case "end":
1242
+ return _context33.stop();
1243
+ }
1244
+ }
1245
+ }, _callee33, this);
1246
+ }));
1247
+
1248
+ function tradeRewardCampaign() {
1249
+ return _tradeRewardCampaign.apply(this, arguments);
1250
+ }
1251
+
1252
+ return tradeRewardCampaign;
1253
+ }()
1254
+ /* Retrieves the account's fee discount info */
1255
+
1256
+ }, {
1257
+ key: "feeDiscountAccountInfo",
1258
+ value: function () {
1259
+ var _feeDiscountAccountInfo = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee34(params) {
1260
+ var endpoint;
1261
+ return _regenerator["default"].wrap(function _callee34$(_context34) {
1262
+ while (1) {
1263
+ switch (_context34.prev = _context34.next) {
1264
+ case 0:
1265
+ endpoint = "injective/exchange/v1beta1/fee_discount_account_info/".concat(params.account);
1266
+ _context34.next = 3;
1267
+ return this.req.get(endpoint);
1268
+
1269
+ case 3:
1270
+ return _context34.abrupt("return", _context34.sent);
1271
+
1272
+ case 4:
1273
+ case "end":
1274
+ return _context34.stop();
1275
+ }
1276
+ }
1277
+ }, _callee34, this);
1278
+ }));
1279
+
1280
+ function feeDiscountAccountInfo(_x29) {
1281
+ return _feeDiscountAccountInfo.apply(this, arguments);
1282
+ }
1283
+
1284
+ return feeDiscountAccountInfo;
1285
+ }()
1286
+ /* Retrieves the fee discount schedule */
1287
+
1288
+ }, {
1289
+ key: "feeDiscountSchedule",
1290
+ value: function () {
1291
+ var _feeDiscountSchedule = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee35() {
1292
+ var _params,
1293
+ endpoint,
1294
+ _args35 = arguments;
1295
+
1296
+ return _regenerator["default"].wrap(function _callee35$(_context35) {
1297
+ while (1) {
1298
+ switch (_context35.prev = _context35.next) {
1299
+ case 0:
1300
+ _params = _args35.length > 0 && _args35[0] !== undefined ? _args35[0] : {};
1301
+ endpoint = "injective/exchange/v1beta1/fee_discount_schedule";
1302
+ _context35.next = 4;
1303
+ return this.req.get(endpoint);
1304
+
1305
+ case 4:
1306
+ return _context35.abrupt("return", _context35.sent);
1307
+
1308
+ case 5:
1309
+ case "end":
1310
+ return _context35.stop();
1311
+ }
1312
+ }
1313
+ }, _callee35, this);
1314
+ }));
1315
+
1316
+ function feeDiscountSchedule() {
1317
+ return _feeDiscountSchedule.apply(this, arguments);
1318
+ }
1319
+
1320
+ return feeDiscountSchedule;
1321
+ }()
1322
+ /* Retrieves mismatches between available vs. total balance */
1323
+
1324
+ }, {
1325
+ key: "balanceMismatches",
1326
+ value: function () {
1327
+ var _balanceMismatches = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee36(params) {
1328
+ var endpoint;
1329
+ return _regenerator["default"].wrap(function _callee36$(_context36) {
1330
+ while (1) {
1331
+ switch (_context36.prev = _context36.next) {
1332
+ case 0:
1333
+ endpoint = "injective/exchange/v1beta1/balance_mismatches/".concat(params.dustFactor);
1334
+ _context36.next = 3;
1335
+ return this.req.get(endpoint);
1336
+
1337
+ case 3:
1338
+ return _context36.abrupt("return", _context36.sent);
1339
+
1340
+ case 4:
1341
+ case "end":
1342
+ return _context36.stop();
1343
+ }
1344
+ }
1345
+ }, _callee36, this);
1346
+ }));
1347
+
1348
+ function balanceMismatches(_x30) {
1349
+ return _balanceMismatches.apply(this, arguments);
1350
+ }
1351
+
1352
+ return balanceMismatches;
1353
+ }()
1354
+ /* Retrieves available and total balances with balance holds */
1355
+
1356
+ }, {
1357
+ key: "balanceWithBalanceHolds",
1358
+ value: function () {
1359
+ var _balanceWithBalanceHolds = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee37() {
1360
+ var _params,
1361
+ endpoint,
1362
+ _args37 = arguments;
1363
+
1364
+ return _regenerator["default"].wrap(function _callee37$(_context37) {
1365
+ while (1) {
1366
+ switch (_context37.prev = _context37.next) {
1367
+ case 0:
1368
+ _params = _args37.length > 0 && _args37[0] !== undefined ? _args37[0] : {};
1369
+ endpoint = "injective/exchange/v1beta1/balances_with_balance_holds";
1370
+ _context37.next = 4;
1371
+ return this.req.get(endpoint);
1372
+
1373
+ case 4:
1374
+ return _context37.abrupt("return", _context37.sent);
1375
+
1376
+ case 5:
1377
+ case "end":
1378
+ return _context37.stop();
1379
+ }
1380
+ }
1381
+ }, _callee37, this);
1382
+ }));
1383
+
1384
+ function balanceWithBalanceHolds() {
1385
+ return _balanceWithBalanceHolds.apply(this, arguments);
1386
+ }
1387
+
1388
+ return balanceWithBalanceHolds;
1389
+ }()
1390
+ /* Retrieves fee discount tier stats */
1391
+
1392
+ }, {
1393
+ key: "feeDiscountTierStatistics",
1394
+ value: function () {
1395
+ var _feeDiscountTierStatistics = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee38() {
1396
+ var _params,
1397
+ endpoint,
1398
+ _args38 = arguments;
1399
+
1400
+ return _regenerator["default"].wrap(function _callee38$(_context38) {
1401
+ while (1) {
1402
+ switch (_context38.prev = _context38.next) {
1403
+ case 0:
1404
+ _params = _args38.length > 0 && _args38[0] !== undefined ? _args38[0] : {};
1405
+ endpoint = "injective/exchange/v1beta1/fee_discount_tier_stats";
1406
+ _context38.next = 4;
1407
+ return this.req.get(endpoint);
1408
+
1409
+ case 4:
1410
+ return _context38.abrupt("return", _context38.sent);
1411
+
1412
+ case 5:
1413
+ case "end":
1414
+ return _context38.stop();
1415
+ }
1416
+ }
1417
+ }, _callee38, this);
1418
+ }));
1419
+
1420
+ function feeDiscountTierStatistics() {
1421
+ return _feeDiscountTierStatistics.apply(this, arguments);
1422
+ }
1423
+
1424
+ return feeDiscountTierStatistics;
1425
+ }()
1426
+ /* Retrieves market making pool info */
1427
+
1428
+ }, {
1429
+ key: "ninjaVaultInfos",
1430
+ value: function () {
1431
+ var _ninjaVaultInfos = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee39() {
1432
+ var _params,
1433
+ endpoint,
1434
+ _args39 = arguments;
1435
+
1436
+ return _regenerator["default"].wrap(function _callee39$(_context39) {
1437
+ while (1) {
1438
+ switch (_context39.prev = _context39.next) {
1439
+ case 0:
1440
+ _params = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {};
1441
+ endpoint = "injective/exchange/v1beta1/ninja_vault_infos";
1442
+ _context39.next = 4;
1443
+ return this.req.get(endpoint);
1444
+
1445
+ case 4:
1446
+ return _context39.abrupt("return", _context39.sent);
1447
+
1448
+ case 5:
1449
+ case "end":
1450
+ return _context39.stop();
1451
+ }
1452
+ }
1453
+ }, _callee39, this);
1454
+ }));
1455
+
1456
+ function ninjaVaultInfos() {
1457
+ return _ninjaVaultInfos.apply(this, arguments);
1458
+ }
1459
+
1460
+ return ninjaVaultInfos;
1461
+ }()
1462
+ /* QueryMarketIDFromVault returns the market ID for a given vault subaccount ID */
1463
+
1464
+ }, {
1465
+ key: "queryMarketIDFromVault",
1466
+ value: function () {
1467
+ var _queryMarketIDFromVault = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee40(params) {
1468
+ var endpoint;
1469
+ return _regenerator["default"].wrap(function _callee40$(_context40) {
1470
+ while (1) {
1471
+ switch (_context40.prev = _context40.next) {
1472
+ case 0:
1473
+ endpoint = "injective/exchange/v1beta1/vault_market_id/".concat(params.vaultSubaccountId);
1474
+ _context40.next = 3;
1475
+ return this.req.get(endpoint);
1476
+
1477
+ case 3:
1478
+ return _context40.abrupt("return", _context40.sent);
1479
+
1480
+ case 4:
1481
+ case "end":
1482
+ return _context40.stop();
1483
+ }
1484
+ }
1485
+ }, _callee40, this);
1486
+ }));
1487
+
1488
+ function queryMarketIDFromVault(_x31) {
1489
+ return _queryMarketIDFromVault.apply(this, arguments);
1490
+ }
1491
+
1492
+ return queryMarketIDFromVault;
1493
+ }()
1494
+ /* Retrieves historical trade records for a given market ID */
1495
+
1496
+ }, {
1497
+ key: "historicalTradeRecords",
1498
+ value: function () {
1499
+ var _historicalTradeRecords = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee41(params) {
1500
+ var options, endpoint;
1501
+ return _regenerator["default"].wrap(function _callee41$(_context41) {
1502
+ while (1) {
1503
+ switch (_context41.prev = _context41.next) {
1504
+ case 0:
1505
+ options = {
1506
+ params: {}
1507
+ };
1508
+
1509
+ if (typeof (params === null || params === void 0 ? void 0 : params.marketId) !== "undefined") {
1510
+ options.params.market_id = params.marketId;
1511
+ }
1512
+
1513
+ endpoint = "injective/exchange/v1beta1/historical_trade_records";
1514
+ _context41.next = 5;
1515
+ return this.req.get(endpoint, options);
1516
+
1517
+ case 5:
1518
+ return _context41.abrupt("return", _context41.sent);
1519
+
1520
+ case 6:
1521
+ case "end":
1522
+ return _context41.stop();
1523
+ }
1524
+ }
1525
+ }, _callee41, this);
1526
+ }));
1527
+
1528
+ function historicalTradeRecords(_x32) {
1529
+ return _historicalTradeRecords.apply(this, arguments);
1530
+ }
1531
+
1532
+ return historicalTradeRecords;
1533
+ }()
1534
+ /* Retrieves if the account is opted out of rewards */
1535
+
1536
+ }, {
1537
+ key: "isOptedOutOfRewards",
1538
+ value: function () {
1539
+ var _isOptedOutOfRewards = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee42(params) {
1540
+ var endpoint;
1541
+ return _regenerator["default"].wrap(function _callee42$(_context42) {
1542
+ while (1) {
1543
+ switch (_context42.prev = _context42.next) {
1544
+ case 0:
1545
+ endpoint = "injective/exchange/v1beta1/is_opted_out_of_rewards/".concat(params.account);
1546
+ _context42.next = 3;
1547
+ return this.req.get(endpoint);
1548
+
1549
+ case 3:
1550
+ return _context42.abrupt("return", _context42.sent);
1551
+
1552
+ case 4:
1553
+ case "end":
1554
+ return _context42.stop();
1555
+ }
1556
+ }
1557
+ }, _callee42, this);
1558
+ }));
1559
+
1560
+ function isOptedOutOfRewards(_x33) {
1561
+ return _isOptedOutOfRewards.apply(this, arguments);
1562
+ }
1563
+
1564
+ return isOptedOutOfRewards;
1565
+ }()
1566
+ /* Retrieves all accounts opted out of rewards */
1567
+
1568
+ }, {
1569
+ key: "optedOutOfRewardsAccounts",
1570
+ value: function () {
1571
+ var _optedOutOfRewardsAccounts = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee43() {
1572
+ var _params,
1573
+ endpoint,
1574
+ _args43 = arguments;
1575
+
1576
+ return _regenerator["default"].wrap(function _callee43$(_context43) {
1577
+ while (1) {
1578
+ switch (_context43.prev = _context43.next) {
1579
+ case 0:
1580
+ _params = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : {};
1581
+ endpoint = "injective/exchange/v1beta1/opted_out_of_rewards_accounts";
1582
+ _context43.next = 4;
1583
+ return this.req.get(endpoint);
1584
+
1585
+ case 4:
1586
+ return _context43.abrupt("return", _context43.sent);
1587
+
1588
+ case 5:
1589
+ case "end":
1590
+ return _context43.stop();
1591
+ }
1592
+ }
1593
+ }, _callee43, this);
1594
+ }));
1595
+
1596
+ function optedOutOfRewardsAccounts() {
1597
+ return _optedOutOfRewardsAccounts.apply(this, arguments);
1598
+ }
1599
+
1600
+ return optedOutOfRewardsAccounts;
1601
+ }()
1602
+ /* MarketVolatility computes the volatility for spot and derivative markets trading history. */
1603
+
1604
+ }, {
1605
+ key: "marketVolatility",
1606
+ value: function () {
1607
+ var _marketVolatility = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee44(params) {
1608
+ var options, endpoint;
1609
+ return _regenerator["default"].wrap(function _callee44$(_context44) {
1610
+ while (1) {
1611
+ switch (_context44.prev = _context44.next) {
1612
+ case 0:
1613
+ options = {
1614
+ params: {}
1615
+ };
1616
+
1617
+ if (typeof (params === null || params === void 0 ? void 0 : params.tradeHistoryOptions) !== "undefined") {
1618
+ options.params.trade_history_options = params.tradeHistoryOptions;
1619
+ }
1620
+
1621
+ endpoint = "injective/exchange/v1beta1/market_volatility/".concat(params.marketId);
1622
+ _context44.next = 5;
1623
+ return this.req.get(endpoint, options);
1624
+
1625
+ case 5:
1626
+ return _context44.abrupt("return", _context44.sent);
1627
+
1628
+ case 6:
1629
+ case "end":
1630
+ return _context44.stop();
1631
+ }
1632
+ }
1633
+ }, _callee44, this);
1634
+ }));
1635
+
1636
+ function marketVolatility(_x34) {
1637
+ return _marketVolatility.apply(this, arguments);
1638
+ }
1639
+
1640
+ return marketVolatility;
1641
+ }()
1642
+ /* Retrieves a spot market's orderbook by marketID */
1643
+
1644
+ }, {
1645
+ key: "binaryOptionsMarkets",
1646
+ value: function () {
1647
+ var _binaryOptionsMarkets = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee45(params) {
1648
+ var options, endpoint;
1649
+ return _regenerator["default"].wrap(function _callee45$(_context45) {
1650
+ while (1) {
1651
+ switch (_context45.prev = _context45.next) {
1652
+ case 0:
1653
+ options = {
1654
+ params: {}
1655
+ };
1656
+
1657
+ if (typeof (params === null || params === void 0 ? void 0 : params.status) !== "undefined") {
1658
+ options.params.status = params.status;
1659
+ }
1660
+
1661
+ endpoint = "injective/exchange/v1beta1/binary_options/markets";
1662
+ _context45.next = 5;
1663
+ return this.req.get(endpoint, options);
1664
+
1665
+ case 5:
1666
+ return _context45.abrupt("return", _context45.sent);
1667
+
1668
+ case 6:
1669
+ case "end":
1670
+ return _context45.stop();
1671
+ }
1672
+ }
1673
+ }, _callee45, this);
1674
+ }));
1675
+
1676
+ function binaryOptionsMarkets(_x35) {
1677
+ return _binaryOptionsMarkets.apply(this, arguments);
1678
+ }
1679
+
1680
+ return binaryOptionsMarkets;
1681
+ }()
1682
+ /* Retrieves a trader's derivative conditional orders */
1683
+
1684
+ }, {
1685
+ key: "traderDerivativeConditionalOrders",
1686
+ value: function () {
1687
+ var _traderDerivativeConditionalOrders = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee46(params) {
1688
+ var endpoint;
1689
+ return _regenerator["default"].wrap(function _callee46$(_context46) {
1690
+ while (1) {
1691
+ switch (_context46.prev = _context46.next) {
1692
+ case 0:
1693
+ endpoint = "injective/exchange/v1beta1/derivative/orders/conditional/".concat(params.marketId, "/").concat(params.subaccountId);
1694
+ _context46.next = 3;
1695
+ return this.req.get(endpoint);
1696
+
1697
+ case 3:
1698
+ return _context46.abrupt("return", _context46.sent);
1699
+
1700
+ case 4:
1701
+ case "end":
1702
+ return _context46.stop();
1703
+ }
1704
+ }
1705
+ }, _callee46, this);
1706
+ }));
1707
+
1708
+ function traderDerivativeConditionalOrders(_x36) {
1709
+ return _traderDerivativeConditionalOrders.apply(this, arguments);
1710
+ }
1711
+
1712
+ return traderDerivativeConditionalOrders;
1713
+ }()
1714
+ }]);
1715
+ return LCDQueryClient;
1716
+ }();
1717
+
1718
+ exports.LCDQueryClient = LCDQueryClient;