pkshard

package
v1.12.4-0...-e320c17 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = insolar.NewObjectReferenceFromString("insolar:0AAABAiGN1L8F9gCH_keBaxOP4atp9fzLiIci7xOg-hs")

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 New

New is constructor

func (*ContractConstructorHolder) AsChild

func (r *ContractConstructorHolder) AsChild(objRef insolar.Reference) (*PKShard, error)

AsChild saves object as child

type PKShard

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

PKShard holds proxy type

func GetObject

func GetObject(ref insolar.Reference) *PKShard

GetObject returns proxy object

func (*PKShard) GetCode

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

GetCode returns reference to the code

func (*PKShard) GetPrototype

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

GetPrototype returns reference to the code

func (*PKShard) GetRef

func (r *PKShard) GetRef(key string) (string, error)

GetRefAsImmutable is proxy generated method

func (*PKShard) GetRefAsMutable

func (r *PKShard) GetRefAsMutable(key string) (string, error)

GetRef is proxy generated method

func (*PKShard) GetReference

func (r *PKShard) GetReference() insolar.Reference

GetReference returns reference of the object

func (*PKShard) SetRef

func (r *PKShard) SetRef(key string, ref string) error

SetRef is proxy generated method

func (*PKShard) SetRefAsImmutable

func (r *PKShard) SetRefAsImmutable(key string, ref string) error

SetRefAsImmutable is proxy generated method

Jump to

Keyboard shortcuts

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