Skip to content

Feature/plmc-377-update-to-polkadot-100#123

Merged
lrazovic merged 96 commits intomainfrom
feature/plmc-377-update-to-polkadot-100
Dec 8, 2023
Merged

Feature/plmc-377-update-to-polkadot-100#123
lrazovic merged 96 commits intomainfrom
feature/plmc-377-update-to-polkadot-100

Conversation

@lrazovic
Copy link
Copy Markdown
Member

@lrazovic lrazovic commented Dec 6, 2023

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
@lrazovic lrazovic changed the base branch from main to feature/plmc-365-disallow-duplicated-migrations-on-polimec-receiver December 6, 2023 17:12

# This is the 2nd stage: a very small image where we copy the Polkadot binary."
FROM gcr.io/distroless/cc
FROM debian:bookworm-slim
Copy link
Copy Markdown
Member Author

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 ReserveIdentifier = [u8; 8];
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeHoldReason = ();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HoldIdentifier is now RuntimeHoldReason

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;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Index is now Nonce

))
}

pub fn get_rococo_base_chain_spec() -> Result<ChainSpec, String> {
Copy link
Copy Markdown
Member Author

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, ...

project_ticket_size: TicketSize<BalanceOf<T>>,
bid_id: u32,
now: BlockNumberOf<T>,
now: BlockNumberFor<T>,
Copy link
Copy Markdown
Member Author

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

#[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> {
Copy link
Copy Markdown
Member Author

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

Comment on lines -58 to -61
pub enum TestRuntime where
Block = Block,
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic,
Copy link
Copy Markdown
Member Author

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> {
Copy link
Copy Markdown
Member Author

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)]

@lrazovic lrazovic self-assigned this Dec 7, 2023
@lrazovic lrazovic requested review from JuaniRios and vstam1 December 7, 2023 14:03
@lrazovic lrazovic changed the base branch from feature/plmc-365-disallow-duplicated-migrations-on-polimec-receiver to main December 7, 2023 14:50
@lrazovic lrazovic marked this pull request as ready for review December 7, 2023 15:21
SiblingParachainAsNative, SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32,
SovereignSignedViaLocation, TakeWeightCredit, UsingComponents, WithComputedOrigin,
};
use xcm_executor::traits::{Error, JustTry, MatchesFungibles, Properties, ShouldExecute};
Copy link
Copy Markdown
Member Author

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

@lrazovic lrazovic merged commit 0f4573c into main Dec 8, 2023
@JuaniRios JuaniRios deleted the feature/plmc-377-update-to-polkadot-100 branch March 26, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants