fix: EnsureOrigin try_successful_origin and snowbridge rename
- Fix pezpallet-welati EnsureOrigin implementations (3 fixes)
- Remove incorrect #[cfg(not(feature = "runtime-benchmarks"))] blocks
- Affects EnsureSerok, EnsureParlementer, EnsureDiwan
- Fix asset-hub-zagros governance origins macros (2 fixes)
- Remove non-benchmark try_successful_origin from decl_unit_ensures!
- Remove non-benchmark try_successful_origin from decl_ensure!
- Rename snowbridge -> pezsnowbridge for consistency
- Update WORKFLOW_PLAN.md with build status and package names
- Correct package names: pezkuwi-teyrchain-bin, pezstaging-node-cli
- Mark completed builds: pezkuwi, pezkuwi-teyrchain-bin,
pezstaging-node-cli, teyrchain-template-node
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Example command for updating pallet benchmarking
|
||||
pushd ../pezcumulus
|
||||
cargo run --release --bin pezkuwi-teyrchain \
|
||||
--features runtime-benchmarks \
|
||||
-- \
|
||||
benchmark pallet \
|
||||
--chain=bridge-hub-pezkuwichain-dev \
|
||||
--pallet=snowbridge_pallet_ethereum_client \
|
||||
--extrinsic="*" \
|
||||
--execution=wasm --wasm-execution=compiled \
|
||||
--steps 50 --repeat 20 \
|
||||
--output ./teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights/snowbridge_pallet_ethereum_client.rs
|
||||
popd
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# A script to cleanup the Snowfork fork of the pezkuwi-sdk to contribute it upstream back to parity/pezkuwi-sdk
|
||||
# ./bridges/snowbridge/scripts/contribute-upstream.sh <branchname>
|
||||
|
||||
# show CLI help
|
||||
function show_help() {
|
||||
set +x
|
||||
echo " "
|
||||
echo Error: $1
|
||||
echo "Usage:"
|
||||
echo " ./bridges/snowbridge/scripts/contribute-upstream.sh <branchname> Exit with code 0 if pallets code is well decoupled from the other code in the repo"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "Please provide a branch name you would like your upstream branch to be named"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
branch_name=$1
|
||||
|
||||
set -eux
|
||||
|
||||
# let's avoid any restrictions on where this script can be called for - snowbridge repo may be
|
||||
# plugged into any other repo folder. So the script (and other stuff that needs to be removed)
|
||||
# may be located either in call dir, or one of it subdirs.
|
||||
SNOWBRIDGE_FOLDER="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../"
|
||||
|
||||
# Get the current Git branch name
|
||||
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
if [ "$current_branch" = "$branch_name" ] || git branch | grep -q "$branch_name"; then
|
||||
echo "Already on requested branch or branch exists, not creating."
|
||||
else
|
||||
git branch "$branch_name"
|
||||
fi
|
||||
|
||||
git checkout "$branch_name"
|
||||
|
||||
# remove everything we think is not required for our needs
|
||||
rm -rf rust-toolchain.toml
|
||||
rm -rf codecov.yml
|
||||
rm -rf $SNOWBRIDGE_FOLDER/.cargo
|
||||
rm -rf $SNOWBRIDGE_FOLDER/.github
|
||||
rm -rf $SNOWBRIDGE_FOLDER/SECURITY.md
|
||||
rm -rf $SNOWBRIDGE_FOLDER/.gitignore
|
||||
rm -rf $SNOWBRIDGE_FOLDER/rustfmt.toml
|
||||
rm -rf $SNOWBRIDGE_FOLDER/templates
|
||||
rm -rf $SNOWBRIDGE_FOLDER/pallets/ethereum-client/fuzz
|
||||
|
||||
pushd $SNOWBRIDGE_FOLDER
|
||||
|
||||
# let's test if everything we need compiles
|
||||
cargo check -p snowbridge-pallet-ethereum-client
|
||||
cargo check -p snowbridge-pallet-ethereum-client --features runtime-benchmarks
|
||||
cargo check -p snowbridge-pallet-ethereum-client --features try-runtime
|
||||
cargo check -p snowbridge-pallet-inbound-queue
|
||||
cargo check -p snowbridge-pallet-inbound-queue --features runtime-benchmarks
|
||||
cargo check -p snowbridge-pallet-inbound-queue --features try-runtime
|
||||
cargo check -p snowbridge-pallet-outbound-queue
|
||||
cargo check -p snowbridge-pallet-outbound-queue --features runtime-benchmarks
|
||||
cargo check -p snowbridge-pallet-outbound-queue --features try-runtime
|
||||
cargo check -p snowbridge-pallet-system
|
||||
cargo check -p snowbridge-pallet-system --features runtime-benchmarks
|
||||
cargo check -p snowbridge-pallet-system --features try-runtime
|
||||
|
||||
# we're removing lock file after all checks are done. Otherwise we may use different
|
||||
# Bizinikiwi/Pezkuwi/Pezcumulus commits and our checks will fail
|
||||
rm -f $SNOWBRIDGE_FOLDER/Cargo.toml
|
||||
rm -f $SNOWBRIDGE_FOLDER/Cargo.lock
|
||||
|
||||
popd
|
||||
|
||||
# Replace Parity's CI files, that we have overwritten in our fork, to run our own CI
|
||||
rm -rf .github
|
||||
git remote -v | grep -w parity || git remote add parity https://github.com/pezkuwichain/pezkuwi-sdk
|
||||
git fetch parity master
|
||||
git checkout parity/master -- .github
|
||||
git add -- .github
|
||||
|
||||
git commit -m "cleanup branch"
|
||||
|
||||
# Fetch the latest from parity master
|
||||
echo "Fetching latest from Parity master. Resolve merge conflicts, if there are any."
|
||||
git fetch parity master
|
||||
git merge parity/master
|
||||
echo "OK"
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Creates a string constant from STDIN
|
||||
echo "const DATA: &'static str = concat!("
|
||||
cat - | fold | sed 's/^.*/\t"&",/'
|
||||
echo ");"
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Initializing WASM build environment"
|
||||
|
||||
if [ -z $CI_PROJECT_NAME ] ; then
|
||||
rustup update nightly
|
||||
rustup update stable
|
||||
fi
|
||||
|
||||
rustup target add wasm32-unknown-unknown --toolchain nightly
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd ../ethereum
|
||||
|
||||
truffle exec scripts/dumpTeyrchainConfig.js | sed '/^Using/d;/^$/d'
|
||||
Reference in New Issue
Block a user