From 459a786299cf0548b9644f8a7b5ffb9afbb2484d Mon Sep 17 00:00:00 2001 From: PG Herveou Date: Thu, 8 May 2025 14:09:55 +0200 Subject: [PATCH] v0.1.0-dev.15 release (#311) Co-authored-by: xermicus --- CHANGELOG.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- Cargo.lock | 30 +++++++++++++++--------------- Cargo.toml | 30 +++++++++++++++--------------- 3 files changed, 76 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 935a739..b491858 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,10 +16,27 @@ Supported `polkadot-sdk` rev:`c29e72a8628835e34deb6aa7db9a78a2e4eabcee` - Support for solc v0.8.30 ### 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. + +### Changed + - By default, heavy size optimizations are applied. ### 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 @@ -28,13 +45,16 @@ This is a development pre-release. Supported `polkadot-sdk` rev:`c29e72a8628835e34deb6aa7db9a78a2e4eabcee` ### 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. ### Changed + - The default PVM stack memory size was increased from 16kb to 32kb. ### Fixed + - Constructors avoid storing zero sized immutable data on exit. ## v0.1.0-dev.13 @@ -44,16 +64,19 @@ This is a development pre-release. Supported `polkadot-sdk` rev:`c29e72a8628835e34deb6aa7db9a78a2e4eabcee` ### Added + - 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. - `--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. ### 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. - Running `resolc` using webkit is no longer supported. ### Fixed + - A missing byte swap for the create2 salt value. ## v0.1.0-dev.12 @@ -63,10 +86,12 @@ This is a development pre-release. Supported `polkadot-sdk` rev: `21f6f0705e53c15aa2b8a5706b208200447774a9` ### Added + - Per file output selection for `--standard-json` mode. - The `ir` output selection option for `--standard-json` mode. ### Changed + - Improved code size: Large contracts compile to smaller code blobs when enabling aggressive size optimizations (`-Oz`). ### Fixed @@ -82,6 +107,7 @@ Supported `polkadot-sdk` rev: `274a781e8ca1a9432c7ec87593bd93214abbff50` ### Changed ### Fixed + - A bug causing incorrect loads from the emulated EVM linear memory. - A missing integer truncate after switching to 64bit. @@ -92,10 +118,12 @@ This is a development pre-release. Supported `polkadot-sdk` rev: `274a781e8ca1a9432c7ec87593bd93214abbff50` ### Added + - Support for the `coinbase` opcode. - The resolc web JS version. ### Changed + - Missing the `--overwrite` flag emits an error instead of a warning. - The `resolc` executable prints the help by default. - Removed support for legacy EVM assembly (EVMLA) translation. @@ -105,6 +133,7 @@ Supported `polkadot-sdk` rev: `274a781e8ca1a9432c7ec87593bd93214abbff50` If detected, the re-entrant call flag is not set and 0 deposit limit is endowed. ### Fixed + - Solidity: Add the solc `--libraries` files to sources. - A data race in tests. - Fix `broken pipe` errors. @@ -118,9 +147,11 @@ This is a development pre-release. ### Added ### Changed + - Syscalls with more than 6 arguments now pack them into registers. ### Fixed + - Remove reloading of the resolc.js file (fix issue with relative path in web worker) ## v0.1.0-dev.8 @@ -128,15 +159,18 @@ This is a development pre-release. This is a development pre-release. ### Added + - 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. ### Changed + - Suported contracts runtime is polkadot-sdk git version `d62a90c8c729acd98c7e9a5cab9803b8b211ffc5`. - The minimum supported Rust version is `1.81.0`. - Error out early instead of invoking `solc` with invalid base or include path flags. ### Fixed + - 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. - Fixes input normalization in the Wasm version. @@ -146,17 +180,20 @@ This is a development pre-release. This is a development pre-release. ### Added + - Implement the `GASPRICE` opcode. - Implement the `BASEFEE` opcode. - Implement the `GASLIMIT` opcode. ### Changed + - The `GAS` opcode now returns the remaining `ref_time`. - 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. ### Fixed + - 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. - The git commit hash slug is always displayed in the version string. @@ -166,6 +203,7 @@ This is a development pre-release. This is a development pre-release. # Added + - Implement the `BLOCKHASH` opcode. - Implement delegate calls. - Implement the `GASPRICE` opcode. Currently hard-coded to return `1`. @@ -173,21 +211,24 @@ This is a development pre-release. - Initial support for emitting debug info (opt in via the `-g` flag) # Changed + - resolc now emits 64bit PolkaVM blobs, reducing contract code size and execution time. - The RISC-V bit-manipulation target feature (`zbb`) is enabled. # 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 This is development pre-release. # Added + - Implement the `CODESIZE` and `EXTCODESIZE` opcodes. # Changed + - Include the full revive version in the contract metadata. # Fixed @@ -197,9 +238,11 @@ This is development pre-release. This is development pre-release. # Added + - Support the `ORIGIN` opcode. # Changed + - Update polkavm to `v0.14.0`. - Enable the `a`, `fast-unaligned-access` and `xtheadcondmov` LLVM target features, decreasing the code size for some contracts. diff --git a/Cargo.lock b/Cargo.lock index d17d808..71e7887 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4553,7 +4553,7 @@ checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" [[package]] name = "lld-sys" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "cc", "libc", @@ -8266,7 +8266,7 @@ dependencies = [ [[package]] name = "revive-benchmarks" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "alloy-primitives", "criterion", @@ -8278,18 +8278,18 @@ dependencies = [ [[package]] name = "revive-build-utils" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" [[package]] name = "revive-builtins" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "revive-build-utils", ] [[package]] name = "revive-common" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "anyhow", "serde", @@ -8299,7 +8299,7 @@ dependencies = [ [[package]] name = "revive-differential" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "alloy-genesis", "alloy-primitives", @@ -8312,7 +8312,7 @@ dependencies = [ [[package]] name = "revive-integration" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "alloy-primitives", "alloy-sol-types", @@ -8328,7 +8328,7 @@ dependencies = [ [[package]] name = "revive-linker" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "anyhow", "libc", @@ -8340,7 +8340,7 @@ dependencies = [ [[package]] name = "revive-llvm-builder" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "anyhow", "assert_cmd", @@ -8362,7 +8362,7 @@ dependencies = [ [[package]] name = "revive-llvm-context" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "anyhow", "hex", @@ -8384,7 +8384,7 @@ dependencies = [ [[package]] name = "revive-runner" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "alloy-primitives", "anyhow", @@ -8403,7 +8403,7 @@ dependencies = [ [[package]] name = "revive-runtime-api" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "anyhow", "inkwell", @@ -8413,7 +8413,7 @@ dependencies = [ [[package]] name = "revive-solc-json-interface" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "anyhow", "rayon", @@ -8425,7 +8425,7 @@ dependencies = [ [[package]] name = "revive-solidity" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "anyhow", "clap", @@ -8452,7 +8452,7 @@ dependencies = [ [[package]] name = "revive-stdlib" -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" dependencies = [ "inkwell", "revive-build-utils", diff --git a/Cargo.toml b/Cargo.toml index 6820b35..c1b0eec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = ["crates/*"] [workspace.package] -version = "0.1.0-dev.14" +version = "0.1.0-dev.15" authors = [ "Cyrill Leutwiler ", "Parity Technologies ", @@ -14,20 +14,20 @@ repository = "https://github.com/paritytech/revive" rust-version = "1.81.0" [workspace.dependencies] -revive-benchmarks = { version = "0.1.0-dev.14", path = "crates/benchmarks" } -revive-builtins = { version = "0.1.0-dev.14", path = "crates/builtins" } -revive-common = { version = "0.1.0-dev.14", path = "crates/common" } -revive-differential = { version = "0.1.0-dev.14", path = "crates/differential" } -revive-integration = { version = "0.1.0-dev.14", path = "crates/integration" } -revive-linker = { version = "0.1.0-dev.14", path = "crates/linker" } -lld-sys = { version = "0.1.0-dev.14", path = "crates/lld-sys" } -revive-llvm-context = { version = "0.1.0-dev.14", path = "crates/llvm-context" } -revive-runtime-api = { version = "0.1.0-dev.14", path = "crates/runtime-api" } -revive-runner = { version = "0.1.0-dev.14", path = "crates/runner" } -revive-solc-json-interface = { version = "0.1.0-dev.14", path = "crates/solc-json-interface" } -revive-solidity = { version = "0.1.0-dev.14", path = "crates/solidity" } -revive-stdlib = { version = "0.1.0-dev.14", path = "crates/stdlib" } -revive-build-utils = { version = "0.1.0-dev.14", path = "crates/build-utils" } +revive-benchmarks = { version = "0.1.0-dev.15", path = "crates/benchmarks" } +revive-builtins = { version = "0.1.0-dev.15", path = "crates/builtins" } +revive-common = { version = "0.1.0-dev.15", path = "crates/common" } +revive-differential = { version = "0.1.0-dev.15", path = "crates/differential" } +revive-integration = { version = "0.1.0-dev.15", path = "crates/integration" } +revive-linker = { version = "0.1.0-dev.15", path = "crates/linker" } +lld-sys = { version = "0.1.0-dev.15", path = "crates/lld-sys" } +revive-llvm-context = { version = "0.1.0-dev.15", path = "crates/llvm-context" } +revive-runtime-api = { version = "0.1.0-dev.15", path = "crates/runtime-api" } +revive-runner = { version = "0.1.0-dev.15", path = "crates/runner" } +revive-solc-json-interface = { version = "0.1.0-dev.15", path = "crates/solc-json-interface" } +revive-solidity = { version = "0.1.0-dev.15", path = "crates/solidity" } +revive-stdlib = { version = "0.1.0-dev.15", path = "crates/stdlib" } +revive-build-utils = { version = "0.1.0-dev.15", path = "crates/build-utils" } hex = "0.4.3" cc = "1.2"