Documentation ¶
Index ¶
- Variables
- func ParseAddressFromKey(args map[string]interface{}, key string) (common.Address, error)
- func ParseBigIntFromKey(args map[string]interface{}, key string) (*big.Int, error)
- func ParseStakeMsg(contractCaller common.Address, input []byte) (interface{}, error)
- func ValidateContractAddress(contractCaller common.Address, args map[string]interface{}, key string) (common.Address, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IsValidatorKey = crypto.Keccak256Hash([]byte(isValidatorKeyStr)) IsValidator = crypto.Keccak256Hash([]byte(isValidatorStr)) CollectRewardsTopic = crypto.Keccak256Hash([]byte(collectRewardsStr)) DelegateTopic = crypto.Keccak256Hash([]byte(delegateStr)) UnDelegateTopic = crypto.Keccak256Hash([]byte(unDelegateStr)) FirstElectionEpochKey = crypto.Keccak256Hash([]byte(firstElectionEpochStr)) )
keys used to retrieve staking related informatio
Functions ¶
func ParseAddressFromKey ¶
used for both delegatorAddress and validatorAddress
func ParseBigIntFromKey ¶
used for amounts
func ParseStakeMsg ¶
contractCaller (and not Contract) is used here to avoid import cycle
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.