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 27d6d29 commit dec7b3e
Show file tree
Hide file tree
Showing 17 changed files with 1,026 additions and 1,089 deletions.
498 changes: 222 additions & 276 deletions Cargo.lock

Large diffs are not rendered by default.

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.20.0"
version = "0.21.0"
authors = ["chevdor <[email protected]>", "Wilfried Kopp <[email protected]>"]
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.20.0", path = "../libs/substrate-runtime-proposal-hash", optional = true }
subwasmlib = { version = "0.20.0", path = "../lib" }
wasm-loader = { version = "0.20.0", path = "../libs/wasm-loader" }
wasm-testbed = { version = "0.20.0", path = "../libs/wasm-testbed" }
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" }
serde_json = "1.0"
text-style = { version = "0.3", features = ["crossterm"] }
sp-runtime = { branch = "master", git = "https://github.com/paritytech/polkadot-sdk" }
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.1", default-features = false, features = [
"derive",
] }
sp-version = { branch = "master", git = "https://github.com/paritytech/polkadot-sdk" }
ipfs-hasher = { version = "0.20.0", path = "../libs/ipfs-hasher" }
wasm-loader = { version = "0.20.0", path = "../libs/wasm-loader" }
wasm-testbed = { version = "0.20.0", path = "../libs/wasm-testbed" }
substrate-differ = { version = "0.20.0", path = "../libs/substrate-differ" }
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" }
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.20.0", path = "../wasm-loader" }
wasm-loader = { version = "0.21.0", 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.20.0", path = "../wasm-testbed" }
wasm-testbed = { version = "0.21.0", path = "../wasm-testbed" }
scale-info = { version = "2.1.2", 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.20.0", path = "../wasm-loader" }
wasm-loader = { version = "0.21.0", 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.20.0", path = "../wasm-loader" }
substrate-runtime-proposal-hash = { version = "0.20.0", path = "../substrate-runtime-proposal-hash" }
wasm-loader = { version = "0.21.0", path = "../wasm-loader" }
substrate-runtime-proposal-hash = { version = "0.21.0", path = "../substrate-runtime-proposal-hash" }
sc-executor = { branch = "master", git = "https://github.com/paritytech/polkadot-sdk" }
sc-executor-common = { branch = "master", git = "https://github.com/paritytech/polkadot-sdk" }
scale = { version = "3", package = "parity-scale-codec", default-features = false }
Expand Down
177 changes: 90 additions & 87 deletions scripts/demos/casts/demo-diff.cast
Original file line number Diff line number Diff line change
@@ -1,87 +1,90 @@
{"version": 2, "width": 216, "height": 15, "timestamp": 1687426454, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
[0.026796, "o", "Wou"]
[0.212961, "o", "ld "]
[0.305787, "o", "tha"]
[0.399472, "o", "t n"]
[0.493476, "o", "ot b"]
[0.58415, "o", "e c"]
[0.679311, "o", "ool"]
[0.773535, "o", " to"]
[0.865084, "o", " be"]
[0.958851, "o", " abl"]
[1.05262, "o", "e t"]
[1.145498, "o", "o d"]
[1.240631, "o", "iff"]
[1.333865, "o", " 2 "]
[1.427634, "o", "runt"]
[1.610477, "o", "ime"]
[1.704376, "o", "s ?"]
[1.799155, "o", " Th"]
[1.889249, "o", "is "]
[1.983854, "o", "is p"]
[2.078194, "o", "rec"]
[2.16846, "o", "ise"]
[2.262565, "o", "ly "]
[2.35761, "o", "wha"]
[2.452707, "o", "t th"]
[2.542802, "o", "e d"]
[2.636848, "o", "iff"]
[2.730302, "o", " co"]
[2.913675, "o", "mma"]
[3.004448, "o", "nd d"]
[3.094618, "o", "oes"]
[3.184767, "o", "!\r\n"]
[3.189906, "o", "sub"]
[3.373464, "o", "was"]
[3.463514, "o", "m -"]
[3.553562, "o", "q g"]
[3.647525, "o", "et -"]
[3.739391, "o", "-ch"]
[3.833795, "o", "ain"]
[3.924511, "o", " po"]
[4.014566, "o", "lka"]
[4.105939, "o", "dot "]
[4.201018, "o", "--o"]
[4.291144, "o", "utp"]
[4.476058, "o", "ut "]
[4.566437, "o", "run"]
[4.659583, "o", "time"]
[4.754243, "o", "_la"]
[4.848058, "o", "tes"]
[4.941515, "o", "t.w"]
[5.033974, "o", "asm"]
[5.128427, "o", "\r\n"]
[5.136837, "o", "\u001b[0m\u001b[38;5;8m[\u001b[0m2023-06-22T09:34:19Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m Downloading runtime from OnchainBlock { endpoint: WebSocket(\"wss://rpc.polkadot.io/\"), block_ref: None }\r\n"]
[5.882419, "o", "\u001b[0m\u001b[38;5;8m[\u001b[0m2023-06-22T09:34:20Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m Got the runtime, its size is 1446304\r\n\u001b[0m\u001b[38;5;8m[\u001b[0m2023-06-22T09:34:20Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m Saving runtime to \"runtime_latest.wasm\"\r\n"]
[5.887035, "o", "\r\n"]
[5.891218, "o", "Let"]
[6.073823, "o", "'s "]
[6.167547, "o", "che"]
[6.258816, "o", "ck "]
[6.353082, "o", "iden"]
[6.446156, "o", "tit"]
[6.538035, "o", "y f"]
[6.628453, "o", "irs"]
[6.718606, "o", "t!\r\n"]
[6.722817, "o", "sub"]
[6.906422, "o", "was"]
[6.998254, "o", "m -"]
[7.091551, "o", "q d"]
[7.183847, "o", "iff "]
[7.274454, "o", "run"]
[7.366885, "o", "tim"]
[7.458537, "o", "e_l"]
[7.550471, "o", "ate"]
[7.640593, "o", "st.w"]
[7.733781, "o", "asm"]
[7.826533, "o", " ru"]
[8.013136, "o", "nti"]
[8.106123, "o", "me_"]
[8.198886, "o", "late"]
[8.290489, "o", "st."]
[8.380667, "o", "was"]
[8.47456, "o", "m\r\n"]
[8.481794, "o", "\u001b[0m\u001b[38;5;8m[\u001b[0m2023-06-22T09:34:22Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m 🅰️ File(\"runtime_latest.wasm\")\r\n"]
[11.961021, "o", "\u001b[0m\u001b[38;5;8m[\u001b[0m2023-06-22T09:34:26Z \u001b[0m\u001b[32mINFO \u001b[0m subwasmlib\u001b[0m\u001b[38;5;8m]\u001b[0m 🅱️ File(\"runtime_latest.wasm\")\r\n"]
[15.346508, "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.376675, "o", "\r\n\r\n"]
{"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"]
Loading

0 comments on commit dec7b3e

Please sign in to comment.