feat: Add advanced token settings (#4524)

This commit is contained in:
Cuteivist 2024-01-05 12:12:53 +01:00 committed by GitHub
parent 846a4e2363
commit 7814f39cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 700 additions and 481 deletions

View File

@ -1 +1 @@
0.171.40
0.171.41

View File

@ -105,6 +105,12 @@ func defaultSettings(generatedAccountInfo generator.GeneratedAccountInfo, derive
s.Networks = &networkRawMessage
s.CurrentNetwork = "mainnet_rpc"
s.TokenGroupByCommunity = false
s.ShowCommunityAssetWhenSendingTokens = true
s.DisplayAssetsBelowBalance = false
// NOTE 9 decimals of precision. Default value is translated to 0.1
s.DisplayAssetsBelowBalanceThreshold = 100000000
return s, nil
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
ALTER TABLE settings ADD COLUMN wallet_show_community_asset_when_sending_tokens INTEGER NOT NULL DEFAULT TRUE;
ALTER TABLE settings ADD COLUMN wallet_display_assets_below_balance BOOLEAN NOT NULL DEFAULT FALSE;
-- 9 places reserved for decimals. Default value translates to 0.1
ALTER TABLE settings ADD COLUMN wallet_display_assets_below_balance_threshold UNSIGNED BIGINT NOT NULL DEFAULT 100000000;
ALTER TABLE settings_sync_clock ADD COLUMN wallet_show_community_asset_when_sending_tokens INTEGER NOT NULL DEFAULT 0;
ALTER TABLE settings_sync_clock ADD COLUMN wallet_display_assets_below_balance INTEGER NOT NULL DEFAULT 0;
ALTER TABLE settings_sync_clock ADD COLUMN wallet_display_assets_below_balance_threshold INTEGER NOT NULL DEFAULT 0;

View File

@ -402,6 +402,39 @@ var (
dBColumnName: "wallet_token_preferences_group_by_community",
valueHandler: BoolHandler,
}
ShowCommunityAssetWhenSendingTokens = SettingField{
reactFieldName: "show-community-asset-when-sending-tokens?",
dBColumnName: "wallet_show_community_asset_when_sending_tokens",
valueHandler: BoolHandler,
syncProtobufFactory: &SyncProtobufFactory{
fromInterface: showCommunityAssetWhenSendingTokensProtobufFactory,
fromStruct: showCommunityAssetWhenSendingTokensProtobufFactoryStruct,
valueFromProtobuf: BoolFromSyncProtobuf,
protobufType: protobuf.SyncSetting_SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS,
},
}
DisplayAssetsBelowBalance = SettingField{
reactFieldName: "display-assets-below-balance?",
dBColumnName: "wallet_display_assets_below_balance",
valueHandler: BoolHandler,
syncProtobufFactory: &SyncProtobufFactory{
fromInterface: displayAssetsBelowBalanceProtobufFactory,
fromStruct: displayAssetsBelowBalanceProtobufFactoryStruct,
valueFromProtobuf: BoolFromSyncProtobuf,
protobufType: protobuf.SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE,
},
}
DisplayAssetsBelowBalanceThreshold = SettingField{
reactFieldName: "display-assets-below-balance-threshold",
dBColumnName: "wallet_display_assets_below_balance_threshold",
valueHandler: Int64Handler,
syncProtobufFactory: &SyncProtobufFactory{
fromInterface: displayAssetsBelowBalanceThresholdProtobufFactory,
fromStruct: displayAssetsBelowBalanceThresholdProtobufFactoryStruct,
valueFromProtobuf: Int64FromSyncProtobuf,
protobufType: protobuf.SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD,
},
}
UseMailservers = SettingField{
reactFieldName: "use-mailservers?",
dBColumnName: "use_mailservers",
@ -532,6 +565,9 @@ var (
ProfileMigrationNeeded,
IsSepoliaEnabled,
TokenGroupByCommunity,
ShowCommunityAssetWhenSendingTokens,
DisplayAssetsBelowBalance,
DisplayAssetsBelowBalanceThreshold,
URLUnfurlingMode,
}
)

View File

@ -142,10 +142,14 @@ INSERT INTO settings (
profile_pictures_visibility,
url_unfurling_mode,
omit_transfers_history_scan,
mnemonic_was_not_shown
mnemonic_was_not_shown,
wallet_token_preferences_group_by_community,
wallet_show_community_asset_when_sending_tokens,
wallet_display_assets_below_balance,
wallet_display_assets_below_balance_threshold
) VALUES (
?,?,?,?,?,?,?,?,?,?,?,?,?,
?,?,?,?,?,?,?,?,?,'id',?,?,?,?,?,?)`,
?,?,?,?,?,?,?,?,?,'id',?,?,?,?,?,?,?,?,?,?)`,
s.Address,
s.Currency,
s.CurrentNetwork,
@ -174,6 +178,10 @@ INSERT INTO settings (
s.URLUnfurlingMode,
s.OmitTransfersHistoryScan,
s.MnemonicWasNotShown,
s.TokenGroupByCommunity,
s.ShowCommunityAssetWhenSendingTokens,
s.DisplayAssetsBelowBalance,
s.DisplayAssetsBelowBalanceThreshold,
)
if err != nil {
return err
@ -369,7 +377,8 @@ func (db *Database) GetSettings() (Settings, error) {
waku_bloom_filter_mode, webview_allow_permission_requests, current_user_status, send_status_updates, gif_recents,
gif_favorites, opensea_enabled, last_backup, backup_enabled, telemetry_server_url, auto_message_enabled, gif_api_key,
test_networks_enabled, mutual_contact_enabled, profile_migration_needed, is_sepolia_enabled, wallet_token_preferences_group_by_community, url_unfurling_mode,
omit_transfers_history_scan, mnemonic_was_not_shown
omit_transfers_history_scan, mnemonic_was_not_shown, wallet_show_community_asset_when_sending_tokens, wallet_display_assets_below_balance,
wallet_display_assets_below_balance_threshold
FROM
settings
WHERE
@ -448,6 +457,9 @@ func (db *Database) GetSettings() (Settings, error) {
&s.URLUnfurlingMode,
&s.OmitTransfersHistoryScan,
&s.MnemonicWasNotShown,
&s.ShowCommunityAssetWhenSendingTokens,
&s.DisplayAssetsBelowBalance,
&s.DisplayAssetsBelowBalanceThreshold,
)
return s, err

View File

@ -206,6 +206,36 @@ func (mr *MockDatabaseSettingsManagerMockRecorder) GetTokenGroupByCommunity() *g
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTokenGroupByCommunity", reflect.TypeOf((*MockDatabaseSettingsManager)(nil).GetTokenGroupByCommunity))
}
// GetDisplayAssetsBelowBalance mocks base method.
func (m *MockDatabaseSettingsManager) GetDisplayAssetsBelowBalance() (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDisplayAssetsBelowBalance")
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetDisplayAssetsBelowBalance indicates an expected call of GetDisplayAssetsBelowBalance.
func (mr *MockDatabaseSettingsManagerMockRecorder) GetDisplayAssetsBelowBalance() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDisplayAssetsBelowBalance", reflect.TypeOf((*MockDatabaseSettingsManager)(nil).GetDisplayAssetsBelowBalance))
}
// GetDisplayAssetsBelowBalanceThreshold mocks base method.
func (m *MockDatabaseSettingsManager) GetDisplayAssetsBelowBalanceThreshold() (uint64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDisplayAssetsBelowBalanceThreshold")
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetDisplayAssetsBelowBalanceThreshold indicates an expected call of GetDisplayAssetsBelowBalanceThreshold.
func (mr *MockDatabaseSettingsManagerMockRecorder) GetDisplayAssetsBelowBalanceThreshold() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDisplayAssetsBelowBalanceThreshold", reflect.TypeOf((*MockDatabaseSettingsManager)(nil).GetDisplayAssetsBelowBalanceThreshold))
}
// URLUnfurlingMode mocks base method.
func (m *MockDatabaseSettingsManager) URLUnfurlingMode() (int64, error) {
m.ctrl.T.Helper()

View File

@ -200,6 +200,9 @@ type Settings struct {
ProfileMigrationNeeded bool `json:"profile-migration-needed,omitempty"`
IsSepoliaEnabled bool `json:"is-sepolia-enabled?,omitempty"`
TokenGroupByCommunity bool `json:"token-group-by-community?,omitempty"`
ShowCommunityAssetWhenSendingTokens bool `json:"show-community-asset-when-sending-tokens?,omitempty"`
DisplayAssetsBelowBalance bool `json:"display-assets-below-balance?,omitempty"`
DisplayAssetsBelowBalanceThreshold int64 `json:"display-assets-below-balance-threshold,omitempty"`
URLUnfurlingMode URLUnfurlingModeType `json:"url-unfurling-mode,omitempty"`
}

View File

@ -541,3 +541,78 @@ func urlUnfurlingModeProtobufFactory(value any, clock uint64, chatID string) (*c
func urlUnfurlingModeProtobufFactoryStruct(s Settings, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
return buildRawURLUnfurlingModeSyncMessage(int64(s.URLUnfurlingMode), clock, chatID)
}
// ShowCommunityAssetWhenSendingTokens
func buildRawShowCommunityAssetWhenSendingTokensSyncMessage(v bool, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
pb := &protobuf.SyncSetting{
Type: protobuf.SyncSetting_SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS,
Value: &protobuf.SyncSetting_ValueBool{ValueBool: v},
Clock: clock,
}
rm, err := buildRawSyncSettingMessage(pb, chatID)
return rm, pb, err
}
func showCommunityAssetWhenSendingTokensProtobufFactory(value interface{}, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
v, err := assertBool(value)
if err != nil {
return nil, nil, err
}
return buildRawShowCommunityAssetWhenSendingTokensSyncMessage(v, clock, chatID)
}
func showCommunityAssetWhenSendingTokensProtobufFactoryStruct(s Settings, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
return buildRawShowCommunityAssetWhenSendingTokensSyncMessage(s.ShowCommunityAssetWhenSendingTokens, clock, chatID)
}
// DisplayAssetsBelowBalance
func buildRawDisplayAssetsBelowBalanceSyncMessage(v bool, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
pb := &protobuf.SyncSetting{
Type: protobuf.SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE,
Value: &protobuf.SyncSetting_ValueBool{ValueBool: v},
Clock: clock,
}
rm, err := buildRawSyncSettingMessage(pb, chatID)
return rm, pb, err
}
func displayAssetsBelowBalanceProtobufFactory(value interface{}, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
v, err := assertBool(value)
if err != nil {
return nil, nil, err
}
return buildRawDisplayAssetsBelowBalanceSyncMessage(v, clock, chatID)
}
func displayAssetsBelowBalanceProtobufFactoryStruct(s Settings, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
return buildRawDisplayAssetsBelowBalanceSyncMessage(s.DisplayAssetsBelowBalance, clock, chatID)
}
// DisplayAssetsBelowBalanceThreshold
func buildRawDisplayAssetsBelowBalanceThresholdSyncMessage(v int64, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
pb := &protobuf.SyncSetting{
Type: protobuf.SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD,
Value: &protobuf.SyncSetting_ValueInt64{ValueInt64: v},
Clock: clock,
}
rm, err := buildRawSyncSettingMessage(pb, chatID)
return rm, pb, err
}
func displayAssetsBelowBalanceThresholdProtobufFactory(value any, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
v, err := parseNumberToInt64(value)
if err != nil {
return nil, nil, err
}
return buildRawDisplayAssetsBelowBalanceThresholdSyncMessage(v, clock, chatID)
}
func displayAssetsBelowBalanceThresholdProtobufFactoryStruct(s Settings, clock uint64, chatID string) (*common.RawMessage, *protobuf.SyncSetting, error) {
return buildRawDisplayAssetsBelowBalanceThresholdSyncMessage(s.DisplayAssetsBelowBalanceThreshold, clock, chatID)
}

View File

@ -35,6 +35,15 @@ func BoolHandler(value interface{}) (interface{}, error) {
return value, nil
}
func Int64Handler(value interface{}) (interface{}, error) {
_, ok := value.(int64)
if !ok {
return value, errors.ErrInvalidConfig
}
return value, nil
}
func JSONBlobHandler(value interface{}) (interface{}, error) {
return &sqlite.JSONBlob{Data: value}, nil
}

View File

@ -40,6 +40,9 @@ const (
SyncSetting_BIO SyncSetting_Type = 14
SyncSetting_MNEMONIC_REMOVED SyncSetting_Type = 15
SyncSetting_URL_UNFURLING_MODE SyncSetting_Type = 18
SyncSetting_SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS SyncSetting_Type = 19
SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE SyncSetting_Type = 20
SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD SyncSetting_Type = 21
)
var SyncSetting_Type_name = map[int32]string{
@ -60,6 +63,9 @@ var SyncSetting_Type_name = map[int32]string{
14: "BIO",
15: "MNEMONIC_REMOVED",
18: "URL_UNFURLING_MODE",
19: "SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS",
20: "DISPLAY_ASSETS_BELOW_BALANCE",
21: "DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD",
}
var SyncSetting_Type_value = map[string]int32{
@ -80,6 +86,9 @@ var SyncSetting_Type_value = map[string]int32{
"BIO": 14,
"MNEMONIC_REMOVED": 15,
"URL_UNFURLING_MODE": 18,
"SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS": 19,
"DISPLAY_ASSETS_BELOW_BALANCE": 20,
"DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD": 21,
}
func (x SyncSetting_Type) String() string {
@ -227,39 +236,43 @@ func init() {
}
var fileDescriptor_e2f7a0bce2873c78 = []byte{
// 539 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0x4d, 0x6f, 0x1a, 0x3d,
0x10, 0xc7, 0xd9, 0xb0, 0x04, 0x32, 0x90, 0xc4, 0x71, 0xa2, 0x3c, 0xfb, 0xa4, 0x95, 0x42, 0xe9,
0x05, 0xe5, 0x40, 0xa5, 0xb6, 0xea, 0xa5, 0x27, 0xe3, 0x1d, 0xc0, 0xca, 0xae, 0xbd, 0xf2, 0x0b,
0x88, 0x5e, 0xac, 0x06, 0xd1, 0x28, 0x2a, 0x62, 0xa3, 0xb0, 0xa9, 0xc4, 0x57, 0xea, 0x97, 0xe8,
0x57, 0xab, 0x96, 0x6d, 0xfa, 0x7a, 0xb2, 0xe7, 0x3f, 0xbf, 0xf9, 0x7b, 0x3c, 0x36, 0x9c, 0x6e,
0xb6, 0xeb, 0x85, 0xdf, 0x2c, 0x8b, 0xe2, 0x6e, 0x7d, 0xb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 0x11, 0xc6, 0x3a, 0x00, 0xca, 0xd8, 0x73, 0xd2, 0xcb, 0xe7, 0x14, 0x3a, 0x8e,
0x53, 0x25, 0xdd, 0x0c, 0xb9, 0xb5, 0xe0, 0x70, 0x1a, 0x82, 0x42, 0x5b, 0x74, 0x83, 0x4e, 0x8f,
0x41, 0x59, 0xda, 0x62, 0x1d, 0x72, 0xb9, 0x2f, 0x9b, 0x63, 0x16, 0x07, 0x10, 0xe9, 0x29, 0x0e,
0x78, 0xc4, 0x95, 0x00, 0x7a, 0xc6, 0xae, 0xc9, 0xb3, 0xbf, 0x11, 0xe8, 0x42, 0x03, 0x36, 0xd4,
0x51, 0x40, 0xff, 0xe9, 0xfa, 0x75, 0x4a, 0x69, 0xd7, 0xaf, 0x9f, 0xd2, 0xd3, 0xeb, 0x23, 0x50,
0x16, 0x53, 0x0b, 0x26, 0x1b, 0xc7, 0x5e, 0xff, 0x27, 0x95, 0x88, 0xd2, 0x00, 0x70, 0xca, 0x9d,
0x08, 0xb3, 0xdb, 0x44, 0x2e, 0x84, 0x4e, 0x95, 0x1b, 0xd4, 0x48, 0xa5, 0x78, 0x6d, 0x47, 0xef,
0x1a, 0xfd, 0x17, 0x6f, 0xf7, 0xdf, 0xe1, 0xa6, 0x9a, 0xef, 0x5e, 0x7d, 0x0d, 0x00, 0x00, 0xff,
0xff, 0x57, 0x49, 0x09, 0x47, 0x5f, 0x03, 0x00, 0x00,
}

View File

@ -36,6 +36,9 @@ message SyncSetting {
reserved 17;
reserved "INCLUDE_WATCHONLY_ACCOUNT";
URL_UNFURLING_MODE = 18;
SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS = 19;
DISPLAY_ASSETS_BELOW_BALANCE = 20;
DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD = 21;
}
}