abi

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: LGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	NATIVE_PARAM_TYPE_BOOL      = "bool"
	NATIVE_PARAM_TYPE_BYTE      = "byte"
	NATIVE_PARAM_TYPE_INTEGER   = "int"
	NATIVE_PARAM_TYPE_STRING    = "string"
	NATIVE_PARAM_TYPE_BYTEARRAY = "bytearray"
	NATIVE_PARAM_TYPE_ARRAY     = "array"
	NATIVE_PARAM_TYPE_ADDRESS   = "address"
	NATIVE_PARAM_TYPE_UINT256   = "uint256"
	NATIVE_PARAM_TYPE_STRUCT    = "struct"
)
View Source
const DefAbiPath = "./cmd/abi"

Variables

View Source
var DefAbiMgr = NewAbiMgr(DefAbiPath)

Functions

This section is empty.

Types

type AbiMgr

type AbiMgr struct {
	Path string
	// contains filtered or unexported fields
}

func NewAbiMgr

func NewAbiMgr(path string) *AbiMgr

func (*AbiMgr) GetNativeAbi

func (this *AbiMgr) GetNativeAbi(address string) *NativeContractAbi

func (*AbiMgr) Init

func (this *AbiMgr) Init()

type NativeContractAbi

type NativeContractAbi struct {
	Address   string                       `json:"hash"`
	Functions []*NativeContractFunctionAbi `json:"functions"`
	Events    []*NativeContractEventAbi    `json:"events"`
}

func (*NativeContractAbi) GetEvent

func (this *NativeContractAbi) GetEvent(name string) *NativeContractEventAbi

func (*NativeContractAbi) GetFunc

func (this *NativeContractAbi) GetFunc(name string) *NativeContractFunctionAbi

type NativeContractEventAbi

type NativeContractEventAbi struct {
	Name       string                    `json:"name"`
	Parameters []*NativeContractParamAbi `json:"parameters"`
}

type NativeContractFunctionAbi

type NativeContractFunctionAbi struct {
	Name       string                    `json:"name"`
	Parameters []*NativeContractParamAbi `json:"parameters"`
	ReturnType string                    `json:"returnType"`
}

type NativeContractParamAbi

type NativeContractParamAbi struct {
	Name    string                    `json:"name"`
	Type    string                    `json:"type"`
	SubType []*NativeContractParamAbi `json:"subType"`
}

Jump to

Keyboard shortcuts

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