mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-15 12:41:08 +00:00
resolc-0.1.0-dev.7 (#143)
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
@@ -2,6 +2,26 @@
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## v0.1.0-dev.7
|
||||||
|
|
||||||
|
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.
|
||||||
|
- 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.
|
||||||
|
|
||||||
## v0.1.0-dev.6
|
## v0.1.0-dev.6
|
||||||
|
|
||||||
This is a development pre-release.
|
This is a development pre-release.
|
||||||
|
|||||||
Generated
+24
-24
@@ -1,6 +1,6 @@
|
|||||||
# This file is automatically @generated by Cargo.
|
# This file is automatically @generated by Cargo.
|
||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
version = 3
|
version = 4
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "Inflector"
|
name = "Inflector"
|
||||||
@@ -2993,9 +2993,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "foldhash"
|
name = "foldhash"
|
||||||
version = "0.1.3"
|
version = "0.1.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2"
|
checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "form_urlencoded"
|
name = "form_urlencoded"
|
||||||
@@ -4258,7 +4258,7 @@ checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lld-sys"
|
name = "lld-sys"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
"libc",
|
"libc",
|
||||||
@@ -7677,7 +7677,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-benchmarks"
|
name = "revive-benchmarks"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
"criterion",
|
"criterion",
|
||||||
@@ -7689,11 +7689,11 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-builtins"
|
name = "revive-builtins"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-common"
|
name = "revive-common"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -7703,7 +7703,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-differential"
|
name = "revive-differential"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-genesis",
|
"alloy-genesis",
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
@@ -7716,7 +7716,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-integration"
|
name = "revive-integration"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
"alloy-sol-types",
|
"alloy-sol-types",
|
||||||
@@ -7737,7 +7737,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-linker"
|
name = "revive-linker"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"inkwell",
|
"inkwell",
|
||||||
@@ -7751,7 +7751,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-llvm-context"
|
name = "revive-llvm-context"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"hex",
|
"hex",
|
||||||
@@ -7776,7 +7776,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-runner"
|
name = "revive-runner"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
"hex",
|
"hex",
|
||||||
@@ -7791,7 +7791,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-runtime-api"
|
name = "revive-runtime-api"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"inkwell",
|
"inkwell",
|
||||||
@@ -7800,7 +7800,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-solidity"
|
name = "revive-solidity"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
@@ -7829,7 +7829,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "revive-stdlib"
|
name = "revive-stdlib"
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"inkwell",
|
"inkwell",
|
||||||
]
|
]
|
||||||
@@ -9238,7 +9238,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-crypto-ec-utils"
|
name = "sp-crypto-ec-utils"
|
||||||
version = "0.10.0"
|
version = "0.10.0"
|
||||||
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
|
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ark-bls12-377",
|
"ark-bls12-377",
|
||||||
"ark-bls12-377-ext",
|
"ark-bls12-377-ext",
|
||||||
@@ -9305,7 +9305,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-debug-derive"
|
name = "sp-debug-derive"
|
||||||
version = "14.0.0"
|
version = "14.0.0"
|
||||||
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
|
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@@ -9325,7 +9325,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-externalities"
|
name = "sp-externalities"
|
||||||
version = "0.25.0"
|
version = "0.25.0"
|
||||||
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
|
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"environmental",
|
"environmental",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
@@ -9534,7 +9534,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-runtime-interface"
|
name = "sp-runtime-interface"
|
||||||
version = "24.0.0"
|
version = "24.0.0"
|
||||||
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
|
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"impl-trait-for-tuples",
|
"impl-trait-for-tuples",
|
||||||
@@ -9566,7 +9566,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-runtime-interface-proc-macro"
|
name = "sp-runtime-interface-proc-macro"
|
||||||
version = "17.0.0"
|
version = "17.0.0"
|
||||||
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
|
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"Inflector",
|
"Inflector",
|
||||||
"expander",
|
"expander",
|
||||||
@@ -9655,7 +9655,7 @@ source = "git+https://github.com/paritytech/polkadot-sdk?rev=243b751abbb94369bbd
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-std"
|
name = "sp-std"
|
||||||
version = "14.0.0"
|
version = "14.0.0"
|
||||||
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
|
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-storage"
|
name = "sp-storage"
|
||||||
@@ -9672,7 +9672,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-storage"
|
name = "sp-storage"
|
||||||
version = "19.0.0"
|
version = "19.0.0"
|
||||||
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
|
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"impl-serde",
|
"impl-serde",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
@@ -9707,7 +9707,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-tracing"
|
name = "sp-tracing"
|
||||||
version = "16.0.0"
|
version = "16.0.0"
|
||||||
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
|
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"tracing",
|
"tracing",
|
||||||
@@ -9804,7 +9804,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "sp-wasm-interface"
|
name = "sp-wasm-interface"
|
||||||
version = "20.0.0"
|
version = "20.0.0"
|
||||||
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
|
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"impl-trait-for-tuples",
|
"impl-trait-for-tuples",
|
||||||
|
|||||||
+13
-13
@@ -3,7 +3,7 @@ resolver = "2"
|
|||||||
members = ["crates/*"]
|
members = ["crates/*"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.1.0-dev.6"
|
version = "0.1.0-dev.7"
|
||||||
authors = [
|
authors = [
|
||||||
"Cyrill Leutwiler <cyrill@parity.io>",
|
"Cyrill Leutwiler <cyrill@parity.io>",
|
||||||
"Parity Technologies <admin@parity.io>",
|
"Parity Technologies <admin@parity.io>",
|
||||||
@@ -14,18 +14,18 @@ repository = "https://github.com/paritytech/revive"
|
|||||||
rust-version = "1.80.0"
|
rust-version = "1.80.0"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
revive-benchmarks = { version = "0.1.0-dev.6", path = "crates/benchmarks" }
|
revive-benchmarks = { version = "0.1.0-dev.7", path = "crates/benchmarks" }
|
||||||
revive-builtins = { version = "0.1.0-dev.6", path = "crates/builtins" }
|
revive-builtins = { version = "0.1.0-dev.7", path = "crates/builtins" }
|
||||||
revive-common = { version = "0.1.0-dev.6", path = "crates/common" }
|
revive-common = { version = "0.1.0-dev.7", path = "crates/common" }
|
||||||
revive-differential = { version = "0.1.0-dev.6", path = "crates/differential" }
|
revive-differential = { version = "0.1.0-dev.7", path = "crates/differential" }
|
||||||
revive-integration = { version = "0.1.0-dev.6", path = "crates/integration" }
|
revive-integration = { version = "0.1.0-dev.7", path = "crates/integration" }
|
||||||
revive-linker = { version = "0.1.0-dev.6", path = "crates/linker" }
|
revive-linker = { version = "0.1.0-dev.7", path = "crates/linker" }
|
||||||
lld-sys = { version = "0.1.0-dev.6", path = "crates/lld-sys" }
|
lld-sys = { version = "0.1.0-dev.7", path = "crates/lld-sys" }
|
||||||
revive-llvm-context = { version = "0.1.0-dev.6", path = "crates/llvm-context" }
|
revive-llvm-context = { version = "0.1.0-dev.7", path = "crates/llvm-context" }
|
||||||
revive-runtime-api = { version = "0.1.0-dev.6", path = "crates/runtime-api" }
|
revive-runtime-api = { version = "0.1.0-dev.7", path = "crates/runtime-api" }
|
||||||
revive-runner = { version = "0.1.0-dev.6", path = "crates/runner" }
|
revive-runner = { version = "0.1.0-dev.7", path = "crates/runner" }
|
||||||
revive-solidity = { version = "0.1.0-dev.6", path = "crates/solidity" }
|
revive-solidity = { version = "0.1.0-dev.7", path = "crates/solidity" }
|
||||||
revive-stdlib = { version = "0.1.0-dev.6", path = "crates/stdlib" }
|
revive-stdlib = { version = "0.1.0-dev.7", path = "crates/stdlib" }
|
||||||
|
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
petgraph = "0.6"
|
petgraph = "0.6"
|
||||||
|
|||||||
@@ -17,6 +17,14 @@ Discussion around the development is hosted on the [Polkadot Forum](https://foru
|
|||||||
|
|
||||||
`resolc` depends on the [solc](https://github.com/ethereum/solidity) binary installed on your system.
|
`resolc` depends on the [solc](https://github.com/ethereum/solidity) binary installed on your system.
|
||||||
|
|
||||||
|
Building from source requires a compatible LLVM build.
|
||||||
|
|
||||||
|
### LLVM
|
||||||
|
|
||||||
|
`revive` requires a build of LLVM 18.1.4 or later with the RISC-V _embedded_ target, including `compiler-rt`. Use the provided [build-llvm.sh](build-llvm.sh) build script to compile a compatible LLVM build locally in `$PWD/llvm18.0` (don't forget to add that to `$PATH` afterwards).
|
||||||
|
|
||||||
|
### The `resolc` Solidity frontend
|
||||||
|
|
||||||
To install the `resolc` Solidity frontend executable:
|
To install the `resolc` Solidity frontend executable:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -25,11 +33,6 @@ export PATH=${PWD}/llvm18.0/bin:$PATH
|
|||||||
make install-bin
|
make install-bin
|
||||||
resolc --version
|
resolc --version
|
||||||
```
|
```
|
||||||
|
|
||||||
### LLVM
|
|
||||||
|
|
||||||
`revive` requires a build of LLVM 18.1.4 or later including `compiler-rt`. Use the provided [build-llvm.sh](build-llvm.sh) build script to compile a compatible LLVM build locally in `$PWD/llvm18.0` (don't forget to add that to `$PATH` afterwards).
|
|
||||||
|
|
||||||
### Cross-compilation to WASM
|
### Cross-compilation to WASM
|
||||||
|
|
||||||
Cross-compiles the Revive compiler to WASM for running it in a Node.js or browser environment.
|
Cross-compiles the Revive compiler to WASM for running it in a Node.js or browser environment.
|
||||||
|
|||||||
Reference in New Issue
Block a user