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

Commit 870540b

Browse files
authored
Update to SCALE 1.2.0 (#5113)
This updates `parity-scale-codec` to `1.2.0`, which includes multiple performance improvements and a fix that bounds the capacity of a vector at decoding.
1 parent a201f34 commit 870540b

File tree

116 files changed

+130
-130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+130
-130
lines changed

Cargo.lock

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

bin/node-template/pallets/template/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/paritytech/substrate/"
99
description = "FRAME pallet template"
1010

1111
[dependencies]
12-
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
12+
codec = { package = "parity-scale-codec", version = "1.2.0", default-features = false, features = ["derive"] }
1313
safe-mix = { default-features = false, version = '1.0.0' }
1414

1515
[dependencies.frame-support]
@@ -41,8 +41,8 @@ path = "../../../../primitives/runtime"
4141
[features]
4242
default = ['std']
4343
std = [
44-
'codec/std',
45-
'frame-support/std',
46-
'safe-mix/std',
47-
'system/std'
44+
'codec/std',
45+
'frame-support/std',
46+
'safe-mix/std',
47+
'system/std'
4848
]

bin/node-template/runtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ homepage = "https://substrate.dev"
88
repository = "https://github.com/paritytech/substrate/"
99

1010
[dependencies]
11-
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
11+
codec = { package = "parity-scale-codec", version = "1.2.0", default-features = false, features = ["derive"] }
1212

1313
aura = { version = "2.0.0-alpha.2", default-features = false, package = "pallet-aura", path = "../../../frame/aura" }
1414
balances = { version = "2.0.0-alpha.2", default-features = false, package = "pallet-balances", path = "../../../frame/balances" }

bin/node/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ crate-type = ["cdylib", "rlib"]
3131

3232
[dependencies]
3333
# third-party dependencies
34-
codec = { package = "parity-scale-codec", version = "1.0.6" }
34+
codec = { package = "parity-scale-codec", version = "1.2.0" }
3535
serde = { version = "1.0.102", features = ["derive"] }
3636
futures = { version = "0.3.1", features = ["compat"] }
3737
hex-literal = "0.2.1"

bin/node/executor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ homepage = "https://substrate.dev"
99
repository = "https://github.com/paritytech/substrate/"
1010

1111
[dependencies]
12-
codec = { package = "parity-scale-codec", version = "1.0.0" }
12+
codec = { package = "parity-scale-codec", version = "1.2.0" }
1313
node-primitives = { version = "2.0.0-alpha.2", path = "../primitives" }
1414
node-runtime = { version = "2.0.0-alpha.2", path = "../runtime" }
1515
sc-executor = { version = "0.8.0-alpha.2", path = "../../../client/executor" }

bin/node/inspect/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ homepage = "https://substrate.dev"
88
repository = "https://github.com/paritytech/substrate/"
99

1010
[dependencies]
11-
codec = { package = "parity-scale-codec", version = "1.0.0" }
11+
codec = { package = "parity-scale-codec", version = "1.2.0" }
1212
derive_more = "0.99"
1313
log = "0.4.8"
1414
sc-cli = { version = "0.8.0-alpha.2", path = "../../../client/cli" }

bin/node/runtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repository = "https://github.com/paritytech/substrate/"
1111
[dependencies]
1212

1313
# third-party dependencies
14-
codec = { package = "parity-scale-codec", version = "1.0.6", default-features = false, features = ["derive"] }
14+
codec = { package = "parity-scale-codec", version = "1.2.0", default-features = false, features = ["derive"] }
1515
integer-sqrt = { version = "0.1.2" }
1616
rustc-hex = { version = "2.0", optional = true }
1717
serde = { version = "1.0.102", optional = true }

bin/node/testing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pallet-balances = { version = "2.0.0-alpha.2", path = "../../../frame/balances"
1414
sc-client = { version = "0.8.0-alpha.2", path = "../../../client/" }
1515
sc-client-db = { version = "0.8.0-alpha.2", path = "../../../client/db/", features = ["kvdb-rocksdb"] }
1616
sc-client-api = { version = "2.0.0-alpha.2", path = "../../../client/api/" }
17-
codec = { package = "parity-scale-codec", version = "1.0.0" }
17+
codec = { package = "parity-scale-codec", version = "1.2.0" }
1818
pallet-contracts = { version = "2.0.0-alpha.2", path = "../../../frame/contracts" }
1919
pallet-grandpa = { version = "2.0.0-alpha.2", path = "../../../frame/grandpa" }
2020
pallet-indices = { version = "2.0.0-alpha.2", path = "../../../frame/indices" }

bin/node/transaction-factory/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sp-block-builder = { version = "2.0.0-alpha.2", path = "../../../primitives/bloc
1212
sc-cli = { version = "0.8.0-alpha.2", path = "../../../client/cli" }
1313
sc-client-api = { version = "2.0.0-alpha.2", path = "../../../client/api" }
1414
sc-client = { version = "0.8.0-alpha.2", path = "../../../client" }
15-
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
15+
codec = { package = "parity-scale-codec", version = "1.2.0", features = ["derive"] }
1616
sp-consensus = { version = "0.8.0-alpha.2", path = "../../../primitives/consensus/common" }
1717
log = "0.4.8"
1818
sp-core = { version = "2.0.0-alpha.2", path = "../../../primitives/core" }

bin/utils/subkey/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ rustc-hex = "2.0.1"
2020
substrate-bip39 = "0.3.1"
2121
hex = "0.4.0"
2222
hex-literal = "0.2.1"
23-
codec = { package = "parity-scale-codec", version = "1.0.0" }
23+
codec = { package = "parity-scale-codec", version = "1.2.0" }
2424
frame-system = { version = "2.0.0-alpha.2", path = "../../../frame/system" }
2525
pallet-balances = { version = "2.0.0-alpha.2", path = "../../../frame/balances" }
2626
pallet-transaction-payment = { version = "2.0.0-alpha.2", path = "../../../frame/transaction-payment" }

0 commit comments

Comments
 (0)