Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultStakedBalance = "0x8AC7230489E80000" // 10 ETH //nolint: lll StakingSCBytecode = "" /* 9590-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func PadLeftOrTrim ¶
PadLeftOrTrim left-pads the passed in byte array to the specified size, or trims the array if it exceeds the passed in size
func PredeployStakingSC ¶
func PredeployStakingSC( validators []types.Address, ) (*chain.GenesisAccount, error)
PredeployStakingSC is a helper method for setting up the staking smart contract account, using the passed in validators as prestaked validators
Types ¶
type StorageIndexes ¶
type StorageIndexes struct { 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.