member

package
v0.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference = core.NewRefFromBase58("")

PrototypeReference to prototype of this contract

Functions

func GetPrototype added in v0.6.2

func GetPrototype() core.RecordRef

GetPrototype returns reference to the prototype

Types

type ContractConstructorHolder

type ContractConstructorHolder struct {
	// contains filtered or unexported fields
}

ContractConstructorHolder holds logic with object construction

func New

func New(name string, key string) *ContractConstructorHolder

New is constructor

func (*ContractConstructorHolder) AsChild

func (r *ContractConstructorHolder) AsChild(objRef core.RecordRef) (*Member, error)

AsChild saves object as child

func (*ContractConstructorHolder) AsDelegate

func (r *ContractConstructorHolder) AsDelegate(objRef core.RecordRef) (*Member, error)

AsDelegate saves object as delegate

type Member

type Member struct {
	Reference core.RecordRef
}

Member holds proxy type

func GetImplementationFrom

func GetImplementationFrom(object core.RecordRef) (*Member, error)

GetImplementationFrom returns proxy to delegate of given type

func GetObject

func GetObject(ref core.RecordRef) (r *Member)

GetObject returns proxy object

func (*Member) Call added in v0.6.1

func (r *Member) Call(rootDomain core.RecordRef, method string, params []byte, seed []byte, sign []byte) (interface{}, error)

Call is proxy generated method

func (*Member) CallNoWait added in v0.6.1

func (r *Member) CallNoWait(rootDomain core.RecordRef, method string, params []byte, seed []byte, sign []byte) error

CallNoWait is proxy generated method

func (*Member) GetName

func (r *Member) GetName() (string, error)

GetName is proxy generated method

func (*Member) GetNameNoWait

func (r *Member) GetNameNoWait() error

GetNameNoWait is proxy generated method

func (*Member) GetPrototype added in v0.6.2

func (r *Member) GetPrototype() core.RecordRef

GetPrototype returns reference to the prototype

func (*Member) GetPublicKey

func (r *Member) GetPublicKey() (string, error)

GetPublicKey is proxy generated method

func (*Member) GetPublicKeyNoWait

func (r *Member) GetPublicKeyNoWait() error

GetPublicKeyNoWait is proxy generated method

func (*Member) GetReference

func (r *Member) GetReference() core.RecordRef

GetReference returns reference of the object

func (*Member) RegisterNodeCall added in v0.6.2

func (r *Member) RegisterNodeCall(ref core.RecordRef, params []byte) (interface{}, error)

RegisterNodeCall is proxy generated method

func (*Member) RegisterNodeCallNoWait added in v0.6.2

func (r *Member) RegisterNodeCallNoWait(ref core.RecordRef, params []byte) error

RegisterNodeCallNoWait is proxy generated method

Jump to

Keyboard shortcuts

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