Updated README

This commit is contained in:
Aleksandr Kraiz
2022-11-14 14:07:15 +04:00
parent 844dbe39e8
commit 88010c8364
2 changed files with 15 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ npm i @orionprotocol/sdk
import { OrionUnit } from "@orionprotocol/sdk";
import { Wallet } from "ethers";
const orionUnit = new OrionUnit("bsc", "production"); // eth, bsc, ftm available
const orionUnit = new OrionUnit("bsc", "production"); // eth, bsc, ftm, polygon, okc available
const wallet = new Wallet("0x...", orionUnit.provider);
// OrionUnit is chain-in-environment abstraction
```

View File

@@ -1,4 +1,16 @@
import { SupportedChainId } from '../types';
export const developmentChains = [SupportedChainId.BSC_TESTNET, SupportedChainId.ROPSTEN, SupportedChainId.FANTOM_TESTNET];
export const productionChains = [SupportedChainId.MAINNET, SupportedChainId.BSC, SupportedChainId.FANTOM_OPERA];
export const developmentChains = [
SupportedChainId.BSC_TESTNET,
SupportedChainId.ROPSTEN,
SupportedChainId.FANTOM_TESTNET,
SupportedChainId.POLYGON_TESTNET,
SupportedChainId.OKC_TESTNET,
];
export const productionChains = [
SupportedChainId.MAINNET,
SupportedChainId.BSC,
SupportedChainId.FANTOM_OPERA,
SupportedChainId.POLYGON,
SupportedChainId.OKC,
];