0.0.8 • Published 1 year ago

@open-defi-notification-protocol/widget v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Open DeFi Notification Protocol Widget

This package contains a button widget to be integrated on a project's web app to allow its users to quickly setup their on-chain event notifications, download the notifications mobile app and get an easy QR for quick setup.

Implementation notes

  1. include this package in your project
  2. create an instance of the class ODNP (open defi notification protocol).
const odnp = new ODNP();
  1. on load of your project call the init function.
odnp.init();
  1. create a button to open the popup that shows the instructions to the user.
  2. assign the onclick event of that button to the show function, passing the user wallet address and the project identifier on the Open DeFi Notification Protocol.

odnp.show('0xC8da773F54Ce6fcffFd5B8cC1F76542D2B75c412','projectId');
0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

3 years ago