Caution
This repository is no longer active. It has been superseded by here-wallet/near-snap.
- Introduction
- Prerequisites
- Getting Started
- Building and Running the Snap
- Testing
- Linting and Formatting
NearSnap is a MetaMask Snap that enables MetaMask users to interact with NEAR Protocol-powered dApps.
This project is a monorepo containing the MetaMask Snap package, managed by Yarn 3 Workspaces. The goal of this project is to provide native interaction with the NEAR Protocol inside MetaMask using the Snaps system.
Before you can start working with the project, make sure you have the following software installed:
Or (recommended):
To get started with the project:
- Clone the repository:
git clone https://github.com/ChainSafe/near-snap
- Navigate to the project root:
cd near-snap
- Install the dependencies:
When using nvm and corepack - click here
nvm use
corepack enable
yarn install
To build and run the project, follow these steps:
- Build all packages:
yarn build
- Run the MetaMask Snap:
yarn start:snap
To run tests for all packages:
yarn test
This project uses ESLint to enforce code style and formatting. To check code quality with the linter, run:
yarn lint
To lint and format the code, run:
yarn lint:style:fix