diff --git a/cca/cmd/scaffold.go b/cca/cmd/scaffold.go index 53f1ac5..5f516d3 100644 --- a/cca/cmd/scaffold.go +++ b/cca/cmd/scaffold.go @@ -60,5 +60,5 @@ func ExecuteScaffold(ctx context.Context, cmd *plugin.ExecutedCommand) error { return fmt.Errorf("failed to write CCA: %w", err) } - return session.Printf("🎉 Ignite CCA added (`%[1]v`).\n", c.AppPath(), c.Name()) + return session.Printf("🎉 Ignite CCA added (`%[1]v/web`).\n", c.AppPath(), c.Name()) } diff --git a/cca/templates/README.md b/cca/templates/README.md index 301e98d..d4223b3 100644 --- a/cca/templates/README.md +++ b/cca/templates/README.md @@ -1,16 +1,16 @@ # Templates -The template is based on Cosmology's [chain-admin template](https://github.com/cosmology-tech/create-cosmos-app/tree/fd87039feee9568a86aa8d8d19edea8f4a78f599/templates/chain-template) at commit `fd87039feee9568a86aa8d8d19edea8f4a78f599`. +The template is based on Cosmology's [chain-template](https://github.com/cosmology-tech/create-cosmos-app/tree/fd87039feee9568a86aa8d8d19edea8f4a78f599/templates/chain-template) at commit `fd87039feee9568a86aa8d8d19edea8f4a78f599`. Some modifications have been done to make it work nicer with Ignite scaffolded chains. -An exhaustive list of changes compared to the original template can be found [here](./ignite-chain-admin.patch). +An exhaustive list of changes compared to the original template can be found [here](./ignite-chain-template.patch). ## Development Instructions When upgrading the templates: - checkout `github.com/cosmology-tech/create-cosmos-app` at the above mentioned commit. -- apply the git patch to the `chain-template` directory (`git apply ignite-chain-admin.patch`) +- apply the git patch to the `chain-template` directory (`git apply ignite-chain-template.patch`) - merge upstream changes from main - commit the changes (as a single commit, rewriting history if necessary -- `git reset $(git merge-base main $(git branch --show-current))`) -- export the changes to a patch file (`git diff main > ignite-chain-admin.patch`) +- export the changes to a patch file (`git diff main > ignite-chain-template.patch`) diff --git a/cca/templates/ignite-chain-admin.patch b/cca/templates/ignite-chain-template.patch similarity index 99% rename from cca/templates/ignite-chain-admin.patch rename to cca/templates/ignite-chain-template.patch index 75f4d2f..700096d 100644 --- a/cca/templates/ignite-chain-admin.patch +++ b/cca/templates/ignite-chain-template.patch @@ -2647,6 +2647,20 @@ index aae05fd1..57e3c1ea 100644 if (proposal.status === ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD) { (async () => { for (const { address } of chain?.apis?.rest || []) { +diff --git a/templates/chain-template/next.config.js b/templates/chain-template/next.config.js +index 59bb75ea..f3cafd6d 100644 +--- a/templates/chain-template/next.config.js ++++ b/templates/chain-template/next.config.js +@@ -16,6 +16,9 @@ module.exports = { + { + hostname: 'raw.githubusercontent.com', + }, ++ { ++ hostname: 'ignite.com', ++ }, + ], + }, + }; diff --git a/templates/chain-template/package.json b/templates/chain-template/package.json index 3d285bd8..b4f20c68 100644 --- a/templates/chain-template/package.json diff --git a/cca/templates/web/next.config.js b/cca/templates/web/next.config.js index 59bb75e..bf09e2b 100644 --- a/cca/templates/web/next.config.js +++ b/cca/templates/web/next.config.js @@ -16,6 +16,9 @@ module.exports = { { hostname: 'raw.githubusercontent.com', }, + { + hostname: 'ignite.com', + } ], }, };