-
Notifications
You must be signed in to change notification settings - Fork 513
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
[core-v2.3.0-alpha.1] : Feature - Transaction notifications #1070
[core-v2.3.0-alpha.1] : Feature - Transaction notifications #1070
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve with a few comments!
@@ -3,7 +3,7 @@ | |||
"version": "2.0.2", | |||
"private": true, | |||
"workspaces": [ | |||
"./packages/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Adamj1232 What did removing the ./
prefix resolve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taylorjdawson Im not too sure, @aaronbarnardsound added that
packages/core/README.md
Outdated
- `Notification.link` - add link to hash | ||
- `Notification.onClick()` - notification body click event | ||
|
||
Notify can also be completely styled by using the CSS variables found below. These are setup to allow for maximum customization with base styling variables setting to global the global more themed styling (i.e. `--onboard-grey-600`) as well as a more precise component level styling available (`--notify-onboard-grey-600`) with the latter taking precedent if defined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are setup to allow for maximum customization with base styling variables setting to global the global more themed styling
@Adamj1232 this sentence is a little confusing I think 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sentence makes 0 sense, lol thanks for pointing that out!
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
…b.com:blocknative/onboard into feature/transaction-notifications
Description
This PR includes the new Transaction Notification feature that will act similar to Notify V1 in that when a wallet connects through Onboard a subscription will be setup through the new MultiChain SDK to watch and notify on all transactions associated with that address.
By default, is Account Center is enabled and there is a DApp ID notifications are enabled.
When switching chains the listener will continue to watch on the previous chain for 60 seconds to capture any remaining notifications and then the subscription will close on the previous chain for all connected accounts.
Notifications can be customized through 3 routes (all visible in the demo code):
onboard.state.actions.customNotifications
method which returns anupdate
anddismiss
method for further controlChecklist
package.json
is incremented following semantic versioning