@@ -797,29 +797,36 @@ function endow_dev_accounts() {
797797 local input_spec=" $1 "
798798 local output_spec=" $2 "
799799
800- # Endow development accounts with funds
801- # Alith (Ethereum-compatible test account):
800+ # Endow 0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac
802801 # PassPhrase: bottom drive obey lake curtain smoke basket hold race lonely fit walk
803- # H160: 0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac
804- # SS58: 5CfCLa2N85aH2tUKT48LmRSGNx27DnJUayMXqvvcU97VN2sk
802+ # SS58: 5HYRCKHYJN9z5xUtfFkyMj4JUhsAwWyvuU8vKB1FcnYTf9ZQ
805803 # Private key (ecdsa): 0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133
806- #
807- # Alice (Substrate test account):
808- # SS58: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
809- # Private key (sr25519): 0xe5be9a5092b81bca64be81d212e7f2f9eba183bb7a90954f7b76361f6edb5c0a
810- jq ' .genesis.runtimeGenesis.patch.balances.balances = [
811- ["5GNJqTPyNqANBkUVMN1LPPrxXnFouWXoe2wNSmmEoLctxiZY", 1000000001000000000],
812- ["5HpG9w8EBLe5XCrbczpwq5TSXvedjrBGCwqxK1iQ7qUsSWFc", 1000000001000000000],
813- ["5HYRCKHYJN9z5xUtfFkyMj4JUhsAwWyvuU8vKB1FcnYTf9ZQ", 100000000000000001000000000],
814- ["5CfCLa2N85aH2tUKT48LmRSGNx27DnJUayMXqvvcU97VN2sk", 1000000001000000000],
815- ["5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", 1000000001000000000],
816- ["5Exhf8yKh5CUwVBucuPKmW66vpZr2BgoE1p8KgeHibCTY9nN", 1000000001000000000],
817- ["5EHrjJ437hjWG28LA466LjGDgK4NbmAQkJnwmXwGXNZYhq5u", 1000000001000000000]
804+ jq ' .genesis.runtimeGenesis.patch.balances.balances += [
805+ ["5HYRCKHYJN9z5xUtfFkyMj4JUhsAwWyvuU8vKB1FcnYTf9ZQ", 100000000000000001000000000]
818806 ]
819807 | .genesis.runtimeGenesis.patch.staking.devStakers = [0, 0]
820808 ' " $input_spec " > " $output_spec "
821809}
822810
811+ # Helper function to send desktop notifications
812+ # Supports both Linux (notify-send) and macOS (osascript)
813+ # Usage: notify <message> [timeout_ms]
814+ # Examples:
815+ # notify "Build complete"
816+ # notify "eth-rpc is ready!" 3000
817+ function notify() {
818+ local message=" $1 "
819+ local timeout=" ${2:- 3000} "
820+
821+ if [[ " $OSTYPE " == " darwin" * ]]; then
822+ # macOS
823+ osascript -e " display notification \" $message \" with title \" Notification\" "
824+ elif command -v notify-send & > /dev/null; then
825+ # Linux with notify-send
826+ notify-send -t " $timeout " " $message "
827+ fi
828+ }
829+
823830# Helper function to wait for eth-rpc to be ready
824831# Polls the eth-rpc endpoint until it responds or times out
825832# Usage: wait_for_eth_rpc [url]
@@ -838,12 +845,7 @@ function wait_for_eth_rpc() {
838845 --data ' {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
839846 " $eth_rpc_url " > /dev/null 2>&1 ; then
840847 echo " eth-rpc is ready!"
841-
842- # Check if dunst is installed and send notification
843- if command -v notify-send & > /dev/null; then
844- notify-send -t 3000 " eth-rpc is ready!"
845- fi
846-
848+ notify " eth-rpc is ready!" 3000
847849 return 0
848850 fi
849851 attempt=$(( attempt + 1 ))
@@ -899,7 +901,7 @@ function westend() {
899901 if command -v lnav & > /dev/null; then
900902 set -x
901903 polkadot-omni-node \
902- --tmp \
904+ --dev \
903905 --log=" $RUST_LOG " \
904906 --instant-seal \
905907 --no-prometheus \
@@ -908,7 +910,7 @@ function westend() {
908910 else
909911 set -x
910912 polkadot-omni-node \
911- --tmp \
913+ --dev \
912914 --log=" $RUST_LOG " \
913915 --instant-seal \
914916 --no-prometheus \
0 commit comments