package common import ( "math/big" eth "github.com/ethereum/go-ethereum/common" ) // PoHState give information about the forging mechanism of the Hermez network, and the synchronization status between the operator and the smart contract // WARNING: this is strongly based on the previous implementation, once the new spec is done, this may change a lot. type PoHState struct { IsSynched bool // true if the operator is fully synched with the ¿PoH? smart contract SyncProgress float32 // percentage of synced progress with the ¿PoH? smart contract CurrentSlot SlotNum // slot in which batches are being forged at the current time ContractAddr eth.Address // Etherum address of the ¿PoH? smart contract BlocksPerSlot uint16 // Slot duration measured in Etherum blocks SlotDeadline uint16 // Time of the slot in which another operator can forge if the operator winner has not forge any block before GenesisBlock uint64 // uint64 is a guess, Etherum block in which the ¿PoH? contract was deployed MinBid *big.Int // Minimum amount that an operator has to bid to participate in a slot auction }