Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AppID is the unique application identifier. AppID uint8 = 0x06 // AppName is the ABCI application name. AppName string = "200_scheduler" )
Variables ¶
View Source
var ( // EventType is the ABCI event type for scheduler events. EventType = api.EventTypeForApp(AppName) // QueryApp is a query for filtering events processed by the // scheduler application. QueryApp = api.QueryForApp(AppName) // KeyElected is the ABCI event attribute key for the elected // committee types. KeyElected = []byte("elected") )
View Source
var ( RNGContextExecutor = []byte("EkS-ABCI-Compute") RNGContextStorage = []byte("EkS-ABCI-Storage") RNGContextValidators = []byte("EkS-ABCI-Validators") RNGContextEntities = []byte("EkS-ABCI-Entities") )
Functions ¶
Types ¶
type Query ¶
type Query interface { Validators(context.Context) ([]*scheduler.Validator, error) AllCommittees(context.Context) ([]*scheduler.Committee, error) KindsCommittees(context.Context, []scheduler.CommitteeKind) ([]*scheduler.Committee, error) Genesis(context.Context) (*scheduler.Genesis, error) }
Query is the scheduler query interface.
type QueryFactory ¶
type QueryFactory struct {
// contains filtered or unexported fields
}
QueryFactory is the scheduler 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.