Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@metaphor-xyz/ens-claim
Advanced tools
React hooks and components that help notify users to claim their $ENS airdrop.
This package provides React hooks and components helpful in notifying users of products that they have unclaimed $ENS tokens from the ENS DAO airdrop, and directing them to claim those tokens.
npm install --save @metaphor-xyz/ens-claim
or
yarn save @metaphor-xyz/ens-claim
The ENSClaimButton
renders a button, if and only if the user's wallet as an open $ENS claim available, that when clicked shows a modal explaining how to claim the tokens.
import { BaseProvider } from 'ethers';
import { ENSClaimButton } from '@metaphor-xyz/ens-claim';
function SomeComponent({ address, provider }: { address: string, provider: BaseProvider }) {
return <ENSClaimButton
address={address}
provider={provider} // optional
delegate='metaphor.xyz' // optional, ENS name for default delegate
/>;
}
If you would like to create your own button, the useENSClaim
hook tells you whether or not an address has ENS tokens to claim.
function SomeComponent() {
const { hasClaim } = useENSClaim();
if (!hasClaim) {
return null;
}
// ... render notification
}
MIT
There are a few possible improvements for the library:
FAQs
React hooks and components that help notify users to claim their $ENS airdrop.
We found that @metaphor-xyz/ens-claim demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.