From 2ac5b58f43cb2ff8bee7e41150aadc563a42a79c Mon Sep 17 00:00:00 2001 From: Aleksandr Kraiz Date: Wed, 8 Feb 2023 13:34:36 +0400 Subject: [PATCH] Docs improvements --- ADVANCED.md | 11 +++++++++++ package.json | 2 +- src/Orion/index.ts | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ADVANCED.md b/ADVANCED.md index 5689034..928f1a9 100644 --- a/ADVANCED.md +++ b/ADVANCED.md @@ -24,6 +24,17 @@ const orion = new Orion({ }, }); +// Also you can set some config as default and override it for some params +const orion = new Orion("testing", { + analyticsAPI: "https://asdasd.orionprotocol.io", + networks: { + [SupportedChainId.BSC_TESTNET]: { + nodeJsonRpc: "https://data-seed-prebsc-1-s1.binance.org:8545/", + }, + }, +}); + +// Orion unit init const orionUnit = orion.getUnit("bsc"); // OR const orionUnit = orion.getUnit(SupportedChainId.BSC); diff --git a/package.json b/package.json index 45e81b4..7621622 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.17.0-rc.5", + "version": "0.17.0-rc.6", "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 d8321ae..7ccf202 100644 --- a/src/Orion/index.ts +++ b/src/Orion/index.ts @@ -33,6 +33,12 @@ export default class Orion { constructor(config: EnvConfig); + // TODO: get tradable assets (aggregated) + + // TODO: get tradable pairs (aggregated) + + // TODO: bridge + constructor( envOrConfig: string | EnvConfig, overrides?: DeepPartial