Commit 6c42d06 1 parent 80d4faa commit 6c42d06 Copy full SHA for 6c42d06
File tree 5 files changed +12
-30
lines changed
5 files changed +12
-30
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,8 @@ async function main() {
434
434
if ( ! fs . existsSync ( `./data/${ chain } _data.json` ) ) {
435
435
continue
436
436
}
437
- const data = JSON . parse ( fs . readFileSync ( `./data/${ chain } _data.json` , "utf8" ) )
437
+ const dataConfig = JSON . parse ( fs . readFileSync ( `./data/${ chain } _data.json` , "utf8" ) )
438
+ const allAddressesInDataConfig = [ ...dataConfig . no_factory_vaults , ...dataConfig . no_factory_boosts ]
438
439
439
440
const gql = `
440
441
query Misconfig {
@@ -474,12 +475,17 @@ async function main() {
474
475
}
475
476
}
476
477
478
+
477
479
for ( const contract of resultData . data . duplicate_config ) {
478
- console . error ( `${ chain } : Contract ${ contract . id } is discovered from factory as well` )
480
+ if ( allAddressesInDataConfig . includes ( contract . id ) ) {
481
+ console . error ( `${ chain } : Contract ${ contract . id } is discovered from factory as well` )
482
+ }
479
483
}
480
484
481
485
for ( const contract of resultData . data . none_config ) {
482
- console . error ( `${ chain } : Contract ${ contract . id } is not discovered from factory` )
486
+ if ( allAddressesInDataConfig . includes ( contract . id ) ) {
487
+ console . error ( `${ chain } : Contract ${ contract . id } is not discovered from factory` )
488
+ }
483
489
}
484
490
}
485
491
}
Original file line number Diff line number Diff line change 1
1
{
2
- "no_factory_vaults" : [
3
- " 0x1de0375e770efb9c92d7958cbb5b53c9fb8eb1cb" ,
4
- " 0x21c4d71882364b395209c07a7710a9251c285d73" ,
5
- " 0x4b6edd5e8f68a7b6502af7872cedc5c31c343b00" ,
6
- " 0x50583f8dce18d4180f074be7332b4734968246ec" ,
7
- " 0x78c90c28edc5f4b266bfd40b01e7de8ebb3682f7" ,
8
- " 0xe21396a3f0e752ac03b195cf140de84e58e58771" ,
9
- " 0xf49de23df72c886946eef19d1b751b3d997ef668" ,
10
- " 0xf9ac09ec1ab2e4cd5ca2cf9451d3a49fd6b25cc5"
11
- ],
2
+ "no_factory_vaults" : [],
12
3
"no_factory_boosts" : []
13
4
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"no_factory_vaults" : [
3
3
" 0x085bf6f912a42d0d8ed53d4998b07f9a535315f0" ,
4
- " 0x0d281ff551351c8b88d019ecd23481723a1cc8e3" ,
5
4
" 0x0fb94775d16e14627678391d24e4576fda05e3ed" ,
6
- " 0x18c10e2c181999eedf855d2f61ec3755aab96f70" ,
7
5
" 0x2059d4abaa418ad228dc1d25027bad1f7ff9f21e" ,
8
6
" 0x29c4c22ec7df7e936cb3e6c4a7e5eae751c7d86b" ,
9
7
" 0x2d04969ed7d1b186797c44df5f5634eb9c89af6b" ,
Original file line number Diff line number Diff line change 1
1
{
2
- "no_factory_vaults" : [
3
- " 0x1484e6186546b485ecb0079d389ce177bf3dfdb1" ,
4
- " 0x41337492ca4139320f1baa6e9647b69a35af8f00" ,
5
- " 0x79b0a2e17065c85b3e47b42db15cbcee1aba23fc" ,
6
- " 0x7c207cb731ebc0ba5df699d7b36348302fd8480c" ,
7
- " 0x86166d85cd222f40e7d1de750bd58a946129ec7a" ,
8
- " 0xc8cbbdb1990cb4a17e2378017804fcb818bd39b5" ,
9
- " 0xdd97504448cc51b4de4944157838c4800c773c5a"
10
- ],
2
+ "no_factory_vaults" : [],
11
3
"no_factory_boosts" : []
12
4
}
Original file line number Diff line number Diff line change 17
17
" 0xfb153dd6cb2de5219b36b8c95f2c528a34e2912b"
18
18
],
19
19
"no_factory_boosts" : [
20
- " 0x0465cb2f05d69728e0e1d988bf65eb0a9cd68dff" ,
21
- " 0x047c4880283e4c795babb13cc18e37e0d7ae8ae5" ,
22
- " 0x3355df6d4c9c3035724fd0e3914de96a5a83aaf4" ,
23
- " 0x5595961efc3302d78ebac0af31ec029cacbacc73" ,
24
- " 0x9f45eef8bcc77f5238b3a5992e3b5cbb55f56cdd" ,
25
- " 0xfe8a01930d7720b229fd3317cf88152dc2b3277b"
20
+ " 0x3355df6d4c9c3035724fd0e3914de96a5a83aaf4"
26
21
]
27
22
}
You can’t perform that action at this time.
0 commit comments