Skip to content

Commit

Permalink
[#96] *: Specify permissions in contract manifests
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Vanin <[email protected]>
  • Loading branch information
alexvanin committed Jun 24, 2021
1 parent 14382d7 commit 01b12bc
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alphabet/config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
name: "NeoFS Alphabet"
safemethods: ["gas", "neo", "name", "version"]
permissions:
- methods: ["update", "transfer", "vote"]
2 changes: 2 additions & 0 deletions audit/config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
name: "NeoFS Audit"
safemethods: ["get", "list", "listByEpoch", "listByCID", "listByNode", "version"]
permissions:
- methods: ["update"]
2 changes: 2 additions & 0 deletions balance/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: "NeoFS Balance"
supportedstandards: ["NEP-17"]
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply", "version"]
permissions:
- methods: ["update"]
events:
- name: Lock
parameters:
Expand Down
2 changes: 2 additions & 0 deletions container/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: "NeoFS Container"
safemethods: ["get", "owner", "list", "eACL", "getContainerSize", "listContainerSizes", "version"]
permissions:
- methods: ["update", "addKey", "transferX"]
events:
- name: containerPut
parameters:
Expand Down
2 changes: 2 additions & 0 deletions neofs/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: "NeoFS"
safemethods: ["alphabetList", "alphabetAddress", "innerRingCandidates", "config", "listConfig", "version"]
permissions:
- methods: ["update", "transfer"]
events:
- name: Deposit
parameters:
Expand Down
2 changes: 2 additions & 0 deletions neofsid/config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
name: "NeoFS ID"
safemethods: ["key", "version"]
permissions:
- methods: ["update"]
2 changes: 2 additions & 0 deletions netmap/config.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions processing/config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
name: "NeoFS Multi Signature Processing"
safemethods: ["verify", "version"]
permissions:
- methods: ["update"]
2 changes: 2 additions & 0 deletions proxy/config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
name: "NeoFS Notary Proxy"
safemethods: ["verify", "version"]
permissions:
- methods: ["update"]
2 changes: 2 additions & 0 deletions reputation/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: "NeoFS Reputation"
safemethods: ["get, getByID, listByEpoch"]
permissions:
- methods: ["update"]
events:
- name: reputationPut
parameters:
Expand Down

0 comments on commit 01b12bc

Please sign in to comment.