0.1.9 • Published 11 months ago

push-notifier-v1 v0.1.9

Weekly downloads
-
License
(MIT-0 OR Apache-...
Repository
github
Last release
11 months ago

Push Protocol Snap

A MetaMask Snap for delivering channel notifications and chat notifications right in your metamask wallet

Run Locally

Clone the project

  git clone https://github.com/ethereum-push-notification-service/push-protocol-snaps

Go to the snap directory

  cd snap

Install dependencies

  yarn install

Start the server

  yarn start

Go to the dapp directory

  cd push-snap-site

Install dependencies

  npm i

Start the server

  npm run dev

Using the npm package

Make the following changes in the dapp

  • Change all occurrences of defaultSnapOrigin from local:http://localhost:8080 to npm:push-notifier in the push-snap-site codebase

Permissions asked by the Snap

  • Local-storage : To store the addresses to send notifications and pgp private key to send PUSH Chat notifications
  • Periodic actions (Cron job) : This include sending notifications every minute to the wallet
  • Dialog Boxes : This includes Popups for showing notifications on screen and initial screen
  • Internet Access : The snap has internet access and can make api calls using fetch()
  • Ethereum Provider : This allows the snap to access the first connected account in metamask (🚨 This doesn’t not have access to your funds neither can do transaction on your behalf)
0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago