-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'validator-manager' into M02-churn-tracker-abuse
- Loading branch information
Showing
8 changed files
with
178 additions
and
62 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
abi-bindings/go/validator-manager/ERC20TokenStakingManager/ERC20TokenStakingManager.go
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
abi-bindings/go/validator-manager/NativeTokenStakingManager/NativeTokenStakingManager.go
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
abi-bindings/go/validator-manager/PoAValidatorManager/PoAValidatorManager.go
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,8 @@ import {PoAValidatorManager} from "../PoAValidatorManager.sol"; | |
import {ICMInitializable} from "@utilities/ICMInitializable.sol"; | ||
import { | ||
ValidatorManagerSettings, | ||
ValidatorRegistrationInput | ||
ValidatorRegistrationInput, | ||
IValidatorManager | ||
} from "../interfaces/IValidatorManager.sol"; | ||
import {OwnableUpgradeable} from | ||
"@openzeppelin/[email protected]/access/OwnableUpgradeable.sol"; | ||
|
@@ -24,16 +25,7 @@ contract PoAValidatorManagerTest is ValidatorManagerTest { | |
function setUp() public override { | ||
ValidatorManagerTest.setUp(); | ||
|
||
app = new PoAValidatorManager(ICMInitializable.Allowed); | ||
app.initialize( | ||
ValidatorManagerSettings({ | ||
subnetID: DEFAULT_SUBNET_ID, | ||
churnPeriodSeconds: DEFAULT_CHURN_PERIOD, | ||
maximumChurnPercentage: DEFAULT_MAXIMUM_CHURN_PERCENTAGE | ||
}), | ||
address(this) | ||
); | ||
validatorManager = app; | ||
_setUp(); | ||
_mockGetBlockchainID(); | ||
_mockInitializeValidatorSet(); | ||
app.initializeValidatorSet(_defaultSubnetConversionData(), 0); | ||
|
@@ -73,6 +65,21 @@ contract PoAValidatorManagerTest is ValidatorManagerTest { | |
return app.initializeEndValidation(validationID); | ||
} | ||
|
||
function _setUp() internal override returns (IValidatorManager) { | ||
app = new PoAValidatorManager(ICMInitializable.Allowed); | ||
app.initialize( | ||
ValidatorManagerSettings({ | ||
subnetID: DEFAULT_SUBNET_ID, | ||
churnPeriodSeconds: DEFAULT_CHURN_PERIOD, | ||
maximumChurnPercentage: DEFAULT_MAXIMUM_CHURN_PERCENTAGE | ||
}), | ||
address(this) | ||
); | ||
validatorManager = app; | ||
|
||
return app; | ||
} | ||
|
||
// solhint-disable-next-line no-empty-blocks | ||
function _beforeSend(uint256 amount, address spender) internal virtual override {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters