2021-11-24 17:26:54 +00:00
|
|
|
/*
|
2023-01-11 07:52:06 +00:00
|
|
|
Subnet contract is a contract deployed in FrostFS sidechain.
|
2021-11-24 17:26:54 +00:00
|
|
|
|
2023-01-11 07:52:06 +00:00
|
|
|
Subnet contract stores and manages FrostFS 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.
|
|
|
|
|
2022-12-12 19:59:13 +00:00
|
|
|
# Contract notifications
|
2021-11-24 17:26:54 +00:00
|
|
|
|
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.
|
|
|
|
|
2022-12-12 19:59:13 +00:00
|
|
|
Put
|
|
|
|
- name: id
|
|
|
|
type: ByteArray
|
|
|
|
- name: ownerKey
|
|
|
|
type: PublicKey
|
|
|
|
- name: info
|
|
|
|
type: ByteArray
|
2021-11-24 17:26:54 +00:00
|
|
|
|
|
|
|
Delete notification. This notification is produced when some subnetwork is
|
|
|
|
deleted by invoking Delete method.
|
|
|
|
|
2022-12-12 19:59:13 +00:00
|
|
|
Delete
|
|
|
|
- name: id
|
|
|
|
type: ByteArray
|
2021-11-24 17:26:54 +00:00
|
|
|
|
|
|
|
RemoveNode notification. This notification is produced when some node is deleted
|
|
|
|
by invoking RemoveNode method.
|
|
|
|
|
2022-12-12 19:59:13 +00:00
|
|
|
RemoveNode
|
|
|
|
- name: subnetID
|
|
|
|
type: ByteArray
|
|
|
|
- name: node
|
|
|
|
type: PublicKey
|
2021-11-24 17:26:54 +00:00
|
|
|
*/
|
|
|
|
package subnet
|