![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@lit-protocol/contracts
Advanced tools
To run locally, use the following command:
To run locally, use the following command:
Ensure you have a fine-grain read-only personal access token for the lit-assets
repository (GH_LIT_ASSETS_READ_ONLY_API
). For the LIT_ABI_SOURCE
environment variable, you can set it to either prod
or dev
.
prod
: Pulls content from the stable network contracts and ABIs found in the LIT Protocol networks repository.dev
: Pulls content from the LIT Protocol lit-assets repository, a private repository with frequently changing ABIs and addresses, likely used for internal development.eg.
LIT_ABI_SOURCE=prod GH_LIT_ASSETS_READ_ONLY_API=xxx bun run fetch-contracts.ts
// for specific branch
DEV_BRANCH=develop LIT_ABI_SOURCE=prod GH_LIT_ASSETS_READ_ONLY_API=xxx bun run fetch-contracts.ts
curl -X POST -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token github_pat_<____YOUR_GITHUB_PERSONAL_ACCESS_TOKEN____>" \
https://api.github.com/repos/LIT-Protocol/lit-contracts/dispatches \
-d '{"event_type":"sync_trigger"}'
yarn add @lit-protocol/contracts
networks
repo )import { datilDev, datilTest, datil } from "@lit-protocol/contracts";
console.log("datilDev:", datilDev);
console.log("datilTest:", datilTest);
console.log("datil:", datil);
lit-assets
repo develop
branch )import { _datilDev, _datilTest, _datil } from "@lit-protocol/contracts";
console.log("datilDev:", _datilDev);
console.log("datilTest:", _datilTest);
console.log("datil:", _datil);
dev-
prefixlit-assets
repo with whatever the branch name is)eg. if your branch here is called dev-datil
then it will pull data from lit-assets datil
branch
the dev-
prefix is to allow GitHub action to publish to npm.
import { _datilDev, _datilTest, _datil } from "@lit-protocol/contracts";
console.log("datilDev:", _datilDev);
console.log("datilTest:", _datilTest);
console.log("datil:", _datil);
FAQs
To run locally, use the following command:
The npm package @lit-protocol/contracts receives a total of 11,414 weekly downloads. As such, @lit-protocol/contracts popularity was classified as popular.
We found that @lit-protocol/contracts 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.