code

package
v0.5.2-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionCode

type FunctionCode struct {
	// Contract Code
	Code []byte

	// Contract parameter type list
	ParameterTypes []ContractParameterType

	// Contract return type list
	ReturnType ContractParameterType
	// contains filtered or unexported fields
}

func (*FunctionCode) CodeHash

func (fc *FunctionCode) CodeHash() Uint160

method of ICode Get the hash of the smart contract

func (*FunctionCode) Deserialize

func (fc *FunctionCode) Deserialize(r io.Reader) error

method of SerializableData

func (*FunctionCode) GetCode

func (fc *FunctionCode) GetCode() []byte

method of ICode Get code

func (*FunctionCode) GetParameterTypes

func (fc *FunctionCode) GetParameterTypes() []ContractParameterType

method of ICode Get the list of parameter value

func (*FunctionCode) GetReturnType

func (fc *FunctionCode) GetReturnType() ContractParameterType

method of ICode Get the list of return value

func (*FunctionCode) Serialize

func (fc *FunctionCode) Serialize(w io.Writer) error

method of SerializableData

type ICode

type ICode interface {
	GetCode() []byte

	GetParameterTypes() []ContractParameterType

	GetReturnTypes() []ContractParameterType

	CodeHash() Uint160
}

ICode is the abstract interface of smart contract code.

Jump to

Keyboard shortcuts

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