@ocap/util 1.22.1 → 1.22.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.
package/esm/curve.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BN } from './index';
2
- declare enum Direction {
2
+ export declare enum Direction {
3
3
  Mint = "mint",
4
4
  Burn = "burn"
5
5
  }
@@ -82,4 +82,3 @@ export declare function calcCost({ amount, decimal, currentSupply, direction, cu
82
82
  curve: any;
83
83
  direction: Direction;
84
84
  }): BN;
85
- export {};
package/esm/curve.js CHANGED
@@ -3,7 +3,7 @@ const ZERO = new BN(0);
3
3
  const TWO = new BN(2);
4
4
  const THREE = new BN(3);
5
5
  const TEN = new BN(10);
6
- var Direction;
6
+ export var Direction;
7
7
  (function (Direction) {
8
8
  Direction["Mint"] = "mint";
9
9
  Direction["Burn"] = "burn";
package/lib/curve.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BN } from './index';
2
- declare enum Direction {
2
+ export declare enum Direction {
3
3
  Mint = "mint",
4
4
  Burn = "burn"
5
5
  }
@@ -82,4 +82,3 @@ export declare function calcCost({ amount, decimal, currentSupply, direction, cu
82
82
  curve: any;
83
83
  direction: Direction;
84
84
  }): BN;
85
- export {};
package/lib/curve.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Direction = void 0;
3
4
  exports.calcConstantPrice = calcConstantPrice;
4
5
  exports.calcConstantCost = calcConstantCost;
5
6
  exports.calcLinearPrice = calcLinearPrice;
@@ -18,7 +19,7 @@ var Direction;
18
19
  (function (Direction) {
19
20
  Direction["Mint"] = "mint";
20
21
  Direction["Burn"] = "burn";
21
- })(Direction || (Direction = {}));
22
+ })(Direction || (exports.Direction = Direction = {}));
22
23
  /**
23
24
  * Constant Curve
24
25
  * Price = fixedPrice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/util",
3
- "version": "1.22.1",
3
+ "version": "1.22.3",
4
4
  "description": "utils shared across multiple forge js libs, works in both node.js and browser",
5
5
  "keywords": [
6
6
  "arcblock",
@@ -16,7 +16,7 @@
16
16
  "bs58": "^5.0.0",
17
17
  "lodash": "^4.17.21",
18
18
  "utf8": "^3.0.0",
19
- "@ocap/types": "^1.22.1"
19
+ "@ocap/types": "^1.22.3"
20
20
  },
21
21
  "resolutions": {
22
22
  "bn.js": "5.2.1",