Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultStakedBalance = "0x84595161401484A000000" // 10_000_000 DC //nolint: lll StakingSCBytecode = "" /* 15712-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func PredeploySC ¶
func PredeploySC(params PredeployParams) (*chain.GenesisAccount, error)
PredeploySC is a helper method for setting up the ValidatorSet smart contract account, using the passed in validators as pre-staked validators
Types ¶
type PredeployParams ¶
PredeployParams contains the values used to predeploy the PoS staking contract
type StorageIndexes ¶
type StorageIndexes struct { OwnerIndex []byte // address ThresholdIndex []byte // uint256 MinimumIndex []byte // uint256 ValidatorsIndex []byte // []address ValidatorsArraySizeIndex []byte // []address size AddressToIsValidatorIndex []byte // mapping(address => bool) AddressToStakedAmountIndex []byte // mapping(address => uint256) AddressToValidatorIndexIndex []byte // mapping(address => uint256) StakedAmountIndex []byte // uint256 }
StorageIndexes is a wrapper for different storage indexes that need to be modified
Click to show internal directories.
Click to hide internal directories.