app

package
v0.0.0-...-861cdb6 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: GPL-3.0 Imports: 50 Imported by: 0

Documentation

Overview

Copyright 2016, 2026 The Authors. All rights reserved. Use of this source code is governed by a license that can be found in the LICENSE file.

  • Parts of this file were auto generated. Edit only those parts of
  • the code inside of 'EXISTING_CODE' tags.

Index

Constants

This section is empty.

Variables

View Source
var ErrDeserializeFailed = errors.New("failed to deserialize data")
View Source
var ErrEmptyFilePath = errors.New("empty file path")

Generic errors

View Source
var ErrFileNotFound = errors.New("file not found")
View Source
var ErrOverwriteNotConfirmed = errors.New("file exists, overwrite not confirmed")
View Source
var ErrReadFileFailed = errors.New("failed to read file")

File operation errors

View Source
var ErrSerializeFailed = errors.New("failed to serialize data")
View Source
var ErrUnsavedChanges = errors.New("unsaved changes")
View Source
var ErrWriteFileFailed = errors.New("failed to write file")

Functions

This section is empty.

Types

type App

type App struct {
	Assets      embed.FS
	Preferences *preferences.Preferences
	Projects    *manager.Manager[*project.Project]

	Dalle *dalle.Context
	// contains filtered or unexported fields
}

func NewApp

func NewApp(assets embed.FS) (*App, *menu.Menu)

func (*App) AbisCrud

func (a *App) AbisCrud(
	payload *types.Payload,
	op crud.Operation,
	item *any,
) error

func (*App) AddAddressToProject

func (a *App) AddAddressToProject(addrStr string) error

func (*App) AddAddressesToProject

func (a *App) AddAddressesToProject(input string) error

func (*App) BeforeClose

func (a *App) BeforeClose(ctx context.Context) bool

BeforeClose saves window bounds and shuts down services before closing

func (*App) CancelFetches

func (a *App) CancelFetches() int

CancelFetches cancels all active fetch operations and returns the count of cancelled operations

func (*App) ChangeImageStorageLocation

func (a *App) ChangeImageStorageLocation(newPath string) error

ChangeImageStorageLocation updates the base path for the file server

func (*App) ChangeVisibility

func (a *App) ChangeVisibility(payload *types.Payload) error

ChangeVisibility delegates facet visibility change to the correct collection

func (*App) ClearActiveProject

func (a *App) ClearActiveProject() error

ClearActiveProject clears the active project

func (*App) ClearViewFacetState

func (a *App) ClearViewFacetState(key project.ViewStateKey) error

ClearViewFacetState removes view facet state for a given key from the active project

func (*App) CloseActiveProject

func (a *App) CloseActiveProject() error

CloseActiveProject closes the currently active project facet using backend state

func (*App) CloseProject

func (a *App) CloseProject(id string) error

CloseProject closes a project, prompting to save if it has unsaved changes

func (*App) ConfigOk

func (a *App) ConfigOk()

ConfigOk checks the configuration - with embedded config, this always succeeds but can still emit errors if there are issues loading the configuration

func (*App) ConvertToAddress

func (a *App) ConvertToAddress(addr string) (base.Address, bool)

func (*App) DeleteCustomSkin

func (a *App) DeleteCustomSkin(name string) error

DeleteCustomSkin deletes a user-created skin

func (*App) DomReady

func (a *App) DomReady(ctx context.Context)

DomReady configures the window and starts monitoring after DOM is ready

func (*App) DressesCrud

func (a *App) DressesCrud(
	payload *types.Payload,
	op crud.Operation,
	item *any,
) error

func (*App) Encode

func (a *App) Encode(fn sdk.Function, params []interface{}) (string, error)

Encode packs function parameters into hex-encoded calldata

func (*App) ExecuteRowAction

func (a *App) ExecuteRowAction(payload *types.RowActionPayload) error

ExecuteRowAction processes configurable row actions (Enter key press on table rows)

func (*App) ExportData

func (a *App) ExportData(payload *types.Payload) error

ExportData handles export requests with full context logging and CSV creation

func (*App) ExportSkin

func (a *App) ExportSkin(name string) (string, error)

ExportSkin exports a skin as JSON string

func (*App) FileNew

func (a *App) FileNew(_ *menu.CallbackData)

FileNew opens the project selection dialog while keeping current project active

func (*App) FileOpen

func (a *App) FileOpen(_ *menu.CallbackData)

FileOpen opens the file picker to select a project file directly

func (*App) FileQuit

func (a *App) FileQuit(_ *menu.CallbackData)

FileQuit shuts down the application after saving if needed

func (*App) FileSave

func (a *App) FileSave(_ *menu.CallbackData)

FileSave saves the active project to its current file path

func (*App) FileSaveAs

func (a *App) FileSaveAs(_ *menu.CallbackData)

FileSaveAs opens a save dialog and saves the project to a new file path

func (*App) FromTemplate

func (a *App) FromTemplate(payload *types.Payload, templateStr string) (string, error)

func (*App) GetAbisBuckets

func (a *App) GetAbisBuckets(payload *types.Payload) (*types.Buckets, error)

GetAbisBuckets returns bucket visualization data for abis

func (*App) GetAbisConfig

func (a *App) GetAbisConfig(payload types.Payload) (*types.ViewConfig, error)

GetAbisConfig returns the view configuration for abis

func (*App) GetAbisPage

func (a *App) GetAbisPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*abis.AbisPage, error)

func (*App) GetAbisSummary

func (a *App) GetAbisSummary(payload *types.Payload) types.Summary

func (*App) GetActiveProject

func (a *App) GetActiveProject() *project.Project

func (*App) GetActiveProjectData

func (a *App) GetActiveProjectData() *types.ProjectPayload

GetActiveProjectData returns all active project state in a single call

func (*App) GetActiveProjectPath

func (a *App) GetActiveProjectPath() string

GetActiveProjectPath returns the path of the most recently used project

func (*App) GetAddressName

func (a *App) GetAddressName(address string) string

GetAddressName returns the name for an address if found, empty string otherwise

func (*App) GetAllDetailSectionStates

func (a *App) GetAllDetailSectionStates() map[string]bool

GetAllDetailSectionStates returns all section states in a single call for performance

func (*App) GetAllSkins

func (a *App) GetAllSkins() map[string]*skin.Skin

GetAllSkins returns all loaded skins

func (*App) GetAppId

func (a *App) GetAppId() preferences.Id

GetAppId returns the application identifier

func (*App) GetAppPreferences

func (a *App) GetAppPreferences() *preferences.AppPreferences

GetAppPreferences returns a copy of current application preferences with thread safety

func (*App) GetAvailableSkins

func (a *App) GetAvailableSkins() []skin.SkinMetadata

GetAvailableSkins returns metadata for all available skins

func (*App) GetChainList

func (app *App) GetChainList() *utils.ChainList

GetChainList returns the list of supported blockchain chains

func (*App) GetChunksBuckets

func (a *App) GetChunksBuckets(payload *types.Payload) (*types.Buckets, error)

GetChunksBuckets returns bucket visualization data for chunks

func (*App) GetChunksConfig

func (a *App) GetChunksConfig(payload types.Payload) (*types.ViewConfig, error)

GetChunksConfig returns the view configuration for chunks

func (*App) GetChunksMetric

func (a *App) GetChunksMetric(facet string) string

GetChunksMetric returns the selected metric for a specific chunks facet

func (*App) GetChunksPage

func (a *App) GetChunksPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*chunks.ChunksPage, error)

func (*App) GetChunksSummary

func (a *App) GetChunksSummary(payload *types.Payload) types.Summary

func (*App) GetComparitoorBuckets

func (a *App) GetComparitoorBuckets(payload *types.Payload) (*types.Buckets, error)

GetComparitoorBuckets returns bucket visualization data for comparitoor

func (*App) GetComparitoorConfig

func (a *App) GetComparitoorConfig(payload types.Payload) (*types.ViewConfig, error)

GetComparitoorConfig returns the view configuration for comparitoor

func (*App) GetComparitoorPage

func (a *App) GetComparitoorPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*comparitoor.ComparitoorPage, error)

func (*App) GetComparitoorSummary

func (a *App) GetComparitoorSummary(payload *types.Payload) types.Summary

func (*App) GetContext

func (a *App) GetContext() context.Context

GetContext returns the application's context instance

func (*App) GetContracts

func (a *App) GetContracts() []sdk.Contract

EXISTING_CODE GetContracts returns the contracts for frontend display

func (*App) GetContractsBuckets

func (a *App) GetContractsBuckets(payload *types.Payload) (*types.Buckets, error)

GetContractsBuckets returns bucket visualization data for contracts

func (*App) GetContractsConfig

func (a *App) GetContractsConfig(payload types.Payload) (*types.ViewConfig, error)

GetContractsConfig returns the view configuration for contracts

func (*App) GetContractsPage

func (a *App) GetContractsPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*contracts.ContractsPage, error)

func (*App) GetContractsSummary

func (a *App) GetContractsSummary(payload *types.Payload) types.Summary

func (*App) GetDalleAudioURL

func (a *App) GetDalleAudioURL(payload *types.Payload, series string) (string, error)

func (*App) GetDebugCollapsed

func (a *App) GetDebugCollapsed() bool

GetDebugCollapsed returns the current debug mode setting

func (*App) GetDefaultAppPreferences

func (a *App) GetDefaultAppPreferences() *preferences.AppPreferences

GetDefaultAppPreferences returns the default AppPreferences values This ensures frontend and backend use the same defaults without duplication

func (*App) GetDetailSectionState

func (a *App) GetDetailSectionState(sectionKey string) bool

GetDetailSectionState returns the collapsed state for a given section key

func (*App) GetDressesBuckets

func (a *App) GetDressesBuckets(payload *types.Payload) (*types.Buckets, error)

GetDressesBuckets returns bucket visualization data for dresses

func (*App) GetDressesConfig

func (a *App) GetDressesConfig(payload types.Payload) (*types.ViewConfig, error)

GetDressesConfig returns the view configuration for dresses

func (*App) GetDressesPage

func (a *App) GetDressesPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*dresses.DressesPage, error)

func (*App) GetDressesSummary

func (a *App) GetDressesSummary(payload *types.Payload) types.Summary

func (*App) GetElementsConfig

func (a *App) GetElementsConfig() (*preferences.ElementsConfig, error)

GetElementsConfig returns the UI elements visibility configuration from .create-local-app.json

func (*App) GetExportsBuckets

func (a *App) GetExportsBuckets(payload *types.Payload) (*types.Buckets, error)

GetExportsBuckets returns bucket visualization data for exports

func (*App) GetExportsConfig

func (a *App) GetExportsConfig(payload types.Payload) (*types.ViewConfig, error)

GetExportsConfig returns the view configuration for exports

func (*App) GetExportsMetric

func (a *App) GetExportsMetric(facet string) string

GetExportsMetric returns the selected metric for a specific exports facet

func (*App) GetExportsPage

func (a *App) GetExportsPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*exports.ExportsPage, error)

func (*App) GetExportsSummary

func (a *App) GetExportsSummary(payload *types.Payload) types.Summary

func (*App) GetFilename

func (a *App) GetFilename() *project.Project

GetFilename returns the active project (legacy method for compatibility)

func (*App) GetFormat

func (a *App) GetFormat() string

GetFormat returns the currently selected export format

func (*App) GetImageDebugInfo

func (a *App) GetImageDebugInfo(imageURL string) map[string]string

GetImageDebugInfo returns debug information about image paths

func (*App) GetImageURL

func (a *App) GetImageURL(relativePath string) string

GetImageURL returns a URL for serving an image file, creating sample files if needed

func (*App) GetKhedraControlURL

func (a *App) GetKhedraControlURL() (string, error)

GetKhedraControl discovers the Khedra control service and fetches the dashboard HTML

func (*App) GetLanguage

func (a *App) GetLanguage() string

GetLanguage returns the currently selected language

func (*App) GetLastFacet

func (a *App) GetLastFacet(view string) string

GetLastFacet returns the last visited facet for a specific view from the active project

func (*App) GetLastView

func (a *App) GetLastView() string

GetLastView returns the last visited view/route in the active project.

func (*App) GetMarkdown

func (a *App) GetMarkdown(folder, route, tab string) string

GetMarkdown loads markdown content for the specified folder, route, and tab

func (*App) GetMonitorsBuckets

func (a *App) GetMonitorsBuckets(payload *types.Payload) (*types.Buckets, error)

GetMonitorsBuckets returns bucket visualization data for monitors

func (*App) GetMonitorsConfig

func (a *App) GetMonitorsConfig(payload types.Payload) (*types.ViewConfig, error)

GetMonitorsConfig returns the view configuration for monitors

func (*App) GetMonitorsPage

func (a *App) GetMonitorsPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*monitors.MonitorsPage, error)

func (*App) GetMonitorsSummary

func (a *App) GetMonitorsSummary(payload *types.Payload) types.Summary

func (*App) GetNamesBuckets

func (a *App) GetNamesBuckets(payload *types.Payload) (*types.Buckets, error)

GetNamesBuckets returns bucket visualization data for names

func (*App) GetNamesConfig

func (a *App) GetNamesConfig(payload types.Payload) (*types.ViewConfig, error)

GetNamesConfig returns the view configuration for names

func (*App) GetNamesPage

func (a *App) GetNamesPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*names.NamesPage, error)

func (*App) GetNamesSummary

func (a *App) GetNamesSummary(payload *types.Payload) types.Summary

func (*App) GetNodeStatus

func (a *App) GetNodeStatus(chain string) *coreTypes.MetaData

GetNodeStatus retrieves blockchain node metadata for the specified chain

func (*App) GetOpenProjects

func (a *App) GetOpenProjects() []map[string]interface{}

GetOpenProjects returns a list of all open projects with their metadata

func (*App) GetOrgPreferences

func (a *App) GetOrgPreferences() *preferences.OrgPreferences

GetOrgPreferences returns the current organization preferences

func (*App) GetProjectAddress

func (a *App) GetProjectAddress() base.Address

GetProjectAddress returns the address of the active project

func (*App) GetProjectViewState

func (a *App) GetProjectViewState(viewName string) (map[string]project.ViewFacetState, error)

GetProjectViewState retrieves all view facet states for a given view name from the active project

func (*App) GetProjectsBuckets

func (a *App) GetProjectsBuckets(payload *types.Payload) (*types.Buckets, error)

GetProjectsBuckets returns bucket visualization data for projects

func (*App) GetProjectsConfig

func (a *App) GetProjectsConfig(payload types.Payload) (*types.ViewConfig, error)

GetProjectsConfig returns the view configuration for projects

func (*App) GetProjectsPage

func (a *App) GetProjectsPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*projects.ProjectsPage, error)

func (*App) GetProjectsSummary

func (a *App) GetProjectsSummary(payload *types.Payload) types.Summary

func (*App) GetRegisteredViews

func (a *App) GetRegisteredViews() []string

GetRegisteredViews returns all registered view names

func (*App) GetSkin

func (a *App) GetSkin() string

GetSkin returns the currently selected skin

func (*App) GetSkinByName

func (a *App) GetSkinByName(name string) (*skin.Skin, error)

GetSkinByName returns a specific skin by name

func (*App) GetStatusBuckets

func (a *App) GetStatusBuckets(payload *types.Payload) (*types.Buckets, error)

GetStatusBuckets returns bucket visualization data for status

func (*App) GetStatusConfig

func (a *App) GetStatusConfig(payload types.Payload) (*types.ViewConfig, error)

GetStatusConfig returns the view configuration for status

func (*App) GetStatusPage

func (a *App) GetStatusPage(
	payload *types.Payload,
	first, pageSize int,
	sort sdk.SortSpec,
	filter string,
) (*status.StatusPage, error)

func (*App) GetStatusSummary

func (a *App) GetStatusSummary(payload *types.Payload) types.Summary

func (*App) GetTheme

func (a *App) GetTheme() string

GetTheme returns the currently selected theme

func (*App) GetUserInfoStatus

func (a *App) GetUserInfoStatus() UserInfoStatus

GetUserInfoStatus returns the current status of user information and RPC connectivity

func (*App) GetUserPreferences

func (a *App) GetUserPreferences() *preferences.UserPreferences

GetUserPreferences returns the current user preferences

func (*App) GetViewFacetState

func (a *App) GetViewFacetState(key project.ViewStateKey) (project.ViewFacetState, error)

GetViewFacetState retrieves view facet state for a given key from the active project

func (*App) GetWizardReturn

func (a *App) GetWizardReturn() string

GetWizardReturn returns the last view without the "wizard" suffix

func (*App) HandleProjectsRowAction

func (a *App) HandleProjectsRowAction(payload *types.RowActionPayload) error

EXISTING_CODE HandleProjectsRowAction processes row actions for the projects collection

func (*App) HasActiveProject

func (a *App) HasActiveProject() bool

HasActiveProject checks if there is an active project loaded

func (*App) ImportSkin

func (a *App) ImportSkin(skinDataStr string) error

ImportSkin imports a skin from JSON data

func (*App) IsDialogSilenced

func (a *App) IsDialogSilenced(dialogKey string) bool

IsDialogSilenced checks if a specific dialog is silenced

func (*App) IsDisabled

func (a *App) IsDisabled(viewName string) bool

IsDisabled returns true if the collection is disable or if all of its facets are disabled

func (*App) IsInitialized

func (a *App) IsInitialized() bool

IsInitialized checks if the application has been initialized by looking for a marker file

func (*App) IsReady

func (a *App) IsReady() bool

IsReady returns true if the application context is initialized

func (*App) LogFrontend

func (a *App) LogFrontend(msg string)

LogFrontend logs a message to the frontend logger

func (*App) MonitorsClean

func (a *App) MonitorsClean(payload *types.Payload, addresses []string) error

EXISTING_CODE

func (*App) MonitorsCrud

func (a *App) MonitorsCrud(
	payload *types.Payload,
	op crud.Operation,
	item *any,
) error

func (*App) NameFromAddress

func (a *App) NameFromAddress(address string) (*names.Name, bool)

NameFromAddress resolves an Ethereum address to a named entity if one exists

func (*App) NamesCrud

func (a *App) NamesCrud(
	payload *types.Payload,
	op crud.Operation,
	item *any,
) error

func (*App) NewProject

func (a *App) NewProject(name string, currentAddress string) error

NewProject creates a new project with the given name and addresses

func (a *App) OpenLink(key string, value string)

OpenLink opens website for the given key and value

func (*App) OpenProjectFile

func (a *App) OpenProjectFile(path string) error

OpenProjectFile opens a project file, optionally showing file picker if no path provided

func (*App) OpenURL

func (a *App) OpenURL(url string)

OpenURL opens the given URL in the default browser

func (*App) PrepareTransaction

func (a *App) PrepareTransaction(payload *types.Payload, req PrepareTransactionRequest) (*PrepareTransactionResult, error)

func (*App) ReadToMe

func (a *App) ReadToMe(payload *types.Payload, series string) (string, error)

func (*App) RegisterCollection

func (a *App) RegisterCollection(collection types.Collection)

RegisterCollection adds a collection to the application's collection registry

func (*App) Reload

func (a *App) Reload(payload *types.Payload) (err error)

Reload dispatches reload requests to the appropriate view-specific reload function

func (*App) ReloadAbis

func (a *App) ReloadAbis(payload *types.Payload) error

func (*App) ReloadChunks

func (a *App) ReloadChunks(payload *types.Payload) error

func (*App) ReloadComparitoor

func (a *App) ReloadComparitoor(payload *types.Payload) error

func (*App) ReloadContracts

func (a *App) ReloadContracts(payload *types.Payload) error

func (*App) ReloadDresses

func (a *App) ReloadDresses(payload *types.Payload) error

func (*App) ReloadExports

func (a *App) ReloadExports(payload *types.Payload) error

func (*App) ReloadMonitors

func (a *App) ReloadMonitors(payload *types.Payload) error

func (*App) ReloadNames

func (a *App) ReloadNames(payload *types.Payload) error

func (*App) ReloadProjects

func (a *App) ReloadProjects(payload *types.Payload) error

func (*App) ReloadSkins

func (a *App) ReloadSkins() error

ReloadSkins reloads all skins from disk

func (*App) ReloadStatus

func (a *App) ReloadStatus(payload *types.Payload) error

func (*App) RemoveAddressFromProject

func (a *App) RemoveAddressFromProject(addrStr string) error

func (*App) RestoreProjectContext

func (a *App) RestoreProjectContext(projectID string) error

RestoreProjectContext restores the full context for the specified project

func (*App) SaveBounds

func (a *App) SaveBounds(x, y, w, h int)

SaveBounds updates and persists the window bounds to preferences

func (*App) SaveProject

func (a *App) SaveProject() error

SaveProject saves the active project, showing file dialog if not previously saved

func (*App) SetActiveAddress

func (a *App) SetActiveAddress(addrStr string) error

func (*App) SetActiveChain

func (a *App) SetActiveChain(chain string) error

SetActiveChain sets the active chain in the active project

func (*App) SetActiveContract

func (a *App) SetActiveContract(contract string) error

func (*App) SetActivePeriod

func (a *App) SetActivePeriod(period types.Period) error

------------------------------------------------------------------------------------ SetActivePeriod sets the active period in the active project

func (*App) SetActiveProjectPath

func (a *App) SetActiveProjectPath(path string)

SetActiveProjectPath adds a project path to the recent projects list

func (*App) SetAppPreferences

func (a *App) SetAppPreferences(appPrefs *preferences.AppPreferences) error

SetAppPreferences updates and persists application preferences with thread safety

func (*App) SetChain

func (a *App) SetChain(ch preferences.Chain) error

SetChain validates and adds or updates a blockchain chain configuration with RPC providers

func (*App) SetChromeCollapsed

func (a *App) SetChromeCollapsed(collapse bool)

SetChromeCollapsed updates the chrome collapsed state

func (*App) SetChunksMetric

func (a *App) SetChunksMetric(facet string, metric string)

SetChunksMetric updates the selected metric for a specific chunks facet

func (*App) SetDebugCollapsed

func (a *App) SetDebugCollapsed(collapse bool)

SetDebugCollapsed updates the debug mode preference

func (*App) SetDetailSectionState

func (a *App) SetDetailSectionState(sectionKey string, collapsed bool) error

SetDetailSectionState updates the collapsed state for a given section key and saves immediately

func (*App) SetExportsMetric

func (a *App) SetExportsMetric(facet string, metric string)

SetExportsMetric updates the selected metric for a specific exports facet

func (*App) SetFontScale

func (a *App) SetFontScale(scale float64) error

SetFontScale updates the font scale preference with bounds checking

func (*App) SetFormat

func (a *App) SetFormat(format string)

SetFormat updates the application export format preference

func (*App) SetHelpCollapsed

func (a *App) SetHelpCollapsed(collapse bool)

SetHelpCollapsed updates the help panel collapsed state

func (*App) SetInitialized

func (a *App) SetInitialized(isInit bool) error

SetInitialized creates or removes the initialization marker file

func (*App) SetLanguage

func (a *App) SetLanguage(language string)

SetLanguage updates the application language preference

func (*App) SetLastFacet

func (a *App) SetLastFacet(view, facet string) (string, error)

SetLastFacet sets the last visited facet for a specific view in the active project

func (*App) SetLastView

func (a *App) SetLastView(view string) (string, error)

SetLastView sets the last visited view/route in the active project

func (*App) SetMenuCollapsed

func (a *App) SetMenuCollapsed(collapse bool)

SetMenuCollapsed updates the menu panel collapsed state

func (*App) SetOrgPreferences

func (a *App) SetOrgPreferences(orgPrefs *preferences.OrgPreferences) error

SetOrgPreferences updates and persists organization preferences

func (*App) SetProjectAddress

func (a *App) SetProjectAddress(addr base.Address)

SetProjectAddress sets the address for the active project

func (*App) SetProjectViewState

func (a *App) SetProjectViewState(viewName string, states map[string]project.ViewFacetState) error

SetProjectViewState sets all view facet states for a given view name in the active project

func (*App) SetSkin

func (a *App) SetSkin(skin string)

SetSkin updates the application skin preference

func (*App) SetTheme

func (a *App) SetTheme(theme string)

SetTheme updates the application theme preference

func (*App) SetUserInfo

func (a *App) SetUserInfo(name, email string) error

SetUserInfo validates and sets the user's name and email in preferences

func (*App) SetUserPreferences

func (a *App) SetUserPreferences(userPrefs *preferences.UserPreferences) error

SetUserPreferences updates and persists user preferences

func (*App) SetViewAndFacet

func (a *App) SetViewAndFacet(view, facet string) (string, error)

SetViewAndFacet atomically sets both the last view and facet in a single operation

func (*App) SetViewFacetState

func (a *App) SetViewFacetState(key project.ViewStateKey, state project.ViewFacetState) error

SetViewFacetState sets view facet state for a given key in the active project

func (*App) SilenceDialog

func (a *App) SilenceDialog(dialogKey string)

SilenceDialog marks a dialog as silenced

func (*App) Speak

func (a *App) Speak(payload *types.Payload, series string) (string, error)

EXISTING_CODE

func (*App) Startup

func (a *App) Startup(ctx context.Context)

Startup initializes the application with context, preferences, and services

func (*App) SwitchToProject

func (a *App) SwitchToProject(id string) error

SwitchToProject sets the specified project as the active project

func (*App) ValidateActiveProject

func (a *App) ValidateActiveProject() bool

ValidateActiveProject checks if active project has valid addresses configured

type PrepareTransactionRequest

type PrepareTransactionRequest struct {
	Function sdk.Function  `json:"function"`
	Params   []interface{} `json:"params"`
	From     string        `json:"from"`
	To       string        `json:"to"`
	Value    string        `json:"value"`
}

type PrepareTransactionResult

type PrepareTransactionResult struct {
	Success         bool   `json:"success"`
	TransactionData string `json:"transactionData"`
	GasEstimate     string `json:"gasEstimate"`
	GasPrice        string `json:"gasPrice"`
	Error           string `json:"error,omitempty"`
}

type UserInfoStatus

type UserInfoStatus struct {
	MissingNameEmail bool `json:"missingNameEmail"`
	RPCUnavailable   bool `json:"rpcUnavailable"`
}

UserInfoStatus represents the status of user information and RPC connectivity for the setup wizard

Jump to

Keyboard shortcuts

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