status-go/services/permissions
Pedro Pombeiro c8a911ebd1 Use goimports instead of gofmt 2020-01-06 10:17:23 +01:00
..
README.md Permissions api (#1524) 2019-07-21 08:41:30 +03:00
api.go Create single database appdatase 2019-08-21 10:44:50 +03:00
api_test.go Use goimports instead of gofmt 2020-01-06 10:17:23 +01:00
database.go Create single database appdatase 2019-08-21 10:44:50 +03:00
service.go Create single database appdatase 2019-08-21 10:44:50 +03:00

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.