Closed rekmarks closed 2 years ago
Plugins have and will continue to have permitted access to categories of things that rpc-cap was not designed to handle, e.g. events, object APIs (global or otherwise) etc. For example, see how we handle listeners for internal MetaMask events, see: https://github.com/MetaMask/metamask-snaps-beta/commit/679c9251b82f63d4d75ee399bb0f5d00d0ec16da
rpc-cap
rpc-cap (or something else entirely) needs to add first-class support for object APIs using capnode or membranes. Until that extensive rewrite is done, we are stuck fitting a round peg in a square hole.
capnode
Related: #139
No longer relevant.
Plugins have and will continue to have permitted access to categories of things that
rpc-cap
was not designed to handle, e.g. events, object APIs (global or otherwise) etc. For example, see how we handle listeners for internal MetaMask events, see: https://github.com/MetaMask/metamask-snaps-beta/commit/679c9251b82f63d4d75ee399bb0f5d00d0ec16darpc-cap
(or something else entirely) needs to add first-class support for object APIs usingcapnode
or membranes. Until that extensive rewrite is done, we are stuck fitting a round peg in a square hole.Related: #139