Skip to content

Commit

Permalink
Club together various pieces of the genesis file from various sources (
Browse files Browse the repository at this point in the history
…iov-one#122)

* WIP: Begin construction of the genesis file

* Fix test command

* Add fetchOsakaGenesisFile()

* Add submodule dump

* Add pullDumpedState()

* Add submodule premium

* Add pullPremiums()

* Add gitPullGist()

* Fix pullPremiums()

* Add constants

* Start migrate()

* Fix burnTokens() test

* Add labelMultisigs()

* Add labelAccounts()

* Add chainIds

* Sort chainIds

* Add `starname-migration` to chainIds

`iov-mainnet-2` was decided upon by Antoine (https://internetofvalues.slack.com/archives/DHS8HV1KL/p1587037894001600).

* Add fixChainIds()

* Fix burnTokens()

* Add consolidateEscrows()

* Don't show js in github langs

* Add `//iov1` property

* Add multisig_pubkeys.sh

* Add multisig_pubkeys.txt

https://drive.google.com/file/d/15m0i3Uy-GuuL36rm4NcgA_AfHyIj6x9Y/view?usp=sharing

* Add `//iov1` property

* Fix source2multisig by replacing `multisig` with `star1`

* Add mapIovToStar()

* Limit manipulation of the genesis object to migrate()

* Add custodian account

* Add convertAccounts()

* Drop source2multisig from mapIovToStar(); fix convertAccounts()

Handling of escrows' star1 addresses is done in consolidateEscrows().

Looping on dumped.cash while splicing it was wrong.

* Fix comment

* Bundle converting accounts with converting usernames

* Make genesis object quoting consistent

* Fix genesis object structure

* Add premiums (domains) to convertToCosmosSdk()

* Add another test to fetchIndicativeSendsTo

* Add indicatives to mapIovToStar()

* Update createStarname() and createDomain() to pre-v0.3.0 schema

* Add reserveds to convertToCosmosSdk()

* Make `Should migrate.` test useful

* Write genesis.json

* Replace `json-stable-stringify` with `fast-json-stable-stringify`

* Fix tests

The addition of the custodial multisig account to the weave broke pullDumpedState.test.js.

* Add addGentxs()

* Use functional json-stable-stringify package

* Add addGentxs() to migrate()

* Make addGentxs() optional

* Add patch*()

* Set mainnet parameters

* Add configuration

* Add submodule config for galaxynet

* Use migrate()

* Deal with command-line created accounts without targets

* Fix valid_account_name

* Add fixHumanErrors()

* Fix app_state

* Add iov149cn0rauw2773lfdp34njyejg3cfz2d56c0m5t

* Fix mapIovToStar()

* Fix app_state

* Add temporary patches to galaxynet

* Fix createDomain()

* Convert denomination IOV to uiov

* Fix migration tests

* Stabilize galaxynet's valid_untils

* Fix patchGalaxynet()

* Fix *denom

* Fix patch iovns-galaxynet test

* Rename `fixHumanErrors()` to `fixErrors()`

* Update fixErrors()

* Fix createStarname()

Added targets.

* Add and use multisig_pubkeys_testnets.txt

* Add iov domain

* Add escrow multisigs to patchGalaxynet()

* Use `uvoi` as the token denomination for galaxynet

* Update comment

* Update configuration

* Make test accounts heavier

* Fix multisig_pubkeys.sh

* Update fee parameter names

* Fix max_evidence_age

* Update blocks_per_year

* Fix/tweak config

* Make patchMainnet() useful

* Add bojack account to patchGalaxynet()

* Fix scaling on fee_coin_price

* Debug fees

* Debug fees

* Fix bojack

* Fix galaxynet fee_coin_denom

* Simmer down on the weight of the testnet wallets

* Use galaxynet fees suggested by Benjamin

* Add iov153n95ekuw9rxfhzspgarqjdwnadmvdt0chcjs4 to patchMainnet()

* Change faucet address in conjunction with...

.../keybase/kbfs/team/iov_one.blockchain/credentials/testnet-common/faucet-{key,env-var}.txt

* Update in conjunction with iov-one#245

* Add iov14qk7zrz2ewhdmy7cjj68sk6jn3rst4vd7u930y to patchMainnet()

* Fix resources_max

* Fix resources_max

* Add iov12gd6weg7py6vs7ujn22h82422arek8cxzhe85p to patchMainnet()

* Play with inflation

* Use cosmoshub rate of change of inflation

* Return Arnaud's July escrow

* Fix safeguarded

* Pick-up star1 addresses from premiums

Updated in conjunction with iov-one/marketing-namespace-firebase@93fff04.

* Fix fee denominations

* Update chainIds (URIs)

* change: rename to starname, remove unused packages

* fix: query path mismatch

* add: domains cannot be renewed if beyond grace period

* fix: export genesis function

* remove: pointless comment

* chore: update documentation, add genesis state test

* chore: update CHANGELOG.md

* Update in conjunction with iov-one#268

* Enable galaxynet gentx

* Format genesis.json after gentxs

* Test gentxs

* Clean-up automagically generated files

* Rejoice upon successful test of adding gentxs

* fix: account empty name ambiguity

* chore: enhance genesis state test

* update: CHANGELOG.md

* Test against devnet

* Debug against travis

* Unleash all tests

* Debug

* Drop REST queries from CLI tests

* Add domain transfers to CLI tests

* Focus on domain transfer in REST tests

* Stop debugging

* Pick-up latest data

* Prepare for adding scripts/genesis to travis

* Fix echo

* Deal with cosmos-sdk breaking changes

* Deal with cosmos-sdk breaking changes

* Make travis green

* Make travis green

* Update CHANGELOG.md

Co-authored-by: Dave Puchyr <dave@slim.avaritia.com>
Co-authored-by: frojdidymylja <frojdi.dymylja@gmail.com>
Co-authored-by: Dave Puchyr <dave@debt.avaritia.com>
  • Loading branch information
4 people authored Jul 22, 2020
1 parent ed51c80 commit 5d15f06
Show file tree
Hide file tree
Showing 42 changed files with 7,597 additions and 40 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Auto detect text files and perform LF normalization
* text=auto
swagger-ui/swagger-ui/* linguist-vendored
scripts/genesis/* linguist-vendored
scripts/integration/* linguist-vendored

9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "scripts/genesis/data/dump"]
path = scripts/genesis/data/dump
url = https://gist.github.com/davepuchyr/bf9ab1d2d9ca70326cf58c7c70376554.git
[submodule "scripts/genesis/data/premium"]
path = scripts/genesis/data/premium
url = https://gist.github.com/davepuchyr/6631a11d9160671418e38cd88fa8049b.git
[submodule "scripts/genesis/data/galaxynet/config"]
path = scripts/genesis/data/galaxynet/config
url = https://gist.github.com/davepuchyr/e1482e63cb81443cde1616f353c4779f.git
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ script:
- iovnsd validate-genesis
- iovnsd start --minimum-gas-prices='10.0uvoi' > /dev/null &
- iovnscli rest-server --trust-node true --chain-id ${CHAIN_ID} --node http://localhost:26657 > /dev/null &
- cd scripts/integration && yarn install && yarn test
- ( cd scripts/integration && yarn install && yarn test && killall iovnscli && killall iovnsd )

notifications:
email: false
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## HEAD
- add genesis file generation scripts
- upgrade to cosmos sdk 0.39
- move all files from root module to respective packages
- fix transfer domain and add tests
Expand Down
Loading

0 comments on commit 5d15f06

Please sign in to comment.