Skip to content

Commit

Permalink
Merge branch 'main' into chore/new-network-path
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani authored Nov 21, 2024
2 parents 095bc7d + 29b8145 commit 890777f
Show file tree
Hide file tree
Showing 19 changed files with 53 additions and 183 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
- [#4000](https://github.com/ignite/cli/pull/4000) Run all dry runners before the wet run in the `xgenny` pkg
- [#4091](https://github.com/ignite/cli/pull/4091) Fix race conditions in the plugin logic
- [#4128](https://github.com/ignite/cli/pull/4128) Check for duplicate proto fields in config
- [#4402](https://github.com/ignite/cli/pull/4402) Fix gentx parser into the cosmosutil package

## [`v28.5.3`](https://github.com/ignite/cli/releases/tag/v28.5.3)

Expand Down
156 changes: 0 additions & 156 deletions docs/docs/08-references/01-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -1000,69 +1000,8 @@ meant to be edited by hand.
**SEE ALSO**

* [ignite](#ignite) - Ignite CLI offers everything you need to scaffold, test, build, and launch your blockchain
* [ignite generate composables](#ignite-generate-composables) - TypeScript frontend client and Vue 3 composables
* [ignite generate hooks](#ignite-generate-hooks) - TypeScript frontend client and React hooks
* [ignite generate openapi](#ignite-generate-openapi) - OpenAPI spec for your chain
* [ignite generate proto-go](#ignite-generate-proto-go) - Compile protocol buffer files to Go source code required by Cosmos SDK
* [ignite generate ts-client](#ignite-generate-ts-client) - TypeScript frontend client


## ignite generate composables

TypeScript frontend client and Vue 3 composables

```
ignite generate composables [flags]
```

**Options**

```
-h, --help help for composables
-o, --output string Vue 3 composables output path
-y, --yes answers interactive yes/no questions with yes
```

**Options inherited from parent commands**

```
--clear-cache clear the build cache (advanced)
--enable-proto-vendor enable proto package vendor for missing Buf dependencies
-p, --path string path of the app (default ".")
```

**SEE ALSO**

* [ignite generate](#ignite-generate) - Generate clients, API docs from source code


## ignite generate hooks

TypeScript frontend client and React hooks

```
ignite generate hooks [flags]
```

**Options**

```
-h, --help help for hooks
-o, --output string React hooks output path
-y, --yes answers interactive yes/no questions with yes
```

**Options inherited from parent commands**

```
--clear-cache clear the build cache (advanced)
--enable-proto-vendor enable proto package vendor for missing Buf dependencies
-p, --path string path of the app (default ".")
```

**SEE ALSO**

* [ignite generate](#ignite-generate) - Generate clients, API docs from source code


## ignite generate openapi
Expand Down Expand Up @@ -1121,57 +1060,6 @@ ignite generate proto-go [flags]
* [ignite generate](#ignite-generate) - Generate clients, API docs from source code


## ignite generate ts-client

TypeScript frontend client

**Synopsis**

Generate a framework agnostic TypeScript client for your blockchain project.

By default the TypeScript client is generated in the "ts-client/" directory. You
can customize the output directory in config.yml:

client:
typescript:
path: new-path

Output can also be customized by using a flag:

ignite generate ts-client --output new-path

TypeScript client code can be automatically regenerated on reset or source code
changes when the blockchain is started with a flag:

ignite chain serve --generate-clients


```
ignite generate ts-client [flags]
```

**Options**

```
-h, --help help for ts-client
-o, --output string TypeScript client output path
--use-cache use build cache to speed-up generation
-y, --yes answers interactive yes/no questions with yes
```

**Options inherited from parent commands**

```
--clear-cache clear the build cache (advanced)
--enable-proto-vendor enable proto package vendor for missing Buf dependencies
-p, --path string path of the app (default ".")
```

**SEE ALSO**

* [ignite generate](#ignite-generate) - Generate clients, API docs from source code


## ignite network

Launch a blockchain in production
Expand Down Expand Up @@ -2718,10 +2606,8 @@ with an "--ibc" flag. Note that the default module is not IBC-enabled.
* [ignite scaffold packet](#ignite-scaffold-packet) - Message for sending an IBC packet
* [ignite scaffold params](#ignite-scaffold-params) - Parameters for a custom Cosmos SDK module
* [ignite scaffold query](#ignite-scaffold-query) - Query for fetching data from a blockchain
* [ignite scaffold react](#ignite-scaffold-react) - React web app template
* [ignite scaffold single](#ignite-scaffold-single) - CRUD for data stored in a single location
* [ignite scaffold type](#ignite-scaffold-type) - Type definition
* [ignite scaffold vue](#ignite-scaffold-vue) - Vue 3 web app template


## ignite scaffold chain
Expand Down Expand Up @@ -3279,27 +3165,6 @@ ignite scaffold query [name] [field1:type1] [field2:type2] ... [flags]
* [ignite scaffold](#ignite-scaffold) - Create a new blockchain, module, message, query, and more


## ignite scaffold react

React web app template

```
ignite scaffold react [flags]
```

**Options**

```
-h, --help help for react
-p, --path string path to scaffold content of the React app (default "./react")
-y, --yes answers interactive yes/no questions with yes
```

**SEE ALSO**

* [ignite scaffold](#ignite-scaffold) - Create a new blockchain, module, message, query, and more


## ignite scaffold single

CRUD for data stored in a single location
Expand Down Expand Up @@ -3396,27 +3261,6 @@ ignite scaffold type NAME [field:type] ... [flags]
* [ignite scaffold](#ignite-scaffold) - Create a new blockchain, module, message, query, and more


## ignite scaffold vue

Vue 3 web app template

```
ignite scaffold vue [flags]
```

**Options**

```
-h, --help help for vue
-p, --path string path to scaffold content of the Vue.js app (default "./vue")
-y, --yes answers interactive yes/no questions with yes
```

**SEE ALSO**

* [ignite scaffold](#ignite-scaffold) - Create a new blockchain, module, message, query, and more


## ignite testnet

Start a testnet local
Expand Down
18 changes: 15 additions & 3 deletions docs/versioned_docs/version-v28/02-guide/04-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Add the `PostKey` and `PostCountKey` functions to the `x/blog/types/keys.go` fil

```go title="x/blog/types/keys.go"
// PostKey is used to uniquely identify posts within the system.
// It will be used as the beginning of the key for each post, followed bei their unique ID
// It will be used as the beginning of the key for each post, followed by their unique ID
PostKey = "Post/value/"

// This key will be used to keep track of the ID of the latest post added to the store.
Expand Down Expand Up @@ -220,7 +220,7 @@ ignite scaffold message delete-post id:uint
This command enables the deletion of posts by their ID.

2. **Delete Logic:**

Implement RemovePost in `x/blog/keeper/post.go` to delete posts from the store.

```go title="x/blog/keeper/post.go"
Expand Down Expand Up @@ -301,7 +301,7 @@ func (k Keeper) ShowPost(goCtx context.Context, req *types.QueryShowPostRequest)
return nil, sdkerrors.ErrKeyNotFound
}

return &types.QueryShowPostResponse{Post: post}, nil
return &types.QueryShowPostResponse{Post: &post}, nil
}
```

Expand Down Expand Up @@ -366,6 +366,18 @@ message QueryListPostResponse {
}
```

Build the blockchain:

```
ignite chain build
```

Start the blockchain:

```
ignite chain serve
```

**Interacting with the Blog**

1. **Create a Post:**
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ replace (

require (
cosmossdk.io/core v1.0.0
cosmossdk.io/math v1.3.0
cosmossdk.io/math v1.4.0
cosmossdk.io/x/bank v0.0.0-20240226161501-23359a0b6d91
cosmossdk.io/x/staking v0.0.0-00010101000000-000000000000
github.com/99designs/keyring v1.2.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0=
cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U=
cosmossdk.io/log v1.4.1 h1:wKdjfDRbDyZRuWa8M+9nuvpVYxrEOwbD/CA8hvhU8QM=
cosmossdk.io/log v1.4.1/go.mod h1:k08v0Pyq+gCP6phvdI6RCGhLf/r425UT6Rk/m+o74rU=
cosmossdk.io/math v1.3.0 h1:RC+jryuKeytIiictDslBP9i1fhkVm6ZDmZEoNP316zE=
cosmossdk.io/math v1.3.0/go.mod h1:vnRTxewy+M7BtXBNFybkuhSH4WfedVAAnERHgVFhp3k=
cosmossdk.io/math v1.4.0 h1:XbgExXFnXmF/CccPPEto40gOO7FpWu9yWNAZPN3nkNQ=
cosmossdk.io/math v1.4.0/go.mod h1:O5PkD4apz2jZs4zqFdTr16e1dcaQCc5z6lkEnrrppuk=
cosmossdk.io/schema v0.3.1-0.20240930054013-7c6e0388a3f9 h1:DmOoS/1PeY6Ih0hAVlJ69kLMUrLV+TCbfICrZtB1vdU=
cosmossdk.io/schema v0.3.1-0.20240930054013-7c6e0388a3f9/go.mod h1:RDAhxIeNB4bYqAlF4NBJwRrgtnciMcyyg0DOKnhNZQQ=
cosmossdk.io/store v1.0.0-rc.0.0.20241106232657-2290c5ee5582 h1:PVMvSrFMaMNy9fJ1D/bvCSS8DepswqJI/VoMuYDeYdA=
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/bubblemodel/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (m MultiNode) View() string {
grayStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("8")) // gray
purpleStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("5")) // purple
statusBarStyle := lipgloss.NewStyle().Background(lipgloss.Color("0")) // Status bar style
blueStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("45")).Background(lipgloss.Color("0")) //blue
blueStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("45")).Background(lipgloss.Color("0")) // blue

statusBar := blueStyle.Render("Press q to quit | Press 1-4 to ") + statusBarStyle.Render(runningStyle.Render("start")) + blueStyle.Render("/") + statusBarStyle.Render(stoppedStyle.Render("stop")) + blueStyle.Render(" corresponding node")
output := statusBar + "\n\n"
Expand Down
7 changes: 4 additions & 3 deletions ignite/cmd/generate_composables.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (

func NewGenerateComposables() *cobra.Command {
c := &cobra.Command{
Use: "composables",
Short: "TypeScript frontend client and Vue 3 composables",
RunE: generateComposablesHandler,
Hidden: true, // hidden util we have a better ts-client.
Use: "composables",
Short: "TypeScript frontend client and Vue 3 composables",
RunE: generateComposablesHandler,
}

c.Flags().AddFlagSet(flagSetYes())
Expand Down
7 changes: 4 additions & 3 deletions ignite/cmd/generate_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (

func NewGenerateHooks() *cobra.Command {
c := &cobra.Command{
Use: "hooks",
Short: "TypeScript frontend client and React hooks",
RunE: generateHooksHandler,
Hidden: true, // hidden util we have a better ts-client.
Use: "hooks",
Short: "TypeScript frontend client and React hooks",
RunE: generateHooksHandler,
}

c.Flags().AddFlagSet(flagSetYes())
Expand Down
5 changes: 3 additions & 2 deletions ignite/cmd/generate_typescript_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ const (

func NewGenerateTSClient() *cobra.Command {
c := &cobra.Command{
Use: "ts-client",
Short: "TypeScript frontend client",
Hidden: true, // hidden util we have a better ts-client.
Use: "ts-client",
Short: "TypeScript frontend client",
Long: `Generate a framework agnostic TypeScript client for your blockchain project.
By default the TypeScript client is generated in the "ts-client/" directory. You
Expand Down
1 change: 1 addition & 0 deletions ignite/cmd/scaffold_react.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
// NewScaffoldReact scaffolds a React app for a chain.
func NewScaffoldReact() *cobra.Command {
c := &cobra.Command{
Hidden: true, // hidden util we have a better ts-client.
Use: "react",
Short: "React web app template",
Args: cobra.NoArgs,
Expand Down
1 change: 1 addition & 0 deletions ignite/cmd/scaffold_vue.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
// NewScaffoldVue scaffolds a Vue.js app for a chain.
func NewScaffoldVue() *cobra.Command {
c := &cobra.Command{
Hidden: true, // hidden util we have a better ts-client.
Use: "vue",
Short: "Vue 3 web app template",
Args: cobra.NoArgs,
Expand Down
3 changes: 2 additions & 1 deletion ignite/cmd/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"time"

tea "github.com/charmbracelet/bubbletea"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cobra"

sdk "github.com/cosmos/cosmos-sdk/types"

cmdmodel "github.com/ignite/cli/v29/ignite/cmd/bubblemodel"
igcfg "github.com/ignite/cli/v29/ignite/config"
v1 "github.com/ignite/cli/v29/ignite/config/chain/v1"
Expand Down
12 changes: 6 additions & 6 deletions ignite/pkg/chaincmd/in-place-testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ func (c ChainCmd) TestnetInPlaceCommand(newChainID, newOperatorAddress string, o
return c.daemonCommand(command)
}

// Options for testnet multi node
// Options for testnet multi node.
type MultiNodeOption func([]string) []string

// MultiNodeWithChainID returns a MultiNodeOption that appends the chainID option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithChainID(chainID string) MultiNodeOption {
return func(s []string) []string {
if len(chainID) > 0 {
Expand All @@ -61,7 +61,7 @@ func MultiNodeWithChainID(chainID string) MultiNodeOption {
}

// MultiNodeWithDirOutput returns a MultiNodeOption that appends the output directory option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithDirOutput(dirOutput string) MultiNodeOption {
return func(s []string) []string {
if len(dirOutput) > 0 {
Expand All @@ -72,7 +72,7 @@ func MultiNodeWithDirOutput(dirOutput string) MultiNodeOption {
}

// MultiNodeWithNumValidator returns a MultiNodeOption that appends the number of validators option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithNumValidator(numVal string) MultiNodeOption {
return func(s []string) []string {
if len(numVal) > 0 {
Expand All @@ -83,7 +83,7 @@ func MultiNodeWithNumValidator(numVal string) MultiNodeOption {
}

// MultiNodeWithValidatorsStakeAmount returns a MultiNodeOption that appends the stake amounts option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithValidatorsStakeAmount(satkeAmounts string) MultiNodeOption {
return func(s []string) []string {
if len(satkeAmounts) > 0 {
Expand All @@ -94,7 +94,7 @@ func MultiNodeWithValidatorsStakeAmount(satkeAmounts string) MultiNodeOption {
}

// MultiNodeDirPrefix returns a MultiNodeOption that appends the node directory prefix option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeDirPrefix(nodeDirPrefix string) MultiNodeOption {
return func(s []string) []string {
if len(nodeDirPrefix) > 0 {
Expand Down
Loading

0 comments on commit 890777f

Please sign in to comment.