diff --git a/package.json b/package.json index 159e385..45e81b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.17.0-rc.4", + "version": "0.17.0-rc.5", "description": "Orion Protocol SDK", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js", diff --git a/src/Orion/index.ts b/src/Orion/index.ts index feb9464..d8321ae 100644 --- a/src/Orion/index.ts +++ b/src/Orion/index.ts @@ -1,9 +1,9 @@ import { merge } from 'merge-anything'; import { chains, envs } from '../config'; -import OrionUnit, { VerboseOrionUnitConfig } from '../OrionUnit'; +import OrionUnit from '../OrionUnit'; import OrionAnalytics from '../services/OrionAnalytics'; import { ReferralSystem } from '../services/ReferralSystem'; -import { DeepPartial, SupportedChainId } from '../types'; +import { DeepPartial, SupportedChainId, VerboseOrionUnitConfig } from '../types'; import { isValidChainId } from '../utils'; type EnvConfig = { diff --git a/src/OrionUnit/index.ts b/src/OrionUnit/index.ts index cfa2b57..1396f76 100644 --- a/src/OrionUnit/index.ts +++ b/src/OrionUnit/index.ts @@ -2,42 +2,11 @@ import { ethers } from 'ethers'; import { OrionAggregator } from '../services/OrionAggregator'; import { OrionBlockchain } from '../services/OrionBlockchain'; import { PriceFeed } from '../services/PriceFeed'; -import type { SupportedChainId } from '../types'; +import type { SupportedChainId, VerboseOrionUnitConfig } from '../types'; import Exchange from './Exchange'; import FarmingManager from './FarmingManager'; import { chains } from '../config'; -export type VerboseOrionUnitConfig = { - // env?: string; - // api: string; - chainId: SupportedChainId; - nodeJsonRpc: string; - services: { - orionBlockchain: { - http: string; - // For example: - // http://localhost:3001/, - // http://10.123.34.23:3001/, - // https://blockchain.orionprotocol.io/ - }, - orionAggregator: { - http: string; - ws: string; - // For example: - // http://localhost:3002/, - // http://10.34.23.5:3002/, - // shttps://aggregator.orionprotocol.io/ - }, - priceFeed: { - api: string; - // For example: - // http://localhost:3003/, - // http://10.23.5.11:3003/, - // https://price-feed.orionprotocol.io/ - }, - } -}; - // type KnownConfig = { // env: string; // chainId: SupportedChainId; diff --git a/src/types.ts b/src/types.ts index fa1845d..eba96f8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -242,3 +242,34 @@ export enum HistoryTransactionStatus { APPROVING = 'Approving', CANCELLED = 'Cancelled', } + +export type VerboseOrionUnitConfig = { + // env?: string; + // api: string; + chainId: SupportedChainId; + nodeJsonRpc: string; + services: { + orionBlockchain: { + http: string; + // For example: + // http://localhost:3001/, + // http://10.123.34.23:3001/, + // https://blockchain.orionprotocol.io/ + }, + orionAggregator: { + http: string; + ws: string; + // For example: + // http://localhost:3002/, + // http://10.34.23.5:3002/, + // shttps://aggregator.orionprotocol.io/ + }, + priceFeed: { + api: string; + // For example: + // http://localhost:3003/, + // http://10.23.5.11:3003/, + // https://price-feed.orionprotocol.io/ + }, + } +};