Added config

This commit is contained in:
Aleksandr Kraiz
2023-02-10 17:38:54 +04:00
parent 7882b66871
commit 3076258339
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.17.3",
"version": "0.17.4",
"description": "Orion Protocol SDK",
"main": "./lib/esm/index.js",
"module": "./lib/esm/index.js",

View File

@@ -34,10 +34,13 @@ export default class OrionUnit {
public readonly farmingManager: FarmingManager;
public readonly config: VerboseOrionUnitConfig;
// constructor(config: KnownConfig);
// constructor(config: VerboseConfig);
constructor(config: VerboseOrionUnitConfig) {
this.config = config;
const chainInfo = chains[config.chainId];
if (!chainInfo) throw new Error('Chain info is required');