mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-14 19:11:04 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 32f55b976c | |||
| 459a786299 | |||
| fbaa45f283 | |||
| f2fac85dae | |||
| b8f3073e29 |
@@ -19,7 +19,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p solc
|
mkdir -p solc
|
||||||
curl -sSL --output solc/solc https://github.com/ethereum/solidity/releases/download/v0.8.29/${SOLC_NAME}
|
curl -sSL --output solc/solc https://github.com/ethereum/solidity/releases/download/v0.8.30/${SOLC_NAME}
|
||||||
|
|
||||||
- name: Make Solc Executable
|
- name: Make Solc Executable
|
||||||
if: ${{ runner.os == 'Windows' }}
|
if: ${{ runner.os == 'Windows' }}
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ jobs:
|
|||||||
- name: Basic Sanity Check
|
- name: Basic Sanity Check
|
||||||
run: |
|
run: |
|
||||||
mkdir -p solc
|
mkdir -p solc
|
||||||
curl -sSLo solc/soljson.js https://github.com/ethereum/solidity/releases/download/v0.8.29/soljson.js
|
curl -sSLo solc/soljson.js https://github.com/ethereum/solidity/releases/download/v0.8.30/soljson.js
|
||||||
node -e "
|
node -e "
|
||||||
const soljson = require('solc/soljson');
|
const soljson = require('solc/soljson');
|
||||||
const createRevive = require('./target/wasm32-unknown-emscripten/release/resolc.js');
|
const createRevive = require('./target/wasm32-unknown-emscripten/release/resolc.js');
|
||||||
@@ -312,10 +312,7 @@ jobs:
|
|||||||
npm -w js/resolc run build
|
npm -w js/resolc run build
|
||||||
|
|
||||||
- name: Set version
|
- name: Set version
|
||||||
run: |
|
run: npm -w js/resolc version --no-git-tag-version ${{github.event.release.tag_name}}
|
||||||
VERSION="${{ github.event.release.tag_name }}"
|
|
||||||
STRIPPED_VERSION="${VERSION#v}"
|
|
||||||
npm -w js/resolc version --no-git-tag-version "$STRIPPED_VERSION"
|
|
||||||
|
|
||||||
- name: npm pack
|
- name: npm pack
|
||||||
run: npm -w js/resolc pack
|
run: npm -w js/resolc pack
|
||||||
|
|||||||
+46
-1
@@ -15,10 +15,29 @@ Supported `polkadot-sdk` rev:`c29e72a8628835e34deb6aa7db9a78a2e4eabcee`
|
|||||||
### Added
|
### Added
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
## v0.1.0-dev.15
|
||||||
|
|
||||||
|
This is a development pre-release.
|
||||||
|
|
||||||
|
Supported `polkadot-sdk` rev:`c29e72a8628835e34deb6aa7db9a78a2e4eabcee`
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Move the npm package from paritytech/js-revive, into this repo. The package `@parity/resolc` will be deployed to npm for each release.
|
||||||
|
- Support for solc v0.8.30
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
- By default, heavy size optimizations are applied.
|
- By default, heavy size optimizations are applied.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- @parity/resolc: The solc dependency package is constrained to the latest supported version, preventing breaking the package ever time a new solc package was released.
|
||||||
|
- The resolc npm package no longer ignores the optimizer settings
|
||||||
|
|
||||||
## v0.1.0-dev.14
|
## v0.1.0-dev.14
|
||||||
|
|
||||||
This is a development pre-release.
|
This is a development pre-release.
|
||||||
@@ -26,13 +45,16 @@ This is a development pre-release.
|
|||||||
Supported `polkadot-sdk` rev:`c29e72a8628835e34deb6aa7db9a78a2e4eabcee`
|
Supported `polkadot-sdk` rev:`c29e72a8628835e34deb6aa7db9a78a2e4eabcee`
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- The `revive-runner` helper utility binary which helps to run contracts locally without a blockchain node.
|
- The `revive-runner` helper utility binary which helps to run contracts locally without a blockchain node.
|
||||||
- Allow configuration of the EVM heap memory size and stack size via CLI flags and JSON input settings.
|
- Allow configuration of the EVM heap memory size and stack size via CLI flags and JSON input settings.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- The default PVM stack memory size was increased from 16kb to 32kb.
|
- The default PVM stack memory size was increased from 16kb to 32kb.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Constructors avoid storing zero sized immutable data on exit.
|
- Constructors avoid storing zero sized immutable data on exit.
|
||||||
|
|
||||||
## v0.1.0-dev.13
|
## v0.1.0-dev.13
|
||||||
@@ -42,16 +64,19 @@ This is a development pre-release.
|
|||||||
Supported `polkadot-sdk` rev:`c29e72a8628835e34deb6aa7db9a78a2e4eabcee`
|
Supported `polkadot-sdk` rev:`c29e72a8628835e34deb6aa7db9a78a2e4eabcee`
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Support for solc v0.8.29
|
- Support for solc v0.8.29
|
||||||
- Decouples the solc JSON-input-output type definitions from the Solidity fronted and expose them via a dedicated crate.
|
- Decouples the solc JSON-input-output type definitions from the Solidity fronted and expose them via a dedicated crate.
|
||||||
- `--supported-solc-versions` for `resolc` binary to return a `semver` range of supported `solc` versions.
|
- `--supported-solc-versions` for `resolc` binary to return a `semver` range of supported `solc` versions.
|
||||||
- Support for passing LLVM command line options via the prcoess input or providing one or more `--llvm-arg='..'` resolc CLI flag. This allows more fine-grained control over the LLVM backend configuration.
|
- Support for passing LLVM command line options via the prcoess input or providing one or more `--llvm-arg='..'` resolc CLI flag. This allows more fine-grained control over the LLVM backend configuration.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Storage keys and values are big endian. This was a pre-mature optimization because for the contract itself it this is a no-op and thus not observable. However we should consider the storage layout as part of the contract ABI. The endianness of transient storage values are still kept as-is.
|
- Storage keys and values are big endian. This was a pre-mature optimization because for the contract itself it this is a no-op and thus not observable. However we should consider the storage layout as part of the contract ABI. The endianness of transient storage values are still kept as-is.
|
||||||
- Running `resolc` using webkit is no longer supported.
|
- Running `resolc` using webkit is no longer supported.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- A missing byte swap for the create2 salt value.
|
- A missing byte swap for the create2 salt value.
|
||||||
|
|
||||||
## v0.1.0-dev.12
|
## v0.1.0-dev.12
|
||||||
@@ -61,10 +86,12 @@ This is a development pre-release.
|
|||||||
Supported `polkadot-sdk` rev: `21f6f0705e53c15aa2b8a5706b208200447774a9`
|
Supported `polkadot-sdk` rev: `21f6f0705e53c15aa2b8a5706b208200447774a9`
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Per file output selection for `--standard-json` mode.
|
- Per file output selection for `--standard-json` mode.
|
||||||
- The `ir` output selection option for `--standard-json` mode.
|
- The `ir` output selection option for `--standard-json` mode.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Improved code size: Large contracts compile to smaller code blobs when enabling aggressive size optimizations (`-Oz`).
|
- Improved code size: Large contracts compile to smaller code blobs when enabling aggressive size optimizations (`-Oz`).
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@@ -80,6 +107,7 @@ Supported `polkadot-sdk` rev: `274a781e8ca1a9432c7ec87593bd93214abbff50`
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- A bug causing incorrect loads from the emulated EVM linear memory.
|
- A bug causing incorrect loads from the emulated EVM linear memory.
|
||||||
- A missing integer truncate after switching to 64bit.
|
- A missing integer truncate after switching to 64bit.
|
||||||
|
|
||||||
@@ -90,10 +118,12 @@ This is a development pre-release.
|
|||||||
Supported `polkadot-sdk` rev: `274a781e8ca1a9432c7ec87593bd93214abbff50`
|
Supported `polkadot-sdk` rev: `274a781e8ca1a9432c7ec87593bd93214abbff50`
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Support for the `coinbase` opcode.
|
- Support for the `coinbase` opcode.
|
||||||
- The resolc web JS version.
|
- The resolc web JS version.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Missing the `--overwrite` flag emits an error instead of a warning.
|
- Missing the `--overwrite` flag emits an error instead of a warning.
|
||||||
- The `resolc` executable prints the help by default.
|
- The `resolc` executable prints the help by default.
|
||||||
- Removed support for legacy EVM assembly (EVMLA) translation.
|
- Removed support for legacy EVM assembly (EVMLA) translation.
|
||||||
@@ -103,6 +133,7 @@ Supported `polkadot-sdk` rev: `274a781e8ca1a9432c7ec87593bd93214abbff50`
|
|||||||
If detected, the re-entrant call flag is not set and 0 deposit limit is endowed.
|
If detected, the re-entrant call flag is not set and 0 deposit limit is endowed.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Solidity: Add the solc `--libraries` files to sources.
|
- Solidity: Add the solc `--libraries` files to sources.
|
||||||
- A data race in tests.
|
- A data race in tests.
|
||||||
- Fix `broken pipe` errors.
|
- Fix `broken pipe` errors.
|
||||||
@@ -116,9 +147,11 @@ This is a development pre-release.
|
|||||||
### Added
|
### Added
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Syscalls with more than 6 arguments now pack them into registers.
|
- Syscalls with more than 6 arguments now pack them into registers.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Remove reloading of the resolc.js file (fix issue with relative path in web worker)
|
- Remove reloading of the resolc.js file (fix issue with relative path in web worker)
|
||||||
|
|
||||||
## v0.1.0-dev.8
|
## v0.1.0-dev.8
|
||||||
@@ -126,15 +159,18 @@ This is a development pre-release.
|
|||||||
This is a development pre-release.
|
This is a development pre-release.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- The `revive-llvm-builder` crate with the `revive-llvm` helper utility for streamlined management of the LLVM framework dependency.
|
- The `revive-llvm-builder` crate with the `revive-llvm` helper utility for streamlined management of the LLVM framework dependency.
|
||||||
- Initial support for running `resolc` in the browser.
|
- Initial support for running `resolc` in the browser.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Suported contracts runtime is polkadot-sdk git version `d62a90c8c729acd98c7e9a5cab9803b8b211ffc5`.
|
- Suported contracts runtime is polkadot-sdk git version `d62a90c8c729acd98c7e9a5cab9803b8b211ffc5`.
|
||||||
- The minimum supported Rust version is `1.81.0`.
|
- The minimum supported Rust version is `1.81.0`.
|
||||||
- Error out early instead of invoking `solc` with invalid base or include path flags.
|
- Error out early instead of invoking `solc` with invalid base or include path flags.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Decouple the LLVM target dependency from the LLVM host dependency.
|
- Decouple the LLVM target dependency from the LLVM host dependency.
|
||||||
- Do not error out if no files and no errors were produced. This aligns resolc closer to solc.
|
- Do not error out if no files and no errors were produced. This aligns resolc closer to solc.
|
||||||
- Fixes input normalization in the Wasm version.
|
- Fixes input normalization in the Wasm version.
|
||||||
@@ -144,17 +180,20 @@ This is a development pre-release.
|
|||||||
This is a development pre-release.
|
This is a development pre-release.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Implement the `GASPRICE` opcode.
|
- Implement the `GASPRICE` opcode.
|
||||||
- Implement the `BASEFEE` opcode.
|
- Implement the `BASEFEE` opcode.
|
||||||
- Implement the `GASLIMIT` opcode.
|
- Implement the `GASLIMIT` opcode.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- The `GAS` opcode now returns the remaining `ref_time`.
|
- The `GAS` opcode now returns the remaining `ref_time`.
|
||||||
- Contracts can now be supplied call data input of arbitrary size.
|
- Contracts can now be supplied call data input of arbitrary size.
|
||||||
- Some syscalls now return the value in a register, slightly improving emitted contract code.
|
- Some syscalls now return the value in a register, slightly improving emitted contract code.
|
||||||
- Calls forward maximum weight limits instead of 0, anticipating a change in polkadot-sdk where weight limits of 0 no longer interprets as uncapped limit.
|
- Calls forward maximum weight limits instead of 0, anticipating a change in polkadot-sdk where weight limits of 0 no longer interprets as uncapped limit.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- A linker bug which was preventing certain contracts from linking with the PVM linker.
|
- A linker bug which was preventing certain contracts from linking with the PVM linker.
|
||||||
- JS: Fix encoding conversion from JS string (UTF-16) to UTF-8.
|
- JS: Fix encoding conversion from JS string (UTF-16) to UTF-8.
|
||||||
- The git commit hash slug is always displayed in the version string.
|
- The git commit hash slug is always displayed in the version string.
|
||||||
@@ -164,6 +203,7 @@ This is a development pre-release.
|
|||||||
This is a development pre-release.
|
This is a development pre-release.
|
||||||
|
|
||||||
# Added
|
# Added
|
||||||
|
|
||||||
- Implement the `BLOCKHASH` opcode.
|
- Implement the `BLOCKHASH` opcode.
|
||||||
- Implement delegate calls.
|
- Implement delegate calls.
|
||||||
- Implement the `GASPRICE` opcode. Currently hard-coded to return `1`.
|
- Implement the `GASPRICE` opcode. Currently hard-coded to return `1`.
|
||||||
@@ -171,21 +211,24 @@ This is a development pre-release.
|
|||||||
- Initial support for emitting debug info (opt in via the `-g` flag)
|
- Initial support for emitting debug info (opt in via the `-g` flag)
|
||||||
|
|
||||||
# Changed
|
# Changed
|
||||||
|
|
||||||
- resolc now emits 64bit PolkaVM blobs, reducing contract code size and execution time.
|
- resolc now emits 64bit PolkaVM blobs, reducing contract code size and execution time.
|
||||||
- The RISC-V bit-manipulation target feature (`zbb`) is enabled.
|
- The RISC-V bit-manipulation target feature (`zbb`) is enabled.
|
||||||
|
|
||||||
# Fixed
|
# Fixed
|
||||||
- Compilation to Wasm (for usage in node and web browsers)
|
|
||||||
|
|
||||||
|
- Compilation to Wasm (for usage in node and web browsers)
|
||||||
|
|
||||||
## v0.1.0-dev.5
|
## v0.1.0-dev.5
|
||||||
|
|
||||||
This is development pre-release.
|
This is development pre-release.
|
||||||
|
|
||||||
# Added
|
# Added
|
||||||
|
|
||||||
- Implement the `CODESIZE` and `EXTCODESIZE` opcodes.
|
- Implement the `CODESIZE` and `EXTCODESIZE` opcodes.
|
||||||
|
|
||||||
# Changed
|
# Changed
|
||||||
|
|
||||||
- Include the full revive version in the contract metadata.
|
- Include the full revive version in the contract metadata.
|
||||||
|
|
||||||
# Fixed
|
# Fixed
|
||||||
@@ -195,9 +238,11 @@ This is development pre-release.
|
|||||||
This is development pre-release.
|
This is development pre-release.
|
||||||
|
|
||||||
# Added
|
# Added
|
||||||
|
|
||||||
- Support the `ORIGIN` opcode.
|
- Support the `ORIGIN` opcode.
|
||||||
|
|
||||||
# Changed
|
# Changed
|
||||||
|
|
||||||
- Update polkavm to `v0.14.0`.
|
- Update polkavm to `v0.14.0`.
|
||||||
- Enable the `a`, `fast-unaligned-access` and `xtheadcondmov` LLVM target features, decreasing the code size for some contracts.
|
- Enable the `a`, `fast-unaligned-access` and `xtheadcondmov` LLVM target features, decreasing the code size for some contracts.
|
||||||
|
|
||||||
|
|||||||
Generated
+15
-15
@@ -4553,7 +4553,7 @@ checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lld-sys"
|
name = "lld-sys"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
"libc",
|
"libc",
|
||||||
@@ -8266,7 +8266,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-benchmarks"
|
name = "revive-benchmarks"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
"criterion",
|
"criterion",
|
||||||
@@ -8278,18 +8278,18 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-build-utils"
|
name = "revive-build-utils"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-builtins"
|
name = "revive-builtins"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"revive-build-utils",
|
"revive-build-utils",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-common"
|
name = "revive-common"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -8299,7 +8299,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-differential"
|
name = "revive-differential"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-genesis",
|
"alloy-genesis",
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
@@ -8312,7 +8312,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-integration"
|
name = "revive-integration"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
"alloy-sol-types",
|
"alloy-sol-types",
|
||||||
@@ -8328,7 +8328,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-linker"
|
name = "revive-linker"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"libc",
|
"libc",
|
||||||
@@ -8340,7 +8340,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-llvm-builder"
|
name = "revive-llvm-builder"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"assert_cmd",
|
"assert_cmd",
|
||||||
@@ -8362,7 +8362,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-llvm-context"
|
name = "revive-llvm-context"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"hex",
|
"hex",
|
||||||
@@ -8384,7 +8384,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-runner"
|
name = "revive-runner"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
@@ -8403,7 +8403,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-runtime-api"
|
name = "revive-runtime-api"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"inkwell",
|
"inkwell",
|
||||||
@@ -8413,7 +8413,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-solc-json-interface"
|
name = "revive-solc-json-interface"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"rayon",
|
"rayon",
|
||||||
@@ -8425,7 +8425,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-solidity"
|
name = "revive-solidity"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
@@ -8452,7 +8452,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-stdlib"
|
name = "revive-stdlib"
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"inkwell",
|
"inkwell",
|
||||||
"revive-build-utils",
|
"revive-build-utils",
|
||||||
|
|||||||
+15
-15
@@ -3,7 +3,7 @@ resolver = "2"
|
|||||||
members = ["crates/*"]
|
members = ["crates/*"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.1.0-dev.14"
|
version = "0.1.0-dev.15"
|
||||||
authors = [
|
authors = [
|
||||||
"Cyrill Leutwiler <cyrill@parity.io>",
|
"Cyrill Leutwiler <cyrill@parity.io>",
|
||||||
"Parity Technologies <admin@parity.io>",
|
"Parity Technologies <admin@parity.io>",
|
||||||
@@ -14,20 +14,20 @@ repository = "https://github.com/paritytech/revive"
|
|||||||
rust-version = "1.81.0"
|
rust-version = "1.81.0"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
revive-benchmarks = { version = "0.1.0-dev.14", path = "crates/benchmarks" }
|
revive-benchmarks = { version = "0.1.0-dev.15", path = "crates/benchmarks" }
|
||||||
revive-builtins = { version = "0.1.0-dev.14", path = "crates/builtins" }
|
revive-builtins = { version = "0.1.0-dev.15", path = "crates/builtins" }
|
||||||
revive-common = { version = "0.1.0-dev.14", path = "crates/common" }
|
revive-common = { version = "0.1.0-dev.15", path = "crates/common" }
|
||||||
revive-differential = { version = "0.1.0-dev.14", path = "crates/differential" }
|
revive-differential = { version = "0.1.0-dev.15", path = "crates/differential" }
|
||||||
revive-integration = { version = "0.1.0-dev.14", path = "crates/integration" }
|
revive-integration = { version = "0.1.0-dev.15", path = "crates/integration" }
|
||||||
revive-linker = { version = "0.1.0-dev.14", path = "crates/linker" }
|
revive-linker = { version = "0.1.0-dev.15", path = "crates/linker" }
|
||||||
lld-sys = { version = "0.1.0-dev.14", path = "crates/lld-sys" }
|
lld-sys = { version = "0.1.0-dev.15", path = "crates/lld-sys" }
|
||||||
revive-llvm-context = { version = "0.1.0-dev.14", path = "crates/llvm-context" }
|
revive-llvm-context = { version = "0.1.0-dev.15", path = "crates/llvm-context" }
|
||||||
revive-runtime-api = { version = "0.1.0-dev.14", path = "crates/runtime-api" }
|
revive-runtime-api = { version = "0.1.0-dev.15", path = "crates/runtime-api" }
|
||||||
revive-runner = { version = "0.1.0-dev.14", path = "crates/runner" }
|
revive-runner = { version = "0.1.0-dev.15", path = "crates/runner" }
|
||||||
revive-solc-json-interface = { version = "0.1.0-dev.14", path = "crates/solc-json-interface" }
|
revive-solc-json-interface = { version = "0.1.0-dev.15", path = "crates/solc-json-interface" }
|
||||||
revive-solidity = { version = "0.1.0-dev.14", path = "crates/solidity" }
|
revive-solidity = { version = "0.1.0-dev.15", path = "crates/solidity" }
|
||||||
revive-stdlib = { version = "0.1.0-dev.14", path = "crates/stdlib" }
|
revive-stdlib = { version = "0.1.0-dev.15", path = "crates/stdlib" }
|
||||||
revive-build-utils = { version = "0.1.0-dev.14", path = "crates/build-utils" }
|
revive-build-utils = { version = "0.1.0-dev.15", path = "crates/build-utils" }
|
||||||
|
|
||||||
hex = "0.4.3"
|
hex = "0.4.3"
|
||||||
cc = "1.2"
|
cc = "1.2"
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ To create a new pre-release:
|
|||||||
7. After the release is published, another workflow should start automatically and update json files in https://github.com/paritytech/resolc-bin. Check the changes.
|
7. After the release is published, another workflow should start automatically and update json files in https://github.com/paritytech/resolc-bin. Check the changes.
|
||||||
8. Update the [contract-docs](https://github.com/paritytech/contract-docs/) accordingly
|
8. Update the [contract-docs](https://github.com/paritytech/contract-docs/) accordingly
|
||||||
|
|
||||||
|
# `resolc` NPM package release
|
||||||
|
|
||||||
|
Will happen automatically.
|
||||||
|
|
||||||
# LLVM release
|
# LLVM release
|
||||||
|
|
||||||
To create a new LLVM release, run "Release LLVM" workflow. Use current LLVM version as parameter, e.g. `18.1.8`.
|
To create a new LLVM release, run "Release LLVM" workflow. Use current LLVM version as parameter, e.g. `18.1.8`.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ use self::version::Version;
|
|||||||
pub const FIRST_SUPPORTED_VERSION: semver::Version = semver::Version::new(0, 8, 0);
|
pub const FIRST_SUPPORTED_VERSION: semver::Version = semver::Version::new(0, 8, 0);
|
||||||
|
|
||||||
/// The last supported version of `solc`.
|
/// The last supported version of `solc`.
|
||||||
pub const LAST_SUPPORTED_VERSION: semver::Version = semver::Version::new(0, 8, 29);
|
pub const LAST_SUPPORTED_VERSION: semver::Version = semver::Version::new(0, 8, 30);
|
||||||
|
|
||||||
/// `--include-path` was introduced in solc `0.8.8` <https://github.com/ethereum/solidity/releases/tag/v0.8.8>
|
/// `--include-path` was introduced in solc `0.8.8` <https://github.com/ethereum/solidity/releases/tag/v0.8.8>
|
||||||
pub const FIRST_INCLUDE_PATH_VERSION: semver::Version = semver::Version::new(0, 8, 8);
|
pub const FIRST_INCLUDE_PATH_VERSION: semver::Version = semver::Version::new(0, 8, 8);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ const path = require("path");
|
|||||||
const { minify } = require("terser");
|
const { minify } = require("terser");
|
||||||
|
|
||||||
const SOLJSON_URI =
|
const SOLJSON_URI =
|
||||||
"https://binaries.soliditylang.org/wasm/soljson-v0.8.29+commit.ab55807c.js";
|
"https://binaries.soliditylang.org/wasm/soljson-v0.8.30+commit.73712a01.js";
|
||||||
const RESOLC_WASM_URI =
|
const RESOLC_WASM_URI =
|
||||||
process.env.RELEASE_RESOLC_WASM_URI || "http://127.0.0.1:8080/resolc.wasm";
|
process.env.RELEASE_RESOLC_WASM_URI || "http://127.0.0.1:8080/resolc.wasm";
|
||||||
const RESOLC_WASM_TARGET_DIR = path.join(
|
const RESOLC_WASM_TARGET_DIR = path.join(
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "revive",
|
"name": "revive",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"solc": "^0.8.29"
|
"solc": ">=0.8.0 <=0.8.30"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"example:web": "http-server ./examples/web/",
|
"example:web": "http-server ./examples/web/",
|
||||||
|
|||||||
@@ -32,6 +32,6 @@
|
|||||||
"@types/node": "^22.9.0",
|
"@types/node": "^22.9.0",
|
||||||
"commander": "^13.1.0",
|
"commander": "^13.1.0",
|
||||||
"package-json": "^10.0.1",
|
"package-json": "^10.0.1",
|
||||||
"solc": "^0.8.29"
|
"solc": ">=0.8.0 <=0.8.30"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-17
@@ -93,26 +93,13 @@ export function version(): string {
|
|||||||
|
|
||||||
export async function compile(
|
export async function compile(
|
||||||
sources: SolcInput,
|
sources: SolcInput,
|
||||||
option: {
|
option: { bin?: string } = {}
|
||||||
optimizer?: Record<string, unknown>
|
|
||||||
bin?: string
|
|
||||||
} = {}
|
|
||||||
): Promise<SolcOutput> {
|
): Promise<SolcOutput> {
|
||||||
const {
|
|
||||||
optimizer = {
|
|
||||||
mode: 'z',
|
|
||||||
fallback_to_optimizing_for_size: true,
|
|
||||||
enabled: true,
|
|
||||||
runs: 200,
|
|
||||||
},
|
|
||||||
bin,
|
|
||||||
} = option
|
|
||||||
|
|
||||||
const input = JSON.stringify({
|
const input = JSON.stringify({
|
||||||
language: 'Solidity',
|
language: 'Solidity',
|
||||||
sources: resolveInputs(sources),
|
sources: resolveInputs(sources),
|
||||||
settings: {
|
settings: {
|
||||||
optimizer,
|
optimizer: { enabled: true, runs: 200 },
|
||||||
outputSelection: {
|
outputSelection: {
|
||||||
'*': {
|
'*': {
|
||||||
'*': ['abi'],
|
'*': ['abi'],
|
||||||
@@ -121,8 +108,8 @@ export async function compile(
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
if (bin) {
|
if (option.bin) {
|
||||||
return compileWithBin(input, bin)
|
return compileWithBin(input, option.bin)
|
||||||
}
|
}
|
||||||
|
|
||||||
return resolc(input)
|
return resolc(input)
|
||||||
|
|||||||
Generated
+3
-3
@@ -31,7 +31,7 @@
|
|||||||
"js/emscripten": {
|
"js/emscripten": {
|
||||||
"name": "revive",
|
"name": "revive",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"solc": "^0.8.29"
|
"solc": ">=0.8.0 <=0.8.30"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "^1.49.1",
|
"@playwright/test": "^1.49.1",
|
||||||
@@ -44,13 +44,13 @@
|
|||||||
},
|
},
|
||||||
"js/resolc": {
|
"js/resolc": {
|
||||||
"name": "@parity/resolc",
|
"name": "@parity/resolc",
|
||||||
"version": "1.0.0",
|
"version": "0.0.0-updated-via-gh-releases",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "^22.9.0",
|
"@types/node": "^22.9.0",
|
||||||
"commander": "^13.1.0",
|
"commander": "^13.1.0",
|
||||||
"package-json": "^10.0.1",
|
"package-json": "^10.0.1",
|
||||||
"solc": "^0.8.29"
|
"solc": ">=0.8.0 <=0.8.30"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"resolc": "dist/bin.js"
|
"resolc": "dist/bin.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user