mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 19:37:56 +00:00
Fix pallet's integration (#13056)
This commit is contained in:
@@ -1767,3 +1767,5 @@ pub mod pallet {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sp_core::generate_feature_enabled_macro!(runtime_benchmarks_enabled, feature = "runtime-benchmarks", $);
|
||||
|
||||
@@ -272,15 +272,15 @@ pub enum MintType<CollectionId> {
|
||||
#[derive(Clone, Copy, Encode, Decode, Eq, PartialEq, RuntimeDebug, TypeInfo, MaxEncodedLen)]
|
||||
pub struct MintSettings<Price, BlockNumber, CollectionId> {
|
||||
/// Whether anyone can mint or if minters are restricted to some subset.
|
||||
pub(super) mint_type: MintType<CollectionId>,
|
||||
pub mint_type: MintType<CollectionId>,
|
||||
/// An optional price per mint.
|
||||
pub(super) price: Option<Price>,
|
||||
pub price: Option<Price>,
|
||||
/// When the mint starts.
|
||||
pub(super) start_block: Option<BlockNumber>,
|
||||
pub start_block: Option<BlockNumber>,
|
||||
/// When the mint ends.
|
||||
pub(super) end_block: Option<BlockNumber>,
|
||||
pub end_block: Option<BlockNumber>,
|
||||
/// Default settings each item will get during the mint.
|
||||
pub(super) default_item_settings: ItemSettings,
|
||||
pub default_item_settings: ItemSettings,
|
||||
}
|
||||
|
||||
impl<Price, BlockNumber, CollectionId> Default for MintSettings<Price, BlockNumber, CollectionId> {
|
||||
@@ -315,11 +315,11 @@ pub enum PalletAttributes<CollectionId> {
|
||||
)]
|
||||
pub struct CollectionConfig<Price, BlockNumber, CollectionId> {
|
||||
/// Collection's settings.
|
||||
pub(super) settings: CollectionSettings,
|
||||
pub settings: CollectionSettings,
|
||||
/// Collection's max supply.
|
||||
pub(super) max_supply: Option<u32>,
|
||||
pub max_supply: Option<u32>,
|
||||
/// Default settings each item will get during the mint.
|
||||
pub(super) mint_settings: MintSettings<Price, BlockNumber, CollectionId>,
|
||||
pub mint_settings: MintSettings<Price, BlockNumber, CollectionId>,
|
||||
}
|
||||
|
||||
impl<Price, BlockNumber, CollectionId> CollectionConfig<Price, BlockNumber, CollectionId> {
|
||||
|
||||
Reference in New Issue
Block a user