resolc-0.1.0-dev.7 (#143)

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
Cyrill Leutwiler
2024-12-20 14:33:08 +01:00
committed by GitHub
parent d8752ec6b5
commit 952c5cc894
4 changed files with 65 additions and 42 deletions
+20
View File
@@ -2,6 +2,26 @@
## 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
This is a development pre-release.
Generated
+24 -24
View File
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4
[[package]]
name = "Inflector"
@@ -2993,9 +2993,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "foldhash"
version = "0.1.3"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2"
checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f"
[[package]]
name = "form_urlencoded"
@@ -4258,7 +4258,7 @@ checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104"
[[package]]
name = "lld-sys"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"cc",
"libc",
@@ -7677,7 +7677,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
[[package]]
name = "revive-benchmarks"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"alloy-primitives",
"criterion",
@@ -7689,11 +7689,11 @@ dependencies = [
[[package]]
name = "revive-builtins"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
[[package]]
name = "revive-common"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"anyhow",
"serde",
@@ -7703,7 +7703,7 @@ dependencies = [
[[package]]
name = "revive-differential"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"alloy-genesis",
"alloy-primitives",
@@ -7716,7 +7716,7 @@ dependencies = [
[[package]]
name = "revive-integration"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"alloy-primitives",
"alloy-sol-types",
@@ -7737,7 +7737,7 @@ dependencies = [
[[package]]
name = "revive-linker"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"anyhow",
"inkwell",
@@ -7751,7 +7751,7 @@ dependencies = [
[[package]]
name = "revive-llvm-context"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"anyhow",
"hex",
@@ -7776,7 +7776,7 @@ dependencies = [
[[package]]
name = "revive-runner"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"alloy-primitives",
"hex",
@@ -7791,7 +7791,7 @@ dependencies = [
[[package]]
name = "revive-runtime-api"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"anyhow",
"inkwell",
@@ -7800,7 +7800,7 @@ dependencies = [
[[package]]
name = "revive-solidity"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"anyhow",
"clap",
@@ -7829,7 +7829,7 @@ dependencies = [
[[package]]
name = "revive-stdlib"
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
dependencies = [
"inkwell",
]
@@ -9238,7 +9238,7 @@ dependencies = [
[[package]]
name = "sp-crypto-ec-utils"
version = "0.10.0"
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
dependencies = [
"ark-bls12-377",
"ark-bls12-377-ext",
@@ -9305,7 +9305,7 @@ dependencies = [
[[package]]
name = "sp-debug-derive"
version = "14.0.0"
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
dependencies = [
"proc-macro2",
"quote",
@@ -9325,7 +9325,7 @@ dependencies = [
[[package]]
name = "sp-externalities"
version = "0.25.0"
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
dependencies = [
"environmental",
"parity-scale-codec",
@@ -9534,7 +9534,7 @@ dependencies = [
[[package]]
name = "sp-runtime-interface"
version = "24.0.0"
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
dependencies = [
"bytes",
"impl-trait-for-tuples",
@@ -9566,7 +9566,7 @@ dependencies = [
[[package]]
name = "sp-runtime-interface-proc-macro"
version = "17.0.0"
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
dependencies = [
"Inflector",
"expander",
@@ -9655,7 +9655,7 @@ source = "git+https://github.com/paritytech/polkadot-sdk?rev=243b751abbb94369bbd
[[package]]
name = "sp-std"
version = "14.0.0"
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
[[package]]
name = "sp-storage"
@@ -9672,7 +9672,7 @@ dependencies = [
[[package]]
name = "sp-storage"
version = "19.0.0"
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
dependencies = [
"impl-serde",
"parity-scale-codec",
@@ -9707,7 +9707,7 @@ dependencies = [
[[package]]
name = "sp-tracing"
version = "16.0.0"
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
dependencies = [
"parity-scale-codec",
"tracing",
@@ -9804,7 +9804,7 @@ dependencies = [
[[package]]
name = "sp-wasm-interface"
version = "20.0.0"
source = "git+https://github.com/paritytech/polkadot-sdk#243b751abbb94369bbd92c83d8ab159ddfc3c556"
source = "git+https://github.com/paritytech/polkadot-sdk#4e805ca05067f6ed970f33f9be51483185b0cc0b"
dependencies = [
"anyhow",
"impl-trait-for-tuples",
+13 -13
View File
@@ -3,7 +3,7 @@ resolver = "2"
members = ["crates/*"]
[workspace.package]
version = "0.1.0-dev.6"
version = "0.1.0-dev.7"
authors = [
"Cyrill Leutwiler <cyrill@parity.io>",
"Parity Technologies <admin@parity.io>",
@@ -14,18 +14,18 @@ repository = "https://github.com/paritytech/revive"
rust-version = "1.80.0"
[workspace.dependencies]
revive-benchmarks = { version = "0.1.0-dev.6", path = "crates/benchmarks" }
revive-builtins = { version = "0.1.0-dev.6", path = "crates/builtins" }
revive-common = { version = "0.1.0-dev.6", path = "crates/common" }
revive-differential = { version = "0.1.0-dev.6", path = "crates/differential" }
revive-integration = { version = "0.1.0-dev.6", path = "crates/integration" }
revive-linker = { version = "0.1.0-dev.6", path = "crates/linker" }
lld-sys = { version = "0.1.0-dev.6", path = "crates/lld-sys" }
revive-llvm-context = { version = "0.1.0-dev.6", path = "crates/llvm-context" }
revive-runtime-api = { version = "0.1.0-dev.6", path = "crates/runtime-api" }
revive-runner = { version = "0.1.0-dev.6", path = "crates/runner" }
revive-solidity = { version = "0.1.0-dev.6", path = "crates/solidity" }
revive-stdlib = { version = "0.1.0-dev.6", path = "crates/stdlib" }
revive-benchmarks = { version = "0.1.0-dev.7", path = "crates/benchmarks" }
revive-builtins = { version = "0.1.0-dev.7", path = "crates/builtins" }
revive-common = { version = "0.1.0-dev.7", path = "crates/common" }
revive-differential = { version = "0.1.0-dev.7", path = "crates/differential" }
revive-integration = { version = "0.1.0-dev.7", path = "crates/integration" }
revive-linker = { version = "0.1.0-dev.7", path = "crates/linker" }
lld-sys = { version = "0.1.0-dev.7", path = "crates/lld-sys" }
revive-llvm-context = { version = "0.1.0-dev.7", path = "crates/llvm-context" }
revive-runtime-api = { version = "0.1.0-dev.7", path = "crates/runtime-api" }
revive-runner = { version = "0.1.0-dev.7", path = "crates/runner" }
revive-solidity = { version = "0.1.0-dev.7", path = "crates/solidity" }
revive-stdlib = { version = "0.1.0-dev.7", path = "crates/stdlib" }
hex = "0.4"
petgraph = "0.6"
+8 -5
View File
@@ -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.
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:
```bash
@@ -25,11 +33,6 @@ export PATH=${PWD}/llvm18.0/bin:$PATH
make install-bin
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-compiles the Revive compiler to WASM for running it in a Node.js or browser environment.