Documentation ¶
Index ¶
- Constants
- func AcceptAdmin(native *native.NativeService) ([]byte, error)
- func CreateSnapshot(native *native.NativeService) ([]byte, error)
- func GenerateOperatorKey(contract common.Address) []byte
- func GetGlobalParam(native *native.NativeService) ([]byte, error)
- func GetStorageRole(native *native.NativeService, key []byte) (common.Address, error)
- func InitGlobalParams()
- func NotifyParamChange(native *native.NativeService, contract common.Address, functionName string, ...)
- func NotifyRoleChange(native *native.NativeService, contract common.Address, functionName string, ...)
- func NotifyTransferAdmin(native *native.NativeService, contract common.Address, functionName string, ...)
- func ParamInit(native *native.NativeService) ([]byte, error)
- func RegisterParamContract(native *native.NativeService)
- func SetGlobalParam(native *native.NativeService) ([]byte, error)
- func SetOperator(native *native.NativeService) ([]byte, error)
- func TransferAdmin(native *native.NativeService) ([]byte, error)
- type Param
- type ParamNameList
- type Params
Constants ¶
View Source
const ( VERSION_CONTRACT_GLOBAL_PARAMS = byte(0) CURRENT_VALUE paramType = 0x00 PREPARE_VALUE paramType = 0x01 INIT_NAME = "init" ACCEPT_ADMIN_NAME = "acceptAdmin" TRANSFER_ADMIN_NAME = "transferAdmin" SET_OPERATOR = "setOperator" SET_GLOBAL_PARAM_NAME = "setGlobalParam" GET_GLOBAL_PARAM_NAME = "getGlobalParam" CREATE_SNAPSHOT_NAME = "createSnapshot" )
View Source
const ( PARAM = "param" TRANSFER = "transfer" ADMIN = "admin" OPERATOR = "operator" )
Variables ¶
This section is empty.
Functions ¶
func AcceptAdmin ¶
func AcceptAdmin(native *native.NativeService) ([]byte, error)
func CreateSnapshot ¶
func CreateSnapshot(native *native.NativeService) ([]byte, error)
func GenerateOperatorKey ¶
func GetGlobalParam ¶
func GetGlobalParam(native *native.NativeService) ([]byte, error)
func GetStorageRole ¶
func InitGlobalParams ¶
func InitGlobalParams()
func NotifyParamChange ¶ added in v1.0.0
func NotifyRoleChange ¶ added in v1.0.0
func NotifyTransferAdmin ¶ added in v1.0.0
func RegisterParamContract ¶
func RegisterParamContract(native *native.NativeService)
func SetGlobalParam ¶
func SetGlobalParam(native *native.NativeService) ([]byte, error)
func SetOperator ¶
func SetOperator(native *native.NativeService) ([]byte, error)
func TransferAdmin ¶
func TransferAdmin(native *native.NativeService) ([]byte, error)
Types ¶
type ParamNameList ¶
type ParamNameList []string
func (*ParamNameList) Deserialization ¶ added in v1.8.1
func (nameList *ParamNameList) Deserialization(source *common.ZeroCopySource) error
func (*ParamNameList) Serialization ¶ added in v1.8.1
func (nameList *ParamNameList) Serialization(sink *common.ZeroCopySink)
type Params ¶
type Params []Param
func (*Params) Deserialization ¶ added in v1.8.1
func (params *Params) Deserialization(source *common.ZeroCopySource) error
func (*Params) Serialization ¶ added in v1.8.1
func (params *Params) Serialization(sink *common.ZeroCopySink)
Click to show internal directories.
Click to hide internal directories.