mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 04:27:56 +00:00
Update documentation and templates for Pezkuwi branding
This commit is contained in:
@@ -13,5 +13,5 @@ mkdir benchmarking/new-benchmarks
|
||||
|
||||
while IFS= read -r line; do
|
||||
echo "Creating benchmark for: $line"
|
||||
target/release/parachain-template-node benchmark pallet --steps=50 --repeat=20 --extrinsic=* --wasm-execution=compiled --heap-pages=4096 --json-file=benchmarking/results/results-$line.json --pallet=$line --chain=dev --output=benchmarking/new-benchmarks/$line.rs
|
||||
target/release/teyrchain-template-node benchmark pezpallet --steps=50 --repeat=20 --extrinsic=* --wasm-execution=compiled --heap-pages=4096 --json-file=benchmarking/results/results-$line.json --pezpallet=$line --chain=dev --output=benchmarking/new-benchmarks/$line.rs
|
||||
done < $filename
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
ZOMBIENET_V=v1.3.106
|
||||
POLKADOT_V=stable-2407-01
|
||||
POLKAHEZ_V=stable-2407-01
|
||||
|
||||
# Detect the operating system
|
||||
case "$(uname -s)" in
|
||||
@@ -36,33 +36,33 @@ fi
|
||||
|
||||
echo "Using binary: $ZOMBIENET_BIN"
|
||||
|
||||
BIN_DIR=bin-$POLKADOT_V
|
||||
BIN_DIR=bin-$POLKAHEZ_V
|
||||
|
||||
build_polkadot() {
|
||||
echo "cloning polkadot repository..."
|
||||
build_pezkuwi() {
|
||||
echo "cloning pezkuwi repository..."
|
||||
CWD=$(pwd)
|
||||
mkdir -p "$BIN_DIR"
|
||||
pushd /tmp
|
||||
git clone https://github.com/paritytech/polkadot-sdk.git
|
||||
pushd polkadot-sdk
|
||||
git checkout release-polkadot-$POLKADOT_V
|
||||
echo "building polkadot executable..."
|
||||
git clone https://github.com/pezkuwichain/pezkuwi-sdk.git
|
||||
pushd pezkuwi-sdk
|
||||
git checkout release-pezkuwi-$POLKAHEZ_V
|
||||
echo "building pezkuwi executable..."
|
||||
cargo build --release --features fast-runtime
|
||||
cp target/release/polkadot "$CWD/$BIN_DIR"
|
||||
cp target/release/polkadot-execute-worker "$CWD/$BIN_DIR"
|
||||
cp target/release/polkadot-prepare-worker "$CWD/$BIN_DIR"
|
||||
cp target/release/pezkuwi "$CWD/$BIN_DIR"
|
||||
cp target/release/pezkuwi-execute-worker "$CWD/$BIN_DIR"
|
||||
cp target/release/pezkuwi-prepare-worker "$CWD/$BIN_DIR"
|
||||
popd
|
||||
popd
|
||||
}
|
||||
|
||||
fetch_polkadot() {
|
||||
echo "fetching from polkadot repository..."
|
||||
fetch_pezkuwi() {
|
||||
echo "fetching from pezkuwi repository..."
|
||||
echo $BIN_DIR
|
||||
mkdir -p "$BIN_DIR"
|
||||
pushd "$BIN_DIR"
|
||||
wget https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-$POLKADOT_V/polkadot
|
||||
wget https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-$POLKADOT_V/polkadot-execute-worker
|
||||
wget https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-$POLKADOT_V/polkadot-prepare-worker
|
||||
wget https://github.com/pezkuwichain/pezkuwi-sdk/releases/download/pezkuwi-$POLKAHEZ_V/pezkuwi
|
||||
wget https://github.com/pezkuwichain/pezkuwi-sdk/releases/download/pezkuwi-$POLKAHEZ_V/pezkuwi-execute-worker
|
||||
wget https://github.com/pezkuwichain/pezkuwi-sdk/releases/download/pezkuwi-$POLKAHEZ_V/pezkuwi-prepare-worker
|
||||
chmod +x *
|
||||
popd
|
||||
}
|
||||
@@ -70,29 +70,29 @@ fetch_polkadot() {
|
||||
zombienet_init() {
|
||||
if [ ! -f $ZOMBIENET_BIN ]; then
|
||||
echo "fetching zombienet executable..."
|
||||
curl -LO https://github.com/paritytech/zombienet/releases/download/$ZOMBIENET_V/$ZOMBIENET_BIN
|
||||
curl -LO https://github.com/pezkuwichain/zombienet/releases/download/$ZOMBIENET_V/$ZOMBIENET_BIN
|
||||
chmod +x $ZOMBIENET_BIN
|
||||
fi
|
||||
if [ ! -f $BIN_DIR/polkadot ]; then
|
||||
fetch_polkadot
|
||||
if [ ! -f $BIN_DIR/pezkuwi ]; then
|
||||
fetch_pezkuwi
|
||||
fi
|
||||
}
|
||||
|
||||
zombienet_build() {
|
||||
if [ ! -f $ZOMBIENET_BIN ]; then
|
||||
echo "fetching zombienet executable..."
|
||||
curl -LO https://github.com/paritytech/zombienet/releases/download/$ZOMBIENET_V/$ZOMBIENET_BIN
|
||||
curl -LO https://github.com/pezkuwichain/zombienet/releases/download/$ZOMBIENET_V/$ZOMBIENET_BIN
|
||||
chmod +x $ZOMBIENET_BIN
|
||||
fi
|
||||
if [ ! -f $BIN_DIR/polkadot ]; then
|
||||
build_polkadot
|
||||
if [ ! -f $BIN_DIR/pezkuwi ]; then
|
||||
build_pezkuwi
|
||||
fi
|
||||
}
|
||||
|
||||
zombienet_devnet() {
|
||||
zombienet_init
|
||||
cargo build --release
|
||||
echo "spawning paseo-local relay chain plus devnet as a parachain..."
|
||||
echo "spawning paseo-local relay chain plus devnet as a teyrchain..."
|
||||
local dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
./$ZOMBIENET_BIN spawn "$dir/../zombienet-config/devnet.toml" -p native
|
||||
}
|
||||
@@ -101,9 +101,9 @@ zombienet_devnet() {
|
||||
print_help() {
|
||||
echo "This is a shell script to automate the execution of zombienet."
|
||||
echo ""
|
||||
echo "$ ./zombienet.sh init # fetches zombienet and polkadot executables"
|
||||
echo "$ ./zombienet.sh build # builds polkadot executables from source"
|
||||
echo "$ ./zombienet.sh devnet # spawns a paseo-local relay chain plus parachain devnet-local as a parachain"
|
||||
echo "$ ./zombienet.sh init # fetches zombienet and pezkuwi executables"
|
||||
echo "$ ./zombienet.sh build # builds pezkuwi executables from source"
|
||||
echo "$ ./zombienet.sh devnet # spawns a paseo-local relay chain plus teyrchain devnet-local as a teyrchain"
|
||||
}
|
||||
|
||||
SUBCOMMAND=$1
|
||||
|
||||
Reference in New Issue
Block a user