Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Contracts = make(map[common.Address]RegisterService)
)
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler func(native *NativeService) ([]byte, error)
type NativeService ¶
type NativeService struct { CacheDB *storage.CacheDB ServiceMap map[string]Handler Notifications []*event.NotifyEventInfo InvokeParam sstates.ContractInvokeParam Input []byte Tx *types.Transaction Height uint32 Time uint32 BlockHash common.Uint256 ContextRef context.ContextRef }
Native service struct Invoke a native smart contract, new a native service
func (*NativeService) Invoke ¶
func (this *NativeService) Invoke() (interface{}, error)
func (*NativeService) NativeCall ¶
func (*NativeService) Register ¶
func (this *NativeService) Register(methodName string, handler Handler)
type RegisterService ¶
type RegisterService func(native *NativeService)
Directories ¶
Path | Synopsis |
---|---|
Governance contract: Users can apply for a candidate node to join consensus selection, deposit ONX to authorize for candidate nodes, quit selection and unAuthorize for candidate nodes through this contract.
|
Governance contract: Users can apply for a candidate node to join consensus selection, deposit ONX to authorize for candidate nodes, quit selection and unAuthorize for candidate nodes through this contract. |
* Copyright (C) 2019 The onyxchain Authors * This file is part of The onyxchain library.
|
* Copyright (C) 2019 The onyxchain Authors * This file is part of The onyxchain library. |
* Copyright (C) 2019 The onyxchain Authors * This file is part of The onyxchain library.
|
* Copyright (C) 2019 The onyxchain Authors * This file is part of The onyxchain library. |
Click to show internal directories.
Click to hide internal directories.