Documentation ¶
Index ¶
- type RootDomain
- func (rd *RootDomain) CreateMember(name string) string
- func (rd *RootDomain) DumpAllUsers() []byte
- func (rd *RootDomain) DumpUserInfo(reference string) []byte
- func (rd *RootDomain) GetBalance(reference string) uint
- func (rd *RootDomain) IsAuthorized() bool
- func (rd *RootDomain) RegisterNode(publicKey string, role string) string
- func (rd *RootDomain) SendMoney(from string, to string, amount uint) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootDomain ¶
type RootDomain struct {
foundation.BaseContract
}
RootDomain is smart contract representing entrance point to system
func (*RootDomain) CreateMember ¶
func (rd *RootDomain) CreateMember(name string) string
CreateMember processes create member request
func (*RootDomain) DumpAllUsers ¶
func (rd *RootDomain) DumpAllUsers() []byte
DumpAllUsers processes dump all users request
func (*RootDomain) DumpUserInfo ¶
func (rd *RootDomain) DumpUserInfo(reference string) []byte
DumpUserInfo processes dump user info request
func (*RootDomain) GetBalance ¶
func (rd *RootDomain) GetBalance(reference string) uint
GetBalance processes get balance request
func (*RootDomain) IsAuthorized ¶ added in v0.4.0
func (rd *RootDomain) IsAuthorized() bool
IsAuthorized checks is node authorized
func (*RootDomain) RegisterNode ¶
func (rd *RootDomain) RegisterNode(publicKey string, role string) string
RegisterNode processes register node request
Click to show internal directories.
Click to hide internal directories.