Skip to content

Commit 32226b7

Browse files
committed
Update to Substrate 2.0 🎉
1 parent cb3cb2a commit 32226b7

File tree

3 files changed

+17
-48
lines changed

3 files changed

+17
-48
lines changed

Cargo.toml

Lines changed: 15 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = '2018'
33
name = 'pallet-commodities'
4-
version = '1.0.0-rc7'
4+
version = '1.0.0'
55
authors = ['Dan Forbes <dan@parity.io>']
66
license = 'Unlicense'
77
description = 'A unique asset (NFT) interface and a Substrate FRAME implementation optimized for commodity assets.'
@@ -11,54 +11,23 @@ readme = 'README.md'
1111
keywords = ['substrate', 'frame', 'nft', 'blockchain', 'asset']
1212
categories = ['cryptography::cryptocurrencies', 'data-structures', 'no-std']
1313

14-
[dependencies]
15-
serde = { version = "1.0.101", optional = true }
16-
17-
[dependencies.codec]
18-
default-features = false
19-
features = ['derive']
20-
package = 'parity-scale-codec'
21-
version = '1.3.1'
22-
23-
[dependencies.frame-support]
24-
default-features = false
25-
git = 'https://github.com/paritytech/substrate.git'
26-
tag = 'v2.0.0-rc6'
27-
version = '2.0.0-rc6'
28-
29-
[dependencies.frame-system]
30-
default-features = false
31-
git = 'https://github.com/paritytech/substrate.git'
32-
tag = 'v2.0.0-rc6'
33-
version = '2.0.0-rc6'
34-
35-
[dependencies.sp-runtime]
36-
default-features = false
37-
git = 'https://github.com/paritytech/substrate.git'
38-
tag = 'v2.0.0-rc6'
39-
version = '2.0.0-rc6'
40-
41-
[dependencies.sp-std]
42-
git = 'https://github.com/paritytech/substrate.git'
43-
default-features = false
44-
tag = 'v2.0.0-rc6'
45-
version = '2.0.0-rc6'
46-
47-
[dev-dependencies.sp-core]
48-
default-features = false
49-
git = 'https://github.com/paritytech/substrate.git'
50-
tag = 'v2.0.0-rc6'
51-
version = '2.0.0-rc6'
52-
53-
[dev-dependencies.sp-io]
54-
default-features = false
55-
git = 'https://github.com/paritytech/substrate.git'
56-
tag = 'v2.0.0-rc6'
57-
version = '2.0.0-rc6'
58-
5914
[package.metadata.docs.rs]
6015
targets = ['x86_64-unknown-linux-gnu']
6116

17+
[dependencies]
18+
serde = { version = "1.0.116", optional = true }
19+
20+
# Substrate dependencies
21+
codec = { default-features = false, features = ['derive'], package = 'parity-scale-codec', version = '1.3.5' }
22+
frame-support = { default-features = false, version = '2.0.0' }
23+
frame-system = { default-features = false, version = '2.0.0' }
24+
sp-runtime = { default-features = false, version = '2.0.0' }
25+
sp-std = { default-features = false, version = '2.0.0' }
26+
27+
[dev-dependencies]
28+
sp-core = { default-features = false, version = '2.0.0' }
29+
sp-io = { default-features = false, version = '2.0.0' }
30+
6231
[features]
6332
default = ['std']
6433
std = [

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Compatible with Substrate v2.0.0-rc6](https://img.shields.io/badge/Substrate-v2.0.0--rc6-E6007A)](https://github.com/paritytech/substrate/releases/tag/v2.0.0-rc6)
1+
[![Compatible with Substrate v2.0.0](https://img.shields.io/badge/Substrate-v2.0.0-E6007A)](https://github.com/paritytech/substrate/releases/tag/v2.0.0)
22

33
# Commodities FRAME Pallet: NFTs for Substrate
44

src/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl system::Trait for Test {
4242
type MaximumBlockLength = MaximumBlockLength;
4343
type AvailableBlockRatio = AvailableBlockRatio;
4444
type Version = ();
45-
type ModuleToIndex = ();
45+
type PalletInfo = ();
4646
type AccountData = ();
4747
type OnNewAccount = ();
4848
type OnKilledAccount = ();

0 commit comments

Comments
 (0)