Skip to content

Commit

Permalink
Drop no longer used events (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
cthulhu-rider committed May 5, 2023
2 parents 6ed3c71 + 47cc247 commit 7d21ee3
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 61 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 0 additions & 28 deletions container/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions netmap/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions reputation/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 2 additions & 7 deletions reputation/reputation_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)

Expand Down
8 changes: 0 additions & 8 deletions subnet/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d21ee3

Please sign in to comment.