rootdomain

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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
}

RootDomain is smart contract representing entrance point to system

func NewRootDomain

func NewRootDomain() *RootDomain

NewRootDomain creates new RootDomain

func (*RootDomain) Authorize

func (rd *RootDomain) Authorize() (string, core.NodeRole, string)

Authorize checks is node authorized

func (*RootDomain) CreateMember

func (rd *RootDomain) CreateMember(name string, key 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) RegisterNode

func (rd *RootDomain) RegisterNode(publicKey string, role string) string

RegisterNode processes register node request

func (*RootDomain) SendMoney

func (rd *RootDomain) SendMoney(from string, to string, amount uint) bool

SendMoney processes send money request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL