@@ -380,114 +380,114 @@ def compile_bridge(name):
380380 abi_dir = './cross-chain/THORChain-bridge/abi/' )
381381
382382 if args .solidifi :
383- compile_solidity_sources ('./reentrancy- solidifi/source-code' ,
384- './reentrancy- solidifi/json' )
385- compile_solidity_sources ('./vanilla- solidifi/source-code' ,
386- './vanilla- solidifi/json' )
387- compile_solidity_sources ('./tx-origin-solidifi /source-code' ,
388- './tx-origin-solidifi /json' )
389- compile_solidity_sources ('./timestamp-dependency-solidifi /source-code' ,
390- './timestamp-dependency-solidifi /json' )
383+ compile_solidity_sources ('./solidifi/reentrancy /source-code' ,
384+ './solidifi/reentrancy /json' )
385+ compile_solidity_sources ('./solidifi/vanilla /source-code' ,
386+ './solidifi/vanilla /json' )
387+ compile_solidity_sources ('./solidifi/ tx-origin/source-code' ,
388+ './solidifi/ tx-origin/json' )
389+ compile_solidity_sources ('./solidifi/ timestamp-dependency/source-code' ,
390+ './solidifi/ timestamp-dependency/json' )
391391
392392 if args .longest_bytecode :
393393 # EVMLiSA
394- extract_and_save_longest_bytecode ('./vanilla- solidifi/bytecode/evmlisa' ,
395- './vanilla- solidifi/json' ,
396- abi_dir = './vanilla- solidifi/abi/evmlisa' )
397- extract_and_save_longest_bytecode ('./reentrancy- solidifi/bytecode/evmlisa' ,
398- './reentrancy- solidifi/json' ,
399- abi_dir = './reentrancy- solidifi/abi/evmlisa' )
394+ extract_and_save_longest_bytecode ('./solidifi/vanilla /bytecode/evmlisa' ,
395+ './solidifi/vanilla /json' ,
396+ abi_dir = './solidifi/vanilla /abi/evmlisa' )
397+ extract_and_save_longest_bytecode ('./solidifi/reentrancy /bytecode/evmlisa' ,
398+ './solidifi/reentrancy /json' ,
399+ abi_dir = './solidifi/reentrancy /abi/evmlisa' )
400400 # TX-ORIGIN
401- extract_and_save_longest_bytecode ('./tx-origin-solidifi /bytecode/evmlisa' ,
402- './tx-origin-solidifi /json' )
401+ extract_and_save_longest_bytecode ('./solidifi/ tx-origin/bytecode/evmlisa' ,
402+ './solidifi/ tx-origin/json' )
403403
404404 # Timestamp-dependency
405- extract_and_save_longest_bytecode ('./timestamp-dependency-solidifi /bytecode/evmlisa' ,
406- './timestamp-dependency-solidifi /json' )
405+ extract_and_save_longest_bytecode ('./solidifi/ timestamp-dependency/bytecode/evmlisa' ,
406+ './solidifi/ timestamp-dependency/json' )
407407
408408 # EtherSolve
409- extract_and_save_longest_bytecode ('./vanilla- solidifi/bytecode/ethersolve' ,
410- './vanilla- solidifi/json' ,
409+ extract_and_save_longest_bytecode ('./solidifi/vanilla /bytecode/ethersolve' ,
410+ './solidifi/vanilla /json' ,
411411 True )
412- extract_and_save_longest_bytecode ('./reentrancy- solidifi/bytecode/ethersolve' ,
413- './reentrancy- solidifi/json' ,
412+ extract_and_save_longest_bytecode ('./solidifi/reentrancy /bytecode/ethersolve' ,
413+ './solidifi/reentrancy /json' ,
414414 True )
415415 else :
416416 # EVMLiSA
417- extract_and_save_bytecode ('./vanilla- solidifi/bytecode/evmlisa' ,
418- './vanilla- solidifi/json' )
419- extract_and_save_bytecode ('./reentrancy- solidifi/bytecode/evmlisa' ,
420- './reentrancy- solidifi/json' )
417+ extract_and_save_bytecode ('./solidifi/vanilla /bytecode/evmlisa' ,
418+ './solidifi/vanilla /json' )
419+ extract_and_save_bytecode ('./solidifi/reentrancy /bytecode/evmlisa' ,
420+ './solidifi/reentrancy /json' )
421421 # TX-ORIGIN
422- extract_and_save_bytecode ('./tx-origin-solidifi /bytecode/evmlisa' ,
423- './tx-origin-solidifi /json' )
422+ extract_and_save_bytecode ('./solidifi/ tx-origin/bytecode/evmlisa' ,
423+ './solidifi/ tx-origin/json' )
424424
425425 # Timestamp-dependency
426- extract_and_save_bytecode ('./timestamp-dependency-solidifi /bytecode/evmlisa' ,
427- './timestamp-dependency-solidifi /json' )
426+ extract_and_save_bytecode ('./solidifi/ timestamp-dependency/bytecode/evmlisa' ,
427+ './solidifi/ timestamp-dependency/json' )
428428
429429 # EtherSolve
430- extract_and_save_bytecode ('./vanilla- solidifi/bytecode/ethersolve' ,
431- './vanilla- solidifi/json' ,
430+ extract_and_save_bytecode ('./solidifi/vanilla /bytecode/ethersolve' ,
431+ './solidifi/vanilla /json' ,
432432 True )
433- extract_and_save_bytecode ('./reentrancy- solidifi/bytecode/ethersolve' ,
434- './reentrancy- solidifi/json' ,
433+ extract_and_save_bytecode ('./solidifi/reentrancy /bytecode/ethersolve' ,
434+ './solidifi/reentrancy /json' ,
435435 True )
436436
437437 if args .smartbugs :
438- compile_solidity_sources_with_different_version ('./reentrancy- smartbugs/source-code' ,
439- './reentrancy- smartbugs/json' ,
440- './reentrancy- smartbugs/source-code/version.csv' )
438+ compile_solidity_sources_with_different_version ('./smartbugs/reentrancy /source-code' ,
439+ './smartbugs/reentrancy /json' ,
440+ './smartbugs/reentrancy /source-code/version.csv' )
441441
442- compile_solidity_sources_with_different_version ('./timestamp-dependency-smartbugs /source-code' ,
443- './timestamp-dependency-smartbugs /json' ,
444- './timestamp-dependency-smartbugs /source-code/version.csv' )
442+ compile_solidity_sources_with_different_version ('./smartbugs/ timestamp-dependency/source-code' ,
443+ './smartbugs/ timestamp-dependency/json' ,
444+ './smartbugs/ timestamp-dependency/source-code/version.csv' )
445445
446446 if args .longest_bytecode :
447- extract_and_save_longest_bytecode ('./reentrancy- smartbugs/bytecode/evmlisa' ,
448- './reentrancy- smartbugs/json' )
449- extract_and_save_longest_bytecode ('./timestamp-dependency-smartbugs /bytecode/evmlisa' ,
450- './timestamp-dependency-smartbugs /json' )
451- extract_and_save_longest_bytecode ('./reentrancy- smartbugs/bytecode/ethersolve' ,
452- './reentrancy- smartbugs/json' ,
447+ extract_and_save_longest_bytecode ('./smartbugs/reentrancy /bytecode/evmlisa' ,
448+ './smartbugs/reentrancy /json' )
449+ extract_and_save_longest_bytecode ('./smartbugs/ timestamp-dependency/bytecode/evmlisa' ,
450+ './smartbugs/ timestamp-dependency/json' )
451+ extract_and_save_longest_bytecode ('./smartbugs/reentrancy /bytecode/ethersolve' ,
452+ './smartbugs/reentrancy /json' ,
453453 True )
454454 else :
455- extract_and_save_bytecode ('./reentrancy- smartbugs/bytecode/evmlisa' ,
456- './reentrancy- smartbugs/json' )
457- extract_and_save_bytecode ('./timestamp-dependency-smartbugs /bytecode/evmlisa' ,
458- './timestamp-dependency-smartbugs /json' )
459- extract_and_save_bytecode ('./reentrancy- smartbugs/bytecode/ethersolve' ,
460- './reentrancy- smartbugs/json' ,
455+ extract_and_save_bytecode ('./smartbugs/reentrancy /bytecode/evmlisa' ,
456+ './smartbugs/reentrancy /json' )
457+ extract_and_save_bytecode ('./smartbugs/ timestamp-dependency/bytecode/evmlisa' ,
458+ './smartbugs/ timestamp-dependency/json' )
459+ extract_and_save_bytecode ('./smartbugs/reentrancy /bytecode/ethersolve' ,
460+ './smartbugs/reentrancy /json' ,
461461 True )
462462
463463 if args .slise :
464- extract_solidity_versions ('./reentrancy- slise-db1/source-code' ,
465- './reentrancy- slise-db1/source-code/version.csv' )
466- generate_file_index ('./reentrancy- slise-db1/source-code' ,
467- './reentrancy- slise-db1/match-file-index.json' )
468- compile_solidity_sources_with_different_version ('./reentrancy- slise-db1/source-code' ,
469- './reentrancy- slise-db1/json' ,
470- './reentrancy- slise-db1/source-code/version.csv' )
464+ extract_solidity_versions ('./slise/reentrancy -db1/source-code' ,
465+ './slise/reentrancy -db1/source-code/version.csv' )
466+ generate_file_index ('./slise/reentrancy -db1/source-code' ,
467+ './slise/reentrancy -db1/match-file-index.json' )
468+ compile_solidity_sources_with_different_version ('./slise/reentrancy -db1/source-code' ,
469+ './slise/reentrancy -db1/json' ,
470+ './slise/reentrancy -db1/source-code/version.csv' )
471471
472- with open ('./reentrancy- slise-db1/match-file-index.json' , 'r' ) as index_file :
472+ with open ('./slise/reentrancy -db1/match-file-index.json' , 'r' ) as index_file :
473473 match_file_index = json .load (index_file )
474474
475475 if args .longest_bytecode :
476- extract_and_save_longest_bytecode ('./reentrancy- slise-db1/bytecode/evmlisa' ,
477- './reentrancy- slise-db1/json' ,
476+ extract_and_save_longest_bytecode ('./slise/reentrancy -db1/bytecode/evmlisa' ,
477+ './slise/reentrancy -db1/json' ,
478478 False ,
479479 match_file_index )
480- extract_and_save_longest_bytecode ('./reentrancy- slise-db1/bytecode/ethersolve' ,
481- './reentrancy- slise-db1/json' ,
480+ extract_and_save_longest_bytecode ('./slise/reentrancy -db1/bytecode/ethersolve' ,
481+ './slise/reentrancy -db1/json' ,
482482 True ,
483483 match_file_index )
484484 else :
485485
486- extract_and_save_bytecode ('./reentrancy- slise-db1/bytecode/evmlisa' ,
487- './reentrancy- slise-db1/json' ,
486+ extract_and_save_bytecode ('./slise/reentrancy -db1/bytecode/evmlisa' ,
487+ './slise/reentrancy -db1/json' ,
488488 False ,
489489 match_file_index )
490- extract_and_save_bytecode ('./reentrancy- slise-db1/bytecode/ethersolve' ,
491- './reentrancy- slise-db1/json' ,
490+ extract_and_save_bytecode ('./slise/reentrancy -db1/bytecode/ethersolve' ,
491+ './slise/reentrancy -db1/json' ,
492492 True ,
493493 match_file_index )
0 commit comments