walletsettings

package
v0.171.40 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenPreferences

type TokenPreferences struct {
	Key           string `json:"key"`
	Position      int    `json:"position"`
	GroupPosition int    `json:"groupPosition"`
	Visible       bool   `json:"visible"`
	CommunityID   string `json:"communityId"`
}

type WalletSettings

type WalletSettings struct {
	// contains filtered or unexported fields
}

func NewWalletSettings

func NewWalletSettings(db *sql.DB) *WalletSettings

func (*WalletSettings) GetClockOfLastTokenPreferencesChange

func (ws *WalletSettings) GetClockOfLastTokenPreferencesChange() (result uint64, err error)

func (*WalletSettings) GetTokenPreferences

func (ws *WalletSettings) GetTokenPreferences(testNetworksEnabled bool) ([]TokenPreferences, error)

func (*WalletSettings) UpdateTokenPreferences

func (ws *WalletSettings) UpdateTokenPreferences(preferences []TokenPreferences, groupByCommunity bool, testNetworksEnabled bool, clock uint64) error

Jump to

Keyboard shortcuts

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