NeoRust GUI Documentation - v0.4.2
    Preparing search index...

    Interface AppState

    interface AppState {
        addNetwork: (network: NetworkConfig) => void;
        addNotification: (
            notification: Omit<Notification, "id" | "timestamp" | "read">,
        ) => void;
        addWallet: (wallet: WalletInfo) => void;
        clearNotifications: () => void;
        currency: "USD" | "EUR" | "CNY";
        currentNetwork: null | NetworkConfig;
        currentWallet: null | WalletInfo;
        language: "en" | "zh" | "ja";
        loading: boolean;
        markNotificationRead: (id: string) => void;
        networks: NetworkConfig[];
        networkType: "mainnet" | "testnet" | "private";
        notifications: Notification[];
        removeNetwork: (networkName: string) => void;
        removeNotification: (id: string) => void;
        removeWallet: (walletId: string) => void;
        setCurrency: (currency: "USD" | "EUR" | "CNY") => void;
        setCurrentNetwork: (network: null | NetworkConfig) => void;
        setCurrentWallet: (wallet: null | WalletInfo) => void;
        setLanguage: (language: "en" | "zh" | "ja") => void;
        setLoading: (loading: boolean) => void;
        setNetworkType: (type: "mainnet" | "testnet" | "private") => void;
        setSidebarCollapsed: (collapsed: boolean) => void;
        setTheme: (theme: "light" | "dark") => void;
        setWalletConnected: (connected: boolean) => void;
        setWallets: (wallets: WalletInfo[]) => void;
        sidebarCollapsed: boolean;
        theme: "light" | "dark";
        updateWalletBalance: (
            walletId: string,
            balance: { gas: string; neo: string; tokens: Record<string, string> },
        ) => void;
        walletConnected: boolean;
        wallets: WalletInfo[];
    }
    Index

    Properties

    addNetwork: (network: NetworkConfig) => void
    addNotification: (
        notification: Omit<Notification, "id" | "timestamp" | "read">,
    ) => void
    addWallet: (wallet: WalletInfo) => void
    clearNotifications: () => void
    currency: "USD" | "EUR" | "CNY"
    currentNetwork: null | NetworkConfig
    currentWallet: null | WalletInfo
    language: "en" | "zh" | "ja"
    loading: boolean
    markNotificationRead: (id: string) => void
    networks: NetworkConfig[]
    networkType: "mainnet" | "testnet" | "private"
    notifications: Notification[]
    removeNetwork: (networkName: string) => void
    removeNotification: (id: string) => void
    removeWallet: (walletId: string) => void
    setCurrency: (currency: "USD" | "EUR" | "CNY") => void
    setCurrentNetwork: (network: null | NetworkConfig) => void
    setCurrentWallet: (wallet: null | WalletInfo) => void
    setLanguage: (language: "en" | "zh" | "ja") => void
    setLoading: (loading: boolean) => void
    setNetworkType: (type: "mainnet" | "testnet" | "private") => void
    setSidebarCollapsed: (collapsed: boolean) => void
    setTheme: (theme: "light" | "dark") => void
    setWalletConnected: (connected: boolean) => void
    setWallets: (wallets: WalletInfo[]) => void
    sidebarCollapsed: boolean
    theme: "light" | "dark"
    updateWalletBalance: (
        walletId: string,
        balance: { gas: string; neo: string; tokens: Record<string, string> },
    ) => void
    walletConnected: boolean
    wallets: WalletInfo[]