Skip to content

Commit

Permalink
support ignite again (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Pantani <Pantani>
  • Loading branch information
Pantani committed Nov 22, 2023
1 parent 7d22049 commit 82a34f2
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 19 deletions.
7 changes: 7 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ type App struct {

cdc *codec.LegacyAmino
appCodec codec.Codec
txConfig client.TxConfig
interfaceRegistry types.InterfaceRegistry

invCheckPeriod uint
Expand Down Expand Up @@ -268,6 +269,7 @@ func New(
app := &App{
BaseApp: bApp,
cdc: cdc,
txConfig: txConfig,
appCodec: appCodec,
interfaceRegistry: interfaceRegistry,
invCheckPeriod: invCheckPeriod,
Expand Down Expand Up @@ -797,3 +799,8 @@ func (app *App) SimulationManager() *module.SimulationManager {
func (app *App) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, genesisData map[string]json.RawMessage) {
app.mm.InitGenesis(ctx, cdc, genesisData)
}

// TxConfig returns App's TxConfig
func (app *App) TxConfig() client.TxConfig {
return app.txConfig
}
22 changes: 22 additions & 0 deletions proto/buf.gen.pulsar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is auto-generated from Ignite. You can edit
# the file content but do not change the file name or path.
#
# buf.gen.pulsar.yaml
#
version: v1
managed:
enabled: true
go_package_prefix:
default: cosmossdk.io/api
except:
- buf.build/googleapis/googleapis
- buf.build/cosmos/gogo-proto
- buf.build/cosmos/cosmos-proto
override:
plugins:
- name: go-pulsar
out: ./api
opt: paths=source_relative
- name: go-grpc
out: ./api
opt: paths=source_relative
15 changes: 15 additions & 0 deletions proto/buf.gen.sta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file is auto-generated from Ignite. You can edit
# the file content but do not change the file name or path.
#
# buf.gen.sta.yaml
#
version: v1
plugins:
- name: openapiv2
out: .
opt:
- logtostderr=true
- openapi_naming_strategy=simple
- ignore_comments=true
- simple_operation_ids=false
- json_names_for_fields=false
2 changes: 0 additions & 2 deletions proto/buf.gen.ts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ plugins:
- logtostderr=true
- allow_merge=true
- json_names_for_fields=false
- Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types
- Mcosmos/orm/v1/orm.proto=cosmossdk.io/orm
- ts_proto_opt=snakeToCamel=true
- ts_proto_opt=esModuleInterop=true
- ts_proto_out=.
6 changes: 5 additions & 1 deletion proto/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 5ae7f88519b04fe1965da0f8a375a088
commit: 75b4300737fb4efca0831636be94e517
- remote: buf.build
owner: protocolbuffers
repository: wellknowntypes
commit: 44e83bc050a4497fa7b36b34d95ca156
12 changes: 6 additions & 6 deletions proto/buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# buf.yaml
#
version: v1
name: buf.build/ignitehq/modules
deps:
- buf.build/cosmos/cosmos-sdk:954f7b05f38440fc8250134b15adec47
- buf.build/cosmos/cosmos-proto:1935555c206d4afb9e94615dfd0fad31
- buf.build/cosmos/gogo-proto:34d970b699f84aa382f3c29773a60836
- buf.build/googleapis/googleapis:5ae7f88519b04fe1965da0f8a375a088
- buf.build/cosmos/ics23:3c44d8daa8b44059ac744cd17d4a49d7
- buf.build/protocolbuffers/wellknowntypes
- buf.build/cosmos/cosmos-sdk
- buf.build/cosmos/cosmos-proto
- buf.build/cosmos/gogo-proto
- buf.build/googleapis/googleapis
- buf.build/cosmos/ics23
breaking:
use:
- FILE
Expand Down
1 change: 1 addition & 0 deletions tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package tools

import (
_ "github.com/bufbuild/buf/cmd/buf"
_ "github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar"
_ "github.com/cosmos/gogoproto/protoc-gen-gocosmos"
_ "github.com/golang/protobuf/protoc-gen-go"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway"
Expand Down
14 changes: 7 additions & 7 deletions x/claim/types/query.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions x/mint/types/query.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 82a34f2

Please sign in to comment.