Skip to content

Commit

Permalink
feat: remove deprecated functionality
Browse files Browse the repository at this point in the history
remove deprecated custom signaturee pallet
  • Loading branch information
ashutoshvarma committed Aug 9, 2023
1 parent 10d0326 commit d87ef63
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 124 deletions.
12 changes: 4 additions & 8 deletions Cargo.lock

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

5 changes: 1 addition & 4 deletions runtime/astar/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "astar-runtime"
version = "5.16.1"
version = "5.17.0"
build = "build.rs"
authors.workspace = true
edition.workspace = true
Expand Down Expand Up @@ -96,7 +96,6 @@ frame-try-runtime = { workspace = true, optional = true }
astar-primitives = { workspace = true }
pallet-block-reward = { workspace = true }
pallet-collator-selection = { workspace = true }
pallet-custom-signatures = { workspace = true }
pallet-dapps-staking = { workspace = true }
pallet-evm-precompile-assets-erc20 = { workspace = true }
pallet-evm-precompile-dapps-staking = { workspace = true }
Expand Down Expand Up @@ -145,7 +144,6 @@ std = [
"pallet-balances/std",
"pallet-proxy/std",
"pallet-block-reward/std",
"pallet-custom-signatures/std",
"pallet-dapps-staking/std",
"pallet-evm-precompile-dapps-staking/std",
"pallet-evm-precompile-sr25519/std",
Expand Down Expand Up @@ -231,7 +229,6 @@ try-runtime = [
"pallet-balances/try-runtime",
"pallet-proxy/try-runtime",
"pallet-block-reward/try-runtime",
"pallet-custom-signatures/try-runtime",
"pallet-dapps-staking/try-runtime",
"pallet-block-reward/try-runtime",
"pallet-sudo/try-runtime",
Expand Down
30 changes: 4 additions & 26 deletions runtime/astar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,9 @@ use sp_runtime::{
create_runtime_str, generic, impl_opaque_keys,
traits::{
AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT, Bounded, ConvertInto,
DispatchInfoOf, Dispatchable, OpaqueKeys, PostDispatchInfoOf, UniqueSaturatedInto, Verify,
Zero,
},
transaction_validity::{
TransactionPriority, TransactionSource, TransactionValidity, TransactionValidityError,
DispatchInfoOf, Dispatchable, OpaqueKeys, PostDispatchInfoOf, UniqueSaturatedInto, Zero,
},
transaction_validity::{TransactionSource, TransactionValidity, TransactionValidityError},
ApplyExtrinsicResult, FixedPointNumber, Perbill, Permill, Perquintill, RuntimeDebug,
};
use sp_std::prelude::*;
Expand Down Expand Up @@ -141,7 +138,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("astar"),
impl_name: create_runtime_str!("astar"),
authoring_version: 1,
spec_version: 64,
spec_version: 65,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down Expand Up @@ -312,24 +309,6 @@ impl pallet_multisig::Config for Runtime {
type WeightInfo = pallet_multisig::weights::SubstrateWeight<Runtime>;
}

parameter_types! {
pub const EcdsaUnsignedPriority: TransactionPriority = TransactionPriority::MAX / 2;
pub const CallFee: Balance = ASTR / 10;
pub const CallMagicNumber: u16 = 0x0250;
}

impl pallet_custom_signatures::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type Signature = pallet_custom_signatures::ethereum::EthereumSignature;
type Signer = <Signature as Verify>::Signer;
type CallMagicNumber = CallMagicNumber;
type Currency = Balances;
type CallFee = CallFee;
type OnChargeTransaction = ToStakingPot;
type UnsignedPriority = EcdsaUnsignedPriority;
}

parameter_types! {
pub const BlockPerEra: BlockNumber = DAYS;
pub const RegisterDeposit: Balance = 1000 * ASTR;
Expand Down Expand Up @@ -927,7 +906,6 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
| RuntimeCall::XcAssetConfig(..)
// Skip entire EVM pallet
// Skip entire Ethereum pallet
// Skip entire EthCall pallet
| RuntimeCall::BaseFee(..) // Skip entire Contracts pallet
)
}
Expand Down Expand Up @@ -1035,7 +1013,7 @@ construct_runtime!(

EVM: pallet_evm = 60,
Ethereum: pallet_ethereum = 61,
EthCall: pallet_custom_signatures = 62,
// EthCall: pallet_custom_signatures = 62 - removed
BaseFee: pallet_base_fee = 63,

Contracts: pallet_contracts = 70,
Expand Down
5 changes: 1 addition & 4 deletions runtime/local/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "local-runtime"
version = "5.16.1"
version = "5.17.0"
build = "build.rs"
authors.workspace = true
edition.workspace = true
Expand Down Expand Up @@ -68,7 +68,6 @@ astar-primitives = { workspace = true }
pallet-block-reward = { workspace = true }
pallet-chain-extension-dapps-staking = { workspace = true }
pallet-chain-extension-xvm = { workspace = true }
pallet-custom-signatures = { workspace = true }
pallet-dapps-staking = { workspace = true }
pallet-evm-precompile-assets-erc20 = { workspace = true }
pallet-evm-precompile-dapps-staking = { workspace = true }
Expand Down Expand Up @@ -114,7 +113,6 @@ std = [
"pallet-contracts-primitives/std",
"pallet-chain-extension-dapps-staking/std",
"pallet-chain-extension-xvm/std",
"pallet-custom-signatures/std",
"pallet-dapps-staking/std",
"pallet-base-fee/std",
"pallet-ethereum/std",
Expand Down Expand Up @@ -194,7 +192,6 @@ try-runtime = [
"pallet-balances/try-runtime",
"pallet-block-reward/try-runtime",
"pallet-contracts/try-runtime",
"pallet-custom-signatures/try-runtime",
"pallet-dapps-staking/try-runtime",
"pallet-grandpa/try-runtime",
"pallet-insecure-randomness-collective-flip/try-runtime",
Expand Down
26 changes: 2 additions & 24 deletions runtime/local/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ use sp_runtime::{
create_runtime_str, generic, impl_opaque_keys,
traits::{
AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT, ConvertInto,
DispatchInfoOf, Dispatchable, NumberFor, PostDispatchInfoOf, UniqueSaturatedInto, Verify,
},
transaction_validity::{
TransactionPriority, TransactionSource, TransactionValidity, TransactionValidityError,
DispatchInfoOf, Dispatchable, NumberFor, PostDispatchInfoOf, UniqueSaturatedInto,
},
transaction_validity::{TransactionSource, TransactionValidity, TransactionValidityError},
ApplyExtrinsicResult, RuntimeDebug,
};
use sp_std::prelude::*;
Expand Down Expand Up @@ -587,24 +585,6 @@ impl pallet_ethereum::Config for Runtime {
type ExtraDataLength = ConstU32<30>;
}

parameter_types! {
pub const EcdsaUnsignedPriority: TransactionPriority = TransactionPriority::MAX / 2;
pub const CallFee: Balance = AST / 10;
pub const CallMagicNumber: u16 = 0xff51;
}

impl pallet_custom_signatures::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type Signature = pallet_custom_signatures::ethereum::EthereumSignature;
type Signer = <Signature as Verify>::Signer;
type CallMagicNumber = CallMagicNumber;
type Currency = Balances;
type CallFee = CallFee;
type OnChargeTransaction = ();
type UnsignedPriority = EcdsaUnsignedPriority;
}

parameter_types! {
pub MaximumSchedulerWeight: Weight = NORMAL_DISPATCH_RATIO * RuntimeBlockWeights::get().max_block;
}
Expand Down Expand Up @@ -910,7 +890,6 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
| RuntimeCall::DappsStaking(..)
// Skip entire EVM pallet
// Skip entire Ethereum pallet
// Skip entire EthCall pallet
| RuntimeCall::BaseFee(..)
// Skip entire Contracts pallet
| RuntimeCall::Democracy(..)
Expand Down Expand Up @@ -1009,7 +988,6 @@ construct_runtime!(
TransactionPayment: pallet_transaction_payment,
EVM: pallet_evm,
Ethereum: pallet_ethereum,
EthCall: pallet_custom_signatures,
BaseFee: pallet_base_fee,
Contracts: pallet_contracts,
Sudo: pallet_sudo,
Expand Down
5 changes: 1 addition & 4 deletions runtime/shibuya/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shibuya-runtime"
version = "5.16.1"
version = "5.17.0"
build = "build.rs"
authors.workspace = true
edition.workspace = true
Expand Down Expand Up @@ -101,7 +101,6 @@ pallet-block-reward = { workspace = true }
pallet-chain-extension-dapps-staking = { workspace = true }
pallet-chain-extension-xvm = { workspace = true }
pallet-collator-selection = { workspace = true }
pallet-custom-signatures = { workspace = true }
pallet-dapps-staking = { workspace = true }
pallet-ethereum-checked = { workspace = true }
pallet-evm-precompile-assets-erc20 = { workspace = true }
Expand Down Expand Up @@ -166,7 +165,6 @@ std = [
"pallet-contracts-primitives/std",
"pallet-chain-extension-dapps-staking/std",
"pallet-chain-extension-xvm/std",
"pallet-custom-signatures/std",
"pallet-base-fee/std",
"pallet-ethereum/std",
"pallet-preimage/std",
Expand Down Expand Up @@ -268,7 +266,6 @@ try-runtime = [
"pallet-aura/try-runtime",
"pallet-balances/try-runtime",
"pallet-block-reward/try-runtime",
"pallet-custom-signatures/try-runtime",
"pallet-dapps-staking/try-runtime",
"pallet-sudo/try-runtime",
"pallet-timestamp/try-runtime",
Expand Down
29 changes: 4 additions & 25 deletions runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ use sp_runtime::{
create_runtime_str, generic, impl_opaque_keys,
traits::{
AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT, Bounded, ConvertInto,
DispatchInfoOf, Dispatchable, OpaqueKeys, PostDispatchInfoOf, UniqueSaturatedInto, Verify,
},
transaction_validity::{
TransactionPriority, TransactionSource, TransactionValidity, TransactionValidityError,
DispatchInfoOf, Dispatchable, OpaqueKeys, PostDispatchInfoOf, UniqueSaturatedInto,
},
transaction_validity::{TransactionSource, TransactionValidity, TransactionValidityError},
ApplyExtrinsicResult, FixedPointNumber, Perbill, Permill, Perquintill, RuntimeDebug,
};
use sp_std::prelude::*;
Expand Down Expand Up @@ -166,7 +164,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("shibuya"),
impl_name: create_runtime_str!("shibuya"),
authoring_version: 1,
spec_version: 106,
spec_version: 107,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down Expand Up @@ -344,24 +342,6 @@ impl pallet_multisig::Config for Runtime {
type WeightInfo = pallet_multisig::weights::SubstrateWeight<Runtime>;
}

parameter_types! {
pub const EcdsaUnsignedPriority: TransactionPriority = TransactionPriority::MAX / 2;
pub const CallFee: Balance = SBY / 10;
pub const CallMagicNumber: u16 = 0xff51;
}

impl pallet_custom_signatures::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type Signature = pallet_custom_signatures::ethereum::EthereumSignature;
type Signer = <Signature as Verify>::Signer;
type CallMagicNumber = CallMagicNumber;
type Currency = Balances;
type CallFee = CallFee;
type OnChargeTransaction = ToStakingPot;
type UnsignedPriority = EcdsaUnsignedPriority;
}

parameter_types! {
pub MaximumSchedulerWeight: Weight = NORMAL_DISPATCH_RATIO * RuntimeBlockWeights::get().max_block;
}
Expand Down Expand Up @@ -1137,7 +1117,6 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
| RuntimeCall::XcAssetConfig(..)
// Skip entire EVM pallet
// Skip entire Ethereum pallet
// Skip entire EthCall pallet
| RuntimeCall::BaseFee(..)
// Skip entire Contracts pallet
| RuntimeCall::Democracy(..)
Expand Down Expand Up @@ -1254,7 +1233,7 @@ construct_runtime!(
Identity: pallet_identity = 12,
Timestamp: pallet_timestamp = 13,
Multisig: pallet_multisig = 14,
EthCall: pallet_custom_signatures = 15,
// EthCall: pallet_custom_signatures = 15, - removed
RandomnessCollectiveFlip: pallet_insecure_randomness_collective_flip = 16,
Scheduler: pallet_scheduler = 17,
Proxy: pallet_proxy = 18,
Expand Down
5 changes: 1 addition & 4 deletions runtime/shiden/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shiden-runtime"
version = "5.16.1"
version = "5.17.0"
build = "build.rs"
authors.workspace = true
edition.workspace = true
Expand Down Expand Up @@ -103,7 +103,6 @@ frame-try-runtime = { workspace = true, optional = true }
astar-primitives = { workspace = true }
pallet-block-reward = { workspace = true }
pallet-collator-selection = { workspace = true }
pallet-custom-signatures = { workspace = true }
pallet-dapps-staking = { workspace = true }
pallet-evm-precompile-assets-erc20 = { workspace = true }
pallet-evm-precompile-dapps-staking = { workspace = true }
Expand Down Expand Up @@ -152,7 +151,6 @@ std = [
"pallet-contracts/std",
"pallet-contracts-primitives/std",
"pallet-block-reward/std",
"pallet-custom-signatures/std",
"pallet-base-fee/std",
"pallet-ethereum/std",
"pallet-evm/std",
Expand Down Expand Up @@ -240,7 +238,6 @@ try-runtime = [
"pallet-aura/try-runtime",
"pallet-balances/try-runtime",
"pallet-block-reward/try-runtime",
"pallet-custom-signatures/try-runtime",
"pallet-dapps-staking/try-runtime",
"pallet-sudo/try-runtime",
"pallet-timestamp/try-runtime",
Expand Down
Loading

0 comments on commit d87ef63

Please sign in to comment.