Skip to content

Commit

Permalink
Merge pull request #10 from paritytech/moonbeam-primitives
Browse files Browse the repository at this point in the history
Ethereum account conversion logic
  • Loading branch information
Moliholy authored Mar 8, 2024
2 parents d627737 + 5901a74 commit 5a0d875
Show file tree
Hide file tree
Showing 17 changed files with 869 additions and 58 deletions.
70 changes: 38 additions & 32 deletions Cargo.lock

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

13 changes: 9 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ parity-scale-codec = { version = "3.6.9", default-features = false, features = [
"derive",
] }
scale-info = { version = "2.10.0", default-features = false }
serde = { version = "1.0.196", features = ["derive"] }
serde = { version = "1.0.196", default-features = false, features = ["derive"] }
serde_json = {version = "1.0.113", features = ["arbitrary_precision"]}
smallvec = "1.13.1"
impl-serde = { version = "0.3.1", default-features = false }
libsecp256k1 = { version = "0.7", default-features = false }
sha3 = { version = "0.10", default-features = false }
hex = { version = "0.4.3", default-features = false }

# Local dependencies
mythical-testnet = { path = "runtime/testnet" }
Expand Down Expand Up @@ -98,6 +102,7 @@ sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-
sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.6.0" }
sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.6.0", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.6.0", default-features = false }
sp-runtime-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.6.0", default-features = false }
sp-session = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.6.0", default-features = false }
sp-std = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.6.0", default-features = false }
sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.6.0" }
Expand Down Expand Up @@ -145,6 +150,6 @@ xcm = { package = "staging-xcm", git = "https://github.com/paritytech/polkadot-s
xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.6.0", default-features = false }
xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.6.0", default-features = false }

# Frontier
fp-account = { git = 'https://github.com/paritytech/frontier', branch = "polkadot-v1.6.0", default-features = false }
fp-self-contained = { git = 'https://github.com/paritytech/frontier', branch = "polkadot-v1.6.0", default-features = false }
# Primitives
account = { path = "./primitives/account", default-features = false }
fp-self-contained = { path = "./primitives/self-contained", default-features = false }
2 changes: 0 additions & 2 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ sp-block-builder = { workspace = true }
sp-blockchain = { workspace = true }
sp-consensus-aura = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true, optional = true }
sp-keystore = { workspace = true }
sp-offchain = { workspace = true }
sp-runtime = { workspace = true }
Expand Down Expand Up @@ -95,5 +94,4 @@ runtime-benchmarks = [
try-runtime = [
"mythical-mainnet/try-runtime",
"mythical-testnet/try-runtime",
"dep:sp-io",
]
1 change: 0 additions & 1 deletion node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use cumulus_client_service::{
build_network, build_relay_chain_interface, prepare_node_config, start_relay_chain_tasks,
BuildNetworkParams, CollatorSybilResistance, DARecoveryProfile, StartRelayChainTasksParams,
};
use cumulus_primitives_aura;
use cumulus_primitives_core::{
relay_chain::{CollatorPair, ValidationCode},
ParaId,
Expand Down
50 changes: 50 additions & 0 deletions primitives/account/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[package]
name = "account"
authors = { workspace = true }
edition = "2021"
homepage = "https://moonbeam.network"
license = "GPL-3.0-only"
repository = { workspace = true }
version = "0.1.1"

[package.metadata.docs.rs]
targets = [ "x86_64-unknown-linux-gnu" ]

[dependencies]
impl-serde = { workspace = true }
libsecp256k1 = { workspace = true, features = [ "hmac" ] }
log = { workspace = true }
serde = { workspace = true, features = [ "derive" ] }
sha3 = { workspace = true }

# Substrate
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-runtime-interface = { workspace = true }
sp-std = { workspace = true }

[dev-dependencies]
hex = { workspace = true }

[features]
default = [ "std" ]
std = [
"full_crypto",
"hex/std",
"impl-serde/std",
"libsecp256k1/std",
"parity-scale-codec/std",
"serde/std",
"sha3/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
]

full_crypto = [
"sp-runtime-interface/disable_target_static_assertions",
]
Loading

0 comments on commit 5a0d875

Please sign in to comment.