-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change app.go to v2 and add AppWiring feature (#3553)
* build buf pkg * fix go.mod * comment xbug pkg and bump buf versions * generate proto from buf and remove protoc and plugins * add proto ts and api generation * add changelog * fix proto and template path * fix wrong template for ts generation * fix api out path * fix ts out path and remove unused log * fix go.mod ident and sort * remove unused method * fix lint * fix wrong lint comment * remove unused tools * fix doctor for tools pkg * add missing tool dependency * add missing import * add global protoanalysis.NewCache to buf structure * fix proto module name * update go.mod * Update ignite/pkg/cosmosgen/generate_go.go method name Co-authored-by: Jerónimo Albi <[email protected]> * Update ignite/pkg/buf/buf.go remove unused ctx Co-authored-by: Jerónimo Albi <[email protected]> * fix wrong method call * fix deep tools * fix ignite doctor * fix buf.gen files * fix proto gen files * remove 3thrparty mod * thr modules openapi * add xos copy commands * fix wrong proto tmp path * remove unused method * update tools for the doctor command * unhlanded error * check if the buf files exists * remove unused ctx * fix changelog merge * fix unit tests and make more dynamic * add support for new app.go v2 * remove chain warnings from logs * use custom buffer instead bytes.buffer * Update changelog Co-authored-by: İlker G. Öztürk <[email protected]> * inject custom module * fix ts script generation and remove pulsar buf files * remove params from module and bump sdk and ibc * app.go v2 * add changelog * add pulsar protobuf support * fix changelog * fix changelog * add msg update params * update change log * add custom parameters * remove upgrade handlers * remove the keeper as a pointer * add custom parameters default keys * add pulsar module config to appconfig and fix import not exist for module v1 * add missing placeholder and remove unused replacer parameter * remove unused placeholders * remove unused placeholders * add missing imports for IBC modules * add ibc to app.go * fix changelog * fix ibc templates for appwiring * inject ibc keepers * remove warning * ADD IBC TO GOV ROUTE KEEPER * fix ibckeeper injection * fix testutil for ibc module * update goversion * update lint version * fix goversion * downgrade lint version * add pulsar to the tools file * fix tests for app.go implementations * fix doctor command * update lint * use sdkerrors codes * use deprecated sdkerrors * add migration for scaffold and generate commands * fix pre handler * fix rance condition * fix wrong app path for tools migrations * rollback lint version * fix lint * rollback draft changes * fix ineffassign lint * fix wrong path * fix deprecated rand seed * remove unused code * assert simulation app name * decrease the size of the test chain name * fix setup msg server keeper * fix wrong keeper name * exclude module.proto from go proto generation * fix wrong keeper arg pointer * fix missing sdk import * fix wrong imports * fix missing import * move buf pkg to cosmosbuf * fix doctor tools test * fix dependencie bank perm * add default expected keepers * create generate proto-pulsar commands * bump ibc-go * remove unused module * replace cosmossdk.io/simapp/params to github.com/cosmos/cosmos-sdk/types/module/testutil * remove unused workaround * fix relative path for appPath * use default rand * rollback checkBufFiles method * set params for testutil * use short name for integrastion test modules * change slashing keep interface to avoid conflict with the staking keeper * fix tx module name for intagration tests * remove some typos * update buf version * exclude module.proto file to generate ts * refactor: validate SDK version and deprecate `sdkerrors.Wrap` (#3602) * feat: change scaffold commands to validate supported SDK version Validation was added to pre run handler to avoid applying buff or other migrations when the app is using an older SDK version. * refactor: fix deprecated `sdkerrors.Wrap` calls in app templates * fix: correct app path in scaffold pre run handler * fix: correct app template imports for SDK errors * fix: correct `errorsmod.Wrapf` error wrapping argument * test: increased integration test timeout to 20m --------- Co-authored-by: Jerónimo Albi <[email protected]> Co-authored-by: İlker G. Öztürk <[email protected]> Co-authored-by: Danilo Pantani <[email protected]> Co-authored-by: Pantani <Pantani>
- Loading branch information
1 parent
0891ffe
commit 7d54608
Showing
146 changed files
with
3,612 additions
and
1,925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/ignite/cli | ||
|
||
go 1.19 | ||
go 1.20 | ||
|
||
require ( | ||
cosmossdk.io/math v1.0.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package ignitecmd | ||
|
||
import ( | ||
"github.com/spf13/cobra" | ||
|
||
"github.com/ignite/cli/ignite/pkg/cliui" | ||
"github.com/ignite/cli/ignite/pkg/cliui/icons" | ||
"github.com/ignite/cli/ignite/services/chain" | ||
) | ||
|
||
func NewGeneratePulsar() *cobra.Command { | ||
c := &cobra.Command{ | ||
Use: "proto-pulsar", | ||
Short: "Compile protocol buffer files to Go pulsar source code required by Cosmos SDK", | ||
RunE: generatePulsarHandler, | ||
} | ||
|
||
c.Flags().AddFlagSet(flagSetYes()) | ||
|
||
return c | ||
} | ||
|
||
func generatePulsarHandler(cmd *cobra.Command, _ []string) error { | ||
session := cliui.New(cliui.StartSpinnerWithText(statusGenerating)) | ||
defer session.End() | ||
|
||
c, err := newChainWithHomeFlags( | ||
cmd, | ||
chain.WithOutputer(session), | ||
chain.CollectEvents(session.EventBus()), | ||
chain.CheckCosmosSDKVersion(), | ||
) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
cacheStorage, err := newCache(cmd) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
if err := c.Generate(cmd.Context(), cacheStorage, chain.GeneratePulsar()); err != nil { | ||
return err | ||
} | ||
|
||
return session.Println(icons.OK, "Generated Go pulsar code") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/ignite/example | ||
|
||
go 1.19 | ||
go 1.20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.