Documentation ¶
Index ¶
- Variables
- func GetPrototype() insolar.Reference
- type ContractConstructorHolder
- type NodeRecord
- func (r *NodeRecord) Destroy() error
- func (r *NodeRecord) DestroyAsImmutable() error
- func (r *NodeRecord) DestroyNoWait() error
- func (r *NodeRecord) GetCode() (insolar.Reference, error)
- func (r *NodeRecord) GetNodeInfo() (RecordInfo, error)
- func (r *NodeRecord) GetNodeInfoAsMutable() (RecordInfo, error)
- func (r *NodeRecord) GetNodeInfoNoWait() error
- func (r *NodeRecord) GetPrototype() (insolar.Reference, error)
- func (r *NodeRecord) GetPublicKey() (string, error)
- func (r *NodeRecord) GetPublicKeyAsMutable() (string, error)
- func (r *NodeRecord) GetPublicKeyNoWait() error
- func (r *NodeRecord) GetReference() insolar.Reference
- func (r *NodeRecord) GetRole() (insolar.StaticRole, error)
- func (r *NodeRecord) GetRoleAsMutable() (insolar.StaticRole, error)
- func (r *NodeRecord) GetRoleNoWait() error
- type RecordInfo
Constants ¶
This section is empty.
Variables ¶
var PrototypeReference, _ = insolar.NewReferenceFromBase58("0111A5fZeApbGhcsLrbfGy82kKLgapF93GhNPMLSYaPY")
PrototypeReference to prototype of this contract error checking hides in generator
Functions ¶
func GetPrototype ¶
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 insolar.Reference) (*NodeRecord, error)
AsChild saves object as child
type NodeRecord ¶
type NodeRecord struct { Reference insolar.Reference Prototype insolar.Reference Code insolar.Reference }
NodeRecord holds proxy type
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 }