walletsettings

package
v0.182.38 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 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 CollectiblePreferences added in v0.172.6

type CollectiblePreferences struct {
	Type     CollectiblePreferencesType `json:"type"`
	Key      string                     `json:"key"`
	Position int                        `json:"position"`
	Visible  bool                       `json:"visible"`
}

type CollectiblePreferencesType added in v0.172.6

type CollectiblePreferencesType int
const (
	CollectiblePreferencesTypeNonCommunityCollectible CollectiblePreferencesType = iota + 1
	CollectiblePreferencesTypeCommunityCollectible
	CollectiblePreferencesTypeCollection
	CollectiblePreferencesTypeCommunity
)

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) GetClockOfLastCollectiblePreferencesChange added in v0.172.6

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

func (*WalletSettings) GetClockOfLastTokenPreferencesChange

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

func (*WalletSettings) GetCollectiblePreferences added in v0.172.6

func (ws *WalletSettings) GetCollectiblePreferences(testNetworksEnabled bool) ([]CollectiblePreferences, error)

func (*WalletSettings) GetTokenPreferences

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

func (*WalletSettings) UpdateCollectiblePreferences added in v0.172.6

func (ws *WalletSettings) UpdateCollectiblePreferences(preferences []CollectiblePreferences, groupByCommunity bool, groupByCollection bool, testNetworksEnabled bool, clock uint64) 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