Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update links #25

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 2 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,3 @@
# @metamask/template-snap-monorepo
# Nomis Protocol Snap

This repository demonstrates how to develop a snap with TypeScript. For detailed
instructions, see [the MetaMask documentation](https://docs.metamask.io/guide/snaps.html#serving-a-snap-to-your-local-environment).

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.

## Snaps is pre-release software

To interact with (your) Snaps, 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 template-snap repository [using this template](https://github.com/MetaMask/template-snap-monorepo/generate)
and set up the development environment:

```shell
yarn install && yarn start
```

## Cloning

This repository contains GitHub Actions that you may find useful, see
`.github/workflows` and [Releasing & Publishing](https://github.com/MetaMask/template-snap-monorepo/edit/main/README.md#releasing--publishing)
below for more information.

If you clone or create this repository outside the MetaMask GitHub organization,
you probably want to run `./scripts/cleanup.sh` to remove some files that will
not work properly outside the MetaMask GitHub organization.

If you don't wish to use any of the existing GitHub actions in this repository,
simply delete the `.github/workflows` directory.

## Contributing

### Testing and Linting

Run `yarn test` to run the tests once.

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

### Using NPM packages with scripts

Scripts are disabled by default for security reasons. If you need to use NPM
packages with scripts, you can run `yarn allow-scripts auto`, and enable the
script in the `lavamoat.allowScripts` section of `package.json`.

See the documentation for [@lavamoat/allow-scripts](https://github.com/LavaMoat/LavaMoat/tree/main/packages/allow-scripts)
for more information.
Leverage your onchain reputation inside MetaMask Snap!
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "0.1.0",
"private": true,
"description": "",
"homepage": "https://github.com/MetaMask/template-snap-monorepo#readme",
"homepage": "https://github.com/Nomis-cc/nomis-snaps#readme",
"bugs": {
"url": "https://github.com/MetaMask/template-snap-monorepo/issues"
"url": "https://github.com/Nomis-cc/nomis-snaps/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/MetaMask/template-snap-monorepo.git"
"url": "git+https://github.com/Nomis-cc/nomis-snaps.git"
},
"license": "(MIT-0 OR Apache-2.0)",
"author": "",
Expand All @@ -25,6 +25,9 @@
"start": "yarn workspaces foreach --parallel --interlaced --verbose run start",
"test": "yarn workspace snap run test"
},
"dependencies": {
"@metamask/snaps-sdk": "^6.2.1"
},
"devDependencies": {
"@lavamoat/allow-scripts": "^3.0.0",
"@lavamoat/preinstall-always-fail": "^2.0.0",
Expand Down Expand Up @@ -56,8 +59,5 @@
"@lavamoat/preinstall-always-fail": false,
"sharp": true
}
},
"dependencies": {
"@metamask/snaps-sdk": "^6.2.1"
}
}
13 changes: 2 additions & 11 deletions packages/snap/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# TypeScript Example Snap
# Nomis Protocol 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.

## Testing

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`.
Leverage your onchain reputation inside MetaMask Snap!
6 changes: 3 additions & 3 deletions packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "snap",
"name": "nomis-snap",
"version": "0.1.0",
"description": "The 'Hello, world!' of MetaMask Snaps, now written in TypeScript.",
"description": "Onchain Reputation and Decentralized Identity Protocol",
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/template-snap-monorepo.git"
"url": "https://github.com/Nomis-cc/nomis-snaps.git"
},
"license": "(MIT-0 OR Apache-2.0)",
"main": "./dist/bundle.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"proposedName": "Nomis Protocol",
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/template-snap-monorepo.git"
"url": "https://github.com/Nomis-cc/nomis-snaps.git"
},
"source": {
"shasum": "0C3mfmcJh/qFOWCIID/CAZs+VkoVzSeutoYPilVCoRw=",
"shasum": "FLSiqxW/xsoi//HFObHfb+sM9i9ysZYMSYtCr1drulw=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
"packageName": "snap",
"packageName": "nomis-snap",
"registry": "https://registry.npmjs.org/",
"iconPath": "images/icon.svg"
}
Expand Down
66 changes: 33 additions & 33 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14438,6 +14438,39 @@ __metadata:
languageName: node
linkType: hard

"nomis_snap@workspace:packages/snap":
version: 0.0.0-use.local
resolution: "nomis_snap@workspace:packages/snap"
dependencies:
"@jest/globals": ^29.5.0
"@metamask/auto-changelog": ^3.4.4
"@metamask/eslint-config": ^12.2.0
"@metamask/eslint-config-jest": ^12.1.0
"@metamask/eslint-config-nodejs": ^12.1.0
"@metamask/eslint-config-typescript": ^12.1.0
"@metamask/snaps-cli": ^6.3.0
"@metamask/snaps-jest": ^8.3.0
"@metamask/snaps-sdk": ^6.2.1
"@typescript-eslint/eslint-plugin": ^5.42.1
"@typescript-eslint/parser": ^5.42.1
buffer: ^6.0.3
eslint: ^8.45.0
eslint-config-prettier: ^8.5.0
eslint-plugin-import: ~2.26.0
eslint-plugin-jest: ^27.1.5
eslint-plugin-jsdoc: ^41.1.2
eslint-plugin-n: ^15.7.0
eslint-plugin-prettier: ^4.2.1
eslint-plugin-promise: ^6.1.1
jest: ^29.5.0
prettier: ^2.7.1
prettier-plugin-packagejson: ^2.2.11
rimraf: ^3.0.2
ts-jest: ^29.1.0
typescript: ^4.7.4
languageName: unknown
linkType: soft

"nopt@npm:^7.0.0":
version: 7.2.1
resolution: "nopt@npm:7.2.1"
Expand Down Expand Up @@ -17182,39 +17215,6 @@ __metadata:
languageName: node
linkType: hard

"snap@workspace:packages/snap":
version: 0.0.0-use.local
resolution: "snap@workspace:packages/snap"
dependencies:
"@jest/globals": ^29.5.0
"@metamask/auto-changelog": ^3.4.4
"@metamask/eslint-config": ^12.2.0
"@metamask/eslint-config-jest": ^12.1.0
"@metamask/eslint-config-nodejs": ^12.1.0
"@metamask/eslint-config-typescript": ^12.1.0
"@metamask/snaps-cli": ^6.3.0
"@metamask/snaps-jest": ^8.3.0
"@metamask/snaps-sdk": ^6.2.1
"@typescript-eslint/eslint-plugin": ^5.42.1
"@typescript-eslint/parser": ^5.42.1
buffer: ^6.0.3
eslint: ^8.45.0
eslint-config-prettier: ^8.5.0
eslint-plugin-import: ~2.26.0
eslint-plugin-jest: ^27.1.5
eslint-plugin-jsdoc: ^41.1.2
eslint-plugin-n: ^15.7.0
eslint-plugin-prettier: ^4.2.1
eslint-plugin-promise: ^6.1.1
jest: ^29.5.0
prettier: ^2.7.1
prettier-plugin-packagejson: ^2.2.11
rimraf: ^3.0.2
ts-jest: ^29.1.0
typescript: ^4.7.4
languageName: unknown
linkType: soft

"socket.io-adapter@npm:~2.5.2":
version: 2.5.5
resolution: "socket.io-adapter@npm:2.5.5"
Expand Down
Loading