Open pajicf opened 1 year ago
I think this is not possible at the moment. the snap documentation explicitly mentions the limitation of snap on UI modification.
However, I tried to bake something using Snap-Notifications but, it seems there is no way to access the transactions history of Metamask through Snap.
Name of the project
L2 tx finality Metamask Snap
Project abstract
Create a Metamask Snap which will display finality of a TX on the Scroll Rollup inside the browser extension.
Specification
How does block finalisation process work on Scroll?
Scroll blocks are finalised on L1 in a multi-step process. Each L2 block will progress through the following three stages until it is finalised.
Problem
Metamask being primarily a wallet for the L1 (Ethereum) isn't aware of the other steps of tx finalisation other than them being executed by the node (sequencer). Users aren't aware what the status of their transaction is by just using the wallet.
Solution
Extend Metamask wallet using Snaps to be aware of complete tx finalisation process.
Useful Links
https://scroll.io/blog/architecture https://scroll.io/bridge https://metamask.io/snaps/