noderecord

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 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 NewNodeRecord

func NewNodeRecord(publicKey string, roleStr string) *ContractConstructorHolder

NewNodeRecord is constructor

func (*ContractConstructorHolder) AsChild

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

AsChild saves object as child

func (*ContractConstructorHolder) AsDelegate

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

AsDelegate saves object as delegate

type NodeRecord

type NodeRecord struct {
	Reference core.RecordRef
	Prototype core.RecordRef
	Code      core.RecordRef
}

NodeRecord holds proxy type

func GetImplementationFrom

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

GetImplementationFrom returns proxy to delegate of given type

func GetObject

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

GetObject returns proxy object

func (*NodeRecord) Destroy

func (r *NodeRecord) Destroy() error

Destroy is proxy generated method

func (*NodeRecord) DestroyNoWait

func (r *NodeRecord) DestroyNoWait() error

DestroyNoWait is proxy generated method

func (*NodeRecord) GetCode added in v0.6.3

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

GetCode returns reference to the code

func (*NodeRecord) GetNodeInfo added in v0.6.1

func (r *NodeRecord) GetNodeInfo() (RecordInfo, error)

GetNodeInfo is proxy generated method

func (*NodeRecord) GetNodeInfoNoWait added in v0.6.1

func (r *NodeRecord) GetNodeInfoNoWait() error

GetNodeInfoNoWait is proxy generated method

func (*NodeRecord) GetPrototype added in v0.6.2

func (r *NodeRecord) GetPrototype() (core.RecordRef, error)

GetPrototype returns reference to the code

func (*NodeRecord) GetPublicKey

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

GetPublicKey is proxy generated method

func (*NodeRecord) GetPublicKeyNoWait

func (r *NodeRecord) GetPublicKeyNoWait() error

GetPublicKeyNoWait is proxy generated method

func (*NodeRecord) GetReference

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

GetReference returns reference of the object

func (*NodeRecord) GetRole

func (r *NodeRecord) GetRole() (core.StaticRole, error)

GetRole is proxy generated method

func (*NodeRecord) GetRoleNoWait

func (r *NodeRecord) GetRoleNoWait() error

GetRoleNoWait is proxy generated method

type RecordInfo added in v0.6.1

type RecordInfo struct {
	PublicKey string
	Role      core.StaticRole
}

Jump to

Keyboard shortcuts

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