-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature/plmc-377-update-to-polkadot-100 #123
Conversation
automatic hrmp connection working Genesis instantiator usage and first draft of HRMP connection formatting feature propagation cleanup new node functioning. genesis not yet sure if working new node functioning. genesis not yet sure if working somehow compiling and test passing save save save feat(287): para_id setting extrinsic implemented and tested save same log crate across workspace same log crate across workspace save save save feat(287): changed tight couple of pallet_xcm by extracting sender trait feat(287): first commit feat(285): POC Hrmp automatic acceptance
# Conflicts: # Cargo.lock # Cargo.toml # integration-tests/src/tests/mod.rs # pallets/funding/Cargo.toml # pallets/funding/src/functions.rs # pallets/funding/src/instantiator.rs # pallets/funding/src/lib.rs # pallets/funding/src/mock.rs # pallets/funding/src/types.rs # pallets/xcm-executor/src/config.rs # pallets/xcm-executor/src/lib.rs # runtimes/standalone/src/lib.rs # runtimes/testnet/src/xcm_config.rs
…s-polimecs-balance-and-pallet # Conflicts: # Cargo.toml
… new map of query id -> unconfirmed transactions
@@ -6,11 +6,11 @@ COPY . /polimec | |||
RUN cargo build --locked --release -p $PACKAGE | |||
|
|||
# This is the 2nd stage: a very small image where we copy the Polkadot binary." | |||
FROM gcr.io/distroless/cc | |||
FROM debian:bookworm-slim |
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.
This change is necessary in order to build an image compatible with Debian 12 that still uses glibc
2.36 when the latest version is 2.38
type MaxFreezes = ConstU32<0>; | ||
type MaxHolds = ConstU32<0>; | ||
type MaxLocks = ConstU32<50>; | ||
type MaxReserves = ConstU32<50>; | ||
type ReserveIdentifier = [u8; 8]; | ||
/// The ubiquitous event type. | ||
type RuntimeEvent = RuntimeEvent; | ||
type RuntimeHoldReason = (); |
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.
HoldIdentifier
is now RuntimeHoldReason
/// The lookup mechanism to get account ID from whatever is passed in dispatchers. | ||
type Lookup = AccountIdLookup<AccountId, ()>; | ||
type MaxConsumers = frame_support::traits::ConstU32<16>; | ||
/// The index type for storing how many extrinsics an account has signed. | ||
type Nonce = Nonce; |
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.
Index
is now Nonce
@@ -155,6 +155,50 @@ pub fn get_polkadot_base_chain_spec() -> Result<ChainSpec, String> { | |||
)) | |||
} | |||
|
|||
pub fn get_rococo_base_chain_spec() -> Result<ChainSpec, String> { |
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 minimal "base" runtime is now a Parachain on Rococo and can be used to test runtime-upgrades, new pallets, ...
@@ -910,7 +911,7 @@ impl<T: Config> Pallet<T> { | |||
funding_asset: AcceptedFundingAsset, | |||
project_ticket_size: TicketSize<BalanceOf<T>>, | |||
bid_id: u32, | |||
now: BlockNumberOf<T>, | |||
now: BlockNumberFor<T>, |
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.
Frame System now exposes BlockNumberFor
@@ -1376,16 +1376,16 @@ pub mod pallet { | |||
|
|||
#[pallet::genesis_build] | |||
#[cfg(not(all(feature = "testing-node", feature = "std")))] | |||
impl<T: Config> GenesisBuild<T> for GenesisConfig<T> { | |||
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> { |
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.
GenesisBuild<T>
is deprecated and replaced by BuildGenesisConfig
pub enum TestRuntime where | ||
Block = Block, | ||
NodeBlock = Block, | ||
UncheckedExtrinsic = UncheckedExtrinsic, |
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 where
block in the construct_runtime!
macro is now detracted and it's not needed anymore.
} | ||
|
||
#[cfg(feature = "std")] | ||
impl<T: Config> Default for GenesisConfig<T> { |
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.
This is now derived using #[derive(frame_support::DefaultNoBound)]
…mec-receiver' into feature/plmc-377-update-to-polkadot-100
…mec-receiver' into feature/plmc-377-update-to-polkadot-100
}; | ||
use xcm_executor::traits::{Error, JustTry, MatchesFungibles, Properties, ShouldExecute}; |
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 Convert trait from xcm_executor
was removed, with @vstam1 we replaced it using the MaybeEquivalence
trait from sp_runtime
Convert
trait from thexcm_executor
.construct_runtime!
macro is the one change in the right direction that allows difficult syntax to be removed from inside an already quite complicated macro.Block
,NodeBlock
andUncheckedExtrinsic
toframe_system
, insteadconstruct_runtime
paritytech/substrate#14126GenesisBuild<T,I>
is now deprecated.BuildGenesisConfig
is the new cool kids on the block .GenesisBuild<T,I>
deprecated.BuildGenesisConfig
added. paritytech/substrate#14306