carbon-js-sdk 0.2.11 → 0.2.13-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 (257) hide show
  1. package/lib/clients/CarbonQueryClient.d.ts +5 -2
  2. package/lib/clients/CarbonQueryClient.js +59 -54
  3. package/lib/clients/ETHClient.js +4 -4
  4. package/lib/clients/NEOClient.js +1 -1
  5. package/lib/clients/TokenClient.d.ts +6 -1
  6. package/lib/clients/TokenClient.js +24 -8
  7. package/lib/codec/book/genesis.d.ts +1 -1
  8. package/lib/codec/book/genesis.js +1 -1
  9. package/lib/codec/book/query.d.ts +1 -1
  10. package/lib/codec/book/query.js +1 -1
  11. package/lib/codec/broker/genesis.d.ts +1 -1
  12. package/lib/codec/broker/genesis.js +1 -1
  13. package/lib/codec/broker/query.d.ts +3 -3
  14. package/lib/codec/broker/query.js +3 -3
  15. package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
  16. package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
  17. package/lib/codec/btcx/query.d.ts +1 -1
  18. package/lib/codec/btcx/query.js +1 -1
  19. package/lib/codec/ccm/genesis.d.ts +1 -1
  20. package/lib/codec/ccm/genesis.js +1 -1
  21. package/lib/codec/cdp/asset_params.d.ts +1 -11
  22. package/lib/codec/cdp/asset_params.js +32 -84
  23. package/lib/codec/cdp/debt_info.d.ts +2 -3
  24. package/lib/codec/cdp/debt_info.js +31 -42
  25. package/lib/codec/cdp/event.d.ts +240 -22
  26. package/lib/codec/cdp/event.js +1516 -80
  27. package/lib/codec/cdp/genesis.d.ts +80 -4
  28. package/lib/codec/cdp/genesis.js +531 -22
  29. package/lib/codec/cdp/query.d.ts +397 -94
  30. package/lib/codec/cdp/query.js +1586 -230
  31. package/lib/codec/cdp/stablecoin_debt_info.d.ts +2 -3
  32. package/lib/codec/cdp/stablecoin_debt_info.js +29 -40
  33. package/lib/codec/cdp/tx.d.ts +466 -96
  34. package/lib/codec/cdp/tx.js +1961 -181
  35. package/lib/codec/coin/event.d.ts +1 -1
  36. package/lib/codec/coin/event.js +1 -1
  37. package/lib/codec/coin/genesis.d.ts +2 -2
  38. package/lib/codec/coin/genesis.js +2 -2
  39. package/lib/codec/coin/proposal.d.ts +1 -1
  40. package/lib/codec/coin/proposal.js +1 -1
  41. package/lib/codec/coin/query.d.ts +2 -5
  42. package/lib/codec/coin/query.js +2 -8
  43. package/lib/codec/coin/token.d.ts +11 -0
  44. package/lib/codec/coin/token.js +65 -1
  45. package/lib/codec/coin/tx.d.ts +1 -1
  46. package/lib/codec/coin/tx.js +1 -1
  47. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  48. package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
  49. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
  50. package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
  51. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -2
  52. package/lib/codec/cosmos/authz/v1beta1/query.js +2 -2
  53. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
  54. package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
  55. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
  56. package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
  57. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
  58. package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
  59. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
  60. package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
  61. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -3
  62. package/lib/codec/cosmos/bank/v1beta1/query.js +3 -3
  63. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
  64. package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
  65. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
  66. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
  67. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
  68. package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
  69. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
  70. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
  71. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
  72. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
  73. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
  74. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
  75. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
  76. package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
  77. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
  78. package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
  79. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
  80. package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
  81. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  82. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
  83. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
  84. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
  85. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
  86. package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -2
  87. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
  88. package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
  89. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
  90. package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
  91. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
  92. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  93. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
  94. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  95. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  96. package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
  97. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
  98. package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
  99. package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
  100. package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
  101. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
  102. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
  103. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
  104. package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
  105. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
  106. package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
  107. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  108. package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
  109. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
  110. package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
  111. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
  112. package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
  113. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
  114. package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
  115. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -1
  116. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -1
  117. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -3
  118. package/lib/codec/cosmos/tx/v1beta1/service.js +3 -3
  119. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
  120. package/lib/codec/cosmos/tx/v1beta1/tx.js +3 -3
  121. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
  122. package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
  123. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
  124. package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
  125. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
  126. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
  127. package/lib/codec/fee/genesis.d.ts +1 -1
  128. package/lib/codec/fee/genesis.js +1 -1
  129. package/lib/codec/fee/proposal.d.ts +1 -1
  130. package/lib/codec/fee/proposal.js +1 -1
  131. package/lib/codec/fee/query.d.ts +1 -1
  132. package/lib/codec/fee/query.js +1 -1
  133. package/lib/codec/fee/tx.d.ts +1 -1
  134. package/lib/codec/fee/tx.js +1 -1
  135. package/lib/codec/headersync/genesis.d.ts +1 -1
  136. package/lib/codec/headersync/genesis.js +1 -1
  137. package/lib/codec/headersync/query.d.ts +1 -1
  138. package/lib/codec/headersync/query.js +1 -1
  139. package/lib/codec/index.d.ts +53 -22
  140. package/lib/codec/index.js +520 -384
  141. package/lib/codec/inflation/genesis.d.ts +1 -1
  142. package/lib/codec/inflation/genesis.js +1 -1
  143. package/lib/codec/inflation/query.d.ts +1 -1
  144. package/lib/codec/inflation/query.js +1 -1
  145. package/lib/codec/insurance/genesis.d.ts +1 -1
  146. package/lib/codec/insurance/genesis.js +1 -1
  147. package/lib/codec/leverage/genesis.d.ts +1 -1
  148. package/lib/codec/leverage/genesis.js +1 -1
  149. package/lib/codec/leverage/query.d.ts +1 -1
  150. package/lib/codec/leverage/query.js +1 -1
  151. package/lib/codec/liquidation/genesis.d.ts +1 -1
  152. package/lib/codec/liquidation/genesis.js +1 -1
  153. package/lib/codec/liquidation/query.d.ts +1 -1
  154. package/lib/codec/liquidation/query.js +1 -1
  155. package/lib/codec/liquidation/quote_changes.d.ts +1 -1
  156. package/lib/codec/liquidation/quote_changes.js +1 -1
  157. package/lib/codec/liquiditypool/event.d.ts +2 -2
  158. package/lib/codec/liquiditypool/event.js +2 -2
  159. package/lib/codec/liquiditypool/genesis.d.ts +2 -2
  160. package/lib/codec/liquiditypool/genesis.js +2 -2
  161. package/lib/codec/liquiditypool/proposal.d.ts +1 -1
  162. package/lib/codec/liquiditypool/proposal.js +1 -1
  163. package/lib/codec/liquiditypool/query.d.ts +2 -2
  164. package/lib/codec/liquiditypool/query.js +2 -2
  165. package/lib/codec/liquiditypool/tx.d.ts +1 -1
  166. package/lib/codec/liquiditypool/tx.js +1 -1
  167. package/lib/codec/lockproxy/genesis.d.ts +1 -1
  168. package/lib/codec/lockproxy/genesis.js +1 -1
  169. package/lib/codec/lockproxy/query.d.ts +1 -1
  170. package/lib/codec/lockproxy/query.js +1 -1
  171. package/lib/codec/market/event.d.ts +1 -1
  172. package/lib/codec/market/event.js +1 -1
  173. package/lib/codec/market/genesis.d.ts +2 -1
  174. package/lib/codec/market/genesis.js +20 -2
  175. package/lib/codec/market/proposal.d.ts +1 -1
  176. package/lib/codec/market/proposal.js +1 -1
  177. package/lib/codec/market/query.d.ts +1 -1
  178. package/lib/codec/market/query.js +1 -1
  179. package/lib/codec/market/tx.d.ts +1 -1
  180. package/lib/codec/market/tx.js +1 -1
  181. package/lib/codec/marketstats/genesis.d.ts +1 -1
  182. package/lib/codec/marketstats/genesis.js +1 -1
  183. package/lib/codec/marketstats/query.d.ts +2 -2
  184. package/lib/codec/marketstats/query.js +2 -2
  185. package/lib/codec/misc/message.d.ts +1 -1
  186. package/lib/codec/misc/message.js +1 -1
  187. package/lib/codec/misc/query.d.ts +3 -3
  188. package/lib/codec/misc/query.js +3 -3
  189. package/lib/codec/misc/trade.d.ts +1 -0
  190. package/lib/codec/misc/trade.js +17 -0
  191. package/lib/codec/misc/transaction.d.ts +1 -1
  192. package/lib/codec/misc/transaction.js +1 -1
  193. package/lib/codec/oracle/event.d.ts +1 -1
  194. package/lib/codec/oracle/event.js +1 -1
  195. package/lib/codec/oracle/genesis.d.ts +1 -1
  196. package/lib/codec/oracle/genesis.js +1 -1
  197. package/lib/codec/oracle/proposal.d.ts +1 -1
  198. package/lib/codec/oracle/proposal.js +1 -1
  199. package/lib/codec/oracle/query.d.ts +2 -2
  200. package/lib/codec/oracle/query.js +2 -2
  201. package/lib/codec/order/event.d.ts +1 -1
  202. package/lib/codec/order/event.js +1 -1
  203. package/lib/codec/order/genesis.d.ts +1 -1
  204. package/lib/codec/order/genesis.js +1 -1
  205. package/lib/codec/order/query.d.ts +1 -1
  206. package/lib/codec/order/query.js +1 -1
  207. package/lib/codec/position/event.d.ts +1 -1
  208. package/lib/codec/position/event.js +1 -1
  209. package/lib/codec/position/genesis.d.ts +1 -1
  210. package/lib/codec/position/genesis.js +1 -1
  211. package/lib/codec/position/query.d.ts +1 -1
  212. package/lib/codec/position/query.js +1 -1
  213. package/lib/codec/pricing/event.d.ts +11 -1
  214. package/lib/codec/pricing/event.js +52 -2
  215. package/lib/codec/pricing/genesis.d.ts +2 -1
  216. package/lib/codec/pricing/genesis.js +20 -5
  217. package/lib/codec/pricing/pricing.d.ts +13 -0
  218. package/lib/codec/pricing/pricing.js +83 -1
  219. package/lib/codec/pricing/query.d.ts +1 -1
  220. package/lib/codec/pricing/query.js +1 -1
  221. package/lib/codec/profile/event.d.ts +1 -1
  222. package/lib/codec/profile/event.js +1 -1
  223. package/lib/codec/profile/genesis.d.ts +1 -1
  224. package/lib/codec/profile/genesis.js +1 -1
  225. package/lib/codec/profile/query.d.ts +1 -1
  226. package/lib/codec/profile/query.js +1 -1
  227. package/lib/codec/subaccount/genesis.d.ts +1 -1
  228. package/lib/codec/subaccount/genesis.js +1 -1
  229. package/lib/codec/subaccount/query.d.ts +1 -1
  230. package/lib/codec/subaccount/query.js +1 -1
  231. package/lib/codec/tendermint/abci/types.d.ts +4 -4
  232. package/lib/codec/tendermint/abci/types.js +4 -4
  233. package/lib/codec/tendermint/types/block.d.ts +2 -2
  234. package/lib/codec/tendermint/types/block.js +2 -2
  235. package/lib/codec/tendermint/types/evidence.d.ts +2 -2
  236. package/lib/codec/tendermint/types/evidence.js +2 -2
  237. package/lib/codec/tendermint/types/types.d.ts +3 -3
  238. package/lib/codec/tendermint/types/types.js +3 -3
  239. package/lib/codec/tendermint/types/validator.d.ts +1 -1
  240. package/lib/codec/tendermint/types/validator.js +1 -1
  241. package/lib/constant/network.d.ts +3 -0
  242. package/lib/constant/network.js +12 -0
  243. package/lib/modules/admin.d.ts +53 -1
  244. package/lib/modules/admin.js +175 -43
  245. package/lib/modules/cdp.d.ts +62 -12
  246. package/lib/modules/cdp.js +149 -20
  247. package/lib/modules/fee.d.ts +2 -2
  248. package/lib/modules/fee.js +4 -5
  249. package/lib/provider/amino/types/admin.js +48 -7
  250. package/lib/provider/amino/types/cdp.js +72 -32
  251. package/lib/provider/sdk/SDKProvider.d.ts +2 -1
  252. package/lib/util/tx.d.ts +42 -14
  253. package/lib/websocket/channel.js +44 -0
  254. package/lib/websocket/models.d.ts +116 -0
  255. package/lib/websocket/types.d.ts +58 -3
  256. package/lib/websocket/types.js +22 -0
  257. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { MintData } from "../inflation/inflation";
3
+ import { MintData } from "./inflation";
4
4
  export declare const protobufPackage = "Switcheo.carbon.inflation";
5
5
  /** GenesisState defines the inflation 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 inflation_1 = require("../inflation/inflation");
10
+ const inflation_1 = require("./inflation");
11
11
  exports.protobufPackage = "Switcheo.carbon.inflation";
12
12
  const baseGenesisState = { inflationEnabled: false };
13
13
  exports.GenesisState = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { MintData } from "../inflation/inflation";
3
+ import { MintData } from "./inflation";
4
4
  export declare const protobufPackage = "Switcheo.carbon.inflation";
5
5
  export interface QueryMintDataRequest {
6
6
  }
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryMintDataResponse = exports.QueryMintDataR
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const inflation_1 = require("../inflation/inflation");
10
+ const inflation_1 = require("./inflation");
11
11
  exports.protobufPackage = "Switcheo.carbon.inflation";
12
12
  const baseQueryMintDataRequest = {};
13
13
  exports.QueryMintDataRequest = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { FundByMarket } from "../insurance/fund";
3
+ import { FundByMarket } from "./fund";
4
4
  export declare const protobufPackage = "Switcheo.carbon.insurance";
5
5
  /** GenesisState defines the insurance 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 fund_1 = require("../insurance/fund");
10
+ const fund_1 = require("./fund");
11
11
  exports.protobufPackage = "Switcheo.carbon.insurance";
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 { MarketLeverageRecord } from "../leverage/leverage";
3
+ import { MarketLeverageRecord } from "./leverage";
4
4
  export declare const protobufPackage = "Switcheo.carbon.leverage";
5
5
  /** GenesisState defines the leverage 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 leverage_1 = require("../leverage/leverage");
10
+ const leverage_1 = require("./leverage");
11
11
  exports.protobufPackage = "Switcheo.carbon.leverage";
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 { MarketLeverage } from "../leverage/leverage";
3
+ import { MarketLeverage } from "./leverage";
4
4
  export declare const protobufPackage = "Switcheo.carbon.leverage";
5
5
  /** this line is used by starport scaffolding # 3 */
6
6
  export interface QueryGetLeverageRequest {
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryAllLeverageResponse = exports.QueryAllLev
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const leverage_1 = require("../leverage/leverage");
10
+ const leverage_1 = require("./leverage");
11
11
  exports.protobufPackage = "Switcheo.carbon.leverage";
12
12
  const baseQueryGetLeverageRequest = { address: "", market: "" };
13
13
  exports.QueryGetLeverageRequest = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { OutstandingPositions } from "../liquidation/outstanding_position";
3
+ import { OutstandingPositions } from "./outstanding_position";
4
4
  export declare const protobufPackage = "Switcheo.carbon.liquidation";
5
5
  /** GenesisState defines the liquidation module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.GenesisState_OutstandingPositionsEntry = exports.GenesisState = exports.
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const outstanding_position_1 = require("../liquidation/outstanding_position");
10
+ const outstanding_position_1 = require("./outstanding_position");
11
11
  exports.protobufPackage = "Switcheo.carbon.liquidation";
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 { Params } from "../liquidation/liquidation";
3
+ import { Params } from "./liquidation";
4
4
  import { AccountTrade } from "../misc/trade";
5
5
  export declare const protobufPackage = "Switcheo.carbon.liquidation";
6
6
  /** this line is used by starport scaffolding # 3 */
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsReque
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const liquidation_1 = require("../liquidation/liquidation");
10
+ const liquidation_1 = require("./liquidation");
11
11
  const trade_1 = require("../misc/trade");
12
12
  exports.protobufPackage = "Switcheo.carbon.liquidation";
13
13
  const baseQueryAllLiquidationRequest = {
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { Order } from "../order/order";
4
- import { OutstandingPosition } from "../liquidation/outstanding_position";
4
+ import { OutstandingPosition } from "./outstanding_position";
5
5
  export declare const protobufPackage = "Switcheo.carbon.liquidation";
6
6
  export interface QuoteChanges {
7
7
  create: Order[];
@@ -8,7 +8,7 @@ exports.QuoteChanges = exports.protobufPackage = void 0;
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const order_1 = require("../order/order");
11
- const outstanding_position_1 = require("../liquidation/outstanding_position");
11
+ const outstanding_position_1 = require("./outstanding_position");
12
12
  exports.protobufPackage = "Switcheo.carbon.liquidation";
13
13
  const baseQuoteChanges = { remove: "" };
14
14
  exports.QuoteChanges = {
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Pool } from "../liquiditypool/liquiditypool";
4
- import { CommitmentCurve, Commitment } from "../liquiditypool/reward";
3
+ import { Pool } from "./liquiditypool";
4
+ import { CommitmentCurve, Commitment } from "./reward";
5
5
  export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
6
6
  export interface PoolEvent {
7
7
  creator: string;
@@ -7,8 +7,8 @@ exports.CommitmentEvent = exports.CommitmentCurveEvent = exports.RewardsWeightCh
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const liquiditypool_1 = require("../liquiditypool/liquiditypool");
11
- const reward_1 = require("../liquiditypool/reward");
10
+ const liquiditypool_1 = require("./liquiditypool");
11
+ const reward_1 = require("./reward");
12
12
  exports.protobufPackage = "Switcheo.carbon.liquiditypool";
13
13
  const basePoolEvent = {
14
14
  creator: "",
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { RewardCurve, CommitmentCurve, RewardWeights, AllocatedRewards, CommitmentRecord, TotalCommitmentRecord, CommitmentExpiriesRecord, RewardHistoryRecord, LastClaimRecord } from "../liquiditypool/reward";
4
- import { Params, Pool } from "../liquiditypool/liquiditypool";
3
+ import { RewardCurve, CommitmentCurve, RewardWeights, AllocatedRewards, CommitmentRecord, TotalCommitmentRecord, CommitmentExpiriesRecord, RewardHistoryRecord, LastClaimRecord } from "./reward";
4
+ import { Params, Pool } from "./liquiditypool";
5
5
  export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
6
6
  /** GenesisState defines the liquiditypool module's genesis state. */
7
7
  export interface GenesisState {
@@ -7,8 +7,8 @@ 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 reward_1 = require("../liquiditypool/reward");
11
- const liquiditypool_1 = require("../liquiditypool/liquiditypool");
10
+ const reward_1 = require("./reward");
11
+ const liquiditypool_1 = require("./liquiditypool");
12
12
  exports.protobufPackage = "Switcheo.carbon.liquiditypool";
13
13
  const baseGenesisState = {};
14
14
  exports.GenesisState = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { LinkPoolParams, UnlinkPoolParams, SetRewardCurveParams, SetCommitmentCurveParams, SetRewardsWeightsParams, UpdatePoolParams } from "../liquiditypool/tx";
3
+ import { LinkPoolParams, UnlinkPoolParams, SetRewardCurveParams, SetCommitmentCurveParams, SetRewardsWeightsParams, UpdatePoolParams } from "./tx";
4
4
  export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
5
5
  export interface LinkPoolProposal {
6
6
  title: string;
@@ -7,7 +7,7 @@ exports.UpdatePoolProposal = exports.SetRewardsWeightsProposal = exports.SetComm
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const tx_1 = require("../liquiditypool/tx");
10
+ const tx_1 = require("./tx");
11
11
  exports.protobufPackage = "Switcheo.carbon.liquiditypool";
12
12
  const baseLinkPoolProposal = { title: "", description: "" };
13
13
  exports.LinkPoolProposal = {
@@ -1,8 +1,8 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
4
- import { Pool, Params } from "../liquiditypool/liquiditypool";
5
- import { CommitmentResponse, CommitmentCurve, RewardCurve, RewardHistoryRecord, Commitment, TotalCommitmentRecord } from "../liquiditypool/reward";
4
+ import { Pool, Params } from "./liquiditypool";
5
+ import { CommitmentResponse, CommitmentCurve, RewardCurve, RewardHistoryRecord, Commitment, TotalCommitmentRecord } from "./reward";
6
6
  import { DecCoin } from "../cosmos/base/v1beta1/coin";
7
7
  export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
8
8
  /** this line is used by starport scaffolding # 3 */
@@ -8,8 +8,8 @@ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsReque
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
11
- const liquiditypool_1 = require("../liquiditypool/liquiditypool");
12
- const reward_1 = require("../liquiditypool/reward");
11
+ const liquiditypool_1 = require("./liquiditypool");
12
+ const reward_1 = require("./reward");
13
13
  const timestamp_1 = require("../google/protobuf/timestamp");
14
14
  const coin_1 = require("../cosmos/base/v1beta1/coin");
15
15
  exports.protobufPackage = "Switcheo.carbon.liquiditypool";
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { RewardWeight } from "../liquiditypool/reward";
3
+ import { RewardWeight } from "./reward";
4
4
  export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
5
5
  /** this line is used by starport scaffolding # proto/tx/message */
6
6
  export interface MsgCreatePool {
@@ -8,7 +8,7 @@ exports.MsgClientImpl = exports.MsgUpdatePoolResponse = exports.UpdatePoolParams
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const timestamp_1 = require("../google/protobuf/timestamp");
11
- const reward_1 = require("../liquiditypool/reward");
11
+ const reward_1 = require("./reward");
12
12
  exports.protobufPackage = "Switcheo.carbon.liquiditypool";
13
13
  const baseMsgCreatePool = {
14
14
  creator: "",
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { WrapperMapping } from "../lockproxy/lockproxy";
3
+ import { WrapperMapping } from "./lockproxy";
4
4
  export declare const protobufPackage = "Switcheo.carbon.lockproxy";
5
5
  /** GenesisState defines the lockproxy module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.GenesisState_OperatorsEntry = exports.GenesisState_RegistriesEntry = exp
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const lockproxy_1 = require("../lockproxy/lockproxy");
10
+ const lockproxy_1 = require("./lockproxy");
11
11
  exports.protobufPackage = "Switcheo.carbon.lockproxy";
12
12
  const baseGenesisState = { nonce: "" };
13
13
  exports.GenesisState = {
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
4
- import { WrapperMapping } from "../lockproxy/lockproxy";
4
+ import { WrapperMapping } from "./lockproxy";
5
5
  export declare const protobufPackage = "Switcheo.carbon.lockproxy";
6
6
  /** this line is used by starport scaffolding # 3 */
7
7
  export interface QueryGetProxyRequest {
@@ -8,7 +8,7 @@ exports.QueryClientImpl = exports.QueryListWrapperMappingResponse = exports.Quer
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
11
- const lockproxy_1 = require("../lockproxy/lockproxy");
11
+ const lockproxy_1 = require("./lockproxy");
12
12
  exports.protobufPackage = "Switcheo.carbon.lockproxy";
13
13
  const baseQueryGetProxyRequest = { operatorAddress: "" };
14
14
  exports.QueryGetProxyRequest = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Market } from "../market/market";
3
+ import { Market } from "./market";
4
4
  export declare const protobufPackage = "Switcheo.carbon.market";
5
5
  export interface MarketEvent {
6
6
  market?: Market;
@@ -7,7 +7,7 @@ exports.MarketEvent = 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 market_1 = require("../market/market");
10
+ const market_1 = require("./market");
11
11
  exports.protobufPackage = "Switcheo.carbon.market";
12
12
  const baseMarketEvent = { type: "" };
13
13
  exports.MarketEvent = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Params, ControlledParams, Market } from "../market/market";
3
+ import { Params, ControlledParams, Market } from "./market";
4
4
  export declare const protobufPackage = "Switcheo.carbon.market";
5
5
  /** GenesisState defines the market module's genesis state. */
6
6
  export interface GenesisState {
@@ -12,6 +12,7 @@ export interface GenesisState {
12
12
  /** params defines all the paramaters of the module. */
13
13
  params?: Params;
14
14
  controlledParams?: ControlledParams;
15
+ marketNameSequence: Long;
15
16
  }
16
17
  export declare const GenesisState: {
17
18
  encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
@@ -7,9 +7,9 @@ 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 market_1 = require("../market/market");
10
+ const market_1 = require("./market");
11
11
  exports.protobufPackage = "Switcheo.carbon.market";
12
- const baseGenesisState = {};
12
+ const baseGenesisState = { marketNameSequence: long_1.default.ZERO };
13
13
  exports.GenesisState = {
14
14
  encode(message, writer = minimal_1.default.Writer.create()) {
15
15
  for (const v of message.markets) {
@@ -21,6 +21,9 @@ exports.GenesisState = {
21
21
  if (message.controlledParams !== undefined) {
22
22
  market_1.ControlledParams.encode(message.controlledParams, writer.uint32(26).fork()).ldelim();
23
23
  }
24
+ if (!message.marketNameSequence.isZero()) {
25
+ writer.uint32(32).int64(message.marketNameSequence);
26
+ }
24
27
  return writer;
25
28
  },
26
29
  decode(input, length) {
@@ -40,6 +43,9 @@ exports.GenesisState = {
40
43
  case 3:
41
44
  message.controlledParams = market_1.ControlledParams.decode(reader, reader.uint32());
42
45
  break;
46
+ case 4:
47
+ message.marketNameSequence = reader.int64();
48
+ break;
43
49
  default:
44
50
  reader.skipType(tag & 7);
45
51
  break;
@@ -59,6 +65,11 @@ exports.GenesisState = {
59
65
  object.controlledParams !== undefined && object.controlledParams !== null
60
66
  ? market_1.ControlledParams.fromJSON(object.controlledParams)
61
67
  : undefined;
68
+ message.marketNameSequence =
69
+ object.marketNameSequence !== undefined &&
70
+ object.marketNameSequence !== null
71
+ ? long_1.default.fromString(object.marketNameSequence)
72
+ : long_1.default.ZERO;
62
73
  return message;
63
74
  },
64
75
  toJSON(message) {
@@ -75,6 +86,8 @@ exports.GenesisState = {
75
86
  (obj.controlledParams = message.controlledParams
76
87
  ? market_1.ControlledParams.toJSON(message.controlledParams)
77
88
  : undefined);
89
+ message.marketNameSequence !== undefined &&
90
+ (obj.marketNameSequence = (message.marketNameSequence || long_1.default.ZERO).toString());
78
91
  return obj;
79
92
  },
80
93
  fromPartial(object) {
@@ -89,6 +102,11 @@ exports.GenesisState = {
89
102
  object.controlledParams !== undefined && object.controlledParams !== null
90
103
  ? market_1.ControlledParams.fromPartial(object.controlledParams)
91
104
  : undefined;
105
+ message.marketNameSequence =
106
+ object.marketNameSequence !== undefined &&
107
+ object.marketNameSequence !== null
108
+ ? long_1.default.fromValue(object.marketNameSequence)
109
+ : long_1.default.ZERO;
92
110
  return message;
93
111
  },
94
112
  };
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Market, MarketParams } from "../market/market";
3
+ import { Market, MarketParams } from "./market";
4
4
  import { Duration } from "../google/protobuf/duration";
5
5
  export declare const protobufPackage = "Switcheo.carbon.market";
6
6
  export interface CreateMarketProposal {
@@ -7,7 +7,7 @@ exports.UpdatePerpetualsFundingIntervalProposal = exports.UpdateMarketProposal =
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const market_1 = require("../market/market");
10
+ const market_1 = require("./market");
11
11
  const duration_1 = require("../google/protobuf/duration");
12
12
  exports.protobufPackage = "Switcheo.carbon.market";
13
13
  const baseCreateMarketProposal = { title: "", description: "" };
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Market, Params } from "../market/market";
3
+ import { Market, Params } from "./market";
4
4
  import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
5
5
  export declare const protobufPackage = "Switcheo.carbon.market";
6
6
  /** this line is used by starport scaffolding # 3 */
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsReque
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const market_1 = require("../market/market");
10
+ const market_1 = require("./market");
11
11
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "Switcheo.carbon.market";
13
13
  const baseQueryGetMarketRequest = { name: "" };
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { MarketParams } from "../market/market";
3
+ import { MarketParams } from "./market";
4
4
  import { Duration } from "../google/protobuf/duration";
5
5
  export declare const protobufPackage = "Switcheo.carbon.market";
6
6
  /** this line is used by starport scaffolding # proto/tx/message */
@@ -7,7 +7,7 @@ exports.MsgClientImpl = exports.MsgUpdatePerpetualsFundingIntervalResponse = exp
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const market_1 = require("../market/market");
10
+ const market_1 = require("./market");
11
11
  const duration_1 = require("../google/protobuf/duration");
12
12
  const timestamp_1 = require("../google/protobuf/timestamp");
13
13
  exports.protobufPackage = "Switcheo.carbon.market";
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Params } from "../marketstats/params";
3
+ import { Params } from "./params";
4
4
  export declare const protobufPackage = "Switcheo.carbon.marketstats";
5
5
  /** GenesisState defines the marketstats 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 params_1 = require("../marketstats/params");
10
+ const params_1 = require("./params");
11
11
  exports.protobufPackage = "Switcheo.carbon.marketstats";
12
12
  const baseGenesisState = {};
13
13
  exports.GenesisState = {
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Params } from "../marketstats/params";
4
- import { MarketStats } from "../marketstats/marketstats";
3
+ import { Params } from "./params";
4
+ import { MarketStats } from "./marketstats";
5
5
  export declare const protobufPackage = "Switcheo.carbon.marketstats";
6
6
  /** QueryParamsRequest is request type for the Query/Params RPC method. */
7
7
  export interface QueryParamsRequest {
@@ -7,8 +7,8 @@ exports.QueryClientImpl = exports.QueryMarketStatsResponse = exports.QueryMarket
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const params_1 = require("../marketstats/params");
11
- const marketstats_1 = require("../marketstats/marketstats");
10
+ const params_1 = require("./params");
11
+ const marketstats_1 = require("./marketstats");
12
12
  exports.protobufPackage = "Switcheo.carbon.marketstats";
13
13
  const baseQueryParamsRequest = {};
14
14
  exports.QueryParamsRequest = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { MessageType } from "../misc/message_type";
3
+ import { MessageType } from "./message_type";
4
4
  export declare const protobufPackage = "Switcheo.carbon.misc";
5
5
  export interface Message {
6
6
  hash: string;
@@ -7,7 +7,7 @@ exports.Message = 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 message_type_1 = require("../misc/message_type");
10
+ const message_type_1 = require("./message_type");
11
11
  const timestamp_1 = require("../google/protobuf/timestamp");
12
12
  exports.protobufPackage = "Switcheo.carbon.misc";
13
13
  const baseMessage = { hash: "", message: "" };
@@ -1,10 +1,10 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { PageRequest, PageResponse } from "../query/pagination";
4
- import { Transaction } from "../misc/transaction";
4
+ import { Transaction } from "./transaction";
5
5
  import { Order } from "../order/order";
6
- import { MessageType } from "../misc/message_type";
7
- import { Block } from "../misc/block";
6
+ import { MessageType } from "./message_type";
7
+ import { Block } from "./block";
8
8
  export declare const protobufPackage = "Switcheo.carbon.misc";
9
9
  export interface QuerySearchRequest {
10
10
  keyword: string;
@@ -8,10 +8,10 @@ exports.QueryClientImpl = exports.QueryModuleAddressResponse = exports.QueryModu
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const pagination_1 = require("../query/pagination");
11
- const transaction_1 = require("../misc/transaction");
11
+ const transaction_1 = require("./transaction");
12
12
  const order_1 = require("../order/order");
13
- const message_type_1 = require("../misc/message_type");
14
- const block_1 = require("../misc/block");
13
+ const message_type_1 = require("./message_type");
14
+ const block_1 = require("./block");
15
15
  exports.protobufPackage = "Switcheo.carbon.misc";
16
16
  const baseQuerySearchRequest = { keyword: "", limit: long_1.default.UZERO };
17
17
  exports.QuerySearchRequest = {
@@ -12,6 +12,7 @@ export interface AccountTrade {
12
12
  address: string;
13
13
  blockHeight: Long;
14
14
  blockCreatedAt?: Date;
15
+ tradeId: Long;
15
16
  }
16
17
  export declare const AccountTrade: {
17
18
  encode(message: AccountTrade, writer?: _m0.Writer): _m0.Writer;