We should add a require parameter for wallet_installPlugins so that domains can request that a specific version of a plugin is installed. The user must install (or already have) a version of the plugin compatible with the semver string value of the require key in the request object. This probably requires proper plugin version management before we can meaningfully implement it.
We should add a
require
parameter forwallet_installPlugins
so that domains can request that a specific version of a plugin is installed. The user must install (or already have) a version of the plugin compatible with the semver string value of therequire
key in the request object. This probably requires proper plugin version management before we can meaningfully implement it.Similarly, a
require:boolean
parameter should also be added torpc-cap
for permissions requests: https://github.com/MetaMask/rpc-cap/issues/70Examples: