This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Move all example pallets under examples folder.
#10215
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e78d4b2
Put all examples under one folder
jimmychu0807 8ba6c39
Updated Cargo.toml
jimmychu0807 79e4109
updated for ci script
jimmychu0807 d53733c
update
jimmychu0807 ca82177
Merge remote-tracking branch 'gh-parity/master' into jc/move-examples
jimmychu0807 38c5230
Added notes that example pallets are not meant to be used in production.
jimmychu0807 e9e772f
updated
jimmychu0807 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [package] | ||
| name = "pallet-example" | ||
| name = "pallet-example-basic" | ||
| version = "4.0.0-dev" | ||
| authors = ["Parity Technologies <[email protected]>"] | ||
| edition = "2021" | ||
|
|
@@ -14,18 +14,19 @@ targets = ["x86_64-unknown-linux-gnu"] | |
|
|
||
| [dependencies] | ||
| codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } | ||
| scale-info = { version = "1.0", default-features = false, features = ["derive"] } | ||
| frame-support = { version = "4.0.0-dev", default-features = false, path = "../support" } | ||
| frame-system = { version = "4.0.0-dev", default-features = false, path = "../system" } | ||
| pallet-balances = { version = "4.0.0-dev", default-features = false, path = "../balances" } | ||
| sp-runtime = { version = "4.0.0-dev", default-features = false, path = "../../primitives/runtime" } | ||
| sp-std = { version = "4.0.0-dev", default-features = false, path = "../../primitives/std" } | ||
| sp-io = { version = "4.0.0-dev", default-features = false, path = "../../primitives/io" } | ||
| frame-benchmarking = { version = "4.0.0-dev", default-features = false, path = "../benchmarking", optional = true } | ||
| log = { version = "0.4.14", default-features = false } | ||
| scale-info = { version = "1.0", default-features = false, features = ["derive"] } | ||
|
|
||
| frame-benchmarking = { version = "4.0.0-dev", default-features = false, path = "../../benchmarking", optional = true } | ||
| frame-support = { version = "4.0.0-dev", default-features = false, path = "../../support" } | ||
| frame-system = { version = "4.0.0-dev", default-features = false, path = "../../system" } | ||
| pallet-balances = { version = "4.0.0-dev", default-features = false, path = "../../balances" } | ||
| sp-io = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/io" } | ||
| sp-runtime = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/runtime" } | ||
| sp-std = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/std" } | ||
|
|
||
| [dev-dependencies] | ||
| sp-core = { version = "4.0.0-dev", path = "../../primitives/core", default-features = false } | ||
| sp-core = { version = "4.0.0-dev", path = "../../../primitives/core", default-features = false } | ||
|
|
||
| [features] | ||
| default = ["std"] | ||
|
|
||
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
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
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
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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <!-- markdown-link-check-disable --> | ||
| # Parallel Tasks Example Pallet | ||
|
|
||
| This example pallet demonstrates parallelizing validation of the enlisted participants (see | ||
| `enlist_participants` dispatch). | ||
|
|
||
| **This pallet serves as an example and is not meant to be used in production.** |
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
File renamed without changes.
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.
Can we add some information that this is highly experimental and not really supported? Maybe in the crate level docs?
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.
I updated with a note that these example pallets are not meant to be used in production in this commit.