code

package
v0.0.0-...-67b0b38 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 6 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 {
	Code           []byte
	ParameterTypes []ContractParameterType
	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
}

Jump to

Keyboard shortcuts

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