hermez-node/common/ethwdelayer.go
common/ethwdelayer.goRaw
1package common
2
3import ethCommon "github.com/ethereum/go-ethereum/common"
4
5// WDelayerConstants are the constants of the Withdrawal Delayer Smart Contract
6type WDelayerConstants struct {
7 // Max Withdrawal Delay
8 MaxWithdrawalDelay uint64 `json:"maxWithdrawalDelay"`
9 // Max Emergency mode time
10 MaxEmergencyModeTime uint64 `json:"maxEmergencyModeTime"`
11 // HermezRollup smartcontract address
12 HermezRollup ethCommon.Address `json:"hermezRollup"`
13}
14
15// WDelayerVariables are the variables of the Withdrawal Delayer Smart Contract
16type WDelayerVariables struct {
17 HermezRollupAddress ethCommon.Address `json:"hermezRollupAddress" meddler:"rollup_address"`
18 HermezGovernanceDAOAddress ethCommon.Address `json:"hermezGovernanceDAOAddress" meddler:"govdao_address"`
19 WhiteHackGroupAddress ethCommon.Address `json:"whiteHackGroupAddress" meddler:"whg_address"`
20 HermezKeeperAddress ethCommon.Address `json:"hermezKeeperAddress" meddler:"keeper_address"`
21 WithdrawalDelay uint64 `json:"withdrawalDelay" meddler:"withdrawal_delay"`
22 EmergencyModeStartingTime uint64 `json:"emergencyModeStartingTime" meddler:"emergency_start_time"`
23 EmergencyMode bool `json:"emergencyMode" meddler:"emergency_mode"`
24}