Skip to content

Commit

Permalink
move to collab-ai
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailai-Wang committed Dec 13, 2024
1 parent 8aff587 commit 83d1ad2
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 53 deletions.
2 changes: 1 addition & 1 deletion parachain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
'pallets/collab-ai/common',
'pallets/collab-ai/curator',
'pallets/collab-ai/guardian',
'pallets/collab-ai/halving-mint',
'pallets/collab-ai/pool-proposal',
'pallets/collab-ai/investing-pool',
'pallets/extrinsic-filter',
Expand All @@ -23,7 +24,6 @@ members = [
'pallets/teebag',
'pallets/vc-management',
'pallets/xcm-asset-manager',
'pallets/halving-mint',
'pallets/omni-account',
'pallets/omni-account/runtime-api',
'precompiles/assets-erc20',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ version = '0.1.0'
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[lints]
workspace = true

[dependencies]
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
use crate::{self as pallet_halving_mint, Config, Instance1, OnTokenMinted};
use frame_support::pallet_prelude::*;
use frame_support::traits::tokens::{fungibles::Mutate, Preservation};
use frame_support::{construct_runtime, parameter_types, traits::AsEnsureOriginWithArg, PalletId};
use frame_system::{EnsureRoot, EnsureSigned};
use sp_core::{ConstU32, ConstU64, H256};
use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},
BuildStorage,
use frame_support::{
construct_runtime, derive_impl, parameter_types, traits::AsEnsureOriginWithArg, PalletId,
};
use frame_system::{EnsureRoot, EnsureSigned};
use sp_core::{ConstU32, ConstU64};
use sp_runtime::BuildStorage;

type AccountId = u64;
type Balance = u64;
Expand All @@ -39,34 +38,21 @@ construct_runtime!(
}
);

#[derive_impl(frame_system::config_preludes::TestDefaultConfig)]
impl frame_system::Config for Test {
type Block = frame_system::mocking::MockBlock<Test>;
type AccountData = pallet_balances::AccountData<Balance>;
}

parameter_types! {
pub const BlockHashCount: u32 = 250;
pub const ExistentialDeposit: Balance = 1;
}

impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type BlockWeights = ();
type BlockLength = ();
type Block = frame_system::mocking::MockBlock<Test>;
type DbWeight = ();
type RuntimeOrigin = RuntimeOrigin;
type Nonce = u64;
type RuntimeCall = RuntimeCall;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = u64;
type Lookup = IdentityLookup<Self::AccountId>;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type Version = ();
type PalletInfo = PalletInfo;
type AccountData = pallet_balances::AccountData<u64>;
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
type MaxConsumers = frame_support::traits::ConstU32<16>;
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig)]
impl pallet_balances::Config for Test {
type Balance = Balance;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
}

parameter_types! {
Expand Down Expand Up @@ -101,27 +87,6 @@ impl pallet_assets::Config for Test {
type BenchmarkHelper = ();
}

parameter_types! {
pub const ExistentialDeposit: u64 = 2;
pub const MaxLocks: u32 = 10;
}

impl pallet_balances::Config for Test {
type MaxLocks = ();
type Balance = u64;
type DustRemoval = ();
type RuntimeEvent = RuntimeEvent;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = ();
type FreezeIdentifier = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeHoldReason = ();
}

parameter_types! {
pub const BeneficiaryId: PalletId = PalletId(*b"lty/hlvm");
pub const TestAssetId: AssetId = 1;
Expand Down
File renamed without changes.

0 comments on commit 83d1ad2

Please sign in to comment.