@upcoming/multichain-library 0.1.0 → 0.1.1
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 +4 -2
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { FixedPointNumber } from 'cafe-utility';
|
|
2
|
+
import { Constants } from './Constants';
|
|
2
3
|
import { TransferGnosisNativeOptions } from './GnosisNativeTransfer';
|
|
3
4
|
import { GnosisSwapAutoOptions, GnosisSwapCustomOptions } from './GnosisSwap';
|
|
4
5
|
import { MultichainLibrarySettings } from './Settings';
|
|
5
6
|
import { SushiResponse } from './SushiSwap';
|
|
7
|
+
export { MultichainLibrarySettings } from './Settings';
|
|
8
|
+
export { SushiResponse } from './SushiSwap';
|
|
6
9
|
export declare class MultichainLibrary {
|
|
7
10
|
settings: MultichainLibrarySettings;
|
|
11
|
+
constants: typeof Constants;
|
|
8
12
|
constructor(settings?: Partial<MultichainLibrarySettings>);
|
|
9
13
|
getGnosisBzzBalance(address: string): Promise<FixedPointNumber>;
|
|
10
14
|
getGnosisNativeBalance(address: `0x${string}`): Promise<FixedPointNumber>;
|
|
@@ -19,5 +23,3 @@ export declare class MultichainLibrary {
|
|
|
19
23
|
getGnosisTransactionCount(address: `0x${string}`): Promise<number>;
|
|
20
24
|
getSushiSwapQuote(amount: string, sender: string, recipient: string): Promise<SushiResponse>;
|
|
21
25
|
}
|
|
22
|
-
export { MultichainLibrarySettings } from './Settings';
|
|
23
|
-
export { SushiResponse } from './SushiSwap';
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MultichainLibrary = void 0;
|
|
4
4
|
const cafe_utility_1 = require("cafe-utility");
|
|
5
|
+
const Constants_1 = require("./Constants");
|
|
5
6
|
const GnosisBzzBalance_1 = require("./GnosisBzzBalance");
|
|
6
7
|
const GnosisNativeBalance_1 = require("./GnosisNativeBalance");
|
|
7
8
|
const GnosisNativeTransfer_1 = require("./GnosisNativeTransfer");
|
|
@@ -13,6 +14,7 @@ const TokenPrice_1 = require("./TokenPrice");
|
|
|
13
14
|
const Waiter_1 = require("./Waiter");
|
|
14
15
|
class MultichainLibrary {
|
|
15
16
|
settings;
|
|
17
|
+
constants = Constants_1.Constants;
|
|
16
18
|
constructor(settings) {
|
|
17
19
|
this.settings = cafe_utility_1.Objects.deepMerge2((0, Settings_1.getDefaultMultichainLibrarySettings)(), settings || {});
|
|
18
20
|
}
|