Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: plugin system (rebased) #2877

Merged
merged 42 commits into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
f2d7322
feat: plugin system
tbruyelle Oct 3, 2022
4380745
update plugin go.mod
tbruyelle Oct 3, 2022
c030436
add plugin go.sum
tbruyelle Oct 3, 2022
2260e9e
git init and commit scaffolded plugins
tbruyelle Oct 3, 2022
8612da9
update CL
tbruyelle Oct 3, 2022
bd5f9d3
fix dependecy issue
tbruyelle Oct 4, 2022
4b73526
fix missing commit author when no default config
tbruyelle Oct 4, 2022
64846a3
fix linter
tbruyelle Oct 4, 2022
4f343d9
Update ignite/services/plugin/template/main.go.plush
tbruyelle Oct 5, 2022
041e234
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 6, 2022
533d6c9
Merge branch 'develop' into feat/plugin-system-rebased
Oct 6, 2022
35bf606
Merge branch 'develop' into feat/plugin-system-rebased
Oct 7, 2022
aabb88a
remove plugin go.sum and use gocmd
tbruyelle Oct 10, 2022
bbf412d
Update ignite/services/plugin/plugin.go
tbruyelle Oct 10, 2022
f3b9a43
remove commented line
tbruyelle Oct 10, 2022
6ae0573
fix cannot use cmd.Context() there bc it's nil
tbruyelle Oct 10, 2022
9c1858c
kill plugin client at the end of execution
tbruyelle Oct 10, 2022
952a2e8
fix comment
tbruyelle Oct 10, 2022
5f974f5
improve error handling in LoadPlugins
tbruyelle Oct 11, 2022
17ec702
remove plugin.Name
tbruyelle Oct 11, 2022
72e7dd8
fix readme for plugins
tbruyelle Oct 11, 2022
878037b
fix: ensure plugin instances are killed
tbruyelle Oct 12, 2022
dffafa1
update main so defer funcs are honored
tbruyelle Oct 12, 2022
cdcff23
use const exit codes
tbruyelle Oct 13, 2022
3a388da
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 13, 2022
1783f71
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 14, 2022
3afbdd9
go mod tidy
tbruyelle Oct 14, 2022
1500cd6
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 17, 2022
e6cdf30
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 18, 2022
207ce2c
fix due to plushgen removal
tbruyelle Oct 18, 2022
b64b5d3
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 20, 2022
463ae46
add PR id to CL
tbruyelle Oct 20, 2022
d657c41
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 20, 2022
1fbb60d
change CL version
tbruyelle Oct 20, 2022
aff43e7
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 21, 2022
dc5bd52
fix CL
tbruyelle Oct 21, 2022
c87416f
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 21, 2022
9b49255
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 23, 2022
9b76602
Merge branch 'develop' into feat/plugin-system-rebased
Oct 25, 2022
6181bd5
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 28, 2022
51a5fa6
Merge branch 'develop' into feat/plugin-system-rebased
Oct 31, 2022
e3abd34
Merge branch 'develop' into feat/plugin-system-rebased
tbruyelle Oct 31, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Features

- Plugin system

### Changes

- Updated `pkg/cosmosanalysis` to discover the list of app modules when defined in variables.
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ require (
github.com/gookit/color v1.5.1
github.com/gorilla/mux v1.8.0
github.com/gorilla/rpc v1.2.0
github.com/hashicorp/go-hclog v1.2.0
github.com/hashicorp/go-plugin v1.4.4
github.com/iancoleman/strcase v0.2.0
github.com/ignite/web v0.3.10
github.com/imdario/mergo v0.3.13
Expand Down Expand Up @@ -214,6 +216,7 @@ require (
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect
github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect
github.com/hexops/gotextdiff v1.0.3 // indirect
github.com/improbable-eng/grpc-web v0.15.0 // indirect
Expand Down Expand Up @@ -260,6 +263,7 @@ require (
github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-testing-interface v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/moby/sys/mount v0.3.1 // indirect
github.com/moby/sys/mountinfo v0.6.0 // indirect
Expand All @@ -274,6 +278,7 @@ require (
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect
github.com/nishanths/exhaustive v0.8.1 // indirect
github.com/nishanths/predeclared v0.2.2 // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799 // indirect
Expand Down
10 changes: 10 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,8 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
github.com/hashicorp/go-getter v1.6.1 h1:NASsgP4q6tL94WH6nJxKWj8As2H/2kop/bB1d8JMyRY=
github.com/hashicorp/go-hclog v1.2.0 h1:La19f8d7WIlm4ogzNHB0JGqs5AUDAZ2UfCY4sJXcJdM=
github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=
github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
Expand All @@ -989,6 +991,8 @@ github.com/hashicorp/go-multierror v0.0.0-20161216184304-ed905158d874/go.mod h1:
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
github.com/hashicorp/go-plugin v1.4.4 h1:NVdrSdFRt3SkZtNckJ6tog7gbpRrcbOjQi/rgF7JYWQ=
github.com/hashicorp/go-plugin v1.4.4/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s=
github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo=
Expand All @@ -1012,6 +1016,8 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb h1:b5rjCoWHc7eqmAS4/qyk21ZsHyb6Mxv/jykxvNTkU4M=
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 h1:aSVUgRRRtOrZOC1fYmY9gV0e9z/Iu+xNVSASWjsuyGU=
github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3/go.mod h1:5PC6ZNPde8bBqU/ewGZig35+UIZtw9Ytxez8/q5ZyFE=
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
Expand Down Expand Up @@ -1205,6 +1211,7 @@ github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwM
github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
Expand All @@ -1216,6 +1223,7 @@ github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNx
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ=
Expand Down Expand Up @@ -1344,6 +1352,7 @@ github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3L
github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs=
github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
Expand Down Expand Up @@ -2076,6 +2085,7 @@ golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down
26 changes: 26 additions & 0 deletions ignite/chainconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ type Config struct {
Init Init `yaml:"init"`
Genesis map[string]interface{} `yaml:"genesis"`
Host Host `yaml:"host"`
Plugins []Plugin `yaml:"plugins"`
}

// AccountByName finds account by name.
Expand Down Expand Up @@ -205,6 +206,31 @@ type Host struct {
API string `yaml:"api"`
}

// Plugin keeps plugin name and location.
type Plugin struct {
// Name can be anything
Name string `yaml:"name"`
// Path holds the location of the plugin.
// A path can be local, in that case it must start with a `/`.
// A remote path on the other hand, is an URL to a public remote git
// repository. For example:
//
// path: github.com/foo/bar
//
// It can contain a path inside that repository, if for instance the repo
// contains multiple plugins, For example:
//
// path: github.com/foo/bar/plugin1
//
// It can also specify a tag or a branch, by adding a `@` and the branch/tag
// name at the end of the path. For example:
//
// path: github.com/foo/bar/plugin1@v42
Path string `yaml:"path"`
// With holds arguments passed to the plugin interface
With map[string]string `yaml:"with"`
}

// Parse parses config.yml into UserConfig.
func Parse(r io.Reader) (Config, error) {
var conf Config
Expand Down
20 changes: 20 additions & 0 deletions ignite/chainconfig/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"strings"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

Expand All @@ -17,6 +18,14 @@ accounts:
validator:
name: user1
staked: "100000000stake"
plugins:
- name: plugin1
path: /path/to/plugin1
- name: plugin2
path: /path/to/plugin2
with:
foo: bar
bar: baz
`

conf, err := Parse(strings.NewReader(confyml))
Expand All @@ -36,6 +45,17 @@ validator:
Name: "user1",
Staked: "100000000stake",
}, conf.Validator)
if assert.Equal(t, 2, len(conf.Plugins)) {
assert.Equal(t, Plugin{
Name: "plugin1",
Path: "/path/to/plugin1",
}, conf.Plugins[0])
assert.Equal(t, Plugin{
Name: "plugin2",
Path: "/path/to/plugin2",
With: map[string]string{"foo": "bar", "bar": "baz"},
}, conf.Plugins[1])
}
}

func TestCoinTypeParse(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/chain_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func chainBuildHandler(cmd *cobra.Command, _ []string) error {
chainOption = append(chainOption, chain.CheckDependencies())
}

c, err := newChainWithHomeFlags(cmd, chainOption...)
c, err := NewChainWithHomeFlags(cmd, chainOption...)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/chain_faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func chainFaucetHandler(cmd *cobra.Command, args []string) error {
chain.KeyringBackend(chaincmd.KeyringBackendTest),
}

c, err := newChainWithHomeFlags(cmd, chainOption...)
c, err := NewChainWithHomeFlags(cmd, chainOption...)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/chain_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func chainInitHandler(cmd *cobra.Command, _ []string) error {
chainOption = append(chainOption, chain.CheckDependencies())
}

c, err := newChainWithHomeFlags(cmd, chainOption...)
c, err := NewChainWithHomeFlags(cmd, chainOption...)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/chain_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func chainServeHandler(cmd *cobra.Command, args []string) error {
}

// create the chain
c, err := newChainWithHomeFlags(cmd, chainOption...)
c, err := NewChainWithHomeFlags(cmd, chainOption...)
if err != nil {
return err
}
Expand Down
9 changes: 8 additions & 1 deletion ignite/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ignitecmd
import (
"context"
"fmt"
"log"
"os"
"path/filepath"
"sort"
Expand Down Expand Up @@ -75,8 +76,14 @@ ignite scaffold chain github.com/username/mars`,
c.AddCommand(NewTools())
c.AddCommand(NewDocs())
c.AddCommand(NewVersion())
c.AddCommand(NewPlugin())
c.AddCommand(deprecated()...)

err := loadPlugins(c)
jeronimoalbi marked this conversation as resolved.
Show resolved Hide resolved
if err != nil {
log.Fatal(err)
}

return c
}

Expand Down Expand Up @@ -162,7 +169,7 @@ func flagGetClearCache(cmd *cobra.Command) bool {
return clearCache
}

func newChainWithHomeFlags(cmd *cobra.Command, chainOption ...chain.Option) (*chain.Chain, error) {
func NewChainWithHomeFlags(cmd *cobra.Command, chainOption ...chain.Option) (*chain.Chain, error) {
// Check if custom home is provided
if home := getHome(cmd); home != "" {
chainOption = append(chainOption, chain.HomePath(home))
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/generate_dart.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func generateDartHandler(cmd *cobra.Command, args []string) error {
s := clispinner.New().SetText("Generating...")
defer s.Stop()

c, err := newChainWithHomeFlags(cmd, chain.EnableThirdPartyModuleCodegen())
c, err := NewChainWithHomeFlags(cmd, chain.EnableThirdPartyModuleCodegen())
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/generate_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func generateGoHandler(cmd *cobra.Command, args []string) error {
s := clispinner.New().SetText("Generating...")
defer s.Stop()

c, err := newChainWithHomeFlags(cmd)
c, err := NewChainWithHomeFlags(cmd)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/generate_openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func generateOpenAPIHandler(cmd *cobra.Command, args []string) error {
s := clispinner.New().SetText("Generating...")
defer s.Stop()

c, err := newChainWithHomeFlags(cmd)
c, err := NewChainWithHomeFlags(cmd)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/generate_typescript_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func generateTSClientHandler(cmd *cobra.Command, args []string) error {

session.StartSpinner("Generating...")

c, err := newChainWithHomeFlags(cmd, chain.EnableThirdPartyModuleCodegen())
c, err := NewChainWithHomeFlags(cmd, chain.EnableThirdPartyModuleCodegen())
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/generate_vuex.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func generateVuexHandler(cmd *cobra.Command, args []string) error {
s := clispinner.New().SetText("Generating...")
defer s.Stop()

c, err := newChainWithHomeFlags(cmd, chain.EnableThirdPartyModuleCodegen())
c, err := NewChainWithHomeFlags(cmd, chain.EnableThirdPartyModuleCodegen())
if err != nil {
return err
}
Expand Down
Loading