tendermint / spn

A blockchain to launch blockchains.
Other
112 stars 41 forks source link

feat(`launch`): config file for genesis #958

Closed aljo242 closed 2 years ago

aljo242 commented 2 years ago

Closes #395

What does this PR do?

Includes a refactor of MsgCreateChain and other associated functions to take InitialGenesis as argument instead of genesisURL and genesisHash.

codecov[bot] commented 2 years ago

Codecov Report

Merging #958 (c8fd979) into develop (b3f1d20) will decrease coverage by 0.01%. The diff coverage is 8.07%.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/tendermint/spn/pull/958/graphs/tree.svg?width=650&height=150&src=pr&token=GMSSU7SM3A&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint)](https://codecov.io/gh/tendermint/spn/pull/958?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint) ```diff @@ Coverage Diff @@ ## develop #958 +/- ## =========================================== - Coverage 10.67% 10.65% -0.02% =========================================== Files 272 272 Lines 65062 65235 +173 =========================================== + Hits 6946 6952 +6 - Misses 57953 58119 +166 - Partials 163 164 +1 ``` | [Impacted Files](https://codecov.io/gh/tendermint/spn/pull/958?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint) | Coverage Δ | | |---|---|---| | [x/launch/types/tx.pb.go](https://codecov.io/gh/tendermint/spn/pull/958/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9sYXVuY2gvdHlwZXMvdHgucGIuZ28=) | `0.53% <0.00%> (+<0.01%)` | :arrow_up: | | [x/launch/types/chain.pb.go](https://codecov.io/gh/tendermint/spn/pull/958/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9sYXVuY2gvdHlwZXMvY2hhaW4ucGIuZ28=) | `1.37% <0.48%> (-0.14%)` | :arrow_down: | | [x/campaign/keeper/msg\_initialize\_mainnet.go](https://codecov.io/gh/tendermint/spn/pull/958/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9jYW1wYWlnbi9rZWVwZXIvbXNnX2luaXRpYWxpemVfbWFpbm5ldC5nbw==) | `94.54% <100.00%> (+0.20%)` | :arrow_up: | | [x/launch/keeper/chain.go](https://codecov.io/gh/tendermint/spn/pull/958/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9sYXVuY2gva2VlcGVyL2NoYWluLmdv) | `97.36% <100.00%> (-0.12%)` | :arrow_down: | | [x/launch/keeper/msg\_create\_chain.go](https://codecov.io/gh/tendermint/spn/pull/958/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9sYXVuY2gva2VlcGVyL21zZ19jcmVhdGVfY2hhaW4uZ28=) | `91.66% <100.00%> (-0.23%)` | :arrow_down: | | [x/launch/types/initial\_genesis.go](https://codecov.io/gh/tendermint/spn/pull/958/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9sYXVuY2gvdHlwZXMvaW5pdGlhbF9nZW5lc2lzLmdv) | `95.34% <100.00%> (+1.80%)` | :arrow_up: | | [x/launch/types/msg\_create\_chain.go](https://codecov.io/gh/tendermint/spn/pull/958/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9sYXVuY2gvdHlwZXMvbXNnX2NyZWF0ZV9jaGFpbi5nbw==) | `72.09% <100.00%> (-0.64%)` | :arrow_down: | | [x/campaign/simulation/store.go](https://codecov.io/gh/tendermint/spn/pull/958/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9jYW1wYWlnbi9zaW11bGF0aW9uL3N0b3JlLmdv) | `83.10% <0.00%> (-1.36%)` | :arrow_down: |