-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Testnets config and drop database * Drop database on new chain detection * Enable runtime vars in bcd, add necessary scripts for resetting periodic testnets * Add rollupnet * Teztnets: fix api bind * Bump gui ver * Restart periodic networks * Fix: workflow * Linter configuration * go.nod * Fix: linter * Fix: linter * Fix: indexer crreations * Add rollupnet teznets source --------- Co-authored-by: Michael Zaikin <[email protected]> Co-authored-by: Michael Zaikin <[email protected]>
- Loading branch information
1 parent
4c41606
commit 9256cfb
Showing
37 changed files
with
984 additions
and
133 deletions.
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
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
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
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 |
---|---|---|
|
@@ -11,3 +11,7 @@ linters: | |
- ineffassign | ||
- containedctx | ||
- tenv | ||
|
||
run: | ||
go: '1.19' | ||
timeout: 3m |
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
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
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,7 @@ | ||
#!/bin/sh | ||
|
||
curl https://teztnets.xyz/teztnets.json > /teztnets.json | ||
mondaynet_rpc=$(cat /teztnets.json | jq '. | to_entries | map(select(.key | startswith("monday"))) | map(.value.rpc_url)[0]') | ||
dailynet_rpc=$(cat /teztnets.json | jq '. | to_entries | map(select(.key | startswith("daily"))) | map(.value.rpc_url)[0]') | ||
|
||
DAILYNET_RPC=$dailynet_rpc MONDAYNET_RPC=$mondaynet_rpc /go/bin/api |
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,3 @@ | ||
#!/bin/sh | ||
|
||
diff -s <(curl https://teztnets.xyz/teztnets.json) /teztnets.json |
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
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,7 @@ | ||
#!/bin/sh | ||
|
||
curl https://teztnets.xyz/teztnets.json > /teztnets.json | ||
mondaynet_rpc=$(cat /teztnets.json | jq '. | to_entries | map(select(.key | startswith("monday"))) | map(.value.rpc_url)[0]') | ||
dailynet_rpc=$(cat /teztnets.json | jq '. | to_entries | map(select(.key | startswith("daily"))) | map(.value.rpc_url)[0]') | ||
|
||
DAILYNET_RPC=$dailynet_rpc MONDAYNET_RPC=$mondaynet_rpc /go/bin/indexer |
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,3 @@ | ||
#!/bin/sh | ||
|
||
diff -s <(curl https://teztnets.xyz/teztnets.json) /teztnets.json |
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
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,22 @@ | ||
#!/bin/sh | ||
|
||
ROOT_DIR=/usr/share/nginx/html | ||
|
||
if [ -z "$BASE_URL" ]; then | ||
BASE_URL=http://localhost | ||
fi | ||
if [ -z "$API_URL" ]; then | ||
API_URL=http://localhost:14000/v1 | ||
fi | ||
if [ -z "$IPFS_URL" ]; then | ||
IPFS_URL=https://ipfs.io | ||
fi | ||
|
||
for file in $ROOT_DIR/js/*.js* $ROOT_DIR/index.html; | ||
do | ||
sed -i 's|__BASE_URL__|'$BASE_URL'|g' $file | ||
sed -i 's|__VUE_APP_API_URI__|'$API_URL'|g' $file | ||
sed -i 's|__VUE_APP_IPFS_NODE__|'$IPFS_URL'|g' $file | ||
done | ||
|
||
nginx -g 'daemon off;' |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
NODE_ENV=production | ||
VUE_APP_API_URI=http://localhost:14000/v1 | ||
VUE_APP_IPFS_NODE=https://ipfs.io | ||
BASE_URL=__BASE_URL__ | ||
VUE_APP_API_URI=__VUE_APP_API_URI__ | ||
VUE_APP_IPFS_NODE=__VUE_APP_IPFS_NODE__ |
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
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
Oops, something went wrong.