From 01b12bcd560de0d7f94d56acae9bcec2e01ca75d Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 23 Jun 2021 19:56:56 +0300 Subject: [PATCH] [#96] *: Specify permissions in contract manifests Signed-off-by: Alex Vanin --- alphabet/config.yml | 2 ++ audit/config.yml | 2 ++ balance/config.yml | 2 ++ container/config.yml | 2 ++ neofs/config.yml | 2 ++ neofsid/config.yml | 2 ++ netmap/config.yml | 2 ++ processing/config.yml | 2 ++ proxy/config.yml | 2 ++ reputation/config.yml | 2 ++ 10 files changed, 20 insertions(+) diff --git a/alphabet/config.yml b/alphabet/config.yml index 06f2328..c1efd04 100644 --- a/alphabet/config.yml +++ b/alphabet/config.yml @@ -1,2 +1,4 @@ name: "NeoFS Alphabet" safemethods: ["gas", "neo", "name", "version"] +permissions: + - methods: ["update", "transfer", "vote"] diff --git a/audit/config.yml b/audit/config.yml index e452888..bc35cfb 100644 --- a/audit/config.yml +++ b/audit/config.yml @@ -1,2 +1,4 @@ name: "NeoFS Audit" safemethods: ["get", "list", "listByEpoch", "listByCID", "listByNode", "version"] +permissions: + - methods: ["update"] diff --git a/balance/config.yml b/balance/config.yml index e2be8b6..a3a045b 100644 --- a/balance/config.yml +++ b/balance/config.yml @@ -1,6 +1,8 @@ name: "NeoFS Balance" supportedstandards: ["NEP-17"] safemethods: ["balanceOf", "decimals", "symbol", "totalSupply", "version"] +permissions: + - methods: ["update"] events: - name: Lock parameters: diff --git a/container/config.yml b/container/config.yml index 0d37eee..8c00855 100644 --- a/container/config.yml +++ b/container/config.yml @@ -1,5 +1,7 @@ name: "NeoFS Container" safemethods: ["get", "owner", "list", "eACL", "getContainerSize", "listContainerSizes", "version"] +permissions: + - methods: ["update", "addKey", "transferX"] events: - name: containerPut parameters: diff --git a/neofs/config.yml b/neofs/config.yml index 6337992..cfeb49e 100644 --- a/neofs/config.yml +++ b/neofs/config.yml @@ -1,5 +1,7 @@ name: "NeoFS" safemethods: ["alphabetList", "alphabetAddress", "innerRingCandidates", "config", "listConfig", "version"] +permissions: + - methods: ["update", "transfer"] events: - name: Deposit parameters: diff --git a/neofsid/config.yml b/neofsid/config.yml index 53a6a5c..b3b7e2c 100644 --- a/neofsid/config.yml +++ b/neofsid/config.yml @@ -1,2 +1,4 @@ name: "NeoFS ID" safemethods: ["key", "version"] +permissions: + - methods: ["update"] diff --git a/netmap/config.yml b/netmap/config.yml index 212cd5f..a183ec8 100644 --- a/netmap/config.yml +++ b/netmap/config.yml @@ -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: diff --git a/processing/config.yml b/processing/config.yml index 87bb0ac..dced52b 100644 --- a/processing/config.yml +++ b/processing/config.yml @@ -1,2 +1,4 @@ name: "NeoFS Multi Signature Processing" safemethods: ["verify", "version"] +permissions: + - methods: ["update"] diff --git a/proxy/config.yml b/proxy/config.yml index a916a5f..27edbaf 100644 --- a/proxy/config.yml +++ b/proxy/config.yml @@ -1,2 +1,4 @@ name: "NeoFS Notary Proxy" safemethods: ["verify", "version"] +permissions: + - methods: ["update"] diff --git a/reputation/config.yml b/reputation/config.yml index 6204a44..7955d5e 100644 --- a/reputation/config.yml +++ b/reputation/config.yml @@ -1,5 +1,7 @@ name: "NeoFS Reputation" safemethods: ["get, getByID, listByEpoch"] +permissions: + - methods: ["update"] events: - name: reputationPut parameters: