contract

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContractCmd = &cobra.Command{
	Use:   config.TranslateInLang(contractCmdUses, config.UILanguage),
	Short: config.TranslateInLang(contractCmdShorts, config.UILanguage),
}

ContractCmd represents the contract command

View Source
var ContractCompileCmd = &cobra.Command{
	Use:   config.TranslateInLang(contractCompileCmdUses, config.UILanguage),
	Short: config.TranslateInLang(contractCompileCmdShorts, config.UILanguage),
	Args:  cobra.ExactArgs(1),
	RunE: func(cmd *cobra.Command, args []string) error {
		cmd.SilenceUsage = true
		err := compile(args)
		return output.PrintError(err)
	},
}

ContractCompileCmd represents the contract compile command

Functions

func Compile

func Compile(sourceFiles ...string) (map[string]*compiler.Contract, error)

Compile compiles smart contract from source code

Types

This section is empty.

Jump to

Keyboard shortcuts

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