Documentation ¶
Index ¶
- Constants
- func ApproveRegisterStateValidator(native *native.NativeService) ([]byte, error)
- func ApproveRemoveStateValidator(native *native.NativeService) ([]byte, error)
- func DeserializeStringArray(data []byte) ([]string, error)
- func GetCurrentStateValidator(native *native.NativeService) ([]byte, error)
- func RegisterStateValidator(native *native.NativeService) ([]byte, error)
- func RegisterStateValidatorManagerContract(native *native.NativeService)
- func RemoveStateValidator(native *native.NativeService) ([]byte, error)
- func SerializeStringArray(data []string) []byte
- type ApproveStateValidatorParam
- type StateValidatorListParam
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 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 ¶
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)
Click to show internal directories.
Click to hide internal directories.