Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit 8f10f0a

Browse files
boozookborispovod
andauthored
Upgrade to VM 1.3 (#89)
* update dove & stdlib version * fix move syntax * update VM dep version * add missed error statuses * update stdlib * fix tests Co-authored-by: borispovod <boris@wings.ai>
1 parent 0e221ce commit 8f10f0a

File tree

29 files changed

+190
-476
lines changed

29 files changed

+190
-476
lines changed

.build/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ RUN rustup update nightly && \
1717
SHELL ["/bin/bash", "-c"]
1818

1919
WORKDIR /opt/build
20-
ARG DOVE_RELEASE=1.2.8
21-
ARG DOVE_VERSION=1.2.8
20+
ARG DOVE_RELEASE=1.3.0
21+
ARG DOVE_VERSION=1.3.0
2222
# add dove
2323
RUN curl -sL --fail -o "/usr/local/bin/dove" "https://github.com/pontem-network/move-tools/releases/download/${DOVE_RELEASE}/dove-${DOVE_VERSION}-linux-x86_64" && \
2424
chmod +x /usr/local/bin/dove && \

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
cfg:
2828
- os: self-hosted
2929
grcov: grcov-linux-x86_64.tar.bz2
30-
dove: 1.2.8
30+
dove: 1.3.0
3131

3232
env:
3333
SKIP_WASM_BUILD: 1

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
matrix:
2727
cfg:
2828
- os: macos-latest
29-
dove: 1.2.8
29+
dove: 1.3.0
3030
- os: ubuntu-latest
31-
dove: 1.2.8
31+
dove: 1.3.0
3232
steps:
3333
- name: Checkout repository
3434
uses: actions/checkout@v2
@@ -84,7 +84,7 @@ jobs:
8484
os:
8585
- ubuntu-latest
8686
dove:
87-
- 1.2.8
87+
- 1.3.0
8888

8989
steps:
9090
- name: Checkout repository
@@ -136,7 +136,7 @@ jobs:
136136
- macos-latest
137137
- ubuntu-latest
138138
dove:
139-
- 1.2.8
139+
- 1.3.0
140140

141141
steps:
142142
- name: Checkout repository

Cargo.lock

Lines changed: 137 additions & 420 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ check:
1010
cargo check --all
1111
cargo check --all --tests
1212
make check-no-std
13-
#make check-benchmarks
1413

1514
.PHONY: check-benchmarks
1615
check-benchmarks:
@@ -85,12 +84,3 @@ coverage:
8584
-o ./target/debug/coverage/
8685
# to produce html report add:
8786
# -t html
88-
89-
# .PHONY: coverage2
90-
# coverage2:
91-
# export SKIP_WASM_BUILD=1
92-
# export CARGO_INCREMENTAL=0
93-
# export RUSTFLAGS="-Zinstrument-coverage"
94-
# pushd pallets/sp-mvm && cargo build
95-
# export LLVM_PROFILE_FILE="your_name-%p-%m.profraw"
96-
# pushd pallets/sp-mvm && cargo test

node/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ stdlib-fetch = { path = "../utils/stdlib-fetch" }
2424
jsonrpc-core = '15.1.0'
2525
serde_json = '1.0'
2626
structopt = '0.3.8'
27+
# TODO: update parity-scale-codec to 2.2.0
2728
codec = { package = 'parity-scale-codec', version = '2.0.0' }
2829
log = "0.4"
2930
serde = { version = "1.0", features = ["derive"]}
@@ -102,7 +103,7 @@ polkadot-cli = { git = 'http://github.com/paritytech/polkadot.git', branch = 're
102103
[dependencies.move-vm]
103104
package = "mvm"
104105
git = "https://github.com/pontem-network/sp-move-vm.git"
105-
rev = "e84b6eab01fb6e2520d86ba6a5fe9466404b12fe"
106+
rev = "7fc50f5aa43962e47584bbe714232fea476639cb"
106107
default-features = false
107108
features = [ "move_stdlib" ]
108109

node/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88

99
fetch(FetchConfig {
1010
git_repo: "https://github.com/pontem-network/move-stdlib.git",
11-
rev: Some("7f200e70d2fc98863ecc8e004e9ee2255e97bf5a"),
11+
rev: Some("34cedad7436f7dad6c9a521f3f6199324737d69f"),
1212
path_to_clone: "./move/stdlib",
1313
build_with_dove: true,
1414
})

pallets/author-mapping/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ log = { version="0.4", default-features=false }
1010
nimbus-primitives = { git="https://github.com/purestake/cumulus", branch="joshy-np098", default-features=false }
1111
frame-support = { git="https://github.com/paritytech/substrate", branch="polkadot-v0.9.8", default-features=false }
1212
frame-system = { git="https://github.com/paritytech/substrate", branch="polkadot-v0.9.8", default-features=false }
13+
# TODO: update parity-scale-codec to 2.2.0
1314
parity-scale-codec = { version="2.0.0", default-features=false, features=["derive"] }
1415
serde = { version="1.0.101", optional=true }
1516
sp-std = { git="https://github.com/paritytech/substrate", branch="polkadot-v0.9.8", default-features=false }

pallets/multisig/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1414

1515
[dependencies]
1616
serde = { version = "1.0.101", optional = true }
17+
# TODO: update parity-scale-codec to 2.2.0
1718
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
1819
frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.8' }
1920
frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.8' }

pallets/parachain-staking/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ frame-system = { git = "https://github.com/paritytech/substrate", branch = "polk
1212
log = "0.4"
1313
nimbus-primitives = { git = "https://github.com/purestake/cumulus", branch = "joshy-np098", default-features = false }
1414
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.8", default-features = false }
15+
# TODO: update parity-scale-codec to 2.2.0
1516
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["derive"] }
1617
serde = { version = "1.0.101", optional = true }
1718
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.8", default-features = false }

0 commit comments

Comments
 (0)