config

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagConfig = "config"

	PellURL                  = "127.0.0.1:1317"
	BtcExplorerURL           = "https://blockstream.info/api/"
	EthRPCURL                = "https://ethereum-rpc.publicnode.com"
	StrategyManagerAddress   = "0x000007Cf399229b2f5A4D043F20E90C9C98B7C6a"
	DelegationManagerAddress = "0x0000030Ec64DF25301d8414eE5a29588C4B0dE10"
)

Variables

View Source
var AppFs = afero.NewOsFs()

Functions

This section is empty.

Types

type Config

type Config struct {
	PellURL                  string
	BtcExplorerURL           string
	EthRPCURL                string
	EtherscanAPIkey          string
	StrategyManagerAddress   string
	DelegationManagerAddress string
}

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

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