Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
chess-pallet removal (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinfernandez1 authored Jun 7, 2023
1 parent 550cc6d commit e42dd48
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 60 deletions.
36 changes: 0 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jsonrpsee = { version = "0.16.2" }
pallet-dex-rpc = { version = "0.0.1", git = "https://github.com/paritytech/substrate-dex.git", default-features = false, branch = "polkadot-v0.9.37" }
pallet-dex = { version = "0.0.1", git = "https://github.com/paritytech/substrate-dex.git", default-features = false, branch = "polkadot-v0.9.37" }
pallet-dex-rpc-runtime-api = { version = "0.0.1", git = "https://github.com/paritytech/substrate-dex.git", default-features = false, branch = "polkadot-v0.9.37" }
pallet-chess = { git = "https://github.com/SubstrateChess/pallet-chess.git", default-features = false, branch = "polkadot-v0.9.37" }

# Trappist Pallets
pallet-asset-registry = { default-features = false, path = "pallets/asset-registry" }
Expand Down
2 changes: 0 additions & 2 deletions runtime/trappist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ pallet-xcm-benchmarks = { workspace = true, optional = true }
# External Pallets
pallet-dex = { workspace = true }
pallet-dex-rpc-runtime-api = { workspace = true }
pallet-chess = { workspace = true }

# Trappist Pallets
pallet-asset-registry = {workspace = true }
Expand Down Expand Up @@ -134,7 +133,6 @@ std = [
"pallet-aura/std",
"pallet-authorship/std",
"pallet-balances/std",
"pallet-chess/std",
"pallet-collator-selection/std",
"pallet-collective/std",
"pallet-contracts/std",
Expand Down
1 change: 0 additions & 1 deletion runtime/trappist/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ impl Contains<RuntimeCall> for RuntimeBlackListedCalls {
RuntimeCall::Dex(_) => false,
RuntimeCall::PolkadotXcm(_) => false,
RuntimeCall::Treasury(_) => false,
RuntimeCall::Chess(_) => false,
RuntimeCall::Contracts(_) => false,
RuntimeCall::Uniques(_) => false,
RuntimeCall::AssetRegistry(_) => false,
Expand Down
20 changes: 0 additions & 20 deletions runtime/trappist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,24 +587,6 @@ impl pallet_asset_registry::Config for Runtime {
type BenchmarkHelper = AssetRegistryBenchmarkHelper;
}

parameter_types! {
pub const ChessPalletId: PalletId = PalletId(*b"subchess");
pub const IncentiveShare: u8 = 10; // janitor gets 10% of the prize
}

impl pallet_chess::Config for Runtime {
type PalletId = ChessPalletId;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = pallet_chess::weights::SubstrateWeight<Runtime>;
type Assets = Assets;
type AssetBalance = u128;
type BulletPeriod = ConstU32<{ 1 * MINUTES }>; // ~1 minute
type BlitzPeriod = ConstU32<{ 5 * MINUTES }>; // ~5 minutes
type RapidPeriod = ConstU32<{ 15 * MINUTES }>; // ~15 minutes
type DailyPeriod = ConstU32<{ 25 * HOURS }>; // ~24 hours
type IncentiveShare = IncentiveShare;
}

type TreasuryApproveCancelOrigin = EitherOfDiverse<
EnsureRoot<AccountId>,
pallet_collective::EnsureProportionAtLeast<AccountId, CouncilCollective, 2, 6>,
Expand Down Expand Up @@ -715,8 +697,6 @@ construct_runtime!(
Dex: pallet_dex::{Pallet, Call, Storage, Event<T>} = 110,
AssetRegistry: pallet_asset_registry::{Pallet, Call, Storage, Event<T>} = 111,

// Chess
Chess: pallet_chess::{Pallet, Call, Storage, Event<T>} = 120,
}
);

Expand Down

0 comments on commit e42dd48

Please sign in to comment.