Skip to content

Commit

Permalink
Reorganize Validator struct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ committed Oct 31, 2024
1 parent f2cf506 commit 5e22990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions contracts/interfaces/ISFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ interface ISFC {
view
returns (
uint256 status,
uint256 deactivatedTime,
uint256 deactivatedEpoch,
uint256 receivedStake,
uint256 createdEpoch,
uint256 createdTime,
address auth
address auth,
uint256 deactivatedTime,
uint256 deactivatedEpoch
);

function getValidatorID(address) external view returns (uint256);
Expand Down
4 changes: 2 additions & 2 deletions contracts/sfc/SFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ contract SFC is Initializable, Ownable, Version {
*/
struct Validator {
uint256 status;
uint256 deactivatedTime;
uint256 deactivatedEpoch;
uint256 receivedStake; // from all delegators (weight of the validator)
uint256 createdEpoch;
uint256 createdTime;
address auth; // self-stake delegator
uint256 deactivatedTime;
uint256 deactivatedEpoch;
}

NodeDriverAuth internal node;
Expand Down

0 comments on commit 5e22990

Please sign in to comment.