git.delta.rocks / unique-network / refs/commits / 6ed3d50647f9

difftreelog

Merge pull request #273 from UniqueNetwork/feature/CORE-269

kozyrevdev2022-02-17parents: #886d2a8 #e7cef40.patch.diff
in: master

3 files changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth
--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -162,9 +162,12 @@
 		type EvmBackwardsAddressMapping: up_evm_mapping::EvmBackwardsAddressMapping<Self::AccountId>;
 
 		type Currency: Currency<Self::AccountId>;
+
+		#[pallet::constant]
 		type CollectionCreationPrice: Get<
 			<<Self as Config>::Currency as Currency<Self::AccountId>>::Balance,
 		>;
+
 		type TreasuryAccountId: Get<Self::AccountId>;
 	}
 
modifiedprimitives/data-structs/src/lib.rsdiffbeforeafterboth
--- a/primitives/data-structs/src/lib.rs
+++ b/primitives/data-structs/src/lib.rs
@@ -64,7 +64,7 @@
 // Schema limits
 pub const OFFCHAIN_SCHEMA_LIMIT: u32 = 8192;
 pub const VARIABLE_ON_CHAIN_SCHEMA_LIMIT: u32 = 8192;
-pub const CONST_ON_CHAIN_SCHEMA_LIMIT: u32 = 1048576;
+pub const CONST_ON_CHAIN_SCHEMA_LIMIT: u32 = 32768;
 
 pub const MAX_COLLECTION_NAME_LENGTH: u32 = 64;
 pub const MAX_COLLECTION_DESCRIPTION_LENGTH: u32 = 256;
modifiedruntime/src/lib.rsdiffbeforeafterboth
250 pub const SS58Prefix: u8 = 42;250 pub const SS58Prefix: u8 = 42;
251}251}
252252
253/*
2548880 - Unique
2558881 - Quartz
2568882 - Opal
257*/
253parameter_types! {258parameter_types! {
254 pub const ChainId: u64 = 8888;259 pub const ChainId: u64 = 8882;
255}260}
256261
257pub struct FixedFee;262pub struct FixedFee;
874879
875parameter_types! {880parameter_types! {
876 pub TreasuryAccountId: AccountId = TreasuryModuleId::get().into_account();881 pub TreasuryAccountId: AccountId = TreasuryModuleId::get().into_account();
877 pub const CollectionCreationPrice: Balance = 100 * UNIQUE;882 pub const CollectionCreationPrice: Balance = 2 * UNIQUE;
878}883}
879884
880impl pallet_common::Config for Runtime {885impl pallet_common::Config for Runtime {