@energi/energi-sdk
v1.2.3
Published
Energi SDK
Downloads
24
Readme
Energi SDK
Requirements
- nodejs v16.10.0
- yarn v1.22.15
Build
yarn build
Publish
yarn publish
How To Use
Add the library to the project by the following commands:
npm install @energi/energi-sdk
# or
yarn add @energi/energi-sdk
import React from 'react';
import sdk from '@energi/energi-sdk';
...
console.log(sdk);
// output:
// {
// {
// "name": "Energi SDK",
// "version": {
// "major": 1,
// "minor": 0,
// "patch": 0
// },
// "timestamp": "2022-02-03T17:33:32.021Z",
// "energi": {
// ... energi variables
// },
// "ethereum": {
// ... etherem variables
// },
// "contracts": {
// ... contract addresses
// },
// "STABLE_COINS": [
// ... stable coins
// ],
// "ZERO_ADDRESS": "0x0000000000000000000000000000000000000000",
// "urls": {
// ... RPC and subgraph urls
// },
// "social": {
// ... social media constants
// },
// "keywords": [
// "energi",
// "sdk"
// ]
// }