-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix issue with script optimize-cosmwasm.sh
* change variable PROJECTS from bash array to simple space separated list of project name * ci: fix cargo install using --locked * ci: get running archway container name * ci: run build script directly instead of make target
- Loading branch information
1 parent
8c604c7
commit 605586b
Showing
5 changed files
with
71 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: "3" | ||
|
||
services: | ||
node: | ||
container_name: archway-node-1 | ||
image: archwaynetwork/archwayd:v0.4.0 | ||
build: | ||
context: . | ||
entrypoint: | ||
- sh | ||
- /opt/archway/localnet.sh | ||
ports: | ||
- 9090:9090 | ||
- 26657:26657 | ||
volumes: | ||
- ${PWD}/scripts:/opt:z | ||
- ${PWD}/artifacts/archway:/contracts:z | ||
working_dir: /opt |
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,37 @@ | ||
#!/bin/sh | ||
|
||
# this script instantiates localnet required genesis files | ||
|
||
set -e | ||
|
||
echo clearing $HOME/.archway | ||
rm -rf $HOME/.archway | ||
echo initting new chain | ||
# init config files | ||
archwayd init archwayd-id --chain-id localnet | ||
|
||
# create accounts | ||
archwayd keys add fd --keyring-backend=test | ||
|
||
addr=$(archwayd keys show fd -a --keyring-backend=test) | ||
val_addr=$(archwayd keys show fd --keyring-backend=test --bech val -a) | ||
|
||
# give the accounts some money | ||
archwayd add-genesis-account "$addr" 1000000000000stake --keyring-backend=test | ||
|
||
# save configs for the daemon | ||
archwayd gentx fd 10000000stake --chain-id localnet --keyring-backend=test | ||
|
||
# input genTx to the genesis file | ||
archwayd collect-gentxs | ||
# verify genesis file is fine | ||
archwayd validate-genesis | ||
echo changing network settings | ||
sed -i 's/127.0.0.1/0.0.0.0/g' $HOME/.archway/config/config.toml | ||
|
||
echo test account address: "$addr" | ||
echo test account private key: "$(yes | archwayd keys export fd --unsafe --unarmored-hex --keyring-backend=test)" | ||
echo account for --from flag "fd" | ||
|
||
echo starting network... | ||
archwayd start |
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