Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AppID is the unique application identifier. AppID uint8 = 0x09 // AppPriority is the base priority for the app's transactions. AppPriority int64 = 5000 )
Variables ¶
View Source
var ( // AppName is the ABCI application name. AppName = "400_vault" // EventType is the ABCI event type for staking events. EventType = api.EventTypeForApp(AppName) // QueryApp is a query for filtering events processed by the // staking application. QueryApp = api.QueryForApp(AppName) )
Functions ¶
Types ¶
type Query ¶
type Query interface { Vaults(context.Context) ([]*vault.Vault, error) Vault(context.Context, staking.Address) (*vault.Vault, error) AddressState(context.Context, staking.Address, staking.Address) (*vault.AddressState, error) PendingActions(context.Context, staking.Address) ([]*vault.PendingAction, error) Genesis(context.Context) (*vault.Genesis, error) ConsensusParameters(context.Context) (*vault.ConsensusParameters, error) }
Query is the vault query interface.
type QueryFactory ¶
type QueryFactory struct {
// contains filtered or unexported fields
}
QueryFactory is the vault 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.