You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@pushprotocol/snap

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pushprotocol/snap

Get Push Notifications directly in your MetaMask wallet!

1.1.13
latest
Source
npmnpm
Version published
Weekly downloads
10
-80.77%
Maintainers
0
Weekly downloads
 
Created
Source

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)

FAQs

Package last updated on 22 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts