Skip to content

Commit b9fdc75

Browse files
committed
Upgrade Substrate dependencies to 2.0.1
Signed-off-by: lovesh <[email protected]>
1 parent 4ca4db0 commit b9fdc75

File tree

9 files changed

+824
-867
lines changed

9 files changed

+824
-867
lines changed

Diff for: Cargo.lock

+704-557
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: node/Cargo.toml

+31-87
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ['Dock.io']
33
build = 'build.rs'
44
edition = '2018'
55
name = 'dock-node'
6-
version = '0.12.2'
6+
version = '0.12.3'
77

88
[package.metadata.docs.rs]
99
targets = ['x86_64-unknown-linux-gnu']
@@ -23,156 +23,100 @@ optional = true
2323

2424
[dependencies.dock-runtime]
2525
path = '../runtime'
26-
version = '0.12.2'
26+
version = '0.12.3'
2727

2828
[dependencies.sc-basic-authorship]
29-
git = 'https://github.com/paritytech/substrate.git'
30-
version = '0.8.0'
31-
tag = 'v2.0.0'
29+
version = '0.8.1'
3230

3331
[dependencies.sc-cli]
34-
git = 'https://github.com/paritytech/substrate.git'
3532
optional = true
36-
version = '0.8.0'
37-
tag = 'v2.0.0'
33+
version = '0.8.1'
3834

3935
[dependencies.sc-client-api]
40-
git = 'https://github.com/paritytech/substrate.git'
41-
tag = 'v2.0.0'
42-
version = '2.0.0'
36+
version = '2.0.1'
4337

4438
[dependencies.sc-consensus]
45-
git = 'https://github.com/paritytech/substrate.git'
46-
version = '0.8.0'
47-
tag = 'v2.0.0'
39+
version = '0.8.1'
4840

4941
[dependencies.sc-consensus-aura]
50-
git = 'https://github.com/paritytech/substrate.git'
51-
version = '0.8.0'
52-
tag = 'v2.0.0'
42+
version = '0.8.1'
5343

5444
[dependencies.sc-executor]
55-
git = 'https://github.com/paritytech/substrate.git'
56-
version = '0.8.0'
57-
tag = 'v2.0.0'
45+
version = '0.8.1'
5846

5947
[dependencies.sc-finality-grandpa]
60-
git = 'https://github.com/paritytech/substrate.git'
61-
version = '0.8.0'
62-
tag = 'v2.0.0'
48+
version = '0.8.1'
6349

6450
[dependencies.sc-finality-grandpa-rpc]
65-
git = 'https://github.com/paritytech/substrate.git'
66-
version = '0.8.0'
67-
tag = 'v2.0.0'
51+
version = '0.8.1'
6852

6953
[dependencies.sc-network]
70-
git = 'https://github.com/paritytech/substrate.git'
71-
version = '0.8.0'
72-
tag = 'v2.0.0'
54+
version = '0.8.1'
7355

7456
[dependencies.sc-service]
75-
git = 'https://github.com/paritytech/substrate.git'
76-
version = '0.8.0'
77-
tag = 'v2.0.0'
57+
version = '0.8.1'
7858

7959
[dependencies.sc-transaction-pool]
80-
git = 'https://github.com/paritytech/substrate.git'
81-
tag = 'v2.0.0'
82-
version = '2.0.0'
60+
version = '2.0.1'
8361

8462
[dependencies.sp-consensus]
85-
git = 'https://github.com/paritytech/substrate.git'
86-
version = '0.8.0'
87-
tag = 'v2.0.0'
63+
version = '0.8.1'
8864

8965
[dependencies.sp-consensus-aura]
90-
git = 'https://github.com/paritytech/substrate.git'
91-
version = '0.8.0'
92-
tag = 'v2.0.0'
66+
version = '0.8.1'
9367

9468
[dependencies.sp-core]
95-
git = 'https://github.com/paritytech/substrate.git'
96-
tag = 'v2.0.0'
97-
version = '2.0.0'
69+
version = '2.0.1'
9870

9971
[dependencies.sp-finality-grandpa]
100-
git = 'https://github.com/paritytech/substrate.git'
101-
tag = 'v2.0.0'
102-
version = '2.0.0'
72+
version = '2.0.1'
10373

10474
[dependencies.sp-inherents]
105-
git = 'https://github.com/paritytech/substrate.git'
106-
tag = 'v2.0.0'
107-
version = '2.0.0'
75+
version = '2.0.1'
10876

10977
[dependencies.sp-runtime]
110-
git = 'https://github.com/paritytech/substrate.git'
111-
tag = 'v2.0.0'
112-
version = '2.0.0'
78+
version = '2.0.1'
11379

11480
[dependencies.sp-transaction-pool]
115-
git = 'https://github.com/paritytech/substrate.git'
116-
tag = 'v2.0.0'
117-
version = '2.0.0'
81+
version = '2.0.1'
11882

11983
[build-dependencies.substrate-build-script-utils]
120-
git = 'https://github.com/paritytech/substrate.git'
12184
optional = true
122-
tag = 'v2.0.0'
123-
version = '2.0.0'
85+
version = '2.0.1'
12486

12587
[dependencies.sc-rpc]
126-
git = 'https://github.com/paritytech/substrate.git'
127-
tag = 'v2.0.0'
128-
version = '2.0.0'
88+
version = '2.0.1'
12989

13090
[dependencies.sc-rpc-api]
131-
git = 'https://github.com/paritytech/substrate.git'
132-
tag = 'v2.0.0'
133-
version = '0.8.0'
91+
version = '0.8.1'
13492

13593
[dependencies.sp-api]
136-
git = 'https://github.com/paritytech/substrate.git'
137-
tag = 'v2.0.0'
138-
version = '2.0.0'
94+
version = '2.0.1'
13995

14096
[dependencies.sp-block-builder]
141-
git = 'https://github.com/paritytech/substrate.git'
142-
tag = 'v2.0.0'
143-
version = '2.0.0'
97+
version = '2.0.1'
14498

14599
[dependencies.sp-blockchain]
146-
git = 'https://github.com/paritytech/substrate.git'
147-
tag = 'v2.0.0'
148-
version = '2.0.0'
100+
version = '2.0.1'
149101

150102
[dependencies.frame-benchmarking]
151-
git = 'https://github.com/paritytech/substrate.git'
152103
default-features = false
153-
tag = 'v2.0.0'
154-
version = '2.0.0'
104+
version = '2.0.1'
155105

156106
[dependencies.frame-benchmarking-cli]
157-
git = 'https://github.com/paritytech/substrate.git'
158107
optional = true
159108
default-features = false
160-
tag = 'v2.0.0'
161-
version = '2.0.0'
109+
version = '2.0.1'
162110

163111
[dependencies.substrate-frame-rpc-system]
164-
git = 'https://github.com/paritytech/substrate.git'
165-
tag = 'v2.0.0'
166-
version = '2.0.0'
112+
version = '2.0.1'
167113

168114
[dependencies.pallet-transaction-payment-rpc]
169-
git = 'https://github.com/paritytech/substrate.git'
170-
tag = 'v2.0.0'
171-
version = '2.0.0'
115+
version = '2.0.1'
172116

173117
[dependencies.poa_rpc]
174118
path = '../pallets/poa/rpc'
175-
version = '0.0.4'
119+
version = '0.0.5'
176120

177121
[[bin]]
178122
name = 'dock-node'

Diff for: pallets/democracy/Cargo.toml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "forked-pallet-democracy"
3-
version = "2.0.0"
3+
version = "2.0.1"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66
license = "Apache-2.0"
@@ -15,19 +15,19 @@ targets = ["x86_64-unknown-linux-gnu"]
1515
[dependencies]
1616
serde = { version = "1.0.101", optional = true, features = ["derive"] }
1717
codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false, features = ["derive"] }
18-
sp-std = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
19-
sp-io = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
20-
sp-runtime = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
21-
frame-benchmarking = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0", optional = true }
22-
frame-support = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
23-
frame-system = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
18+
sp-std = { version = "2.0.1", default-features = false }
19+
sp-io = { version = "2.0.1", default-features = false }
20+
sp-runtime = { version = "2.0.1", default-features = false }
21+
frame-benchmarking = { version = "2.0.1", default-features = false, optional = true }
22+
frame-support = { version = "2.0.1", default-features = false }
23+
frame-system = { version = "2.0.1", default-features = false }
2424

2525
[dev-dependencies]
26-
sp-core = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
27-
pallet-balances = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
28-
pallet-scheduler = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
29-
sp-storage = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
30-
substrate-test-utils = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
26+
sp-core = { version = "2.0.1" }
27+
pallet-balances = { version = "2.0.1" }
28+
pallet-scheduler = { version = "2.0.1" }
29+
sp-storage = { version = "2.0.1" }
30+
substrate-test-utils = { version = "2.0.1" }
3131
hex-literal = "0.3.1"
3232

3333
[features]

Diff for: pallets/poa/Cargo.toml

+12-34
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "poa"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
authors = ["Dock.io"]
55
edition = "2018"
66
license = 'Apache-2.0'
@@ -16,75 +16,53 @@ version = '1.3.4'
1616

1717
[dependencies.frame-support]
1818
default-features = false
19-
git = 'https://github.com/paritytech/substrate.git'
20-
tag = 'v2.0.0'
21-
version = '2.0.0'
19+
version = '2.0.1'
2220

2321
[dependencies.frame-system]
2422
default-features = false
25-
git = 'https://github.com/paritytech/substrate.git'
26-
tag = 'v2.0.0'
27-
version = '2.0.0'
23+
version = '2.0.1'
2824

2925
[dev-dependencies.sp-core]
3026
default-features = false
31-
git = 'https://github.com/paritytech/substrate.git'
32-
tag = 'v2.0.0'
33-
version = '2.0.0'
27+
version = '2.0.1'
3428

3529
[dependencies.sp-io]
3630
default-features = false
37-
git = 'https://github.com/paritytech/substrate.git'
38-
tag = 'v2.0.0'
39-
version = '2.0.0'
31+
version = '2.0.1'
4032

4133
[dependencies.sp-std]
42-
git = 'https://github.com/paritytech/substrate.git'
4334
default-features = false
44-
tag = 'v2.0.0'
45-
version = '2.0.0'
35+
version = '2.0.1'
4636

4737
[dependencies.pallet-session]
4838
default_features = false
49-
git = 'https://github.com/paritytech/substrate.git'
50-
tag = 'v2.0.0'
51-
version = '2.0.0'
39+
version = '2.0.1'
5240

5341
[dependencies.serde]
5442
features = ['derive']
5543
optional = true
5644
version = '1.0.101'
5745

5846
[dependencies.pallet-authorship]
59-
git = 'https://github.com/paritytech/substrate.git'
6047
default-features = false
61-
tag = 'v2.0.0'
62-
version = '2.0.0'
48+
version = '2.0.1'
6349

6450
[dependencies.sp-arithmetic]
65-
git = 'https://github.com/paritytech/substrate.git'
6651
default-features = false
67-
tag = 'v2.0.0'
68-
version = '2.0.0'
52+
version = '2.0.1'
6953

7054
[dependencies.sp-runtime]
7155
default-features = false
72-
git = 'https://github.com/paritytech/substrate.git'
73-
tag = 'v2.0.0'
74-
version = '2.0.0'
56+
version = '2.0.1'
7557

7658
[dependencies.sp-api]
77-
git = 'https://github.com/paritytech/substrate.git'
7859
default-features = false
79-
tag = 'v2.0.0'
80-
version = '2.0.0'
60+
version = '2.0.1'
8161

8262
[dev-dependencies.balances]
83-
git = 'https://github.com/paritytech/substrate.git'
8463
default-features = false
8564
package = 'pallet-balances'
86-
tag = 'v2.0.0'
87-
version = '2.0.0'
65+
version = '2.0.1'
8866

8967
[features]
9068
default = ['std']

Diff for: pallets/poa/rpc/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "poa_rpc"
3-
version = "0.0.4"
3+
version = "0.0.5"
44
authors = ["Dock.io"]
55
edition = "2018"
66
license = 'Apache-2.0'
@@ -14,8 +14,8 @@ jsonrpc-core = "15.0.0"
1414
jsonrpc-core-client = "15.0.0"
1515
jsonrpc-derive = "15.0.0"
1616
serde = { version = "1.0.101", features = ["derive"], optional = true }
17-
sp-rpc = { git = 'https://github.com/paritytech/substrate.git', tag = 'v2.0.0', version = '2.0.0' }
18-
sp-runtime = { git = 'https://github.com/paritytech/substrate.git', tag = 'v2.0.0', version = '2.0.0' }
19-
sp-api = { git = 'https://github.com/paritytech/substrate.git', tag = 'v2.0.0', version = '2.0.0' }
20-
sp-blockchain = { git = 'https://github.com/paritytech/substrate.git', tag = 'v2.0.0', version = '2.0.0' }
21-
poa = { version = '0.6.1', path = '..' }
17+
sp-rpc = { version = '2.0.1' }
18+
sp-runtime = { version = '2.0.1' }
19+
sp-api = { version = '2.0.1' }
20+
sp-blockchain = { version = '2.0.1' }
21+
poa = { version = '0.6.2', path = '..' }

Diff for: pallets/poa/src/tests.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1721,13 +1721,7 @@ fn force_transfer_both() {
17211721
);
17221722

17231723
// Only Root can make the call
1724-
assert!(PoAModule::force_transfer_both(
1725-
RawOrigin::Signed(4),
1726-
source,
1727-
dest,
1728-
1,
1729-
1
1730-
).is_err());
1724+
assert!(PoAModule::force_transfer_both(Origin::signed(4), source, dest, 1, 1).is_err());
17311725

17321726
assert_ok!(PoAModule::force_transfer_both(
17331727
RawOrigin::Root.into(),

0 commit comments

Comments
 (0)