-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/initial-validators-ending' into …
…initial-validators-ending-e2e
- Loading branch information
Showing
18 changed files
with
568 additions
and
180 deletions.
There are no files selected for viewing
85 changes: 74 additions & 11 deletions
85
abi-bindings/go/staking/ERC20TokenStakingManager/ERC20TokenStakingManager.go
Large diffs are not rendered by default.
Oops, something went wrong.
85 changes: 74 additions & 11 deletions
85
abi-bindings/go/staking/NativeTokenStakingManager/NativeTokenStakingManager.go
Large diffs are not rendered by default.
Oops, something went wrong.
85 changes: 74 additions & 11 deletions
85
abi-bindings/go/staking/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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,7 @@ import {SafeERC20TransferFrom} from "@utilities/SafeERC20TransferFrom.sol"; | |
import {SafeERC20} from "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol"; | ||
import {ICMInitializable} from "../utilities/ICMInitializable.sol"; | ||
import {PoSValidatorManager} from "./PoSValidatorManager.sol"; | ||
import { | ||
PoSValidatorManagerSettings, | ||
PoSValidatorRequirements | ||
} from "./interfaces/IPoSValidatorManager.sol"; | ||
import {PoSValidatorManagerSettings} from "./interfaces/IPoSValidatorManager.sol"; | ||
import {ValidatorRegistrationInput} from "./interfaces/IValidatorManager.sol"; | ||
|
||
contract ERC20TokenStakingManager is | ||
|
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 |
---|---|---|
|
@@ -11,10 +11,7 @@ import {Initializable} from | |
"@openzeppelin/[email protected]/proxy/utils/Initializable.sol"; | ||
import {ICMInitializable} from "../utilities/ICMInitializable.sol"; | ||
import {PoSValidatorManager} from "./PoSValidatorManager.sol"; | ||
import { | ||
PoSValidatorManagerSettings, | ||
PoSValidatorRequirements | ||
} from "./interfaces/IPoSValidatorManager.sol"; | ||
import {PoSValidatorManagerSettings} from "./interfaces/IPoSValidatorManager.sol"; | ||
import {ValidatorRegistrationInput} from "./interfaces/IValidatorManager.sol"; | ||
|
||
contract NativeTokenStakingManager is | ||
|
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
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 |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
|
||
// SPDX-License-Identifier: Ecosystem | ||
|
||
import {EnumerableSet} from "@openzeppelin/[email protected]/utils/structs/EnumerableSet.sol"; | ||
|
||
pragma solidity 0.8.25; | ||
|
||
enum ValidatorStatus { | ||
|
@@ -28,14 +26,16 @@ struct Validator { | |
|
||
struct ValidatorChurnPeriod { | ||
uint256 startedAt; | ||
uint64 initialStake; | ||
uint256 initialWeight; | ||
uint256 totalWeight; // TODO add initial validator set to total weight. | ||
uint64 churnAmount; | ||
} | ||
|
||
struct ValidatorManagerSettings { | ||
bytes32 pChainBlockchainID; | ||
bytes32 subnetID; | ||
uint8 maximumHourlyChurn; | ||
uint64 churnPeriodSeconds; | ||
uint8 maximumChurnPercentage; | ||
} | ||
|
||
struct SubnetConversionData { | ||
|
Oops, something went wrong.