-
Notifications
You must be signed in to change notification settings - Fork 116
substrate 2.0.0-rc4 version upgrade #1072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
shamil-gadelshin
merged 12 commits into
Joystream:content_directory_second_try
from
iorveth:cont_dir_substrate_2_0
Aug 24, 2020
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f075c43
Cont dir 2.0 core logic migration completed
iorveth 7f28e4f
Tests: substrate 2.0 migration
iorveth 7d931c0
Cargo fmt
iorveth 2d20b23
Merge with new uniqueness feature
iorveth b570a9a
Update documentation
iorveth 0e4cfb1
Fix content directory Cargo.toml
iorveth a28e044
Convert validation and main logic errors to be compatible with decl_…
iorveth d2c1106
Merge new_uniqueness_feature branch
iorveth 0ed9ecd
Make core logic be compatible with substrate decl_error macro
iorveth 50c4f53
Merge new_uniqueness feature branch
iorveth 31504fd
Merge new uniquness feature
iorveth 65cdabb
Test coverage: complete substrate 2.0 errors conversion
iorveth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,30 @@ | ||
| [package] | ||
| name = 'substrate-content-directory-module' | ||
| version = '1.0.1' | ||
| name = 'pallet-content-directory' | ||
| version = '3.0.0' | ||
| authors = ['Joystream contributors'] | ||
| edition = '2018' | ||
|
|
||
| [dependencies] | ||
| hex-literal = '0.1.0' | ||
| codec = { package = 'parity-scale-codec', version = '1.0.0', default-features = false, features = ['derive'] } | ||
| rstd = { package = 'sr-std', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'} | ||
| runtime-primitives = { package = 'sr-primitives', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'} | ||
| srml-support = { package = 'srml-support', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'} | ||
| srml-support-procedural = { package = 'srml-support-procedural', git = 'https://github.com/paritytech/substrate.git', rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'} | ||
| system = { package = 'srml-system', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'} | ||
| timestamp = { package = 'srml-timestamp', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'} | ||
| runtime-io = { package = 'sr-io', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'} | ||
| # https://users.rust-lang.org/t/failure-derive-compilation-error/39062 | ||
| quote = '<=1.0.2' | ||
|
|
||
| [dependencies.serde] | ||
| features = ['derive'] | ||
| optional = true | ||
| version = '1.0.101' | ||
| sp-std = { package = 'sp-std', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'} | ||
| sp-runtime = { package = 'sp-runtime', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'} | ||
| frame-support = { package = 'frame-support', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'} | ||
| system = { package = 'frame-system', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'} | ||
| sp-arithmetic = { package = 'sp-arithmetic', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'} | ||
| codec = { package = 'parity-scale-codec', version = '1.3.1', default-features = false, features = ['derive'] } | ||
| serde = {version = '1.0.101', features = ['derive'], optional = true} | ||
|
|
||
| [dev-dependencies] | ||
| runtime-io = { package = 'sr-io', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'} | ||
| primitives = { package = 'substrate-primitives', git = 'https://github.com/paritytech/substrate.git', rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'} | ||
| sp-io = { package = 'sp-io', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'} | ||
| sp-core = { package = 'sp-core', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'} | ||
|
|
||
| [features] | ||
| default = ['std'] | ||
| std = [ | ||
| 'serde', | ||
| 'codec/std', | ||
| 'rstd/std', | ||
| 'runtime-io/std', | ||
| 'runtime-primitives/std', | ||
| 'srml-support/std', | ||
| 'sp-std/std', | ||
| 'sp-runtime/std', | ||
| 'frame-support/std', | ||
| 'system/std', | ||
| 'timestamp/std', | ||
| 'sp-arithmetic/std', | ||
| 'codec/std', | ||
| 'serde', | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you sort feature-definitions similar to dependencies order: it's easier to check them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, 0e4cfb1