@@ -36,7 +36,7 @@ export type CountControllerEvent = ControllerStateChangeEvent<
36
36
37
37
export const countControllerStateMetadata = {
38
38
count : {
39
- anonymous : true ,
39
+ includeInDebugSnapshot : true ,
40
40
includeInStateLogs : true ,
41
41
persist : true ,
42
42
usedInUi : true ,
@@ -109,7 +109,7 @@ type MessagesControllerEvent = ControllerStateChangeEvent<
109
109
110
110
const messagesControllerStateMetadata = {
111
111
messages : {
112
- anonymous : true ,
112
+ includeInDebugSnapshot : true ,
113
113
includeInStateLogs : true ,
114
114
persist : true ,
115
115
usedInUi : true ,
@@ -609,7 +609,7 @@ describe('BaseController', () => {
609
609
610
610
const visitorControllerStateMetadata = {
611
611
visitors : {
612
- anonymous : true ,
612
+ includeInDebugSnapshot : true ,
613
613
includeInStateLogs : true ,
614
614
persist : true ,
615
615
usedInUi : true ,
@@ -679,7 +679,7 @@ describe('BaseController', () => {
679
679
680
680
const visitorOverflowControllerMetadata = {
681
681
maxVisitors : {
682
- anonymous : true ,
682
+ includeInDebugSnapshot : true ,
683
683
includeInStateLogs : true ,
684
684
persist : false ,
685
685
usedInUi : true ,
@@ -794,7 +794,7 @@ describe('getAnonymizedState', () => {
794
794
{ count : 1 } ,
795
795
{
796
796
count : {
797
- anonymous : false ,
797
+ includeInDebugSnapshot : false ,
798
798
includeInStateLogs : false ,
799
799
persist : false ,
800
800
usedInUi : false ,
@@ -814,25 +814,25 @@ describe('getAnonymizedState', () => {
814
814
} ,
815
815
{
816
816
password : {
817
- anonymous : false ,
817
+ includeInDebugSnapshot : false ,
818
818
includeInStateLogs : false ,
819
819
persist : false ,
820
820
usedInUi : false ,
821
821
} ,
822
822
privateKey : {
823
- anonymous : false ,
823
+ includeInDebugSnapshot : false ,
824
824
includeInStateLogs : false ,
825
825
persist : false ,
826
826
usedInUi : false ,
827
827
} ,
828
828
network : {
829
- anonymous : true ,
829
+ includeInDebugSnapshot : true ,
830
830
includeInStateLogs : false ,
831
831
persist : false ,
832
832
usedInUi : false ,
833
833
} ,
834
834
tokens : {
835
- anonymous : true ,
835
+ includeInDebugSnapshot : true ,
836
836
includeInStateLogs : false ,
837
837
persist : false ,
838
838
usedInUi : false ,
@@ -856,7 +856,7 @@ describe('getAnonymizedState', () => {
856
856
} ,
857
857
{
858
858
transactionHash : {
859
- anonymous : anonymizeTransactionHash ,
859
+ includeInDebugSnapshot : anonymizeTransactionHash ,
860
860
includeInStateLogs : false ,
861
861
persist : false ,
862
862
usedInUi : false ,
@@ -881,7 +881,7 @@ describe('getAnonymizedState', () => {
881
881
} ,
882
882
{
883
883
txMeta : {
884
- anonymous : anonymizeTxMeta ,
884
+ includeInDebugSnapshot : anonymizeTxMeta ,
885
885
includeInStateLogs : false ,
886
886
persist : false ,
887
887
usedInUi : false ,
@@ -921,7 +921,7 @@ describe('getAnonymizedState', () => {
921
921
} ,
922
922
{
923
923
txMeta : {
924
- anonymous : anonymizeTxMeta ,
924
+ includeInDebugSnapshot : anonymizeTxMeta ,
925
925
includeInStateLogs : false ,
926
926
persist : false ,
927
927
usedInUi : false ,
@@ -941,7 +941,7 @@ describe('getAnonymizedState', () => {
941
941
} ,
942
942
{
943
943
count : {
944
- anonymous : ( count ) => Number ( count ) ,
944
+ includeInDebugSnapshot : ( count ) => Number ( count ) ,
945
945
includeInStateLogs : false ,
946
946
persist : false ,
947
947
usedInUi : false ,
@@ -963,13 +963,13 @@ describe('getAnonymizedState', () => {
963
963
// @ts -expect-error Intentionally testing invalid state
964
964
{
965
965
privateKey : {
966
- anonymous : true ,
966
+ includeInDebugSnapshot : true ,
967
967
includeInStateLogs : true ,
968
968
persist : true ,
969
969
usedInUi : true ,
970
970
} ,
971
971
network : {
972
- anonymous : false ,
972
+ includeInDebugSnapshot : false ,
973
973
includeInStateLogs : false ,
974
974
persist : false ,
975
975
usedInUi : false ,
@@ -999,7 +999,7 @@ describe('getPersistentState', () => {
999
999
{ count : 1 } ,
1000
1000
{
1001
1001
count : {
1002
- anonymous : false ,
1002
+ includeInDebugSnapshot : false ,
1003
1003
includeInStateLogs : false ,
1004
1004
persist : false ,
1005
1005
usedInUi : false ,
@@ -1019,25 +1019,25 @@ describe('getPersistentState', () => {
1019
1019
} ,
1020
1020
{
1021
1021
password : {
1022
- anonymous : false ,
1022
+ includeInDebugSnapshot : false ,
1023
1023
includeInStateLogs : false ,
1024
1024
persist : true ,
1025
1025
usedInUi : false ,
1026
1026
} ,
1027
1027
privateKey : {
1028
- anonymous : false ,
1028
+ includeInDebugSnapshot : false ,
1029
1029
includeInStateLogs : false ,
1030
1030
persist : true ,
1031
1031
usedInUi : false ,
1032
1032
} ,
1033
1033
network : {
1034
- anonymous : false ,
1034
+ includeInDebugSnapshot : false ,
1035
1035
includeInStateLogs : false ,
1036
1036
persist : false ,
1037
1037
usedInUi : false ,
1038
1038
} ,
1039
1039
tokens : {
1040
- anonymous : false ,
1040
+ includeInDebugSnapshot : false ,
1041
1041
includeInStateLogs : false ,
1042
1042
persist : false ,
1043
1043
usedInUi : false ,
@@ -1061,7 +1061,7 @@ describe('getPersistentState', () => {
1061
1061
} ,
1062
1062
{
1063
1063
transactionHash : {
1064
- anonymous : false ,
1064
+ includeInDebugSnapshot : false ,
1065
1065
includeInStateLogs : false ,
1066
1066
persist : normalizeTransacitonHash ,
1067
1067
usedInUi : false ,
@@ -1086,7 +1086,7 @@ describe('getPersistentState', () => {
1086
1086
} ,
1087
1087
{
1088
1088
txMeta : {
1089
- anonymous : false ,
1089
+ includeInDebugSnapshot : false ,
1090
1090
includeInStateLogs : false ,
1091
1091
persist : getPersistentTxMeta ,
1092
1092
usedInUi : false ,
@@ -1126,7 +1126,7 @@ describe('getPersistentState', () => {
1126
1126
} ,
1127
1127
{
1128
1128
txMeta : {
1129
- anonymous : false ,
1129
+ includeInDebugSnapshot : false ,
1130
1130
includeInStateLogs : false ,
1131
1131
persist : getPersistentTxMeta ,
1132
1132
usedInUi : false ,
@@ -1146,7 +1146,7 @@ describe('getPersistentState', () => {
1146
1146
} ,
1147
1147
{
1148
1148
count : {
1149
- anonymous : false ,
1149
+ includeInDebugSnapshot : false ,
1150
1150
includeInStateLogs : false ,
1151
1151
persist : ( count ) => Number ( count ) ,
1152
1152
usedInUi : false ,
@@ -1168,13 +1168,13 @@ describe('getPersistentState', () => {
1168
1168
// @ts -expect-error Intentionally testing invalid state
1169
1169
{
1170
1170
privateKey : {
1171
- anonymous : false ,
1171
+ includeInDebugSnapshot : false ,
1172
1172
includeInStateLogs : false ,
1173
1173
persist : true ,
1174
1174
usedInUi : false ,
1175
1175
} ,
1176
1176
network : {
1177
- anonymous : false ,
1177
+ includeInDebugSnapshot : false ,
1178
1178
includeInStateLogs : false ,
1179
1179
persist : false ,
1180
1180
usedInUi : true ,
@@ -1200,20 +1200,21 @@ describe('deriveStateFromMetadata', () => {
1200
1200
{ count : 1 } ,
1201
1201
{
1202
1202
count : {
1203
- anonymous : false ,
1203
+ includeInDebugSnapshot : false ,
1204
1204
includeInStateLogs : false ,
1205
1205
persist : false ,
1206
- // usedInUi is not set
1206
+ usedInUi : false ,
1207
1207
} ,
1208
1208
} ,
1209
- 'usedInUi' ,
1209
+ // @ts -expect-error Intentionally passing in fake unset property
1210
+ 'unset' ,
1210
1211
) ;
1211
1212
1212
1213
expect ( derivedState ) . toStrictEqual ( { } ) ;
1213
1214
} ) ;
1214
1215
1215
1216
describe . each ( [
1216
- 'anonymous ' ,
1217
+ 'includeInDebugSnapshot ' ,
1217
1218
'includeInStateLogs' ,
1218
1219
'persist' ,
1219
1220
'usedInUi' ,
@@ -1227,7 +1228,7 @@ describe('deriveStateFromMetadata', () => {
1227
1228
{ count : 1 } ,
1228
1229
{
1229
1230
count : {
1230
- anonymous : false ,
1231
+ includeInDebugSnapshot : false ,
1231
1232
includeInStateLogs : false ,
1232
1233
persist : false ,
1233
1234
usedInUi : false ,
@@ -1250,28 +1251,28 @@ describe('deriveStateFromMetadata', () => {
1250
1251
} ,
1251
1252
{
1252
1253
password : {
1253
- anonymous : false ,
1254
+ includeInDebugSnapshot : false ,
1254
1255
includeInStateLogs : false ,
1255
1256
persist : false ,
1256
1257
usedInUi : false ,
1257
1258
[ property ] : true ,
1258
1259
} ,
1259
1260
privateKey : {
1260
- anonymous : false ,
1261
+ includeInDebugSnapshot : false ,
1261
1262
includeInStateLogs : false ,
1262
1263
persist : false ,
1263
1264
usedInUi : false ,
1264
1265
[ property ] : true ,
1265
1266
} ,
1266
1267
network : {
1267
- anonymous : false ,
1268
+ includeInDebugSnapshot : false ,
1268
1269
includeInStateLogs : false ,
1269
1270
persist : false ,
1270
1271
usedInUi : false ,
1271
1272
[ property ] : false ,
1272
1273
} ,
1273
1274
tokens : {
1274
- anonymous : false ,
1275
+ includeInDebugSnapshot : false ,
1275
1276
includeInStateLogs : false ,
1276
1277
persist : false ,
1277
1278
usedInUi : false ,
@@ -1299,7 +1300,7 @@ describe('deriveStateFromMetadata', () => {
1299
1300
} ,
1300
1301
{
1301
1302
transactionHash : {
1302
- anonymous : false ,
1303
+ includeInDebugSnapshot : false ,
1303
1304
includeInStateLogs : false ,
1304
1305
persist : false ,
1305
1306
usedInUi : false ,
@@ -1326,7 +1327,7 @@ describe('deriveStateFromMetadata', () => {
1326
1327
} ,
1327
1328
{
1328
1329
txMeta : {
1329
- anonymous : false ,
1330
+ includeInDebugSnapshot : false ,
1330
1331
includeInStateLogs : false ,
1331
1332
persist : false ,
1332
1333
usedInUi : false ,
@@ -1368,7 +1369,7 @@ describe('deriveStateFromMetadata', () => {
1368
1369
} ,
1369
1370
{
1370
1371
txMeta : {
1371
- anonymous : false ,
1372
+ includeInDebugSnapshot : false ,
1372
1373
includeInStateLogs : false ,
1373
1374
persist : false ,
1374
1375
usedInUi : false ,
@@ -1390,7 +1391,7 @@ describe('deriveStateFromMetadata', () => {
1390
1391
} ,
1391
1392
{
1392
1393
count : {
1393
- anonymous : false ,
1394
+ includeInDebugSnapshot : false ,
1394
1395
includeInStateLogs : false ,
1395
1396
persist : false ,
1396
1397
usedInUi : false ,
@@ -1415,14 +1416,14 @@ describe('deriveStateFromMetadata', () => {
1415
1416
// @ts -expect-error Intentionally testing invalid state
1416
1417
{
1417
1418
privateKey : {
1418
- anonymous : false ,
1419
+ includeInDebugSnapshot : false ,
1419
1420
includeInStateLogs : false ,
1420
1421
persist : false ,
1421
1422
usedInUi : false ,
1422
1423
[ property ] : true ,
1423
1424
} ,
1424
1425
network : {
1425
- anonymous : false ,
1426
+ includeInDebugSnapshot : false ,
1426
1427
includeInStateLogs : false ,
1427
1428
persist : false ,
1428
1429
usedInUi : false ,
0 commit comments