-
Notifications
You must be signed in to change notification settings - Fork 198
/
epochConfig.go
126 lines (122 loc) · 7.2 KB
/
epochConfig.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
package config
// EpochConfig will hold epoch configurations
type EpochConfig struct {
EnableEpochs EnableEpochs
GasSchedule GasScheduleConfig
}
// GasScheduleConfig represents the versioning config area for the gas schedule toml
type GasScheduleConfig struct {
GasScheduleByEpochs []GasScheduleByEpochs
}
// EnableEpochs will hold the configuration for activation epochs
type EnableEpochs struct {
SCDeployEnableEpoch uint32
BuiltInFunctionsEnableEpoch uint32
RelayedTransactionsEnableEpoch uint32
PenalizedTooMuchGasEnableEpoch uint32
SwitchJailWaitingEnableEpoch uint32
SwitchHysteresisForMinNodesEnableEpoch uint32
BelowSignedThresholdEnableEpoch uint32
TransactionSignedWithTxHashEnableEpoch uint32
MetaProtectionEnableEpoch uint32
AheadOfTimeGasUsageEnableEpoch uint32
GasPriceModifierEnableEpoch uint32
RepairCallbackEnableEpoch uint32
MaxNodesChangeEnableEpoch []MaxNodesChangeConfig
BlockGasAndFeesReCheckEnableEpoch uint32
StakingV2EnableEpoch uint32
StakeEnableEpoch uint32
DoubleKeyProtectionEnableEpoch uint32
ESDTEnableEpoch uint32
GovernanceEnableEpoch uint32
DelegationManagerEnableEpoch uint32
DelegationSmartContractEnableEpoch uint32
CorrectLastUnjailedEnableEpoch uint32
BalanceWaitingListsEnableEpoch uint32
ReturnDataToLastTransferEnableEpoch uint32
SenderInOutTransferEnableEpoch uint32
RelayedTransactionsV2EnableEpoch uint32
UnbondTokensV2EnableEpoch uint32
SaveJailedAlwaysEnableEpoch uint32
ValidatorToDelegationEnableEpoch uint32
ReDelegateBelowMinCheckEnableEpoch uint32
IncrementSCRNonceInMultiTransferEnableEpoch uint32
ScheduledMiniBlocksEnableEpoch uint32
ESDTMultiTransferEnableEpoch uint32
GlobalMintBurnDisableEpoch uint32
ESDTTransferRoleEnableEpoch uint32
ComputeRewardCheckpointEnableEpoch uint32
SCRSizeInvariantCheckEnableEpoch uint32
BackwardCompSaveKeyValueEnableEpoch uint32
ESDTNFTCreateOnMultiShardEnableEpoch uint32
MetaESDTSetEnableEpoch uint32
AddTokensToDelegationEnableEpoch uint32
MultiESDTTransferFixOnCallBackOnEnableEpoch uint32
OptimizeGasUsedInCrossMiniBlocksEnableEpoch uint32
CorrectFirstQueuedEpoch uint32
CorrectJailedNotUnstakedEmptyQueueEpoch uint32
FixOOGReturnCodeEnableEpoch uint32
RemoveNonUpdatedStorageEnableEpoch uint32
DeleteDelegatorAfterClaimRewardsEnableEpoch uint32
OptimizeNFTStoreEnableEpoch uint32
CreateNFTThroughExecByCallerEnableEpoch uint32
StopDecreasingValidatorRatingWhenStuckEnableEpoch uint32
FrontRunningProtectionEnableEpoch uint32
IsPayableBySCEnableEpoch uint32
CleanUpInformativeSCRsEnableEpoch uint32
StorageAPICostOptimizationEnableEpoch uint32
TransformToMultiShardCreateEnableEpoch uint32
ESDTRegisterAndSetAllRolesEnableEpoch uint32
DoNotReturnOldBlockInBlockchainHookEnableEpoch uint32
AddFailedRelayedTxToInvalidMBsDisableEpoch uint32
SCRSizeInvariantOnBuiltInResultEnableEpoch uint32
CheckCorrectTokenIDForTransferRoleEnableEpoch uint32
DisableExecByCallerEnableEpoch uint32
FailExecutionOnEveryAPIErrorEnableEpoch uint32
ManagedCryptoAPIsEnableEpoch uint32
RefactorContextEnableEpoch uint32
CheckFunctionArgumentEnableEpoch uint32
CheckExecuteOnReadOnlyEnableEpoch uint32
MiniBlockPartialExecutionEnableEpoch uint32
ESDTMetadataContinuousCleanupEnableEpoch uint32
FixAsyncCallBackArgsListEnableEpoch uint32
FixOldTokenLiquidityEnableEpoch uint32
RuntimeMemStoreLimitEnableEpoch uint32
RuntimeCodeSizeFixEnableEpoch uint32
SetSenderInEeiOutputTransferEnableEpoch uint32
RefactorPeersMiniBlocksEnableEpoch uint32
SCProcessorV2EnableEpoch uint32
MaxBlockchainHookCountersEnableEpoch uint32
WipeSingleNFTLiquidityDecreaseEnableEpoch uint32
AlwaysSaveTokenMetaDataEnableEpoch uint32
SetGuardianEnableEpoch uint32
ScToScLogEventEnableEpoch uint32
RelayedNonceFixEnableEpoch uint32
DeterministicSortOnValidatorsInfoEnableEpoch uint32
KeepExecOrderOnCreatedSCRsEnableEpoch uint32
MultiClaimOnDelegationEnableEpoch uint32
ChangeUsernameEnableEpoch uint32
AutoBalanceDataTriesEnableEpoch uint32
MigrateDataTrieEnableEpoch uint32
ConsistentTokensValuesLengthCheckEnableEpoch uint32
FixDelegationChangeOwnerOnAccountEnableEpoch uint32
DynamicGasCostForDataTrieStorageLoadEnableEpoch uint32
NFTStopCreateEnableEpoch uint32
ChangeOwnerAddressCrossShardThroughSCEnableEpoch uint32
FixGasRemainingForSaveKeyValueBuiltinFunctionEnableEpoch uint32
CurrentRandomnessOnSortingEnableEpoch uint32
StakeLimitsEnableEpoch uint32
StakingV4Step1EnableEpoch uint32
StakingV4Step2EnableEpoch uint32
StakingV4Step3EnableEpoch uint32
AlwaysMergeContextsInEEIEnableEpoch uint32
DynamicESDTEnableEpoch uint32
EGLDInMultiTransferEnableEpoch uint32
CryptoOpcodesV2EnableEpoch uint32
BLSMultiSignerEnableEpoch []MultiSignerConfig
}
// GasScheduleByEpochs represents a gas schedule toml entry that will be applied from the provided epoch
type GasScheduleByEpochs struct {
StartEpoch uint32
FileName string
}