Skip to content

Commit

Permalink
Crab & Pangolin Runtime (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong authored Nov 25, 2022
1 parent 3571868 commit e5be305
Show file tree
Hide file tree
Showing 107 changed files with 8,259 additions and 143 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,34 @@ jobs:
run: |
tar xf darwinia.tar.zst -I pzstd
sudo mv darwinia /usr/bin
- id: check-crab-runtime-version
name: Check Crab runtime version
run: |
OUTPUT=$(subalfred check runtime --executable darwinia --chain crab-local --live https://rpc.polkadot.io --property version)
OUTPUT="${OUTPUT//'%'/'%25'}​"
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
echo "::set-output name=check-crab-runtime-version::$OUTPUT"
- id: check-crab-runtime-storage
name: Check Crab runtime storage
run: |
OUTPUT=$(subalfred check runtime --executable darwinia --chain crab-local --live https://rpc.polkadot.io --property storage)
OUTPUT="${OUTPUT//'%'/'%25'}​"
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
echo "::set-output name=check-crab-runtime-storage::$OUTPUT"
- id: check-darwinia-runtime-version
name: Check Darwinia runtime version
run: |
OUTPUT=$(subalfred check runtime --executable darwinia --chain local --live https://rpc.polkadot.io --property version)
OUTPUT=$(subalfred check runtime --executable darwinia --chain darwinia-local --live https://rpc.polkadot.io --property version)
OUTPUT="${OUTPUT//'%'/'%25'}​"
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
echo "::set-output name=check-darwinia-runtime-version::$OUTPUT"
- id: check-darwinia-runtime-storage
name: Check Darwinia runtime storage
run: |
OUTPUT=$(subalfred check runtime --executable darwinia --chain local --live https://rpc.polkadot.io --property storage)
OUTPUT=$(subalfred check runtime --executable darwinia --chain darwinia-local --live https://rpc.polkadot.io --property storage)
OUTPUT="${OUTPUT//'%'/'%25'}​"
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
Expand Down
191 changes: 191 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ cumulus-relay-chain-interface = { git = "https://github.com/paritytech
cumulus-relay-chain-rpc-interface = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.30" }

# darwinia
crab-runtime = { path = "../runtime/crab" }
darwinia-runtime = { path = "../runtime/darwinia" }
dc-primitives = { path = "../core/primitives" }
pangolin-runtime = { path = "../runtime/pangolin" }

# frontier
fc-cli = { git = "https://github.com/paritytech/frontier", branch = "polkadot-v0.9.30" }
Expand Down Expand Up @@ -85,6 +87,7 @@ sp-consensus = { git = "https://github.com/paritytech/substrat
sp-consensus-aura = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-offchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" }
Expand Down
Loading

0 comments on commit e5be305

Please sign in to comment.