@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 +1 -2
- package/esm/curve.js +1 -1
- package/lib/curve.d.ts +1 -2
- package/lib/curve.js +2 -1
- package/package.json +2 -2
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
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.
|
|
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.
|
|
19
|
+
"@ocap/types": "^1.22.3"
|
|
20
20
|
},
|
|
21
21
|
"resolutions": {
|
|
22
22
|
"bn.js": "5.2.1",
|