From a26d7c29653b70986dd391266787b74debc31e77 Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Fri, 17 Nov 2023 16:18:23 +0100 Subject: [PATCH] update SPN for support ignite (#1020) Co-authored-by: Pantani --- app/app.go | 7 +++++++ proto/buf.gen.pulsar.yaml | 22 ++++++++++++++++++++++ proto/buf.gen.sta.yaml | 15 +++++++++++++++ proto/buf.gen.ts.yaml | 2 -- proto/buf.lock | 6 +++++- proto/buf.yaml | 12 ++++++------ tools/tools.go | 1 + x/launch/types/genesis_validator.pb.go | 1 + x/launch/types/query.pb.gw.go | 24 ++++++++++++------------ x/launch/types/vesting_account.pb.go | 1 + x/monitoringc/types/query.pb.gw.go | 14 +++++++------- x/monitoringp/types/query.pb.gw.go | 8 ++++---- x/participation/types/query.pb.gw.go | 14 +++++++------- x/profile/types/query.pb.gw.go | 12 ++++++------ x/project/types/query.pb.gw.go | 20 ++++++++++---------- x/reward/types/query.pb.gw.go | 6 +++--- 16 files changed, 107 insertions(+), 58 deletions(-) create mode 100644 proto/buf.gen.pulsar.yaml create mode 100644 proto/buf.gen.sta.yaml diff --git a/app/app.go b/app/app.go index b3aff83a1..f511981c4 100644 --- a/app/app.go +++ b/app/app.go @@ -260,6 +260,7 @@ type App struct { cdc *codec.LegacyAmino appCodec codec.Codec + txConfig client.TxConfig interfaceRegistry types.InterfaceRegistry invCheckPeriod uint @@ -384,6 +385,7 @@ func New( app := &App{ BaseApp: bApp, cdc: cdc, + txConfig: txConfig, appCodec: appCodec, interfaceRegistry: interfaceRegistry, invCheckPeriod: invCheckPeriod, @@ -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) { diff --git a/proto/buf.gen.pulsar.yaml b/proto/buf.gen.pulsar.yaml new file mode 100644 index 000000000..e8fffdb28 --- /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 000000000..4444f5e75 --- /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 32c842221..c484fb3ad 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 5988d55e4..77287f75c 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 01416b1e5..7a86adcfa 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -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 diff --git a/tools/tools.go b/tools/tools.go index 4cd278670..36ee7b2ed 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/golangci/golangci-lint/cmd/golangci-lint" diff --git a/x/launch/types/genesis_validator.pb.go b/x/launch/types/genesis_validator.pb.go index 7f525a9a4..8f276151a 100644 --- a/x/launch/types/genesis_validator.pb.go +++ b/x/launch/types/genesis_validator.pb.go @@ -112,6 +112,7 @@ func (m *GenesisValidator) GetPeer() Peer { type Peer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Types that are valid to be assigned to Connection: + // // *Peer_TcpAddress // *Peer_HttpTunnel // *Peer_None diff --git a/x/launch/types/query.pb.gw.go b/x/launch/types/query.pb.gw.go index 3886b2f1e..83336967c 100644 --- a/x/launch/types/query.pb.gw.go +++ b/x/launch/types/query.pb.gw.go @@ -1372,29 +1372,29 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Chain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "chain", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Chain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "chain", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ChainAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "launch", "chain"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ChainAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "launch", "chain"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GenesisAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "launch", "genesis_account", "launchID", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GenesisAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "launch", "genesis_account", "launchID", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GenesisAccountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "genesis_account", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GenesisAccountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "genesis_account", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_VestingAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "launch", "vesting_account", "launchID", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_VestingAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "launch", "vesting_account", "launchID", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_VestingAccountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "vesting_account", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_VestingAccountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "vesting_account", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GenesisValidator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "launch", "genesis_validator", "launchID", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GenesisValidator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "launch", "genesis_validator", "launchID", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GenesisValidatorAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "genesis_validator", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GenesisValidatorAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "genesis_validator", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ParamChangeAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "paramChange", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ParamChangeAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "paramChange", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Request_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "launch", "request", "launchID", "requestID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Request_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "launch", "request", "launchID", "requestID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RequestAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "request", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_RequestAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "launch", "request", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "launch", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "launch", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/launch/types/vesting_account.pb.go b/x/launch/types/vesting_account.pb.go index 0302999f9..ea2b8b6cc 100644 --- a/x/launch/types/vesting_account.pb.go +++ b/x/launch/types/vesting_account.pb.go @@ -92,6 +92,7 @@ func (m *VestingAccount) GetVestingOptions() VestingOptions { type VestingOptions struct { // Types that are valid to be assigned to Options: + // // *VestingOptions_DelayedVesting Options isVestingOptions_Options `protobuf_oneof:"options"` } diff --git a/x/monitoringc/types/query.pb.gw.go b/x/monitoringc/types/query.pb.gw.go index aa0149a0b..9b1107deb 100644 --- a/x/monitoringc/types/query.pb.gw.go +++ b/x/monitoringc/types/query.pb.gw.go @@ -691,19 +691,19 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_VerifiedClientIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "monitoringc", "verified_client_ids", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_VerifiedClientIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "monitoringc", "verified_client_ids", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ProviderClientID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "monitoringc", "provider_client_id", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ProviderClientID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "monitoringc", "provider_client_id", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ProviderClientIDAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringc", "provider_client_id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ProviderClientIDAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringc", "provider_client_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LaunchIDFromChannelID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "monitoringc", "launch_id_from_channel_id", "channelID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LaunchIDFromChannelID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "monitoringc", "launch_id_from_channel_id", "channelID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LaunchIDFromChannelIDAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringc", "launch_id_from_channel_id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LaunchIDFromChannelIDAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringc", "launch_id_from_channel_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_MonitoringHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "monitoringc", "monitoring_history", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MonitoringHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "monitoringc", "monitoring_history", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringc", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringc", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/monitoringp/types/query.pb.gw.go b/x/monitoringp/types/query.pb.gw.go index 0c2bc7e47..a76b4d2d5 100644 --- a/x/monitoringp/types/query.pb.gw.go +++ b/x/monitoringp/types/query.pb.gw.go @@ -328,13 +328,13 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_ConsumerClientID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringp", "consumer_client_id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ConsumerClientID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringp", "consumer_client_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ConnectionChannelID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringp", "connection_channel_id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ConnectionChannelID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringp", "connection_channel_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_MonitoringInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringp", "monitoring_info"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MonitoringInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringp", "monitoring_info"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringp", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "monitoringp", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/participation/types/query.pb.gw.go b/x/participation/types/query.pb.gw.go index 6bf6034f9..ca1ce70cc 100644 --- a/x/participation/types/query.pb.gw.go +++ b/x/participation/types/query.pb.gw.go @@ -749,19 +749,19 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_UsedAllocations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "participation", "used_allocations", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_UsedAllocations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "participation", "used_allocations", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_UsedAllocationsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "participation", "used_allocations"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_UsedAllocationsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "participation", "used_allocations"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AuctionUsedAllocations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "participation", "auction_used_allocations", "address", "auctionID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_AuctionUsedAllocations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "participation", "auction_used_allocations", "address", "auctionID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AuctionUsedAllocationsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "participation", "auction_used_allocations", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_AuctionUsedAllocationsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "participation", "auction_used_allocations", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TotalAllocations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "participation", "total_allocations", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_TotalAllocations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "participation", "total_allocations", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AvailableAllocations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "participation", "available_allocations", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_AvailableAllocations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "participation", "available_allocations", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "participation", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "participation", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/profile/types/query.pb.gw.go b/x/profile/types/query.pb.gw.go index 499927412..e2c11cbc3 100644 --- a/x/profile/types/query.pb.gw.go +++ b/x/profile/types/query.pb.gw.go @@ -630,17 +630,17 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Validator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "profile", "validator", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Validator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "profile", "validator", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ValidatorAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "profile", "validator"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ValidatorAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "profile", "validator"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ValidatorByOperatorAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "profile", "validator_by_operator_address", "operatorAddress"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ValidatorByOperatorAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "profile", "validator_by_operator_address", "operatorAddress"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Coordinator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "profile", "coordinator", "coordinatorID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Coordinator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "profile", "coordinator", "coordinatorID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_CoordinatorAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "profile", "coordinator"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_CoordinatorAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "profile", "coordinator"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_CoordinatorByAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "profile", "coordinator_by_address", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_CoordinatorByAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "profile", "coordinator_by_address", "address"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/project/types/query.pb.gw.go b/x/project/types/query.pb.gw.go index d433c8b7e..8cf99d709 100644 --- a/x/project/types/query.pb.gw.go +++ b/x/project/types/query.pb.gw.go @@ -1044,25 +1044,25 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Project_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"tendermint", "spn", "project", "projectID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Project_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"tendermint", "spn", "project", "projectID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ProjectAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 2}, []string{"tendermint", "spn", "project"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ProjectAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 2}, []string{"tendermint", "spn", "project"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ProjectChains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "project", "project_chains", "projectID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ProjectChains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "project", "project_chains", "projectID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_SpecialAllocationsBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "project", "special_allocations_balance", "projectID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_SpecialAllocationsBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "project", "special_allocations_balance", "projectID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_MainnetAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "project", "mainnet_account", "projectID", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MainnetAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "project", "mainnet_account", "projectID", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_MainnetAccountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "project", "mainnet_account", "projectID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MainnetAccountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "project", "mainnet_account", "projectID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_MainnetAccountBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "project", "mainnet_account_balance", "projectID", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MainnetAccountBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"tendermint", "spn", "project", "mainnet_account_balance", "projectID", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_MainnetAccountBalanceAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "project", "mainnet_account_balance", "projectID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MainnetAccountBalanceAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "project", "mainnet_account_balance", "projectID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "project", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "project", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TotalShares_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "project", "total_shares"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_TotalShares_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "project", "total_shares"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/reward/types/query.pb.gw.go b/x/reward/types/query.pb.gw.go index e0db243db..ee6257ce8 100644 --- a/x/reward/types/query.pb.gw.go +++ b/x/reward/types/query.pb.gw.go @@ -321,11 +321,11 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_RewardPool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "reward", "reward_pool", "launchID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_RewardPool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "reward", "reward_pool", "launchID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RewardPoolAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "reward", "reward_pool"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_RewardPoolAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "reward", "reward_pool"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "reward", "params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "reward", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) var (