Documentation ¶
Index ¶
- type RootDomain
- func (rd *RootDomain) Authorize() (string, []core.NodeRole, error)
- func (rd *RootDomain) CreateMember(name string, key string) (string, error)
- func (rd *RootDomain) DumpAllUsers() ([]byte, error)
- func (rd *RootDomain) DumpUserInfo(reference string) ([]byte, error)
- func (rd *RootDomain) GetBalance(reference string) (uint, error)
- func (rd *RootDomain) GetNodeDomainRef() (core.RecordRef, error)
- func (rd *RootDomain) RegisterNode(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ...) ([]byte, error)
- func (rd *RootDomain) SendMoney(from string, to string, amount uint) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootDomain ¶
type RootDomain struct { foundation.BaseContract RootMember core.RecordRef NodeDomainRef core.RecordRef }
RootDomain is smart contract representing entrance point to system
func (*RootDomain) Authorize ¶
func (rd *RootDomain) Authorize() (string, []core.NodeRole, error)
Authorize checks is node authorized ( It's temporary method. Remove it when we have good tests )
func (*RootDomain) CreateMember ¶
func (rd *RootDomain) CreateMember(name string, key string) (string, error)
CreateMember processes create member request
func (*RootDomain) DumpAllUsers ¶
func (rd *RootDomain) DumpAllUsers() ([]byte, error)
DumpAllUsers processes dump all users request
func (*RootDomain) DumpUserInfo ¶
func (rd *RootDomain) DumpUserInfo(reference string) ([]byte, error)
DumpUserInfo processes dump user info request
func (*RootDomain) GetBalance ¶
func (rd *RootDomain) GetBalance(reference string) (uint, error)
GetBalance processes get balance request
func (*RootDomain) GetNodeDomainRef ¶ added in v0.6.1
func (rd *RootDomain) GetNodeDomainRef() (core.RecordRef, error)
GetNodeDomainRef returns reference of NodeDomain instance
func (*RootDomain) RegisterNode ¶
func (rd *RootDomain) RegisterNode(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ip string) ([]byte, error)
RegisterNode processes register node request
Click to show internal directories.
Click to hide internal directories.