mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
feat: frontage was added to Unit
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user