Documentation ¶
Index ¶
- Constants
- Variables
- func CalculateCurrentPage(total uint, pageSize uint) uint
- func CalculateOffset(page uint, pageSize uint) uint
- func CloseAction(fn func(ctx context.Context, shutdown <-chan struct{}) error) error
- func GetBatchId() string
- func GetRandom(times int) string
- func ParseAddress(address string) (common.Address, error)
- func PrefixEnvVar(prefix, suffix string) []string
- func ValidateEnvVars(prefix string, flags []cli.Flag, log log.Logger)
Constants ¶
View Source
const ( L2ToL1Pending = 0 L2ToL1ReadyForProved = 1 L2ToL1InChallengePeriod = 2 L2ToL1ReadyForClaim = 3 L2ToL1Claimed = 4 L1ToL2Pending = 1 L1ToL2Claimed = 2 )
View Source
const ( Polygon = "polygon_worker" Scroll = "scroll_worker" Zksync = "zksync" Op = "Op" Mantle = "mantle" Linea = "linea_worker" )
Variables ¶
View Source
var (
ConfigInfo *config.Config
)
Functions ¶
func CalculateCurrentPage ¶
func CalculateOffset ¶
func CloseAction ¶
func GetBatchId ¶
func GetBatchId() string
func PrefixEnvVar ¶
func ValidateEnvVars ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.