vegaprotocol/vegawallet-browser — reverse-engineered prompt
Reverse engineered prompt
Build me an experimental browser wallet extension for the Vega protocol that works in Chrome and Firefox. I want it to let people keep custody of their own keys, connect Vega dapps from the browser, and only approve connections or transactions after an explicit user confirmation in the extension popup.
It should expose a simple Vega API to websites once the page loads so a dapp can connect or disconnect the wallet, get the chain id, list keys, send a transaction, and listen for wallet events like disconnects or key changes. Please include the content script and in page bridge so a site can talk to the extension cleanly, plus support for basic JSON RPC messaging if that is already part of the design.
Make the extension buildable for both browsers, include a simple sample dapp to test the flow, and keep the warning that this is experimental and not for funds people cannot afford to lose. If anything is unclear, check the current Vega docs and browser extension docs online.
Want more depth? Deep Reverse