member

package
v0.7.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = core.NewRefFromBase58("11112YoxRdGeddjWfmRDFPj7ZGMsJnjX7Ape4VF2TaJ.11111111111111111111111111111111")

PrototypeReference to prototype of this contract error checking hides in generator

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
	Prototype core.RecordRef
	Code      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) GetCode added in v0.6.3

func (r *Member) GetCode() (core.RecordRef, error)

GetCode returns reference to the code

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, error)

GetPrototype returns reference to the code

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

Jump to

Keyboard shortcuts

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