Documentation
¶
Overview ¶
#skiplint: import_testing_only_in_tests
#skiplint: import_testing_only_in_tests
Index ¶
Constants ¶
View Source
const ( ContractFileName = "contract.go" ConfigFileName = "config.go" ModuleFileName = "module.go" EventFileName = "event.go" ContractTestFileName = "contract_test.go" ConfigTestFileName = "config_test.go" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrecompileBindFile ¶ added in v0.5.11
type PrecompileBindFile struct { // FileName is the name of the file to be generated. FileName string // Content is the content of the file to be generated. Content string // IsTest indicates whether the file is a test file. IsTest bool }
func NewPrecompileBindFile ¶ added in v0.5.11
func NewPrecompileBindFile(fileName string, content string, isTest bool) PrecompileBindFile
func PrecompileBind ¶
func PrecompileBind(types []string, abiData string, bytecodes []string, fsigs []map[string]string, pkg string, lang bind.Lang, libs map[string]string, aliases map[string]string, abifilename string, generateTests bool) ([]PrecompileBindFile, error)
PrecompileBind generates a Go binding for a precompiled contract. It returns a slice of PrecompileBindFile structs containing the file name and its contents.
Click to show internal directories.
Click to hide internal directories.