
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@lens-network/sdk
Advanced tools
The quickest way to connect your dApp to the Lens Network.
The official SDK for the Lens Network 🌿.
pnpm add @lens-network/sdk
# or
npm install @lens-network/sdk
# or
yarn add @lens-network/sdk
This section is for developers who want to contribute to the SDK.
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
.
Clone the repository:
git clone https://github.com/lens-network/sdk.git
Install the dependencies:
pnpm install
Create .env
file from the .env.example
template:
cp .env.example .env
and populate the PRIVATE_KEY
environment variable:
PRIVATE_KEY=0x…
with the private key of an account with Lens Network tokens.
[!TIP] Ask the Lens Team for some $GRASS tokens and then bridge them to the Lens Network.
Run the tests:
pnpm test
Run tests tagged with write
:
[!WARNING] These tests requires funds in the account specified within the
.env
file.
pnpm test:write
Lint the code:
pnpm lint
Compile the code:
pnpm build
Clean the build:
pnpm clean
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.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Lens Network SDK is MIT licensed.
FAQs
The quickest way to connect your dApp to the Lens Network.
The npm package @lens-network/sdk receives a total of 5,758 weekly downloads. As such, @lens-network/sdk popularity was classified as popular.
We found that @lens-network/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.