config

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Proposer         = "proposer"
	VotingRegistry   = "voting_registry"
	LightweightState = "lightweight_state"
	Register2        = "register2"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractConfig added in v0.3.4

type ContractConfig struct {
	Address common.Address `fig:"address,required"`
	Block   uint64         `fig:"block"`
}

type ContractsConfig added in v0.3.4

type ContractsConfig map[string]ContractConfig

type ContractsConfiger added in v0.3.4

type ContractsConfiger interface {
	ContractsConfig() ContractsConfig
}

func NewContractsConfiger added in v0.3.4

func NewContractsConfiger(getter kv.Getter) ContractsConfiger

type Ipfs added in v0.5.1

type Ipfs struct {
	Url               string        `fig:"url"`
	MaxRetries        uint64        `fig:"max_retries"`
	MinAbnormalPeriod time.Duration `fig:"min_abnormal_period"`
	MaxAbnormalPeriod time.Duration `fig:"max_abnormal_period"`
}

type NetworkConfig

type NetworkConfig struct {
	Client        *ethclient.Client `fig:"rpc,required"`
	GasMultiplier float64           `fig:"gas_multiplier,required"`

	ChainID    *big.Int          `fig:"chain_id"`
	PrivateKey *ecdsa.PrivateKey `fig:"private_key"`
	// contains filtered or unexported fields
}

func (*NetworkConfig) IncrementNonce

func (n *NetworkConfig) IncrementNonce()

func (*NetworkConfig) LockNonce

func (n *NetworkConfig) LockNonce()

func (*NetworkConfig) Nonce

func (n *NetworkConfig) Nonce() uint64

func (*NetworkConfig) ResetNonce added in v0.2.2

func (n *NetworkConfig) ResetNonce(client *ethclient.Client) error

ResetNonce sets nonce to the value received from a node

func (*NetworkConfig) UnlockNonce

func (n *NetworkConfig) UnlockNonce()

type NetworkConfiger

type NetworkConfiger interface {
	NetworkConfig() *NetworkConfig
}

func NewNetworkConfiger

func NewNetworkConfiger(getter kv.Getter) NetworkConfiger

type Pinger added in v0.3.4

type Pinger struct {
	BlocksDistance    uint64        `fig:"blocks_distance"`
	Timeout           time.Duration `fig:"timeout"`
	NormalPeriod      time.Duration `fig:"normal_period"`
	MinAbnormalPeriod time.Duration `fig:"min_abnormal_period"`
	MaxAbnormalPeriod time.Duration `fig:"max_abnormal_period"`
}

type Replicator added in v0.3.4

type Replicator struct {
	Address    common.Address `fig:"address,required"`
	SourceSMT  common.Address `fig:"source_smt,required"`
	RootPrefix string         `fig:"root_prefix,required"`
}

type VotingV2Config added in v0.4.0

type VotingV2Config struct {
	RPC        *ethclient.Client
	ChainID    *big.Int
	PrivateKey *ecdsa.PrivateKey

	Address common.Address

	GasLimit uint64
	Block    uint64
	Enable   bool
	WithSub  bool
	// contains filtered or unexported fields
}

func (*VotingV2Config) IncrementNonce added in v0.4.0

func (n *VotingV2Config) IncrementNonce()

func (*VotingV2Config) LockNonce added in v0.4.0

func (n *VotingV2Config) LockNonce()

func (*VotingV2Config) Nonce added in v0.4.0

func (n *VotingV2Config) Nonce() uint64

func (*VotingV2Config) ResetNonce added in v0.4.0

func (n *VotingV2Config) ResetNonce(client *ethclient.Client) error

ResetNonce sets nonce to the value received from a node

func (*VotingV2Config) UnlockNonce added in v0.4.0

func (n *VotingV2Config) UnlockNonce()

type VotingV2Configer added in v0.4.0

type VotingV2Configer interface {
	VotingV2Config() *VotingV2Config
}

func NewVotingV2Configer added in v0.4.0

func NewVotingV2Configer(getter kv.Getter) VotingV2Configer

Jump to

Keyboard shortcuts

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