Skip to content

Commit

Permalink
update SPN for support ignite (#1020)
Browse files Browse the repository at this point in the history
Co-authored-by: Pantani <Pantani>
  • Loading branch information
Pantani authored Nov 17, 2023
1 parent a3fea38 commit a26d7c2
Show file tree
Hide file tree
Showing 16 changed files with 107 additions and 58 deletions.
7 changes: 7 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ type App struct {

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

invCheckPeriod uint
Expand Down Expand Up @@ -384,6 +385,7 @@ func New(
app := &App{
BaseApp: bApp,
cdc: cdc,
txConfig: txConfig,
appCodec: appCodec,
interfaceRegistry: interfaceRegistry,
invCheckPeriod: invCheckPeriod,
Expand Down Expand Up @@ -1095,6 +1097,11 @@ func (app *App) GetSubspace(moduleName string) paramstypes.Subspace {
return subspace
}

// TxConfig returns App's TxConfig
func (app *App) TxConfig() client.TxConfig {
return app.txConfig
}

// RegisterAPIRoutes registers all application module routes with the provided
// API server.
func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
Expand Down
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/spn
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/golangci/golangci-lint/cmd/golangci-lint"
Expand Down
1 change: 1 addition & 0 deletions x/launch/types/genesis_validator.pb.go

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

24 changes: 12 additions & 12 deletions x/launch/types/query.pb.gw.go

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

1 change: 1 addition & 0 deletions x/launch/types/vesting_account.pb.go

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

14 changes: 7 additions & 7 deletions x/monitoringc/types/query.pb.gw.go

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

8 changes: 4 additions & 4 deletions x/monitoringp/types/query.pb.gw.go

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

14 changes: 7 additions & 7 deletions x/participation/types/query.pb.gw.go

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

Loading

0 comments on commit a26d7c2

Please sign in to comment.