Documentation ¶
Index ¶
- Variables
- func GetClass() core.RecordRef
- type ContractConstructorHolder
- type RootDomain
- func (r *RootDomain) Authorize() (string, []core.NodeRole, error)
- func (r *RootDomain) AuthorizeNoWait() error
- func (r *RootDomain) CreateMember(name string, key string) (string, error)
- func (r *RootDomain) CreateMemberNoWait(name string, key string) error
- func (r *RootDomain) DumpAllUsers() ([]byte, error)
- func (r *RootDomain) DumpAllUsersNoWait() error
- func (r *RootDomain) DumpUserInfo(reference string) ([]byte, error)
- func (r *RootDomain) DumpUserInfoNoWait(reference string) error
- func (r *RootDomain) GetBalance(reference string) (uint, error)
- func (r *RootDomain) GetBalanceNoWait(reference string) error
- func (r *RootDomain) GetClass() core.RecordRef
- func (r *RootDomain) GetNodeDomainRef() (core.RecordRef, error)
- func (r *RootDomain) GetNodeDomainRefNoWait() error
- func (r *RootDomain) GetReference() core.RecordRef
- func (r *RootDomain) RegisterNode(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ...) ([]byte, error)
- func (r *RootDomain) RegisterNodeNoWait(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ...) error
- func (r *RootDomain) SendMoney(from string, to string, amount uint) (bool, error)
- func (r *RootDomain) SendMoneyNoWait(from string, to string, amount uint) error
Constants ¶
This section is empty.
Variables ¶
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) (*RootDomain, error)
AsChild saves object as child
func (*ContractConstructorHolder) AsDelegate ¶
func (r *ContractConstructorHolder) AsDelegate(objRef core.RecordRef) (*RootDomain, error)
AsDelegate saves object as delegate
type RootDomain ¶
RootDomain holds proxy type
func GetImplementationFrom ¶
func GetImplementationFrom(object core.RecordRef) (*RootDomain, error)
GetImplementationFrom returns proxy to delegate of given type
func (*RootDomain) Authorize ¶
func (r *RootDomain) Authorize() (string, []core.NodeRole, error)
Authorize is proxy generated method
func (*RootDomain) AuthorizeNoWait ¶
func (r *RootDomain) AuthorizeNoWait() error
AuthorizeNoWait is proxy generated method
func (*RootDomain) CreateMember ¶
func (r *RootDomain) CreateMember(name string, key string) (string, error)
CreateMember is proxy generated method
func (*RootDomain) CreateMemberNoWait ¶
func (r *RootDomain) CreateMemberNoWait(name string, key string) error
CreateMemberNoWait is proxy generated method
func (*RootDomain) DumpAllUsers ¶
func (r *RootDomain) DumpAllUsers() ([]byte, error)
DumpAllUsers is proxy generated method
func (*RootDomain) DumpAllUsersNoWait ¶
func (r *RootDomain) DumpAllUsersNoWait() error
DumpAllUsersNoWait is proxy generated method
func (*RootDomain) DumpUserInfo ¶
func (r *RootDomain) DumpUserInfo(reference string) ([]byte, error)
DumpUserInfo is proxy generated method
func (*RootDomain) DumpUserInfoNoWait ¶
func (r *RootDomain) DumpUserInfoNoWait(reference string) error
DumpUserInfoNoWait is proxy generated method
func (*RootDomain) GetBalance ¶
func (r *RootDomain) GetBalance(reference string) (uint, error)
GetBalance is proxy generated method
func (*RootDomain) GetBalanceNoWait ¶
func (r *RootDomain) GetBalanceNoWait(reference string) error
GetBalanceNoWait is proxy generated method
func (*RootDomain) GetClass ¶
func (r *RootDomain) GetClass() core.RecordRef
GetClass returns reference to the class
func (*RootDomain) GetNodeDomainRef ¶ added in v0.6.1
func (r *RootDomain) GetNodeDomainRef() (core.RecordRef, error)
GetNodeDomainRef is proxy generated method
func (*RootDomain) GetNodeDomainRefNoWait ¶ added in v0.6.1
func (r *RootDomain) GetNodeDomainRefNoWait() error
GetNodeDomainRefNoWait is proxy generated method
func (*RootDomain) GetReference ¶
func (r *RootDomain) GetReference() core.RecordRef
GetReference returns reference of the object
func (*RootDomain) RegisterNode ¶
func (r *RootDomain) RegisterNode(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ip string) ([]byte, error)
RegisterNode is proxy generated method
func (*RootDomain) RegisterNodeNoWait ¶
func (r *RootDomain) RegisterNodeNoWait(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ip string) error
RegisterNodeNoWait is proxy generated method
func (*RootDomain) SendMoneyNoWait ¶
func (r *RootDomain) SendMoneyNoWait(from string, to string, amount uint) error
SendMoneyNoWait is proxy generated method