From cf9ec893926ce5495c5fffca3a51906830124921 Mon Sep 17 00:00:00 2001 From: Vadim Yavorsky Date: Tue, 14 Nov 2023 12:14:47 +0200 Subject: [PATCH 1/6] Add last change ip time to INodes --- contracts/INodes.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/INodes.sol b/contracts/INodes.sol index 680ef4a..6defc8e 100644 --- a/contracts/INodes.sol +++ b/contracts/INodes.sol @@ -38,6 +38,7 @@ interface INodes { uint finishTime; NodeStatus status; uint validatorId; + uint lastChangeIpTime; } // struct to note which Nodes and which number of Nodes owned by user From 49debd7d6275b6b45b90c5ce531956c63e10ff26 Mon Sep 17 00:00:00 2001 From: Vadim Yavorsky Date: Tue, 14 Nov 2023 12:26:49 +0200 Subject: [PATCH 2/6] Add last change ip time to INodes --- contracts/INodes.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/INodes.sol b/contracts/INodes.sol index 6defc8e..88718d7 100644 --- a/contracts/INodes.sol +++ b/contracts/INodes.sol @@ -38,7 +38,7 @@ interface INodes { uint finishTime; NodeStatus status; uint validatorId; - uint lastChangeIpTime; + uint lastChangeIpTime; } // struct to note which Nodes and which number of Nodes owned by user From ed14187fdba278eae85788eb79c2f8cbba2a6b71 Mon Sep 17 00:00:00 2001 From: Vadim Yavorsky Date: Tue, 14 Nov 2023 12:52:06 +0200 Subject: [PATCH 3/6] Add getLastChangeIpTime --- contracts/INodes.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/INodes.sol b/contracts/INodes.sol index 88718d7..c628528 100644 --- a/contracts/INodes.sol +++ b/contracts/INodes.sol @@ -38,7 +38,6 @@ interface INodes { uint finishTime; NodeStatus status; uint validatorId; - uint lastChangeIpTime; } // struct to note which Nodes and which number of Nodes owned by user @@ -164,4 +163,5 @@ interface INodes { function isNodeExist(address from, uint nodeIndex) external view returns (bool); function isNodeActive(uint nodeIndex) external view returns (bool); function isNodeLeaving(uint nodeIndex) external view returns (bool); + function getLastChangeIpTime(uint nodeIndex) external view returns (uint); } From 44cad677e0282d81d3ca488ab3c3928c2aca5963 Mon Sep 17 00:00:00 2001 From: Vadim Yavorsky Date: Wed, 15 Nov 2023 13:09:51 +0200 Subject: [PATCH 4/6] Add NodeExtras --- contracts/INodes.sol | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contracts/INodes.sol b/contracts/INodes.sol index c628528..6cee352 100644 --- a/contracts/INodes.sol +++ b/contracts/INodes.sol @@ -60,7 +60,12 @@ interface INodes { uint16 nonce; string domainName; } - + + // struct for storing additional fields for Node + struct NodeExtras { + uint lastChangeIpTime; + } + /** * @dev Emitted when a node is created. */ From d52b623a0fdd9774447f5e0f31c8de835b8bfcd5 Mon Sep 17 00:00:00 2001 From: Vadim Yavorsky Date: Thu, 30 Nov 2023 20:10:19 +0200 Subject: [PATCH 5/6] Add rotation counter --- contracts/ISkaleDKG.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/ISkaleDKG.sol b/contracts/ISkaleDKG.sol index 494e9f5..dbc9f03 100644 --- a/contracts/ISkaleDKG.sol +++ b/contracts/ISkaleDKG.sol @@ -121,7 +121,8 @@ interface ISkaleDKG { bytes32 schainHash, uint nodeIndex, G2Point[] memory verificationVector, - KeyShare[] memory secretKeyContribution + KeyShare[] memory secretKeyContribution, + uint rotationCounter ) external; function complaintBadData(bytes32 schainHash, uint fromNodeIndex, uint toNodeIndex) external; From 3fc6f86dce241d8d042807e016ba37a4fc0f691d Mon Sep 17 00:00:00 2001 From: Dmytro Stebaiev Date: Wed, 20 Mar 2024 17:21:01 +0200 Subject: [PATCH 6/6] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 58d4393..d334ddb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@skalenetwork/skale-manager-interfaces", - "version": "2.1.0", + "version": "3.0.0", "description": "Definitions of interfaces needed to integrate with skale-manager smart contracts", "main": "index.js", "repository": "git@github.com:skalenetwork/skale-manager-interfaces.git",