Documentation ¶
Index ¶
- Constants
- Variables
- func Create(ctx context.Context, rpath string) error
- func CreateAccount(ctx context.Context) error
- func Daemon(ctx context.Context) error
- func DefaultAccount(ctx context.Context, addr string) error
- func ExportAccount(ctx context.Context, addr string) error
- func Get(ctx context.Context, rpath string) error
- func ImportAccount(ctx context.Context) error
- func Init(ctx context.Context, rpath string, wizard bool) error
- func Install(ctx context.Context, rpath string) error
- func KeyAdd(ctx context.Context, rpath, addr string) error
- func KeyRevoke(ctx context.Context, rpath, addr string) error
- func KeyRotate(ctx context.Context, rpath, addr string) error
- func ListAccounts(ctx context.Context) error
- func Publish(ctx context.Context, dryrun bool) error
- func Threshold(ctx context.Context, rpath string, threshold int64) error
- func Update(ctx context.Context, rpath string) error
- type Config
Constants ¶
View Source
const ( ClientKey = contextKey("client") ConfigKey = contextKey("config") )
Variables ¶
View Source
var ErrProjectExist = errors.New("valist.yml already exists")
Functions ¶
func CreateAccount ¶
CreateAccount creates a new account.
func DefaultAccount ¶
DefaultAccount sets the default account in the config.
func ExportAccount ¶
ExportAccount exports an account in web3 secret json format.
func ImportAccount ¶
ImportAccount imports an account private key.
func ListAccounts ¶
ListAccounts prints all account addresses.
Types ¶
type Config ¶
type Config struct { Name string `yaml:"name" validate:"required,lowercase,shortname"` Tag string `yaml:"tag" validate:"required,acceptable_characters"` Artifacts map[string]string `yaml:"artifacts" validate:"required,dive,keys,shortname,endkeys,shortname"` }
Config contains project settings.
Click to show internal directories.
Click to hide internal directories.