member

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

ClassReference to class of this contract

Functions

func GetClass

func GetClass() core.RecordRef

GetClass returns reference to the class

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

AsChild saves object as child

func (*ContractConstructorHolder) AsDelegate

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

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

GetImplementationFrom returns proxy to delegate of given type

func GetObject

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

GetObject returns proxy object

func (*Member) AuthorizedCall

func (r *Member) AuthorizedCall(ref core.RecordRef, delegate core.RecordRef, method string, params []byte, seed []byte, sign []byte) ([]byte, *foundation.Error)

AuthorizedCall is proxy generated method

func (*Member) AuthorizedCallNoWait

func (r *Member) AuthorizedCallNoWait(ref core.RecordRef, delegate core.RecordRef, method string, params []byte, seed []byte, sign []byte)

AuthorizedCallNoWait is proxy generated method

func (*Member) GetClass

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

GetClass returns reference to the class

func (*Member) GetName

func (r *Member) GetName() string

GetName is proxy generated method

func (*Member) GetNameNoWait

func (r *Member) GetNameNoWait()

GetNameNoWait is proxy generated method

func (*Member) GetPublicKey

func (r *Member) GetPublicKey() string

GetPublicKey is proxy generated method

func (*Member) GetPublicKeyNoWait

func (r *Member) GetPublicKeyNoWait()

GetPublicKeyNoWait is proxy generated method

func (*Member) GetReference

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

GetReference returns reference of the object

Jump to

Keyboard shortcuts

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