Lens Network SDK
The official SDK for the Lens Network 🌿.
Table of Contents
Installation
pnpm add @lens-network/sdk
npm install @lens-network/sdk
yarn add @lens-network/sdk
Development Workflow
This section is for developers who want to contribute to the SDK.
Pre-requisites:
If you use nvm to manage your Node.js versions, you can run:
nvm use
to switch to the correct Node.js version.
We recommend to have corepack enabled to automatically have the correct version of pnpm
.
Initial Setup
Clone the repository:
git clone https://github.com/lens-network/sdk.git
Install the dependencies:
pnpm install
Usage
Run the tests:
pnpm test
Lint the code:
pnpm lint
Compile the code:
pnpm build
Clean the build:
pnpm clean
Publishing
-
Create a new release branch using the release/X.Y.Z
naming convention.
-
Bumps up version number and updates the changelog.
pnpm changeset version
-
Commit the changes using chore: bumps up version number
as the commit message.
-
Push the changes to the remote repository.
-
Open a pull request to the main
branch.
-
Wait for all checks to pass and for the pull request to be approved.
-
Publish the package.
pnpm changeset publish
-
Push tags to the remote repository.
git push --follow-tags
-
Merge the pull request to the main
branch.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Lens Network SDK is MIT licensed