[#96] *: Specify permissions in contract manifests

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-06-23 19:56:56 +03:00 committed by Alex Vanin
parent 14382d701c
commit 01b12bcd56
10 changed files with 20 additions and 0 deletions

View file

@ -1,2 +1,4 @@
name: "NeoFS Alphabet"
safemethods: ["gas", "neo", "name", "version"]
permissions:
- methods: ["update", "transfer", "vote"]

View file

@ -1,2 +1,4 @@
name: "NeoFS Audit"
safemethods: ["get", "list", "listByEpoch", "listByCID", "listByNode", "version"]
permissions:
- methods: ["update"]

View file

@ -1,6 +1,8 @@
name: "NeoFS Balance"
supportedstandards: ["NEP-17"]
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply", "version"]
permissions:
- methods: ["update"]
events:
- name: Lock
parameters:

View file

@ -1,5 +1,7 @@
name: "NeoFS Container"
safemethods: ["get", "owner", "list", "eACL", "getContainerSize", "listContainerSizes", "version"]
permissions:
- methods: ["update", "addKey", "transferX"]
events:
- name: containerPut
parameters:

View file

@ -1,5 +1,7 @@
name: "NeoFS"
safemethods: ["alphabetList", "alphabetAddress", "innerRingCandidates", "config", "listConfig", "version"]
permissions:
- methods: ["update", "transfer"]
events:
- name: Deposit
parameters:

View file

@ -1,2 +1,4 @@
name: "NeoFS ID"
safemethods: ["key", "version"]
permissions:
- methods: ["update"]

View file

@ -1,5 +1,7 @@
name: "NeoFS Netmap"
safemethods: ["innerRingList", "epoch", "netmap", "netmapCandidates", "snapshot", "snapshotByEpoch", "config", "listConfig", "version"]
permissions:
- methods: ["update", "newEpoch"]
events:
- name: AddPeer
parameters:

View file

@ -1,2 +1,4 @@
name: "NeoFS Multi Signature Processing"
safemethods: ["verify", "version"]
permissions:
- methods: ["update"]

View file

@ -1,2 +1,4 @@
name: "NeoFS Notary Proxy"
safemethods: ["verify", "version"]
permissions:
- methods: ["update"]

View file

@ -1,5 +1,7 @@
name: "NeoFS Reputation"
safemethods: ["get, getByID, listByEpoch"]
permissions:
- methods: ["update"]
events:
- name: reputationPut
parameters: