mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-20 18:56:17 +00:00
## v1.3.0 Supported `polkadot-sdk` rev: `2604.2.0` ### Added - The newyork IR code size optimization pipeline, selectable via the `--newyork` CLI flag or the `settings.polkavm.newyork` standard JSON input field. This can reduce code size by up to 50%. Considered a new and experimental feature, switched off by default. [#519](https://github.com/paritytech/revive/pull/519) ### Changed - The latest supported `polkadot-sdk` version is now `2604.2.0` Signed-off-by: xermicus <cyrill@parity.io>
Usage from Node.js
import { compile } from "@parity/resolc";
const sources = {
["contracts/1_Storage.sol"]: {
content: readFileSync("fixtures/storage.sol", "utf8"),
}
const out = await compile(sources);
Usage from shell
npx @parity/resolc@latest --bin contracts/1_Storage.sol