Skip to content
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

Merged
merged 96 commits into from
Dec 8, 2023

Conversation

lrazovic
Copy link
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
@@ -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
Copy link
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 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 = ();
Copy link
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

/// 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;
Copy link
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

@@ -155,6 +155,50 @@ pub fn get_polkadot_base_chain_spec() -> Result<ChainSpec, String> {
))
}

pub fn get_rococo_base_chain_spec() -> Result<ChainSpec, String> {
Copy link
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, ...

@@ -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>,
Copy link
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

@@ -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> {
Copy link
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
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
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 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
};
use xcm_executor::traits::{Error, JustTry, MatchesFungibles, Properties, ShouldExecute};
Copy link
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