mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
Orion, Orion Unit, Configuration (#40)
* Refactoring * Better docs * Bump * ESLint standard * Fix * Bumo * VerboseOrionUnitConfig to types * Docs improvements * Docs improvements. Orion default env
This commit is contained in:
@@ -7,8 +7,10 @@ Let's consider integration of Orion Protocol with your UI.
|
||||
Orion Protocol's SDK operates with OrionUnit — chain-in-environment abstraction. "Ethereum-in-production", "bsc-in-production", "fantom-in-testing", etc.
|
||||
|
||||
```ts
|
||||
import { OrionUnit } from "@orionprotocol/sdk";
|
||||
const orionUnit = new OrionUnit("bsc", "production"); // eth, bsc, ftm available
|
||||
import { Orion } from "@orionprotocol/sdk";
|
||||
const orion = new Orion();
|
||||
const bscOrionUnit = orion.getUnit("bsc"); // eth, bsc, ftm, polygon, okc available
|
||||
const ethOrionUnit = orion.getUnit("eth");
|
||||
```
|
||||
|
||||
## 2. Signer accessing
|
||||
|
||||
Reference in New Issue
Block a user