Compare commits

...

1 commit

Author SHA1 Message Date
d1b203425c [#23] Remove unused notifications from container contract
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
2023-05-17 09:37:49 +03:00
3 changed files with 3 additions and 74 deletions

View file

@ -4,44 +4,16 @@ permissions:
- methods: ["update", "addKey", "transferX", - methods: ["update", "addKey", "transferX",
"register", "addRecord", "deleteRecords"] "register", "addRecord", "deleteRecords"]
events: events:
- name: containerPut
parameters:
- name: container
type: ByteArray
- name: signature
type: Signature
- name: publicKey
type: PublicKey
- name: token
type: ByteArray
- name: PutSuccess - name: PutSuccess
parameters: parameters:
- name: containerID - name: containerID
type: Hash256 type: Hash256
- name: publicKey - name: publicKey
type: PublicKey type: PublicKey
- name: containerDelete
parameters:
- name: containerID
type: ByteArray
- name: signature
type: Signature
- name: token
type: ByteArray
- name: DeleteSuccess - name: DeleteSuccess
parameters: parameters:
- name: containerID - name: containerID
type: ByteArray type: ByteArray
- name: setEACL
parameters:
- name: eACL
type: ByteArray
- name: signature
type: Signature
- name: publicKey
type: PublicKey
- name: token
type: ByteArray
- name: SetEACLSuccess - name: SetEACLSuccess
parameters: parameters:
- name: containerID - name: containerID

View file

@ -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 // 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. // Container should be a stable marshaled Container structure from API.
// Signature is a RFC6979 signature of the Container. // 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 // Delete method removes a container from the contract storage if it has been
// invoked by Alphabet nodes of the Inner Ring. Otherwise, it produces // invoked by Alphabet nodes of the Inner Ring.
// containerDelete notification.
// //
// Signature is a RFC6979 signature of the container ID. // Signature is a RFC6979 signature of the container ID.
// Token is optional and should be a stable marshaled SessionToken structure from // 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 // 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 // if it was invoked by Alphabet nodes of the Inner Ring.
// setEACL notification.
// //
// EACL should be a stable marshaled EACLTable structure from API. // EACL should be a stable marshaled EACLTable structure from API.
// Signature is a RFC6979 signature of the Container. // Signature is a RFC6979 signature of the Container.

View file

@ -9,47 +9,6 @@ the same arguments.
# Contract notifications # 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 StartEstimation notification. This notification is produced when Storage nodes
should exchange estimation values of container sizes among other Storage nodes. should exchange estimation values of container sizes among other Storage nodes.