cli

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NodeURL                 string `mapstructure:"NODE_URL"`
	ChainFamily             string `mapstructure:"CHAIN_FAMILY"`
	TimelockAddress         string `mapstructure:"TIMELOCK_ADDRESS"`
	CallProxyAddress        string `mapstructure:"CALL_PROXY_ADDRESS"`
	PrivateKey              string `mapstructure:"PRIVATE_KEY"`
	FromBlock               int64  `mapstructure:"FROM_BLOCK"`
	MaxGasLimit             uint64 `mapstructure:"MAX_GAS_LIMIT"`
	PollPeriod              int64  `mapstructure:"POLL_PERIOD"`
	EventListenerPollPeriod int64  `mapstructure:"EVENT_LISTENER_POLL_PERIOD"`
	EventListenerPollSize   uint64 `mapstructure:"EVENT_LISTENER_POLL_SIZE"`
	DryRun                  bool   `mapstructure:"DRY_RUN"`
}

Config holds the timelock.env configuration structure.

func NewTimelockCLI

func NewTimelockCLI() (*Config, error)

NewTimelockCLI return a new Timelock instance configured.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL