-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readd devnet.sh, and update endpoint
- Loading branch information
1 parent
f039b16
commit a1f6117
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
|
||
i=0 | ||
version="" | ||
export ACCOUNT_ADDRESS=0x06bb9425718d801fd06f144abb82eced725f0e81db61d2f9f4c9a26ece46a829 | ||
|
||
while true; do | ||
i=$((i + 1)) | ||
curl --fail localhost:5050/is_alive 2>/dev/null 2>&1 | ||
result=$? | ||
if [ $result -eq 0 ]; then | ||
sleep 5 | ||
curl --fail -H 'Content-Type: application/json' -XPOST http://localhost:5050/mint \ | ||
-d '{ "address": "'${ACCOUNT_ADDRESS}'", "amount": 1000000000000000}' | ||
exit 0 | ||
fi | ||
if [ $i -gt 10 ]; then | ||
break | ||
fi | ||
echo "we will continue in a while, loop ${i}..." | ||
i=$((i + 1)) | ||
sleep 3 | ||
done | ||
|
||
echo "could not check devnet is_alive; fail!!!" | ||
exit 1 |
This file contains 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