neo3_state_manager

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//function name
	GET_CURRENT_STATE_VALIDATOR      = "getCurrentStateValidator"
	REGISTER_STATE_VALIDATOR         = "registerStateValidator"
	APPROVE_REGISTER_STATE_VALIDATOR = "approveRegisterStateValidator"
	REMOVE_STATE_VALIDATOR           = "removeStateValidator"
	APPROVE_REMOVE_STATE_VALIDATOR   = "approveRemoveStateValidator"

	//key prefix
	STATE_VALIDATOR           = "stateValidator"
	STATE_VALIDATOR_APPLY     = "stateValidatorApply"
	STATE_VALIDATOR_REMOVE    = "stateValidatorRemove"
	STATE_VALIDATOR_APPLY_ID  = "stateValidatorApplyID"
	STATE_VALIDATOR_REMOVE_ID = "stateValidatorRemoveID"
)

Variables

This section is empty.

Functions

func ApproveRegisterStateValidator

func ApproveRegisterStateValidator(native *native.NativeService) ([]byte, error)

func ApproveRemoveStateValidator

func ApproveRemoveStateValidator(native *native.NativeService) ([]byte, error)

func DeserializeStringArray

func DeserializeStringArray(data []byte) ([]string, error)

func GetCurrentStateValidator

func GetCurrentStateValidator(native *native.NativeService) ([]byte, error)

func RegisterStateValidator

func RegisterStateValidator(native *native.NativeService) ([]byte, error)

func RegisterStateValidatorManagerContract

func RegisterStateValidatorManagerContract(native *native.NativeService)

Register methods of node_manager contract

func RemoveStateValidator

func RemoveStateValidator(native *native.NativeService) ([]byte, error)

func SerializeStringArray

func SerializeStringArray(data []string) []byte

Types

type ApproveStateValidatorParam

type ApproveStateValidatorParam struct {
	ID      uint64         // StateValidatorApproveID
	Address common.Address // for check witness?
}

func (*ApproveStateValidatorParam) Deserialization

func (this *ApproveStateValidatorParam) Deserialization(source *common.ZeroCopySource) error

func (*ApproveStateValidatorParam) Serialization

func (this *ApproveStateValidatorParam) Serialization(sink *common.ZeroCopySink)

type StateValidatorListParam

type StateValidatorListParam struct {
	StateValidators []string       // public key strings in encoded format, each is 33 bytes in []byte
	Address         common.Address // for check witness?
}

func (*StateValidatorListParam) Deserialization

func (this *StateValidatorListParam) Deserialization(source *common.ZeroCopySource) error

func (*StateValidatorListParam) Serialization

func (this *StateValidatorListParam) Serialization(sink *common.ZeroCopySink)

Jump to

Keyboard shortcuts

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