carbon-js-sdk 0.2.16-dev.2 → 0.2.16-dev.3

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.
@@ -1,5 +1,6 @@
1
1
  import { CarbonTx } from "../util";
2
2
  import { BigNumber } from "bignumber.js";
3
+ import Long from "long";
3
4
  import BaseModule from "./base";
4
5
  export declare class LiquidityPoolModule extends BaseModule {
5
6
  create(params: LiquidityPoolModule.CreatePoolParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
@@ -25,7 +26,7 @@ export declare namespace LiquidityPoolModule {
25
26
  tokenAWeight: BigNumber;
26
27
  tokenBWeight: BigNumber;
27
28
  swapFee: BigNumber;
28
- ampBps: BigNumber;
29
+ ampBps: Long;
29
30
  numQuotes: number;
30
31
  }
31
32
  interface CreatePoolWithLiquidityParams {
@@ -36,7 +37,7 @@ export declare namespace LiquidityPoolModule {
36
37
  amountA: BigNumber;
37
38
  amountB: BigNumber;
38
39
  swapFee: BigNumber;
39
- ampBps: BigNumber;
40
+ ampBps: Long;
40
41
  numQuotes: number;
41
42
  }
42
43
  interface AddLiquidityParams {
@@ -30,7 +30,7 @@ class LiquidityPoolModule extends base_1.default {
30
30
  tokenAWeight: params.tokenAWeight.shiftedBy(18).toString(10),
31
31
  tokenBWeight: params.tokenBWeight.shiftedBy(18).toString(10),
32
32
  swapFee: params.swapFee.shiftedBy(18).toString(10),
33
- ampBps: new long_1.default(params.ampBps.shiftedBy(4).toNumber()),
33
+ ampBps: params.ampBps,
34
34
  numQuotes: new long_1.default(params.numQuotes),
35
35
  });
36
36
  return yield wallet.sendTx({
@@ -51,7 +51,7 @@ class LiquidityPoolModule extends base_1.default {
51
51
  amountA: params.amountA.toString(10),
52
52
  amountB: params.amountB.toString(10),
53
53
  swapFee: params.swapFee.shiftedBy(18).toString(10),
54
- ampBps: new long_1.default(params.ampBps.shiftedBy(4).toNumber()),
54
+ ampBps: params.ampBps,
55
55
  numQuotes: new long_1.default(params.numQuotes),
56
56
  });
57
57
  return yield wallet.sendTx({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-js-sdk",
3
- "version": "0.2.16-dev.2+25dbba5c822b",
3
+ "version": "0.2.16-dev.3+0ee377d97a11",
4
4
  "description": "TypeScript SDK for Carbon blockchain",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",