commands

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CLIVersion   string = "0.2.0"
	T0kenVersion string = "1.2.0"
	GitCommit    string = "experimental"
	BuildTime    string = "n/a"
)
View Source
var Version = &cobra.Command{
	Use:   "version",
	Short: "Displays the t0ken version",
	Run: func(cmd *cobra.Command, args []string) {
		s := `  Version:         %s
  Contracts:       %s
  Go version:      %s
  Git commit:      %s
  Built:           %s
  OS/Arch:         %s/%s
`
		cmd.Printf(s,
			CLIVersion,
			T0kenVersion,
			runtime.Version(),
			GitCommit,
			BuildTime,
			runtime.GOOS, runtime.GOARCH)
	},
}

Functions

func ConnectWithCallerSessionFunc

func ConnectWithCallerSessionFunc(cmd *cobra.Command, args []string, contractConfigKey string, fn CallerSessionFunc) (interface{}, bind.CallOpts)

ConnectWithCallerSession establishes a caller session.

func ConnectWithFiltererSessionFunc added in v0.2.0

func ConnectWithFiltererSessionFunc(cmd *cobra.Command, args []string, contractConfigKey string, fn FilterSessionFunc) interface{}

ConnectWithCallerSession establishes a filter session.

func ConnectWithKeyStore added in v0.0.3

func ConnectWithKeyStore(cmd *cobra.Command, args []string)

ConnectWithKeyStore establishes a connection with gasPrice and nonce values set.

func ConnectWithTransactorSessionFunc

func ConnectWithTransactorSessionFunc(cmd *cobra.Command, args []string, contractConfigKey string, fn TransactorSessionFunc) (interface{}, bind.TransactOpts)

ConnectWithTransactorSession establishes a transactor session.

Types

type CallerSessionFunc

type CallerSessionFunc func(common.Address, bind.ContractCaller) (interface{}, error)

type FilterSessionFunc added in v0.2.0

type FilterSessionFunc func(common.Address, bind.ContractFilterer) (interface{}, error)

type TransactorSessionFunc

type TransactorSessionFunc func(common.Address, bind.ContractTransactor) (interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL