config

package
v0.0.0-...-b4b7c53 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: GPL-3.0 Imports: 14 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 {
	MaelstromServerAddress string `toml:"maelstrom_server_address"`
	CelestiaGRPCAddress    string `toml:"celestia_grpc_address"`
	KeyringDir             string `toml:"keyring_dir"`
	KeyName                string `toml:"key_name"`
}

func Default

func Default() *Config

func Load

func Load(file string) (*Config, error)

func (*Config) Address

func (cfg *Config) Address() (sdk.AccAddress, error)

func (*Config) NewClient

func (cfg *Config) NewClient() (*client.Client, error)

func (*Config) Save

func (c *Config) Save(file string) error

Jump to

Keyboard shortcuts

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