Documentation ¶
Index ¶
- Variables
- func GetPrototype() insolar.Reference
- type ContractConstructorHolder
- type NodeDomain
- func (r *NodeDomain) GetCode() (insolar.Reference, error)
- func (r *NodeDomain) GetNodeRefByPublicKey(publicKey string) (string, error)
- func (r *NodeDomain) GetNodeRefByPublicKeyAsMutable(publicKey string) (string, error)
- func (r *NodeDomain) GetPrototype() (insolar.Reference, error)
- func (r *NodeDomain) GetReference() insolar.Reference
- func (r *NodeDomain) RegisterNode(publicKey string, role string) (string, error)
- func (r *NodeDomain) RegisterNodeAsImmutable(publicKey string, role string) (string, error)
- func (r *NodeDomain) RemoveNode(nodeRef insolar.Reference) error
- func (r *NodeDomain) RemoveNodeAsImmutable(nodeRef insolar.Reference) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PrototypeReference, _ = insolar.NewObjectReferenceFromBase58("0111A6NKbCjpzFr9MttfcWV8vX8eFjiyGPPfSH1AMtwN")
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 (*ContractConstructorHolder) AsChild ¶
func (r *ContractConstructorHolder) AsChild(objRef insolar.Reference) (*NodeDomain, error)
AsChild saves object as child
type NodeDomain ¶
type NodeDomain struct { Reference insolar.Reference Prototype insolar.Reference Code insolar.Reference }
NodeDomain holds proxy type
func (*NodeDomain) GetCode ¶
func (r *NodeDomain) GetCode() (insolar.Reference, error)
GetCode returns reference to the code
func (*NodeDomain) GetNodeRefByPublicKey ¶
func (r *NodeDomain) GetNodeRefByPublicKey(publicKey string) (string, error)
GetNodeRefByPublicKeyAsImmutable is proxy generated method
func (*NodeDomain) GetNodeRefByPublicKeyAsMutable ¶
func (r *NodeDomain) GetNodeRefByPublicKeyAsMutable(publicKey string) (string, error)
GetNodeRefByPublicKey is proxy generated method
func (*NodeDomain) GetPrototype ¶
func (r *NodeDomain) GetPrototype() (insolar.Reference, error)
GetPrototype returns reference to the code
func (*NodeDomain) GetReference ¶
func (r *NodeDomain) GetReference() insolar.Reference
GetReference returns reference of the object
func (*NodeDomain) RegisterNode ¶
func (r *NodeDomain) RegisterNode(publicKey string, role string) (string, error)
RegisterNode is proxy generated method
func (*NodeDomain) RegisterNodeAsImmutable ¶
func (r *NodeDomain) RegisterNodeAsImmutable(publicKey string, role string) (string, error)
RegisterNodeAsImmutable is proxy generated method
func (*NodeDomain) RemoveNode ¶
func (r *NodeDomain) RemoveNode(nodeRef insolar.Reference) error
RemoveNode is proxy generated method
func (*NodeDomain) RemoveNodeAsImmutable ¶
func (r *NodeDomain) RemoveNodeAsImmutable(nodeRef insolar.Reference) error
RemoveNodeAsImmutable is proxy generated method
Click to show internal directories.
Click to hide internal directories.