diff --git a/container/config.yml b/container/config.yml index 2bf9d97..0e885ba 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/container/container_contract.go b/container/container_contract.go index 709fd11..34c24ff 100644 --- a/container/container_contract.go +++ b/container/container_contract.go @@ -177,7 +177,7 @@ func Update(script []byte, manifest []byte, data interface{}) { } // Put method creates a new container if it has been invoked by Alphabet nodes -// of the Inner Ring. Otherwise, it produces containerPut notification. +// of the Inner Ring. // // Container should be a stable marshaled Container structure from API. // Signature is a RFC6979 signature of the Container. @@ -303,8 +303,7 @@ func checkNiceNameAvailable(nnsContractAddr interop.Hash160, domain string) bool } // Delete method removes a container from the contract storage if it has been -// invoked by Alphabet nodes of the Inner Ring. Otherwise, it produces -// containerDelete notification. +// invoked by Alphabet nodes of the Inner Ring. // // Signature is a RFC6979 signature of the container ID. // Token is optional and should be a stable marshaled SessionToken structure from @@ -407,8 +406,7 @@ func List(owner []byte) [][]byte { } // SetEACL method sets a new extended ACL table related to the contract -// if it was invoked by Alphabet nodes of the Inner Ring. Otherwise, it produces -// setEACL notification. +// if it was invoked by Alphabet nodes of the Inner Ring. // // EACL should be a stable marshaled EACLTable structure from API. // Signature is a RFC6979 signature of the Container. diff --git a/container/doc.go b/container/doc.go index a664234..7cddfc8 100644 --- a/container/doc.go +++ b/container/doc.go @@ -9,47 +9,6 @@ the same arguments. # Contract notifications -containerPut notification. This notification is produced when a user wants to -create a new container. Alphabet nodes of the Inner Ring catch the notification and -validate container data, signature and token if present. - - containerPut: - - name: container - type: ByteArray - - name: signature - type: Signature - - name: publicKey - type: PublicKey - - name: token - type: ByteArray - -containerDelete notification. This notification is produced when a container owner -wants to delete a container. Alphabet nodes of the Inner Ring catch the notification -and validate container ownership, signature and token if present. - - containerDelete: - - name: containerID - type: ByteArray - - name: signature - type: Signature - - name: token - type: ByteArray - -setEACL notification. This notification is produced when a container owner wants -to update an extended ACL of a container. Alphabet nodes of the Inner Ring catch -the notification and validate container ownership, signature and token if -present. - - setEACL: - - name: eACL - type: ByteArray - - name: signature - type: Signature - - name: publicKey - type: PublicKey - - name: token - type: ByteArray - StartEstimation notification. This notification is produced when Storage nodes should exchange estimation values of container sizes among other Storage nodes.