-
Notifications
You must be signed in to change notification settings - Fork 199
/
systemSmartContractsConfig.go
60 lines (54 loc) · 2.1 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package config
// SystemSmartContractsConfig defines the system smart contract configs
type SystemSmartContractsConfig struct {
ESDTSystemSCConfig ESDTSystemSCConfig
GovernanceSystemSCConfig GovernanceSystemSCConfig
StakingSystemSCConfig StakingSystemSCConfig
DelegationManagerSystemSCConfig DelegationManagerSystemSCConfig
DelegationSystemSCConfig DelegationSystemSCConfig
}
// StakingSystemSCConfig will hold the staking system smart contract settings
type StakingSystemSCConfig struct {
GenesisNodePrice string
MinStakeValue string
MinUnstakeTokensValue string
UnJailValue string
MinStepValue string
UnBondPeriod uint64
NumRoundsWithoutBleed uint64
MaximumPercentageToBleed float64
BleedPercentagePerRound float64
MaxNumberOfNodesForStake uint64
StakingV2Epoch uint32
StakeEnableEpoch uint32
DoubleKeyProtectionEnableEpoch uint32
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
}
// DelegationManagerSystemSCConfig defines a set of constants to initialize the delegation manager system smart contract
type DelegationManagerSystemSCConfig struct {
BaseIssuingCost string
MinCreationDeposit string
EnabledEpoch uint32
}
// DelegationSystemSCConfig defines a set of constants to initialize the delegation system smart contract
type DelegationSystemSCConfig struct {
MinStakeAmount string
EnabledEpoch uint32
MinServiceFee uint64
MaxServiceFee uint64
}