MferSafe's Browser extension

Latest Version

Version
0.0.3
Update
September 1, 2022
Size
26.81KiB
Developer
Category
Users
8
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
See more

MferSafe Extension

The general Dapp front-end will use their own web3 rpc to query the chain state via functions such as [eth_call], which always returns the real-word state we don't need.
In order to correctly simulate state mutation and let the frontend show the simulated state, we need to redirect [eth_*] function call to the MferSafe node to avoid inconsistencies between the state queried via the EIP1193 Provider and the RPC state built into the Dapp front-end.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "MferSafe", "description": "MferSafe's Browser extension", "version": "0.0.3", "icons": { "128": "logo/128x128.png" }, "action": { "default_title": "MferSafe", "default_popup": "popup/popup.html" }, "permissions": [ "storage" ], "host_permissions": [ "*://*/*" ], "background": { "service_worker": "background.js" }, "content_scripts": [ { "js": [ "content-script.js" ], "matches": [ "https://*/*", "http://*/*" ], "run_at": "document_start" } ], "web_accessible_resources": [ { "resources": [ "redir.js", "eip1193provider.js" ], "matches": [ "" ] } ]}
Read more

Similar Extensions