Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProtocolID is the ID of protocol ProtocolID = "actions" // ActionHistoryTableName is the table name of action history ActionHistoryTableName = "action_history" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionHistory ¶
type ActionHistory struct { ActionType string ActionHash string ReceiptHash string BlockHeight uint64 From string To string GasPrice string GasConsumed uint64 Nonce uint64 Amount string ReceiptStatus string }
ActionHistory defines the base schema of "action history" table
type ActionInfo ¶
type ActionInfo struct { ActionType string ActionHash string ReceiptHash hash.Hash256 From string To string GasPrice string Nonce uint64 Amount string }
ActionInfo defines an action's information
type Protocol ¶
Protocol defines the protocol of indexing blocks
func (*Protocol) CreateTables ¶
CreateTables creates tables
func (*Protocol) HandleBlock ¶
HandleBlock handles blocks
func (*Protocol) Initialize ¶
Initialize initializes actions protocol
type ReceiptInfo ¶
ReceiptInfo defines a receipt's information
Click to show internal directories.
Click to hide internal directories.