diff --git a/CHANGELOG.md b/CHANGELOG.md index d354e209..7505cfe5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Changelog for NeoFS Contract ### Updated ### Removed +- old unused (notary-disabled) events ### Fixed - migration of non-notary network to notarized one with stale votes diff --git a/container/config.yml b/container/config.yml index 73f77126..026efa88 100644 --- a/container/config.yml +++ b/container/config.yml @@ -4,44 +4,16 @@ permissions: - methods: ["update", "addKey", "transferX", "register", "addRecord", "deleteRecords"] events: - - name: containerPut - parameters: - - name: container - type: ByteArray - - name: signature - type: Signature - - name: publicKey - type: PublicKey - - name: token - type: ByteArray - name: PutSuccess parameters: - name: containerID type: Hash256 - name: publicKey type: PublicKey - - name: containerDelete - parameters: - - name: containerID - type: ByteArray - - name: signature - type: Signature - - name: token - type: ByteArray - name: DeleteSuccess parameters: - name: containerID type: ByteArray - - name: setEACL - parameters: - - name: eACL - type: ByteArray - - name: signature - type: Signature - - name: publicKey - type: PublicKey - - name: token - type: ByteArray - name: SetEACLSuccess parameters: - name: containerID diff --git a/netmap/config.yml b/netmap/config.yml index 407e7f68..4cfe858b 100644 --- a/netmap/config.yml +++ b/netmap/config.yml @@ -3,20 +3,10 @@ safemethods: ["innerRingList", "epoch", "netmap", "netmapCandidates", "snapshot" permissions: - methods: ["update", "newEpoch"] events: - - name: AddPeer - parameters: - - name: nodeInfo - type: ByteArray - name: AddPeerSuccess parameters: - name: publicKey type: PublicKey - - name: UpdateState - parameters: - - name: state - type: Integer - - name: publicKey - type: PublicKey - name: UpdateStateSuccess parameters: - name: publicKey diff --git a/reputation/config.yml b/reputation/config.yml index ce8ded01..b68ec6ad 100644 --- a/reputation/config.yml +++ b/reputation/config.yml @@ -3,11 +3,3 @@ safemethods: ["get", "getByID", "listByEpoch"] permissions: - methods: ["update"] events: - - name: reputationPut - parameters: - - name: epoch - type: Integer - - name: peerID - type: ByteArray - - name: value - type: ByteArray diff --git a/reputation/reputation_contract.go b/reputation/reputation_contract.go index 4e597aa3..60c2f2d1 100644 --- a/reputation/reputation_contract.go +++ b/reputation/reputation_contract.go @@ -85,7 +85,7 @@ func Update(script []byte, manifest []byte, data interface{}) { } // Put method saves DataAuditResult in contract storage. It can be invoked only by -// Inner Ring nodes. It does not require multisignature invocations. +// storage nodes with Alphabet assistance (multisignature witness). // // Epoch is the epoch number when DataAuditResult structure was generated. // PeerID contains public keys of the Inner Ring node that has produced DataAuditResult. @@ -94,12 +94,7 @@ func Put(epoch int, peerID []byte, value []byte) { ctx := storage.GetContext() multiaddr := common.AlphabetAddress() - alphabetCall := runtime.CheckWitness(multiaddr) - - if !alphabetCall { - runtime.Notify("reputationPut", epoch, peerID, value) - return - } + common.CheckAlphabetWitness(multiaddr) id := storageID(epoch, peerID) diff --git a/subnet/config.yml b/subnet/config.yml index a73f086f..eae19734 100644 --- a/subnet/config.yml +++ b/subnet/config.yml @@ -3,14 +3,6 @@ safemethods: ["version"] permissions: - methods: ["update"] events: - - name: Put - parameters: - - name: id - type: ByteArray - - name: ownerKey - type: PublicKey - - name: info - type: ByteArray - name: Delete parameters: - name: id