mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-22 21:59:44 +03:00
Updated README
This commit is contained in:
@@ -57,7 +57,7 @@ npm i @orionprotocol/sdk
|
|||||||
import { OrionUnit } from "@orionprotocol/sdk";
|
import { OrionUnit } from "@orionprotocol/sdk";
|
||||||
import { Wallet } from "ethers";
|
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);
|
const wallet = new Wallet("0x...", orionUnit.provider);
|
||||||
// OrionUnit is chain-in-environment abstraction
|
// OrionUnit is chain-in-environment abstraction
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,4 +1,16 @@
|
|||||||
import { SupportedChainId } from '../types';
|
import { SupportedChainId } from '../types';
|
||||||
|
|
||||||
export const developmentChains = [SupportedChainId.BSC_TESTNET, SupportedChainId.ROPSTEN, SupportedChainId.FANTOM_TESTNET];
|
export const developmentChains = [
|
||||||
export const productionChains = [SupportedChainId.MAINNET, SupportedChainId.BSC, SupportedChainId.FANTOM_OPERA];
|
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,
|
||||||
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user