[#96] *: Specify permissions in contract manifests
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
14382d701c
commit
01b12bcd56
10 changed files with 20 additions and 0 deletions
|
@ -1,2 +1,4 @@
|
||||||
name: "NeoFS Alphabet"
|
name: "NeoFS Alphabet"
|
||||||
safemethods: ["gas", "neo", "name", "version"]
|
safemethods: ["gas", "neo", "name", "version"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update", "transfer", "vote"]
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
name: "NeoFS Audit"
|
name: "NeoFS Audit"
|
||||||
safemethods: ["get", "list", "listByEpoch", "listByCID", "listByNode", "version"]
|
safemethods: ["get", "list", "listByEpoch", "listByCID", "listByNode", "version"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update"]
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
name: "NeoFS Balance"
|
name: "NeoFS Balance"
|
||||||
supportedstandards: ["NEP-17"]
|
supportedstandards: ["NEP-17"]
|
||||||
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply", "version"]
|
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply", "version"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update"]
|
||||||
events:
|
events:
|
||||||
- name: Lock
|
- name: Lock
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
name: "NeoFS Container"
|
name: "NeoFS Container"
|
||||||
safemethods: ["get", "owner", "list", "eACL", "getContainerSize", "listContainerSizes", "version"]
|
safemethods: ["get", "owner", "list", "eACL", "getContainerSize", "listContainerSizes", "version"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update", "addKey", "transferX"]
|
||||||
events:
|
events:
|
||||||
- name: containerPut
|
- name: containerPut
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
name: "NeoFS"
|
name: "NeoFS"
|
||||||
safemethods: ["alphabetList", "alphabetAddress", "innerRingCandidates", "config", "listConfig", "version"]
|
safemethods: ["alphabetList", "alphabetAddress", "innerRingCandidates", "config", "listConfig", "version"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update", "transfer"]
|
||||||
events:
|
events:
|
||||||
- name: Deposit
|
- name: Deposit
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
name: "NeoFS ID"
|
name: "NeoFS ID"
|
||||||
safemethods: ["key", "version"]
|
safemethods: ["key", "version"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update"]
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
name: "NeoFS Netmap"
|
name: "NeoFS Netmap"
|
||||||
safemethods: ["innerRingList", "epoch", "netmap", "netmapCandidates", "snapshot", "snapshotByEpoch", "config", "listConfig", "version"]
|
safemethods: ["innerRingList", "epoch", "netmap", "netmapCandidates", "snapshot", "snapshotByEpoch", "config", "listConfig", "version"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update", "newEpoch"]
|
||||||
events:
|
events:
|
||||||
- name: AddPeer
|
- name: AddPeer
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
name: "NeoFS Multi Signature Processing"
|
name: "NeoFS Multi Signature Processing"
|
||||||
safemethods: ["verify", "version"]
|
safemethods: ["verify", "version"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update"]
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
name: "NeoFS Notary Proxy"
|
name: "NeoFS Notary Proxy"
|
||||||
safemethods: ["verify", "version"]
|
safemethods: ["verify", "version"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update"]
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
name: "NeoFS Reputation"
|
name: "NeoFS Reputation"
|
||||||
safemethods: ["get, getByID, listByEpoch"]
|
safemethods: ["get, getByID, listByEpoch"]
|
||||||
|
permissions:
|
||||||
|
- methods: ["update"]
|
||||||
events:
|
events:
|
||||||
- name: reputationPut
|
- name: reputationPut
|
||||||
parameters:
|
parameters:
|
||||||
|
|
Loading…
Reference in a new issue