Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify permissions in contract manifests #96

Merged
merged 1 commit into from
Jun 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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