Documentation ¶
Index ¶
- Variables
- func GetPrototype() insolar.Reference
- type ContractConstructorHolder
- type NodeRecord
- func (r *NodeRecord) Destroy() error
- func (r *NodeRecord) DestroyAsImmutable() error
- func (r *NodeRecord) GetCode() (insolar.Reference, error)
- func (r *NodeRecord) GetNodeInfo() (RecordInfo, error)
- func (r *NodeRecord) GetNodeInfoAsMutable() (RecordInfo, error)
- func (r *NodeRecord) GetPrototype() (insolar.Reference, error)
- func (r *NodeRecord) GetPublicKey() (string, error)
- func (r *NodeRecord) GetPublicKeyAsMutable() (string, error)
- func (r *NodeRecord) GetReference() insolar.Reference
- func (r *NodeRecord) GetRole() (insolar.StaticRole, error)
- func (r *NodeRecord) GetRoleAsMutable() (insolar.StaticRole, error)
- type RecordInfo
Constants ¶
This section is empty.
Variables ¶
var PrototypeReference, _ = insolar.NewObjectReferenceFromBase58("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) 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) 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) 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
type RecordInfo ¶
type RecordInfo struct { PublicKey string Role insolar.StaticRole }