Skip to content

Commit

Permalink
Account migration (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Dec 8, 2022
1 parent e5b6409 commit 4f78cb8
Show file tree
Hide file tree
Showing 15 changed files with 181 additions and 561 deletions.
6 changes: 1 addition & 5 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions node/src/chain_spec/crab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ pub fn genesis_config() -> ChainSpec {
balances: Default::default(),
transaction_payment: Default::default(),
assets: Default::default(),
account_migration: Default::default(),

// Consensus stuff.
collator_selection: CollatorSelectionConfig {
Expand Down Expand Up @@ -228,7 +227,6 @@ fn testnet_genesis(
},
transaction_payment: Default::default(),
assets: Default::default(),
account_migration: Default::default(),

// Consensus stuff.
collator_selection: CollatorSelectionConfig {
Expand Down
2 changes: 0 additions & 2 deletions node/src/chain_spec/darwinia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ pub fn genesis_config() -> ChainSpec {
balances: Default::default(),
transaction_payment: Default::default(),
assets: Default::default(),
account_migration: Default::default(),

// Consensus stuff.
staking: StakingConfig {
Expand Down Expand Up @@ -232,7 +231,6 @@ fn testnet_genesis(
},
transaction_payment: Default::default(),
assets: Default::default(),
account_migration: Default::default(),

// Consensus stuff.
staking: StakingConfig {
Expand Down
2 changes: 0 additions & 2 deletions node/src/chain_spec/pangolin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ pub fn genesis_config() -> ChainSpec {
balances: Default::default(),
transaction_payment: Default::default(),
assets: Default::default(),
account_migration: Default::default(),

// Consensus stuff.
collator_selection: CollatorSelectionConfig {
Expand Down Expand Up @@ -223,7 +222,6 @@ fn testnet_genesis(
},
transaction_payment: Default::default(),
assets: Default::default(),
account_migration: Default::default(),

// Consensus stuff.
collator_selection: CollatorSelectionConfig {
Expand Down
32 changes: 10 additions & 22 deletions pallet/account-migration/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
authors = ["Darwinia Network <hello@darwinia.network>"]
description = "State storage precompiles for EVM pallet."
description = "Darwinia SR25519 to ECDSA account migration."
edition = "2021"
homepage = "https://darwinia.network"
license = "GPL-3.0"
Expand All @@ -15,25 +15,18 @@ codec = { default-features = false, package = "parity-scale-codec", version
scale-info = { default-features = false, version = "2.3.0", features = ["derive"] }

# darwinia
dc-primitives = { default-features = false, path = "../../core/primitives"}

# frontier
fp-ethereum = { default-features = false, git = "https://github.com/paritytech/frontier", branch = "polkadot-v0.9.30" }
fp-evm = { default-features = false, git = "https://github.com/paritytech/frontier", branch = "polkadot-v0.9.30" }
pallet-evm = { default-features = false, git = "https://github.com/paritytech/frontier", branch = "polkadot-v0.9.30" }
dc-primitives = { default-features = false, path = "../../core/primitives" }

# substrate
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }

[dev-dependencies]
# substrate
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }

[features]
default = ["std"]
Expand All @@ -45,16 +38,11 @@ std = [
# darwinia
"dc-primitives/std",

# frontier
"fp-evm/std",
"fp-ethereum/std",
"pallet-evm/std",

# paritytech
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"sp-core/std",
"sp-runtime/std",
"sp-io/std",
"sp-std/std",
]
Loading

0 comments on commit 4f78cb8

Please sign in to comment.