Permit all invocations of this type on this contract
See original GitHub issueDescribe the solution you’d like and the expected behavior
When a user is prompted to permit an invocation, provide a checkbox to “always permit this action for this contract”. If the user ticks the checkbox before approving the modal, then future invocations that will have prompt should instead be automatically approved.
Is your feature request related to a problem? Please describe.
There are some types of invocations that a user might always trust. An example would be invoking a “sendMessage” transaction in a chat app. Having to approve every single message being delivered via nOS would make this cumbersome.
Possible implementation / References
User setting should be saved in local storage.
The option to always approve invocations should be for a specific command on a specific smart contract (hash) on a specific network (e.g.: TestNet). If any of these three items does not match on a subsequent invocation request, then the user should still be prompted (and in turn given the option to auto-approve that invocation command as well).
Invocation occurs via the components under src/renderer/browser/components/RequestsProcessor/Invoke
. The index.js
container will need to be modified to automatically approve via onConfirm
and render immediately (to prevent chaining children in the HOC). That logic will need to appear before the withPrompt
HOC is called.
Additional context
nOS should be secure, but also convenient.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (8 by maintainers)
Top GitHub Comments
We’re planning to integrate new block events into the API, see #54
I would like to suggest an improvement for the way invocations are done. Invocations usually cost gas and the user might not be aware that it takes some time between invocation and the reflection of results. So, the user might try to make the same invocation multiple times. In order to save gas and possibly prevent bots: