Documentation ¶
Index ¶
- Variables
- func GetPrototype() core.RecordRef
- type ContractConstructorHolder
- type NodeRecord
- func (r *NodeRecord) Destroy() error
- func (r *NodeRecord) DestroyNoWait() error
- func (r *NodeRecord) GetCode() (core.RecordRef, error)
- func (r *NodeRecord) GetNodeInfo() (RecordInfo, error)
- func (r *NodeRecord) GetNodeInfoNoWait() error
- func (r *NodeRecord) GetPrototype() (core.RecordRef, error)
- func (r *NodeRecord) GetPublicKey() (string, error)
- func (r *NodeRecord) GetPublicKeyNoWait() error
- func (r *NodeRecord) GetReference() core.RecordRef
- func (r *NodeRecord) GetRole() (core.StaticRole, error)
- func (r *NodeRecord) GetRoleNoWait() error
- type RecordInfo
Constants ¶
This section is empty.
Variables ¶
var PrototypeReference, _ = core.NewRefFromBase58("11112rJdjdVwCCkc9tvLdJwKkV16m6iryEJ7tWLNRPK.11111111111111111111111111111111")
PrototypeReference to prototype of this contract error checking hides in generator
Functions ¶
func GetPrototype ¶ added in v0.6.2
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 ¶
NodeRecord holds proxy type
func GetImplementationFrom ¶
func GetImplementationFrom(object core.RecordRef) (*NodeRecord, error)
GetImplementationFrom returns proxy to delegate of given type
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 }