rootdomain

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClassReference = core.NewRefFromBase58("")

ClassReference to class of this contract

Functions

func GetClass

func GetClass() core.RecordRef

GetClass returns reference to the class

Types

type ContractConstructorHolder

type ContractConstructorHolder struct {
	// contains filtered or unexported fields
}

ContractConstructorHolder holds logic with object construction

func NewRootDomain

func NewRootDomain() *ContractConstructorHolder

NewRootDomain is constructor

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

type RootDomain struct {
	Reference core.RecordRef
}

RootDomain holds proxy type

func GetImplementationFrom

func GetImplementationFrom(object core.RecordRef) (*RootDomain, error)

GetImplementationFrom returns proxy to delegate of given type

func GetObject

func GetObject(ref core.RecordRef) (r *RootDomain)

GetObject returns proxy object

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) SendMoney

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

SendMoney is proxy generated method

func (*RootDomain) SendMoneyNoWait

func (r *RootDomain) SendMoneyNoWait(from string, to string, amount uint) error

SendMoneyNoWait is proxy generated method

Jump to

Keyboard shortcuts

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