data

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func (l *Loader) LoadBalance(account string) tea.Cmd

LoadBalance returns a tea.Cmd that loads the account balance from the chain.

func (*Loader) LoadBids

func (l *Loader) LoadBids(owner string, dseq uint64) tea.Cmd

LoadBids returns a tea.Cmd that loads bids for a specific deployment.

func (*Loader) LoadDeploymentLeases

func (l *Loader) LoadDeploymentLeases(owner string, dseq uint64) tea.Cmd

LoadDeploymentLeases returns a tea.Cmd that loads leases for a specific deployment.

func (*Loader) LoadDeployments

func (l *Loader) LoadDeployments(owner string) tea.Cmd

LoadDeployments returns a tea.Cmd that loads deployments from the store.

func (*Loader) LoadLeases

func (l *Loader) LoadLeases(owner string) tea.Cmd

LoadLeases returns a tea.Cmd that loads all leases for an owner.

func (*Loader) LoadProposals

func (l *Loader) LoadProposals() tea.Cmd

LoadProposals returns a tea.Cmd that loads governance proposals from the chain.

func (*Loader) LoadProviders

func (l *Loader) LoadProviders() tea.Cmd

LoadProviders returns a tea.Cmd that loads on-chain providers.

func (*Loader) LoadStakingPool

func (l *Loader) LoadStakingPool() tea.Cmd

LoadStakingPool returns a tea.Cmd that loads the staking pool info from the chain.

func (*Loader) LoadStoreStats

func (l *Loader) LoadStoreStats() tea.Cmd

LoadStoreStats returns a tea.Cmd that loads aggregate store statistics.

func (*Loader) LoadSyncState

func (l *Loader) LoadSyncState() tea.Cmd

LoadSyncState returns a tea.Cmd that loads the current sync state.

func (*Loader) LoadTallies

func (l *Loader) LoadTallies(proposals []*govv1.Proposal) tea.Cmd

LoadTallies returns a tea.Cmd that loads vote tallies for proposals in voting period.

func (*Loader) LoadValidators

func (l *Loader) LoadValidators() tea.Cmd

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL