diff --git a/app/app.go b/app/app.go index fb276bc..cb662d8 100644 --- a/app/app.go +++ b/app/app.go @@ -191,6 +191,7 @@ type App struct { cdc *codec.LegacyAmino appCodec codec.Codec + txConfig client.TxConfig interfaceRegistry types.InterfaceRegistry invCheckPeriod uint @@ -268,6 +269,7 @@ func New( app := &App{ BaseApp: bApp, cdc: cdc, + txConfig: txConfig, appCodec: appCodec, interfaceRegistry: interfaceRegistry, invCheckPeriod: invCheckPeriod, @@ -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 +} diff --git a/proto/buf.gen.pulsar.yaml b/proto/buf.gen.pulsar.yaml new file mode 100644 index 0000000..e8fffdb --- /dev/null +++ b/proto/buf.gen.pulsar.yaml @@ -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 diff --git a/proto/buf.gen.sta.yaml b/proto/buf.gen.sta.yaml new file mode 100644 index 0000000..4444f5e --- /dev/null +++ b/proto/buf.gen.sta.yaml @@ -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 diff --git a/proto/buf.gen.ts.yaml b/proto/buf.gen.ts.yaml index 32c8422..c484fb3 100644 --- a/proto/buf.gen.ts.yaml +++ b/proto/buf.gen.ts.yaml @@ -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=. diff --git a/proto/buf.lock b/proto/buf.lock index 5988d55..77287f7 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -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 diff --git a/proto/buf.yaml b/proto/buf.yaml index a476229..7a86adc 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -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 diff --git a/tools/tools.go b/tools/tools.go index 29775a1..2d84899 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -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" diff --git a/x/claim/types/query.pb.gw.go b/x/claim/types/query.pb.gw.go index b60a828..19a114f 100644 --- a/x/claim/types/query.pb.gw.go +++ b/x/claim/types/query.pb.gw.go @@ -619,19 +619,19 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ClaimRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"ignite", "modules", "claim", "claim_record", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ClaimRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"ignite", "modules", "claim", "claim_record", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ClaimRecordAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "claim_record"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ClaimRecordAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "claim_record"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Mission_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"ignite", "modules", "claim", "mission", "missionID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Mission_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"ignite", "modules", "claim", "mission", "missionID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_MissionAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "mission"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MissionAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "mission"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AirdropSupply_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "airdrop_supply"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_AirdropSupply_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "airdrop_supply"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_InitialClaim_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "initial_claim"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_InitialClaim_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ignite", "modules", "claim", "initial_claim"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/mint/types/query.pb.gw.go b/x/mint/types/query.pb.gw.go index 7f942b2..bb906c1 100644 --- a/x/mint/types/query.pb.gw.go +++ b/x/mint/types/query.pb.gw.go @@ -267,11 +267,11 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "mint", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "mint", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Inflation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "mint", "v1beta1", "inflation"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Inflation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "mint", "v1beta1", "inflation"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AnnualProvisions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "mint", "v1beta1", "annual_provisions"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_AnnualProvisions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "mint", "v1beta1", "annual_provisions"}, "", runtime.AssumeColonVerbOpt(false))) ) var (