Skip to content

Commit 7904176

Browse files
authored
Merge pull request zingolabs#879 from juanky201271/dev_release_candidate_zingo2
New test version 2.0.0 (256) - RC-10 - zingolib rc3
2 parents a7d9602 + cd433f8 commit 7904176

File tree

24 files changed

+174
-98
lines changed

24 files changed

+174
-98
lines changed

__tests__/__snapshots__/AddressBook.AbDetail.snapshot.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ exports[`Component Address Book Details - test Address Book Datails - Add - snap
5454
>
5555
<TextInput
5656
editable={true}
57+
maxLength={50}
5758
onChangeText={[Function]}
5859
placeholder="text translated"
5960
placeholderTextColor="#888888"
@@ -452,6 +453,7 @@ exports[`Component Address Book Details - test Address Book Datails - Delete - s
452453
>
453454
<TextInput
454455
editable={false}
456+
maxLength={50}
455457
onChangeText={[Function]}
456458
placeholder="text translated"
457459
placeholderTextColor="#888888"
@@ -852,6 +854,7 @@ exports[`Component Address Book Details - test Address Book Datails - Modify - s
852854
>
853855
<TextInput
854856
editable={true}
857+
maxLength={50}
855858
onChangeText={[Function]}
856859
placeholder="text translated"
857860
placeholderTextColor="#888888"

__tests__/__snapshots__/Header.snapshot.tsx.snap

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,21 @@ exports[`Component Header - test Header Complex - snapshot 1`] = `
341341
}
342342
testID="undefined.big-part"
343343
>
344-
0.5000
344+
0.6234
345+
</Text>
346+
<Text
347+
style={
348+
{
349+
"color": "#c3c3c3",
350+
"fontSize": 25.2,
351+
"margin": 0,
352+
"marginBottom": 2.4,
353+
"padding": 0,
354+
}
355+
}
356+
testID="undefined.small-part"
357+
>
358+
5678
345359
</Text>
346360
</View>
347361
</View>

__tests__/__snapshots__/History.snapshot.tsx.snap

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,21 @@ exports[`Component History - test History no currency, privacy normal & mode bas
12121212
}
12131213
testID="undefined.big-part"
12141214
>
1215-
0.5000
1215+
0.6234
1216+
</Text>
1217+
<Text
1218+
style={
1219+
{
1220+
"color": "#c3c3c3",
1221+
"fontSize": 25.2,
1222+
"margin": 0,
1223+
"marginBottom": 2.4,
1224+
"padding": 0,
1225+
}
1226+
}
1227+
testID="undefined.small-part"
1228+
>
1229+
5678
12161230
</Text>
12171231
</View>
12181232
</View>

__tests__/__snapshots__/Send.snapshot.tsx.snap

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2179,7 +2179,21 @@ exports[`Component Send - test Send no currency, privacy normal & mode basic - s
21792179
}
21802180
testID="undefined.big-part"
21812181
>
2182-
0.5000
2182+
0.6234
2183+
</Text>
2184+
<Text
2185+
style={
2186+
{
2187+
"color": "#c3c3c3",
2188+
"fontSize": 25.2,
2189+
"margin": 0,
2190+
"marginBottom": 2.4,
2191+
"padding": 0,
2192+
}
2193+
}
2194+
testID="undefined.small-part"
2195+
>
2196+
5678
21832197
</Text>
21842198
</View>
21852199
</View>

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ android {
115115
applicationId 'org.ZingoLabs.Zingo' // Real
116116
minSdkVersion rootProject.ext.minSdkVersion
117117
targetSdkVersion rootProject.ext.targetSdkVersion
118-
versionCode 254 // Real
118+
versionCode 256 // Real
119119
versionName "zingo-2.0.0" // Real
120120
testBuildType System.getProperty('testBuildType', 'debug')
121121
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

app/AppState/enums/CommandEnum.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export enum CommandEnum {
22
// new commands to create a proposal
33
send = 'send',
4-
sendall = 'sendall',
4+
sendall = 'send_all',
55
shield = 'shield',
66
// this works for all: send, sendall & shield
77
confirm = 'confirm',

app/LoadedApp/LoadedApp.tsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -938,16 +938,16 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, LoadedAppClas
938938
this.state.valueTransfersTotal !== null &&
939939
this.state.valueTransfersTotal > 0 &&
940940
this.state.valueTransfers
941-
.filter((vtOld: ValueTransferType) => vtOld.confirmations < GlobalConst.minConfirmations)
941+
.filter((vtOld: ValueTransferType) => vtOld.confirmations === 0) // not confirmed
942942
.forEach((vtOld: ValueTransferType) => {
943943
const vtNew = valueTransfers.filter(
944944
(vt: ValueTransferType) =>
945945
vt.txid === vtOld.txid && vt.address === vtOld.address && vt.poolType === vtOld.poolType,
946946
);
947947
//console.log('old', vtOld);
948948
//console.log('new', vtNew);
949-
// the ValueTransfer is confirmed
950-
if (vtNew.length > 0 && vtNew[0].confirmations >= GlobalConst.minConfirmations) {
949+
// the ValueTransfer is confirmed when the confirmations are > 0
950+
if (vtNew.length > 0 && vtNew[0].confirmations > 0) {
951951
let message: string = '';
952952
let title: string = '';
953953
if (vtNew[0].kind === ValueTransferKindEnum.Received && vtNew[0].amount > 0) {
@@ -1026,17 +1026,18 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, LoadedAppClas
10261026
}
10271027
}
10281028
// the ValueTransfer is gone -> Likely Reverted by the server
1029-
if (vtNew.length === 0) {
1030-
createAlert(
1031-
this.setBackgroundError,
1032-
this.addLastSnackbar,
1033-
[this.screenName],
1034-
this.state.translate('loadedapp.send-menu') as string,
1035-
this.state.translate('loadedapp.valuetransfer-reverted') as string,
1036-
true,
1037-
this.state.translate,
1038-
);
1039-
}
1029+
// this is really confusing...
1030+
//if (vtNew.length === 0) {
1031+
// createAlert(
1032+
// this.setBackgroundError,
1033+
// this.addLastSnackbar,
1034+
// [this.screenName],
1035+
// this.state.translate('loadedapp.send-menu') as string,
1036+
// this.state.translate('loadedapp.valuetransfer-reverted') as string,
1037+
// true,
1038+
// this.state.translate,
1039+
// );
1040+
//}
10401041
});
10411042
// if some tx is confirmed the UI needs some time to
10421043
// acomodate the bottom tabs.
@@ -1931,7 +1932,8 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, LoadedAppClas
19311932
!!totalBalance &&
19321933
(
19331934
(totalBalance.totalOrchardBalance > 0 && totalBalance.confirmedOrchardBalance === 0) ||
1934-
(totalBalance.totalSaplingBalance > 0 && totalBalance.confirmedSaplingBalance === 0)
1935+
(totalBalance.totalSaplingBalance > 0 && totalBalance.confirmedSaplingBalance === 0) ||
1936+
(totalBalance.totalTransparentBalance > 0 && totalBalance.confirmedTransparentBalance === 0)
19351937
) &&
19361938
somePending
19371939
) {

app/translations/en.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"zingo": "Zingo",
3-
"version": "zingo-2.0.0 (254)",
3+
"version": "zingo-2.0.0 (256)",
44
"loading": "loading...",
55
"connectingserver": "Connecting to the server...",
66
"wait": "Please wait...",
@@ -643,7 +643,8 @@
643643
"resend-alert": "Confirm to Resend this transaction again.",
644644
"remove-alert": "Confirm to remove failed transaction from device and restore balance",
645645
"remove-legend": "Remove transaction to restore balance",
646-
"expired": "Expired - Remove to restore balance"
646+
"expired": "Expired - Remove to restore balance",
647+
"waiting": "Funds waiting for the minimum confirmations"
647648
},
648649
"report": {
649650
"title": "Sync / Rescan Report",

app/translations/es.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"zingo": "Zingo",
3-
"version": "zingo-2.0.0 (254)",
3+
"version": "zingo-2.0.0 (256)",
44
"loading": "cargando...",
55
"connectingserver": "Conectando con el servidor...",
66
"wait": "Por favor espere...",
@@ -643,7 +643,8 @@
643643
"resend-alert": "Confirmar para reenviar esta transacción de nuevo.",
644644
"remove-alert": "Confirmar para eliminar la transacción fallida del dispositivo y restaurar el saldo",
645645
"remove-legend": "Eliminar transacción para restablecer el saldo",
646-
"expired": "Expirada - Eliminar para restablecer el saldo"
646+
"expired": "Expirada - Eliminar para restablecer el saldo",
647+
"waiting": "Fondos en espera de las confirmaciones mínimas"
647648
},
648649
"report": {
649650
"title": "Informe de Sincronización",

app/translations/pt.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"zingo": "Zingo",
3-
"version": "zingo-2.0.0 (254)",
3+
"version": "zingo-2.0.0 (256)",
44
"loading": "carregando...",
55
"connectingserver": "Conectando-se ao servidor...",
66
"wait": "Aguarde um momento...",
@@ -643,7 +643,8 @@
643643
"resend-alert": "Confirme para reenviar esta transação novamente.",
644644
"remove-alert": "Confirme para remover a transação com falha do dispositivo e restaurar o saldo",
645645
"remove-legend": "Remover transação para restaurar o saldo",
646-
"expired": "Expirada - Remover para restaurar o saldo"
646+
"expired": "Expirada - Remover para restaurar o saldo",
647+
"waiting": "Fundos aguardando as confirmações mínimas"
647648
},
648649
"report": {
649650
"title": "Relatório de Sincronização / Rescan",

0 commit comments

Comments
 (0)