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

Commit

Permalink
feat: add tx-pause and safe-mode pallets (#305)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Degosserie <[email protected]>
  • Loading branch information
José Molina Colmenero and Steve Degosserie authored Dec 4, 2023
1 parent 83e12de commit 2f7e200
Show file tree
Hide file tree
Showing 15 changed files with 135 additions and 786 deletions.
64 changes: 26 additions & 38 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ pallet-dex-rpc-runtime-api = { version = "0.0.1", git = "https://github.com/pari
# Trappist Pallets
pallet-asset-registry = { default-features = false, path = "pallets/asset-registry" }
trappist-runtime-benchmarks = { default-features = false, path = "pallets/benchmarks" }
pallet-lockdown-mode = { version = "0.1.0", default-features = false, path = "pallets/lockdown-mode" }
pallet-withdraw-teleport = { version = "0.1.0", default-features = false, path = "pallets/withdraw-teleport" }

# Substrate std
Expand Down Expand Up @@ -142,6 +141,8 @@ pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/parityt
pallet-uniques = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.1.0" }
pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.1.0" }
pallet-treasury = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.1.0" }
pallet-safe-mode = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.1.0" }
pallet-tx-pause = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.1.0" }

# Cumulus client dependencies
cumulus-client-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.1.0" }
Expand Down
9 changes: 5 additions & 4 deletions node/src/chain_spec/trappist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ use sc_service::ChainType;
use sp_core::{crypto::UncheckedInto, sr25519};
use trappist_runtime::{
constants::currency::EXISTENTIAL_DEPOSIT, AccountId, AssetsConfig, AuraId, BalancesConfig,
CouncilConfig, LockdownModeConfig, RuntimeGenesisConfig, SessionConfig, SessionKeys,
SudoConfig, SystemConfig,
CouncilConfig, RuntimeGenesisConfig, SessionConfig, SessionKeys, SudoConfig, SystemConfig,
};

const DEFAULT_PROTOCOL_ID: &str = "hop";
Expand Down Expand Up @@ -213,7 +212,8 @@ pub fn testnet_genesis(
phantom: Default::default(),
},
treasury: Default::default(),
lockdown_mode: LockdownModeConfig { initial_status: false, ..Default::default() },
safe_mode: Default::default(),
tx_pause: Default::default(),
dex: Default::default(),
transaction_payment: Default::default(),
}
Expand Down Expand Up @@ -330,7 +330,8 @@ fn trappist_live_genesis(
phantom: Default::default(),
},
treasury: Default::default(),
lockdown_mode: Default::default(),
safe_mode: Default::default(),
tx_pause: Default::default(),
dex: Default::default(),
transaction_payment: Default::default(),
}
Expand Down
80 changes: 0 additions & 80 deletions pallets/lockdown-mode/Cargo.toml

This file was deleted.

41 changes: 0 additions & 41 deletions pallets/lockdown-mode/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions pallets/lockdown-mode/src/benchmarking.rs

This file was deleted.

Loading

0 comments on commit 2f7e200

Please sign in to comment.