carbon-js-sdk 0.2.16-dev.4 → 0.2.17

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 (296) hide show
  1. package/lib/CarbonSDK.d.ts +1 -13
  2. package/lib/CarbonSDK.js +2 -31
  3. package/lib/clients/CarbonQueryClient.js +2 -2
  4. package/lib/clients/ETHClient.d.ts +1 -1
  5. package/lib/clients/ETHClient.js +15 -15
  6. package/lib/clients/HydrogenClient.js +1 -1
  7. package/lib/clients/N3Client.js +2 -3
  8. package/lib/clients/NEOClient.d.ts +1 -1
  9. package/lib/clients/NEOClient.js +7 -7
  10. package/lib/clients/TokenClient.d.ts +0 -5
  11. package/lib/clients/TokenClient.js +10 -38
  12. package/lib/clients/ZILClient.d.ts +1 -1
  13. package/lib/clients/ZILClient.js +16 -16
  14. package/lib/codec/book/genesis.d.ts +1 -1
  15. package/lib/codec/book/genesis.js +1 -1
  16. package/lib/codec/book/query.d.ts +1 -1
  17. package/lib/codec/book/query.js +1 -1
  18. package/lib/codec/broker/genesis.d.ts +1 -1
  19. package/lib/codec/broker/genesis.js +1 -1
  20. package/lib/codec/broker/query.d.ts +3 -3
  21. package/lib/codec/broker/query.js +3 -3
  22. package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
  23. package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
  24. package/lib/codec/btcx/query.d.ts +1 -1
  25. package/lib/codec/btcx/query.js +1 -1
  26. package/lib/codec/ccm/genesis.d.ts +1 -1
  27. package/lib/codec/ccm/genesis.js +1 -1
  28. package/lib/codec/cdp/event.d.ts +22 -389
  29. package/lib/codec/cdp/event.js +83 -2494
  30. package/lib/codec/cdp/genesis.d.ts +4 -97
  31. package/lib/codec/cdp/genesis.js +23 -648
  32. package/lib/codec/cdp/query.d.ts +89 -439
  33. package/lib/codec/cdp/query.js +173 -1991
  34. package/lib/codec/cdp/tx.d.ts +96 -760
  35. package/lib/codec/cdp/tx.js +235 -3645
  36. package/lib/codec/coin/event.d.ts +1 -1
  37. package/lib/codec/coin/event.js +1 -1
  38. package/lib/codec/coin/genesis.d.ts +2 -2
  39. package/lib/codec/coin/genesis.js +2 -2
  40. package/lib/codec/coin/proposal.d.ts +1 -1
  41. package/lib/codec/coin/proposal.js +1 -1
  42. package/lib/codec/coin/query.d.ts +2 -2
  43. package/lib/codec/coin/query.js +2 -2
  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/genesis.d.ts +1 -1
  51. package/lib/codec/cosmos/authz/v1beta1/genesis.js +1 -1
  52. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -2
  53. package/lib/codec/cosmos/authz/v1beta1/query.js +2 -2
  54. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
  55. package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
  56. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
  57. package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
  58. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
  59. package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
  60. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
  61. package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
  62. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -3
  63. package/lib/codec/cosmos/bank/v1beta1/query.js +3 -3
  64. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
  65. package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
  66. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
  67. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
  68. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
  69. package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
  70. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
  71. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
  72. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
  73. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
  74. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
  75. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
  76. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
  77. package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
  78. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
  79. package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
  80. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
  81. package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
  82. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  83. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
  84. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
  85. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
  86. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
  87. package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -2
  88. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
  89. package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
  90. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
  91. package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
  92. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
  93. package/lib/codec/cosmos/gov/v1beta1/query.js +4 -4
  94. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
  95. package/lib/codec/cosmos/gov/v1beta1/tx.js +4 -4
  96. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  97. package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
  98. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
  99. package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
  100. package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
  101. package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
  102. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
  103. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
  104. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
  105. package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
  106. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
  107. package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
  108. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  109. package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
  110. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
  111. package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
  112. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
  113. package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
  114. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
  115. package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
  116. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -1
  117. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -1
  118. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -3
  119. package/lib/codec/cosmos/tx/v1beta1/service.js +3 -3
  120. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
  121. package/lib/codec/cosmos/tx/v1beta1/tx.js +5 -5
  122. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
  123. package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
  124. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
  125. package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
  126. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
  127. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
  128. package/lib/codec/fee/genesis.d.ts +1 -1
  129. package/lib/codec/fee/genesis.js +1 -1
  130. package/lib/codec/fee/proposal.d.ts +1 -1
  131. package/lib/codec/fee/proposal.js +1 -1
  132. package/lib/codec/fee/query.d.ts +1 -1
  133. package/lib/codec/fee/query.js +1 -1
  134. package/lib/codec/fee/tx.d.ts +1 -1
  135. package/lib/codec/fee/tx.js +1 -1
  136. package/lib/codec/headersync/genesis.d.ts +1 -1
  137. package/lib/codec/headersync/genesis.js +1 -1
  138. package/lib/codec/headersync/query.d.ts +1 -1
  139. package/lib/codec/headersync/query.js +1 -1
  140. package/lib/codec/index.d.ts +18 -89
  141. package/lib/codec/index.js +180 -463
  142. package/lib/codec/inflation/genesis.d.ts +1 -1
  143. package/lib/codec/inflation/genesis.js +1 -1
  144. package/lib/codec/inflation/query.d.ts +1 -1
  145. package/lib/codec/inflation/query.js +1 -1
  146. package/lib/codec/insurance/genesis.d.ts +1 -1
  147. package/lib/codec/insurance/genesis.js +1 -1
  148. package/lib/codec/leverage/genesis.d.ts +1 -1
  149. package/lib/codec/leverage/genesis.js +1 -1
  150. package/lib/codec/leverage/query.d.ts +1 -1
  151. package/lib/codec/leverage/query.js +1 -1
  152. package/lib/codec/liquidation/genesis.d.ts +1 -1
  153. package/lib/codec/liquidation/genesis.js +1 -1
  154. package/lib/codec/liquidation/query.d.ts +1 -1
  155. package/lib/codec/liquidation/query.js +1 -1
  156. package/lib/codec/liquidation/quote_changes.d.ts +1 -1
  157. package/lib/codec/liquidation/quote_changes.js +1 -1
  158. package/lib/codec/liquiditypool/event.d.ts +2 -2
  159. package/lib/codec/liquiditypool/event.js +2 -2
  160. package/lib/codec/liquiditypool/genesis.d.ts +2 -2
  161. package/lib/codec/liquiditypool/genesis.js +2 -2
  162. package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -3
  163. package/lib/codec/liquiditypool/liquiditypool.js +1 -44
  164. package/lib/codec/liquiditypool/proposal.d.ts +1 -1
  165. package/lib/codec/liquiditypool/proposal.js +1 -1
  166. package/lib/codec/liquiditypool/query.d.ts +2 -39
  167. package/lib/codec/liquiditypool/query.js +3 -195
  168. package/lib/codec/liquiditypool/tx.d.ts +1 -3
  169. package/lib/codec/liquiditypool/tx.js +1 -35
  170. package/lib/codec/lockproxy/genesis.d.ts +1 -1
  171. package/lib/codec/lockproxy/genesis.js +1 -1
  172. package/lib/codec/lockproxy/query.d.ts +1 -1
  173. package/lib/codec/lockproxy/query.js +1 -1
  174. package/lib/codec/market/event.d.ts +1 -1
  175. package/lib/codec/market/event.js +1 -1
  176. package/lib/codec/market/genesis.d.ts +1 -1
  177. package/lib/codec/market/genesis.js +1 -1
  178. package/lib/codec/market/proposal.d.ts +1 -1
  179. package/lib/codec/market/proposal.js +1 -1
  180. package/lib/codec/market/query.d.ts +1 -1
  181. package/lib/codec/market/query.js +1 -1
  182. package/lib/codec/market/tx.d.ts +1 -1
  183. package/lib/codec/market/tx.js +1 -1
  184. package/lib/codec/marketstats/genesis.d.ts +1 -1
  185. package/lib/codec/marketstats/genesis.js +1 -1
  186. package/lib/codec/marketstats/query.d.ts +2 -2
  187. package/lib/codec/marketstats/query.js +2 -2
  188. package/lib/codec/misc/message.d.ts +1 -1
  189. package/lib/codec/misc/message.js +1 -1
  190. package/lib/codec/misc/query.d.ts +3 -3
  191. package/lib/codec/misc/query.js +3 -3
  192. package/lib/codec/misc/transaction.d.ts +1 -1
  193. package/lib/codec/misc/transaction.js +1 -1
  194. package/lib/codec/oracle/event.d.ts +1 -1
  195. package/lib/codec/oracle/event.js +1 -1
  196. package/lib/codec/oracle/genesis.d.ts +1 -4
  197. package/lib/codec/oracle/genesis.js +3 -34
  198. package/lib/codec/oracle/proposal.d.ts +1 -1
  199. package/lib/codec/oracle/proposal.js +1 -1
  200. package/lib/codec/oracle/query.d.ts +2 -2
  201. package/lib/codec/oracle/query.js +2 -2
  202. package/lib/codec/order/event.d.ts +1 -1
  203. package/lib/codec/order/event.js +1 -1
  204. package/lib/codec/order/genesis.d.ts +1 -1
  205. package/lib/codec/order/genesis.js +1 -1
  206. package/lib/codec/order/query.d.ts +1 -1
  207. package/lib/codec/order/query.js +1 -1
  208. package/lib/codec/position/event.d.ts +1 -1
  209. package/lib/codec/position/event.js +1 -1
  210. package/lib/codec/position/genesis.d.ts +1 -1
  211. package/lib/codec/position/genesis.js +1 -1
  212. package/lib/codec/position/query.d.ts +1 -1
  213. package/lib/codec/position/query.js +1 -1
  214. package/lib/codec/pricing/event.d.ts +1 -56
  215. package/lib/codec/pricing/event.js +2 -298
  216. package/lib/codec/pricing/genesis.d.ts +1 -2
  217. package/lib/codec/pricing/genesis.js +5 -20
  218. package/lib/codec/pricing/pricing.d.ts +0 -14
  219. package/lib/codec/pricing/pricing.js +1 -103
  220. package/lib/codec/pricing/query.d.ts +1 -68
  221. package/lib/codec/pricing/query.js +2 -321
  222. package/lib/codec/pricing/tx.d.ts +0 -96
  223. package/lib/codec/pricing/tx.js +1 -399
  224. package/lib/codec/profile/event.d.ts +1 -1
  225. package/lib/codec/profile/event.js +1 -1
  226. package/lib/codec/profile/genesis.d.ts +1 -1
  227. package/lib/codec/profile/genesis.js +1 -1
  228. package/lib/codec/profile/query.d.ts +1 -1
  229. package/lib/codec/profile/query.js +1 -1
  230. package/lib/codec/subaccount/genesis.d.ts +1 -1
  231. package/lib/codec/subaccount/genesis.js +1 -1
  232. package/lib/codec/subaccount/query.d.ts +1 -1
  233. package/lib/codec/subaccount/query.js +1 -1
  234. package/lib/codec/tendermint/abci/types.d.ts +4 -4
  235. package/lib/codec/tendermint/abci/types.js +4 -4
  236. package/lib/codec/tendermint/types/block.d.ts +2 -2
  237. package/lib/codec/tendermint/types/block.js +2 -2
  238. package/lib/codec/tendermint/types/evidence.d.ts +2 -2
  239. package/lib/codec/tendermint/types/evidence.js +2 -2
  240. package/lib/codec/tendermint/types/types.d.ts +3 -3
  241. package/lib/codec/tendermint/types/types.js +3 -3
  242. package/lib/codec/tendermint/types/validator.d.ts +1 -1
  243. package/lib/codec/tendermint/types/validator.js +1 -1
  244. package/lib/constant/generic.js +1 -1
  245. package/lib/constant/token.d.ts +0 -4
  246. package/lib/constant/token.js +1 -5
  247. package/lib/modules/admin.d.ts +7 -114
  248. package/lib/modules/admin.js +53 -275
  249. package/lib/modules/cdp.d.ts +13 -152
  250. package/lib/modules/cdp.js +20 -800
  251. package/lib/modules/gov.js +14 -14
  252. package/lib/modules/liquiditypool.d.ts +0 -3
  253. package/lib/modules/liquiditypool.js +1 -3
  254. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
  255. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  256. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  257. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
  258. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  259. package/lib/provider/amino/types/admin.js +26 -91
  260. package/lib/provider/amino/types/bank.js +1 -1
  261. package/lib/provider/amino/types/broker.js +1 -1
  262. package/lib/provider/amino/types/cdp.js +24 -135
  263. package/lib/provider/amino/types/coin.js +2 -2
  264. package/lib/provider/amino/types/gov.js +4 -4
  265. package/lib/provider/amino/types/ibc.js +1 -1
  266. package/lib/provider/amino/types/leverage.js +1 -1
  267. package/lib/provider/amino/types/liquidityPool.js +7 -9
  268. package/lib/provider/amino/types/market.js +1 -1
  269. package/lib/provider/amino/types/oracle.js +1 -1
  270. package/lib/provider/amino/types/order.js +4 -4
  271. package/lib/provider/amino/types/position.js +1 -1
  272. package/lib/provider/amino/types/profile.js +1 -1
  273. package/lib/provider/amino/types/staking.js +4 -4
  274. package/lib/provider/amino/types/subaccount.js +3 -3
  275. package/lib/provider/amino/utils.js +11 -11
  276. package/lib/provider/keplr/KeplrStore.js +1 -1
  277. package/lib/provider/ledger/ledger.js +2 -2
  278. package/lib/provider/metamask/MetaMask.js +1 -1
  279. package/lib/provider/o3/O3Wallet.js +2 -2
  280. package/lib/util/address.d.ts +0 -1
  281. package/lib/util/address.js +13 -21
  282. package/lib/util/api.js +4 -4
  283. package/lib/util/fetch.js +1 -1
  284. package/lib/util/generic.js +3 -3
  285. package/lib/util/number.d.ts +0 -1
  286. package/lib/util/number.js +6 -7
  287. package/lib/util/tx.d.ts +10 -74
  288. package/lib/wallet/CarbonSigner.js +2 -2
  289. package/lib/wallet/CarbonSigningClient.js +8 -8
  290. package/lib/wallet/CarbonWallet.js +7 -6
  291. package/lib/websocket/channel.js +21 -115
  292. package/lib/websocket/connector.js +3 -3
  293. package/lib/websocket/models.d.ts +0 -156
  294. package/lib/websocket/types.d.ts +3 -87
  295. package/lib/websocket/types.js +0 -31
  296. 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";
3
+ import { MintData } from "../inflation/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");
10
+ const inflation_1 = require("../inflation/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";
3
+ import { MintData } from "../inflation/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");
10
+ const inflation_1 = require("../inflation/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 "./fund";
3
+ import { FundByMarket } from "../insurance/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("./fund");
10
+ const fund_1 = require("../insurance/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";
3
+ import { MarketLeverageRecord } from "../leverage/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");
10
+ const leverage_1 = require("../leverage/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";
3
+ import { MarketLeverage } from "../leverage/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");
10
+ const leverage_1 = require("../leverage/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 "./outstanding_position";
3
+ import { OutstandingPositions } from "../liquidation/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("./outstanding_position");
10
+ const outstanding_position_1 = require("../liquidation/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";
3
+ import { Params } from "../liquidation/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");
10
+ const liquidation_1 = require("../liquidation/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 "./outstanding_position";
4
+ import { OutstandingPosition } from "../liquidation/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("./outstanding_position");
11
+ const outstanding_position_1 = require("../liquidation/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";
4
- import { CommitmentCurve, Commitment } from "./reward";
3
+ import { Pool } from "../liquiditypool/liquiditypool";
4
+ import { CommitmentCurve, Commitment } from "../liquiditypool/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");
11
- const reward_1 = require("./reward");
10
+ const liquiditypool_1 = require("../liquiditypool/liquiditypool");
11
+ const reward_1 = require("../liquiditypool/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 "./reward";
4
- import { Params, Pool } from "./liquiditypool";
3
+ import { RewardCurve, CommitmentCurve, RewardWeights, AllocatedRewards, CommitmentRecord, TotalCommitmentRecord, CommitmentExpiriesRecord, RewardHistoryRecord, LastClaimRecord } from "../liquiditypool/reward";
4
+ import { Params, Pool } from "../liquiditypool/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("./reward");
11
- const liquiditypool_1 = require("./liquiditypool");
10
+ const reward_1 = require("../liquiditypool/reward");
11
+ const liquiditypool_1 = require("../liquiditypool/liquiditypool");
12
12
  exports.protobufPackage = "Switcheo.carbon.liquiditypool";
13
13
  const baseGenesisState = {};
14
14
  exports.GenesisState = {
@@ -20,9 +20,6 @@ export interface Pool {
20
20
  numQuotes: Long;
21
21
  sharesAmount: string;
22
22
  market: string;
23
- ampBps: Long;
24
- vAmountA: string;
25
- vAmountB: string;
26
23
  }
27
24
  export interface Pools {
28
25
  pools: Pool[];
@@ -73,9 +73,6 @@ const basePool = {
73
73
  numQuotes: long_1.default.ZERO,
74
74
  sharesAmount: "",
75
75
  market: "",
76
- ampBps: long_1.default.UZERO,
77
- vAmountA: "",
78
- vAmountB: "",
79
76
  };
80
77
  exports.Pool = {
81
78
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -121,15 +118,6 @@ exports.Pool = {
121
118
  if (message.market !== "") {
122
119
  writer.uint32(114).string(message.market);
123
120
  }
124
- if (!message.ampBps.isZero()) {
125
- writer.uint32(120).uint64(message.ampBps);
126
- }
127
- if (message.vAmountA !== "") {
128
- writer.uint32(130).string(message.vAmountA);
129
- }
130
- if (message.vAmountB !== "") {
131
- writer.uint32(138).string(message.vAmountB);
132
- }
133
121
  return writer;
134
122
  },
135
123
  decode(input, length) {
@@ -181,15 +169,6 @@ exports.Pool = {
181
169
  case 14:
182
170
  message.market = reader.string();
183
171
  break;
184
- case 15:
185
- message.ampBps = reader.uint64();
186
- break;
187
- case 16:
188
- message.vAmountA = reader.string();
189
- break;
190
- case 17:
191
- message.vAmountB = reader.string();
192
- break;
193
172
  default:
194
173
  reader.skipType(tag & 7);
195
174
  break;
@@ -255,18 +234,6 @@ exports.Pool = {
255
234
  object.market !== undefined && object.market !== null
256
235
  ? String(object.market)
257
236
  : "";
258
- message.ampBps =
259
- object.ampBps !== undefined && object.ampBps !== null
260
- ? long_1.default.fromString(object.ampBps)
261
- : long_1.default.UZERO;
262
- message.vAmountA =
263
- object.vAmountA !== undefined && object.vAmountA !== null
264
- ? String(object.vAmountA)
265
- : "";
266
- message.vAmountB =
267
- object.vAmountB !== undefined && object.vAmountB !== null
268
- ? String(object.vAmountB)
269
- : "";
270
237
  return message;
271
238
  },
272
239
  toJSON(message) {
@@ -288,14 +255,10 @@ exports.Pool = {
288
255
  message.sharesAmount !== undefined &&
289
256
  (obj.sharesAmount = message.sharesAmount);
290
257
  message.market !== undefined && (obj.market = message.market);
291
- message.ampBps !== undefined &&
292
- (obj.ampBps = (message.ampBps || long_1.default.UZERO).toString());
293
- message.vAmountA !== undefined && (obj.vAmountA = message.vAmountA);
294
- message.vAmountB !== undefined && (obj.vAmountB = message.vAmountB);
295
258
  return obj;
296
259
  },
297
260
  fromPartial(object) {
298
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
261
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
299
262
  const message = Object.assign({}, basePool);
300
263
  message.creator = (_a = object.creator) !== null && _a !== void 0 ? _a : "";
301
264
  message.id =
@@ -317,12 +280,6 @@ exports.Pool = {
317
280
  : long_1.default.ZERO;
318
281
  message.sharesAmount = (_l = object.sharesAmount) !== null && _l !== void 0 ? _l : "";
319
282
  message.market = (_m = object.market) !== null && _m !== void 0 ? _m : "";
320
- message.ampBps =
321
- object.ampBps !== undefined && object.ampBps !== null
322
- ? long_1.default.fromValue(object.ampBps)
323
- : long_1.default.UZERO;
324
- message.vAmountA = (_o = object.vAmountA) !== null && _o !== void 0 ? _o : "";
325
- message.vAmountB = (_p = object.vAmountB) !== null && _p !== void 0 ? _p : "";
326
283
  return message;
327
284
  },
328
285
  };
@@ -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 "./tx";
3
+ import { LinkPoolParams, UnlinkPoolParams, SetRewardCurveParams, SetCommitmentCurveParams, SetRewardsWeightsParams, UpdatePoolParams } from "../liquiditypool/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("./tx");
10
+ const tx_1 = require("../liquiditypool/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";
5
- import { CommitmentResponse, CommitmentCurve, RewardCurve, RewardHistoryRecord, Commitment, TotalCommitmentRecord } from "./reward";
4
+ import { Pool, Params } from "../liquiditypool/liquiditypool";
5
+ import { CommitmentResponse, CommitmentCurve, RewardCurve, RewardHistoryRecord, Commitment, TotalCommitmentRecord } from "../liquiditypool/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 */
@@ -94,19 +94,6 @@ export interface QueryParamsResponse {
94
94
  /** params holds all the parameters of this module. */
95
95
  params?: Params;
96
96
  }
97
- export interface QueryAllPoolAddressRequest {
98
- pagination?: PageRequest;
99
- }
100
- export interface QueryAllPoolAddressResponse {
101
- addresses: {
102
- [key: string]: string;
103
- };
104
- pagination?: PageResponse;
105
- }
106
- export interface QueryAllPoolAddressResponse_AddressesEntry {
107
- key: string;
108
- value: string;
109
- }
110
97
  export declare const QueryGetPoolRequest: {
111
98
  encode(message: QueryGetPoolRequest, writer?: _m0.Writer): _m0.Writer;
112
99
  decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGetPoolRequest;
@@ -282,27 +269,6 @@ export declare const QueryParamsResponse: {
282
269
  toJSON(message: QueryParamsResponse): unknown;
283
270
  fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
284
271
  };
285
- export declare const QueryAllPoolAddressRequest: {
286
- encode(message: QueryAllPoolAddressRequest, writer?: _m0.Writer): _m0.Writer;
287
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressRequest;
288
- fromJSON(object: any): QueryAllPoolAddressRequest;
289
- toJSON(message: QueryAllPoolAddressRequest): unknown;
290
- fromPartial(object: DeepPartial<QueryAllPoolAddressRequest>): QueryAllPoolAddressRequest;
291
- };
292
- export declare const QueryAllPoolAddressResponse: {
293
- encode(message: QueryAllPoolAddressResponse, writer?: _m0.Writer): _m0.Writer;
294
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressResponse;
295
- fromJSON(object: any): QueryAllPoolAddressResponse;
296
- toJSON(message: QueryAllPoolAddressResponse): unknown;
297
- fromPartial(object: DeepPartial<QueryAllPoolAddressResponse>): QueryAllPoolAddressResponse;
298
- };
299
- export declare const QueryAllPoolAddressResponse_AddressesEntry: {
300
- encode(message: QueryAllPoolAddressResponse_AddressesEntry, writer?: _m0.Writer): _m0.Writer;
301
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllPoolAddressResponse_AddressesEntry;
302
- fromJSON(object: any): QueryAllPoolAddressResponse_AddressesEntry;
303
- toJSON(message: QueryAllPoolAddressResponse_AddressesEntry): unknown;
304
- fromPartial(object: DeepPartial<QueryAllPoolAddressResponse_AddressesEntry>): QueryAllPoolAddressResponse_AddressesEntry;
305
- };
306
272
  /** Query defines the gRPC querier service. */
307
273
  export interface Query {
308
274
  /** Get pool details */
@@ -328,8 +294,6 @@ export interface Query {
328
294
  /** Get currently claimable rewards for a pool for the given address */
329
295
  ClaimableRewards(request: QueryClaimableRewardsRequest): Promise<QueryClaimableRewardsResponse>;
330
296
  Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
331
- /** Get liquidity pool addresses for all pools */
332
- PoolAddressAll(request: QueryAllPoolAddressRequest): Promise<QueryAllPoolAddressResponse>;
333
297
  }
334
298
  export declare class QueryClientImpl implements Query {
335
299
  private readonly rpc;
@@ -346,7 +310,6 @@ export declare class QueryClientImpl implements Query {
346
310
  TotalCommitmentAll(request: QueryAllTotalCommitmentRequest): Promise<QueryAllTotalCommitmentResponse>;
347
311
  ClaimableRewards(request: QueryClaimableRewardsRequest): Promise<QueryClaimableRewardsResponse>;
348
312
  Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
349
- PoolAddressAll(request: QueryAllPoolAddressRequest): Promise<QueryAllPoolAddressResponse>;
350
313
  }
351
314
  interface Rpc {
352
315
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
@@ -3,13 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QueryClientImpl = exports.QueryAllPoolAddressResponse_AddressesEntry = exports.QueryAllPoolAddressResponse = exports.QueryAllPoolAddressRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryClaimableRewardsResponse = exports.QueryClaimableRewardsRequest = exports.QueryAllTotalCommitmentResponse = exports.QueryAllTotalCommitmentRequest = exports.QueryTotalCommitmentResponse = exports.QueryTotalCommitmentRequest = exports.QueryRewardCurveResponse = exports.QueryRewardCurveRequest = exports.QueryCommitmentCurveResponse = exports.QueryCommitmentCurveRequest = exports.QueryLastClaimResponse = exports.QueryLastClaimRequest = exports.QueryAllCommitmentResponse = exports.QueryAllCommitmentRequest = exports.QueryCommitmentResponse = exports.QueryCommitmentRequest = exports.QueryRewardHistoryResponse = exports.ExtendedPool = exports.QueryRewardHistoryRequest = exports.QueryAllPoolResponse = exports.QueryAllPoolRequest = exports.QueryGetPoolResponse = exports.QueryGetPoolRequest = exports.protobufPackage = void 0;
6
+ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryClaimableRewardsResponse = exports.QueryClaimableRewardsRequest = exports.QueryAllTotalCommitmentResponse = exports.QueryAllTotalCommitmentRequest = exports.QueryTotalCommitmentResponse = exports.QueryTotalCommitmentRequest = exports.QueryRewardCurveResponse = exports.QueryRewardCurveRequest = exports.QueryCommitmentCurveResponse = exports.QueryCommitmentCurveRequest = exports.QueryLastClaimResponse = exports.QueryLastClaimRequest = exports.QueryAllCommitmentResponse = exports.QueryAllCommitmentRequest = exports.QueryCommitmentResponse = exports.QueryCommitmentRequest = exports.QueryRewardHistoryResponse = exports.ExtendedPool = exports.QueryRewardHistoryRequest = exports.QueryAllPoolResponse = exports.QueryAllPoolRequest = exports.QueryGetPoolResponse = exports.QueryGetPoolRequest = 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
10
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
11
- const liquiditypool_1 = require("./liquiditypool");
12
- const reward_1 = require("./reward");
11
+ const liquiditypool_1 = require("../liquiditypool/liquiditypool");
12
+ const reward_1 = require("../liquiditypool/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";
@@ -1370,192 +1370,6 @@ exports.QueryParamsResponse = {
1370
1370
  return message;
1371
1371
  },
1372
1372
  };
1373
- const baseQueryAllPoolAddressRequest = {};
1374
- exports.QueryAllPoolAddressRequest = {
1375
- encode(message, writer = minimal_1.default.Writer.create()) {
1376
- if (message.pagination !== undefined) {
1377
- pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
1378
- }
1379
- return writer;
1380
- },
1381
- decode(input, length) {
1382
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1383
- let end = length === undefined ? reader.len : reader.pos + length;
1384
- const message = Object.assign({}, baseQueryAllPoolAddressRequest);
1385
- while (reader.pos < end) {
1386
- const tag = reader.uint32();
1387
- switch (tag >>> 3) {
1388
- case 1:
1389
- message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
1390
- break;
1391
- default:
1392
- reader.skipType(tag & 7);
1393
- break;
1394
- }
1395
- }
1396
- return message;
1397
- },
1398
- fromJSON(object) {
1399
- const message = Object.assign({}, baseQueryAllPoolAddressRequest);
1400
- message.pagination =
1401
- object.pagination !== undefined && object.pagination !== null
1402
- ? pagination_1.PageRequest.fromJSON(object.pagination)
1403
- : undefined;
1404
- return message;
1405
- },
1406
- toJSON(message) {
1407
- const obj = {};
1408
- message.pagination !== undefined &&
1409
- (obj.pagination = message.pagination
1410
- ? pagination_1.PageRequest.toJSON(message.pagination)
1411
- : undefined);
1412
- return obj;
1413
- },
1414
- fromPartial(object) {
1415
- const message = Object.assign({}, baseQueryAllPoolAddressRequest);
1416
- message.pagination =
1417
- object.pagination !== undefined && object.pagination !== null
1418
- ? pagination_1.PageRequest.fromPartial(object.pagination)
1419
- : undefined;
1420
- return message;
1421
- },
1422
- };
1423
- const baseQueryAllPoolAddressResponse = {};
1424
- exports.QueryAllPoolAddressResponse = {
1425
- encode(message, writer = minimal_1.default.Writer.create()) {
1426
- Object.entries(message.addresses).forEach(([key, value]) => {
1427
- exports.QueryAllPoolAddressResponse_AddressesEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
1428
- });
1429
- if (message.pagination !== undefined) {
1430
- pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
1431
- }
1432
- return writer;
1433
- },
1434
- decode(input, length) {
1435
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1436
- let end = length === undefined ? reader.len : reader.pos + length;
1437
- const message = Object.assign({}, baseQueryAllPoolAddressResponse);
1438
- message.addresses = {};
1439
- while (reader.pos < end) {
1440
- const tag = reader.uint32();
1441
- switch (tag >>> 3) {
1442
- case 1:
1443
- const entry1 = exports.QueryAllPoolAddressResponse_AddressesEntry.decode(reader, reader.uint32());
1444
- if (entry1.value !== undefined) {
1445
- message.addresses[entry1.key] = entry1.value;
1446
- }
1447
- break;
1448
- case 2:
1449
- message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
1450
- break;
1451
- default:
1452
- reader.skipType(tag & 7);
1453
- break;
1454
- }
1455
- }
1456
- return message;
1457
- },
1458
- fromJSON(object) {
1459
- var _a;
1460
- const message = Object.assign({}, baseQueryAllPoolAddressResponse);
1461
- message.addresses = Object.entries((_a = object.addresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
1462
- acc[key] = String(value);
1463
- return acc;
1464
- }, {});
1465
- message.pagination =
1466
- object.pagination !== undefined && object.pagination !== null
1467
- ? pagination_1.PageResponse.fromJSON(object.pagination)
1468
- : undefined;
1469
- return message;
1470
- },
1471
- toJSON(message) {
1472
- const obj = {};
1473
- obj.addresses = {};
1474
- if (message.addresses) {
1475
- Object.entries(message.addresses).forEach(([k, v]) => {
1476
- obj.addresses[k] = v;
1477
- });
1478
- }
1479
- message.pagination !== undefined &&
1480
- (obj.pagination = message.pagination
1481
- ? pagination_1.PageResponse.toJSON(message.pagination)
1482
- : undefined);
1483
- return obj;
1484
- },
1485
- fromPartial(object) {
1486
- var _a;
1487
- const message = Object.assign({}, baseQueryAllPoolAddressResponse);
1488
- message.addresses = Object.entries((_a = object.addresses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
1489
- if (value !== undefined) {
1490
- acc[key] = String(value);
1491
- }
1492
- return acc;
1493
- }, {});
1494
- message.pagination =
1495
- object.pagination !== undefined && object.pagination !== null
1496
- ? pagination_1.PageResponse.fromPartial(object.pagination)
1497
- : undefined;
1498
- return message;
1499
- },
1500
- };
1501
- const baseQueryAllPoolAddressResponse_AddressesEntry = {
1502
- key: "",
1503
- value: "",
1504
- };
1505
- exports.QueryAllPoolAddressResponse_AddressesEntry = {
1506
- encode(message, writer = minimal_1.default.Writer.create()) {
1507
- if (message.key !== "") {
1508
- writer.uint32(10).string(message.key);
1509
- }
1510
- if (message.value !== "") {
1511
- writer.uint32(18).string(message.value);
1512
- }
1513
- return writer;
1514
- },
1515
- decode(input, length) {
1516
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
1517
- let end = length === undefined ? reader.len : reader.pos + length;
1518
- const message = Object.assign({}, baseQueryAllPoolAddressResponse_AddressesEntry);
1519
- while (reader.pos < end) {
1520
- const tag = reader.uint32();
1521
- switch (tag >>> 3) {
1522
- case 1:
1523
- message.key = reader.string();
1524
- break;
1525
- case 2:
1526
- message.value = reader.string();
1527
- break;
1528
- default:
1529
- reader.skipType(tag & 7);
1530
- break;
1531
- }
1532
- }
1533
- return message;
1534
- },
1535
- fromJSON(object) {
1536
- const message = Object.assign({}, baseQueryAllPoolAddressResponse_AddressesEntry);
1537
- message.key =
1538
- object.key !== undefined && object.key !== null ? String(object.key) : "";
1539
- message.value =
1540
- object.value !== undefined && object.value !== null
1541
- ? String(object.value)
1542
- : "";
1543
- return message;
1544
- },
1545
- toJSON(message) {
1546
- const obj = {};
1547
- message.key !== undefined && (obj.key = message.key);
1548
- message.value !== undefined && (obj.value = message.value);
1549
- return obj;
1550
- },
1551
- fromPartial(object) {
1552
- var _a, _b;
1553
- const message = Object.assign({}, baseQueryAllPoolAddressResponse_AddressesEntry);
1554
- message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
1555
- message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
1556
- return message;
1557
- },
1558
- };
1559
1373
  class QueryClientImpl {
1560
1374
  constructor(rpc) {
1561
1375
  this.rpc = rpc;
@@ -1571,7 +1385,6 @@ class QueryClientImpl {
1571
1385
  this.TotalCommitmentAll = this.TotalCommitmentAll.bind(this);
1572
1386
  this.ClaimableRewards = this.ClaimableRewards.bind(this);
1573
1387
  this.Params = this.Params.bind(this);
1574
- this.PoolAddressAll = this.PoolAddressAll.bind(this);
1575
1388
  }
1576
1389
  Pool(request) {
1577
1390
  const data = exports.QueryGetPoolRequest.encode(request).finish();
@@ -1633,11 +1446,6 @@ class QueryClientImpl {
1633
1446
  const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Query", "Params", data);
1634
1447
  return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
1635
1448
  }
1636
- PoolAddressAll(request) {
1637
- const data = exports.QueryAllPoolAddressRequest.encode(request).finish();
1638
- const promise = this.rpc.request("Switcheo.carbon.liquiditypool.Query", "PoolAddressAll", data);
1639
- return promise.then((data) => exports.QueryAllPoolAddressResponse.decode(new minimal_1.default.Reader(data)));
1640
- }
1641
1449
  }
1642
1450
  exports.QueryClientImpl = QueryClientImpl;
1643
1451
  function toTimestamp(date) {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { RewardWeight } from "./reward";
3
+ import { RewardWeight } from "../liquiditypool/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 {
@@ -11,7 +11,6 @@ export interface MsgCreatePool {
11
11
  tokenBWeight: string;
12
12
  swapFee: string;
13
13
  numQuotes: Long;
14
- ampBps: Long;
15
14
  }
16
15
  export interface MsgCreatePoolResponse {
17
16
  poolId: Long;
@@ -26,7 +25,6 @@ export interface MsgCreatePoolWithLiquidity {
26
25
  amountB: string;
27
26
  swapFee: string;
28
27
  numQuotes: Long;
29
- ampBps: Long;
30
28
  }
31
29
  export interface MsgCreatePoolWithLiquidityResponse {
32
30
  }