Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainContext ¶
type ChainContext struct { Chain consensus.ChainHeaderReader Child consensus.Engine }
func (ChainContext) Engine ¶
func (c ChainContext) Engine() consensus.Engine
type EventRecord ¶
type EventRecord struct { ID uint64 `json:"id" yaml:"id"` Contract common.Address `json:"contract" yaml:"contract"` Data hexutil.Bytes `json:"data" yaml:"data"` TxHash common.Hash `json:"tx_hash" yaml:"tx_hash"` LogIndex uint64 `json:"log_index" yaml:"log_index"` ChainID string `json:"child_chain_id" yaml:"child_chain_id"` }
EventRecord represents state record
type EventRecordWithTime ¶
type EventRecordWithTime struct { EventRecord Time time.Time `json:"record_time" yaml:"record_time"` }
func (*EventRecordWithTime) BuildEventRecord ¶
func (e *EventRecordWithTime) BuildEventRecord() *EventRecord
func (*EventRecordWithTime) String ¶
func (e *EventRecordWithTime) String(gasUsed uint64) string
String returns the string representation of EventRecord
type GenesisContract ¶
type StateSyncData ¶
StateSyncData represents state received from Root Blockchain
type StateSyncEvent ¶
type StateSyncEvent struct {
Data *StateSyncData
}
StateSyncEvent represents state sync events
Click to show internal directories.
Click to hide internal directories.