Skip to content

v1.0.0

Choose a tag to compare

@paritytech-revive-release paritytech-revive-release released this 29 Jan 18:45
b080c1d

Changelog

Supported polkadot-sdk rev: unstable2507

Changed

  • Removed the revive-explorer utility.

Fixed

  • OOB access in calldataload and calldatacopy should always produce zero values instead of consuming all gas.
  • The superfluous byte swap in linkersymbol.
  • Compiling with --standard-json now compiles to PolkaVM bytecode only for the contracts explicitly requested in the outputSelection, significantly improving compilation time when none or a subset of files requests bytecode. PR#461
  • Compiling with --standard-json now outputs only the explicitly requested output (e.g. evm.assembly, evm.bytecode, ast, etc.). PR#461
// Example:
{
  "settings": {
    // ...
    "outputSelection": {
      "path/to/my/file1.sol": {
        // Contracts in this file will generate bytecode.
        // Only these fields of the JSON output selection will be in the `contracts` output.
        "*": ["abi", "evm.methodIdentifiers", "metadata", "evm.bytecode"],
        // Only this field of the JSON output selection will be in the `sources` output.
        "": ["ast"]
      },
      "path/to/my/file2.sol": {
        // No contracts in this file will generate bytecode.
        "*": ["abi", "evm.methodIdentifiers", "metadata"],
        // No `ast` will be in the `sources` output (only the automatically added `id`,
        // similar to solc as this is not a configurable output selection).
        "": []
      },
    }
  }
}

Note for macOS Users

The macOS binary is unsigned and it needs to be made runnable using xattr -c resolc-universal-apple-darwin.