-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Coretime Chain #1479
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
Merged
Coretime Chain #1479
Changes from 92 commits
Commits
Show all changes
136 commits
Select commit
Hold shift + click to select a range
5d418be
coretime node
joepetrowski b5cb317
runtime
joepetrowski e88c889
updates since monorepo
joepetrowski 8f6acd9
scripts
joepetrowski f193d9a
import path fix
joepetrowski f0c2ffe
propagate features
joepetrowski f90d059
propagate features again
joepetrowski e2c25a1
add experimental feature
joepetrowski 13d3cbe
propagate features again
joepetrowski e672f78
somehow escaped fmt
joepetrowski e965b35
Merge remote-tracking branch 'origin' into joe-coretime-chain
joepetrowski 1063a6a
Merge branch 'master' into joe-coretime-chain
joepetrowski be8b135
with trailing topic
joepetrowski 87720cc
Merge remote-tracking branch 'origin' into joe-coretime-chain
joepetrowski d2753d9
add node requirements for rococo and westend runtimes
joepetrowski 9affefe
add separate runtimes for rococo and westend
joepetrowski 6f579d1
missing rococo parts
joepetrowski d9e8b85
actually include missing parts in commit
joepetrowski 3840349
prelim broker integration to rococo
joepetrowski df9be31
Merge remote-tracking branch 'origin' into joe-coretime-chain
joepetrowski 9c283dd
merge master
joepetrowski 26bf95c
send coretime revenue to staking pot
joepetrowski efed2e2
Merge remote-tracking branch 'origin' into joe-coretime-chain
joepetrowski 96625bf
merge master
joepetrowski cfee13b
coretimeallocator
joepetrowski b196f46
merge master
joepetrowski 6a1d1ad
Remove native runtime constants from coretime runtimes
seadanda f00c403
Make runtimes compile
seadanda fa231ef
Add assign_core and mock CoretimeProvider
seadanda db713a7
Fix XCM parent/sibling delivery fee price
seadanda cc88547
Merge branch 'master' into joe-coretime-chain
seadanda 1812039
Add TransactAsset and DeliveryHelper to runtimes
seadanda 291d7f9
Disable calls to broker pallet
seadanda 3035ddd
Rename parachain-info in coretime
seadanda f63e1b9
Remove coretime-kusama and -polkadot
seadanda 6ef731d
Remove native coretime runtimes from parachain-bin
seadanda 0238143
Update coretime message queues for 1246
seadanda 619c38e
Include all pallets in define_benchmarks
seadanda 99cf792
Add missing licenses in coretime runtimes
seadanda 61b3933
Add rest of CoretimeInterface mocks
seadanda af2ae03
Revert over-zealous benchmark additions
seadanda b1a892b
Merge branch 'master' into joe-coretime-chain
seadanda b0f8f1d
Bootstrap weights
seadanda c4f4b64
Merge branch 'master' into joe-coretime-chain
seadanda 9163ebe
Fix pallet_xcm benchmarking after master merge
seadanda 594c0f1
Merge branch 'master' into joe-coretime-chain
seadanda 36ba5f2
Impl WeightInfo for () to avoid missing chainspec
seadanda fcd1bdc
Merge branch 'master' into joe-coretime-chain
seadanda c4aa490
Fix missing bracket from github merge editor
seadanda 3508e8c
Switch out mock for fixed indices
seadanda 4b51067
Remove kusama and polkadot coretime chainspecs
seadanda 4bf348e
Reorder generics in CoreProviderCalls
seadanda b639507
modify command
0xmovses 6943cea
Revert "modify command"
0xmovses c35a889
Generate chain specs and head data
seadanda 563aee9
Add rococo-coretime-local
seadanda 97039ec
Add boot nodes, invulnerables and session keys
seadanda 5df967e
Revert "Impl WeightInfo for () to avoid missing chainspec"
seadanda 60fde52
Remove unnecessary files
seadanda f1aca09
Add coretime-rococo live chainspec
seadanda ea2892c
Set origin to Native and add Decode trait bound
seadanda 9244059
Add broker weights
seadanda 8dea375
Add westend local and dev chainspecs
seadanda a378202
Merge branch 'master' into joe-coretime-chain
seadanda d7f8e0d
Merge branch 'master' into joe-coretime-chain
seadanda a5d14b4
Make chainspec script run for westend
seadanda eac1350
Regenerate coretime-rococo live chainspec
seadanda a79f22e
Apply rustdoc suggestions from Liam
seadanda 385f2c5
Fix versions
seadanda 85e719e
Add PRDoc
seadanda 76e3d80
Merge branch 'master' into joe-coretime-chain
seadanda 4f5f890
Run taplo
seadanda 26622ed
Add weights to broker and fix pallet_xcm weights
seadanda 7ae2594
Merge branch 'master' into joe-coretime-chain
seadanda 9d96d06
Run coretime-rococo weights
seadanda d2d6a57
Allow coretime-westend weights to be generated
seadanda 9dd867f
Merge branch 'master' into joe-coretime-chain
seadanda 18e34e5
Merge branch 'master' into joe-coretime-chain
seadanda 215458e
Merge branch 'master' into joe-coretime-chain
seadanda e502935
Merge branch 'master' into joe-coretime-chain
seadanda cd6c327
Use derive_impl in coretime runtimes
seadanda ee3e414
Merge branch 'master' into joe-coretime-chain
seadanda eb1ad61
Lint coretime runtimes
seadanda 45767ac
Apply suggestions from code review
seadanda c14f372
Rename CreditToStakingPot since nothing is at stake
seadanda 21c9019
set proper limits on leased and reserved cores
seadanda c9d389e
Fix license and SS58Prefix
seadanda da2c17e
Tidy up use statements
seadanda 4de01d0
Fix xcm_configs
seadanda fc2eb3d
Use more permissive weight limit, pending benchmarks
seadanda 0296b21
Add sudo to coretime-rococo
seadanda 37fe679
Add Alice as sudo at genesis
seadanda 97a7908
Apply suggestions from Basti code review
seadanda a7a7b44
Remove coretime-westend live chainspec
seadanda 70b1fba
Use specific types in BrokerRuntimePallets
seadanda b2de11c
Remove broker call filter
seadanda d13f255
Remove unused imports from review suggestions
seadanda db4a46d
Merge branch 'master' into joe-coretime-chain
seadanda a64f575
Use FungibleAdapter instead of deprecated CurrencyAdapter
seadanda 88b1ae4
Clean up construct runtime in coretime-westend
seadanda 6ebf9ce
Update cumulus/polkadot-parachain/src/chain_spec/coretime.rs
seadanda 9306337
Tidy up coretime chainspec configs
seadanda 64a5d68
Merge branch 'master' into joe-coretime-chain
seadanda 8f8598c
Remove deprecated DMP pallet and clean up imports
seadanda d7aba9a
Bring coretime-westend shell up to speed
seadanda 436b318
Merge branch 'master' into joe-coretime-chain
seadanda c901920
No need to be generic
bkchr 3d95892
More improvements
bkchr 7863975
".git/.scripts/commands/fmt/fmt.sh"
c62609d
Add try runtime check
bkchr 3d31cbc
Merge branch 'master' into joe-coretime-chain
bkchr 06ec872
Add short-benchmark jobs for coretime
bkontur a4dfce2
Add XcmpQueue v4 migration to coretime-rococo
seadanda b9a71fc
Use fixed `ParentRelayOrSiblingParachains`
seadanda 0775ab5
Fix timeslice value
seadanda b74ea86
Add imports to bko feedback
seadanda 7ada9ef
Apply suggestions from bko code review
seadanda 2a3e360
Fix Coretime relay pallet naming
seadanda b7160a8
Fix xcm benchmarks
seadanda b0bb91b
Fix benchmark
bkchr c60350c
Fix purchase bench
seadanda 90852d7
Extend required traits for BlockNumberProvider
bkchr c70f3d9
Switch broker to `BlockNumberProvider`
bkchr 2565ec2
Fix benchmarks
bkchr 0d1031a
Merge branch 'joe-coretime-chain' of github.com:paritytech/polkadot-s…
bkchr fc7b9f1
FMT
bkchr d9c9c1a
Clippy and make everything compile
bkchr 4c68675
Fix xcm benchmarks
seadanda 904105e
More fixes
bkchr b854d75
Merge branch 'joe-coretime-chain' of github.com:paritytech/polkadot-s…
bkchr 7a7f105
Ups
bkchr 0f2bddb
Remove unneeded config in bench from merge
seadanda 9cbefa2
Merge branch 'master' into joe-coretime-chain
seadanda ce8ed20
Merge branch 'master' into joe-coretime-chain
seadanda 60a0c16
Merge branch 'master' into joe-coretime-chain
seadanda bacb1c7
Merge branch 'master' into joe-coretime-chain
seadanda 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
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
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,4 @@ | ||
| # Coretime System Chain | ||
|
|
||
| Also known as the "Broker Chain". Described in | ||
| [RFC-0001](https://github.com/polkadot-fellows/RFCs/pull/1). |
200 changes: 200 additions & 0 deletions
200
cumulus/parachains/runtimes/coretime/coretime-rococo/Cargo.toml
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,200 @@ | ||
| [package] | ||
| name = "coretime-rococo-runtime" | ||
| version = "0.1.0" | ||
| authors.workspace = true | ||
| edition.workspace = true | ||
| description = "Rococo's Coretime parachain runtime" | ||
| license = "Apache-2.0" | ||
|
|
||
| [lints] | ||
| workspace = true | ||
|
|
||
| [build-dependencies] | ||
| substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", optional = true } | ||
|
|
||
| [dependencies] | ||
| codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } | ||
| hex-literal = { version = "0.4.1" } | ||
seadanda marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| log = { version = "0.4.20", default-features = false } | ||
| scale-info = { version = "2.9.0", default-features = false, features = ["derive"] } | ||
| serde = { version = "1.0.171", optional = true, features = ["derive"] } | ||
| smallvec = "1.11.0" | ||
|
|
||
| # Substrate | ||
| frame-benchmarking = { path = "../../../../../substrate/frame/benchmarking", default-features = false, optional = true } | ||
| frame-executive = { path = "../../../../../substrate/frame/executive", default-features = false } | ||
| frame-support = { path = "../../../../../substrate/frame/support", default-features = false } | ||
| frame-system = { path = "../../../../../substrate/frame/system", default-features = false } | ||
| frame-system-benchmarking = { path = "../../../../../substrate/frame/system/benchmarking", default-features = false, optional = true } | ||
| frame-system-rpc-runtime-api = { path = "../../../../../substrate/frame/system/rpc/runtime-api", default-features = false } | ||
| frame-try-runtime = { path = "../../../../../substrate/frame/try-runtime", default-features = false, optional = true } | ||
| pallet-aura = { path = "../../../../../substrate/frame/aura", default-features = false } | ||
| pallet-authorship = { path = "../../../../../substrate/frame/authorship", default-features = false } | ||
| pallet-balances = { path = "../../../../../substrate/frame/balances", default-features = false } | ||
| pallet-message-queue = { path = "../../../../../substrate/frame/message-queue", default-features = false } | ||
| pallet-broker = { path = "../../../../../substrate/frame/broker", default-features = false } | ||
| pallet-multisig = { path = "../../../../../substrate/frame/multisig", default-features = false } | ||
| pallet-session = { path = "../../../../../substrate/frame/session", default-features = false } | ||
| pallet-sudo = { path = "../../../../../substrate/frame/sudo", default-features = false } | ||
| pallet-timestamp = { path = "../../../../../substrate/frame/timestamp", default-features = false } | ||
| pallet-transaction-payment = { path = "../../../../../substrate/frame/transaction-payment", default-features = false } | ||
| pallet-transaction-payment-rpc-runtime-api = { path = "../../../../../substrate/frame/transaction-payment/rpc/runtime-api", default-features = false } | ||
| pallet-utility = { path = "../../../../../substrate/frame/utility", default-features = false } | ||
| sp-api = { path = "../../../../../substrate/primitives/api", default-features = false } | ||
| sp-block-builder = { path = "../../../../../substrate/primitives/block-builder", default-features = false } | ||
| sp-consensus-aura = { path = "../../../../../substrate/primitives/consensus/aura", default-features = false } | ||
| sp-core = { path = "../../../../../substrate/primitives/core", default-features = false } | ||
| sp-inherents = { path = "../../../../../substrate/primitives/inherents", default-features = false } | ||
| sp-genesis-builder = { path = "../../../../../substrate/primitives/genesis-builder", default-features = false } | ||
| sp-offchain = { path = "../../../../../substrate/primitives/offchain", default-features = false } | ||
| sp-runtime = { path = "../../../../../substrate/primitives/runtime", default-features = false } | ||
| sp-session = { path = "../../../../../substrate/primitives/session", default-features = false } | ||
| sp-std = { path = "../../../../../substrate/primitives/std", default-features = false } | ||
| sp-storage = { path = "../../../../../substrate/primitives/storage", default-features = false } | ||
| sp-transaction-pool = { path = "../../../../../substrate/primitives/transaction-pool", default-features = false } | ||
| sp-version = { path = "../../../../../substrate/primitives/version", default-features = false } | ||
|
|
||
| # Polkadot | ||
| pallet-xcm = { path = "../../../../../polkadot/xcm/pallet-xcm", default-features = false } | ||
| pallet-xcm-benchmarks = { path = "../../../../../polkadot/xcm/pallet-xcm-benchmarks", default-features = false, optional = true } | ||
| polkadot-core-primitives = { path = "../../../../../polkadot/core-primitives", default-features = false } | ||
| polkadot-parachain-primitives = { path = "../../../../../polkadot/parachain", default-features = false } | ||
| polkadot-runtime-common = { path = "../../../../../polkadot/runtime/common", default-features = false } | ||
| rococo-runtime-constants = { path = "../../../../../polkadot/runtime/rococo/constants", default-features = false } | ||
| xcm = { package = "staging-xcm", path = "../../../../../polkadot/xcm", default-features = false } | ||
| xcm-builder = { package = "staging-xcm-builder", path = "../../../../../polkadot/xcm/xcm-builder", default-features = false } | ||
| xcm-executor = { package = "staging-xcm-executor", path = "../../../../../polkadot/xcm/xcm-executor", default-features = false } | ||
|
|
||
| # Cumulus | ||
| cumulus-pallet-aura-ext = { path = "../../../../pallets/aura-ext", default-features = false } | ||
| cumulus-pallet-dmp-queue = { path = "../../../../pallets/dmp-queue", default-features = false } | ||
| cumulus-pallet-parachain-system = { path = "../../../../pallets/parachain-system", default-features = false, features = ["parameterized-consensus-hook"] } | ||
| cumulus-pallet-session-benchmarking = { path = "../../../../pallets/session-benchmarking", default-features = false } | ||
| cumulus-pallet-xcm = { path = "../../../../pallets/xcm", default-features = false } | ||
| cumulus-pallet-xcmp-queue = { path = "../../../../pallets/xcmp-queue", default-features = false } | ||
| cumulus-primitives-core = { path = "../../../../primitives/core", default-features = false } | ||
| cumulus-primitives-utility = { path = "../../../../primitives/utility", default-features = false } | ||
| pallet-collator-selection = { path = "../../../../pallets/collator-selection", default-features = false } | ||
| parachain-info = { package = "staging-parachain-info", path = "../../../pallets/parachain-info", default-features = false } | ||
| parachains-common = { path = "../../../common", default-features = false } | ||
|
|
||
| [features] | ||
| default = ["std"] | ||
| std = [ | ||
| "codec/std", | ||
| "cumulus-pallet-aura-ext/std", | ||
| "cumulus-pallet-dmp-queue/std", | ||
| "cumulus-pallet-parachain-system/std", | ||
| "cumulus-pallet-session-benchmarking/std", | ||
| "cumulus-pallet-xcm/std", | ||
| "cumulus-pallet-xcmp-queue/std", | ||
| "cumulus-primitives-core/std", | ||
| "cumulus-primitives-utility/std", | ||
| "frame-benchmarking?/std", | ||
| "frame-executive/std", | ||
| "frame-support/std", | ||
| "frame-system-benchmarking?/std", | ||
| "frame-system-rpc-runtime-api/std", | ||
| "frame-system/std", | ||
| "frame-try-runtime?/std", | ||
| "log/std", | ||
| "pallet-aura/std", | ||
| "pallet-authorship/std", | ||
| "pallet-balances/std", | ||
| "pallet-broker/std", | ||
| "pallet-collator-selection/std", | ||
| "pallet-message-queue/std", | ||
| "pallet-multisig/std", | ||
| "pallet-session/std", | ||
| "pallet-timestamp/std", | ||
| "pallet-transaction-payment-rpc-runtime-api/std", | ||
| "pallet-transaction-payment/std", | ||
| "pallet-utility/std", | ||
| "pallet-xcm-benchmarks?/std", | ||
| "pallet-xcm/std", | ||
| "parachain-info/std", | ||
| "parachains-common/std", | ||
| "polkadot-core-primitives/std", | ||
| "polkadot-parachain-primitives/std", | ||
| "polkadot-runtime-common/std", | ||
| "rococo-runtime-constants/std", | ||
| "scale-info/std", | ||
| "serde", | ||
| "sp-api/std", | ||
| "sp-block-builder/std", | ||
| "sp-consensus-aura/std", | ||
| "sp-core/std", | ||
| "sp-genesis-builder/std", | ||
| "sp-inherents/std", | ||
| "sp-offchain/std", | ||
| "sp-runtime/std", | ||
| "sp-session/std", | ||
| "sp-std/std", | ||
| "sp-storage/std", | ||
| "sp-transaction-pool/std", | ||
| "sp-version/std", | ||
| "substrate-wasm-builder", | ||
| "xcm-builder/std", | ||
| "xcm-executor/std", | ||
| "xcm/std", | ||
| "pallet-sudo/std" | ||
| ] | ||
|
|
||
| runtime-benchmarks = [ | ||
| "cumulus-pallet-dmp-queue/runtime-benchmarks", | ||
| "cumulus-pallet-parachain-system/runtime-benchmarks", | ||
| "cumulus-pallet-session-benchmarking/runtime-benchmarks", | ||
| "cumulus-pallet-xcmp-queue/runtime-benchmarks", | ||
| "cumulus-primitives-core/runtime-benchmarks", | ||
| "cumulus-primitives-utility/runtime-benchmarks", | ||
| "frame-benchmarking/runtime-benchmarks", | ||
| "frame-support/runtime-benchmarks", | ||
| "frame-system-benchmarking/runtime-benchmarks", | ||
| "frame-system/runtime-benchmarks", | ||
| "pallet-balances/runtime-benchmarks", | ||
| "pallet-broker/runtime-benchmarks", | ||
| "pallet-collator-selection/runtime-benchmarks", | ||
| "pallet-message-queue/runtime-benchmarks", | ||
| "pallet-multisig/runtime-benchmarks", | ||
| "pallet-timestamp/runtime-benchmarks", | ||
| "pallet-utility/runtime-benchmarks", | ||
| "pallet-xcm-benchmarks/runtime-benchmarks", | ||
| "pallet-xcm/runtime-benchmarks", | ||
| "parachains-common/runtime-benchmarks", | ||
| "polkadot-parachain-primitives/runtime-benchmarks", | ||
| "polkadot-runtime-common/runtime-benchmarks", | ||
| "sp-runtime/runtime-benchmarks", | ||
| "xcm-builder/runtime-benchmarks", | ||
| "xcm-executor/runtime-benchmarks", | ||
| "pallet-sudo/runtime-benchmarks" | ||
| ] | ||
|
|
||
| try-runtime = [ | ||
| "cumulus-pallet-aura-ext/try-runtime", | ||
| "cumulus-pallet-dmp-queue/try-runtime", | ||
| "cumulus-pallet-parachain-system/try-runtime", | ||
| "cumulus-pallet-xcm/try-runtime", | ||
| "cumulus-pallet-xcmp-queue/try-runtime", | ||
| "frame-executive/try-runtime", | ||
| "frame-support/try-runtime", | ||
| "frame-system/try-runtime", | ||
| "frame-try-runtime/try-runtime", | ||
| "pallet-aura/try-runtime", | ||
| "pallet-authorship/try-runtime", | ||
| "pallet-balances/try-runtime", | ||
| "pallet-broker/try-runtime", | ||
| "pallet-collator-selection/try-runtime", | ||
| "pallet-message-queue/try-runtime", | ||
| "pallet-multisig/try-runtime", | ||
| "pallet-session/try-runtime", | ||
| "pallet-timestamp/try-runtime", | ||
| "pallet-transaction-payment/try-runtime", | ||
| "pallet-utility/try-runtime", | ||
| "pallet-xcm/try-runtime", | ||
| "parachain-info/try-runtime", | ||
| "polkadot-runtime-common/try-runtime", | ||
| "sp-runtime/try-runtime", | ||
| "pallet-sudo/try-runtime" | ||
| ] | ||
|
|
||
| experimental = ["pallet-aura/experimental"] | ||
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.
Uh oh!
There was an error while loading. Please reload this page.