carbon-js-sdk 0.2.10 → 0.2.11-dev.2

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 (290) hide show
  1. package/lib/clients/CarbonQueryClient.js +1 -1
  2. package/lib/clients/ETHClient.js +15 -15
  3. package/lib/clients/HydrogenClient.js +1 -1
  4. package/lib/clients/InsightsQueryClient.d.ts +3 -1
  5. package/lib/clients/InsightsQueryClient.js +17 -6
  6. package/lib/clients/NEOClient.js +7 -7
  7. package/lib/clients/TokenClient.d.ts +4 -0
  8. package/lib/clients/TokenClient.js +23 -7
  9. package/lib/clients/ZILClient.js +16 -16
  10. package/lib/codec/book/genesis.d.ts +1 -1
  11. package/lib/codec/book/genesis.js +1 -1
  12. package/lib/codec/book/query.d.ts +1 -1
  13. package/lib/codec/book/query.js +1 -1
  14. package/lib/codec/broker/genesis.d.ts +1 -1
  15. package/lib/codec/broker/genesis.js +1 -1
  16. package/lib/codec/broker/query.d.ts +3 -3
  17. package/lib/codec/broker/query.js +3 -3
  18. package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
  19. package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
  20. package/lib/codec/btcx/query.d.ts +1 -1
  21. package/lib/codec/btcx/query.js +1 -1
  22. package/lib/codec/ccm/genesis.d.ts +1 -1
  23. package/lib/codec/ccm/genesis.js +1 -1
  24. package/lib/codec/cdp/asset_params.d.ts +1 -0
  25. package/lib/codec/cdp/asset_params.js +31 -15
  26. package/lib/codec/cdp/event.d.ts +226 -22
  27. package/lib/codec/cdp/event.js +1414 -80
  28. package/lib/codec/cdp/genesis.d.ts +57 -4
  29. package/lib/codec/cdp/genesis.js +417 -22
  30. package/lib/codec/cdp/query.d.ts +328 -94
  31. package/lib/codec/cdp/query.js +1300 -236
  32. package/lib/codec/cdp/tx.d.ts +466 -96
  33. package/lib/codec/cdp/tx.js +1961 -181
  34. package/lib/codec/coin/event.d.ts +1 -1
  35. package/lib/codec/coin/event.js +1 -1
  36. package/lib/codec/coin/genesis.d.ts +2 -2
  37. package/lib/codec/coin/genesis.js +2 -2
  38. package/lib/codec/coin/proposal.d.ts +1 -1
  39. package/lib/codec/coin/proposal.js +1 -1
  40. package/lib/codec/coin/query.d.ts +2 -5
  41. package/lib/codec/coin/query.js +2 -8
  42. package/lib/codec/coin/token.d.ts +11 -0
  43. package/lib/codec/coin/token.js +65 -1
  44. package/lib/codec/coin/tx.d.ts +1 -1
  45. package/lib/codec/coin/tx.js +1 -1
  46. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  47. package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
  48. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
  49. package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
  50. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -2
  51. package/lib/codec/cosmos/authz/v1beta1/query.js +2 -2
  52. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
  53. package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
  54. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
  55. package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
  56. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
  57. package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
  58. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
  59. package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
  60. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -3
  61. package/lib/codec/cosmos/bank/v1beta1/query.js +3 -3
  62. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
  63. package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
  64. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
  65. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
  66. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
  67. package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
  68. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
  69. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
  70. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
  71. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
  72. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
  73. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
  74. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
  75. package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
  76. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
  77. package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
  78. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
  79. package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
  80. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  81. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
  82. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
  83. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
  84. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
  85. package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -2
  86. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
  87. package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
  88. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
  89. package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
  90. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
  91. package/lib/codec/cosmos/gov/v1beta1/query.js +4 -4
  92. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
  93. package/lib/codec/cosmos/gov/v1beta1/tx.js +4 -4
  94. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  95. package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
  96. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
  97. package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
  98. package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
  99. package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
  100. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
  101. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
  102. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
  103. package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
  104. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
  105. package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
  106. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  107. package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
  108. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
  109. package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
  110. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
  111. package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
  112. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
  113. package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
  114. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -1
  115. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -1
  116. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -3
  117. package/lib/codec/cosmos/tx/v1beta1/service.js +3 -3
  118. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
  119. package/lib/codec/cosmos/tx/v1beta1/tx.js +5 -5
  120. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
  121. package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
  122. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
  123. package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
  124. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
  125. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
  126. package/lib/codec/fee/genesis.d.ts +1 -1
  127. package/lib/codec/fee/genesis.js +1 -1
  128. package/lib/codec/fee/proposal.d.ts +1 -1
  129. package/lib/codec/fee/proposal.js +1 -1
  130. package/lib/codec/fee/query.d.ts +1 -1
  131. package/lib/codec/fee/query.js +1 -1
  132. package/lib/codec/fee/tx.d.ts +1 -1
  133. package/lib/codec/fee/tx.js +1 -1
  134. package/lib/codec/headersync/genesis.d.ts +1 -1
  135. package/lib/codec/headersync/genesis.js +1 -1
  136. package/lib/codec/headersync/query.d.ts +1 -1
  137. package/lib/codec/headersync/query.js +1 -1
  138. package/lib/codec/index.d.ts +53 -22
  139. package/lib/codec/index.js +514 -384
  140. package/lib/codec/inflation/genesis.d.ts +1 -1
  141. package/lib/codec/inflation/genesis.js +1 -1
  142. package/lib/codec/inflation/query.d.ts +1 -1
  143. package/lib/codec/inflation/query.js +1 -1
  144. package/lib/codec/insurance/genesis.d.ts +1 -1
  145. package/lib/codec/insurance/genesis.js +1 -1
  146. package/lib/codec/leverage/genesis.d.ts +1 -1
  147. package/lib/codec/leverage/genesis.js +1 -1
  148. package/lib/codec/leverage/query.d.ts +1 -1
  149. package/lib/codec/leverage/query.js +1 -1
  150. package/lib/codec/liquidation/genesis.d.ts +1 -1
  151. package/lib/codec/liquidation/genesis.js +1 -1
  152. package/lib/codec/liquidation/query.d.ts +1 -1
  153. package/lib/codec/liquidation/query.js +1 -1
  154. package/lib/codec/liquidation/quote_changes.d.ts +1 -1
  155. package/lib/codec/liquidation/quote_changes.js +1 -1
  156. package/lib/codec/liquiditypool/event.d.ts +2 -2
  157. package/lib/codec/liquiditypool/event.js +2 -2
  158. package/lib/codec/liquiditypool/genesis.d.ts +2 -2
  159. package/lib/codec/liquiditypool/genesis.js +2 -2
  160. package/lib/codec/liquiditypool/proposal.d.ts +1 -1
  161. package/lib/codec/liquiditypool/proposal.js +1 -1
  162. package/lib/codec/liquiditypool/query.d.ts +2 -2
  163. package/lib/codec/liquiditypool/query.js +2 -2
  164. package/lib/codec/liquiditypool/tx.d.ts +1 -1
  165. package/lib/codec/liquiditypool/tx.js +1 -1
  166. package/lib/codec/lockproxy/genesis.d.ts +1 -1
  167. package/lib/codec/lockproxy/genesis.js +1 -1
  168. package/lib/codec/lockproxy/query.d.ts +1 -1
  169. package/lib/codec/lockproxy/query.js +1 -1
  170. package/lib/codec/market/event.d.ts +1 -1
  171. package/lib/codec/market/event.js +1 -1
  172. package/lib/codec/market/genesis.d.ts +2 -1
  173. package/lib/codec/market/genesis.js +20 -2
  174. package/lib/codec/market/proposal.d.ts +1 -1
  175. package/lib/codec/market/proposal.js +1 -1
  176. package/lib/codec/market/query.d.ts +1 -1
  177. package/lib/codec/market/query.js +1 -1
  178. package/lib/codec/market/tx.d.ts +1 -1
  179. package/lib/codec/market/tx.js +1 -1
  180. package/lib/codec/marketstats/genesis.d.ts +1 -1
  181. package/lib/codec/marketstats/genesis.js +1 -1
  182. package/lib/codec/marketstats/query.d.ts +2 -2
  183. package/lib/codec/marketstats/query.js +2 -2
  184. package/lib/codec/misc/message.d.ts +1 -1
  185. package/lib/codec/misc/message.js +1 -1
  186. package/lib/codec/misc/query.d.ts +3 -3
  187. package/lib/codec/misc/query.js +3 -3
  188. package/lib/codec/misc/trade.d.ts +1 -0
  189. package/lib/codec/misc/trade.js +17 -0
  190. package/lib/codec/misc/transaction.d.ts +1 -1
  191. package/lib/codec/misc/transaction.js +1 -1
  192. package/lib/codec/oracle/event.d.ts +1 -1
  193. package/lib/codec/oracle/event.js +1 -1
  194. package/lib/codec/oracle/genesis.d.ts +1 -1
  195. package/lib/codec/oracle/genesis.js +1 -1
  196. package/lib/codec/oracle/proposal.d.ts +1 -1
  197. package/lib/codec/oracle/proposal.js +1 -1
  198. package/lib/codec/oracle/query.d.ts +2 -2
  199. package/lib/codec/oracle/query.js +2 -2
  200. package/lib/codec/order/event.d.ts +1 -1
  201. package/lib/codec/order/event.js +1 -1
  202. package/lib/codec/order/genesis.d.ts +1 -1
  203. package/lib/codec/order/genesis.js +1 -1
  204. package/lib/codec/order/query.d.ts +1 -1
  205. package/lib/codec/order/query.js +1 -1
  206. package/lib/codec/position/event.d.ts +1 -1
  207. package/lib/codec/position/event.js +1 -1
  208. package/lib/codec/position/genesis.d.ts +1 -1
  209. package/lib/codec/position/genesis.js +1 -1
  210. package/lib/codec/position/query.d.ts +1 -1
  211. package/lib/codec/position/query.js +1 -1
  212. package/lib/codec/pricing/event.d.ts +11 -1
  213. package/lib/codec/pricing/event.js +52 -2
  214. package/lib/codec/pricing/genesis.d.ts +2 -1
  215. package/lib/codec/pricing/genesis.js +20 -5
  216. package/lib/codec/pricing/pricing.d.ts +13 -0
  217. package/lib/codec/pricing/pricing.js +83 -1
  218. package/lib/codec/pricing/query.d.ts +1 -1
  219. package/lib/codec/pricing/query.js +1 -1
  220. package/lib/codec/profile/event.d.ts +1 -1
  221. package/lib/codec/profile/event.js +1 -1
  222. package/lib/codec/profile/genesis.d.ts +1 -1
  223. package/lib/codec/profile/genesis.js +1 -1
  224. package/lib/codec/profile/query.d.ts +1 -1
  225. package/lib/codec/profile/query.js +1 -1
  226. package/lib/codec/subaccount/genesis.d.ts +1 -1
  227. package/lib/codec/subaccount/genesis.js +1 -1
  228. package/lib/codec/subaccount/query.d.ts +1 -1
  229. package/lib/codec/subaccount/query.js +1 -1
  230. package/lib/codec/tendermint/abci/types.d.ts +4 -4
  231. package/lib/codec/tendermint/abci/types.js +4 -4
  232. package/lib/codec/tendermint/types/block.d.ts +2 -2
  233. package/lib/codec/tendermint/types/block.js +2 -2
  234. package/lib/codec/tendermint/types/evidence.d.ts +2 -2
  235. package/lib/codec/tendermint/types/evidence.js +2 -2
  236. package/lib/codec/tendermint/types/types.d.ts +3 -3
  237. package/lib/codec/tendermint/types/types.js +3 -3
  238. package/lib/codec/tendermint/types/validator.d.ts +1 -1
  239. package/lib/codec/tendermint/types/validator.js +1 -1
  240. package/lib/constant/generic.js +1 -1
  241. package/lib/insights/common.d.ts +2 -0
  242. package/lib/insights/common.js +2 -0
  243. package/lib/insights/competition.d.ts +49 -7
  244. package/lib/modules/admin.d.ts +61 -1
  245. package/lib/modules/admin.js +193 -42
  246. package/lib/modules/cdp.d.ts +55 -12
  247. package/lib/modules/cdp.js +134 -20
  248. package/lib/modules/gov.js +14 -14
  249. package/lib/modules/liquiditypool.js +1 -1
  250. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
  251. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  252. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  253. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
  254. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  255. package/lib/provider/amino/types/admin.js +67 -26
  256. package/lib/provider/amino/types/bank.js +1 -1
  257. package/lib/provider/amino/types/broker.js +1 -1
  258. package/lib/provider/amino/types/cdp.js +72 -32
  259. package/lib/provider/amino/types/coin.js +2 -2
  260. package/lib/provider/amino/types/gov.js +4 -4
  261. package/lib/provider/amino/types/ibc.js +1 -1
  262. package/lib/provider/amino/types/leverage.js +1 -1
  263. package/lib/provider/amino/types/liquidityPool.js +7 -7
  264. package/lib/provider/amino/types/market.js +1 -1
  265. package/lib/provider/amino/types/oracle.js +1 -1
  266. package/lib/provider/amino/types/order.js +4 -4
  267. package/lib/provider/amino/types/position.js +1 -1
  268. package/lib/provider/amino/types/profile.js +1 -1
  269. package/lib/provider/amino/types/staking.js +4 -4
  270. package/lib/provider/amino/types/subaccount.js +3 -3
  271. package/lib/provider/amino/utils.js +11 -11
  272. package/lib/provider/keplr/KeplrStore.js +1 -1
  273. package/lib/provider/ledger/ledger.js +2 -2
  274. package/lib/provider/metamask/MetaMask.js +1 -1
  275. package/lib/provider/o3/O3Wallet.js +2 -2
  276. package/lib/util/address.js +13 -13
  277. package/lib/util/api.js +4 -4
  278. package/lib/util/fetch.js +1 -1
  279. package/lib/util/generic.js +3 -3
  280. package/lib/util/number.js +5 -5
  281. package/lib/util/tx.d.ts +42 -14
  282. package/lib/wallet/CarbonSigner.js +2 -2
  283. package/lib/wallet/CarbonSigningClient.js +8 -8
  284. package/lib/wallet/CarbonWallet.js +6 -6
  285. package/lib/websocket/channel.js +26 -0
  286. package/lib/websocket/connector.js +3 -3
  287. package/lib/websocket/models.d.ts +63 -0
  288. package/lib/websocket/types.d.ts +38 -3
  289. package/lib/websocket/types.js +16 -0
  290. package/package.json +2 -1
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const profile_1 = require("../profile/profile");
10
+ const profile_1 = require("./profile");
11
11
  exports.protobufPackage = "Switcheo.carbon.profile";
12
12
  const baseGenesisState = {};
13
13
  exports.GenesisState = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Profile } from "../profile/profile";
3
+ import { Profile } from "./profile";
4
4
  import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
5
5
  export declare const protobufPackage = "Switcheo.carbon.profile";
6
6
  /** this line is used by starport scaffolding # 3 */
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryAllProfileResponse = exports.QueryAllProf
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const profile_1 = require("../profile/profile");
10
+ const profile_1 = require("./profile");
11
11
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "Switcheo.carbon.profile";
13
13
  const baseQueryGetProfileRequest = { address: "" };
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { GenesisSubAccount } from "../subaccount/subaccount";
3
+ import { GenesisSubAccount } from "./subaccount";
4
4
  export declare const protobufPackage = "Switcheo.carbon.subaccount";
5
5
  /** GenesisState defines the subaccount module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const subaccount_1 = require("../subaccount/subaccount");
10
+ const subaccount_1 = require("./subaccount");
11
11
  exports.protobufPackage = "Switcheo.carbon.subaccount";
12
12
  const baseGenesisState = {};
13
13
  exports.GenesisState = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { SubAccount, GenesisSubAccount } from "../subaccount/subaccount";
3
+ import { SubAccount, GenesisSubAccount } from "./subaccount";
4
4
  import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
5
5
  export declare const protobufPackage = "Switcheo.carbon.subaccount";
6
6
  /** this line is used by starport scaffolding # 3 */
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QuerySubAccountPowerResponse = exports.QuerySu
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const subaccount_1 = require("../subaccount/subaccount");
10
+ const subaccount_1 = require("./subaccount");
11
11
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "Switcheo.carbon.subaccount";
13
13
  const baseQueryGetSubAccountRequest = { address: "" };
@@ -1,9 +1,9 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Header } from "../../tendermint/types/types";
4
- import { ProofOps } from "../../tendermint/crypto/proof";
5
- import { EvidenceParams, ValidatorParams, VersionParams } from "../../tendermint/types/params";
6
- import { PublicKey } from "../../tendermint/crypto/keys";
3
+ import { Header } from "../types/types";
4
+ import { ProofOps } from "../crypto/proof";
5
+ import { EvidenceParams, ValidatorParams, VersionParams } from "../types/params";
6
+ import { PublicKey } from "../crypto/keys";
7
7
  export declare const protobufPackage = "tendermint.abci";
8
8
  export declare enum CheckTxType {
9
9
  NEW = 0,
@@ -8,10 +8,10 @@ exports.ABCIApplicationClientImpl = exports.Snapshot = exports.Evidence = export
8
8
  /* eslint-disable */
9
9
  const long_1 = __importDefault(require("long"));
10
10
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
11
- const types_1 = require("../../tendermint/types/types");
12
- const proof_1 = require("../../tendermint/crypto/proof");
13
- const params_1 = require("../../tendermint/types/params");
14
- const keys_1 = require("../../tendermint/crypto/keys");
11
+ const types_1 = require("../types/types");
12
+ const proof_1 = require("../crypto/proof");
13
+ const params_1 = require("../types/params");
14
+ const keys_1 = require("../crypto/keys");
15
15
  const timestamp_1 = require("../../google/protobuf/timestamp");
16
16
  exports.protobufPackage = "tendermint.abci";
17
17
  var CheckTxType;
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Header, Data, Commit } from "../../tendermint/types/types";
4
- import { EvidenceList } from "../../tendermint/types/evidence";
3
+ import { Header, Data, Commit } from "./types";
4
+ import { EvidenceList } from "./evidence";
5
5
  export declare const protobufPackage = "tendermint.types";
6
6
  export interface Block {
7
7
  header?: Header;
@@ -7,8 +7,8 @@ exports.Block = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const types_1 = require("../../tendermint/types/types");
11
- const evidence_1 = require("../../tendermint/types/evidence");
10
+ const types_1 = require("./types");
11
+ const evidence_1 = require("./evidence");
12
12
  exports.protobufPackage = "tendermint.types";
13
13
  const baseBlock = {};
14
14
  exports.Block = {
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Vote, LightBlock } from "../../tendermint/types/types";
4
- import { Validator } from "../../tendermint/types/validator";
3
+ import { Vote, LightBlock } from "./types";
4
+ import { Validator } from "./validator";
5
5
  export declare const protobufPackage = "tendermint.types";
6
6
  export interface Evidence {
7
7
  duplicateVoteEvidence?: DuplicateVoteEvidence | undefined;
@@ -7,9 +7,9 @@ exports.EvidenceList = exports.LightClientAttackEvidence = exports.DuplicateVote
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const types_1 = require("../../tendermint/types/types");
10
+ const types_1 = require("./types");
11
11
  const timestamp_1 = require("../../google/protobuf/timestamp");
12
- const validator_1 = require("../../tendermint/types/validator");
12
+ const validator_1 = require("./validator");
13
13
  exports.protobufPackage = "tendermint.types";
14
14
  const baseEvidence = {};
15
15
  exports.Evidence = {
@@ -1,8 +1,8 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Proof } from "../../tendermint/crypto/proof";
4
- import { Consensus } from "../../tendermint/version/types";
5
- import { ValidatorSet } from "../../tendermint/types/validator";
3
+ import { Proof } from "../crypto/proof";
4
+ import { Consensus } from "../version/types";
5
+ import { ValidatorSet } from "./validator";
6
6
  export declare const protobufPackage = "tendermint.types";
7
7
  /** BlockIdFlag indicates which BlcokID the signature is for */
8
8
  export declare enum BlockIDFlag {
@@ -7,9 +7,9 @@ exports.TxProof = exports.BlockMeta = exports.LightBlock = exports.SignedHeader
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const proof_1 = require("../../tendermint/crypto/proof");
11
- const types_1 = require("../../tendermint/version/types");
12
- const validator_1 = require("../../tendermint/types/validator");
10
+ const proof_1 = require("../crypto/proof");
11
+ const types_1 = require("../version/types");
12
+ const validator_1 = require("./validator");
13
13
  const timestamp_1 = require("../../google/protobuf/timestamp");
14
14
  exports.protobufPackage = "tendermint.types";
15
15
  /** BlockIdFlag indicates which BlcokID the signature is for */
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { PublicKey } from "../../tendermint/crypto/keys";
3
+ import { PublicKey } from "../crypto/keys";
4
4
  export declare const protobufPackage = "tendermint.types";
5
5
  export interface ValidatorSet {
6
6
  validators: Validator[];
@@ -7,7 +7,7 @@ exports.SimpleValidator = exports.Validator = exports.ValidatorSet = exports.pro
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const keys_1 = require("../../tendermint/crypto/keys");
10
+ const keys_1 = require("../crypto/keys");
11
11
  exports.protobufPackage = "tendermint.types";
12
12
  const baseValidatorSet = { totalVotingPower: long_1.default.ZERO };
13
13
  exports.ValidatorSet = {
@@ -12,7 +12,7 @@ exports.DEFAULT_FEE_DENOM = "swth";
12
12
  exports.DEFAULT_GAS_PRICE = new bignumber_js_1.default(10);
13
13
  exports.DEFAULT_GAS = new bignumber_js_1.default(10000000);
14
14
  exports.DEFAULT_FEE = {
15
- amount: proto_signing_1.coins(exports.DEFAULT_GAS_PRICE.times(exports.DEFAULT_GAS).dp(0).toString(), "swth"),
15
+ amount: (0, proto_signing_1.coins)(exports.DEFAULT_GAS_PRICE.times(exports.DEFAULT_GAS).dp(0).toString(), "swth"),
16
16
  gas: exports.DEFAULT_GAS.toString(10),
17
17
  };
18
18
  exports.CURRENT_GAS_PRICE = 769.23077;
@@ -23,7 +23,9 @@ export declare const InsightsEndpoints: {
23
23
  'position/view': string;
24
24
  'position/liquidation': string;
25
25
  'position/liquidation/engine': string;
26
+ 'competition/list': string;
26
27
  'competition/leaderboard': string;
28
+ 'competition/leaderboardpnl': string;
27
29
  'info/denom_gecko_map': string;
28
30
  'market/funding': string;
29
31
  };
@@ -34,7 +34,9 @@ exports.InsightsEndpoints = {
34
34
  'position/liquidation': '/position/liquidation',
35
35
  'position/liquidation/engine': '/position/liquidation/engine',
36
36
  // Competition api
37
+ 'competition/list': '/competition/list',
37
38
  'competition/leaderboard': '/competition/leaderboard',
39
+ 'competition/leaderboardpnl': '/competition/leaderboardpnl',
38
40
  //Coin Gecko Tokens api
39
41
  'info/denom_gecko_map': '/info/denom_gecko_map',
40
42
  //funding
@@ -1,5 +1,25 @@
1
- import { TimeMeta } from "./common";
2
- export interface LeaderboardEntry {
1
+ import { TimeMeta, PageMeta } from "./common";
2
+ export interface CompetitionItem {
3
+ id: string;
4
+ competitionId: string;
5
+ market: string;
6
+ start: string;
7
+ end: string;
8
+ enablePNL: boolean;
9
+ minBalance: number;
10
+ enableVolume: boolean;
11
+ makerIncentive: boolean;
12
+ }
13
+ export interface QueryGetCompetitionListResponse {
14
+ models: CompetitionItem[];
15
+ meta: PageMeta;
16
+ }
17
+ export interface QueryGetCompetitionListRequest {
18
+ limit?: number;
19
+ offset?: number;
20
+ }
21
+ export interface VolumeLeaderboardEntry {
22
+ competitionId: string;
3
23
  address: string;
4
24
  market: string;
5
25
  totalVolume: string;
@@ -7,12 +27,34 @@ export interface LeaderboardEntry {
7
27
  username: string | null;
8
28
  twitter: string | null;
9
29
  }
10
- export interface QueryGetCompetitionLeaderboardResponse {
11
- entries: LeaderboardEntry[];
30
+ export interface QueryGetVolumeCompetitionLeaderboardResponse {
31
+ entries: VolumeLeaderboardEntry[];
32
+ meta: TimeMeta;
33
+ }
34
+ export interface QueryGetVolumeCompetitionLeaderboardRequest {
35
+ competitionId: string;
36
+ market?: string;
37
+ from?: string;
38
+ until?: string;
39
+ }
40
+ export interface PNLLeaderboardEntry {
41
+ competitionId: string;
42
+ address: string;
43
+ market: string;
44
+ realizedPnl: string;
45
+ unrealizedPnl: string;
46
+ initialBalance: string;
47
+ totalPnl: string;
48
+ PnlPercent: string;
49
+ rank: string;
50
+ username: string | null;
51
+ twitter: string | null;
52
+ }
53
+ export interface QueryGetPNLCompetitionLeaderboardResponse {
54
+ entries: PNLLeaderboardEntry[];
12
55
  meta: TimeMeta;
13
56
  }
14
- export interface QueryGetCompetitionLeaderboardRequest {
57
+ export interface QueryGetPNLCompetitionLeaderboardRequest {
58
+ competitionId: string;
15
59
  market?: string;
16
- from: string;
17
- until: string;
18
60
  }
@@ -12,10 +12,10 @@ export declare class AdminModule extends BaseModule {
12
12
  syncToken(params: AdminModule.SyncTokenParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
13
13
  bindToken(params: AdminModule.BindTokenParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
14
14
  unbindToken(params: AdminModule.UnbindTokenParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
15
+ updateToken(params: AdminModule.UpdateTokenParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
15
16
  linkToken(params: AdminModule.LinkTokenParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
16
17
  createMarket(params: AdminModule.CreateMarketParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
17
18
  createMarkets(params: AdminModule.CreateMarketParams[], opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
18
- createVaultType(params: AdminModule.CreateVaultTypeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
19
19
  linkPool(params: AdminModule.LinkPoolParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
20
20
  unlinkPool(params: AdminModule.UnlinkPoolParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
21
21
  setRewardsWeights(params: AdminModule.SetRewardsWeightsParams[], opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
@@ -32,6 +32,14 @@ export declare class AdminModule extends BaseModule {
32
32
  editValidator(params: AdminModule.EditValidatorParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
33
33
  authorizeBridge(params: AdminModule.AuthorizeBridgeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
34
34
  deauthorizeBridge(params: AdminModule.DeauthorizeBridgeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
35
+ addRateStrategy(params: AdminModule.AddRateStrategyParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
36
+ updateRateStrategy(params: AdminModule.UpdateRateStrategyParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
37
+ removeRateStrategy(params: AdminModule.RemoveRateStrategyParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
38
+ addAsset(params: AdminModule.AddAssetParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
39
+ updateAsset(params: AdminModule.UpdateAssetParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
40
+ setLiquidationFee(params: AdminModule.SetLiquidationFeeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
41
+ setInterestFee(params: AdminModule.SetInterestFeeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
42
+ setStableCoinInterestRate(params: AdminModule.SetStableCoinInterestRateParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
35
43
  }
36
44
  export declare namespace AdminModule {
37
45
  interface AuthorizeBridgeParams {
@@ -64,6 +72,13 @@ export declare namespace AdminModule {
64
72
  bridgeAddress: string;
65
73
  tokenAddress: string;
66
74
  }
75
+ interface UpdateTokenParams {
76
+ denom: string;
77
+ name?: string;
78
+ symbol?: string;
79
+ decimals?: number;
80
+ isActive?: boolean;
81
+ }
67
82
  interface SyncTokenParams {
68
83
  denom: string;
69
84
  }
@@ -173,6 +188,51 @@ export declare namespace AdminModule {
173
188
  commissionRate: BigNumber;
174
189
  minSelfDelegation: BigNumber;
175
190
  }
191
+ interface RateStrategy {
192
+ name: string;
193
+ optimalUsage: BigNumber;
194
+ baseVariableBorrowRate: BigNumber;
195
+ variableRateSlope1: BigNumber;
196
+ variableRateSlope2: BigNumber;
197
+ baseStableBorrowRate: BigNumber;
198
+ stableRateSlope1: BigNumber;
199
+ stableRateSlope2: BigNumber;
200
+ optimalStableToTotalDebtRatio: BigNumber;
201
+ }
202
+ interface Asset {
203
+ denom: string;
204
+ oracleId: string;
205
+ rateStrategyName: string;
206
+ loanToValue: BigNumber;
207
+ liquidationThreshold: BigNumber;
208
+ liquidationBonus: BigNumber;
209
+ supplyCap: BigNumber;
210
+ borrowCap: BigNumber;
211
+ }
212
+ interface AddRateStrategyParams {
213
+ rateStrategy: RateStrategy;
214
+ }
215
+ interface UpdateRateStrategyParams {
216
+ rateStrategy: RateStrategy;
217
+ }
218
+ interface RemoveRateStrategyParams {
219
+ name: string;
220
+ }
221
+ interface AddAssetParams {
222
+ asset: Asset;
223
+ }
224
+ interface UpdateAssetParams {
225
+ asset: Asset;
226
+ }
227
+ interface SetLiquidationFeeParams {
228
+ liquidationFee: BigNumber;
229
+ }
230
+ interface SetInterestFeeParams {
231
+ interestFee: BigNumber;
232
+ }
233
+ interface SetStableCoinInterestRateParams {
234
+ stablecoinInterestRate: BigNumber;
235
+ }
176
236
  }
177
237
  export declare function transfromCreateOracleParams(msg: AdminModule.CreateOracleParams, address: string): {
178
238
  creator: string;