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.

21 lines
1.2 KiB

  1. package common
  2. import (
  3. "math/big"
  4. eth "github.com/ethereum/go-ethereum/common"
  5. )
  6. // RollupState give information about the rollup, and the synchronization status between the coordinator and the smart contract
  7. type RollupState struct {
  8. IsSynched bool // true if the coordinator is fully synched with the rollup smart contract
  9. SyncProgress float32 // percentage of synced progress with the rollup smart contract
  10. LastBlockSynched uint64 // last Etherum block synchronized by the coordinator
  11. LastBatchSynched BatchNum // last batch synchronized by the coordinator
  12. FeeDeposit *big.Int // amount of eth (in wei) that has to be payed to do a deposit
  13. FeeL1Tx *big.Int // amount of eth (in wei) that has to be payed to do a L1 tx
  14. ContractAddr eth.Address // Etherum address of the rollup smart contract
  15. MaxTx uint16 // Max amount of txs that can be added in a batch, either L1 or L2
  16. MaxL1Tx uint16 // Max amount of L1 txs that can be added in a batch
  17. NLevels uint16 // Heigth of the SMT. This will determine the maximum number of accounts that can coexist in the Hermez network by 2^nLevels
  18. }