2021-11-24 17:26:54 +00:00
|
|
|
/*
|
2022-04-14 11:56:51 +00:00
|
|
|
Subnet contract is a contract deployed in NeoFS sidechain.
|
2021-11-24 17:26:54 +00:00
|
|
|
|
|
|
|
Subnet contract stores and manages NeoFS subnetwork states. It allows registering
|
2022-04-14 11:56:51 +00:00
|
|
|
and deleting subnetworks, limiting access to them, and defining a list of the Storage
|
2021-11-24 17:26:54 +00:00
|
|
|
Nodes that can be included in them.
|
|
|
|
|
|
|
|
Contract notifications
|
|
|
|
|
2022-04-14 11:56:51 +00:00
|
|
|
Put notification. This notification is produced when a new subnetwork is
|
2021-11-24 17:26:54 +00:00
|
|
|
registered by invoking Put method.
|
|
|
|
|
|
|
|
Put
|
|
|
|
- name: id
|
|
|
|
type: ByteArray
|
|
|
|
- name: ownerKey
|
|
|
|
type: PublicKey
|
|
|
|
- name: info
|
|
|
|
type: ByteArray
|
|
|
|
|
|
|
|
Delete notification. This notification is produced when some subnetwork is
|
|
|
|
deleted by invoking Delete method.
|
|
|
|
|
|
|
|
Delete
|
|
|
|
- name: id
|
|
|
|
type: ByteArray
|
|
|
|
|
|
|
|
RemoveNode notification. This notification is produced when some node is deleted
|
|
|
|
by invoking RemoveNode method.
|
|
|
|
|
|
|
|
RemoveNode
|
|
|
|
- name: subnetID
|
|
|
|
type: ByteArray
|
|
|
|
- name: node
|
|
|
|
type: PublicKey
|
|
|
|
*/
|
|
|
|
package subnet
|