Skip to content

Commit

Permalink
Remove Pangoro (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav authored Mar 4, 2024
1 parent 3549b70 commit 6b8e551
Show file tree
Hide file tree
Showing 77 changed files with 12 additions and 9,012 deletions.
2 changes: 1 addition & 1 deletion .github/shrink-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ done

# ---

for r in darwinia crab pangoro pangolin
for r in darwinia crab pangolin
do
rm -rf target/${PROFILE}/wbuild/${r}-runtime 2> /dev/null || true
done
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
strategy:
matrix:
runtime:
[runtime/darwinia, runtime/crab, runtime/pangoro, runtime/pangolin]
[runtime/darwinia, runtime/crab, runtime/pangolin]
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
Expand All @@ -135,10 +135,6 @@ jobs:
chain: crab-dev,
compare-with: "https://crab-rpc.darwiniacommunitydao.xyz",
},
{
chain: pangoro-dev,
compare-with: "https://pangoro-rpc.darwinia.network",
},
{
chain: pangolin-dev,
compare-with: "https://pangolin-rpc.darwinia.network",
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
features: darwinia-native,crab-native,evm-tracing
type: tracing
- network: testnet
features: pangoro-native,pangolin-native
features: pangolin-native
bz2: true
- network: testnet
features: pangoro-native,pangolin-native,evm-tracing
features: pangolin-native,evm-tracing
type: tracing
steps:
- name: Free disk space
Expand Down Expand Up @@ -100,8 +100,6 @@ jobs:
type: mainnet
- name: crab
type: mainnet
- name: pangoro
type: testnet
- name: pangolin
type: testnet
steps:
Expand Down Expand Up @@ -252,7 +250,6 @@ jobs:
cat node.tmp.md >> node.md
else
cat pangolin-runtime/runtime.md >> node.md
cat pangoro-runtime/runtime.md >> node.md
cat node.tmp.md >> node.md
fi
- name: Hash file
Expand Down
102 changes: 0 additions & 102 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ dc-inflation = { path = "core/inflation", default-features
dc-primitives = { path = "core/primitives", default-features = false }
dc-types = { path = "core/types" }
pangolin-runtime = { path = "runtime/pangolin" }
pangoro-runtime = { path = "runtime/pangoro" }

# frontier
fc-api = { git = "https://github.com/paritytech/frontier", branch = "polkadot-v1.1.0" }
Expand Down
17 changes: 2 additions & 15 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,6 @@ command = "target/release/darwinia"
env = { "FLAGS" = "--chain crab-dev" }
extend = "common-run"

[tasks.build-pangoro]
command = "cargo"
env = { "FEATURES" = "pangoro-native" }
extend = "common-build"
[tasks.cbuild-pangoro]
command = "cross"
env = { "FEATURES" = "pangoro-native" }
extend = "common-build"
[tasks.run-pangoro]
command = "target/release/darwinia"
env = { "FLAGS" = "--chain pangoro-dev" }
extend = "common-run"

[tasks.build-pangolin]
command = "cargo"
env = { "FEATURES" = "pangolin-native" }
Expand Down Expand Up @@ -124,11 +111,11 @@ extend = "common-build"
# Build for testnets.
[tasks.build-tns]
command = "cargo"
env = { "FEATURES" = "pangolin-native,pangoro-native" }
env = { "FEATURES" = "pangolin-native" }
extend = "common-build"
[tasks.cbuild-tns]
command = "cross"
env = { "FEATURES" = "pangolin-native,pangoro-native" }
env = { "FEATURES" = "pangolin-native" }
extend = "common-build"

# Build for mainnets.
Expand Down
12 changes: 0 additions & 12 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ crab-runtime = { workspace = true, optional = true }
darwinia-runtime = { workspace = true, optional = true }
dc-primitives = { workspace = true, features = ["std"] }
pangolin-runtime = { workspace = true, optional = true }
pangoro-runtime = { workspace = true, optional = true }

# frontier
fc-api = { workspace = true }
Expand Down Expand Up @@ -114,7 +113,6 @@ evm-tracing = [
"crab-runtime?/evm-tracing",
"darwinia-runtime?/evm-tracing",
"pangolin-runtime?/evm-tracing",
"pangoro-runtime?/evm-tracing",

# moonbeam
"moonbeam-primitives-ext",
Expand All @@ -125,7 +123,6 @@ runtime-benchmarks = [
"crab-runtime?/runtime-benchmarks",
"darwinia-runtime?/runtime-benchmarks",
"pangolin-runtime?/runtime-benchmarks",
"pangoro-runtime?/runtime-benchmarks",

# polkadot
"polkadot-cli/runtime-benchmarks",
Expand All @@ -143,7 +140,6 @@ try-runtime = [
"crab-runtime?/try-runtime",
"darwinia-runtime?/try-runtime",
"pangolin-runtime?/try-runtime",
"pangoro-runtime?/try-runtime",

# polkadot
"polkadot-cli/try-runtime",
Expand All @@ -157,7 +153,6 @@ all-natives = [
"crab-native",
"darwinia-native",
"pangolin-native",
"pangoro-native",
]
crab-native = [
# darwinia
Expand All @@ -180,10 +175,3 @@ pangolin-native = [
# polkadot
"polkadot-cli/rococo-native",
]
pangoro-native = [
# darwinia
"pangoro-runtime",

# polkadot
"polkadot-cli/westend-native",
]
11 changes: 2 additions & 9 deletions node/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,7 @@ pub use pangolin::{self as pangolin_chain_spec, ChainSpec as PangolinChainSpec};
#[cfg(not(feature = "pangolin-native"))]
pub type PangolinChainSpec = DummyChainSpec;

#[cfg(feature = "pangoro-native")]
pub mod pangoro;
#[cfg(feature = "pangoro-native")]
pub use pangoro::{self as pangoro_chain_spec, ChainSpec as PangoroChainSpec};
#[cfg(not(feature = "pangoro-native"))]
pub type PangoroChainSpec = DummyChainSpec;

#[cfg(any(feature = "pangolin-native", feature = "pangoro-native"))]
#[cfg(feature = "pangolin-native")]
mod testnet_keys {
pub const C1: &str = "0x0eef9fabb6eb6fed2ab24a842931f8950426070a";
pub const C1_AURA: &str = "0xeed007f04d568b2d3bf329945a48c21a8ed030c81ca1dce61ad41c916599f405";
Expand All @@ -56,7 +49,7 @@ mod testnet_keys {
pub const C3_AURA: &str = "0xe25d860707bd1b88b9851cf40df3af3368cd57e5e82824cabac9c75fe537600f";
pub const SUDO: &str = "0x2748def2f9c3cfbbb963002935bc6d2e1c36ce2e";
}
#[cfg(any(feature = "pangolin-native", feature = "pangoro-native"))]
#[cfg(feature = "pangolin-native")]
use testnet_keys::*;

// std
Expand Down
Loading

0 comments on commit 6b8e551

Please sign in to comment.