-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat: upgrade to Polkadot v0.9.32 #434
Conversation
type Event = Event; | ||
type Call = Call; | ||
type RuntimeEvent = RuntimeEvent; | ||
type RuntimeCall = RuntimeCall; |
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.
The PR description says that the convetion seems to be to keep using Call
, Event
, Call
etc for pallets, but I see here that that is not really the case. I guess we should also introduce the change in our pallets.
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.
You are right. Will fix that!
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.
runtimes/standalone/src/lib.rs
Outdated
type Call = Call; | ||
type Origin = Origin; | ||
type RuntimeEvent = RuntimeEvent; | ||
type Call = RuntimeCall; |
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.
The sudo pallet uses RuntimeCall
, so I guess we should use the same here.
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.
runtimes/standalone/src/lib.rs
Outdated
type Origin = Origin; | ||
type RuntimeEvent = RuntimeEvent; | ||
type Call = RuntimeCall; | ||
type Origin = RuntimeOrigin; |
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 am not sure at this point if keeping Origin
makes sense anymore, or if we should also rename this to RuntimeOrigin
.
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.
/// Executive: handles dispatch to the various Pallets. | ||
pub type Executive = | ||
frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllPalletsWithSystem, ()>; | ||
|
||
#[cfg(feature = "runtime-benchmarks")] | ||
#[macro_use] | ||
extern crate frame_benchmarking; |
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.
Interesting.. Why do we need this here?
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't this simply be done inside the benche
module, since everything only exist for runtime-benchmarks
?
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.
We're just following upstream here. See this comment.
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 a comment in code why we have this there?
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.
nodes/parachain/src/command.rs
Outdated
@@ -336,6 +336,16 @@ pub fn run() -> Result<()> { | |||
)?; | |||
cmd.run(partials.client) | |||
}), | |||
#[cfg(not(feature = "runtime-benchmarks"))] | |||
(BenchmarkCmd::Storage(_), _) => { | |||
return Err(sc_cli::Error::Input( |
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.
Clippy noticed the return statement is unneeded.
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.
@@ -28,7 +28,9 @@ use frame_support::{ | |||
use sp_std::{marker::PhantomData, vec}; | |||
|
|||
#[cfg(feature = "try-runtime")] | |||
use frame_support::traits::OnRuntimeUpgradeHelpersExt; | |||
use frame_support::codec::{Decode, Encode}; |
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 guess these can be combined?
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.
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.
Would like to have some insight on a few changes. Looks good otherwise. Nice set of changes that were included in the last updates.
fixes KILTProtocol/ticket#2289 and KILTProtocol/ticket#2296
subalfred check features
in all crates)add
+list_benchmark!
paritytech/substrate#10592 (see runtime changes in dd81eac)Summary of changes (Polkadot v0.9.30-0.9.32)
Breaking Changes
Origin
-->RuntimeOrigin
Call
-->RuntimeCall
Event
-->RuntimeEvent
Convention seems to be to keepUpdate: We useEvent
,Call
,Origin
for inner pallet usage, e.g.Did::Origin
Runtime
prefix internally as wellNoteworthy PRs
transaction
RPC API paritytech/substrate#12328polkadot-parachain --alice --collator --relay-chain-rpc-url <rpc-websocket-url>
wasmtime
-based WASM executor by default paritytech/substrate#12486Scheduler, Preimage, Democracy Migration
Call
paritytech/substrate#11649Call
paritytech/substrate#11649 (comment)Result of
try-runtime
against Spiritnet on Friday Nov 18, 2022:Checklist:
array[3]
useget(3)
, ...)