Files
pezkuwi-sdk/pezcumulus/scripts/register_teyrchain.sh
T
pezkuwichain 1c0e57d984 feat: Rebrand Polkadot/Substrate references to PezkuwiChain
This commit systematically rebrands various references from Parity Technologies'
Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk.

Key changes include:
- Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks.
- Modified internal documentation and code comments to reflect PezkuwiChain naming and structure.
- Replaced direct references to  with  or specific paths within the  for XCM, Pezkuwi, and other modules.
- Cleaned up deprecated  issue and PR references in various  and  files, particularly in  and  modules.
- Adjusted image and logo URLs in documentation to point to PezkuwiChain assets.
- Removed or rephrased comments related to external Polkadot/Substrate PRs and issues.

This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
2025-12-14 00:04:10 +03:00

51 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
usage() {
echo Usage:
echo "$0 <url> <seed> <wasm> <genesis> <teyrchain-id> <types>"
exit 1
}
url=$1
seed=$2
wasm=$3
genesis=$4
teyrchain_id=$5
types=$6 # we can remove this once teyrchain types are included in pezkuwi-js-api
[ -z "$url" ] && usage
[ -z "$seed" ] && usage
[ -z "$wasm" ] && usage
[ -z "$types" ] && usage
[ -z "$genesis" ] && usage
[ -z "$teyrchain_id" ] && usage
if ! [ -r "$wasm" ]; then
echo "Could not read: $wasm"
exit 1
fi
if ! [ -r "$types" ]; then
echo "Could not read: $types"
exit 1
fi
if ! which pezkuwi-js-api &> /dev/null; then
echo 'command `pezkuwi-js-api` not in PATH'
echo "npm install -g @pezkuwi/api-cli@beta"
exit 1
fi
set -e -x
test -f "$seed" && seed="$(cat "$seed")"
wasm=$(cat $wasm)
pezkuwi-js-api \
--ws "${url?}" \
--sudo \
--seed "${seed?}" \
--types "${types?}" \
tx.parasSudoWrapper.sudoScheduleParaInitialize \
"${teyrchain_id?}" \
"{ \"genesisHead\":\"${genesis?}\", \"validationCode\":\"${wasm?}\", \"teyrchain\": true }" \