This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install docker | |
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# directories | |
WORK_DIR=/Users/talhadar/peaq | |
TARGET=target/release | |
PEAQ_DIR=$WORK_DIR/peaq-network-node | |
POLKADOT_DIR=$WORK_DIR/polkadot-sdk | |
TMP_DIR=$WORK_DIR/tmp | |
# chainspecs dir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
KEY_SEED=$1 | |
NODE_NAME=$2 | |
NODE_PATH="./target/release/$NODE_NAME" | |
ED_SEED=$($NODE_PATH key inspect --scheme ed25519 "$KEY_SEED" | grep "Secret seed" | awk {'print $3'}) | |
SR_SEED=$($NODE_PATH key inspect --scheme sr25519 "$KEY_SEED" | grep "Secret seed" | awk {'print $3'}) | |
ED_PUB_KEY=$($NODE_PATH key inspect --scheme ed25519 "$KEY_SEED" | grep Public | awk {'print $4'}) | |
SR_PUB_KEY=$($NODE_PATH key inspect --scheme sr25519 "$KEY_SEED" | grep Public | awk {'print $4'}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Account, | |
clusterApiUrl, | |
Connection, | |
PublicKey, | |
sendAndConfirmTransaction, | |
SystemProgram, | |
Transaction, | |
} from '@solana/web3.js'; |