commands

package
v0.0.0-...-2935fa7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: Apache-2.0 Imports: 58 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abi

func Abi(output Output) func(cmd *cli.Cmd)

Abi is a command line tool for ABI encoding and decoding. Event encoding/decoding still be added

func Accounts

func Accounts(output Output) func(cmd *cli.Cmd)

Accounts lists all the accounts in a chain, alongside with any metadata like contract name and ABI

func Compile

func Compile(output Output) func(cmd *cli.Cmd)

Currently this just compiles to Go fixtures - it might make sense to extend it to take a text template for output if it is convenient to expose our compiler wrappers outside of hsc deploy

func Configure

func Configure(output Output) func(cmd *cli.Cmd)

Configure generates hsc configuration(s)

func Deploy

func Deploy(output Output) func(cmd *cli.Cmd)

Deploy runs the desired playbook(s)

func Dump

func Dump(output Output) func(cmd *cli.Cmd)

Dump saves the state from a remote chain

func Explore

func Explore(output Output) func(cmd *cli.Cmd)

Explore chain state(s)

func Keys

func Keys(output Output) func(cmd *cli.Cmd)

Keys runs as either client or server

func Natives

func Natives(output Output) func(cmd *cli.Cmd)

Dump native contracts

func Restore

func Restore(output Output) func(cmd *cli.Cmd)

Restore reads a state file and saves into a runnable dir

func Spec

func Spec(output Output) func(cmd *cli.Cmd)

Spec generates a list of genesis accounts with certain permissions

func Start

func Start(output Output) func(cmd *cli.Cmd)

Start launches the hsc daemon

func Tx

func Tx(output Output) func(cmd *cli.Cmd)

Tx constructs or sends payloads to a hsc daemon

func Vent

func Vent(output Output) func(cmd *cli.Cmd)

Vent consumes EVM events and commits to a DB

Types

type LogLevel

type LogLevel string
const (
	LogLevelNone  LogLevel = "none"
	LogLevelInfo  LogLevel = "info"
	LogLevelTrace LogLevel = "trace"
)

type Output

type Output interface {
	Printf(format string, args ...interface{})
	Logf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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