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: update SPN for Ignite compatibility #1020

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
missionIDVoting = 2

// missionIDSendingRequest is the mission ID for sending request mission to claim airdrop
missionIDSendingRequest = 3

Check failure on line 157 in app/app.go

View workflow job for this annotation

GitHub Actions / golangci-lint

const `missionIDSendingRequest` is unused (unused)
)

// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
Expand Down Expand Up @@ -260,6 +260,7 @@

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

invCheckPeriod uint
Expand Down Expand Up @@ -384,6 +385,7 @@
app := &App{
BaseApp: bApp,
cdc: cdc,
txConfig: txConfig,
appCodec: appCodec,
interfaceRegistry: interfaceRegistry,
invCheckPeriod: invCheckPeriod,
Expand Down Expand Up @@ -1095,6 +1097,11 @@
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
Loading