-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.go
executable file
·24 lines (21 loc) · 900 Bytes
/
params.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package staking
import (
"github.com/ethereum/go-ethereum/crypto"
)
const (
isValidatorKeyStr = "Intelchain/IsValidator/Key/v1"
isValidatorStr = "Intelchain/IsValidator/Value/v1"
collectRewardsStr = "Intelchain/CollectRewards"
delegateStr = "Intelchain/Delegate"
unDelegateStr = "Intelchain/UnDelegate"
firstElectionEpochStr = "Intelchain/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))
)