Documentation ¶
Overview ¶
Package roothash implements the roothash application.
Index ¶
Constants ¶
View Source
const ( // AppID is the unique application identifier. AppID uint8 = 0x02 // AppName is the ABCI application name. AppName string = "999_roothash" // AppPriority is the base priority for the app's transactions. AppPriority int64 = 15000 )
Variables ¶
View Source
var ( // EventType is the ABCI event type for roothash events. EventType = api.EventTypeForApp(AppName) // QueryApp is a query for filtering transactions processed by the // roothash application. QueryApp = api.QueryForApp(AppName) )
Functions ¶
Types ¶
type Query ¶
type Query interface { LatestBlock(context.Context, common.Namespace) (*block.Block, error) GenesisBlock(context.Context, common.Namespace) (*block.Block, error) RuntimeState(context.Context, common.Namespace) (*roothash.RuntimeState, error) LastRoundResults(context.Context, common.Namespace) (*roothash.RoundResults, error) IncomingMessageQueueMeta(context.Context, common.Namespace) (*message.IncomingMessageQueueMeta, error) IncomingMessageQueue(ctx context.Context, id common.Namespace, offset uint64, limit uint32) ([]*message.IncomingMessage, error) Genesis(context.Context) (*roothash.Genesis, error) ConsensusParameters(context.Context) (*roothash.ConsensusParameters, error) }
Query is the roothash query interface.
type QueryFactory ¶
type QueryFactory struct {
// contains filtered or unexported fields
}
QueryFactory is the roothash query factory.
func NewQueryFactory ¶
func NewQueryFactory(state abciAPI.ApplicationQueryState) *QueryFactory
NewQueryFactory returns a new QueryFactory backed by the given state instance.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.