noderecord

package
v0.9.1-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = insolar.NewReferenceFromBase58("0111A5fZeApbGhcsLrbfGy82kKLgapF93GhNPMLSYaPY")

PrototypeReference to prototype of this contract error checking hides in generator

Functions

func GetPrototype

func GetPrototype() insolar.Reference

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

AsChild saves object as child

type NodeRecord

type NodeRecord struct {
	Reference insolar.Reference
	Prototype insolar.Reference
	Code      insolar.Reference
}

NodeRecord holds proxy type

func GetObject

func GetObject(ref insolar.Reference) *NodeRecord

GetObject returns proxy object

func (*NodeRecord) Destroy

func (r *NodeRecord) Destroy() error

Destroy is proxy generated method

func (*NodeRecord) DestroyAsImmutable

func (r *NodeRecord) DestroyAsImmutable() error

DestroyAsImmutable is proxy generated method

func (*NodeRecord) DestroyNoWait

func (r *NodeRecord) DestroyNoWait() error

DestroyNoWait is proxy generated method

func (*NodeRecord) GetCode

func (r *NodeRecord) GetCode() (insolar.Reference, error)

GetCode returns reference to the code

func (*NodeRecord) GetNodeInfo

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

GetNodeInfoAsImmutable is proxy generated method

func (*NodeRecord) GetNodeInfoAsMutable

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

GetNodeInfo is proxy generated method

func (*NodeRecord) GetNodeInfoNoWait

func (r *NodeRecord) GetNodeInfoNoWait() error

GetNodeInfoNoWait is proxy generated method

func (*NodeRecord) GetPrototype

func (r *NodeRecord) GetPrototype() (insolar.Reference, error)

GetPrototype returns reference to the code

func (*NodeRecord) GetPublicKey

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

GetPublicKeyAsImmutable is proxy generated method

func (*NodeRecord) GetPublicKeyAsMutable

func (r *NodeRecord) GetPublicKeyAsMutable() (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() insolar.Reference

GetReference returns reference of the object

func (*NodeRecord) GetRole

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

GetRoleAsImmutable is proxy generated method

func (*NodeRecord) GetRoleAsMutable

func (r *NodeRecord) GetRoleAsMutable() (insolar.StaticRole, error)

GetRole is proxy generated method

func (*NodeRecord) GetRoleNoWait

func (r *NodeRecord) GetRoleNoWait() error

GetRoleNoWait is proxy generated method

type RecordInfo

type RecordInfo struct {
	PublicKey string
	Role      insolar.StaticRole
}

Jump to

Keyboard shortcuts

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