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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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