@pushprotocol/snap

1.1.13 • Public • Published

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-v1 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)

Readme

Keywords

none

Package Sidebar

Install

npm i @pushprotocol/snap

Weekly Downloads

30

Version

1.1.13

License

GNU General Public License v2.0

Unpacked Size

881 kB

Total Files

7

Last publish

Collaborators

  • rohit.push.org
  • aman0035
  • shadowprodigy