Skip to content

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

string scannerNodeVersion

Version of the scanner image software the network expects (IPFS hash) Starts empty

scannerNodeBetaVersion

string scannerNodeBetaVersion

Version of the scanner image software for pre release version (IPFS hash) Starts empty

version

string version

Contract version

ScannerNodeVersionUpdated

event ScannerNodeVersionUpdated(string newVersion, string oldVersion)

ScannerNodeBetaVersionUpdated

event ScannerNodeBetaVersionUpdated(string newVersion, string oldVersion)

SameScannerNodeVersion

error SameScannerNodeVersion()

constructor

constructor(address forwarder) public

initialize

function initialize(address __manager) public

Initializer method, access point to initialize inheritance tree.

Name Type Description
__manager address address of AccessManager.

setScannerNodeVersion

function setScannerNodeVersion(string _version) public

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

function setScannerNodeBetaVersion(string _version) public

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.

__gap

uint256[48] __gap