Skip to content

Commit

Permalink
Bridge related pallets (#70)
Browse files Browse the repository at this point in the history
* Copy from Crab Parachain

* Replace Crab Parachain > Darwinia

* bridge pallets, many errors need to fix

� Conflicts:
�	Cargo.lock
�	runtime/common/Cargo.toml
�	runtime/darwinia/src/pallets/mod.rs

* Add fee_market

� Conflicts:
�	runtime/common/Cargo.toml

* Update deps

* Update deps

* Add bridge related pallets to darwinia

* Add bridge related pallets to crab

* format

* Update deps

* review

* comment

Co-authored-by: bear <boundless.forest@outlook.com>
  • Loading branch information
jiguantong and boundless-forest committed Nov 30, 2022
1 parent fc0ea38 commit f12766b
Show file tree
Hide file tree
Showing 21 changed files with 955 additions and 17 deletions.
52 changes: 35 additions & 17 deletions Cargo.lock

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

10 changes: 10 additions & 0 deletions node/src/chain_spec/crab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ pub fn config() -> ChainSpec {
ethereum: Default::default(),
evm: Default::default(),
base_fee: Default::default(),

// S2S stuff
bridge_darwinia_grandpa: Default::default(),
bridge_darwinia_messages: Default::default(),
darwinia_fee_market: Default::default(),
}
},
// Bootnodes
Expand Down Expand Up @@ -339,6 +344,11 @@ fn testnet_genesis(
},
},
base_fee: Default::default(),

// S2S stuff
bridge_darwinia_grandpa: Default::default(),
bridge_darwinia_messages: Default::default(),
darwinia_fee_market: Default::default(),
}
}

Expand Down
10 changes: 10 additions & 0 deletions node/src/chain_spec/darwinia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ pub fn config() -> ChainSpec {
ethereum: Default::default(),
evm: Default::default(),
base_fee: Default::default(),

// S2S stuff
bridge_crab_grandpa: Default::default(),
bridge_crab_messages: Default::default(),
crab_fee_market: Default::default(),
}
},
// Bootnodes
Expand Down Expand Up @@ -343,6 +348,11 @@ fn testnet_genesis(
},
},
base_fee: Default::default(),

// S2S stuff
bridge_crab_grandpa: Default::default(),
bridge_crab_messages: Default::default(),
crab_fee_market: Default::default(),
}
}

Expand Down
3 changes: 3 additions & 0 deletions runtime/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ version = "6.0.0"
# darwinia
dc-primitives = { default-features = false, path = "../../core/primitives" }

# darwinia-messages-substrate
bp-darwinia-core = { default-features = false, git = "https://github.com/darwinia-network/darwinia-messages-substrate", branch = "polkadot-v0.9.30" }

# polkadot
xcm = { default-features = false, git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.30" }
xcm-executor = { default-features = false, git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.30" }
Expand Down
4 changes: 4 additions & 0 deletions runtime/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@

pub mod gov_origin;
pub mod xcm_barrier;

pub use bp_darwinia_core as bp_crab;
pub use bp_darwinia_core as bp_darwinia;
pub use bp_darwinia_core as bp_pangolin;
Loading

0 comments on commit f12766b

Please sign in to comment.