Documentation
¶
Index ¶
- Constants
- Variables
- func GetNextModelByExistingApp(ctx context.Context, existingApp bool) (tea.Model, error)
- func IsExistApp(initiaConfigPath string) bool
- func WaitExistingDataChecker(ctx context.Context) tea.Cmd
- func WaitExistingGenesisChecker(ctx context.Context) tea.Cmd
- type AdditionalStateSyncPeersInput
- type AutoUpgradeOption
- type CosmovisorAutoUpgradeSelector
- type EnableFeaturesCheckbox
- type EnableFeaturesOption
- type ExistingAppReplaceOption
- type ExistingAppReplaceSelect
- type ExistingDataChecker
- type ExistingDataReplaceSelect
- type ExistingGenesisChecker
- type ExistingGenesisReplaceOption
- type ExistingGenesisReplaceSelect
- type GenesisEndpointInput
- type InitializingAppLoading
- type L1NodeNetworkOption
- type MinGasPriceInput
- type PersistentPeersInput
- type PruningOption
- type RunL1NodeChainIdInput
- type RunL1NodeMonikerInput
- type RunL1NodeNetworkSelect
- type RunL1NodeState
- type RunL1NodeVersionSelect
- type SeedsInput
- type SelectingPruningStrategy
- type SnapshotDownloadLoading
- type SnapshotEndpointInput
- type SnapshotExtractLoading
- type StateSyncEndpointInput
- type StateSyncSetupLoading
- type SyncConfirmationOption
- type SyncMethodOption
- type SyncMethodSelect
- type TerminalState
Constants ¶
View Source
const ( DefaultGasPriceDenom string = "uinit" CosmovisorVersion string = "v1.7.0" )
Variables ¶
View Source
var (
PolkachuChainIdSlugMap = map[string]string{
"interwoven-1": "tendermint_snapshots/initia",
"initiation-2": "testnets/initia/snapshots",
}
)
Functions ¶
func IsExistApp ¶
Types ¶
type AdditionalStateSyncPeersInput ¶
type AdditionalStateSyncPeersInput struct {
ui.TextInput
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewAdditionalStateSyncPeersInput ¶
func NewAdditionalStateSyncPeersInput(ctx context.Context) (*AdditionalStateSyncPeersInput, error)
func (*AdditionalStateSyncPeersInput) GetQuestion ¶
func (m *AdditionalStateSyncPeersInput) GetQuestion() string
func (*AdditionalStateSyncPeersInput) Init ¶
func (m *AdditionalStateSyncPeersInput) Init() tea.Cmd
func (*AdditionalStateSyncPeersInput) View ¶
func (m *AdditionalStateSyncPeersInput) View() string
type AutoUpgradeOption ¶
type AutoUpgradeOption string
const ( EnableAutoUpgrade AutoUpgradeOption = "Yes" DisableAutoUpgrade AutoUpgradeOption = "No" )
type CosmovisorAutoUpgradeSelector ¶
type CosmovisorAutoUpgradeSelector struct {
ui.Selector[AutoUpgradeOption]
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewCosmovisorAutoUpgradeSelector ¶
func NewCosmovisorAutoUpgradeSelector(ctx context.Context) *CosmovisorAutoUpgradeSelector
func (*CosmovisorAutoUpgradeSelector) GetQuestion ¶
func (m *CosmovisorAutoUpgradeSelector) GetQuestion() string
func (*CosmovisorAutoUpgradeSelector) Init ¶
func (m *CosmovisorAutoUpgradeSelector) Init() tea.Cmd
func (*CosmovisorAutoUpgradeSelector) View ¶
func (m *CosmovisorAutoUpgradeSelector) View() string
type EnableFeaturesCheckbox ¶
type EnableFeaturesCheckbox struct {
ui.CheckBox[EnableFeaturesOption]
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewEnableFeaturesCheckbox ¶
func NewEnableFeaturesCheckbox(ctx context.Context) *EnableFeaturesCheckbox
func (*EnableFeaturesCheckbox) GetQuestion ¶
func (m *EnableFeaturesCheckbox) GetQuestion() string
func (*EnableFeaturesCheckbox) Init ¶
func (m *EnableFeaturesCheckbox) Init() tea.Cmd
func (*EnableFeaturesCheckbox) View ¶
func (m *EnableFeaturesCheckbox) View() string
type EnableFeaturesOption ¶
type EnableFeaturesOption string
const ( REST EnableFeaturesOption = "REST" GRPC EnableFeaturesOption = "gRPC" )
type ExistingAppReplaceOption ¶
type ExistingAppReplaceOption string
const ( UseCurrentApp ExistingAppReplaceOption = "Use current files" ReplaceApp ExistingAppReplaceOption = "Replace" )
type ExistingAppReplaceSelect ¶
type ExistingAppReplaceSelect struct {
ui.Selector[ExistingAppReplaceOption]
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewExistingAppReplaceSelect ¶
func NewExistingAppReplaceSelect(ctx context.Context) (*ExistingAppReplaceSelect, error)
func (*ExistingAppReplaceSelect) GetQuestion ¶
func (m *ExistingAppReplaceSelect) GetQuestion() string
func (*ExistingAppReplaceSelect) Init ¶
func (m *ExistingAppReplaceSelect) Init() tea.Cmd
func (*ExistingAppReplaceSelect) View ¶
func (m *ExistingAppReplaceSelect) View() string
type ExistingDataChecker ¶
type ExistingDataChecker struct {
weavecontext.BaseModel
ui.Loading
}
func NewExistingDataChecker ¶
func NewExistingDataChecker(ctx context.Context) *ExistingDataChecker
func (*ExistingDataChecker) Init ¶
func (m *ExistingDataChecker) Init() tea.Cmd
func (*ExistingDataChecker) View ¶
func (m *ExistingDataChecker) View() string
type ExistingDataReplaceSelect ¶
type ExistingDataReplaceSelect struct {
ui.Selector[SyncConfirmationOption]
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewExistingDataReplaceSelect ¶
func NewExistingDataReplaceSelect(ctx context.Context) (*ExistingDataReplaceSelect, error)
func (*ExistingDataReplaceSelect) GetQuestion ¶
func (m *ExistingDataReplaceSelect) GetQuestion() string
func (*ExistingDataReplaceSelect) Init ¶
func (m *ExistingDataReplaceSelect) Init() tea.Cmd
func (*ExistingDataReplaceSelect) View ¶
func (m *ExistingDataReplaceSelect) View() string
type ExistingGenesisChecker ¶
type ExistingGenesisChecker struct {
weavecontext.BaseModel
ui.Loading
}
func NewExistingGenesisChecker ¶
func NewExistingGenesisChecker(ctx context.Context) *ExistingGenesisChecker
func (*ExistingGenesisChecker) Init ¶
func (m *ExistingGenesisChecker) Init() tea.Cmd
func (*ExistingGenesisChecker) View ¶
func (m *ExistingGenesisChecker) View() string
type ExistingGenesisReplaceOption ¶
type ExistingGenesisReplaceOption string
const ( UseCurrentGenesis ExistingGenesisReplaceOption = "Use current one" ReplaceGenesis ExistingGenesisReplaceOption = "Replace" // TODO: Dynamic text based on Network )
type ExistingGenesisReplaceSelect ¶
type ExistingGenesisReplaceSelect struct {
ui.Selector[ExistingGenesisReplaceOption]
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewExistingGenesisReplaceSelect ¶
func NewExistingGenesisReplaceSelect(ctx context.Context) (*ExistingGenesisReplaceSelect, error)
func (*ExistingGenesisReplaceSelect) GetQuestion ¶
func (m *ExistingGenesisReplaceSelect) GetQuestion() string
func (*ExistingGenesisReplaceSelect) Init ¶
func (m *ExistingGenesisReplaceSelect) Init() tea.Cmd
func (*ExistingGenesisReplaceSelect) View ¶
func (m *ExistingGenesisReplaceSelect) View() string
type GenesisEndpointInput ¶
type GenesisEndpointInput struct {
ui.TextInput
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewGenesisEndpointInput ¶
func NewGenesisEndpointInput(ctx context.Context) *GenesisEndpointInput
func (*GenesisEndpointInput) GetQuestion ¶
func (m *GenesisEndpointInput) GetQuestion() string
func (*GenesisEndpointInput) Init ¶
func (m *GenesisEndpointInput) Init() tea.Cmd
func (*GenesisEndpointInput) View ¶
func (m *GenesisEndpointInput) View() string
type InitializingAppLoading ¶
type InitializingAppLoading struct {
ui.Loading
weavecontext.BaseModel
}
func NewInitializingAppLoading ¶
func NewInitializingAppLoading(ctx context.Context) *InitializingAppLoading
func (*InitializingAppLoading) Init ¶
func (m *InitializingAppLoading) Init() tea.Cmd
func (*InitializingAppLoading) View ¶
func (m *InitializingAppLoading) View() string
type L1NodeNetworkOption ¶
type L1NodeNetworkOption string
const Local L1NodeNetworkOption = "Local"
var ( Mainnet L1NodeNetworkOption = "" Testnet L1NodeNetworkOption = "" )
func (L1NodeNetworkOption) GetNetworkType ¶
func (l L1NodeNetworkOption) GetNetworkType() string
func (L1NodeNetworkOption) ToChainType ¶
func (l L1NodeNetworkOption) ToChainType() (registry.ChainType, error)
type MinGasPriceInput ¶
type MinGasPriceInput struct {
ui.TextInput
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewMinGasPriceInput ¶
func NewMinGasPriceInput(ctx context.Context) *MinGasPriceInput
func (*MinGasPriceInput) GetQuestion ¶
func (m *MinGasPriceInput) GetQuestion() string
func (*MinGasPriceInput) Init ¶
func (m *MinGasPriceInput) Init() tea.Cmd
func (*MinGasPriceInput) View ¶
func (m *MinGasPriceInput) View() string
type PersistentPeersInput ¶
type PersistentPeersInput struct {
ui.TextInput
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewPersistentPeersInput ¶
func NewPersistentPeersInput(ctx context.Context) (*PersistentPeersInput, error)
func (*PersistentPeersInput) GetQuestion ¶
func (m *PersistentPeersInput) GetQuestion() string
func (*PersistentPeersInput) Init ¶
func (m *PersistentPeersInput) Init() tea.Cmd
func (*PersistentPeersInput) View ¶
func (m *PersistentPeersInput) View() string
type PruningOption ¶
type PruningOption string
const ( DefaultPruningOption PruningOption = "Default (recommended)" NothingPruningOption PruningOption = "Nothing" EverythingPruningOption PruningOption = "Everything" )
type RunL1NodeChainIdInput ¶
type RunL1NodeChainIdInput struct {
ui.TextInput
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewRunL1NodeChainIdInput ¶
func NewRunL1NodeChainIdInput(ctx context.Context) *RunL1NodeChainIdInput
func (*RunL1NodeChainIdInput) GetQuestion ¶
func (m *RunL1NodeChainIdInput) GetQuestion() string
func (*RunL1NodeChainIdInput) Init ¶
func (m *RunL1NodeChainIdInput) Init() tea.Cmd
func (*RunL1NodeChainIdInput) View ¶
func (m *RunL1NodeChainIdInput) View() string
type RunL1NodeMonikerInput ¶
type RunL1NodeMonikerInput struct {
ui.TextInput
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewRunL1NodeMonikerInput ¶
func NewRunL1NodeMonikerInput(ctx context.Context) *RunL1NodeMonikerInput
func (*RunL1NodeMonikerInput) GetQuestion ¶
func (m *RunL1NodeMonikerInput) GetQuestion() string
func (*RunL1NodeMonikerInput) Init ¶
func (m *RunL1NodeMonikerInput) Init() tea.Cmd
func (*RunL1NodeMonikerInput) View ¶
func (m *RunL1NodeMonikerInput) View() string
type RunL1NodeNetworkSelect ¶
type RunL1NodeNetworkSelect struct {
weavecontext.BaseModel
ui.Selector[L1NodeNetworkOption]
// contains filtered or unexported fields
}
func NewRunL1NodeNetworkSelect ¶
func NewRunL1NodeNetworkSelect(ctx context.Context) (*RunL1NodeNetworkSelect, error)
func (*RunL1NodeNetworkSelect) GetQuestion ¶
func (m *RunL1NodeNetworkSelect) GetQuestion() string
func (*RunL1NodeNetworkSelect) Init ¶
func (m *RunL1NodeNetworkSelect) Init() tea.Cmd
func (*RunL1NodeNetworkSelect) View ¶
func (m *RunL1NodeNetworkSelect) View() string
type RunL1NodeState ¶
type RunL1NodeState struct {
// contains filtered or unexported fields
}
RunL1NodeState represents the configuration state of a Layer 1 Node
func NewRunL1NodeState ¶
func NewRunL1NodeState() RunL1NodeState
NewRunL1NodeState initializes a new RunL1NodeState with default values.
func (RunL1NodeState) Clone ¶
func (s RunL1NodeState) Clone() RunL1NodeState
Clone creates a deep copy of RunL1NodeState without pointers.
type RunL1NodeVersionSelect ¶
type RunL1NodeVersionSelect struct {
ui.Selector[string]
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewRunL1NodeVersionSelect ¶
func NewRunL1NodeVersionSelect(ctx context.Context) (*RunL1NodeVersionSelect, error)
func (*RunL1NodeVersionSelect) GetQuestion ¶
func (m *RunL1NodeVersionSelect) GetQuestion() string
func (*RunL1NodeVersionSelect) Init ¶
func (m *RunL1NodeVersionSelect) Init() tea.Cmd
func (*RunL1NodeVersionSelect) View ¶
func (m *RunL1NodeVersionSelect) View() string
type SeedsInput ¶
type SeedsInput struct {
ui.TextInput
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewSeedsInput ¶
func NewSeedsInput(ctx context.Context) *SeedsInput
func (*SeedsInput) GetQuestion ¶
func (m *SeedsInput) GetQuestion() string
func (*SeedsInput) Init ¶
func (m *SeedsInput) Init() tea.Cmd
func (*SeedsInput) View ¶
func (m *SeedsInput) View() string
type SelectingPruningStrategy ¶
type SelectingPruningStrategy struct {
ui.Selector[PruningOption]
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewSelectingPruningStrategy ¶
func NewSelectingPruningStrategy(ctx context.Context) *SelectingPruningStrategy
func (*SelectingPruningStrategy) GetQuestion ¶
func (m *SelectingPruningStrategy) GetQuestion() string
func (*SelectingPruningStrategy) Init ¶
func (m *SelectingPruningStrategy) Init() tea.Cmd
func (*SelectingPruningStrategy) View ¶
func (m *SelectingPruningStrategy) View() string
type SnapshotDownloadLoading ¶
type SnapshotDownloadLoading struct {
ui.Downloader
weavecontext.BaseModel
}
func NewSnapshotDownloadLoading ¶
func NewSnapshotDownloadLoading(ctx context.Context) (*SnapshotDownloadLoading, error)
func (*SnapshotDownloadLoading) Init ¶
func (m *SnapshotDownloadLoading) Init() tea.Cmd
func (*SnapshotDownloadLoading) View ¶
func (m *SnapshotDownloadLoading) View() string
type SnapshotEndpointInput ¶
type SnapshotEndpointInput struct {
ui.TextInput
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewSnapshotEndpointInput ¶
func NewSnapshotEndpointInput(ctx context.Context) (*SnapshotEndpointInput, error)
func (*SnapshotEndpointInput) GetQuestion ¶
func (m *SnapshotEndpointInput) GetQuestion() string
func (*SnapshotEndpointInput) Init ¶
func (m *SnapshotEndpointInput) Init() tea.Cmd
func (*SnapshotEndpointInput) View ¶
func (m *SnapshotEndpointInput) View() string
type SnapshotExtractLoading ¶
type SnapshotExtractLoading struct {
ui.Loading
weavecontext.BaseModel
}
func NewSnapshotExtractLoading ¶
func NewSnapshotExtractLoading(ctx context.Context) *SnapshotExtractLoading
func (*SnapshotExtractLoading) Init ¶
func (m *SnapshotExtractLoading) Init() tea.Cmd
func (*SnapshotExtractLoading) View ¶
func (m *SnapshotExtractLoading) View() string
type StateSyncEndpointInput ¶
type StateSyncEndpointInput struct {
ui.TextInput
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewStateSyncEndpointInput ¶
func NewStateSyncEndpointInput(ctx context.Context) *StateSyncEndpointInput
func (*StateSyncEndpointInput) GetQuestion ¶
func (m *StateSyncEndpointInput) GetQuestion() string
func (*StateSyncEndpointInput) Init ¶
func (m *StateSyncEndpointInput) Init() tea.Cmd
func (*StateSyncEndpointInput) View ¶
func (m *StateSyncEndpointInput) View() string
type StateSyncSetupLoading ¶
type StateSyncSetupLoading struct {
ui.Loading
weavecontext.BaseModel
}
func NewStateSyncSetupLoading ¶
func NewStateSyncSetupLoading(ctx context.Context) *StateSyncSetupLoading
func (*StateSyncSetupLoading) Init ¶
func (m *StateSyncSetupLoading) Init() tea.Cmd
func (*StateSyncSetupLoading) View ¶
func (m *StateSyncSetupLoading) View() string
type SyncConfirmationOption ¶
type SyncConfirmationOption string
const ( ProceedWithSync SyncConfirmationOption = "Yes" Skip SyncConfirmationOption = "No, I want to skip syncing" )
type SyncMethodOption ¶
type SyncMethodOption string
const ( Snapshot SyncMethodOption = "Snapshot" StateSync SyncMethodOption = "State Sync" NoSync SyncMethodOption = "No Sync" )
type SyncMethodSelect ¶
type SyncMethodSelect struct {
ui.Selector[SyncMethodOption]
weavecontext.BaseModel
// contains filtered or unexported fields
}
func NewSyncMethodSelect ¶
func NewSyncMethodSelect(ctx context.Context) *SyncMethodSelect
func (*SyncMethodSelect) GetQuestion ¶
func (m *SyncMethodSelect) GetQuestion() string
func (*SyncMethodSelect) Init ¶
func (m *SyncMethodSelect) Init() tea.Cmd
func (*SyncMethodSelect) View ¶
func (m *SyncMethodSelect) View() string
type TerminalState ¶
type TerminalState struct {
weavecontext.BaseModel
}
func NewTerminalState ¶
func NewTerminalState(ctx context.Context) *TerminalState
func (*TerminalState) Init ¶
func (m *TerminalState) Init() tea.Cmd
func (*TerminalState) View ¶
func (m *TerminalState) View() string
Click to show internal directories.
Click to hide internal directories.