Skip to content

Commit 8f8c7f2

Browse files
committed
New version
1 parent 4f64f5b commit 8f8c7f2

File tree

17 files changed

+687
-811
lines changed

17 files changed

+687
-811
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.21.0"
2+
version = "0.21.1"
33
authors = ["chevdor <[email protected]>", "Wilfried Kopp <[email protected]>"]
44
edition = "2021"
55

cli/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ color-eyre = "0.6"
4040
thiserror = "1.0"
4141
env_logger = "0.11"
4242
log = "0.4"
43-
substrate-runtime-proposal-hash = { version = "0.21.0", path = "../libs/substrate-runtime-proposal-hash", optional = true }
44-
subwasmlib = { version = "0.21.0", path = "../lib" }
45-
wasm-loader = { version = "0.21.0", path = "../libs/wasm-loader" }
46-
wasm-testbed = { version = "0.21.0", path = "../libs/wasm-testbed" }
43+
substrate-runtime-proposal-hash = { version = "0.21.1", path = "../libs/substrate-runtime-proposal-hash", optional = true }
44+
subwasmlib = { version = "0.21.1", path = "../lib" }
45+
wasm-loader = { version = "0.21.1", path = "../libs/wasm-loader" }
46+
wasm-testbed = { version = "0.21.1", path = "../libs/wasm-testbed" }
4747
serde_json = "1.0"
4848
text-style = { version = "0.3", features = ["crossterm"] }
4949
sp-runtime = "36.0.0"

lib/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ scale-info = { version = "2.11.3", default-features = false, features = [
3535
"derive",
3636
] }
3737
sp-version = "34.0.0"
38-
ipfs-hasher = { version = "0.21.0", path = "../libs/ipfs-hasher" }
39-
wasm-loader = { version = "0.21.0", path = "../libs/wasm-loader" }
40-
wasm-testbed = { version = "0.21.0", path = "../libs/wasm-testbed" }
41-
substrate-differ = { version = "0.21.0", path = "../libs/substrate-differ" }
38+
ipfs-hasher = { version = "0.21.1", path = "../libs/ipfs-hasher" }
39+
wasm-loader = { version = "0.21.1", path = "../libs/wasm-loader" }
40+
wasm-testbed = { version = "0.21.1", path = "../libs/wasm-testbed" }
41+
substrate-differ = { version = "0.21.1", path = "../libs/substrate-differ" }
4242
url = "2.3.1"
4343
reqwest = { version = "0.12", features = [
4444
"blocking",

libs/ipfs-hasher/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ ipfs-unixfs = "0.2"
1313
thiserror = "1.0"
1414

1515
[dev-dependencies]
16-
wasm-loader = { version = "0.21.0", path = "../wasm-loader" }
16+
wasm-loader = { version = "0.21.1", path = "../wasm-loader" }

libs/substrate-differ/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ document-features = { version = "0.2" }
1212
thiserror = "1.0"
1313
serde = { version = "1.0", features = ["derive", "rc"] }
1414
comparable = { version = ">=0.5.3", features = ["derive", "serde"] }
15-
wasm-testbed = { version = "0.21.0", path = "../wasm-testbed" }
15+
wasm-testbed = { version = "0.21.1", path = "../wasm-testbed" }
1616
scale-info = { version = "2.11.3", default-features = false, features = [
1717
"derive",
1818
"std",
@@ -23,7 +23,7 @@ frame-metadata = { version = "16", package = "frame-metadata", features = [
2323
] }
2424

2525
[dev-dependencies]
26-
wasm-loader = { version = "0.21.0", path = "../wasm-loader" }
26+
wasm-loader = { version = "0.21.1", path = "../wasm-loader" }
2727

2828
[features]
2929
## The default feature currently excludes feature that are deprecated

libs/wasm-testbed/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ repository = "https://github.com/chevdor/subwasm"
2121
hex = "0.4"
2222
log = "0.4"
2323
thiserror = "1.0"
24-
wasm-loader = { version = "0.21.0", path = "../wasm-loader" }
25-
substrate-runtime-proposal-hash = { version = "0.21.0", path = "../substrate-runtime-proposal-hash" }
24+
wasm-loader = { version = "0.21.1", path = "../wasm-loader" }
25+
substrate-runtime-proposal-hash = { version = "0.21.1", path = "../substrate-runtime-proposal-hash" }
2626
sc-executor = "0.37.0"
2727
sc-executor-common = "0.33.0"
2828
scale = { version = "3", package = "parity-scale-codec", default-features = false }

scripts/demos/casts/demo-diff.cast

Lines changed: 96 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,96 @@
1-
{"version": 2, "width": 208, "height": 24, "timestamp": 1716291853, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
2-
[0.257141, "o", "Wou"]
3-
[0.444432, "o", "ld "]
4-
[0.536208, "o", "tha"]
5-
[0.630687, "o", "t n"]
6-
[0.722978, "o", "ot "]
7-
[0.816937, "o", "be "]
8-
[0.911758, "o", "coo"]
9-
[1.006684, "o", "l t"]
10-
[1.097096, "o", "o b"]
11-
[1.19182, "o", "e a"]
12-
[1.285793, "o", "ble "]
13-
[1.380498, "o", "to "]
14-
[1.474877, "o", "dif"]
15-
[1.56591, "o", "f 2"]
16-
[1.659681, "o", " ru"]
17-
[1.845701, "o", "nti"]
18-
[1.940334, "o", "mes"]
19-
[2.035008, "o", " ? "]
20-
[2.128582, "o", "Thi"]
21-
[2.221967, "o", "s i"]
22-
[2.316676, "o", "s pr"]
23-
[2.411649, "o", "eci"]
24-
[2.505627, "o", "sel"]
25-
[2.600629, "o", "y w"]
26-
[2.69467, "o", "hat"]
27-
[2.787761, "o", " th"]
28-
[2.882218, "o", "e d"]
29-
[2.976966, "o", "iff"]
30-
[3.070545, "o", " co"]
31-
[3.162528, "o", "mma"]
32-
[3.257322, "o", "nd d"]
33-
[3.446739, "o", "oes"]
34-
[3.540109, "o", "!\r\n"]
35-
[3.545758, "o", "sub"]
36-
[3.734573, "o", "was"]
37-
[3.828485, "o", "m -"]
38-
[3.922422, "o", "q g"]
39-
[4.016757, "o", "et "]
40-
[4.111139, "o", "--c"]
41-
[4.20605, "o", "hai"]
42-
[4.300045, "o", "n p"]
43-
[4.394867, "o", "olk"]
44-
[4.486941, "o", "ado"]
45-
[4.58047, "o", "t --"]
46-
[4.675196, "o", "out"]
47-
[4.769987, "o", "put"]
48-
[4.860081, "o", " ru"]
49-
[4.954584, "o", "nti"]
50-
[5.046418, "o", "me_"]
51-
[5.233615, "o", "lat"]
52-
[5.328019, "o", "est"]
53-
[5.422375, "o", ".wa"]
54-
[5.516346, "o", "sm\r\n"]
55-
[5.527503, "o", "\u001b[0m\u001b[38;5;8m[\u001b[0m2024-05-21T11:44:19Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m Downloading runtime from OnchainBlock { endpoint: WebSocket(\"wss://polkadot-rpc.dwellir.com/\"), block_ref: None }\r\n"]
56-
[6.916843, "o", "\u001b[0m\u001b[38;5;8m[\u001b[0m2024-05-21T11:44:20Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m Got the runtime, its size is 1567191\r\n\u001b[0m\u001b[38;5;8m[\u001b[0m2024-05-21T11:44:20Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m Saving runtime to \"runtime_latest.wasm\"\r\n"]
57-
[6.920916, "o", "\r\n"]
58-
[6.926675, "o", "Let"]
59-
[7.114117, "o", "'s "]
60-
[7.20723, "o", "che"]
61-
[7.300188, "o", "ck "]
62-
[7.393103, "o", "ide"]
63-
[7.487605, "o", "nti"]
64-
[7.582219, "o", "ty "]
65-
[7.674717, "o", "fir"]
66-
[7.769169, "o", "st!"]
67-
[7.862522, "o", "\r\n"]
68-
[7.868615, "o", "sub"]
69-
[8.057732, "o", "was"]
70-
[8.147944, "o", "m -"]
71-
[8.239863, "o", "q d"]
72-
[8.333386, "o", "iff"]
73-
[8.426687, "o", " ru"]
74-
[8.521538, "o", "nti"]
75-
[8.615671, "o", "me_"]
76-
[8.709672, "o", "lat"]
77-
[8.802904, "o", "est"]
78-
[8.897059, "o", ".was"]
79-
[8.987838, "o", "m r"]
80-
[9.082213, "o", "unt"]
81-
[9.175413, "o", "ime"]
82-
[9.269335, "o", "_la"]
83-
[9.457926, "o", "tes"]
84-
[9.550556, "o", "t.w"]
85-
[9.644499, "o", "asm"]
86-
[9.737457, "o", "\r\n"]
87-
[9.746641, "o", "\u001b[0m\u001b[38;5;8m[\u001b[0m2024-05-21T11:44:23Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m 🅰️ File(\"runtime_latest.wasm\")\r\n"]
88-
[12.60335, "o", "\u001b[0m\u001b[38;5;8m[\u001b[0m2024-05-21T11:44:26Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m 🅱️ File(\"runtime_latest.wasm\")\r\n"]
89-
[15.42689, "o", "\u001b[48;5;11m\u001b[38;5;9m\u001b[1m!!! THE SUBWASM REDUCED DIFFER IS EXPERIMENTAL, DOUBLE CHECK THE RESULTS !!!\r\n\u001b[0mNo change detected\r\nSUMMARY:\r\n- Compatible.......................: true\r\n- Require transaction_version bump.: false\r\n\r\n\u001b[48;5;11m\u001b[38;5;9m\u001b[1m!!! THE SUBWASM REDUCED DIFFER IS EXPERIMENTAL, DOUBLE CHECK THE RESULTS !!!\r\n\u001b[0m"]
90-
[18.461561, "o", "\r\n\r\n"]
1+
{"version": 2, "width": 186, "height": 29, "timestamp": 1716308772, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
2+
[0.027431, "o", "Wo"]
3+
[0.215965, "o", "uld"]
4+
[0.310819, "o", " th"]
5+
[0.405369, "o", "at "]
6+
[0.499337, "o", "no"]
7+
[0.594236, "o", "t b"]
8+
[0.688777, "o", "e c"]
9+
[0.783287, "o", "ool"]
10+
[0.877178, "o", " to"]
11+
[0.971394, "o", " b"]
12+
[1.066014, "o", "e a"]
13+
[1.159174, "o", "ble"]
14+
[1.254191, "o", " to"]
15+
[1.34882, "o", " di"]
16+
[1.442917, "o", "ff"]
17+
[1.537314, "o", " 2 "]
18+
[1.631431, "o", "run"]
19+
[1.819438, "o", "tim"]
20+
[1.911789, "o", "es "]
21+
[2.006318, "o", "? "]
22+
[2.1009, "o", "Thi"]
23+
[2.195163, "o", "s i"]
24+
[2.290196, "o", "s p"]
25+
[2.381528, "o", "rec"]
26+
[2.472962, "o", "is"]
27+
[2.567861, "o", "ely"]
28+
[2.661573, "o", " wh"]
29+
[2.755749, "o", "at "]
30+
[2.848576, "o", "the"]
31+
[2.942968, "o", " d"]
32+
[3.037482, "o", "iff"]
33+
[3.131923, "o", " co"]
34+
[3.317974, "o", "mma"]
35+
[3.41251, "o", "nd "]
36+
[3.507361, "o", "do"]
37+
[3.601162, "o", "es!"]
38+
[3.693065, "o", "\r\n"]
39+
[3.69827, "o", "su"]
40+
[3.884107, "o", "bwa"]
41+
[3.978669, "o", "sm "]
42+
[4.073685, "o", "-q "]
43+
[4.167875, "o", "ge"]
44+
[4.262362, "o", "t -"]
45+
[4.356978, "o", "-ch"]
46+
[4.450301, "o", "ain"]
47+
[4.545089, "o", " po"]
48+
[4.640036, "o", "lk"]
49+
[4.732458, "o", "ado"]
50+
[4.825999, "o", "t -"]
51+
[4.919283, "o", "-ou"]
52+
[5.013188, "o", "tpu"]
53+
[5.107474, "o", "t "]
54+
[5.202449, "o", "run"]
55+
[5.391226, "o", "tim"]
56+
[5.48614, "o", "e_l"]
57+
[5.580897, "o", "ate"]
58+
[5.675538, "o", "st"]
59+
[5.768792, "o", ".wa"]
60+
[5.860623, "o", "sm\r\n"]
61+
[5.861909, "o", "./demo-diff.sh: line 9: /usr/local/bin/subwasm: Bad CPU type in executable\r\n"]
62+
[5.862106, "o", "\r\n"]
63+
[5.866785, "o", "Le"]
64+
[6.055, "o", "t's"]
65+
[6.149614, "o", " ch"]
66+
[6.243839, "o", "eck"]
67+
[6.336558, "o", " i"]
68+
[6.43118, "o", "den"]
69+
[6.526074, "o", "tit"]
70+
[6.620755, "o", "y f"]
71+
[6.715406, "o", "irs"]
72+
[6.810072, "o", "t!"]
73+
[6.904582, "o", "\r\n"]
74+
[6.910636, "o", "su"]
75+
[7.099091, "o", "bwa"]
76+
[7.192717, "o", "sm "]
77+
[7.287853, "o", "-q "]
78+
[7.381776, "o", "di"]
79+
[7.476124, "o", "ff "]
80+
[7.570922, "o", "run"]
81+
[7.665665, "o", "tim"]
82+
[7.758976, "o", "e_l"]
83+
[7.852201, "o", "at"]
84+
[7.94665, "o", "est"]
85+
[8.037091, "o", ".wa"]
86+
[8.130696, "o", "sm "]
87+
[8.225318, "o", "run"]
88+
[8.319372, "o", "ti"]
89+
[8.413207, "o", "me_"]
90+
[8.601714, "o", "lat"]
91+
[8.695705, "o", "est"]
92+
[8.79035, "o", ".wa"]
93+
[8.883706, "o", "sm"]
94+
[8.976557, "o", "\r\n"]
95+
[8.977745, "o", "./demo-diff.sh: line 15: /usr/local/bin/subwasm: Bad CPU type in executable\r\n"]
96+
[11.985369, "o", "\r\n\r\n"]

0 commit comments

Comments
 (0)