config

package
v0.0.0-...-2da98db Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagConfig = "config"

	ZetaURL          = "127.0.0.1:1317"
	BtcExplorerURL   = "https://blockstream.info/api/"
	EthRPCURL        = "https://ethereum-rpc.publicnode.com"
	ConnectorAddress = "0x000007Cf399229b2f5A4D043F20E90C9C98B7C6a"
	CustodyAddress   = "0x0000030Ec64DF25301d8414eE5a29588C4B0dE10"
)

Variables

View Source
var AppFs = afero.NewOsFs()

Functions

This section is empty.

Types

type Config

type Config struct {
	ZetaURL          string
	BtcExplorerURL   string
	EthRPCURL        string
	EtherscanAPIkey  string
	ConnectorAddress string
	CustodyAddress   string
}

Config is a struct the defines the configuration fields used by zetatool

func DefaultConfig

func DefaultConfig() *Config

func GetConfig

func GetConfig(filename string) (*Config, error)

func (*Config) Read

func (c *Config) Read(filename string) error

func (*Config) Save

func (c *Config) Save() error

Jump to

Keyboard shortcuts

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