precompilebind

package
v0.7.8-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: GPL-3.0, LGPL-3.0 Imports: 6 Imported by: 1

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.

Jump to

Keyboard shortcuts

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