Skip to content

Conversation

@lumtis
Copy link
Contributor

@lumtis lumtis commented Jun 25, 2021

Use the cosmosapp module tendermint/spm#1 to remove non necessary code in cmd and app module of the generated code and make it simpler

Will require tendermint/spm#1 to be merged

@lumtis lumtis linked an issue Jun 25, 2021 that may be closed by this pull request
@fadeev
Copy link
Contributor

fadeev commented Jun 25, 2021

That's awesome! cmd is now so compact 🤩 Shall we rename cosmosapp to chaincmd? Because scaffolding a chain is starport scaffold chain and the package is cmd.

@lumtis
Copy link
Contributor Author

lumtis commented Jun 25, 2021

That's awesome! cmd is now so compact 🤩 Shall we rename cosmosapp to chaincmd? Because scaffolding a chain is starport scaffold chain and the package is cmd.

Yes the name was chosen quickly, it can be changed. Although I don't know for chaincmd. This package basically returns the NewRootCmd method that is the root command for a Cosmos SDK application. Maybe we should make it explicit that this is about the Cosmos SDK?

@fadeev
Copy link
Contributor

fadeev commented Jun 25, 2021

Maybe cosmoscmd then 🤔

@lumtis
Copy link
Contributor Author

lumtis commented Jun 25, 2021

Maybe cosmoscmd then 🤔

This one looks good

@lumtis
Copy link
Contributor Author

lumtis commented Jun 28, 2021

The method to import wasm has been modified and so we cannot import wasm with previously scaffolded apps.

Should we keep the legacy way of importing wasm and automatically use it to import wasm on sub 0.16 scaffolded chains or should we just print an error telling the user to downgrade Starport if they want to import wasm?
The thing is that it complexifies the codebase to keep legacy scaffolding features

@fadeev
Copy link
Contributor

fadeev commented Jun 28, 2021

should we just print an error telling the user to downgrade Starport if they want to import wasm

I think that's good enough.

@lumtis lumtis marked this pull request as ready for review June 29, 2021 13:59
@lumtis lumtis requested review from Pantani, fadeev and ilgooz as code owners June 29, 2021 13:59
@lumtis
Copy link
Contributor Author

lumtis commented Jun 29, 2021

This is ready for review. However, it will require tendermint/spm#1 to be merged first so we can use the correct dependency for spm

@lumtis
Copy link
Contributor Author

lumtis commented Jul 5, 2021

Ready for review :)

Copy link
Contributor

@fadeev fadeev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

24 lines — sweet! 🙌

Copy link
Member

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilgooz ilgooz merged commit 8d4242d into develop Jul 6, 2021
@ilgooz ilgooz deleted the refactor/cmd-templates branch July 6, 2021 11:08
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
…dule (ignite#1299)

* New app template

* Fix template

* add wasm

* Update cosmoscmd

* Fix wasm template

* Remove testutil registration

* Error message for previous version

* error typo

* Update spm

* Fix gomod

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: cmd package in the scaffold

4 participants