mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-16 07:37:06 +00:00
Squashed commit of Rust-ifying the repo:
commit e31c1965a2e6b9a21ce68be63b81915b2b090f1d Author: Hernando Castano <castano.ha@gmail.com> Date: Sun Feb 2 21:15:42 2020 -0500 Get Ethereum bridge module compiling commit a497fc1640e68682f61b39414ffb15206c6120e2 Author: Hernando Castano <castano.ha@gmail.com> Date: Thu Jan 30 12:15:43 2020 -0500 Make the toml file look a bit better commit 898fb7b06cfac7cf866e1a28fed9a4f02bd246a7 Author: Hernando Castano <castano.ha@gmail.com> Date: Thu Jan 30 12:06:27 2020 -0500 Get substrate bridge module compiling commit 81e1547e6bec9f590cad9ffba0ee5dfa82cda1c1 Author: Hernando Castano <castano.ha@gmail.com> Date: Thu Jan 30 11:40:29 2020 -0500 Create workspace and move more files around
This commit is contained in:
1 parent
c06777a42a
commit
fbaa803034
25 files changed
+142
-6355
No files matched your search
@@ -0,0 +1,56 @@
|
||||
[package]
|
||||
name = "pallet-bridge-eth-poa"
|
||||
description = "A Substrate Runtime module that is able to verify PoA headers and their finality."
|
||||
version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
primitives = { package = "sp-bridge-eth-poa", path = "../../primitives/ethereum-poa", default-features = false }
|
||||
|
||||
# Substrate Based Dependencies
|
||||
[dependencies.frame-support]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.frame-system]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.sp-std]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.sp-io]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.sp-runtime]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
# Dev Dependencies
|
||||
[dev-dependencies]
|
||||
# TODO: Stop renaming this on import
|
||||
primitives = { package = "sp-bridge-eth-poa", path = "../../primitives/ethereum-poa", features = ["std", "test-helpers"] }
|
||||
parity-crypto = { version = "0.4", features = ["publickey"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"serde",
|
||||
"codec/std",
|
||||
"sp-std/std",
|
||||
"frame-support/std",
|
||||
"sp-runtime/std",
|
||||
"frame-system/std",
|
||||
"sp-io/std",
|
||||
"primitives/std",
|
||||
]
|
||||
@@ -1,33 +0,0 @@
|
||||
[package]
|
||||
name = "pallet-bridge-eth-poa"
|
||||
description = "A Substrate Runtime module that is able to verify PoA headers and their finality."
|
||||
version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
sp-std = { version = "2.0.0", default-features = false, path = "../../primitives/std" }
|
||||
frame-support = { version = "2.0.0", default-features = false, path = "../support" } # TODO: Rename
|
||||
sp-runtime = { version = "2.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||
frame-system = { version = "2.0.0", default-features = false, path = "../system" } # TODO: Rename
|
||||
sp-io = { version = "2.0.0", default-features = false, path = "../../primitives/io" }
|
||||
primitives = { package = "sp-bridge-eth-poa", path = "../../primitives/bridge-eth-poa", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
primitives = { package = "sp-bridge-eth-poa", path = "../../primitives/bridge-eth-poa", features = ["std", "test-helpers"] }
|
||||
parity-crypto = { version = "0.4", features = ["publickey"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"serde",
|
||||
"codec/std",
|
||||
"sp-std/std",
|
||||
"frame-support/std",
|
||||
"sp-runtime/std",
|
||||
"frame-system/std",
|
||||
"sp-io/std",
|
||||
"primitives/std",
|
||||
]
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+5
-5
@@ -247,19 +247,19 @@ decl_storage! {
|
||||
/// Oldest unpruned block(s) number.
|
||||
OldestUnprunedBlock: u64;
|
||||
/// Map of imported headers by hash.
|
||||
Headers: map H256 => Option<StoredHeader>;
|
||||
Headers: map hasher(blake2_256) H256 => Option<StoredHeader>;
|
||||
/// Map of imported header hashes by number.
|
||||
HeadersByNumber: map u64 => Option<Vec<H256>>;
|
||||
HeadersByNumber: map hasher(blake2_256) u64 => Option<Vec<H256>>;
|
||||
/// The ID of next validator set.
|
||||
NextValidatorsSetId: u64;
|
||||
/// Map of validators sets by their id.
|
||||
ValidatorsSets: map u64 => Option<(H256, Vec<Address>)>;
|
||||
ValidatorsSets: map hasher(blake2_256) u64 => Option<(H256, Vec<Address>)>;
|
||||
/// Validators sets reference count. Each header that is authored by this set increases
|
||||
/// the reference count. When we prune this header, we decrease the reference count.
|
||||
/// When it reaches zero, we are free to prune validator set as well.
|
||||
ValidatorsSetsRc: map u64 => Option<u64>;
|
||||
ValidatorsSetsRc: map hasher(blake2_256) u64 => Option<u64>;
|
||||
/// Map of validators set changes scheduled by given header.
|
||||
ScheduledChanges: map H256 => Option<Vec<Address>>;
|
||||
ScheduledChanges: map hasher(blake2_256) H256 => Option<Vec<Address>>;
|
||||
}
|
||||
add_extra_genesis {
|
||||
config(initial_header): Header;
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,76 @@
|
||||
[package]
|
||||
name = "pallet-bridge"
|
||||
version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
serde = { version = "1.0", optional = true }
|
||||
|
||||
# Substrate Based Dependencies
|
||||
[dependencies.frame-support]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.frame-system]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.hash-db]
|
||||
version = "0.15.2"
|
||||
default-features = false
|
||||
|
||||
[dependencies.pallet-session]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.sp-core]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.sp-finality-grandpa]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.sp-runtime]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dependencies.sp-trie]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
# Dev Dependencies
|
||||
[dev-dependencies.sp-io]
|
||||
version = "2.0.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
default-features = false
|
||||
|
||||
[dev-dependencies.sp-state-machine]
|
||||
version = "0.8.0"
|
||||
git = "https://github.com/paritytech/substrate.git"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"serde",
|
||||
"codec/std",
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"pallet-session/std",
|
||||
"sp-core/std",
|
||||
"sp-finality-grandpa/std",
|
||||
"sp-runtime/std",
|
||||
"sp-trie/std",
|
||||
"sp-io/std",
|
||||
]
|
||||
@@ -85,7 +85,7 @@ decl_storage! {
|
||||
|
||||
/// Maps a bridge id to a bridge struct. Allows a single
|
||||
/// `bridge` module to manage multiple bridges.
|
||||
pub TrackedBridges get(tracked_bridges): map BridgeId => Option<BridgeInfo<T>>;
|
||||
pub TrackedBridges get(tracked_bridges): map hasher(blake2_256) BridgeId => Option<BridgeInfo<T>>;
|
||||
}
|
||||
}
|
||||
|
||||
File renamed without changes.
@@ -1,38 +0,0 @@
|
||||
[package]
|
||||
name = "pallet-bridge"
|
||||
version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
frame-support = { version = "2.0.0", default-features = false, path = "../support" }
|
||||
frame-system = { version = "2.0.0", default-features = false, path = "../system" }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
pallet-session = { version = "2.0.0", default-features = false, path = "../session" }
|
||||
serde = { version = "1.0", optional = true }
|
||||
sp-core = { version = "2.0.0", default-features = false, path = "../../primitives/core" }
|
||||
sp-finality-grandpa = { version = "2.0.0", default-features = false, path = "../../primitives/finality-grandpa" }
|
||||
sp-runtime = { version = "2.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||
sp-trie = { version = "2.0.0", default-features = false, path = "../../primitives/trie" }
|
||||
|
||||
[dev-dependencies]
|
||||
sp-io = { version = "2.0.0", default-features = false, path = "../../primitives/io" }
|
||||
sp-state-machine = { version = "2.0.0", path = "../../primitives/state-machine" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"serde",
|
||||
"codec/std",
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"pallet-session/std",
|
||||
"sp-core/std",
|
||||
"sp-finality-grandpa/std",
|
||||
"sp-runtime/std",
|
||||
"sp-trie/std",
|
||||
"sp-io/std",
|
||||
]
|
||||
+4
-4
@@ -16,10 +16,10 @@ impl-rlp = { version = "0.2", default-features = false }
|
||||
impl-serde = { version = "0.2.3", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
rlp = { version = "0.4", default-features = false }
|
||||
sp-std = { version = "2.0.0", default-features = false, path = "../std" }
|
||||
sp-runtime = { version = "2.0.0", default-features = false, path = "../runtime" }
|
||||
sp-api = { version = "2.0.0", path = "../api", default-features = false }
|
||||
sp-io = { version = "2.0.0", default-features = false, path = "../io" }
|
||||
sp-std = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", default-features = false }
|
||||
sp-runtime = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", default-features = false }
|
||||
sp-api = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", default-features = false }
|
||||
sp-io = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", default-features = false }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
triehash = { version = "0.8.2", default-features = false }
|
||||
plain_hasher = { version = "0.2.2", default-features = false }
|
||||
File renamed without changes.
Generated
-6274
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user