🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@metamask/ens-resolver-snap

Package Overview
Dependencies
Maintainers
11
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/ens-resolver-snap

A MetaMask Snap used for Ethereum Name Service (ENS) resolution

0.1.2
latest
Source
npm
Version published
Weekly downloads
14K
-5.43%
Maintainers
11
Weekly downloads
 
Created
Source

ENS resolver Snap

This Snap demonstrates forward and reverse name resolution based on the Ethereum Name Service protocol (ENS).

Development

You have to specify an INFURA_PROJECT_ID environment variable to build or test the project. It might work without one, but it will be severely slow. Use the .env.example file in the snap/ folder to set up your project ID. This will change once there is a way for snaps to request a multi-network provider, since ENS resolution starts by querying Ethereum mainnet.

After installing the snap in MetaMask Flask, use any address input field to type in an ENS name.

yarn install && yarn build

Testing and Linting

Run yarn test to run the jest tests once.

Run yarn lint to run the linter, or run yarn lint:fix to run the linter and fix any automatically fixable issues.

This can also be manually tested, by using the build/preinstalled-snap.json file in your local Metamask extension build

CI

There are some automatic checks that run on Github workflows. Be mindful of using secrets in reusable workflows when setting up your INFURA_PROJECT_ID.

FAQs

Package last updated on 22 Aug 2024

Did you know?

Socket

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.

Install

Related posts