@cryptorubic/sdk
Advanced tools
Comparing version 0.0.17 to 0.0.18
{ | ||
"name": "@cryptorubic/sdk", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "tslib": "^2.3.0" |
@@ -15,1 +15,2 @@ export * from './lib/core/sdk/sdk'; | ||
export * from './lib/core/errors/index'; | ||
export * from './lib/features/deflation-token-manager/deflation-token-manager'; |
@@ -21,1 +21,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./lib/core/errors/index"), exports); | ||
// deflationTokenManager | ||
tslib_1.__exportStar(require("./lib/features/deflation-token-manager/deflation-token-manager"), exports); |
@@ -6,2 +6,3 @@ import { BlockchainAdapterFactoryService, WalletProvider } from "@cryptorubic/web3"; | ||
import { Utils } from "../../features/utils/utils"; | ||
import { DeflationTokenManager } from "../../features/deflation-token-manager/deflation-token-manager"; | ||
/** | ||
@@ -15,2 +16,3 @@ * Base class to work with sdk. | ||
readonly utils: Utils; | ||
readonly deflationTokenManager: DeflationTokenManager; | ||
private constructor(); | ||
@@ -17,0 +19,0 @@ /** |
@@ -9,2 +9,3 @@ "use strict"; | ||
const utils_1 = require("../../features/utils/utils"); | ||
const deflation_token_manager_1 = require("../../features/deflation-token-manager/deflation-token-manager"); | ||
/** | ||
@@ -14,3 +15,3 @@ * Base class to work with sdk. | ||
class SDK { | ||
constructor(httpClient, web3, router, utils) { | ||
constructor(httpClient, web3, router, utils, deflationTokenManager) { | ||
this.httpClient = httpClient; | ||
@@ -20,2 +21,3 @@ this.web3 = web3; | ||
this.utils = utils; | ||
this.deflationTokenManager = deflationTokenManager; | ||
} | ||
@@ -33,3 +35,4 @@ /** | ||
const utils = new utils_1.Utils(configuration); | ||
return new SDK(httpClient, web3, router, utils); | ||
const deflationTokenManager = new deflation_token_manager_1.DeflationTokenManager(); | ||
return new SDK(httpClient, web3, router, utils, deflationTokenManager); | ||
} | ||
@@ -36,0 +39,0 @@ static async createHttpClient(configuration) { |
85965
152
2124