Documentation
¶
Index ¶
- Variables
- func ConnectWithCallerSessionFunc(cmd *cobra.Command, args []string, contractConfigKey string, ...) (interface{}, bind.CallOpts)
- func ConnectWithFiltererSessionFunc(cmd *cobra.Command, args []string, contractConfigKey string, ...) interface{}
- func ConnectWithKeyStore(cmd *cobra.Command, args []string)
- func ConnectWithTransactorSessionFunc(cmd *cobra.Command, args []string, contractConfigKey string, ...) (interface{}, bind.TransactOpts)
- type CallerSessionFunc
- type FilterSessionFunc
- type TransactorSessionFunc
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
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)
Click to show internal directories.
Click to hide internal directories.