InitializerAuRa
contract InitializerAuRa
Used once on network startup and then destroyed. Needed for initializing upgradeable contracts since upgradeable contracts can't have constructors.
Source: contracts/InitializerAuRa.sol
Index
Reference
Functions
fallback
function (address[] _contracts, address _owner, address[] _miningAddresses, address[] _stakingAddresses, bool _firstValidatorIsUnremovable, uint256 _delegatorMinStake, uint256 _candidateMinStake, uint256 _stakingEpochDuration, uint256 _stakingEpochStartBlock, uint256 _stakeWithdrawDisallowPeriod, uint256 _collectRoundLength) public
- Parameters:
_contracts
- An array of the contracts: 0 is ValidatorSetAuRa, 1 is BlockRewardAuRa, 2 is RandomAuRa, 3 is StakingAuRa, 4 is TxPermission, 5 is Certifier._owner
- The contracts' owner._miningAddresses
- The array of initial validators' mining addresses._stakingAddresses
- The array of initial validators' staking addresses._firstValidatorIsUnremovable
- The boolean flag defining whether the first validator in the `_miningAddresses/_stakingAddresses` array is non-removable. Should be `false` for production network._delegatorMinStake
- The minimum allowed amount of delegator stake in Wei (see the `StakingAuRa` contract)._candidateMinStake
- The minimum allowed amount of candidate stake in Wei (see the `StakingAuRa` contract)._stakingEpochDuration
- The duration of a staking epoch in blocks (e.g., 120954 = 1 week for 5-seconds blocks in AuRa)._stakingEpochStartBlock
- The number of the first block of initial staking epoch (must be zero if the network is starting from genesis block)._stakeWithdrawDisallowPeriod
- The duration period (in blocks) at the end of a staking epoch during which participants cannot stake or withdraw their staking tokens (e.g., 4320 = 6 hours for 5-seconds blocks in AuRa)._collectRoundLength
- The length of a collection round in blocks (see the `RandomAuRa` contract).