minitia

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: BSD-3-Clause Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName string = "minitiad"

	OperatorKeyName        string = "weave.Operator"
	BridgeExecutorKeyName  string = "weave.BridgeExecutor"
	OutputSubmitterKeyName string = "weave.OutputSubmitter"
	BatchSubmitterKeyName  string = "weave.BatchSubmitter"
	ChallengerKeyName      string = "weave.Challenger"

	DefaultL1BridgeExecutorBalance  string = "2000000"
	DefaultL1OutputSubmitterBalance string = "2000000"
	DefaultL1BatchSubmitterBalance  string = "1000000"
	DefaultL1ChallengerBalance      string = "2000000"
	DefaultL2BridgeExecutorBalance  string = "100000000"

	TmpTxFilename string = "weave.minitia.tx.json"

	DefaultL1GasDenom       string = "uinit"
	DefaultL1GasPrices             = "0.015" + DefaultL1GasDenom
	DefaultCelestiaGasDenom string = "utia"

	MaxMonikerLength int = 70
	MaxChainIDLength int = 50

	LaunchConfigFilename = "minitia.config.json"

	CelestiaAppName string = "celestia-appd"

	InitiaScanMainnetURL string = "https://scan.initia.xyz"
	InitiaScanTestnetURL string = "https://scan.testnet.initia.xyz"

	DefaultMinitiaLCD       string = "http://localhost:1317"
	DefaultMinitiaRPC       string = "http://localhost:26657"
	DefaultMinitiaWebsocket string = "ws://localhost:26657/websocket"
	DefaultMinitiaGRPC      string = "http://localhost:9090"
	DefaultMinitiaJsonRPC   string = "http://localhost:8545"
	DefaultMinitiaJsonRPCWS string = "ws://localhost:8546"
	DefaultMinitiaIndexer   string = "http://localhost:6767"

	DefaultRollupDenom  string = "umin"
	DefaultMinievmDenom string = "GAS"
)
View Source
const FundMinitiaAccountsDefaultTxInterface = `` /* 1394-byte string literal not displayed */
View Source
const FundMinitiaAccountsWithoutBatchTxInterface = `` /* 1156-byte string literal not displayed */

Variables

View Source
var (
	DefaultL1InitiaNeededBalanceIfCelestiaDA string
	DefaultL1InitiaNeededBalanceIfInitiaDA   string
)
View Source
var ErrInsufficientBalance = errors.New("insufficient balance")

Functions

This section is empty.

Types

type AccountsFundingPresetOption

type AccountsFundingPresetOption string
const ManuallyFill AccountsFundingPresetOption = "○ Fill in an amount for each account manually"
var DefaultPreset AccountsFundingPresetOption = ""

type AccountsFundingPresetSelect

type AccountsFundingPresetSelect struct {
	ui.Selector[AccountsFundingPresetOption]
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewAccountsFundingPresetSelect

func NewAccountsFundingPresetSelect(ctx context.Context) (*AccountsFundingPresetSelect, error)

func (*AccountsFundingPresetSelect) GetQuestion

func (m *AccountsFundingPresetSelect) GetQuestion() string

func (*AccountsFundingPresetSelect) Init

func (*AccountsFundingPresetSelect) Update

func (m *AccountsFundingPresetSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*AccountsFundingPresetSelect) View

type AddGasStationToGenesisOption

type AddGasStationToGenesisOption string
const (
	Add     AddGasStationToGenesisOption = "Yes"
	DontAdd AddGasStationToGenesisOption = "No"
)

type AddGasStationToGenesisSelect

type AddGasStationToGenesisSelect struct {
	ui.Selector[AddGasStationToGenesisOption]
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewAddGasStationToGenesisSelect

func NewAddGasStationToGenesisSelect(ctx context.Context) *AddGasStationToGenesisSelect

func (*AddGasStationToGenesisSelect) GetQuestion

func (m *AddGasStationToGenesisSelect) GetQuestion() string

func (*AddGasStationToGenesisSelect) Init

func (*AddGasStationToGenesisSelect) Update

func (m *AddGasStationToGenesisSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*AddGasStationToGenesisSelect) View

type AddGenesisAccountsOption

type AddGenesisAccountsOption string
const (
	Yes AddGenesisAccountsOption = "Yes"
	No  AddGenesisAccountsOption = "No"
)

type AddGenesisAccountsSelect

type AddGenesisAccountsSelect struct {
	ui.Selector[AddGenesisAccountsOption]
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewAddGenesisAccountsSelect

func NewAddGenesisAccountsSelect(recurring bool, ctx context.Context) *AddGenesisAccountsSelect

func (*AddGenesisAccountsSelect) GetQuestionAndHighlight

func (m *AddGenesisAccountsSelect) GetQuestionAndHighlight() (string, string)

func (*AddGenesisAccountsSelect) Init

func (m *AddGenesisAccountsSelect) Init() tea.Cmd

func (*AddGenesisAccountsSelect) Update

func (m *AddGenesisAccountsSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*AddGenesisAccountsSelect) View

func (m *AddGenesisAccountsSelect) View() string

type ChainIdInput

type ChainIdInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewChainIdInput

func NewChainIdInput(ctx context.Context) *ChainIdInput

func (*ChainIdInput) GetQuestion

func (m *ChainIdInput) GetQuestion() string

func (*ChainIdInput) Init

func (m *ChainIdInput) Init() tea.Cmd

func (*ChainIdInput) Update

func (m *ChainIdInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ChainIdInput) View

func (m *ChainIdInput) View() string

type DeleteExistingMinitiaInput

type DeleteExistingMinitiaInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewDeleteExistingMinitiaInput

func NewDeleteExistingMinitiaInput(ctx context.Context) *DeleteExistingMinitiaInput

func (*DeleteExistingMinitiaInput) GetQuestion

func (m *DeleteExistingMinitiaInput) GetQuestion() string

func (*DeleteExistingMinitiaInput) Init

func (*DeleteExistingMinitiaInput) Update

func (m *DeleteExistingMinitiaInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*DeleteExistingMinitiaInput) View

type DownloadCelestiaBinaryLoading

type DownloadCelestiaBinaryLoading struct {
	ui.Loading
	weavecontext.BaseModel
}

func NewDownloadCelestiaBinaryLoading

func NewDownloadCelestiaBinaryLoading(ctx context.Context) (*DownloadCelestiaBinaryLoading, error)

func (*DownloadCelestiaBinaryLoading) Init

func (*DownloadCelestiaBinaryLoading) Update

func (m *DownloadCelestiaBinaryLoading) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*DownloadCelestiaBinaryLoading) View

type DownloadMinitiaBinaryLoading

type DownloadMinitiaBinaryLoading struct {
	ui.Loading
	weavecontext.BaseModel
}

func NewDownloadMinitiaBinaryLoading

func NewDownloadMinitiaBinaryLoading(ctx context.Context) *DownloadMinitiaBinaryLoading

func (*DownloadMinitiaBinaryLoading) Init

func (*DownloadMinitiaBinaryLoading) Update

func (m *DownloadMinitiaBinaryLoading) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*DownloadMinitiaBinaryLoading) View

type ExistingGasStationChecker

type ExistingGasStationChecker struct {
	ui.Loading
	weavecontext.BaseModel
}

func NewExistingGasStationChecker

func NewExistingGasStationChecker(ctx context.Context) *ExistingGasStationChecker

func (*ExistingGasStationChecker) Init

func (m *ExistingGasStationChecker) Init() tea.Cmd

func (*ExistingGasStationChecker) Update

func (m *ExistingGasStationChecker) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ExistingGasStationChecker) View

type ExistingMinitiaChecker

type ExistingMinitiaChecker struct {
	weavecontext.BaseModel
	ui.Loading
}

func NewExistingMinitiaChecker

func NewExistingMinitiaChecker(ctx context.Context) *ExistingMinitiaChecker

func (*ExistingMinitiaChecker) Init

func (m *ExistingMinitiaChecker) Init() tea.Cmd

func (*ExistingMinitiaChecker) Update

func (m *ExistingMinitiaChecker) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ExistingMinitiaChecker) View

func (m *ExistingMinitiaChecker) View() string

type FeeWhitelistAccountsInput

type FeeWhitelistAccountsInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewFeeWhitelistAccountsInput

func NewFeeWhitelistAccountsInput(ctx context.Context) *FeeWhitelistAccountsInput

func (*FeeWhitelistAccountsInput) GetQuestion

func (m *FeeWhitelistAccountsInput) GetQuestion() string

func (*FeeWhitelistAccountsInput) Init

func (m *FeeWhitelistAccountsInput) Init() tea.Cmd

func (*FeeWhitelistAccountsInput) Update

func (m *FeeWhitelistAccountsInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*FeeWhitelistAccountsInput) View

type FundAccountsResponse

type FundAccountsResponse struct {
	CelestiaTx *cosmosutils.InitiadTxResponse
	InitiaTx   *cosmosutils.InitiadTxResponse
}

type FundGasStationBroadcastLoading

type FundGasStationBroadcastLoading struct {
	ui.Loading
	weavecontext.BaseModel
}

func NewFundGasStationBroadcastLoading

func NewFundGasStationBroadcastLoading(ctx context.Context) *FundGasStationBroadcastLoading

func (*FundGasStationBroadcastLoading) Init

func (*FundGasStationBroadcastLoading) Update

func (*FundGasStationBroadcastLoading) View

type FundGasStationConfirmationInput

type FundGasStationConfirmationInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewFundGasStationConfirmationInput

func NewFundGasStationConfirmationInput(ctx context.Context) (*FundGasStationConfirmationInput, error)

func (*FundGasStationConfirmationInput) GetQuestion

func (m *FundGasStationConfirmationInput) GetQuestion() string

func (*FundGasStationConfirmationInput) Init

func (*FundGasStationConfirmationInput) Update

func (*FundGasStationConfirmationInput) View

type GasDenomInput

type GasDenomInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewGasDenomInput

func NewGasDenomInput(ctx context.Context) *GasDenomInput

func (*GasDenomInput) GetQuestion

func (m *GasDenomInput) GetQuestion() string

func (*GasDenomInput) Init

func (m *GasDenomInput) Init() tea.Cmd

func (*GasDenomInput) Update

func (m *GasDenomInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*GasDenomInput) View

func (m *GasDenomInput) View() string

type GasStationMnemonicInput

type GasStationMnemonicInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewGasStationMnemonicInput

func NewGasStationMnemonicInput(ctx context.Context) *GasStationMnemonicInput

func (*GasStationMnemonicInput) GetQuestion

func (m *GasStationMnemonicInput) GetQuestion() string

func (*GasStationMnemonicInput) Init

func (m *GasStationMnemonicInput) Init() tea.Cmd

func (*GasStationMnemonicInput) Update

func (m *GasStationMnemonicInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*GasStationMnemonicInput) View

func (m *GasStationMnemonicInput) View() string

type GenerateOrRecoverSystemKeysLoading

type GenerateOrRecoverSystemKeysLoading struct {
	ui.Loading
	weavecontext.BaseModel
}

func NewGenerateOrRecoverSystemKeysLoading

func NewGenerateOrRecoverSystemKeysLoading(ctx context.Context) *GenerateOrRecoverSystemKeysLoading

func (*GenerateOrRecoverSystemKeysLoading) Init

func (*GenerateOrRecoverSystemKeysLoading) Update

func (*GenerateOrRecoverSystemKeysLoading) View

type GenesisAccountsAddressInput

type GenesisAccountsAddressInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewGenesisAccountsAddressInput

func NewGenesisAccountsAddressInput(ctx context.Context) *GenesisAccountsAddressInput

func (*GenesisAccountsAddressInput) GetQuestion

func (m *GenesisAccountsAddressInput) GetQuestion() string

func (*GenesisAccountsAddressInput) Init

func (*GenesisAccountsAddressInput) Update

func (m *GenesisAccountsAddressInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*GenesisAccountsAddressInput) View

type GenesisAccountsBalanceInput

type GenesisAccountsBalanceInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewGenesisAccountsBalanceInput

func NewGenesisAccountsBalanceInput(address string, ctx context.Context) *GenesisAccountsBalanceInput

func (*GenesisAccountsBalanceInput) GetQuestion

func (m *GenesisAccountsBalanceInput) GetQuestion() string

func (*GenesisAccountsBalanceInput) Init

func (*GenesisAccountsBalanceInput) Update

func (m *GenesisAccountsBalanceInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*GenesisAccountsBalanceInput) View

type GenesisGasStationBalanceInput

type GenesisGasStationBalanceInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewGenesisGasStationBalanceInput

func NewGenesisGasStationBalanceInput(ctx context.Context) (*GenesisGasStationBalanceInput, error)

func (*GenesisGasStationBalanceInput) GetQuestion

func (m *GenesisGasStationBalanceInput) GetQuestion() string

func (*GenesisGasStationBalanceInput) Init

func (*GenesisGasStationBalanceInput) Update

func (m *GenesisGasStationBalanceInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*GenesisGasStationBalanceInput) View

type L1SystemKeys

type L1SystemKeys struct {
	BridgeExecutor  *types.GenesisAccount
	OutputSubmitter *types.GenesisAccount
	BatchSubmitter  *types.GenesisAccount
	Challenger      *types.GenesisAccount
}

func NewL1SystemKeys

func NewL1SystemKeys(bridgeExecutor, outputSubmitter, batchSubmitter, challenger *types.GenesisAccount) *L1SystemKeys

func (*L1SystemKeys) FundAccountsWithGasStation

func (lsk *L1SystemKeys) FundAccountsWithGasStation(state *LaunchState) (*FundAccountsResponse, error)

func (*L1SystemKeys) VerifyGasStationBalances added in v0.1.2

func (lsk *L1SystemKeys) VerifyGasStationBalances(state *LaunchState) error

type LatestVersionLoading

type LatestVersionLoading struct {
	weavecontext.BaseModel
	ui.Loading
	// contains filtered or unexported fields
}

func NewLatestVersionLoading

func NewLatestVersionLoading(ctx context.Context) *LatestVersionLoading

func (*LatestVersionLoading) Init

func (m *LatestVersionLoading) Init() tea.Cmd

func (*LatestVersionLoading) Update

func (m *LatestVersionLoading) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*LatestVersionLoading) View

func (m *LatestVersionLoading) View() string

type LaunchState

type LaunchState struct {
	// contains filtered or unexported fields
}

func NewLaunchState

func NewLaunchState() *LaunchState

func (LaunchState) Clone

func (ls LaunchState) Clone() LaunchState

func (*LaunchState) FillDefaultBalances

func (ls *LaunchState) FillDefaultBalances()

func (*LaunchState) FinalizeGenesisAccounts

func (ls *LaunchState) FinalizeGenesisAccounts()

func (*LaunchState) PrepareLaunchingWithConfig

func (ls *LaunchState) PrepareLaunchingWithConfig(vm, minitiadVersion, minitiadEndpoint, configPath string, config *types.MinitiaConfig)

type LaunchingNewMinitiaLoading

type LaunchingNewMinitiaLoading struct {
	ui.Loading
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewLaunchingNewMinitiaLoading

func NewLaunchingNewMinitiaLoading(ctx context.Context) *LaunchingNewMinitiaLoading

func (*LaunchingNewMinitiaLoading) Init

func (*LaunchingNewMinitiaLoading) Update

func (m *LaunchingNewMinitiaLoading) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*LaunchingNewMinitiaLoading) View

type MonikerInput

type MonikerInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewMonikerInput

func NewMonikerInput(ctx context.Context) *MonikerInput

func (*MonikerInput) GetQuestion

func (m *MonikerInput) GetQuestion() string

func (*MonikerInput) Init

func (m *MonikerInput) Init() tea.Cmd

func (*MonikerInput) Update

func (m *MonikerInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*MonikerInput) View

func (m *MonikerInput) View() string

type NetworkSelect

type NetworkSelect struct {
	ui.Selector[NetworkSelectOption]
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewNetworkSelect

func NewNetworkSelect(ctx context.Context) (*NetworkSelect, error)

func (*NetworkSelect) GetQuestion

func (m *NetworkSelect) GetQuestion() string

func (*NetworkSelect) Init

func (m *NetworkSelect) Init() tea.Cmd

func (*NetworkSelect) Update

func (m *NetworkSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*NetworkSelect) View

func (m *NetworkSelect) View() string

type NetworkSelectOption

type NetworkSelectOption string
var (
	Testnet NetworkSelectOption = ""
	Mainnet NetworkSelectOption = ""
)

func (NetworkSelectOption) ToChainType

func (n NetworkSelectOption) ToChainType() (registry.ChainType, error)

type OpBridgeBatchSubmissionTargetOption

type OpBridgeBatchSubmissionTargetOption string
const (
	Celestia OpBridgeBatchSubmissionTargetOption = "Celestia"
	Initia   OpBridgeBatchSubmissionTargetOption = "Initia L1"
)

type OpBridgeBatchSubmissionTargetSelect

type OpBridgeBatchSubmissionTargetSelect struct {
	ui.Selector[OpBridgeBatchSubmissionTargetOption]
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewOpBridgeBatchSubmissionTargetSelect

func NewOpBridgeBatchSubmissionTargetSelect(ctx context.Context) *OpBridgeBatchSubmissionTargetSelect

func (*OpBridgeBatchSubmissionTargetSelect) GetQuestion

func (*OpBridgeBatchSubmissionTargetSelect) Init

func (*OpBridgeBatchSubmissionTargetSelect) Update

func (*OpBridgeBatchSubmissionTargetSelect) View

type OpBridgeOutputFinalizationPeriodInput

type OpBridgeOutputFinalizationPeriodInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewOpBridgeOutputFinalizationPeriodInput

func NewOpBridgeOutputFinalizationPeriodInput(ctx context.Context) *OpBridgeOutputFinalizationPeriodInput

func (*OpBridgeOutputFinalizationPeriodInput) GetQuestion

func (*OpBridgeOutputFinalizationPeriodInput) Init

func (*OpBridgeOutputFinalizationPeriodInput) Update

func (*OpBridgeOutputFinalizationPeriodInput) View

type OpBridgeSubmissionIntervalInput

type OpBridgeSubmissionIntervalInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewOpBridgeSubmissionIntervalInput

func NewOpBridgeSubmissionIntervalInput(ctx context.Context) *OpBridgeSubmissionIntervalInput

func (*OpBridgeSubmissionIntervalInput) GetQuestion

func (m *OpBridgeSubmissionIntervalInput) GetQuestion() string

func (*OpBridgeSubmissionIntervalInput) Init

func (*OpBridgeSubmissionIntervalInput) Update

func (*OpBridgeSubmissionIntervalInput) View

type OracleEnableOption

type OracleEnableOption string
const (
	Enable  OracleEnableOption = "Enable"
	Disable OracleEnableOption = "Disable"
)

type OracleEnableSelect

type OracleEnableSelect struct {
	ui.Selector[OracleEnableOption]
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewOracleEnableSelect

func NewOracleEnableSelect(ctx context.Context) *OracleEnableSelect

func (*OracleEnableSelect) GetQuestion

func (m *OracleEnableSelect) GetQuestion() string

func (*OracleEnableSelect) Init

func (m *OracleEnableSelect) Init() tea.Cmd

func (*OracleEnableSelect) Update

func (m *OracleEnableSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*OracleEnableSelect) View

func (m *OracleEnableSelect) View() string

type RollyticsData added in v0.3.4

type RollyticsData struct {
	ChainID string
	VMType  string
}

Create a simple data structure for the template

type ScanPayload

type ScanPayload struct {
	Vm          string  `json:"vm"`
	ChainId     string  `json:"chainId"`
	MinGasPrice float64 `json:"minGasPrice"`
	Denom       string  `json:"denom"`
	Lcd         string  `json:"lcd"`
	Rpc         string  `json:"rpc"`
	JsonRpc     string  `json:"jsonRpc,omitempty"`
	Indexer     string  `json:"indexer"`
}

func (*ScanPayload) EncodeToBase64

func (sp *ScanPayload) EncodeToBase64() (string, error)

type SystemKeyBatchSubmitterMnemonicInput

type SystemKeyBatchSubmitterMnemonicInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeyBatchSubmitterMnemonicInput

func NewSystemKeyBatchSubmitterMnemonicInput(ctx context.Context) *SystemKeyBatchSubmitterMnemonicInput

func (*SystemKeyBatchSubmitterMnemonicInput) GetQuestion

func (*SystemKeyBatchSubmitterMnemonicInput) Init

func (*SystemKeyBatchSubmitterMnemonicInput) Update

func (*SystemKeyBatchSubmitterMnemonicInput) View

type SystemKeyBridgeExecutorMnemonicInput

type SystemKeyBridgeExecutorMnemonicInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeyBridgeExecutorMnemonicInput

func NewSystemKeyBridgeExecutorMnemonicInput(ctx context.Context) *SystemKeyBridgeExecutorMnemonicInput

func (*SystemKeyBridgeExecutorMnemonicInput) GetQuestion

func (*SystemKeyBridgeExecutorMnemonicInput) Init

func (*SystemKeyBridgeExecutorMnemonicInput) Update

func (*SystemKeyBridgeExecutorMnemonicInput) View

type SystemKeyChallengerMnemonicInput

type SystemKeyChallengerMnemonicInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeyChallengerMnemonicInput

func NewSystemKeyChallengerMnemonicInput(ctx context.Context) *SystemKeyChallengerMnemonicInput

func (*SystemKeyChallengerMnemonicInput) GetQuestion

func (m *SystemKeyChallengerMnemonicInput) GetQuestion() string

func (*SystemKeyChallengerMnemonicInput) Init

func (*SystemKeyChallengerMnemonicInput) Update

func (*SystemKeyChallengerMnemonicInput) View

type SystemKeyL1BatchSubmitterBalanceInput

type SystemKeyL1BatchSubmitterBalanceInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeyL1BatchSubmitterBalanceInput

func NewSystemKeyL1BatchSubmitterBalanceInput(ctx context.Context) *SystemKeyL1BatchSubmitterBalanceInput

func (*SystemKeyL1BatchSubmitterBalanceInput) GetQuestion

func (*SystemKeyL1BatchSubmitterBalanceInput) Init

func (*SystemKeyL1BatchSubmitterBalanceInput) Update

func (*SystemKeyL1BatchSubmitterBalanceInput) View

type SystemKeyL1BridgeExecutorBalanceInput

type SystemKeyL1BridgeExecutorBalanceInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeyL1BridgeExecutorBalanceInput

func NewSystemKeyL1BridgeExecutorBalanceInput(ctx context.Context) *SystemKeyL1BridgeExecutorBalanceInput

func (*SystemKeyL1BridgeExecutorBalanceInput) GetQuestion

func (*SystemKeyL1BridgeExecutorBalanceInput) Init

func (*SystemKeyL1BridgeExecutorBalanceInput) Update

func (*SystemKeyL1BridgeExecutorBalanceInput) View

type SystemKeyL1ChallengerBalanceInput

type SystemKeyL1ChallengerBalanceInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeyL1ChallengerBalanceInput

func NewSystemKeyL1ChallengerBalanceInput(ctx context.Context) *SystemKeyL1ChallengerBalanceInput

func (*SystemKeyL1ChallengerBalanceInput) GetQuestion

func (m *SystemKeyL1ChallengerBalanceInput) GetQuestion() string

func (*SystemKeyL1ChallengerBalanceInput) Init

func (*SystemKeyL1ChallengerBalanceInput) Update

func (*SystemKeyL1ChallengerBalanceInput) View

type SystemKeyL1OutputSubmitterBalanceInput

type SystemKeyL1OutputSubmitterBalanceInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeyL1OutputSubmitterBalanceInput

func NewSystemKeyL1OutputSubmitterBalanceInput(ctx context.Context) *SystemKeyL1OutputSubmitterBalanceInput

func (*SystemKeyL1OutputSubmitterBalanceInput) GetQuestion

func (*SystemKeyL1OutputSubmitterBalanceInput) Init

func (*SystemKeyL1OutputSubmitterBalanceInput) Update

func (*SystemKeyL1OutputSubmitterBalanceInput) View

type SystemKeyOperatorMnemonicInput

type SystemKeyOperatorMnemonicInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeyOperatorMnemonicInput

func NewSystemKeyOperatorMnemonicInput(ctx context.Context) *SystemKeyOperatorMnemonicInput

func (*SystemKeyOperatorMnemonicInput) GetQuestion

func (m *SystemKeyOperatorMnemonicInput) GetQuestion() string

func (*SystemKeyOperatorMnemonicInput) Init

func (*SystemKeyOperatorMnemonicInput) Update

func (*SystemKeyOperatorMnemonicInput) View

type SystemKeyOutputSubmitterMnemonicInput

type SystemKeyOutputSubmitterMnemonicInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeyOutputSubmitterMnemonicInput

func NewSystemKeyOutputSubmitterMnemonicInput(ctx context.Context) *SystemKeyOutputSubmitterMnemonicInput

func (*SystemKeyOutputSubmitterMnemonicInput) GetQuestion

func (*SystemKeyOutputSubmitterMnemonicInput) Init

func (*SystemKeyOutputSubmitterMnemonicInput) Update

func (*SystemKeyOutputSubmitterMnemonicInput) View

type SystemKeysMnemonicDisplayInput

type SystemKeysMnemonicDisplayInput struct {
	ui.TextInput
	// ui.Clickable
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeysMnemonicDisplayInput

func NewSystemKeysMnemonicDisplayInput(ctx context.Context) *SystemKeysMnemonicDisplayInput

func (*SystemKeysMnemonicDisplayInput) GetQuestion

func (m *SystemKeysMnemonicDisplayInput) GetQuestion() string

func (*SystemKeysMnemonicDisplayInput) Init

func (*SystemKeysMnemonicDisplayInput) Update

func (*SystemKeysMnemonicDisplayInput) View

type SystemKeysOption

type SystemKeysOption string
const (
	Generate SystemKeysOption = "Generate new system keys (Will be done at the end of the flow)"
	Import   SystemKeysOption = "Import existing keys"
)

type SystemKeysSelect

type SystemKeysSelect struct {
	ui.Selector[SystemKeysOption]
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeysSelect

func NewSystemKeysSelect(ctx context.Context) *SystemKeysSelect

func (*SystemKeysSelect) GetQuestion

func (m *SystemKeysSelect) GetQuestion() string

func (*SystemKeysSelect) Init

func (m *SystemKeysSelect) Init() tea.Cmd

func (*SystemKeysSelect) Update

func (m *SystemKeysSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*SystemKeysSelect) View

func (m *SystemKeysSelect) 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) Update

func (m *TerminalState) Update(_ tea.Msg) (tea.Model, tea.Cmd)

func (*TerminalState) View

func (m *TerminalState) View() string

type VMTypeSelect

type VMTypeSelect struct {
	ui.Selector[VMTypeSelectOption]
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewVMTypeSelect

func NewVMTypeSelect(ctx context.Context) *VMTypeSelect

func (*VMTypeSelect) GetQuestion

func (m *VMTypeSelect) GetQuestion() string

func (*VMTypeSelect) Init

func (m *VMTypeSelect) Init() tea.Cmd

func (*VMTypeSelect) Update

func (m *VMTypeSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*VMTypeSelect) View

func (m *VMTypeSelect) View() string

type VMTypeSelectOption

type VMTypeSelectOption string
const (
	Move VMTypeSelectOption = "Move"
	Wasm VMTypeSelectOption = "Wasm"
	EVM  VMTypeSelectOption = "EVM"
)

func ParseVMType

func ParseVMType(vmType string) (VMTypeSelectOption, error)

Jump to

Keyboard shortcuts

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