2021-07-22 11:37:52 +00:00
|
|
|
/*
|
2022-04-14 11:56:51 +00:00
|
|
|
Netmap contract is a contract deployed in NeoFS sidechain.
|
2021-07-22 11:37:52 +00:00
|
|
|
|
|
|
|
Netmap contract stores and manages NeoFS network map, Storage node candidates
|
|
|
|
and epoch number counter. In notary disabled environment, contract also stores
|
2022-04-14 11:56:51 +00:00
|
|
|
a list of Inner Ring node keys.
|
2021-07-22 11:37:52 +00:00
|
|
|
|
|
|
|
Contract notifications
|
|
|
|
|
2022-04-14 11:56:51 +00:00
|
|
|
AddPeer notification. This notification is produced when a Storage node sends
|
|
|
|
a bootstrap request by invoking AddPeer method.
|
2021-07-22 11:37:52 +00:00
|
|
|
|
|
|
|
AddPeer
|
|
|
|
- name: nodeInfo
|
|
|
|
type: ByteArray
|
|
|
|
|
2022-04-14 11:56:51 +00:00
|
|
|
UpdateState notification. This notification is produced when a Storage node wants
|
|
|
|
to change its state (go offline) by invoking UpdateState method. Supported
|
2021-07-22 11:37:52 +00:00
|
|
|
states: (2) -- offline.
|
|
|
|
|
|
|
|
UpdateState
|
|
|
|
- name: state
|
|
|
|
type: Integer
|
|
|
|
- name: publicKey
|
|
|
|
type: PublicKey
|
|
|
|
|
2022-04-14 11:56:51 +00:00
|
|
|
NewEpoch notification. This notification is produced when a new epoch is applied
|
2021-07-22 11:37:52 +00:00
|
|
|
in the network by invoking NewEpoch method.
|
|
|
|
|
|
|
|
NewEpoch
|
|
|
|
- name: epoch
|
|
|
|
type: Integer
|
|
|
|
*/
|
2021-07-04 11:08:37 +00:00
|
|
|
package netmap
|