-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update code snippets and move to rust workspace #302
Open
0xLucca
wants to merge
25
commits into
master
Choose a base branch
from
0xlucca/update-code-snippets
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6,251
−2,593
Open
Changes from 18 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
1c9c2a9
Add rust-test
0xLucca 70a36e5
asd
0xLucca e6f2010
Update build-custom-pallet
0xLucca d77895b
format toml
0xLucca 231f17b
Update add-pallets-to-runtime
0xLucca 1480b1c
Remove testing workflow
0xLucca 209ea92
Merge branch 'master' into 0xlucca/update-code-snippets
0xLucca e15079f
Update pallet-benchmarking
0xLucca dac5d3e
Fix docs
0xLucca 061aa1a
Merge branch 'master' into 0xlucca/update-code-snippets
0xLucca 7a50528
Format files and add license
0xLucca 4081c05
Remove build-custom-pallet project
0xLucca 3c1ecc1
Fix
0xLucca 4d9abe7
Update pallet unit testing
0xLucca 438099a
Update add pallets to the runtime
0xLucca 9dee783
Update pallet benchmarking
0xLucca e532747
Relocate project
0xLucca f4af08c
Update package names
0xLucca 3e1dbd0
Apply suggestions from code review
0xLucca 5a74bf0
Apply suggestions
0xLucca fc092ad
Apply suggestions from code review
0xLucca 1cad63d
Apply suggestions
0xLucca 6aa6e3c
Add feature flag to make clippy happy
0xLucca 8bf6057
remove clippy check for all features (#314)
UtkarshBhardwaj007 552e198
Apply suggestions
0xLucca 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 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,35 +1,123 @@ | ||
[workspace.package] | ||
license = "MIT-0" | ||
authors = ["Parity Technologies <[email protected]>", "Web3 Foundation", "PaperMoon.io"] | ||
authors = [ | ||
"Parity Technologies <[email protected]>", | ||
"Web3 Foundation", | ||
"PaperMoon.io", | ||
] | ||
homepage = "docs.polkadot.com" | ||
repository = "https://github.com/paritytech/polkadot-sdk-parachain-template.git" | ||
edition = "2021" | ||
|
||
[workspace] | ||
members = [ | ||
"tutorials/polkadot-sdk/parachains/zero-to-hero/build-custom-pallet" | ||
] | ||
members = ["tutorials/polkadot-sdk/parachains/zero-to-hero/runtime"] | ||
resolver = "2" | ||
|
||
[workspace.dependencies] | ||
clap = { version = "4.5.10" } | ||
codec = { version = "3.6.12", default-features = false, package = "parity-scale-codec" } | ||
frame-support = { version = "38.0.0", default-features = false } | ||
frame-system = { version = "38.0.0", default-features = false } | ||
scale-info = { version = "2.11.1", default-features = false } | ||
sp-runtime = { version = "39.0.5", default-features = false } | ||
color-print = { version = "0.3.4" } | ||
cumulus-client-cli = { version = "0.18.0", default-features = false } | ||
cumulus-client-collator = { version = "0.18.0", default-features = false } | ||
cumulus-client-consensus-aura = { version = "0.18.0", default-features = false } | ||
cumulus-client-consensus-common = { version = "0.18.0", default-features = false } | ||
cumulus-client-consensus-proposer = { version = "0.16.0", default-features = false } | ||
cumulus-client-service = { version = "0.19.0", default-features = false } | ||
cumulus-primitives-core = { version = "0.16.0", default-features = false } | ||
cumulus-primitives-parachain-inherent = { version = "0.16.0", default-features = false } | ||
cumulus-relay-chain-interface = { version = "0.18.0", default-features = false } | ||
docify = { version = "0.2.8" } | ||
frame-benchmarking = { version = "38.0.0", default-features = false } | ||
frame-benchmarking-cli = { version = "43.0.0", default-features = false } | ||
futures = { version = "0.3.30" } | ||
jsonrpsee = { version = "0.24.3" } | ||
log = { version = "0.4.22", default-features = false } | ||
pallet-transaction-payment-rpc = { version = "41.0.0", default-features = false } | ||
polkadot-cli = { version = "19.0.0", default-features = false } | ||
polkadot-primitives = { version = "16.0.0", default-features = false } | ||
prometheus-endpoint = { version = "0.17.0", default-features = false, package = "substrate-prometheus-endpoint" } | ||
sc-basic-authorship = { version = "0.45.0", default-features = false } | ||
sc-chain-spec = { version = "38.0.0", default-features = false } | ||
sc-cli = { version = "0.47.0", default-features = false } | ||
sc-client-api = { version = "37.0.0", default-features = false } | ||
sc-consensus = { version = "0.44.0", default-features = false } | ||
sc-executor = { version = "0.40.1", default-features = false } | ||
sc-network = { version = "0.45.0", default-features = false } | ||
sc-network-sync = { version = "0.44.0", default-features = false } | ||
sc-offchain = { version = "40.0.0", default-features = false } | ||
sc-rpc = { version = "40.0.0", default-features = false } | ||
sc-service = { version = "0.46.0", default-features = false } | ||
sc-sysinfo = { version = "38.0.0", default-features = false } | ||
sc-telemetry = { version = "25.0.0", default-features = false } | ||
sc-tracing = { version = "37.0.1", default-features = false } | ||
sc-transaction-pool = { version = "37.0.0", default-features = false } | ||
sc-transaction-pool-api = { version = "37.0.0", default-features = false } | ||
serde = { version = "1.0.209", default-features = false } | ||
serde_json = { version = "1.0.127", default-features = false } | ||
sp-api = { version = "34.0.0", default-features = false } | ||
sp-block-builder = { version = "34.0.0", default-features = false } | ||
sp-blockchain = { version = "37.0.1", default-features = false } | ||
sp-consensus-aura = { version = "0.40.0", default-features = false } | ||
sp-core = { version = "34.0.0", default-features = false } | ||
sp-genesis-builder = { version = "0.15.1", default-features = false } | ||
sp-io = { version = "38.0.0", default-features = false } | ||
sp-keystore = { version = "0.40.0", default-features = false } | ||
sp-runtime = { version = "39.0.1", default-features = false } | ||
sp-timestamp = { version = "34.0.0", default-features = false } | ||
substrate-frame-rpc-system = { version = "39.0.0", default-features = false } | ||
xcm = { version = "14.2.0", default-features = false, package = "staging-xcm" } | ||
substrate-build-script-utils = { version = "11.0.0", default-features = false } | ||
cumulus-pallet-aura-ext = { version = "0.17.0", default-features = false } | ||
cumulus-pallet-parachain-system = { version = "0.17.0", default-features = false } | ||
cumulus-pallet-session-benchmarking = { version = "19.0.0", default-features = false } | ||
cumulus-pallet-xcm = { version = "0.17.0", default-features = false } | ||
cumulus-pallet-xcmp-queue = { version = "0.17.0", default-features = false } | ||
cumulus-primitives-aura = { version = "0.15.0", default-features = false } | ||
cumulus-primitives-storage-weight-reclaim = { version = "8.0.0", default-features = false } | ||
cumulus-primitives-utility = { version = "0.17.0", default-features = false } | ||
frame-executive = { version = "38.0.0", default-features = false } | ||
frame-metadata-hash-extension = { version = "0.6.0", default-features = false } | ||
frame-support = { version = "38.0.0", default-features = false } | ||
frame-system = { version = "38.0.0", default-features = false } | ||
frame-system-benchmarking = { version = "38.0.0", default-features = false } | ||
frame-system-rpc-runtime-api = { version = "34.0.0", default-features = false } | ||
frame-try-runtime = { version = "0.44.0", default-features = false } | ||
hex-literal = { version = "0.4.1", default-features = false } | ||
pallet-aura = { version = "37.0.0", default-features = false } | ||
pallet-authorship = { version = "38.0.0", default-features = false } | ||
pallet-balances = { version = "39.0.0", default-features = false } | ||
pallet-collator-selection = { version = "19.0.0", default-features = false } | ||
pallet-message-queue = { version = "41.0.0", default-features = false } | ||
pallet-session = { version = "38.0.0", default-features = false } | ||
pallet-sudo = { version = "38.0.0", default-features = false } | ||
pallet-timestamp = { version = "37.0.0", default-features = false } | ||
pallet-transaction-payment = { version = "38.0.0", default-features = false } | ||
pallet-transaction-payment-rpc-runtime-api = { version = "38.0.0", default-features = false } | ||
pallet-xcm = { version = "17.0.0", default-features = false } | ||
parachain-info = { version = "0.17.0", default-features = false, package = "staging-parachain-info" } | ||
parachains-common = { version = "18.0.0", default-features = false } | ||
polkadot-parachain-primitives = { version = "14.0.0", default-features = false } | ||
polkadot-runtime-common = { version = "17.0.0", default-features = false } | ||
scale-info = { version = "2.11.1", default-features = false } | ||
smallvec = { version = "1.11.0", default-features = false } | ||
sp-inherents = { version = "34.0.0", default-features = false } | ||
sp-offchain = { version = "34.0.0", default-features = false } | ||
sp-session = { version = "36.0.0", default-features = false } | ||
sp-transaction-pool = { version = "34.0.0", default-features = false } | ||
sp-version = { version = "37.0.0", default-features = false } | ||
xcm-builder = { version = "17.0.0", default-features = false, package = "staging-xcm-builder" } | ||
xcm-executor = { version = "17.0.0", default-features = false, package = "staging-xcm-executor" } | ||
substrate-wasm-builder = { version = "24.0.1", default-features = false } | ||
|
||
[workspace.lints.rust] | ||
suspicious_double_ref_op = { level = "allow", priority = 2 } | ||
# `substrate_runtime` is a common `cfg` condition name used in the repo. | ||
unexpected_cfgs = { level = "warn", check-cfg = [ | ||
'cfg(build_opt_level, values("3"))', | ||
'cfg(build_profile, values("debug", "release"))', | ||
'cfg(enable_alloc_error_handler)', | ||
'cfg(fuzzing)', | ||
'cfg(substrate_runtime)', | ||
'cfg(build_opt_level, values("3"))', | ||
'cfg(build_profile, values("debug", "release"))', | ||
'cfg(enable_alloc_error_handler)', | ||
'cfg(fuzzing)', | ||
'cfg(substrate_runtime)', | ||
] } | ||
|
||
[workspace.lints.clippy] | ||
|
@@ -56,4 +144,4 @@ unit_arg = { level = "allow", priority = 2 } # stylistic | |
unnecessary_cast = { level = "allow", priority = 2 } # Types may change | ||
useless_conversion = { level = "allow", priority = 2 } # Types may change | ||
while_immutable_condition = { level = "allow", priority = 2 } # false positives | ||
zero-prefixed-literal = { level = "allow", priority = 2 } # 00_1000_000 | ||
zero-prefixed-literal = { level = "allow", priority = 2 } # 00_1000_000 |
198 changes: 0 additions & 198 deletions
198
...ets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime/Cargo.toml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
FYI, if you use the umbrella crate here, you will have a much easier time updating dependencies.