update address class for nonWallet address flag

This commit is contained in:
julian 2023-01-13 14:49:56 -06:00
parent f53a293583
commit 4dd41a5048
2 changed files with 6 additions and 0 deletions

View file

@ -53,6 +53,7 @@ enum AddressType {
p2sh,
p2wpkh,
cryptonote,
nonWallet,
}
enum AddressSubType {
@ -61,4 +62,5 @@ enum AddressSubType {
paynymNotification,
paynymSend,
paynymReceive,
nonWallet,
}

View file

@ -166,6 +166,7 @@ const _AddresssubTypeEnumValueMap = {
'paynymNotification': 2,
'paynymSend': 3,
'paynymReceive': 4,
'nonWallet': 5,
};
const _AddresssubTypeValueEnumMap = {
0: AddressSubType.receiving,
@ -173,18 +174,21 @@ const _AddresssubTypeValueEnumMap = {
2: AddressSubType.paynymNotification,
3: AddressSubType.paynymSend,
4: AddressSubType.paynymReceive,
5: AddressSubType.nonWallet,
};
const _AddresstypeEnumValueMap = {
'p2pkh': 0,
'p2sh': 1,
'p2wpkh': 2,
'cryptonote': 3,
'nonWallet': 4,
};
const _AddresstypeValueEnumMap = {
0: AddressType.p2pkh,
1: AddressType.p2sh,
2: AddressType.p2wpkh,
3: AddressType.cryptonote,
4: AddressType.nonWallet,
};
Id _addressGetId(Address object) {