Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatic release created for v0.10003.4 #1979

Merged
merged 383 commits into from
Feb 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
383 commits
Select commit Hold shift + click to select a range
01caf65
Merge pull request #1807 from cosmos/jordan/1754-forms
faboweb Jan 23, 2019
37ad523
Merge pull request #1861 from cosmos/fabo/1818-fix-validators-message
faboweb Jan 23, 2019
7085a1a
hide proj cov
Jan 23, 2019
9e58387
Merge remote-tracking branch 'origin/develop' into fabo/hide-proj-cov…
Jan 23, 2019
f3bcdf6
Merge pull request #1872 from cosmos/fabo/hide-proj-coverage
faboweb Jan 23, 2019
487ab2f
cleaned up preferences page
jbibla Jan 23, 2019
66724ba
border css bug
jbibla Jan 23, 2019
ac56854
hiding preferences unless devMode
jbibla Jan 23, 2019
ec0fb57
changelog and lint
jbibla Jan 23, 2019
a1134e8
fixed e2e
jbibla Jan 23, 2019
adfe7d4
Merge pull request #1874 from cosmos/jordan/1785-preferences
faboweb Jan 23, 2019
fca726f
fixed typo
Jan 23, 2019
a8bedb1
Fabo/1809 update header on send (#1830)
faboweb Jan 24, 2019
fcb0228
Jordan/1588 404 (#1877)
jbibla Jan 24, 2019
95c9c0b
Merge branch 'web' into sabau/web/1833-deploy-prerequisites
sabau Jan 24, 2019
f5ce8e7
boot scripts, S3 to pass info and autofaucet stuff
sabau Jan 24, 2019
1026a0c
Merge remote-tracking branch 'origin/sabau/web/1833-deploy-prerequisi…
sabau Jan 24, 2019
d92b865
Merge remote-tracking branch 'origin/web' into fabo/1873-big-mergeroo
Jan 24, 2019
0a7feb4
working boot process
sabau Jan 24, 2019
4b5417d
first steps
Jan 24, 2019
6a57fc8
fixed several tests
Jan 25, 2019
68f8f21
persist denoms
Jan 25, 2019
ce132ad
fixed denom load tests
Jan 25, 2019
1406dd7
Apply suggestions from code review
fedekunze Jan 25, 2019
70746e2
Fabo/1835 signing methods (#1860)
faboweb Jan 25, 2019
05a2cd1
progress on automation
sabau Jan 25, 2019
9646d59
Merge remote-tracking branch 'origin/develop' into fabo/1873-big-merg…
Jan 28, 2019
0323582
fixed sendmodal tests
Jan 28, 2019
07ff58e
fixed signup
Jan 28, 2019
cf6e984
fixed optimistic update for delegation
Jan 28, 2019
0191bdc
erase password on close of action modal
Jan 28, 2019
e332357
Update app/src/renderer/main.js
sabau Jan 28, 2019
386c33d
addressed comments
Jan 28, 2019
f93120f
Merge branch 'fabo/1873-big-mergeroo' of https://github.com/cosmos/vo…
Jan 28, 2019
fac6aa1
Merge pull request #1883 from cosmos/fabo/1873-big-mergeroo
faboweb Jan 28, 2019
3585ddb
miscellaneous style fixes
jbibla Jan 28, 2019
bcefdcf
undelegation modal console error fix
jbibla Jan 28, 2019
7a7b580
small fix for connected-network
jbibla Jan 28, 2019
851a282
table, tx, and li proposal style improvements
jbibla Jan 29, 2019
9b58e23
PageProfile styling updates
jbibla Jan 29, 2019
f105730
update filter language on tables
jbibla Jan 29, 2019
1c634a6
small improvements to TmLiStakeTransaction
jbibla Jan 29, 2019
ee495c1
update layout on my delegations page
jbibla Jan 29, 2019
28d414a
fixed staking params layout, language, and console error
jbibla Jan 29, 2019
66af4bb
fixed gov params layout and language
jbibla Jan 29, 2019
308b0b7
page proposal updates and new layout
jbibla Jan 29, 2019
d592abb
page validator updates, bug fixes, new layout, test fixes
jbibla Jan 29, 2019
d00c76d
fixed remaining tests and changelog
jbibla Jan 29, 2019
001fa64
lint!
jbibla Jan 29, 2019
56ecc1a
fix gaia commit and new output flag
Jan 29, 2019
01e3585
Merge pull request #1898 from cosmos/fabo/fix-gaia
faboweb Jan 29, 2019
10c86d5
Merge remote-tracking branch 'origin/develop' into fabo/1846-url-params
Jan 29, 2019
242cc44
Merge branch 'develop' into sabau/1802-eslint-prefer-const
sabau Jan 29, 2019
8e7177c
fix const instead of let
sabau Jan 29, 2019
88751cd
Merge pull request #1841 from cosmos/sabau/1802-eslint-prefer-const
faboweb Jan 29, 2019
087ed23
refined
Jan 29, 2019
6c37451
Merge remote-tracking branch 'origin/develop' into fabo/1846-url-params
Jan 29, 2019
7c14c01
correctly post process account request
Jan 29, 2019
df011f4
make linter an extra check (#1902)
faboweb Jan 29, 2019
2b83df2
fixed (#1893)
faboweb Jan 29, 2019
56855c1
Update app/src/renderer/main.js
jbibla Jan 29, 2019
26ec33a
renamed some instances of stargate
Jan 29, 2019
0361428
fixed
Jan 29, 2019
788e96a
fixed signature tests
Jan 29, 2019
dfc9cb2
Merge branch 'develop' into fabo/1846-url-params
jbibla Jan 29, 2019
08e6525
Merge branch 'fabo/1846-url-params' of https://github.com/cosmos/voya…
Jan 29, 2019
415158d
readme
Jan 29, 2019
f6000ff
fixed missing renaming
Jan 29, 2019
56bc3fd
Merge branch 'develop' into sabau/web/1833-deploy-prerequisites
sabau Jan 29, 2019
726e7cf
Merge pull request #1903 from cosmos/fabo/fix-signing
faboweb Jan 29, 2019
d3a1117
Merge branch 'develop' into fabo/1896-postprocess-account-req
faboweb Jan 29, 2019
1ee03b2
Merge pull request #1901 from cosmos/fabo/1896-postprocess-account-req
faboweb Jan 29, 2019
e848bbd
update action modal language
jbibla Jan 29, 2019
9ef31b2
fixed duplicate class, added one more test case for page proposal
jbibla Jan 29, 2019
840c7b6
page validator fix
jbibla Jan 29, 2019
35fe5a2
undo font family changes (for windows ;P)
jbibla Jan 29, 2019
4ff1deb
deleted PageProfile component because it's just a worse version of Tm…
jbibla Jan 29, 2019
4bdadbe
Merge branch 'develop' into jordan/1737-validator-data
jbibla Jan 29, 2019
753fd41
clean deploy
sabau Jan 30, 2019
7cc72f8
route to voyager.ninja
sabau Jan 30, 2019
feaaca6
route to voyager.ninja
sabau Jan 30, 2019
6c0cba7
favicon, config and restore full lodash for a single instance using it
sabau Jan 30, 2019
e49c67e
added explanation for stargate
Jan 30, 2019
547017d
fixed
Jan 30, 2019
a75eb02
Merge pull request #1909 from cosmos/fabo/fix-singing-governance
faboweb Jan 30, 2019
74d06e0
Merge pull request #1899 from cosmos/fabo/1846-url-params
faboweb Jan 30, 2019
27931cb
fixed (#1907)
faboweb Jan 30, 2019
d78db78
Merge branch 'develop' into jordan/1737-validator-data
jbibla Jan 30, 2019
0545490
Merge pull request #1895 from cosmos/jordan/1737-validator-data
faboweb Jan 30, 2019
4a2bbcc
Merge remote-tracking branch 'origin/develop' into sabau/web/1833-dep…
Jan 30, 2019
350162d
fix for empty accounts
Jan 30, 2019
5ddd0de
add aliases, replace bash deploy with orb sync job, seems easier to read
sabau Jan 31, 2019
7afb09d
Merge branch 'sabau/web/1833-deploy-prerequisites' of github.com:cosm…
sabau Jan 31, 2019
f8e549c
fix commands definition
sabau Jan 31, 2019
3add0a3
fix commands definition
sabau Jan 31, 2019
ad0e32d
indentation fix on circleci commands
sabau Jan 31, 2019
f4a7d6e
indentation fix on circleci commands
sabau Jan 31, 2019
6de0f30
simplify workflow until we merge mircea work
sabau Jan 31, 2019
66cf411
only after test we deploy
sabau Jan 31, 2019
f81241e
damsn build is everywhere
sabau Jan 31, 2019
ce35078
renaming
sabau Jan 31, 2019
db13411
no params for now
sabau Jan 31, 2019
01450c4
session signedIn restrictions
Jan 31, 2019
93746f8
update tests
Jan 31, 2019
15245af
restore build job
sabau Jan 31, 2019
c5cf5d5
build only clean and safe dependency
sabau Jan 31, 2019
2177370
changelog
sabau Jan 31, 2019
08e998e
random naming does not make circleci happy
sabau Jan 31, 2019
08496c8
mkdir for stats
sabau Jan 31, 2019
a72e9cb
build do not need the bundle on circle ci
sabau Jan 31, 2019
37eae3b
fedekunze/1338 Ledger support (#1814)
fedekunze Jan 31, 2019
8023c9e
experiment deploy on this branch
sabau Jan 31, 2019
fb97647
Merge branch 'develop' into sabau/web/1833-deploy-prerequisites
sabau Jan 31, 2019
a474d0d
remove side effect: helpers taken out to be tested, runner does not r…
sabau Jan 31, 2019
f01e1b9
reduce unnecessary movements, keep things where they are
sabau Jan 31, 2019
65364ee
little refactor circleci
sabau Jan 31, 2019
ef6904c
rename folders, try to upload without nesting
sabau Jan 31, 2019
303282a
comments on circleci configuration
sabau Jan 31, 2019
7ffa670
dev dependency fix
sabau Jan 31, 2019
ffa9e31
check mounted of App
sabau Feb 1, 2019
3925acc
add some test on store
sabau Feb 1, 2019
a41e20d
config to js to switch localhost VS remote nodes
sabau Feb 1, 2019
e4215d4
import properly new pumped up config.js
sabau Feb 1, 2019
82d34dc
fix node env flag
sabau Feb 1, 2019
5a99626
Update circle.ebs_deploy.sh
faboweb Feb 1, 2019
9a0d2a6
- restore source map for Sentry
sabau Feb 1, 2019
be42509
Merge remote-tracking branch 'origin/sabau/web/1833-deploy-prerequisi…
sabau Feb 1, 2019
09c8d76
fallback configuration to allow builder to choose their values
sabau Feb 1, 2019
d45f655
keep the old name, now is hardcoded on github
sabau Feb 1, 2019
163bbcf
remove duplicated yarn upgrade, restore fixed version
sabau Feb 1, 2019
0b87b33
wait for genesis from main node
sabau Feb 2, 2019
33ad52d
Jordan/1894 favicons (#1923)
jbibla Feb 4, 2019
081e394
Merge branch 'develop' into sabau/web/1833-deploy-prerequisites
sabau Feb 5, 2019
70feb28
Update app/src/renderer/vuex/store.js
faboweb Feb 5, 2019
45eaaa8
Vuex blocks for explorer (#1926)
sabau Feb 5, 2019
ebb897c
Jordan/1869 network page (#1925)
jbibla Feb 5, 2019
2d52190
Block height update (#1927)
sabau Feb 5, 2019
c0f68b1
Add browserstack reference to README (#1929)
sabau Feb 5, 2019
3cebce6
keep old versions if available, otherwise build it
sabau Feb 6, 2019
3bb4a73
changelod
sabau Feb 6, 2019
37a3ce1
fix for moment to work with UTC timezone (#1937)
sabau Feb 8, 2019
c411f91
Remove global Date overriding in tests (#1939)
sabau Feb 8, 2019
32d91e2
subscribe logic
sabau Feb 8, 2019
7d28027
Fix errors at boot time (#1934)
sabau Feb 8, 2019
0556a88
Jordan/1922 font not so awesome (#1941)
jbibla Feb 10, 2019
2df4b20
update PR template
Feb 11, 2019
cc39c9b
pull develop and route redirect
Feb 11, 2019
730d5d1
fix tests
Feb 11, 2019
a65abb5
changelog and linter
Feb 11, 2019
0422751
coverage
Feb 11, 2019
90b8f91
more tests for coverage
Feb 11, 2019
2380a56
Update PULL_REQUEST_TEMPLATE.md
faboweb Feb 11, 2019
baaf864
Update PULL_REQUEST_TEMPLATE.md
fedekunze Feb 11, 2019
7e6e1ee
snaps
Feb 11, 2019
822a9af
more tests
Feb 11, 2019
17e78cb
update staking page tests
Feb 11, 2019
9453acc
revert redirect and add preferences to required auth views
Feb 11, 2019
caf18c3
add message to log on action modal; closes #1918
Feb 11, 2019
918f701
update snaps
Feb 11, 2019
ea5ddd6
Update PULL_REQUEST_TEMPLATE.md
fedekunze Feb 11, 2019
6b003c7
Merge branch 'develop' into sabau/1855-keep-local-gaia-hash
sabau Feb 11, 2019
8bc4a13
changelog 2
Feb 11, 2019
9f4d560
minimal build, only what we actually ran will be built
sabau Feb 11, 2019
0fa0804
Merge remote-tracking branch 'origin/sabau/1855-keep-local-gaia-hash'…
sabau Feb 11, 2019
7376583
update session and various fixes
Feb 11, 2019
427d867
fixed (#1956)
faboweb Feb 12, 2019
60cbd67
Merge branch 'develop' of https://github.com/cosmos/voyager into fede…
Feb 12, 2019
200f406
custom image for voyager build / AWS deployment (#1942)
Feb 12, 2019
06d5497
bug fixes
Feb 12, 2019
e021aa7
get validators on connection
Feb 12, 2019
3bbc9a3
session welcome tests and snaps
Feb 12, 2019
c3cb54a
more snaps
Feb 12, 2019
22c3ff4
improve messages, copy linux only for linux to avoid cp warning
sabau Feb 12, 2019
634ec07
Merge pull request #1935 from cosmos/sabau/1855-keep-local-gaia-hash
faboweb Feb 12, 2019
3e7b50a
go back only if trying to access one of the auth-required routes
Feb 12, 2019
a77c49e
skip App.spec.js tests
Feb 12, 2019
09d25b4
update session welcome tests
Feb 12, 2019
fa9125e
changelog
Feb 12, 2019
68bb178
lint
Feb 12, 2019
ea4d09e
test startApp
sabau Feb 12, 2019
88f6b4a
test route guard
sabau Feb 12, 2019
5bb6b87
comment e2e code in circleci, in this moment is not used, remove aws …
sabau Feb 12, 2019
7607c11
fix bug; blank page when signing out from a auth-required view
Feb 12, 2019
4a9c8cb
actionModal cov
Feb 12, 2019
cc33869
typo
Feb 12, 2019
d8eb801
weird import
Feb 12, 2019
bb6bd6c
Document build command with parameters, remove deploy bash script
sabau Feb 12, 2019
24ff2c4
patch for cosmos-sdk new mandatory parameter
sabau Feb 12, 2019
1237c74
Jordan/1866 blocks (#1933)
jbibla Feb 12, 2019
461203b
Merge branch 'develop' of https://github.com/cosmos/voyager into fede…
Feb 12, 2019
06ec48c
changelog
Feb 12, 2019
13ef2d8
Merge branch 'fedekunze/update-PR-template' of https://github.com/cos…
Feb 12, 2019
120d7a3
Merge branch 'develop' into fedekunze/1718-remove-session-pt-2
fedekunze Feb 12, 2019
2b5e95d
Merge branch 'develop' of https://github.com/cosmos/voyager into fede…
Feb 13, 2019
b6e9332
Merge pull request #1948 from cosmos/fedekunze/update-PR-template
faboweb Feb 13, 2019
f69199c
address comments from code review
Feb 13, 2019
bbbd156
lint
Feb 13, 2019
3f556f7
update delegation tests
Feb 13, 2019
673fe7b
Merge branch 'develop' into fedekunze/1718-explorer-mode
fedekunze Feb 13, 2019
229480c
delete route guard condition
Feb 13, 2019
f1ee495
Merge branch 'fedekunze/1718-explorer-mode' of https://github.com/cos…
Feb 13, 2019
f1948d9
Merge branch 'develop' of https://github.com/cosmos/voyager into fede…
Feb 13, 2019
a185b91
changes from PR pt 1
Feb 13, 2019
17509f8
revert app menu link order
Feb 13, 2019
1241bef
Merge branch 'fedekunze/1718-remove-session-pt-2' of https://github.c…
Feb 13, 2019
4d0f3ff
Fabo/1955 fix validator setup (#1961)
faboweb Feb 13, 2019
386e076
Update test/unit/specs/App.spec.js
faboweb Feb 13, 2019
0b5ba5d
Merge pull request #1851 from cosmos/sabau/web/1833-deploy-prerequisites
faboweb Feb 13, 2019
18a2f03
[HOT FIX] unit test fix (#1964)
faboweb Feb 13, 2019
69f58db
Jordan/1946 proposer address (#1963)
jbibla Feb 13, 2019
f017ae2
add tests for guard
Feb 13, 2019
985cf49
fix connection test
Feb 13, 2019
3d4d024
PR pt 1 changes
Feb 13, 2019
6b3744d
WE BROKE DEE-VELOP (#1965)
jbibla Feb 13, 2019
deca0c9
Fabo/bring back dev mode (#1966)
faboweb Feb 13, 2019
febe91a
fedekunze/1718 remove session pt 1 (#1916)
fedekunze Feb 13, 2019
558cea1
conflicts
Feb 13, 2019
31f30eb
Update ActionModal.vue
fedekunze Feb 13, 2019
6cb6a09
timid report opened only by people who wants to read it
sabau Feb 13, 2019
05f2eea
ChaChaChaos
sabau Feb 13, 2019
0ae1222
Merge pull request #1967 from cosmos/sabau/webpack-bundle-static
faboweb Feb 13, 2019
6097c9e
various fixes
Feb 13, 2019
98205c2
Merge branch 'fedekunze/1718-remove-session-pt-2' of https://github.c…
Feb 13, 2019
9b1f349
fix add history bug
Feb 13, 2019
28b0b65
snap
Feb 13, 2019
51621ee
fixed the sidebar disappearing bug on signing in / out
jbibla Feb 13, 2019
ec61eee
Fabo/dev mode indicator (#1968)
faboweb Feb 13, 2019
1477061
fedekunze/1945 quorum fix (#1969)
fedekunze Feb 14, 2019
6ae8f06
test the release PR process
sabau Feb 14, 2019
7a37f94
change trigger time
sabau Feb 14, 2019
b8b711d
small fixes for mobile / desktop menu / sidebar
jbibla Feb 14, 2019
5bc8794
Merge branch 'develop' into fedekunze/1718-remove-session-pt-2
jbibla Feb 14, 2019
a1e2a65
update only jest to make audit happy again
sabau Feb 14, 2019
56b38f3
fix lint
jbibla Feb 14, 2019
f0c7ab0
Changelogged
sabau Feb 14, 2019
fe24d3d
update snapshot
sabau Feb 14, 2019
a197125
Merge pull request #1976 from cosmos/sabau/security-patch-jest
faboweb Feb 14, 2019
3d282c2
Merge remote-tracking branch 'origin/develop' into fedekunze/1718-rem…
Feb 14, 2019
3ce4f02
update test; no cov
Feb 14, 2019
18487b6
cb test
Feb 14, 2019
2e0444e
Fabo/1911 add sentry version (#1971)
faboweb Feb 14, 2019
a4d7e39
test AppHeader updated fn
Feb 14, 2019
e5f990c
Merge branch 'develop' into sabau/auto-release-PR-first-step
sabau Feb 14, 2019
585423f
fix cron, remove sabau branch, publish test fix with 24 words
sabau Feb 14, 2019
b12af2a
chanfelog
sabau Feb 14, 2019
f1809de
Merge pull request #1972 from cosmos/sabau/auto-release-PR-first-step
faboweb Feb 14, 2019
01d0d6e
Merge pull request #1954 from cosmos/fedekunze/1718-remove-session-pt-2
faboweb Feb 14, 2019
e199d6a
Fabo/always upload coverage (#1980)
faboweb Feb 15, 2019
690b6f8
fedekunze/1977-fix ledger errors (#1983)
fedekunze Feb 15, 2019
ac4ec75
Bump version for release.
Feb 17, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
67 changes: 67 additions & 0 deletions .aws/first.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/bin/bash

PASSWORD=1234567890
ACCOUNT=main_account
PORT=26657
API_PORT=8080
NETWORK=testnet
AMOUNT=100stake

# first of all remove old genesis, we do not want other node to boot with the wrong stuff
aws s3 rm s3://cosmos-gaia/genesis.json

# Initialize local node with an account name and a chain
./gaiad init --home . --moniker ${ACCOUNT} --chain-id ${NETWORK}
NODEID=$(./gaiad tendermint show-node-id --home .)

# Create our main account and add it to the genesis with a lot of money
echo ${PASSWORD} | ./gaiacli keys add ${ACCOUNT} --home . > main_node.log
./gaiad add-genesis-account $(./gaiacli keys show ${ACCOUNT} --home . --address) 150000stake,100000photino,123cococoin --home .

echo ${PASSWORD} | ./gaiad gentx --name ${ACCOUNT} --home . --home-client .
./gaiad collect-gentxs --home .

# Make our genesis avaialable to the secondary nodes
aws s3 cp config/genesis.json s3://cosmos-gaia/genesis.json

# boot proper nodes in reachable detached sessions
screen -dmS gaia ./gaiad start --home .
screen -dmS rest ./gaiacli rest-server --laddr tcp://0.0.0.0:${API_PORT} --home . --node http://localhost:${PORT} --chain-id ${NETWORK} --trust-node true

# get my address to use it as source of richness for others
ADDRESS=$(./gaiacli keys show ${ACCOUNT} --home . --address)

while true
do
# Is anyone asking for money
LIST=$(aws s3 ls s3://cosmos-gaia/addresses/)
if [[ -n "${LIST}" ]];
then
# TODO: SRE team is working on a clean solution.
# This hacky version is temporary and will be replaced by a stargate running on a separate machine
# Remove this logic as soon as we put back the deploy-gaia automation

# Check if a stargate is locally running
PID=$(lsof -ti tcp:${API_PORT})
if [[ -n "${PID}" ]];
then
# we cannot use gaiacli while the rest server is running, it locks the resources
kill -9 ${PID}
fi

echo ${LIST} | while IFS= read -r row || [[ -n "$row" ]]; do
# for every file in the list pick the address and give money to it, then delete the file
DESTINATION=$(echo $row | awk '{print $4}')

# Just in case we were running this command with rest-server switched on, get again the address
ADDRESS=$(./gaiacli keys show ${ACCOUNT} --home . --address)
echo ${PASSWORD} | ./gaiacli tx send --home . --from ${ADDRESS} --amount=${AMOUNT} --to=${DESTINATION} --chain-id=${NETWORK}

# Remove this address from the ones that needs money
aws s3 rm s3://cosmos-gaia/addresses/${DESTINATION}
done

#restore the rest server
screen -dmS rest ./gaiacli rest-server --laddr tcp://0.0.0.0:${API_PORT} --home . --node http://localhost:${PORT} --chain-id ${NETWORK} --trust-node true
fi
done
50 changes: 50 additions & 0 deletions .aws/others.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

PASSWORD=1234567890
ACCOUNT=operator_account
PORT=26656
# TODO: hardcoded temporary, this will become a parameter coming from the first ECS instance
MAINNODEID=d08c69fa85969f3d0173f23aadc40268559d0f66
MAINNODEIP=172.31.35.89
MAINACCOUNT=main_account
NETWORK=testnet
VALIDATOR_AMOUNT=10stake

# Initialize local node with a secondary account
./gaiad init --home . --moniker ${ACCOUNT} --chain-id ${NETWORK}

GENESIS=`aws s3 ls s3://cosmos-gaia/genesis.json | grep genesis.json`
while [[ -z "$GENESIS" ]]; do
sleep 3s
ISTHERE=`aws s3 ls s3://cosmos-gaia/genesis.json | grep genesis.json`
done
aws s3 cp s3://cosmos-gaia/genesis.json config/genesis.json

# GET Genesis file into config/genesis.json
NODEID=$(./gaiad tendermint show-node-id --home .)

# boot referring to the remote node
screen -dmS gaia ./gaiad start --home . --p2p.laddr=tcp://0.0.0.0:$((PORT)) --address=tcp://0.0.0.0:$((PORT+1)) --rpc.laddr=tcp://0.0.0.0:$((PORT+2)) --p2p.persistent_peers="$MAINNODEID@$MAINNODEIP:$((PORT))"

# get the key to make my node validator
PUBKEY=$(./gaiad tendermint show-validator --home .)
echo ${PASSWORD} | ./gaiacli keys add ${ACCOUNT} --home . > secondary_node.log
ADDRESS=$(./gaiacli keys show ${ACCOUNT} --home . --address)
echo ${PUBKEY} > ./${ADDRESS}

# ask money by declaring my node
aws s3 cp ${ADDRESS} s3://cosmos-gaia/addresses/${ADDRESS}

poor=true
while ${poor}
do
# query my account to check if I'm still poor
ACCOUNT_INFO=$(./gaiacli query account ${ADDRESS} --chain-id ${NETWORK} --trust-node --home .)
if [[ ${ACCOUNT_INFO} == *"auth/Account"* ]]; then
echo "Address funded, thanks main node!"
poor=false
fi
sleep 3s
done

echo ${PASSWORD} | ./gaiacli tx staking create-validator --home . --from ${ACCOUNT} --amount=${VALIDATOR_AMOUNT} --pubkey=${PUBKEY} --address-delegator=${ADDRESS} --moniker=${ACCOUNT} --chain-id=${NETWORK} --commission-max-change-rate=0 --commission-max-rate=0 --commission-rate=0 --min-self-delegation=1 -json
Loading