Skip to content

Commit 5f7a333

Browse files
authored
Merge pull request #79 from paritytech/anp-update-config
fix(resolc-config): removed unused params and updated examples
2 parents f7b51d3 + 6fe576b commit 5f7a333

File tree

9 files changed

+83
-523
lines changed

9 files changed

+83
-523
lines changed

examples/asm.config.ts

Lines changed: 0 additions & 39 deletions
This file was deleted.

examples/combinedJson.config.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

examples/localNode.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const config: HardhatUserConfig = {
2626
},
2727
evmVersion: "cancun",
2828
compilerPath: "path/to/resolc",
29-
standardJson: true,
3029
},
3130
},
3231
}

examples/yul.config.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

packages/hardhat-polkadot-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/mocha": "^10.0.10",
3838
"@types/node": "^22.15.3",
3939
"axios": "1.9.0",
40-
"chalk": "5.4.1",
40+
"chalk": "4",
4141
"debug": "^4.4.0",
4242
"ts-node": "^10.9.2",
4343
"typescript": "^5.7.2"

packages/hardhat-polkadot-resolc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
"@parity/revive": "^0.0.21",
3636
"@types/debug": "^4",
3737
"@types/node": "^22.15.3",
38+
"chalk": "4",
3839
"debug": "^4.4.0",
3940
"solc": "^0.8.28",
4041
"ts-node": "^10.9.2",
4142
"typescript": "^5.8.3"
4243
},
4344
"devDependencies": {
4445
"@eslint/js": "^9.25.1",
45-
"chalk": "^5.4.1",
4646
"eslint": "^9.25.1",
4747
"globals": "^16.0.0",
4848
"typescript-eslint": "^8.31.0"

packages/hardhat-polkadot-resolc/src/types.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ type EvmVersions =
1414
| 'shanghai'
1515
| 'cancun';
1616

17-
type CombinedJSONOpts =
18-
| 'abi'
19-
| 'hashes'
20-
| 'metadata'
21-
| 'devdoc'
22-
| 'userdoc'
23-
| 'storage-layout'
24-
| 'ast'
25-
| 'asm'
26-
| 'bin'
27-
| 'bin-runtime';
28-
2917
type SuppresWarningsOpts =
3018
| 'ecrecover'
3119
| 'sendtransfer'
@@ -48,8 +36,6 @@ export interface ResolcConfig {
4836
allowPaths?: string
4937
// Create one file per component and contract/file at the specified directory, if given.
5038
outputDir?: string
51-
// Overwrite existing files (used together with -o).
52-
overwrite?: boolean
5339
// Optimizer settings.
5440
optimizer?: {
5541
// Enable the optimizer.
@@ -63,44 +49,20 @@ export interface ResolcConfig {
6349
solcPath?: string
6450
// The EVM target version to generate IR for. See https://github.com/paritytech/revive/blob/main/crates/common/src/evm_version.rs for reference.
6551
evmVersion?: EvmVersions
66-
// Output a single JSON document containing the specified information.
67-
combinedJson?: CombinedJSONOpts
68-
// Switch to standard JSON input/output mode. Read from stdin, write the result to stdout.
69-
standardJson?: boolean
70-
// Switch to missing deployable libraries detection mode. Only available for standard JSON input/output mode. Contracts are not compiled in this mode, and all compilation artifacts are not included.
71-
detectMissingLibraries?: boolean
72-
// Switch to Yul mode. Only one input Yul file is allowed. Cannot be used with combined and standard JSON modes.
73-
yul?: boolean
74-
// Switch to LLVM IR mode. Only one input LLVM IR file is allowed. Cannot be used with combined and standard JSON modes. Use this mode at your own risk, as LLVM IR input validation is not implemented.
75-
llvmIR?: boolean
7652
// Forcibly switch to EVM legacy assembly pipeline. It is useful for older revisions of `solc` 0.8, where Yul was considered highly experimental and contained more bugs than today
7753
forceEVMLA?: boolean
78-
// Set metadata hash mode. The only supported value is `none` that disables appending the metadata hash. Is enabled by default.
79-
metadataHash?: string
80-
// Output PolkaVM assembly of the contracts
81-
asm?: boolean
82-
// Output PolkaVM bytecode of the contracts
83-
bin?: boolean
8454
// Suppress specified warnings.
8555
suppressWarnings?: SuppresWarningsOpts[]
8656
// Dump all IRs to files in the specified directory. Only for testing and debugging.
8757
debugOutputDir?: string
88-
// Set the verify-each option in LLVM. Only for testing and debugging.
89-
llvmVerifyEach?: boolean
90-
// Set the debug-logging option in LLVM. Only for testing and debugging
91-
llvmDebugLogging?: boolean
9258
// If compilerSource == "npm", this option is ignored.
9359
compilerPath?: string
9460
// Specific contracts present in source to be compiled
9561
contractsToCompile?: string[]
9662
// Generate source based debug information in the output code file. This only has an effect with the LLVM-IR code generator and is ignored otherwise.
9763
emitDourceDebugInfo?: boolean
98-
// Specify addresses of deployable libraries. Syntax: `<libraryName>=<address> [, or whitespace] ...`.
99-
libraries?: string[]
10064
// Disable the `solc` optimizer.
10165
disableSolcOptimizer?: boolean
102-
// Try to recompile with -Oz if the bytecode is too large.
103-
fallbackToOptimizingForSize?: boolean
10466
// Compile in batches. Useful for environmnents with limited resources and large number of files.
10567
batchSize?: number
10668
}

0 commit comments

Comments
 (0)