-
Notifications
You must be signed in to change notification settings - Fork 199
/
economicsConfig.go
47 lines (42 loc) · 1.24 KB
/
economicsConfig.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
package config
// GlobalSettings will hold general economic values
type GlobalSettings struct {
TotalSupply string
MinimumInflation float64
MaximumInflation float64
}
// RewardsSettings will hold economics rewards settings
type RewardsSettings struct {
LeaderPercentage float64
DeveloperPercentage float64
DenominationCoefficientForView string
}
// FeeSettings will hold economics fee settings
type FeeSettings struct {
MaxGasLimitPerBlock string
GasPerDataByte string
DataLimitForBaseCalc string
MinGasPrice string
MinGasLimit string
}
// ValidatorSettings will hold the validator settings
type ValidatorSettings struct {
GenesisNodePrice string
UnBondPeriod string
TotalSupply string
MinStepValue string
NumNodes uint32
AuctionEnableNonce string
StakeEnableNonce string
NumRoundsWithoutBleed string
MaximumPercentageToBleed string
BleedPercentagePerRound string
UnJailValue string
}
// EconomicsConfig will hold economics config
type EconomicsConfig struct {
GlobalSettings GlobalSettings
RewardsSettings RewardsSettings
FeeSettings FeeSettings
ValidatorSettings ValidatorSettings
}