mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 09:17:58 +00:00
5a4bca765e
* Add Rococo test network * Correct license header * Add bootNodes address * Fix compile errors * Change bootNodes * Change rococo bootNodes * Add new bootNodes * Fix bootNodes typo * Remove public telemetry * Add rococo-local chain spec * Remove staking * Remove staking from chain spec * use rococo-staging chain spec and preserve bootnodes * Same but with --raw * update chain name and remove telemetry * Empty commit to re-trigger CI * Fix revision (temp. until I merge master) * Revert to branch = master to avoid conflicts * Revert to branch = master to avoid conflicts * Disable test (temp) * Revert to branch = master to avoid conflicts * Revert to branch = master to avoid conflicts * Change bootNodes IPs for second rococo network * Revert "Disable test (temp)" This reverts commit a159f12e3131d1a25dabb1a4d2834642f2bcdc26. * Revert purchase * Update chain spec * FUUU * Update service/src/lib.rs Co-authored-by: Robert Habermeier <rphmeier@gmail.com> * Update runtime/rococo/src/lib.rs Co-authored-by: Robert Habermeier <rphmeier@gmail.com> * Fix compilation Co-authored-by: Evaldo <contato@evaldofelipe.com> Co-authored-by: David Dorgan <david@parity.io> Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com> Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Please provide the number of initial validators!"
|
|
exit 1
|
|
fi
|
|
|
|
generate_account_id() {
|
|
subkey ${3:-} inspect "$SECRET//$1//$2" | grep "Account ID" | awk '{ print $3 }'
|
|
}
|
|
|
|
generate_address() {
|
|
subkey ${3:-} inspect "$SECRET//$1//$2" | grep "SS58 Address" | awk '{ print $3 }'
|
|
}
|
|
|
|
generate_address_and_account_id() {
|
|
ACCOUNT=$(generate_account_id $1 $2 $3)
|
|
ADDRESS=$(generate_address $1 $2 $3)
|
|
if ${4:-false}; then
|
|
INTO="unchecked_into"
|
|
else
|
|
INTO="into"
|
|
fi
|
|
|
|
printf "//$ADDRESS\nhex![\"${ACCOUNT#'0x'}\"].$INTO(),"
|
|
}
|
|
|
|
V_NUM=$1
|
|
|
|
AUTHORITIES=""
|
|
|
|
for i in $(seq 1 $V_NUM); do
|
|
AUTHORITIES+="(\n"
|
|
AUTHORITIES+="$(generate_address_and_account_id $i stash)\n"
|
|
AUTHORITIES+="$(generate_address_and_account_id $i controller)\n"
|
|
AUTHORITIES+="$(generate_address_and_account_id $i babe '--sr25519' true)\n"
|
|
AUTHORITIES+="$(generate_address_and_account_id $i grandpa '--ed25519' true)\n"
|
|
AUTHORITIES+="$(generate_address_and_account_id $i im_online '--sr25519' true)\n"
|
|
AUTHORITIES+="$(generate_address_and_account_id $i parachains '--sr25519' true)\n"
|
|
AUTHORITIES+="$(generate_address_and_account_id $i authority_discovery '--sr25519' true)\n"
|
|
AUTHORITIES+="),\n"
|
|
done
|
|
|
|
printf "$AUTHORITIES"
|