From 4364b68ab5928237ee182a13cc608222888927b7 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 24 Aug 2023 21:17:58 +0700 Subject: [PATCH 1/2] fix: update version file --- packages/sdk/src/core/core.ts | 1 + packages/sdk/src/version.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/sdk/src/core/core.ts b/packages/sdk/src/core/core.ts index d977d1ff..b134dfd7 100644 --- a/packages/sdk/src/core/core.ts +++ b/packages/sdk/src/core/core.ts @@ -28,6 +28,7 @@ import { Cache, } from "../common/decorators/index.js"; import { SUPPORTED_CHAINS } from "../common/constants.js"; + import { LidoSDKCoreProps } from "./types.js"; export default class LidoSDKCore { diff --git a/packages/sdk/src/version.ts b/packages/sdk/src/version.ts index 20e61e97..0b828691 100644 --- a/packages/sdk/src/version.ts +++ b/packages/sdk/src/version.ts @@ -1 +1 @@ -export const version = "1"; +export const version = "version_replace"; From 753f57ca73839dfefb8cb3e25336f49ff2beb9b4 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 24 Aug 2023 21:18:06 +0700 Subject: [PATCH 2/2] fix: update readme --- packages/sdk/README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/sdk/README.md b/packages/sdk/README.md index 6a92e303..3f9b60cc 100644 --- a/packages/sdk/README.md +++ b/packages/sdk/README.md @@ -6,17 +6,25 @@ You can install the Lido Ethereum SDK using npm or yarn: +yarn: + ```bash yarn add @lidofinance/lido-ethereum-sdk ``` +npm: + +```bash +npm install @lidofinance/lido-ethereum-sdk +``` + ## Modules The Lido Ethereum SDK consists of several modules: - **Core** - provides access to the SDK core functionality - **Staking** - provides access to the Lido staking functionality - ... + TODO: add more modules ## Usage @@ -74,6 +82,8 @@ const lidoSDK = new LidoSDK({ // Views const balanceETH = await lidoSDK.core.balanceETH(address); + +console.log(balanceETH.toString(), "ETH balance"); ``` ### Staking @@ -98,7 +108,6 @@ const stakeResult = await lidoSDK.staking.stake({ referralAddress, }); -console.log(balanceETH.toString(), "ETH balance"); console.log(balanceStETH.toString(), "stETH balance"); console.log(addressStETH, "stETH contract address"); console.log(contractStETH, "stETH contract");