Skip to content

Commit

Permalink
pallet_revive: Bump PolkaVM (#7203)
Browse files Browse the repository at this point in the history
Update to PolkaVM `0.19`. This version renumbers the opcodes in order to
be in-line with the grey paper. Hopefully, for the last time. This means
that it breaks existing contracts.

---------

Signed-off-by: xermicus <[email protected]>
Co-authored-by: command-bot <>
Co-authored-by: xermicus <[email protected]>
  • Loading branch information
athei and xermicus authored Jan 17, 2025
1 parent 4b2febe commit d62a90c
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 7 deletions.
91 changes: 88 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions prdoc/pr_7203.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
title: 'pallet_revive: Bump PolkaVM'
doc:
- audience: Runtime Dev
description: Update to PolkaVM `0.19`. This version renumbers the opcodes in order
to be in-line with the grey paper. Hopefully, for the last time. This means that
it breaks existing contracts.
crates:
- name: pallet-revive
bump: patch
- name: pallet-revive-fixtures
bump: patch
- name: pallet-revive-uapi
bump: patch
2 changes: 1 addition & 1 deletion substrate/frame/revive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ hex = { workspace = true }
impl-trait-for-tuples = { workspace = true }
log = { workspace = true }
paste = { workspace = true }
polkavm = { version = "0.18.0", default-features = false }
polkavm = { version = "0.19.0", default-features = false }
rlp = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
serde = { features = [
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/revive/fixtures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sp-io = { workspace = true, default-features = true, optional = true }

[build-dependencies]
anyhow = { workspace = true, default-features = true }
polkavm-linker = { version = "0.18.0" }
polkavm-linker = { version = "0.19.0" }
toml = { workspace = true }

[features]
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/revive/fixtures/build/_Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ edition = "2021"
[dependencies]
uapi = { package = 'pallet-revive-uapi', path = "", features = ["unstable-hostfn"], default-features = false }
common = { package = 'pallet-revive-fixtures-common', path = "" }
polkavm-derive = { version = "0.18.0" }
polkavm-derive = { version = "0.19.0" }

[profile.release]
opt-level = 3
Expand Down
Binary file modified substrate/frame/revive/rpc/examples/js/pvm/Errors.polkavm
Binary file not shown.
Binary file modified substrate/frame/revive/rpc/examples/js/pvm/EventExample.polkavm
Binary file not shown.
Binary file modified substrate/frame/revive/rpc/examples/js/pvm/Flipper.polkavm
Binary file not shown.
Binary file modified substrate/frame/revive/rpc/examples/js/pvm/FlipperCaller.polkavm
Binary file not shown.
Binary file modified substrate/frame/revive/rpc/examples/js/pvm/PiggyBank.polkavm
Binary file not shown.
2 changes: 1 addition & 1 deletion substrate/frame/revive/uapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ paste = { workspace = true }
scale-info = { features = ["derive"], optional = true, workspace = true }

[target.'cfg(target_arch = "riscv64")'.dependencies]
polkavm-derive = { version = "0.18.0" }
polkavm-derive = { version = "0.19.0" }

[package.metadata.docs.rs]
features = ["unstable-hostfn"]
Expand Down

0 comments on commit d62a90c

Please sign in to comment.