Skip to content

Commit

Permalink
Use local branch to generate artefacts (#1116)
Browse files Browse the repository at this point in the history
* use local branch to generate artefacts

* fix path

* allow TEE pallets call on rococo
  • Loading branch information
Kailai-Wang authored Dec 22, 2022
1 parent e205eb3 commit f34f222
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 4 additions & 0 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,10 @@ impl Contains<RuntimeCall> for NormalModeFilter {
RuntimeCall::IdentityManagementMock(_) |
RuntimeCall::IdentityManagement(_) |
RuntimeCall::VCManagement(_) |
// TEE pallets
RuntimeCall::Teerex(_) |
RuntimeCall::Sidechain(_) |
RuntimeCall::Teeracle(_) |
// ParachainStaking; Only the collator part
RuntimeCall::ParachainStaking(pallet_parachain_staking::Call::join_candidates { .. }) |
RuntimeCall::ParachainStaking(pallet_parachain_staking::Call::schedule_leave_candidates { .. }) |
Expand Down
13 changes: 3 additions & 10 deletions tee-worker/scripts/litentry/generate_parachain_artefacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
set -euo pipefail

ROOTDIR=$(git rev-parse --show-toplevel)
ROOTDIR="$ROOTDIR/tee-worker"
DESTDIR="$ROOTDIR/docker/litentry"
PARACHAIN_DIR=$(mktemp -d)
git clone https://github.com/litentry/litentry-parachain "$PARACHAIN_DIR"
cd "$PARACHAIN_DIR"
git checkout tee-dev
DESTDIR="$ROOTDIR/tee-worker/docker/litentry"

cp -f docker/rococo-parachain-launch-config.tee-dev.yml docker/rococo-parachain-launch-config.yml
# generate files
cd "$ROOTDIR"
make generate-docker-compose-rococo
# copy files over to `DESTDIR`
mkdir -p "$DESTDIR"
cp docker/generated-rococo/* "$DESTDIR/"
# clean up
rm -rf "$PARACHAIN_DIR"
cp docker/generated-rococo/* "$DESTDIR/"

0 comments on commit f34f222

Please sign in to comment.