ScannerNodeVersion
ScannerNodeVersion
Contract that will trigger software autoupdate of the Scanner Node software. Forta Governance, through SCANNER_VERSION_ROLE, will propose and approve updates and the nodes will listen to the resulting event, downloading the new version from IPFS. A similar system is provided for pre release version.
scannerNodeVersion
Version of the scanner image software the network expects (IPFS hash) Starts empty
scannerNodeBetaVersion
Version of the scanner image software for pre release version (IPFS hash) Starts empty
version
Contract version
ScannerNodeVersionUpdated
ScannerNodeBetaVersionUpdated
SameScannerNodeVersion
constructor
initialize
Initializer method, access point to initialize inheritance tree.
Name | Type | Description |
---|---|---|
__manager | address | address of AccessManager. |
setScannerNodeVersion
Signal to the Scanner Nodes that they have to update their binaries downloading the new version from IPFS, by emitting ScannerNodeVersionUpdated(newVersion, oldVersion).
restricted to SCANNER_VERSION_ROLE.
Name | Type | Description |
---|---|---|
_version | string | IPFS pointer to the new image. |
setScannerNodeBetaVersion
Signal to the Scanner Nodes that there is a new beta release downloadable from from IPFS, by emitting ScannerNodeVersionUpdated(newVersion, oldVersion).
restricted to SCANNER_BETA_VERSION_ROLE.
Name | Type | Description |
---|---|---|
_version | string | IPFS pointer to the new image. |