MetaMask / rpc-cap

A module for adding an object-capabilities system to any JSON-RPC API as middleware for json-rpc-engine
ISC License
31 stars 32 forks source link

All permission at MetaMask #124

Closed VishalWaman closed 2 years ago

VishalWaman commented 3 years ago

Hi, I am looking to play around to enhance permission of metamask to enable all permission to send on "My behalf" below link has few steps which needs "Extracted metamask archive" can you please share this folder to complete below steps.

https://github.com/MetaMask/metamask-extension/blob/develop/docs/add-to-chrome.md https://eips.ethereum.org/EIPS/eip-2255

@rekmarks @danfinlay

VishalWaman commented 3 years ago

@danfinlay @rekmarks can you please guide.

brad-decker commented 3 years ago

@VishalWaman -- If you clone the metamask-extension repo locally and follow the steps in the readme to build the application from source, it'll produce the dist/ folder mentioned in the instructions that you linked to.

VishalWaman commented 3 years ago

Thanks @brad-decker we are looking for feature where we don’t want “approve” from user, it should be permission which is already given to Dapp

can you guide me to achieve this ?

Basically i want to use metamask without extensions just to make experience of my dapp easy

rekmarks commented 2 years ago

@VishalWaman, because we are going to archive this repo (new permission system implemented here) I am going to close this issue due to inactivity.

Before I do so, it seems that you are asking whether there is a permission that allows a dapp to send assets on behalf of the user. We have discussed adding such a permissions, and while we may do so at some undetermined point in the future, decided to delegate such functionality to to on-chain code for now.

As for your question re: pre-approving permissions for a particular dapp, we do not support or wish to support that functionality, although you could create a custom build of MetaMask to accomplish it by adding the corresponding state to initState in this file. See the new permission controller tests for what that state should look like.

If you have any further questions along these lines, I recommend creating an issue and tagging me on the main extension repository.