Skip to content

Commit

Permalink
New version
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed May 21, 2024
1 parent 4f64f5b commit 8f8c7f2
Show file tree
Hide file tree
Showing 17 changed files with 687 additions and 811 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.21.0"
version = "0.21.1"
authors = ["chevdor <chevdor@gmail.com>", "Wilfried Kopp <wilfried@parity.io>"]
edition = "2021"

Expand Down
8 changes: 4 additions & 4 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ color-eyre = "0.6"
thiserror = "1.0"
env_logger = "0.11"
log = "0.4"
substrate-runtime-proposal-hash = { version = "0.21.0", path = "../libs/substrate-runtime-proposal-hash", optional = true }
subwasmlib = { version = "0.21.0", path = "../lib" }
wasm-loader = { version = "0.21.0", path = "../libs/wasm-loader" }
wasm-testbed = { version = "0.21.0", path = "../libs/wasm-testbed" }
substrate-runtime-proposal-hash = { version = "0.21.1", path = "../libs/substrate-runtime-proposal-hash", optional = true }
subwasmlib = { version = "0.21.1", path = "../lib" }
wasm-loader = { version = "0.21.1", path = "../libs/wasm-loader" }
wasm-testbed = { version = "0.21.1", path = "../libs/wasm-testbed" }
serde_json = "1.0"
text-style = { version = "0.3", features = ["crossterm"] }
sp-runtime = "36.0.0"
Expand Down
8 changes: 4 additions & 4 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ scale-info = { version = "2.11.3", default-features = false, features = [
"derive",
] }
sp-version = "34.0.0"
ipfs-hasher = { version = "0.21.0", path = "../libs/ipfs-hasher" }
wasm-loader = { version = "0.21.0", path = "../libs/wasm-loader" }
wasm-testbed = { version = "0.21.0", path = "../libs/wasm-testbed" }
substrate-differ = { version = "0.21.0", path = "../libs/substrate-differ" }
ipfs-hasher = { version = "0.21.1", path = "../libs/ipfs-hasher" }
wasm-loader = { version = "0.21.1", path = "../libs/wasm-loader" }
wasm-testbed = { version = "0.21.1", path = "../libs/wasm-testbed" }
substrate-differ = { version = "0.21.1", path = "../libs/substrate-differ" }
url = "2.3.1"
reqwest = { version = "0.12", features = [
"blocking",
Expand Down
2 changes: 1 addition & 1 deletion libs/ipfs-hasher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ ipfs-unixfs = "0.2"
thiserror = "1.0"

[dev-dependencies]
wasm-loader = { version = "0.21.0", path = "../wasm-loader" }
wasm-loader = { version = "0.21.1", path = "../wasm-loader" }
4 changes: 2 additions & 2 deletions libs/substrate-differ/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ document-features = { version = "0.2" }
thiserror = "1.0"
serde = { version = "1.0", features = ["derive", "rc"] }
comparable = { version = ">=0.5.3", features = ["derive", "serde"] }
wasm-testbed = { version = "0.21.0", path = "../wasm-testbed" }
wasm-testbed = { version = "0.21.1", path = "../wasm-testbed" }
scale-info = { version = "2.11.3", default-features = false, features = [
"derive",
"std",
Expand All @@ -23,7 +23,7 @@ frame-metadata = { version = "16", package = "frame-metadata", features = [
] }

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

[features]
## The default feature currently excludes feature that are deprecated
Expand Down
4 changes: 2 additions & 2 deletions libs/wasm-testbed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ repository = "https://github.com/chevdor/subwasm"
hex = "0.4"
log = "0.4"
thiserror = "1.0"
wasm-loader = { version = "0.21.0", path = "../wasm-loader" }
substrate-runtime-proposal-hash = { version = "0.21.0", path = "../substrate-runtime-proposal-hash" }
wasm-loader = { version = "0.21.1", path = "../wasm-loader" }
substrate-runtime-proposal-hash = { version = "0.21.1", path = "../substrate-runtime-proposal-hash" }
sc-executor = "0.37.0"
sc-executor-common = "0.33.0"
scale = { version = "3", package = "parity-scale-codec", default-features = false }
Expand Down
186 changes: 96 additions & 90 deletions scripts/demos/casts/demo-diff.cast
Original file line number Diff line number Diff line change
@@ -1,90 +1,96 @@
{"version": 2, "width": 208, "height": 24, "timestamp": 1716291853, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
[0.257141, "o", "Wou"]
[0.444432, "o", "ld "]
[0.536208, "o", "tha"]
[0.630687, "o", "t n"]
[0.722978, "o", "ot "]
[0.816937, "o", "be "]
[0.911758, "o", "coo"]
[1.006684, "o", "l t"]
[1.097096, "o", "o b"]
[1.19182, "o", "e a"]
[1.285793, "o", "ble "]
[1.380498, "o", "to "]
[1.474877, "o", "dif"]
[1.56591, "o", "f 2"]
[1.659681, "o", " ru"]
[1.845701, "o", "nti"]
[1.940334, "o", "mes"]
[2.035008, "o", " ? "]
[2.128582, "o", "Thi"]
[2.221967, "o", "s i"]
[2.316676, "o", "s pr"]
[2.411649, "o", "eci"]
[2.505627, "o", "sel"]
[2.600629, "o", "y w"]
[2.69467, "o", "hat"]
[2.787761, "o", " th"]
[2.882218, "o", "e d"]
[2.976966, "o", "iff"]
[3.070545, "o", " co"]
[3.162528, "o", "mma"]
[3.257322, "o", "nd d"]
[3.446739, "o", "oes"]
[3.540109, "o", "!\r\n"]
[3.545758, "o", "sub"]
[3.734573, "o", "was"]
[3.828485, "o", "m -"]
[3.922422, "o", "q g"]
[4.016757, "o", "et "]
[4.111139, "o", "--c"]
[4.20605, "o", "hai"]
[4.300045, "o", "n p"]
[4.394867, "o", "olk"]
[4.486941, "o", "ado"]
[4.58047, "o", "t --"]
[4.675196, "o", "out"]
[4.769987, "o", "put"]
[4.860081, "o", " ru"]
[4.954584, "o", "nti"]
[5.046418, "o", "me_"]
[5.233615, "o", "lat"]
[5.328019, "o", "est"]
[5.422375, "o", ".wa"]
[5.516346, "o", "sm\r\n"]
[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"]
[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"]
[6.920916, "o", "\r\n"]
[6.926675, "o", "Let"]
[7.114117, "o", "'s "]
[7.20723, "o", "che"]
[7.300188, "o", "ck "]
[7.393103, "o", "ide"]
[7.487605, "o", "nti"]
[7.582219, "o", "ty "]
[7.674717, "o", "fir"]
[7.769169, "o", "st!"]
[7.862522, "o", "\r\n"]
[7.868615, "o", "sub"]
[8.057732, "o", "was"]
[8.147944, "o", "m -"]
[8.239863, "o", "q d"]
[8.333386, "o", "iff"]
[8.426687, "o", " ru"]
[8.521538, "o", "nti"]
[8.615671, "o", "me_"]
[8.709672, "o", "lat"]
[8.802904, "o", "est"]
[8.897059, "o", ".was"]
[8.987838, "o", "m r"]
[9.082213, "o", "unt"]
[9.175413, "o", "ime"]
[9.269335, "o", "_la"]
[9.457926, "o", "tes"]
[9.550556, "o", "t.w"]
[9.644499, "o", "asm"]
[9.737457, "o", "\r\n"]
[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"]
[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"]
[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"]
[18.461561, "o", "\r\n\r\n"]
{"version": 2, "width": 186, "height": 29, "timestamp": 1716308772, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
[0.027431, "o", "Wo"]
[0.215965, "o", "uld"]
[0.310819, "o", " th"]
[0.405369, "o", "at "]
[0.499337, "o", "no"]
[0.594236, "o", "t b"]
[0.688777, "o", "e c"]
[0.783287, "o", "ool"]
[0.877178, "o", " to"]
[0.971394, "o", " b"]
[1.066014, "o", "e a"]
[1.159174, "o", "ble"]
[1.254191, "o", " to"]
[1.34882, "o", " di"]
[1.442917, "o", "ff"]
[1.537314, "o", " 2 "]
[1.631431, "o", "run"]
[1.819438, "o", "tim"]
[1.911789, "o", "es "]
[2.006318, "o", "? "]
[2.1009, "o", "Thi"]
[2.195163, "o", "s i"]
[2.290196, "o", "s p"]
[2.381528, "o", "rec"]
[2.472962, "o", "is"]
[2.567861, "o", "ely"]
[2.661573, "o", " wh"]
[2.755749, "o", "at "]
[2.848576, "o", "the"]
[2.942968, "o", " d"]
[3.037482, "o", "iff"]
[3.131923, "o", " co"]
[3.317974, "o", "mma"]
[3.41251, "o", "nd "]
[3.507361, "o", "do"]
[3.601162, "o", "es!"]
[3.693065, "o", "\r\n"]
[3.69827, "o", "su"]
[3.884107, "o", "bwa"]
[3.978669, "o", "sm "]
[4.073685, "o", "-q "]
[4.167875, "o", "ge"]
[4.262362, "o", "t -"]
[4.356978, "o", "-ch"]
[4.450301, "o", "ain"]
[4.545089, "o", " po"]
[4.640036, "o", "lk"]
[4.732458, "o", "ado"]
[4.825999, "o", "t -"]
[4.919283, "o", "-ou"]
[5.013188, "o", "tpu"]
[5.107474, "o", "t "]
[5.202449, "o", "run"]
[5.391226, "o", "tim"]
[5.48614, "o", "e_l"]
[5.580897, "o", "ate"]
[5.675538, "o", "st"]
[5.768792, "o", ".wa"]
[5.860623, "o", "sm\r\n"]
[5.861909, "o", "./demo-diff.sh: line 9: /usr/local/bin/subwasm: Bad CPU type in executable\r\n"]
[5.862106, "o", "\r\n"]
[5.866785, "o", "Le"]
[6.055, "o", "t's"]
[6.149614, "o", " ch"]
[6.243839, "o", "eck"]
[6.336558, "o", " i"]
[6.43118, "o", "den"]
[6.526074, "o", "tit"]
[6.620755, "o", "y f"]
[6.715406, "o", "irs"]
[6.810072, "o", "t!"]
[6.904582, "o", "\r\n"]
[6.910636, "o", "su"]
[7.099091, "o", "bwa"]
[7.192717, "o", "sm "]
[7.287853, "o", "-q "]
[7.381776, "o", "di"]
[7.476124, "o", "ff "]
[7.570922, "o", "run"]
[7.665665, "o", "tim"]
[7.758976, "o", "e_l"]
[7.852201, "o", "at"]
[7.94665, "o", "est"]
[8.037091, "o", ".wa"]
[8.130696, "o", "sm "]
[8.225318, "o", "run"]
[8.319372, "o", "ti"]
[8.413207, "o", "me_"]
[8.601714, "o", "lat"]
[8.695705, "o", "est"]
[8.79035, "o", ".wa"]
[8.883706, "o", "sm"]
[8.976557, "o", "\r\n"]
[8.977745, "o", "./demo-diff.sh: line 15: /usr/local/bin/subwasm: Bad CPU type in executable\r\n"]
[11.985369, "o", "\r\n\r\n"]
Loading

0 comments on commit 8f8c7f2

Please sign in to comment.