Documentation ¶
Index ¶
- Variables
- func GetClass() core.RecordRef
- type ContractConstructorHolder
- type NodeDomain
- func (r *NodeDomain) Authorize(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) (string, core.NodeRole, string)
- func (r *NodeDomain) AuthorizeNoWait(nodeRef core.RecordRef, seed []byte, signatureRaw []byte)
- func (r *NodeDomain) GetClass() core.RecordRef
- func (r *NodeDomain) GetReference() core.RecordRef
- func (r *NodeDomain) IsAuthorized(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) bool
- func (r *NodeDomain) IsAuthorizedNoWait(nodeRef core.RecordRef, seed []byte, signatureRaw []byte)
- func (r *NodeDomain) RegisterNode(pk string, role string) core.RecordRef
- func (r *NodeDomain) RegisterNodeNoWait(pk string, role string)
- func (r *NodeDomain) RemoveNode(nodeRef core.RecordRef)
- func (r *NodeDomain) RemoveNodeNoWait(nodeRef core.RecordRef)
Constants ¶
This section is empty.
Variables ¶
View Source
var ClassReference = core.NewRefFromBase58("")
ClassReference to class of this contract
Functions ¶
Types ¶
type ContractConstructorHolder ¶
type ContractConstructorHolder struct {
// contains filtered or unexported fields
}
ContractConstructorHolder holds logic with object construction
func (*ContractConstructorHolder) AsChild ¶
func (r *ContractConstructorHolder) AsChild(objRef core.RecordRef) *NodeDomain
AsChild saves object as child
func (*ContractConstructorHolder) AsDelegate ¶
func (r *ContractConstructorHolder) AsDelegate(objRef core.RecordRef) *NodeDomain
AsDelegate saves object as delegate
type NodeDomain ¶
NodeDomain holds proxy type
func GetImplementationFrom ¶
func GetImplementationFrom(object core.RecordRef) *NodeDomain
GetImplementationFrom returns proxy to delegate of given type
func (*NodeDomain) Authorize ¶
func (r *NodeDomain) Authorize(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) (string, core.NodeRole, string)
Authorize is proxy generated method
func (*NodeDomain) AuthorizeNoWait ¶
func (r *NodeDomain) AuthorizeNoWait(nodeRef core.RecordRef, seed []byte, signatureRaw []byte)
AuthorizeNoWait is proxy generated method
func (*NodeDomain) GetClass ¶
func (r *NodeDomain) GetClass() core.RecordRef
GetClass returns reference to the class
func (*NodeDomain) GetReference ¶
func (r *NodeDomain) GetReference() core.RecordRef
GetReference returns reference of the object
func (*NodeDomain) IsAuthorized ¶
IsAuthorized is proxy generated method
func (*NodeDomain) IsAuthorizedNoWait ¶
func (r *NodeDomain) IsAuthorizedNoWait(nodeRef core.RecordRef, seed []byte, signatureRaw []byte)
IsAuthorizedNoWait is proxy generated method
func (*NodeDomain) RegisterNode ¶
func (r *NodeDomain) RegisterNode(pk string, role string) core.RecordRef
RegisterNode is proxy generated method
func (*NodeDomain) RegisterNodeNoWait ¶
func (r *NodeDomain) RegisterNodeNoWait(pk string, role string)
RegisterNodeNoWait is proxy generated method
func (*NodeDomain) RemoveNode ¶
func (r *NodeDomain) RemoveNode(nodeRef core.RecordRef)
RemoveNode is proxy generated method
func (*NodeDomain) RemoveNodeNoWait ¶
func (r *NodeDomain) RemoveNodeNoWait(nodeRef core.RecordRef)
RemoveNodeNoWait is proxy generated method
Click to show internal directories.
Click to hide internal directories.