Skip to content

Commit

Permalink
chore(network): rename campaign to project (ignite#3229)
Browse files Browse the repository at this point in the history
* rename campaign to project

* fix test mocks

* add changelog

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: Alex Johnson <alex@shmeeload.xyz>
  • Loading branch information
3 people committed Dec 7, 2022
1 parent 75ac1fa commit e1f8be3
Show file tree
Hide file tree
Showing 24 changed files with 418 additions and 417 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- [#3109](https://github.com/ignite/cli/pull/3109) Refactor scaffolding for proto files to not rely on placeholders.
- [#3106](https://github.com/ignite/cli/pull/3106) Add zoom image plugin.
- [#3224](https://github.com/ignite/cli/pull/3224) Remove grpc_* prefix from query files in scaffolded chains
- [#3229](https://github.com/ignite/cli/pull/3229) Rename `campaign` to `project` in ignite network set of commands
- [#3244](https://github.com/ignite/cli/pull/3244) updated actions.yml for resolving deprecation message

### Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ validators launch their nodes, a blockchain will be live.
// add sub commands.
c.AddCommand(
NewNetworkChain(),
NewNetworkCampaign(),
NewNetworkProject(),
NewNetworkRequest(),
NewNetworkReward(),
NewNetworkValidator(),
Expand Down
23 changes: 0 additions & 23 deletions ignite/cmd/network_campaign.go

This file was deleted.

71 changes: 0 additions & 71 deletions ignite/cmd/network_campaign_account.go

This file was deleted.

106 changes: 0 additions & 106 deletions ignite/cmd/network_campaign_update.go

This file was deleted.

12 changes: 6 additions & 6 deletions ignite/cmd/network_chain_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var LaunchSummaryHeader = []string{
}

var LaunchSummaryAdvancedHeader = []string{
"campaign ID",
"project ID",
"network",
"reward",
}
Expand Down Expand Up @@ -80,7 +80,7 @@ func networkChainListHandler(cmd *cobra.Command, _ []string) error {
func renderLaunchSummaries(chainLaunches []networktypes.ChainLaunch, session *cliui.Session, advanced bool) error {
header := LaunchSummaryHeader
if advanced {
// advanced information show the campaign ID, type of network and rewards for incentivized testnet
// advanced information show the project ID, type of network and rewards for incentivized testnet
header = append(header, LaunchSummaryAdvancedHeader...)
}

Expand Down Expand Up @@ -109,9 +109,9 @@ func renderLaunchSummaries(chainLaunches []networktypes.ChainLaunch, session *cl

// add advanced information
if advanced {
campaign := "no campaign"
if c.CampaignID > 0 {
campaign = fmt.Sprintf("%d", c.CampaignID)
project := "no project"
if c.ProjectID > 0 {
project = fmt.Sprintf("%d", c.ProjectID)
}

reward := entrywriter.None
Expand All @@ -120,7 +120,7 @@ func renderLaunchSummaries(chainLaunches []networktypes.ChainLaunch, session *cl
}

entry = append(entry,
campaign,
project,
c.Network.String(),
reward)
}
Expand Down
Loading

0 comments on commit e1f8be3

Please sign in to comment.