openethereum/js/src/DappRequests
Amaury Martiny 570fc56af7 Optimize & group dapp requests (#7083)
* Group similar methods in same grouping

* Add a shell_getMethodGroups API

* Small code clean changes

* Fix bug dapp.name not showing

* Additional error handling

* Store sources in own map

* Remove observable variables where not needed

* Refactor code and fix bug dapp not showing on approve
2017-11-21 15:50:38 +01:00
..
RequestGroups Optimize & group dapp requests (#7083) 2017-11-21 15:50:38 +01:00
dappRequests.css Optimize & group dapp requests (#7083) 2017-11-21 15:50:38 +01:00
dappRequests.js Optimize & group dapp requests (#7083) 2017-11-21 15:50:38 +01:00
index.js Test-drive extensions, status first 2017-09-01 14:29:57 +02:00
methodGroups.js Optimize & group dapp requests (#7083) 2017-11-21 15:50:38 +01:00
README.md Optimize & group dapp requests (#7083) 2017-11-21 15:50:38 +01:00
store.js Optimize & group dapp requests (#7083) 2017-11-21 15:50:38 +01:00

Terminology used

To be clear with the terminology used in the code here:

  • a method is an allowed JSON-RPC api method or a shell method
  • a methodGroup is the grouping of similar methods (see methodGroups.js)
  • a permission is a boolean which tells if an app is allowed to call a method or not
  • a request is when an app prompts the shell to call a method
  • a requestGroup is an array of requests whose methods are in the same methodGroup