The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/staking/params.go

24 lines
864 B

package staking
import (
"github.com/ethereum/go-ethereum/crypto"
)
const (
isValidatorKeyStr = "Woop/IsValidator/Key/v1"
isValidatorStr = "Woop/IsValidator/Value/v1"
collectRewardsStr = "Woop/CollectRewards"
delegateStr = "Woop/Delegate"
unDelegateStr = "Woop/UnDelegate"
firstElectionEpochStr = "Woop/FirstElectionEpoch/Key/v1"
)
// keys used to retrieve staking related informatio
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))
)