Documentation ¶
Index ¶
- func CloseOpenedWallet()
- func CreateRandomWallet(name string, password string) error
- func CreateWalletFromData(name string, password string, data []byte) error
- func CreateWalletFromHexSeed(name string, password, hexSeed string) error
- func CreateWalletFromPath(name string, password string, path string) error
- func CreateWalletFromSeed(name string, password string, seed string) error
- func DeleteWallet(addr string) error
- func GetSC(scId string) (result rpc.GetSC_Result, cached bool, err error)
- func OpenWallet(addr string, password string) error
- func RPCCall(method string, params interface{}, result interface{}) error
- func StoreRegistrationTx(addr string, tx *transaction.Transaction) error
- type Contact
- type Entry
- type GetContactsParams
- type GetEntriesParams
- type GetOutgoingTxsParams
- type GetTokensParams
- type OutgoingTx
- type SCCallParams
- type Settings
- type Token
- func (token *Token) DataDirPath() (string, error)
- func (token *Token) GetHash() crypto.Hash
- func (token *Token) GetImageOp() (imgOp paint.ImageOp, err error)
- func (token *Token) LoadImageOp() paint.ImageOp
- func (token *Token) Parse(scId string, scResult rpc.GetSC_Result) error
- func (token *Token) RefreshImageOp()
- type TokenFolder
- type Wallet
- func (w *Wallet) ChangePassword(password string, newPassword string) error
- func (w *Wallet) CheckRegistrationTx(tx transaction.Transaction) (rpc.GetEncryptedBalance_Result, bool, error)
- func (w *Wallet) ClearOutgoingTxs() error
- func (w *Wallet) CloseXSWD()
- func (w *Wallet) DelContact(addr string) error
- func (w *Wallet) DelOutgoingTx(txId string) error
- func (w *Wallet) DelToken(id int64) error
- func (w *Wallet) DelTokenFolder(id int64) error
- func (w *Wallet) Delete() error
- func (w *Wallet) FolderTokenExists(folder TokenFolder) (bool, error)
- func (w *Wallet) GetContact(addr string) (*Contact, error)
- func (w *Wallet) GetContacts(params GetContactsParams) ([]Contact, error)
- func (w *Wallet) GetEntries(SCID *crypto.Hash, params GetEntriesParams) []Entry
- func (w *Wallet) GetFavTokenLastOrder() (int64, error)
- func (w *Wallet) GetOutgoingTxs(params GetOutgoingTxsParams) ([]OutgoingTx, error)
- func (w *Wallet) GetRandomAddress(scId crypto.Hash) (string, error)
- func (w *Wallet) GetRandomAddresses(scId crypto.Hash) ([]string, error)
- func (w *Wallet) GetToken(id int64) (*Token, error)
- func (w *Wallet) GetTokenCount(folderId sql.NullInt64) (int, error)
- func (w *Wallet) GetTokenFolder(id int64) (*TokenFolder, error)
- func (w *Wallet) GetTokenFolderFolders(id sql.NullInt64) ([]TokenFolder, error)
- func (w *Wallet) GetTokenFolderPath(id sql.NullInt64) (string, error)
- func (w *Wallet) GetTokens(params GetTokensParams) ([]Token, error)
- func (w *Wallet) GetTxDestination(entry Entry) string
- func (w *Wallet) GetTxSender(entry Entry) string
- func (w *Wallet) InsertDexTokensFolder() error
- func (w *Wallet) InsertFolderToken(folder TokenFolder) (int64, error)
- func (w *Wallet) InsertOutgoingTx(tx *transaction.Transaction, description string) error
- func (w *Wallet) InsertToken(token Token) error
- func (w *Wallet) LoadSettings() error
- func (w *Wallet) OpenXSWD(appHandler func(appData *xswd.ApplicationData) bool, ...) error
- func (w *Wallet) RefreshInfo() error
- func (w *Wallet) Rename(newName string) error
- func (w *Wallet) ResetBalanceResult(scId string)
- func (w *Wallet) SaveSettings() error
- func (w *Wallet) StoreContact(contact Contact) error
- func (w *Wallet) UpdateFolderToken(folder TokenFolder) error
- func (w *Wallet) UpdateOugoingTx(txId string, status string, blockHeight int64) error
- func (w *Wallet) UpdatePendingOutgoingTxs() (int, error)
- func (w *Wallet) UpdateToken(token Token) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseOpenedWallet ¶
func CloseOpenedWallet()
func CreateRandomWallet ¶
func CreateWalletFromData ¶
func CreateWalletFromHexSeed ¶
func CreateWalletFromPath ¶
func CreateWalletFromSeed ¶
func DeleteWallet ¶
func OpenWallet ¶
func StoreRegistrationTx ¶
func StoreRegistrationTx(addr string, tx *transaction.Transaction) error
Types ¶
type GetContactsParams ¶
type GetContactsParams struct { }
type GetEntriesParams ¶
type GetEntriesParams struct { In sql.NullBool Out sql.NullBool Coinbase sql.NullBool Sender sql.NullString Receiver sql.NullString BurnGreaterOrEqualThan sql.NullInt64 AmountGreaterOrEqualThan sql.NullInt64 TXID sql.NullString BlockHash sql.NullString SC_CALL *SCCallParams Offset sql.NullInt64 Limit sql.NullInt64 }
type GetOutgoingTxsParams ¶
type GetOutgoingTxsParams struct { Descending bool OrderBy string Limit uint64 TxType *transaction.TransactionType }
type GetTokensParams ¶
type OutgoingTx ¶
type OutgoingTx struct { TxId string HeightBuilt sql.NullInt64 Timestamp sql.NullInt64 Status sql.NullString TxType sql.NullInt32 HexData sql.NullString BlockHeight sql.NullInt64 Description sql.NullString }
type SCCallParams ¶
type SCCallParams struct { SCID sql.NullString Entrypoint sql.NullString }
type Token ¶
type Token struct { ID int64 SCID string Name string MaxSupply sql.NullInt64 // 1 is an NFT TotalSupply sql.NullInt64 Decimals int64 // native dero decimals is 5 StandardType sc.SCType Metadata sql.NullString IsFavorite bool ListOrderFavorite int ImageUrl sql.NullString Symbol sql.NullString FolderId sql.NullInt64 CreatedTimestamp sql.NullInt64 // date created on the blockchain AddedTimestamp sql.NullInt64 // date added to the sql table // contains filtered or unexported fields }
func GetTokenBySCID ¶
func (*Token) DataDirPath ¶
func (*Token) LoadImageOp ¶
func (*Token) RefreshImageOp ¶
func (token *Token) RefreshImageOp()
type Wallet ¶
type Wallet struct { Info app_db.WalletInfo Memory *walletapi.Wallet_Disk DB *sql.DB ServerXSWD *xswd.XSWD FolderPath string Settings Settings }
var OpenedWallet *Wallet
func (*Wallet) ChangePassword ¶
func (*Wallet) CheckRegistrationTx ¶
func (w *Wallet) CheckRegistrationTx(tx transaction.Transaction) (rpc.GetEncryptedBalance_Result, bool, error)
func (*Wallet) ClearOutgoingTxs ¶
func (*Wallet) DelContact ¶
func (*Wallet) DelOutgoingTx ¶
func (*Wallet) DelTokenFolder ¶
func (*Wallet) FolderTokenExists ¶
func (w *Wallet) FolderTokenExists(folder TokenFolder) (bool, error)
func (*Wallet) GetContacts ¶
func (w *Wallet) GetContacts(params GetContactsParams) ([]Contact, error)
func (*Wallet) GetEntries ¶
func (w *Wallet) GetEntries(SCID *crypto.Hash, params GetEntriesParams) []Entry
func (*Wallet) GetFavTokenLastOrder ¶
func (*Wallet) GetOutgoingTxs ¶
func (w *Wallet) GetOutgoingTxs(params GetOutgoingTxsParams) ([]OutgoingTx, error)
func (*Wallet) GetRandomAddress ¶
func (*Wallet) GetRandomAddresses ¶
func (*Wallet) GetTokenFolder ¶
func (w *Wallet) GetTokenFolder(id int64) (*TokenFolder, error)
func (*Wallet) GetTokenFolderFolders ¶
func (w *Wallet) GetTokenFolderFolders(id sql.NullInt64) ([]TokenFolder, error)
func (*Wallet) GetTokenFolderPath ¶
func (*Wallet) GetTxDestination ¶
func (*Wallet) GetTxSender ¶
func (*Wallet) InsertDexTokensFolder ¶
This function is unused but we can keep it. I opted to insert tokens from DEX page instead of this hardcoded version. Check askToCreateFolderTokens() in dex_pairs.go
func (*Wallet) InsertFolderToken ¶
func (w *Wallet) InsertFolderToken(folder TokenFolder) (int64, error)
func (*Wallet) InsertOutgoingTx ¶
func (w *Wallet) InsertOutgoingTx(tx *transaction.Transaction, description string) error
func (*Wallet) InsertToken ¶
func (*Wallet) LoadSettings ¶
func (*Wallet) OpenXSWD ¶
func (w *Wallet) OpenXSWD(appHandler func(appData *xswd.ApplicationData) bool, reqHandler xswd.RequestHandlerFunc) error
func (*Wallet) RefreshInfo ¶
func (*Wallet) ResetBalanceResult ¶
func (*Wallet) SaveSettings ¶
func (*Wallet) StoreContact ¶
func (*Wallet) UpdateFolderToken ¶
func (w *Wallet) UpdateFolderToken(folder TokenFolder) error
func (*Wallet) UpdateOugoingTx ¶
func (*Wallet) UpdatePendingOutgoingTxs ¶
func (*Wallet) UpdateToken ¶
Click to show internal directories.
Click to hide internal directories.