You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

  1. package common
  2. import (
  3. "math/big"
  4. "time"
  5. eth "github.com/ethereum/go-ethereum/common"
  6. )
  7. // RollupVars contain the Rollup smart contract variables
  8. type RollupVars struct {
  9. EthBlockNum uint64
  10. ForgeL1Timeout *big.Int
  11. FeeL1UserTx *big.Int
  12. FeeAddToken *big.Int
  13. TokensHEZ eth.Address
  14. Governance eth.Address
  15. }
  16. // AuctionVars contain the Auction smart contract variables
  17. type AuctionVars struct {
  18. EthBlockNum uint64
  19. SlotDeadline uint
  20. CloseAuctionSlots uint
  21. OpenAuctionSlots uint
  22. Governance eth.Address
  23. MinBidSlots MinBidSlots
  24. Outbidding int
  25. DonationAddress eth.Address
  26. GovernanceAddress eth.Address
  27. AllocationRatio AllocationRatio
  28. }
  29. // WithdrawDelayerVars contains the Withdrawal Delayer smart contract variables
  30. type WithdrawDelayerVars struct {
  31. HermezRollupAddress eth.Address
  32. HermezGovernanceDAOAddress eth.Address
  33. WhiteHackGroupAddress eth.Address
  34. WithdrawalDelay uint
  35. EmergencyModeStartingTime time.Time
  36. EmergencyModeEnabled bool
  37. }
  38. // MinBidSlots TODO
  39. type MinBidSlots [6]uint
  40. // AllocationRatio TODO
  41. type AllocationRatio struct {
  42. Donation uint
  43. Burn uint
  44. Forger uint
  45. }