feat: frontage was added to Unit

This commit is contained in:
Mikhail Gladchenko
2024-03-29 12:15:59 +00:00
parent bfa4cc3d6f
commit 8c27f339fc
2 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.20.79-rc1",
"version": "0.20.79-rc2",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -2,6 +2,7 @@ import { JsonRpcProvider } from 'ethers';
import { Aggregator } from '../services/Aggregator';
import { BlockchainService } from '../services/BlockchainService';
import { PriceFeed } from '../services/PriceFeed';
import { Frontage } from '../services/Frontage';
import type {
KnownEnv,
SupportedChainId,
@@ -35,6 +36,8 @@ export default class Unit {
public readonly priceFeed: PriceFeed;
public readonly frontage: Frontage;
public readonly exchange: Exchange;
public readonly config: VerboseUnitConfig;
@@ -127,6 +130,9 @@ export default class Unit {
this.config.services.priceFeed.api,
this.config.basicAuth
);
this.frontage = new Frontage(
this.config.services.frontage.api
);
this.exchange = new Exchange(this);
this.pmm = new Pmm(this);
}