nodedomain

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PanicIsLogicalError = false

Variables

This section is empty.

Functions

func INSCONSTRUCTOR_NewNodeDomain

func INSCONSTRUCTOR_NewNodeDomain(ref insolar.Reference, data []byte) (state []byte, result []byte, err error)

func INSMETHOD_GetCode

func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetNodeRefByPublicKey

func INSMETHOD_GetNodeRefByPublicKey(object []byte, data []byte) (newState []byte, result []byte, err error)

func INSMETHOD_GetPrototype

func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_RegisterNode

func INSMETHOD_RegisterNode(object []byte, data []byte) (newState []byte, result []byte, err error)

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() insolar.ContractWrapper

Types

type NodeDomain

type NodeDomain struct {
	foundation.BaseContract

	NodeIndexPublicKey foundation.StableMap
}

NodeDomain holds node records.

func NewNodeDomain

func NewNodeDomain() (*NodeDomain, error)

NewNodeDomain create new NodeDomain.

func (*NodeDomain) GetNodeRefByPublicKey

func (nd *NodeDomain) GetNodeRefByPublicKey(publicKey string) (string, error)

GetNodeRefByPublicKey returns node reference. ins:immutable

func (*NodeDomain) RegisterNode

func (nd *NodeDomain) RegisterNode(publicKey string, role string) (string, error)

RegisterNode registers node in system.

Jump to

Keyboard shortcuts

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