Merge pull request #210 from hermeznetwork/feature/api-config-const

Add config endpoint
This commit is contained in:
Eduard S
2020-10-21 13:30:00 +02:00
committed by GitHub
8 changed files with 261 additions and 91 deletions

View File

@@ -19,11 +19,11 @@ import (
// WDelayerConstants are the constants of the Rollup Smart Contract
type WDelayerConstants struct {
// Max Withdrawal Delay
MaxWithdrawalDelay uint64
MaxWithdrawalDelay uint64 `json:"maxWithdrawalDelay"`
// Max Emergency mode time
MaxEmergencyModeTime uint64
MaxEmergencyModeTime uint64 `json:"maxEmergencyModeTime"`
// HermezRollup smartcontract address
HermezRollup ethCommon.Address
HermezRollup ethCommon.Address `json:"hermezRollup"`
}
// DepositState is the state of Deposit