Documentation ¶
Index ¶
- Constants
- Variables
- func Main(cx *state.State) (e error)
- type AddressEntry
- type BoolMap
- type CategoryFilter
- type CheckableMap
- type ClickableMap
- type Console
- type IncDecMap
- type Inputs
- type JSONElement
- type JSONElements
- type ListMap
- type Marshalled
- type Passwords
- type ReceivePage
- func (rp *ReceivePage) AddressbookHeader() l.Widget
- func (rp *ReceivePage) AmountInput() l.Widget
- func (rp *ReceivePage) Fn(gtx l.Context) l.Dimensions
- func (rp *ReceivePage) GetAddressbookHistoryCards(bg string) (widgets []l.Widget)
- func (rp *ReceivePage) GetQRText() string
- func (rp *ReceivePage) InputMessage() l.Widget
- func (rp *ReceivePage) MediumList(gtx l.Context) l.Dimensions
- func (rp *ReceivePage) MessageInput() l.Widget
- func (rp *ReceivePage) QRButton() l.Widget
- func (rp *ReceivePage) QRMessage() l.Widget
- func (rp *ReceivePage) RegenerateButton() l.Widget
- func (rp *ReceivePage) SmallList(gtx l.Context) l.Dimensions
- func (rp *ReceivePage) Spacer() l.Widget
- type SendPage
- func (sp *SendPage) AddressInput() l.Widget
- func (sp *SendPage) AddressbookHeader() l.Widget
- func (sp *SendPage) AmountInput() l.Widget
- func (sp *SendPage) Fn(gtx l.Context) l.Dimensions
- func (sp *SendPage) GetAddressbookHistoryCards(bg string) (widgets []l.Widget)
- func (sp *SendPage) InputMessage() l.Widget
- func (sp *SendPage) MediumList(gtx l.Context) l.Dimensions
- func (sp *SendPage) MessageInput() l.Widget
- func (sp *SendPage) PasteButton() l.Widget
- func (sp *SendPage) SaveButton() l.Widget
- func (sp *SendPage) SendButton() l.Widget
- func (sp *SendPage) SmallList(gtx l.Context) l.Dimensions
- type State
- func (s *State) ActivePage() string
- func (s *State) Balance() float64
- func (s *State) BalanceUnconfirmed() float64
- func (s *State) BestBlockHash() *chainhash.Hash
- func (s *State) BestBlockHeight() int32
- func (s *State) BumpLastUpdated()
- func (s *State) Goroutines() []l.Widget
- func (s *State) IsReceivingAddress() bool
- func (s *State) LastUpdated() time.Time
- func (s *State) Load(filename string, pass []byte) (e error)
- func (s *State) Marshal() (out *Marshalled)
- func (s *State) Save(filename string, pass []byte, debug bool) (e error)
- func (s *State) SetActivePage(page string)
- func (s *State) SetAllTxs(atxs []btcjson.ListTransactionsResult)
- func (s *State) SetBalance(total float64)
- func (s *State) SetBalanceUnconfirmed(unconfirmed float64)
- func (s *State) SetBestBlockHash(h *chainhash.Hash)
- func (s *State) SetBestBlockHeight(height int32)
- func (s *State) SetGoroutines(gr []l.Widget)
- func (s *State) SetReceivingAddress(addr btcaddr.Address)
- type WalletGUI
- func (wg *WalletGUI) Advertise() (e error)
- func (wg *WalletGUI) ChainNotifications() *rpcclient.NotificationHandlers
- func (wg *WalletGUI) ConsolePage() *Console
- func (wg *WalletGUI) CreateWalletPage(gtx l.Context) l.Dimensions
- func (wg *WalletGUI) GetAppWidget() (a *gel.App)
- func (wg *WalletGUI) GetBools() BoolMap
- func (wg *WalletGUI) GetButtons()
- func (wg *WalletGUI) GetCheckables() CheckableMap
- func (wg *WalletGUI) GetClickables() ClickableMap
- func (wg *WalletGUI) GetIncDecs() IncDecMap
- func (wg *WalletGUI) GetInputs() Inputs
- func (wg *WalletGUI) GetLists() (o ListMap)
- func (wg *WalletGUI) GetNewReceivingAddress()
- func (wg *WalletGUI) GetNewReceivingQRCode(qrText string)
- func (wg *WalletGUI) GetPasswords() (passwords Passwords)
- func (wg *WalletGUI) GetReceivePage() (rp *ReceivePage)
- func (wg *WalletGUI) GetRunUnit(name string, before, after func(), args ...string) *rununit.RunUnit
- func (wg *WalletGUI) GetSendPage() (sp *SendPage)
- func (wg *WalletGUI) HelpPage() func(gtx l.Context) l.Dimensions
- func (wg *WalletGUI) HistoryPage() l.Widget
- func (wg *WalletGUI) HistoryPageStatusFilter() l.Widget
- func (wg *WalletGUI) HistoryPageView() l.Widget
- func (wg *WalletGUI) OverviewPage() l.Widget
- func (wg *WalletGUI) Page(title string, widget gel.Widgets) func(gtx l.Context) l.Dimensions
- func (wg *WalletGUI) PageTopBarButton(name string, index int, ico *[]byte, onClick func(string), app *gel.App, ...) func(gtx l.Context) l.Dimensions
- func (wg *WalletGUI) RecentTransactions(n int, listName string) l.Widget
- func (wg *WalletGUI) Run() (e error)
- func (wg *WalletGUI) RunStatusPanel(gtx l.Context) l.Dimensions
- func (wg *WalletGUI) SetNodeRunState(b bool)
- func (wg *WalletGUI) SetWalletRunState(b bool)
- func (wg *WalletGUI) ShuffleSeed()
- func (wg *WalletGUI) SideBarButton(title, page string, index int) func(gtx l.Context) l.Dimensions
- func (wg *WalletGUI) StatusBarButton(name string, index int, ico *[]byte, onClick func(string), app *gel.App) func(gtx l.Context) l.Dimensions
- func (wg *WalletGUI) WalletAndClientRunning() bool
- func (wg *WalletGUI) WalletNotifications() *rpcclient.NotificationHandlers
- func (wg *WalletGUI) Watcher() qu.C
Constants ¶
View Source
const Break1 = 48
View Source
const ZeroAddress = "1111111111111111111114oLvT2"
Variables ¶
View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)
Functions ¶
Types ¶
type AddressEntry ¶
type CategoryFilter ¶
CategoryFilter marks which transactions to omit from the filtered transaction list
func (*CategoryFilter) Filter ¶
func (c *CategoryFilter) Filter(s string) (include bool)
type CheckableMap ¶
type ClickableMap ¶
type JSONElement ¶
type JSONElement struct {
// contains filtered or unexported fields
}
type JSONElements ¶
type JSONElements []JSONElement
func GetJSONElements ¶
func GetJSONElements(in map[string]interface{}) (je JSONElements)
func (JSONElements) Len ¶
func (je JSONElements) Len() int
func (JSONElements) Less ¶
func (je JSONElements) Less(i, j int) bool
func (JSONElements) Swap ¶
func (je JSONElements) Swap(i, j int)
type Marshalled ¶
type Marshalled struct { LastUpdated time.Time BestBlockHeight int32 BestBlockHash chainhash.Hash Balance float64 BalanceUnconfirmed float64 AllTxs []btcjson.ListTransactionsResult Filter CategoryFilter ReceivingAddress string ActivePage string ReceiveAddressBook []AddressEntry SendAddressBook []AddressEntry }
func (*Marshalled) Unmarshal ¶
func (m *Marshalled) Unmarshal(s *State)
type ReceivePage ¶
type ReceivePage struct {
// contains filtered or unexported fields
}
func (*ReceivePage) AddressbookHeader ¶
func (rp *ReceivePage) AddressbookHeader() l.Widget
func (*ReceivePage) AmountInput ¶
func (rp *ReceivePage) AmountInput() l.Widget
func (*ReceivePage) Fn ¶
func (rp *ReceivePage) Fn(gtx l.Context) l.Dimensions
func (*ReceivePage) GetAddressbookHistoryCards ¶
func (rp *ReceivePage) GetAddressbookHistoryCards(bg string) (widgets []l.Widget)
func (*ReceivePage) GetQRText ¶
func (rp *ReceivePage) GetQRText() string
func (*ReceivePage) InputMessage ¶
func (rp *ReceivePage) InputMessage() l.Widget
func (*ReceivePage) MediumList ¶
func (rp *ReceivePage) MediumList(gtx l.Context) l.Dimensions
func (*ReceivePage) MessageInput ¶
func (rp *ReceivePage) MessageInput() l.Widget
func (*ReceivePage) QRButton ¶
func (rp *ReceivePage) QRButton() l.Widget
func (*ReceivePage) QRMessage ¶
func (rp *ReceivePage) QRMessage() l.Widget
func (*ReceivePage) RegenerateButton ¶
func (rp *ReceivePage) RegenerateButton() l.Widget
func (*ReceivePage) SmallList ¶
func (rp *ReceivePage) SmallList(gtx l.Context) l.Dimensions
func (*ReceivePage) Spacer ¶
func (rp *ReceivePage) Spacer() l.Widget
type SendPage ¶
type SendPage struct {
// contains filtered or unexported fields
}
func (*SendPage) AddressInput ¶
func (*SendPage) AddressbookHeader ¶
func (*SendPage) AmountInput ¶
func (*SendPage) GetAddressbookHistoryCards ¶
func (*SendPage) InputMessage ¶
func (*SendPage) MediumList ¶
func (sp *SendPage) MediumList(gtx l.Context) l.Dimensions
func (*SendPage) MessageInput ¶
func (*SendPage) PasteButton ¶
func (*SendPage) SaveButton ¶
func (*SendPage) SendButton ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func GetNewState ¶
func GetNewState( params *chaincfg.Params, activePage *uberatomic.String, ) *State
func (*State) ActivePage ¶
func (*State) BalanceUnconfirmed ¶
func (*State) BestBlockHash ¶
func (*State) BestBlockHeight ¶
func (*State) BumpLastUpdated ¶
func (s *State) BumpLastUpdated()
func (*State) Goroutines ¶
func (*State) IsReceivingAddress ¶
func (*State) LastUpdated ¶
func (*State) Load ¶
Load in the configuration from the specified file and decrypt using the given password
func (*State) Marshal ¶
func (s *State) Marshal() (out *Marshalled)
func (*State) SetActivePage ¶
func (*State) SetAllTxs ¶
func (s *State) SetAllTxs(atxs []btcjson.ListTransactionsResult)
func (*State) SetBalance ¶
func (*State) SetBalanceUnconfirmed ¶
func (*State) SetBestBlockHash ¶
func (*State) SetBestBlockHeight ¶
func (*State) SetGoroutines ¶
func (*State) SetReceivingAddress ¶
type WalletGUI ¶
type WalletGUI struct { State *State ChainMutex, WalletMutex sync.Mutex ChainClient, WalletClient *rpcclient.Client WalletWatcher qu.C *gel.Window Size *uberatomic.Int32 MainApp *gel.App RecentTxsWidget, TxHistoryWidget l.Widget // ReceiveAddressbook l.Widget // SendAddressbook l.Widget ReceivePage *ReceivePage SendPage *SendPage // contains filtered or unexported fields }
func (*WalletGUI) ChainNotifications ¶
func (wg *WalletGUI) ChainNotifications() *rpcclient.NotificationHandlers
func (*WalletGUI) ConsolePage ¶
func (*WalletGUI) CreateWalletPage ¶
func (wg *WalletGUI) CreateWalletPage(gtx l.Context) l.Dimensions
func (*WalletGUI) GetAppWidget ¶
func (*WalletGUI) GetButtons ¶
func (wg *WalletGUI) GetButtons()
func (*WalletGUI) GetCheckables ¶
func (wg *WalletGUI) GetCheckables() CheckableMap
func (*WalletGUI) GetClickables ¶
func (wg *WalletGUI) GetClickables() ClickableMap
func (*WalletGUI) GetIncDecs ¶
func (*WalletGUI) GetNewReceivingAddress ¶
func (wg *WalletGUI) GetNewReceivingAddress()
func (*WalletGUI) GetNewReceivingQRCode ¶
func (*WalletGUI) GetPasswords ¶
GetPasswords returns the passwords used in the wallet GUI
func (*WalletGUI) GetReceivePage ¶
func (wg *WalletGUI) GetReceivePage() (rp *ReceivePage)
func (*WalletGUI) GetRunUnit ¶
func (*WalletGUI) GetSendPage ¶
func (*WalletGUI) HistoryPage ¶
func (*WalletGUI) HistoryPageStatusFilter ¶
func (*WalletGUI) HistoryPageView ¶
func (*WalletGUI) OverviewPage ¶
func (*WalletGUI) PageTopBarButton ¶
func (*WalletGUI) RecentTransactions ¶
RecentTransactions generates a display showing recent transactions
fields to use: Address, Amount, BlockIndex, BlockTime, Category, Confirmations, Generated
func (*WalletGUI) RunStatusPanel ¶
func (wg *WalletGUI) RunStatusPanel(gtx l.Context) l.Dimensions
func (*WalletGUI) SetNodeRunState ¶
func (*WalletGUI) SetWalletRunState ¶
func (*WalletGUI) ShuffleSeed ¶
func (wg *WalletGUI) ShuffleSeed()
func (*WalletGUI) SideBarButton ¶
func (*WalletGUI) StatusBarButton ¶
func (*WalletGUI) WalletAndClientRunning ¶
func (*WalletGUI) WalletNotifications ¶
func (wg *WalletGUI) WalletNotifications() *rpcclient.NotificationHandlers
Source Files ¶
Click to show internal directories.
Click to hide internal directories.