
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
@elementfi/tokenlist
Advanced tools
The Tokenlist for Element.finance
npm install @elementfi/tokenlist
To setup this repo you need to run the following:
npm ci
You'll also need to add api keys listed in elf.default.env to your local elf.env file.
This is how to get a list of currently open principal tokens.
import { ElementTokenTag, mainnetTokenList } from "@elementfi/tokenlist";
// Get the list of principal tokens that have not yet reached maturity
const principalTokens = mainnetTokenList.tokens
.filter(
(token) => token.tags?.includes(ElementTokenTag.PRINCIPAL)
)
.filter(
(token) => token.extensions.unlockTimestamp > Date.now() * 1000
).
To build this repo you need to configure some env variables. For linux and mac run the following:
elf.default.envcp elf.default.env elf.env
export ALCHEMY_MAINNET_API_KEY=
export ALCHEMY_GOERLI_API_KEY=
source elf.env
To build a new version of the token list, run:
npm run build
This will build for both mainnet & goerli, create the tokenlist, and copy the files to dist/
To release and publish the new token list:
First create a new version commit using npm:
npm version major|minor|patch # this will create a git commit
Then push up the changes to Github:
git push
git push --tags
Then in GH:
FAQs
The Tokenlist for Element.finance
We found that @elementfi/tokenlist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.