@upcoming/multichain-library 0.7.3 → 0.8.0
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/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/xBZZ.d.ts +7 -0
- package/dist/xBZZ.js +17 -0
- package/dist/xDAI.d.ts +7 -0
- package/dist/xDAI.js +17 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import { MultichainLibrarySettings } from './Settings';
|
|
|
11
11
|
import { SushiResponse } from './SushiSwap';
|
|
12
12
|
export { MultichainLibrarySettings } from './Settings';
|
|
13
13
|
export { SushiResponse } from './SushiSwap';
|
|
14
|
+
export { xBZZ } from './xBZZ';
|
|
15
|
+
export { xDAI } from './xDAI';
|
|
14
16
|
export declare class MultichainLibrary {
|
|
15
17
|
settings: MultichainLibrarySettings;
|
|
16
18
|
jsonRpcProvider: RollingValueProvider<string>;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MultichainLibrary = void 0;
|
|
3
|
+
exports.MultichainLibrary = exports.xDAI = exports.xBZZ = void 0;
|
|
4
4
|
const cafe_utility_1 = require("cafe-utility");
|
|
5
5
|
const Constants_1 = require("./Constants");
|
|
6
6
|
const GnosisBzzApprove_1 = require("./GnosisBzzApprove");
|
|
@@ -18,6 +18,10 @@ const Settings_1 = require("./Settings");
|
|
|
18
18
|
const SushiSwap_1 = require("./SushiSwap");
|
|
19
19
|
const TokenPrice_1 = require("./TokenPrice");
|
|
20
20
|
const Waiter_1 = require("./Waiter");
|
|
21
|
+
var xBZZ_1 = require("./xBZZ");
|
|
22
|
+
Object.defineProperty(exports, "xBZZ", { enumerable: true, get: function () { return xBZZ_1.xBZZ; } });
|
|
23
|
+
var xDAI_1 = require("./xDAI");
|
|
24
|
+
Object.defineProperty(exports, "xDAI", { enumerable: true, get: function () { return xDAI_1.xDAI; } });
|
|
21
25
|
class MultichainLibrary {
|
|
22
26
|
settings;
|
|
23
27
|
jsonRpcProvider;
|
package/dist/xBZZ.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FixedPointNumber } from 'cafe-utility';
|
|
2
|
+
export declare class xBZZ extends FixedPointNumber {
|
|
3
|
+
static DECIMALS: number;
|
|
4
|
+
static fromDecimalString(decimalString: string): FixedPointNumber;
|
|
5
|
+
static fromFloat(value: number): FixedPointNumber;
|
|
6
|
+
constructor(value: bigint | number | string);
|
|
7
|
+
}
|
package/dist/xBZZ.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.xBZZ = void 0;
|
|
4
|
+
const cafe_utility_1 = require("cafe-utility");
|
|
5
|
+
class xBZZ extends cafe_utility_1.FixedPointNumber {
|
|
6
|
+
static DECIMALS = 16;
|
|
7
|
+
static fromDecimalString(decimalString) {
|
|
8
|
+
return cafe_utility_1.FixedPointNumber.fromDecimalString(decimalString, xBZZ.DECIMALS);
|
|
9
|
+
}
|
|
10
|
+
static fromFloat(value) {
|
|
11
|
+
return cafe_utility_1.FixedPointNumber.fromFloat(value, xBZZ.DECIMALS);
|
|
12
|
+
}
|
|
13
|
+
constructor(value) {
|
|
14
|
+
super(value, xBZZ.DECIMALS);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.xBZZ = xBZZ;
|
package/dist/xDAI.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FixedPointNumber } from 'cafe-utility';
|
|
2
|
+
export declare class xDAI extends FixedPointNumber {
|
|
3
|
+
static DECIMALS: number;
|
|
4
|
+
static fromDecimalString(decimalString: string): FixedPointNumber;
|
|
5
|
+
static fromFloat(value: number): FixedPointNumber;
|
|
6
|
+
constructor(value: bigint | number | string);
|
|
7
|
+
}
|
package/dist/xDAI.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.xDAI = void 0;
|
|
4
|
+
const cafe_utility_1 = require("cafe-utility");
|
|
5
|
+
class xDAI extends cafe_utility_1.FixedPointNumber {
|
|
6
|
+
static DECIMALS = 18;
|
|
7
|
+
static fromDecimalString(decimalString) {
|
|
8
|
+
return cafe_utility_1.FixedPointNumber.fromDecimalString(decimalString, xDAI.DECIMALS);
|
|
9
|
+
}
|
|
10
|
+
static fromFloat(value) {
|
|
11
|
+
return cafe_utility_1.FixedPointNumber.fromFloat(value, xDAI.DECIMALS);
|
|
12
|
+
}
|
|
13
|
+
constructor(value) {
|
|
14
|
+
super(value, xDAI.DECIMALS);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.xDAI = xDAI;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upcoming/multichain-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"description": "",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"cafe-utility": "^33.
|
|
22
|
+
"cafe-utility": "^33.7.0",
|
|
23
23
|
"viem": "^2.45.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|