-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update license and readme, lint cleanup (#28)
* Update license, readme, reverseLookupBaseDomain * Update snap version to 0.3.1 * Lint cleanup
- Loading branch information
Showing
5 changed files
with
68 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
# TypeScript Example Snap | ||
# D3 Connect Snap | ||
|
||
This snap demonstrates how to develop a snap with TypeScript. It is a simple | ||
snap that displays a confirmation dialog when the `hello` JSON-RPC method is | ||
called. | ||
The D3 Connect Snap is a Metamask extension that enables custom name resolution using [D3 Connect](https://docs.d3.app/integrating-d3-infrastructure) | ||
|
||
## Testing | ||
MetaMask Snaps is a system that allows anyone to safely expand the capabilities | ||
of MetaMask. A _snap_ is a program that we run in an isolated environment that | ||
can customize the wallet experience. | ||
|
||
The snap comes with some basic tests, to demonstrate how to write tests for | ||
snaps. To test the snap, run `yarn test` in this directory. This will use | ||
[`@metamask/snaps-jest`](https://github.com/MetaMask/snaps/tree/main/packages/snaps-jest) | ||
to run the tests in `src/index.test.ts`. | ||
## Snaps is pre-release software | ||
|
||
To interact with the D3 Connect Snap, you will need to install [MetaMask Flask](https://metamask.io/flask/), | ||
a canary distribution for developers that provides access to upcoming features. | ||
|
||
## Getting Started | ||
|
||
Clone the [d3-connect-snap repository](https://github.com/MetaMask/template-snap-monorepo/generate) | ||
and set up the development environment: | ||
|
||
```shell | ||
yarn install && yarn start | ||
``` | ||
|
||
This runs a local development server listening on http://localhost:8000. Navigate to http://localhost:8000/ in your browser where MetaMask Flask is installed and click the Connect button. This will open a prompt within MetaMask Flask to install the D3 Connect Snap extension. | ||
|
||
Once installed, you can send crypto to any wallet using a D3 name (e.g. `d3connect.core`) that is mapped to a wallet address. To purchase your D3 name, go to the [D3 App | ||
Marketplace](https://d3.app). | ||
|
||
<img width="356" alt="d3connect-core-screenshot" src="https://github.com/d3-inc/d3-connect-snap/assets/629097/c62e0ebe-5613-4b48-9bd9-9ffd531faec0"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters