-
Notifications
You must be signed in to change notification settings - Fork 199
/
systemSmartContractsConfig.go
42 lines (38 loc) · 1.44 KB
/
systemSmartContractsConfig.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package config
// SystemSmartContractsConfig defines the system smart contract configs
type SystemSmartContractsConfig struct {
ESDTSystemSCConfig ESDTSystemSCConfig
GovernanceSystemSCConfig GovernanceSystemSCConfig
StakingSystemSCConfig StakingSystemSCConfig
}
// StakingSystemSCConfig will hold the staking system smart contract settings
type StakingSystemSCConfig struct {
GenesisNodePrice string
MinStakeValue string
UnJailValue string
MinStepValue string
UnBondPeriod uint64
AuctionEnableEpoch uint32
StakeEnableEpoch uint32
NumRoundsWithoutBleed uint64
MaximumPercentageToBleed float64
BleedPercentagePerRound float64
MaxNumberOfNodesForStake uint64
NodesToSelectInAuction uint64
ActivateBLSPubKeyMessageVerification bool
}
// ESDTSystemSCConfig defines a set of constant to initialize the esdt system smart contract
type ESDTSystemSCConfig struct {
BaseIssuingCost string
OwnerAddress string
EnabledEpoch uint32
}
// GovernanceSystemSCConfig defines the set of constants to initialize the governance system smart contract
type GovernanceSystemSCConfig struct {
ProposalCost string
NumNodes int64
MinQuorum int32
MinPassThreshold int32
MinVetoThreshold int32
EnabledEpoch uint32
}