Documentation
¶
Index ¶
- Constants
- Variables
- type AccountListItem
- type ApproveListingCtx
- type ApproveListingRequest
- type ApproveListingUI
- type ApproveNewAccount
- type ApproveNewAccountCtx
- type ApproveNewAccountRequest
- type ApproveSignDataCtx
- type ApproveSignDataRequest
- type ApproveSignDataUI
- type ApproveTxCtx
- type ApproveTxRequest
- type ApproveTxUI
- type ClefUI
- type CustomListModel
- type IncomingRequestItem
- type LoginContext
- type TxListAccountsModel
- type TxListCtx
- type TxListModel
- type TxListUI
Constants ¶
View Source
const ( Address = int(core.Qt__UserRole) + 1<<iota Checked )
View Source
const ( WEI = 0 GWEI = 1 ETH = 2 )
View Source
const ( USR_BACK = iota // User selecting menu 'back' USR_APPROVE = iota // User select menu 'approve' USR_REJECT = iota // User select menu 'Reject' )
View Source
const ( From = int(core.Qt__UserRole) + 1<<iota Method FromSrc IsUnknown )
View Source
const (
Text = int(core.Qt__UserRole) + 1<<iota
)
Variables ¶
View Source
var KnownAccounts = make(map[common.Address]struct{})
Functions ¶
This section is empty.
Types ¶
type AccountListItem ¶
type AccountListItem struct {
// contains filtered or unexported fields
}
type ApproveListingCtx ¶
type ApproveListingCtx struct { core.QObject ClefUI *ClefUI // contains filtered or unexported fields }
func (*ApproveListingCtx) ClickResponse ¶
func (ctx *ApproveListingCtx) ClickResponse(res chan *core2.ListResponse)
func (*ApproveListingCtx) ExternalSetAccounts ¶
func (ctx *ApproveListingCtx) ExternalSetAccounts(accounts []accounts.Account)
ExternalSetAccounts should be used to update the model from not-gui-thread, e.g. when new data arrives from the network.
func (*ApproveListingCtx) Reset ¶
func (ctx *ApproveListingCtx) Reset()
type ApproveListingRequest ¶
type ApproveListingRequest struct { Params core2.ListRequest ResponseCh chan *core2.ListResponse }
type ApproveListingUI ¶
type ApproveListingUI struct { UI *quick.QQuickWidget ContextObject *ApproveListingCtx AccountListModel *CustomListModel }
func NewApproveListingUI ¶
func NewApproveListingUI(clefUi *ClefUI) *ApproveListingUI
type ApproveNewAccount ¶
type ApproveNewAccount struct { UI *quick.QQuickWidget ContextObject *ApproveNewAccountCtx }
func NewApproveNewAccountUI ¶
func NewApproveNewAccountUI(clefUi *ClefUI) *ApproveNewAccount
type ApproveNewAccountCtx ¶
type ApproveNewAccountCtx struct { core.QObject ClefUI *ClefUI // contains filtered or unexported fields }
func (*ApproveNewAccountCtx) ClickResponse ¶
func (t *ApproveNewAccountCtx) ClickResponse(replyCh chan *core2.NewAccountResponse)
func (*ApproveNewAccountCtx) Reset ¶
func (t *ApproveNewAccountCtx) Reset()
type ApproveNewAccountRequest ¶
type ApproveNewAccountRequest struct { Params *core2.NewAccountRequest ResponseCh chan *core2.NewAccountResponse }
type ApproveSignDataCtx ¶
type ApproveSignDataCtx struct { core.QObject ClefUI *ClefUI // contains filtered or unexported fields }
func (*ApproveSignDataCtx) ClickResponse ¶
func (t *ApproveSignDataCtx) ClickResponse(res chan *core2.SignDataResponse)
func (*ApproveSignDataCtx) Reset ¶
func (t *ApproveSignDataCtx) Reset()
type ApproveSignDataRequest ¶
type ApproveSignDataRequest struct { Params *core2.SignDataRequest Response chan *core2.SignDataResponse }
type ApproveSignDataUI ¶
type ApproveSignDataUI struct { UI *quick.QQuickWidget ContextObject *ApproveSignDataCtx }
func NewApproveSignDataUI ¶
func NewApproveSignDataUI(clefUi *ClefUI) *ApproveSignDataUI
type ApproveTxCtx ¶
func (*ApproveTxCtx) ClickResponse ¶
func (t *ApproveTxCtx) ClickResponse(responseCh chan *core2.SignTxResponse)
func (*ApproveTxCtx) Reset ¶
func (t *ApproveTxCtx) Reset()
Reset clears the form and signals to go back to main
func (*ApproveTxCtx) SetTransaction ¶
func (t *ApproveTxCtx) SetTransaction(tx core2.SendTxArgs)
type ApproveTxRequest ¶
type ApproveTxRequest struct { Params *core2.SignTxRequest ResponseCh chan *core2.SignTxResponse }
type ApproveTxUI ¶
type ApproveTxUI struct { UI *quick.QQuickWidget ContextObject *ApproveTxCtx }
func NewApproveTxUI ¶
func NewApproveTxUI(clefUi *ClefUI) *ApproveTxUI
type ClefUI ¶
type ClefUI struct { App *widgets.QApplication Mainw *widgets.QWidget BackToMain chan bool IncomingRequest chan IncomingRequestItem ErrorDialog chan string // contains filtered or unexported fields }
func (*ClefUI) RequestUserInput ¶
RequestUserInput synchronously asks for user input
type CustomListModel ¶
type CustomListModel struct { core.QAbstractListModel // contains filtered or unexported fields }
CustomListModel implements a custom list model to handle the list of accounts
type IncomingRequestItem ¶
type IncomingRequestItem struct { From string Description string RPC requestInvocation IsUnknown int OnRemove chan int ID int }
func (*IncomingRequestItem) Remove ¶
func (item *IncomingRequestItem) Remove()
type LoginContext ¶
type LoginContext struct { core.QObject ClefUI *ClefUI ReadyToStart chan string // contains filtered or unexported fields }
func NewLogin ¶
func NewLogin(rootContext *qml.QQmlContext, readytoStart chan string) *LoginContext
type TxListAccountsModel ¶
type TxListAccountsModel struct { core.QAbstractListModel // contains filtered or unexported fields }
type TxListModel ¶
type TxListModel struct { core.QAbstractListModel // contains filtered or unexported fields }
type TxListUI ¶
type TxListUI struct { UI *quick.QQuickWidget CtxObject *TxListCtx }
func NewTxListUI ¶
Click to show internal directories.
Click to hide internal directories.