Skip to content

Commit

Permalink
Merge pull request #60 from r0gue-io/al3mart/fix-paraid-zombienet
Browse files Browse the repository at this point in the history
fix: use 9090 as pop node id
  • Loading branch information
al3mart authored Mar 12, 2024
2 parents 1f49718 + a39b1c2 commit a2532ad
Show file tree
Hide file tree
Showing 5 changed files with 790 additions and 844 deletions.
2 changes: 1 addition & 1 deletion src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub(crate) mod add;
pub(crate) mod build;
pub(crate) mod call;
pub(crate) mod new;
pub(crate) mod add;
pub(crate) mod test;
pub(crate) mod up;
47 changes: 23 additions & 24 deletions src/engines/pallet_engine/pallet_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,39 @@ use syn::Ident;
/// Format containing necessary information for appending pallets
#[derive(Debug)]
pub(super) struct AddPalletEntry {
pub(super) index: Option<u8>,
pub(super) path: Ident,
pub(super) name: Ident,
pub(super) index: Option<u8>,
pub(super) path: Ident,
pub(super) name: Ident,
}
impl AddPalletEntry {
pub(super) fn new(index: Option<u8>, path: &str, name: &str) -> Self {
let path = Ident::new(path, proc_macro2::Span::call_site());
let name = Ident::new(name, proc_macro2::Span::call_site());
Self { index, path, name }
}
pub(super) fn new(index: Option<u8>, path: &str, name: &str) -> Self {
let path = Ident::new(path, proc_macro2::Span::call_site());
let name = Ident::new(name, proc_macro2::Span::call_site());
Self { index, path, name }
}
}

impl From<ReadPalletEntry> for AddPalletEntry {
fn from(value: ReadPalletEntry) -> Self {
todo!("")
}
fn from(value: ReadPalletEntry) -> Self {
todo!("")
}
}


/// All information that's needed to represent a pallet in a construct_runtime! invocation
/// The processing must be based on the context i.e. the type of RuntimeDeclaration in the runtime
pub(super) struct ReadPalletEntry {
/// Pallet identifier. "System" in `System: frame_system = 1`
pub(super) entry: String,
/// Stores a tuple of information (index, instance). For single instances, instance = 0
pub(super) numbers: Numbers,
/// Pallet identifier. "System" in `System: frame_system = 1`
pub(super) entry: String,
/// Stores a tuple of information (index, instance). For single instances, instance = 0
pub(super) numbers: Numbers,
}
#[derive(Default, Debug)]
pub(super) struct Numbers {
/// Stores the first index as parsed from input file
pub(super) index: Option<u8>,
/// Counts the number of instances in runtime file
/// 0 means only 1 unique instance was found
/// 1 means the pallet is using instance syntax pallet::<Instance1>
/// >1 means multiple pallet instances were found
pub(super) instance: u8,
}
/// Stores the first index as parsed from input file
pub(super) index: Option<u8>,
/// Counts the number of instances in runtime file
/// 0 means only 1 unique instance was found
/// 1 means the pallet is using instance syntax pallet::<Instance1>
/// >1 means multiple pallet instances were found
pub(super) instance: u8,
}
Loading

0 comments on commit a2532ad

Please sign in to comment.