Documentation ¶
Overview ¶
Package beacon implements the beacon application.
Index ¶
Constants ¶
View Source
const ( // AppID is the unique application identifier. AppID uint8 = 0x04 // AppName is the ABCI application name. // Run before the scheduler application. AppName string = "100_beacon" )
Variables ¶
View Source
var ( // EventType is the ABCI event type for beacon events. EventType = api.EventTypeForApp(AppName) // QueryApp is a query for filtering events processed by the // beacon application. QueryApp = api.QueryForApp(AppName) // KeyGenerated is the ABCI event attribute key for the new // beacons (value is a CBOR serialized beacon.GenerateEvent). KeyGenerated = []byte("generated") )
View Source
var (
DebugEntropyCtx = []byte("Ekb-Dumm")
)
Functions ¶
Types ¶
type Query ¶
type Query interface { Beacon(context.Context) ([]byte, error) Genesis(context.Context) (*beacon.Genesis, error) }
Query is the beacon query interface.
type QueryFactory ¶
type QueryFactory struct {
// contains filtered or unexported fields
}
QueryFactory is the beacon query factory.
func NewQueryFactory ¶
func NewQueryFactory(state abciAPI.ApplicationQueryState) *QueryFactory
NewQueryFactory returns a new QueryFactory backed by the given state instance.
Click to show internal directories.
Click to hide internal directories.