status-go/services/permissions
Ivan Belyakov 2df9df10ab fix(tests): moved test db setup to a common place 't/helpers', created
interface for initializing db, which is implemented for appdatabase and
walletdatabase. TBD for multiaccounts DB.
Unified DB initializion for all tests using helpers and new interface.
Reduced sqlcipher kdf iterations for all tests to 1.
2023-08-18 09:00:56 +02:00
..
README.md
api.go
api_test.go
database.go
service.go

README.md

Dapps permissions service

To enable:

{
  "PermissionsConfig": {
    "Enabled": true,
  },
  APIModules: "permissions"
}

API

permissions_addDappPermissions

Stores provided permissions for dapp. On update replaces previous version of the object.

{
  "dapp": "first",
  "permissions": [
    "r",
    "x"
  ]
}

permissions_getDappPermissions

Returns all permissions for dapps. Order is not deterministic.

permissions_deleteDappPermissions

Delete dapp by a name.