@@ -36,10 +36,10 @@ pub use self::process::EXECUTABLE;
36
36
pub use self :: project:: contract:: Contract as ProjectContract ;
37
37
pub use self :: project:: Project ;
38
38
pub use self :: r#const:: * ;
39
- pub use self :: solc:: codegen:: Codegen as SolcCodegen ;
40
39
pub use self :: solc:: combined_json:: contract:: Contract as SolcCombinedJsonContract ;
41
40
pub use self :: solc:: combined_json:: CombinedJson as SolcCombinedJson ;
42
41
pub use self :: solc:: standard_json:: input:: language:: Language as SolcStandardJsonInputLanguage ;
42
+ pub use self :: solc:: standard_json:: input:: settings:: codegen:: Codegen as SolcStandardJsonInputSettingsCodegen ;
43
43
pub use self :: solc:: standard_json:: input:: settings:: metadata:: Metadata as SolcStandardJsonInputSettingsMetadata ;
44
44
pub use self :: solc:: standard_json:: input:: settings:: optimizer:: Optimizer as SolcStandardJsonInputSettingsOptimizer ;
45
45
pub use self :: solc:: standard_json:: input:: settings:: selection:: file:: flag:: Flag as SolcStandardJsonInputSettingsSelectionFileFlag ;
@@ -254,7 +254,7 @@ pub fn standard_output_eravm(
254
254
libraries : Vec < String > ,
255
255
solc_compiler : & SolcCompiler ,
256
256
messages : & mut Vec < SolcStandardJsonOutputError > ,
257
- codegen : Option < SolcCodegen > ,
257
+ codegen : Option < SolcStandardJsonInputSettingsCodegen > ,
258
258
evm_version : Option < era_compiler_common:: EVMVersion > ,
259
259
enable_eravm_extensions : bool ,
260
260
metadata_hash_type : era_compiler_common:: HashType ,
@@ -272,7 +272,7 @@ pub fn standard_output_eravm(
272
272
debug_config : Option < era_compiler_llvm_context:: DebugConfig > ,
273
273
) -> anyhow:: Result < EraVMBuild > {
274
274
let solc_version = solc_compiler. version . to_owned ( ) ;
275
- let solc_codegen = SolcCodegen :: new ( & solc_version, codegen) ;
275
+ let solc_codegen = SolcStandardJsonInputSettingsCodegen :: new ( & solc_version, codegen) ;
276
276
277
277
let mut solc_input = SolcStandardJsonInput :: try_from_solidity_paths (
278
278
paths,
@@ -282,7 +282,7 @@ pub fn standard_output_eravm(
282
282
codegen,
283
283
evm_version,
284
284
enable_eravm_extensions,
285
- SolcStandardJsonInputSettingsSelection :: new_required ( Some ( solc_codegen) ) ,
285
+ SolcStandardJsonInputSettingsSelection :: new_required ( solc_codegen) ,
286
286
SolcStandardJsonInputSettingsMetadata :: new ( use_literal_content, metadata_hash_type) ,
287
287
llvm_options. clone ( ) ,
288
288
suppressed_errors,
@@ -333,7 +333,7 @@ pub fn standard_output_evm(
333
333
libraries : Vec < String > ,
334
334
solc_compiler : & SolcCompiler ,
335
335
messages : & mut Vec < SolcStandardJsonOutputError > ,
336
- codegen : Option < SolcCodegen > ,
336
+ codegen : Option < SolcStandardJsonInputSettingsCodegen > ,
337
337
evm_version : Option < era_compiler_common:: EVMVersion > ,
338
338
metadata_hash_type : era_compiler_common:: HashType ,
339
339
use_literal_content : bool ,
@@ -347,7 +347,7 @@ pub fn standard_output_evm(
347
347
debug_config : Option < era_compiler_llvm_context:: DebugConfig > ,
348
348
) -> anyhow:: Result < EVMBuild > {
349
349
let solc_version = solc_compiler. version . to_owned ( ) ;
350
- let solc_codegen = SolcCodegen :: new ( & solc_version, codegen) ;
350
+ let solc_codegen = SolcStandardJsonInputSettingsCodegen :: new ( & solc_version, codegen) ;
351
351
352
352
let mut solc_input = SolcStandardJsonInput :: try_from_solidity_paths (
353
353
paths,
@@ -357,7 +357,7 @@ pub fn standard_output_evm(
357
357
codegen,
358
358
evm_version,
359
359
false ,
360
- SolcStandardJsonInputSettingsSelection :: new_required ( Some ( solc_codegen) ) ,
360
+ SolcStandardJsonInputSettingsSelection :: new_required ( solc_codegen) ,
361
361
SolcStandardJsonInputSettingsMetadata :: new ( use_literal_content, metadata_hash_type) ,
362
362
llvm_options. clone ( ) ,
363
363
vec ! [ ] ,
@@ -403,7 +403,7 @@ pub fn standard_output_evm(
403
403
///
404
404
pub fn standard_json_eravm (
405
405
solc_compiler : Option < SolcCompiler > ,
406
- codegen : Option < SolcCodegen > ,
406
+ codegen : Option < SolcStandardJsonInputSettingsCodegen > ,
407
407
enable_eravm_extensions : bool ,
408
408
detect_missing_libraries : bool ,
409
409
json_path : Option < PathBuf > ,
@@ -424,7 +424,7 @@ pub fn standard_json_eravm(
424
424
let llvm_options = solc_input. settings . llvm_options . clone ( ) ;
425
425
426
426
let codegen = if solc_input. settings . force_evmla {
427
- Some ( SolcCodegen :: EVMLA )
427
+ Some ( SolcStandardJsonInputSettingsCodegen :: EVMLA )
428
428
} else {
429
429
codegen
430
430
} ;
@@ -445,8 +445,9 @@ pub fn standard_json_eravm(
445
445
None => SolcCompiler :: new ( SolcCompiler :: DEFAULT_EXECUTABLE_NAME ) ?,
446
446
} ;
447
447
448
- let solc_codegen = SolcCodegen :: new ( & solc_compiler. version , codegen) ;
449
- solc_input. normalize ( Some ( solc_codegen) ) ;
448
+ let solc_codegen =
449
+ SolcStandardJsonInputSettingsCodegen :: new ( & solc_compiler. version , codegen) ;
450
+ solc_input. normalize ( solc_codegen) ;
450
451
451
452
let mut solc_output = solc_compiler. standard_json (
452
453
& mut solc_input,
@@ -565,7 +566,7 @@ pub fn standard_json_eravm(
565
566
///
566
567
pub fn standard_json_evm (
567
568
solc_compiler : Option < SolcCompiler > ,
568
- codegen : Option < SolcCodegen > ,
569
+ codegen : Option < SolcStandardJsonInputSettingsCodegen > ,
569
570
json_path : Option < PathBuf > ,
570
571
messages : & mut Vec < SolcStandardJsonOutputError > ,
571
572
base_path : Option < String > ,
@@ -592,8 +593,9 @@ pub fn standard_json_evm(
592
593
None => SolcCompiler :: new ( SolcCompiler :: DEFAULT_EXECUTABLE_NAME ) ?,
593
594
} ;
594
595
595
- let solc_codegen = SolcCodegen :: new ( & solc_compiler. version , codegen) ;
596
- solc_input. normalize ( Some ( solc_codegen) ) ;
596
+ let solc_codegen =
597
+ SolcStandardJsonInputSettingsCodegen :: new ( & solc_compiler. version , codegen) ;
598
+ solc_input. normalize ( solc_codegen) ;
597
599
598
600
let mut solc_output = solc_compiler. standard_json (
599
601
& mut solc_input,
@@ -696,7 +698,7 @@ pub fn combined_json_eravm(
696
698
libraries : Vec < String > ,
697
699
solc_compiler : & SolcCompiler ,
698
700
messages : & mut Vec < SolcStandardJsonOutputError > ,
699
- codegen : Option < SolcCodegen > ,
701
+ codegen : Option < SolcStandardJsonInputSettingsCodegen > ,
700
702
evm_version : Option < era_compiler_common:: EVMVersion > ,
701
703
enable_eravm_extensions : bool ,
702
704
metadata_hash_type : era_compiler_common:: HashType ,
@@ -767,7 +769,7 @@ pub fn combined_json_evm(
767
769
libraries : Vec < String > ,
768
770
solc_compiler : & SolcCompiler ,
769
771
messages : & mut Vec < SolcStandardJsonOutputError > ,
770
- codegen : Option < SolcCodegen > ,
772
+ codegen : Option < SolcStandardJsonInputSettingsCodegen > ,
771
773
evm_version : Option < era_compiler_common:: EVMVersion > ,
772
774
metadata_hash_type : era_compiler_common:: HashType ,
773
775
use_literal_content : bool ,
0 commit comments