Documentation
¶
Index ¶
- type Loader
- func (l *Loader) LoadBalance(account string) tea.Cmd
- func (l *Loader) LoadBids(owner string, dseq uint64) tea.Cmd
- func (l *Loader) LoadDeploymentLeases(owner string, dseq uint64) tea.Cmd
- func (l *Loader) LoadDeployments(owner string) tea.Cmd
- func (l *Loader) LoadLeases(owner string) tea.Cmd
- func (l *Loader) LoadProposals() tea.Cmd
- func (l *Loader) LoadProviders() tea.Cmd
- func (l *Loader) LoadStakingPool() tea.Cmd
- func (l *Loader) LoadStoreStats() tea.Cmd
- func (l *Loader) LoadSyncState() tea.Cmd
- func (l *Loader) LoadTallies(proposals []*govv1.Proposal) tea.Cmd
- func (l *Loader) LoadValidators() tea.Cmd
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct {
Store store.Store
LightClient aclient.LightClient
}
Loader implements Service using a Store and LightClient.
func NewLoader ¶
func NewLoader(s store.Store, cl aclient.LightClient) *Loader
NewLoader creates a Loader. Either Store or LightClient may be nil; methods that require a nil dependency return an error message.
func (*Loader) LoadBalance ¶
LoadBalance returns a tea.Cmd that loads the account balance from the chain.
func (*Loader) LoadDeploymentLeases ¶
LoadDeploymentLeases returns a tea.Cmd that loads leases for a specific deployment.
func (*Loader) LoadDeployments ¶
LoadDeployments returns a tea.Cmd that loads deployments from the store.
func (*Loader) LoadLeases ¶
LoadLeases returns a tea.Cmd that loads all leases for an owner.
func (*Loader) LoadProposals ¶
LoadProposals returns a tea.Cmd that loads governance proposals from the chain.
func (*Loader) LoadProviders ¶
LoadProviders returns a tea.Cmd that loads on-chain providers.
func (*Loader) LoadStakingPool ¶
LoadStakingPool returns a tea.Cmd that loads the staking pool info from the chain.
func (*Loader) LoadStoreStats ¶
LoadStoreStats returns a tea.Cmd that loads aggregate store statistics.
func (*Loader) LoadSyncState ¶
LoadSyncState returns a tea.Cmd that loads the current sync state.
func (*Loader) LoadTallies ¶
LoadTallies returns a tea.Cmd that loads vote tallies for proposals in voting period.
func (*Loader) LoadValidators ¶
LoadValidators returns a tea.Cmd that loads validators from the chain.
type Service ¶
type Service interface {
LoadDeployments(owner string) tea.Cmd
LoadLeases(owner string) tea.Cmd
LoadDeploymentLeases(owner string, dseq uint64) tea.Cmd
LoadBids(owner string, dseq uint64) tea.Cmd
LoadProviders() tea.Cmd
LoadProposals() tea.Cmd
LoadTallies(proposals []*govv1.Proposal) tea.Cmd
LoadValidators() tea.Cmd
LoadStakingPool() tea.Cmd
LoadBalance(account string) tea.Cmd
LoadStoreStats() tea.Cmd
LoadSyncState() tea.Cmd
}
Service defines the contract for data loading that views depend on. Each method returns a tea.Cmd that produces the corresponding message from the messages package when executed by the bubbletea runtime.