Skip to content

Commit 1ca2d97

Browse files
authored
feat: test3 (#385)
* feat: test3 Signed-off-by: Manfred Touron <[email protected]> * chore: update home for test3 and local devnet Signed-off-by: Manfred Touron <[email protected]> * chore: update home Signed-off-by: Manfred Touron <[email protected]> Signed-off-by: Manfred Touron <[email protected]>
1 parent f21a1b9 commit 1ca2d97

File tree

8 files changed

+470
-13
lines changed

8 files changed

+470
-13
lines changed

gnoland/website/HOME.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
1-
Welcome to Gno.land.
1+
Welcome to Gno.land devnet.
22

33
* [Install `gnokey`](https://github.com/gnolang/gno/)
44
* [Acquire testnet tokens](/faucet)
5-
* [Read the quickstart guide](/r/boards:gnolang/4)
65

76
Explore new packages.
87

9-
* [/p/avl](/p/avl)
10-
* [/r/boards](/r/boards)
11-
* [/r/nft](/r/nft)
12-
* [/r/users](/r/users)
13-
* [/r/banktest](/r/banktest)
14-
* [/p/grc/grc20](/p/grc/grc20)
15-
* [/p/grc/grc721](/p/grc/grc721)
16-
* [/r/foo20](/r/foo20)
8+
* [/p/demo/avl](/p/demo/avl)
9+
* [/p/demo/blog](/p/demo/blog)
10+
* [/p/demo/flow](/p/demo/flow)
11+
* [/p/demo/gnode](/p/demo/gnode)
12+
* [/p/demo/grc/exts](/p/demo/grc/exts)
13+
* [/p/demo/grc/grc20](/p/demo/grc/grc20)
14+
* [/p/demo/grc/grc721](/p/demo/grc/grc721)
15+
* [/r/demo/banktest](/r/demo/banktest)
16+
* [/r/demo/boards](/r/demo/boards)
17+
* [/r/demo/foo20](/r/demo/foo20)
18+
* [/r/demo/nft](/r/demo/nft)
19+
* [/r/demo/types](/r/demo/types)
20+
* [/r/demo/users](/r/demo/users)
21+
* [/r/gnoland/blog](/r/gnoland/blog)
22+
* [/r/gnoland/faucet](/r/gnoland/faucet)
23+
* [/r/system/names](/r/system/names)
24+
* [/r/system/rewards](/r/system/rewards)
25+
* [/r/system/validators](/r/system/validators)
1726

18-
This is a testnet. \
19-
Package names are not guaranteed to be available for production.\
20-
To be guaranteed a package and realm name, [register](/r/users).
27+
This is a testnet.
28+
Package names are not guaranteed to be available for production.
2129

2230
Also, join our [Discord](https://discord.gg/tF2X8M6cVj).

misc/test3.gno.land/.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
RECAPTCHA_SITE_KEY=foobar
2+
RECAPTCHA_SECRET_KEY=foobar
3+
FAUCET_WORDS=foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz
4+
GNOKEY_PASS=dontcare

misc/test3.gno.land/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.env
2+
data/
3+
overlay/balances.txt

misc/test3.gno.land/Makefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
all: build up logs
2+
3+
up: ./overlay/balances.txt
4+
mkdir -p data/gnoland/config
5+
cp overlay/config.toml data/gnoland/config/config.toml
6+
docker compose up --build -d
7+
8+
logs:
9+
docker compose logs --tail=1000 -f
10+
11+
down:
12+
docker compose down
13+
docker volume rm -f test3gnoland_gnonode
14+
docker compose run gnoland rm -rf /opt/gno/src/testdir/data /opt/gno/src/testdir/config
15+
16+
pull:
17+
git pull
18+
19+
build:
20+
docker compose build
21+
22+
./overlay/balances.txt:
23+
wget https://github.com/gnolang/independence-day/raw/main/mkgenesis/balances.txt.gz -O overlay/balances.txt.gz
24+
gunzip overlay/balances.txt.gz
25+
26+
gnotxport:
27+
#docker build -t gno ../..
28+
docker run -v "$(PWD):$(PWD)" -w "$(PWD)" gno gnotxport export --remote test3.gno.land:36657
29+
tail -n 1 txexport.log
30+
wc -l txexport.log
31+
32+
gnotximport:
33+
docker run -v "$(PWD):$(PWD)" -w "$(PWD)" gno gnotxport import --remote test3.gno.land:36657

misc/test3.gno.land/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# test3.gno.land
2+
3+
second official testnet.
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
version: "2"
2+
3+
services:
4+
gnoland:
5+
container_name: gnoland
6+
build: ../..
7+
environment:
8+
- LOG_LEVEL=4
9+
- VIRTUAL_HOST=rpc.test3.gno.land
10+
- VIRTUAL_PORT=36657
11+
- LETSENCRYPT_HOST=rpc.test3.gno.land
12+
command:
13+
- gnoland
14+
- --skip-failing-genesis-txs
15+
- --chainid
16+
- test3
17+
- --genesis-remote
18+
- test3.gno.land:36657
19+
- --genesis-balances-file
20+
- /overlay/balances.txt
21+
volumes:
22+
- "./data/gnoland:/opt/gno/src/testdir"
23+
- "./overlay:/overlay:ro"
24+
ports:
25+
- 36656:36656
26+
- 36657:36657
27+
restart: on-failure
28+
logging:
29+
driver: "json-file"
30+
options:
31+
max-file: "10"
32+
max-size: "100m"
33+
34+
gnoweb:
35+
container_name: gnoweb
36+
build: ../..
37+
command:
38+
- gnoweb
39+
- --bind
40+
- 0.0.0.0:80
41+
- --remote
42+
- gnoland:36657
43+
- --captcha-site
44+
- $RECAPTCHA_SITE_KEY
45+
- --faucet-url
46+
- https://faucet.test3.gno.land/
47+
- --help-chainid
48+
- test3
49+
- --help-remote
50+
- test3.gno.land:36657
51+
- --home-content
52+
- /overlay/HOME.md
53+
volumes:
54+
- "./overlay:/overlay:ro"
55+
links:
56+
- gnoland
57+
environment:
58+
- VIRTUAL_HOST=test3.gno.land
59+
- LETSENCRYPT_HOST=test3.gno.land
60+
# from .env
61+
- RECAPTCHA_SITE_KEY
62+
restart: on-failure
63+
logging:
64+
driver: "json-file"
65+
options:
66+
max-file: "10"
67+
max-size: "100m"
68+
69+
gnofaucet:
70+
container_name: gnofaucet
71+
build: ../..
72+
command: sh -xc "
73+
date &&
74+
mkdir -p /.gno &&
75+
expect -c \"set timeout -1; spawn gnokey add faucet --home /.gno/ --recover; expect \\\"Enter a passphrase\\\"; send \\\"$GNOKEY_PASS\\r\\\"; expect \\\"Repeat the passphrase\\\"; send \\\"$GNOKEY_PASS\\r\\\"; expect \\\"Enter your bip39 mnemonic\\\"; send \\\"$FAUCET_WORDS\\r\\\"; expect eof\" &&
76+
while true; do
77+
expect -c \"set timeout -1; spawn gnofaucet serve faucet --is-behind-proxy --send 50000000ugnot --captcha-secret \\\"$RECAPTCHA_SECRET_KEY\\\" --remote gnoland:36657 --chain-id test3 --home /.gno/; expect \\\"Enter password.\\\"; send \\\"$GNOKEY_PASS\\r\\\"; expect eof\";
78+
sleep 5;
79+
done
80+
"
81+
links:
82+
- gnoland
83+
environment:
84+
- VIRTUAL_HOST=faucet.test3.gno.land
85+
- VIRTUAL_PORT=5050
86+
- LETSENCRYPT_HOST=faucet.test3.gno.land
87+
# from .env
88+
- RECAPTCHA_SECRET_KEY
89+
- FAUCET_WORDS
90+
- GNOKEY_PASS
91+
ports:
92+
- 5050
93+
restart: on-failure
94+
logging:
95+
driver: "json-file"
96+
options:
97+
max-file: "10"
98+
max-size: "100m"
99+
100+
nginx-proxy:
101+
image: nginxproxy/nginx-proxy
102+
container_name: nginx-proxy
103+
ports:
104+
- "80:80"
105+
- "443:443"
106+
volumes:
107+
- conf:/etc/nginx/conf.d
108+
- vhost:/etc/nginx/vhost.d
109+
- html:/usr/share/nginx/html
110+
- certs:/etc/nginx/certs:ro
111+
- /var/run/docker.sock:/tmp/docker.sock:ro
112+
logging:
113+
driver: "json-file"
114+
options:
115+
max-file: "10"
116+
max-size: "100m"
117+
118+
acme-companion:
119+
image: nginxproxy/acme-companion
120+
container_name: nginx-proxy-acme
121+
environment:
122+
123+
volumes_from:
124+
- nginx-proxy
125+
volumes:
126+
- certs:/etc/nginx/certs:rw
127+
- acme:/etc/acme.sh
128+
- /var/run/docker.sock:/var/run/docker.sock:ro
129+
logging:
130+
driver: "json-file"
131+
options:
132+
max-file: "10"
133+
max-size: "100m"
134+
135+
volumes:
136+
conf:
137+
vhost:
138+
html:
139+
certs:
140+
acme:

misc/test3.gno.land/overlay/HOME.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Welcome to test3.gno.land.
2+
3+
* [Install `gnokey`](https://github.com/gnolang/gno/)
4+
* [Acquire testnet tokens](/faucet)
5+
6+
Explore new packages.
7+
8+
* [/r/gnoland/blog](/r/gnoland/blog)
9+
* [/r/gnoland/faucet](/r/gnoland/faucet)
10+
* [/r/system/names](/r/system/names)
11+
* [/r/system/rewards](/r/system/rewards)
12+
* [/r/system/validators](/r/system/validators)
13+
* [/p/demo/avl](/p/demo/avl)
14+
* [/p/demo/blog](/p/demo/blog)
15+
* [/p/demo/flow](/p/demo/flow)
16+
* [/p/demo/gnode](/p/demo/gnode)
17+
* [/p/demo/grc/exts](/p/demo/grc/exts)
18+
* [/p/demo/grc/grc20](/p/demo/grc/grc20)
19+
* [/p/demo/grc/grc721](/p/demo/grc/grc721)
20+
* [/r/demo/banktest](/r/demo/banktest)
21+
* [/r/demo/boards](/r/demo/boards)
22+
* [/r/demo/foo20](/r/demo/foo20)
23+
* [/r/demo/nft](/r/demo/nft)
24+
* [/r/demo/types](/r/demo/types)
25+
* [/r/demo/users](/r/demo/users)
26+
27+
This is a testnet.
28+
Package names are not guaranteed to be available for production.
29+
30+
Also, join our [Discord](https://discord.gg/tF2X8M6cVj).

0 commit comments

Comments
 (0)