From 78430c9822804e3e629bdf4b2b4e1e78c435dd75 Mon Sep 17 00:00:00 2001 From: aljo242 Date: Sun, 31 Jul 2022 14:44:22 -0400 Subject: [PATCH 1/5] add .clang-format --- .clang-format | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..b8aa8fb86 --- /dev/null +++ b/.clang-format @@ -0,0 +1,115 @@ +--- +Language: Proto +BasedOnStyle: Google +AccessModifierOffset: -2 +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AlignEscapedNewlines: Right +AlignOperands: true +AlignTrailingComments: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: false +BinPackArguments: true +BinPackParameters: true +BraceWrapping: + AfterClass: false + AfterControlStatement: false + AfterEnum: false + AfterFunction: false + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: false + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: true + SplitEmptyNamespace: true +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Attach +BreakBeforeInheritanceComma: false +BreakBeforeTernaryOperators: true +BreakConstructorInitializersBeforeComma: false +BreakConstructorInitializers: BeforeColon +BreakAfterJavaFieldAnnotations: false +BreakStringLiterals: true +ColumnLimit: 120 +CommentPragmas: "^ IWYU pragma:" +CompactNamespaces: false +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: true +DerivePointerAlignment: false +DisableFormat: false +ExperimentalAutoDetectBinPacking: false +FixNamespaceComments: true +ForEachMacros: + - foreach + - Q_FOREACH + - BOOST_FOREACH +IncludeBlocks: Preserve +IncludeCategories: + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' + Priority: 2 + - Regex: '^(<|"(gtest|gmock|isl|json)/)' + Priority: 3 + - Regex: ".*" + Priority: 1 +IncludeIsMainRegex: "(Test)?$" +IndentCaseLabels: false +IndentPPDirectives: None +IndentWidth: 2 +IndentWrappedFunctionNames: false +JavaScriptQuotes: Leave +JavaScriptWrapImports: true +KeepEmptyLinesAtTheStartOfBlocks: true +MacroBlockBegin: "" +MacroBlockEnd: "" +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None +ObjCBlockIndentWidth: 2 +ObjCSpaceAfterProperty: false +ObjCSpaceBeforeProtocolList: true +PenaltyBreakAssignment: 2 +PenaltyBreakBeforeFirstCallParameter: 19 +PenaltyBreakComment: 300 +PenaltyBreakFirstLessLess: 120 +PenaltyBreakString: 1000 +PenaltyExcessCharacter: 1000000 +PenaltyReturnTypeOnItsOwnLine: 60 +PointerAlignment: Right +RawStringFormats: + - Delimiters: + - pb + Language: TextProto + BasedOnStyle: Google +ReflowComments: true +SortIncludes: true +SortUsingDeclarations: true +SpaceAfterCStyleCast: false +SpaceAfterTemplateKeyword: true +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInContainerLiterals: false +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Standard: Cpp11 +TabWidth: 8 +UseTab: Never +--- From 38b20952d742586c2c120d4ce47c51a8912d9e8e Mon Sep 17 00:00:00 2001 From: aljo242 Date: Sun, 31 Jul 2022 14:46:36 -0400 Subject: [PATCH 2/5] setup buf --- proto/buf.gen.gogo.yaml | 8 ++++++++ proto/buf.gen.pulsar.yaml | 21 +++++++++++++++++++++ proto/buf.lock | 19 +++++++++++++++++++ proto/buf.yaml | 23 +++++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 proto/buf.gen.gogo.yaml create mode 100644 proto/buf.gen.pulsar.yaml create mode 100644 proto/buf.lock create mode 100644 proto/buf.yaml diff --git a/proto/buf.gen.gogo.yaml b/proto/buf.gen.gogo.yaml new file mode 100644 index 000000000..1d1910836 --- /dev/null +++ b/proto/buf.gen.gogo.yaml @@ -0,0 +1,8 @@ +version: v1 +plugins: + - name: gocosmos + out: .. + opt: plugins=grpc,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mcosmos/orm/v1alpha1/orm.proto=github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1 + - name: grpc-gateway + out: .. + opt: logtostderr=true,allow_colon_final_segments=true \ No newline at end of file diff --git a/proto/buf.gen.pulsar.yaml b/proto/buf.gen.pulsar.yaml new file mode 100644 index 000000000..1e804f9dd --- /dev/null +++ b/proto/buf.gen.pulsar.yaml @@ -0,0 +1,21 @@ +version: v1 +managed: + enabled: true + go_package_prefix: + default: github.com/tendermint/spn/api + except: + - buf.build/googleapis/googleapis + - buf.build/cosmos/gogo-proto + - buf.build/cosmos/cosmos-proto + override: + buf.build/cosmos/cosmos-sdk: github.com/cosmos/cosmos-sdk/api +plugins: + - name: go-pulsar + out: ../api + opt: paths=source_relative + - name: go-grpc + out: ../api + opt: paths=source_relative + - name: go-cosmos-orm + out: ../api + opt: paths=source_relative \ No newline at end of file diff --git a/proto/buf.lock b/proto/buf.lock new file mode 100644 index 000000000..9690d2011 --- /dev/null +++ b/proto/buf.lock @@ -0,0 +1,19 @@ +# Generated by buf. DO NOT EDIT. +version: v1 +deps: + - remote: buf.build + owner: cosmos + repository: cosmos-proto + commit: 1935555c206d4afb9e94615dfd0fad31 + - remote: buf.build + owner: cosmos + repository: cosmos-sdk + commit: 538ee78feba84631935fd5b098a13a34 + - remote: buf.build + owner: cosmos + repository: gogo-proto + commit: bee5511075b7499da6178d9e4aaa628b + - remote: buf.build + owner: googleapis + repository: googleapis + commit: c3e1b2e164044397af6f283b0773eddf diff --git a/proto/buf.yaml b/proto/buf.yaml new file mode 100644 index 000000000..6d9fb1cf5 --- /dev/null +++ b/proto/buf.yaml @@ -0,0 +1,23 @@ +version: v1 +name: buf.build/tendermint/spn +deps: + - buf.build/cosmos/cosmos-sdk + - buf.build/cosmos/cosmos-proto + - buf.build/cosmos/gogo-proto + - buf.build/googleapis/googleapis +breaking: + use: + - FILE +lint: + use: + - DEFAULT + - COMMENTS + - FILE_LOWER_SNAKE_CASE + except: + - UNARY_RPC + - COMMENT_FIELD + - SERVICE_SUFFIX + - PACKAGE_VERSION_SUFFIX + - RPC_REQUEST_STANDARD_NAME + ignore: + - tendermint \ No newline at end of file From 70ee2337f6398e642c326e7f712d84bbab13553d Mon Sep 17 00:00:00 2001 From: aljo242 Date: Sun, 31 Jul 2022 14:51:14 -0400 Subject: [PATCH 3/5] add scripts and update Makefile --- Makefile | 19 +++++++++++++++++++ scripts/protocgen.sh | 34 ++++++++++++++++++++++++++++++++++ scripts/protocgen2.sh | 30 ++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 scripts/protocgen.sh create mode 100644 scripts/protocgen2.sh diff --git a/Makefile b/Makefile index abe566c28..69d0e30a9 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ PACKAGES=$(shell go list ./...) VERSION := $(shell echo $(shell git describe --tags 2> /dev/null || echo "dev-$(shell git describe --always)") | sed 's/^v//') SIMAPP = ./app +DOCKER := $(shell which docker) COVER_FILE := coverage.txt COVER_HTML_FILE := cover.html @@ -60,6 +61,24 @@ test: govet test-unit .PHONY: test test-unit test-race test-cover bench +proto-all: proto-format proto-gen + +protoVer=v0.7 +protoImageName=tendermintdev/sdk-proto-gen:$(protoVer) +containerProtoGen=ignite-spn-proto-gen-$(protoVer) +containerProtoFmt=ignite-spn-proto-fmt-$(protoVer) + +proto-gen: + @echo "Generating Protobuf files" + @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \ + sh ./scripts/protocgen.sh; fi + +proto-format: + @echo "Formatting Protobuf files" + @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoFmt}$$"; then docker start -a $(containerProtoFmt); else docker run --name $(containerProtoFmt) -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \ + find ./ -not -path "./third_party/*" -name "*.proto" -exec clang-format -i {} \; ; fi + + SIM_NUM_BLOCKS ?= 500 SIM_BLOCK_SIZE ?= 100 SIM_CI_NUM_BLOCKS ?= 200 diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh new file mode 100644 index 000000000..21d4fbfe2 --- /dev/null +++ b/scripts/protocgen.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +set -eo pipefail + +# get protoc executions +go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos 2>/dev/null + +# get cosmos sdk from github +go get github.com/cosmos/cosmos-sdk 2>/dev/null + +echo "Generating gogo proto code" +cd proto +proto_dirs=$(find -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) +for dir in $proto_dirs; do + for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do + if grep go_package $file &>/dev/null; then + buf generate --template buf.gen.gogo.yaml $file + fi + done +done + +cd .. + +# move proto files to the right places +# +# Note: Proto files are suffixed with the current binary version. +cp -r github.com/tendermint/spn/* ./ +rm -rf github.com + +go mod tidy -compat=1.18 + +# TODO: Uncomment once ORM/Pulsar support is needed. +# +# ./scripts/protocgen2.sh \ No newline at end of file diff --git a/scripts/protocgen2.sh b/scripts/protocgen2.sh new file mode 100644 index 000000000..de675625f --- /dev/null +++ b/scripts/protocgen2.sh @@ -0,0 +1,30 @@ + # this script is for generating protobuf files for the new google.golang.org/protobuf API + + set -eo pipefail + + protoc_install_gopulsar() { + go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest + } + + protoc_install_gopulsar + + echo "Cleaning API directory" + ( + cd api + find ./ -type f \( -iname \*.pulsar.go -o -iname \*.pb.go -o -iname \*.cosmos_orm.go -o -iname \*.pb.gw.go \) -delete + find . -empty -type d -delete + cd .. + ) + + echo "Generating API module" + ( + cd proto + buf generate --template buf.gen.pulsar.yaml + ) + + echo "Generate Pulsar Test Data" + ( + cd testutil/testdata + buf generate --template buf.gen.pulsar.yaml + ) \ No newline at end of file From ae015de413b48a56207861f721dea664b773e09b Mon Sep 17 00:00:00 2001 From: aljo242 Date: Sun, 31 Jul 2022 14:51:57 -0400 Subject: [PATCH 4/5] make proto-format --- proto/campaign/campaign.proto | 22 ++-- proto/campaign/campaign_chains.proto | 4 +- proto/campaign/events.proto | 65 +++++------ proto/campaign/genesis.proto | 8 +- proto/campaign/mainnet_account.proto | 16 +-- proto/campaign/params.proto | 18 ++- proto/campaign/query.proto | 32 +++--- proto/campaign/special_allocations.proto | 8 +- proto/campaign/tx.proto | 70 ++++++------ proto/campaign/vesting.proto | 12 +- proto/claim/claim_record.proto | 7 +- proto/claim/events.proto | 2 +- proto/claim/genesis.proto | 8 +- proto/claim/initial_claim.proto | 2 +- proto/claim/mission.proto | 6 +- proto/claim/query.proto | 17 ++- proto/claim/tx.proto | 3 +- proto/launch/chain.proto | 20 ++-- proto/launch/events.proto | 61 +++++----- proto/launch/genesis.proto | 16 +-- proto/launch/genesis_account.proto | 8 +- proto/launch/genesis_validator.proto | 21 ++-- proto/launch/params.proto | 8 +- proto/launch/query.proto | 32 +++--- proto/launch/request.proto | 18 +-- proto/launch/tx.proto | 108 +++++++++--------- proto/launch/vesting_account.proto | 16 +-- proto/mint/mint.proto | 65 ++++------- proto/monitoringc/genesis.proto | 12 +- .../launch_id_from_channel_id.proto | 2 +- proto/monitoringc/monitoring_history.proto | 2 +- proto/monitoringc/query.proto | 8 +- proto/monitoringc/tx.proto | 12 +- proto/monitoringc/verified_client_id.proto | 2 +- proto/monitoringp/genesis.proto | 8 +- proto/monitoringp/monitoring_info.proto | 2 +- proto/monitoringp/params.proto | 10 +- .../auction_used_allocations.proto | 12 +- proto/participation/events.proto | 12 +- proto/participation/genesis.proto | 4 +- proto/participation/params.proto | 23 ++-- proto/participation/query.proto | 27 ++--- proto/participation/tx.proto | 6 +- proto/participation/used_allocations.proto | 8 +- proto/profile/coordinator.proto | 14 +-- proto/profile/events.proto | 11 +- proto/profile/genesis.proto | 8 +- proto/profile/query.proto | 9 +- proto/profile/tx.proto | 10 +- proto/profile/validator.proto | 16 +-- proto/reward/events.proto | 8 +- proto/reward/genesis.proto | 2 +- proto/reward/query.proto | 2 +- proto/reward/reward_pool.proto | 16 +-- proto/reward/tx.proto | 18 +-- proto/types/ibc.proto | 13 +-- proto/types/monitoring.proto | 19 ++- 57 files changed, 459 insertions(+), 510 deletions(-) diff --git a/proto/campaign/campaign.proto b/proto/campaign/campaign.proto index cf0c565f0..93b2150e5 100644 --- a/proto/campaign/campaign.proto +++ b/proto/campaign/campaign.proto @@ -8,22 +8,22 @@ import "cosmos/base/v1beta1/coin.proto"; import "campaign/special_allocations.proto"; message Campaign { - uint64 campaignID = 1; - string campaignName = 2; - uint64 coordinatorID = 3; - int64 createdAt = 4; - uint64 mainnetID = 5; - bool mainnetInitialized = 6; + uint64 campaignID = 1; + string campaignName = 2; + uint64 coordinatorID = 3; + int64 createdAt = 4; + uint64 mainnetID = 5; + bool mainnetInitialized = 6; repeated cosmos.base.v1beta1.Coin totalSupply = 7 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; repeated cosmos.base.v1beta1.Coin allocatedShares = 8 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; SpecialAllocations specialAllocations = 9 [(gogoproto.nullable) = false]; - bytes metadata = 10; + bytes metadata = 10; } diff --git a/proto/campaign/campaign_chains.proto b/proto/campaign/campaign_chains.proto index 67f73cf59..d67d73ee9 100644 --- a/proto/campaign/campaign_chains.proto +++ b/proto/campaign/campaign_chains.proto @@ -4,6 +4,6 @@ package tendermint.spn.campaign; option go_package = "github.com/tendermint/spn/x/campaign/types"; message CampaignChains { - uint64 campaignID = 1; - repeated uint64 chains = 2; + uint64 campaignID = 1; + repeated uint64 chains = 2; } \ No newline at end of file diff --git a/proto/campaign/events.proto b/proto/campaign/events.proto index 894af09fa..8a5f86bfc 100644 --- a/proto/campaign/events.proto +++ b/proto/campaign/events.proto @@ -8,86 +8,87 @@ import "campaign/vesting.proto"; option go_package = "github.com/tendermint/spn/x/campaign/types"; message EventCampaignCreated { - uint64 campaignID = 1; + uint64 campaignID = 1; string coordinatorAddress = 2; - uint64 coordinatorID = 3; + uint64 coordinatorID = 3; } message EventCampaignChainAdded { uint64 campaignID = 1; - uint64 launchID = 2; + uint64 launchID = 2; } message EventCampaignInfoUpdated { - uint64 campaignID = 1; + uint64 campaignID = 1; string coordinatorAddress = 2; - string campaignName = 3; - bytes metadata = 4; + string campaignName = 3; + bytes metadata = 4; } message EventCampaignSharesUpdated { - uint64 campaignID = 1; - string coordinatorAddress = 2; + uint64 campaignID = 1; + string coordinatorAddress = 2; repeated cosmos.base.v1beta1.Coin allocatedShares = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; } message EventCampaignTotalSupplyUpdated { - uint64 campaignID = 1; - string coordinatorAddress = 2; + uint64 campaignID = 1; + string coordinatorAddress = 2; repeated cosmos.base.v1beta1.Coin totalSupply = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } message EventCampaignMainnetInitialized { - uint64 campaignID = 1; + uint64 campaignID = 1; string coordinatorAddress = 2; - uint64 mainnetID = 3; + uint64 mainnetID = 3; } message EventMainnetAccountCreated { - uint64 campaignID = 1; - string address = 2; + uint64 campaignID = 1; + string address = 2; repeated cosmos.base.v1beta1.Coin shares = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; } message EventMainnetAccountUpdated { - uint64 campaignID = 1; - string address = 2; + uint64 campaignID = 1; + string address = 2; repeated cosmos.base.v1beta1.Coin shares = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" - ];} + ]; +} -message EventMainnetAccountRemoved{ +message EventMainnetAccountRemoved { uint64 campaignID = 1; - string address = 2; + string address = 2; } message EventMainnetVestingAccountCreated { - uint64 campaignID = 1; - string address = 2; + uint64 campaignID = 1; + string address = 2; ShareVestingOptions vestingOptions = 3 [(gogoproto.nullable) = false]; } message EventMainnetVestingAccountUpdated { - uint64 campaignID = 1; - string address = 2; + uint64 campaignID = 1; + string address = 2; ShareVestingOptions vestingOptions = 3 [(gogoproto.nullable) = false]; } message EventCampaignAuctionCreated { uint64 campaignID = 1; - uint64 auctionID = 2; + uint64 auctionID = 2; } diff --git a/proto/campaign/genesis.proto b/proto/campaign/genesis.proto index fc07f8b35..d61baaef7 100644 --- a/proto/campaign/genesis.proto +++ b/proto/campaign/genesis.proto @@ -13,11 +13,11 @@ option go_package = "github.com/tendermint/spn/x/campaign/types"; // GenesisState defines the campaign module's genesis state. message GenesisState { - repeated Campaign campaignList = 1 [(gogoproto.nullable) = false]; - uint64 campaignCounter = 2; + repeated Campaign campaignList = 1 [(gogoproto.nullable) = false]; + uint64 campaignCounter = 2; repeated CampaignChains campaignChainsList = 3 [(gogoproto.nullable) = false]; repeated MainnetAccount mainnetAccountList = 4 [(gogoproto.nullable) = false]; - uint64 totalShares = 5; - Params params = 6 [(gogoproto.nullable) = false]; + uint64 totalShares = 5; + Params params = 6 [(gogoproto.nullable) = false]; // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/campaign/mainnet_account.proto b/proto/campaign/mainnet_account.proto index 77b91d1fb..8a5885990 100644 --- a/proto/campaign/mainnet_account.proto +++ b/proto/campaign/mainnet_account.proto @@ -7,21 +7,21 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; message MainnetAccount { - uint64 campaignID = 1; - string address = 2; + uint64 campaignID = 1; + string address = 2; repeated cosmos.base.v1beta1.Coin shares = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; } message MainnetAccountBalance { - uint64 campaignID = 1; - string address = 2; + uint64 campaignID = 1; + string address = 2; repeated cosmos.base.v1beta1.Coin coins = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } diff --git a/proto/campaign/params.proto b/proto/campaign/params.proto index 85e770b6e..4d36027f8 100644 --- a/proto/campaign/params.proto +++ b/proto/campaign/params.proto @@ -10,22 +10,18 @@ option go_package = "github.com/tendermint/spn/x/campaign/types"; message Params { option (gogoproto.goproto_stringer) = false; - TotalSupplyRange totalSupplyRange = 1 [(gogoproto.nullable) = false]; + TotalSupplyRange totalSupplyRange = 1 [(gogoproto.nullable) = false]; repeated cosmos.base.v1beta1.Coin campaignCreationFee = 2 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } // TotalSupplyRange defines the range of allowed values for total supply message TotalSupplyRange { - string minTotalSupply = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; - string maxTotalSupply = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; + string minTotalSupply = 1 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string maxTotalSupply = 2 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } diff --git a/proto/campaign/query.proto b/proto/campaign/query.proto index 26d63b7fd..e6ed4497b 100644 --- a/proto/campaign/query.proto +++ b/proto/campaign/query.proto @@ -18,8 +18,7 @@ option go_package = "github.com/tendermint/spn/x/campaign/types"; service Query { // Queries a campaign by id. rpc Campaign(QueryGetCampaignRequest) returns (QueryGetCampaignResponse) { - option (google.api.http).get = - "/tendermint/spn/campaign/campaign/{campaignID}"; + option (google.api.http).get = "/tendermint/spn/campaign/campaign/{campaignID}"; } // Queries a list of campaign items. @@ -33,7 +32,8 @@ service Query { } // Queries a list of SpecialAllocationsBalance items. - rpc SpecialAllocationsBalance(QuerySpecialAllocationsBalanceRequest) returns (QuerySpecialAllocationsBalanceResponse) { + rpc SpecialAllocationsBalance(QuerySpecialAllocationsBalanceRequest) + returns (QuerySpecialAllocationsBalanceResponse) { option (google.api.http).get = "/tendermint/spn/campaign/special_allocations_balance/{campaignID}"; } @@ -83,7 +83,7 @@ message QueryAllCampaignRequest { } message QueryAllCampaignResponse { - repeated Campaign campaign = 1 [(gogoproto.nullable) = false]; + repeated Campaign campaign = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -101,20 +101,20 @@ message QuerySpecialAllocationsBalanceRequest { message QuerySpecialAllocationsBalanceResponse { repeated cosmos.base.v1beta1.Coin genesisDistribution = 1 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; repeated cosmos.base.v1beta1.Coin claimableAirdrop = 2 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } message QueryGetMainnetAccountRequest { uint64 campaignID = 1; - string address = 2; + string address = 2; } message QueryGetMainnetAccountResponse { @@ -122,18 +122,18 @@ message QueryGetMainnetAccountResponse { } message QueryAllMainnetAccountRequest { - uint64 campaignID = 1; + uint64 campaignID = 1; cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryAllMainnetAccountResponse { - repeated MainnetAccount mainnetAccount = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated MainnetAccount mainnetAccount = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetMainnetAccountBalanceRequest { uint64 campaignID = 1; - string address = 2; + string address = 2; } message QueryGetMainnetAccountBalanceResponse { @@ -141,13 +141,13 @@ message QueryGetMainnetAccountBalanceResponse { } message QueryAllMainnetAccountBalanceRequest { - uint64 campaignID = 1; + uint64 campaignID = 1; cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryAllMainnetAccountBalanceResponse { - repeated MainnetAccountBalance mainnetAccountBalance = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated MainnetAccountBalance mainnetAccountBalance = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryParamsRequest is request type for the Query/Params RPC method. diff --git a/proto/campaign/special_allocations.proto b/proto/campaign/special_allocations.proto index c618bad8a..ef6d29ebf 100644 --- a/proto/campaign/special_allocations.proto +++ b/proto/campaign/special_allocations.proto @@ -8,13 +8,13 @@ import "cosmos/base/v1beta1/coin.proto"; message SpecialAllocations { repeated cosmos.base.v1beta1.Coin genesisDistribution = 1 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; repeated cosmos.base.v1beta1.Coin claimableAirdrop = 2 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; } diff --git a/proto/campaign/tx.proto b/proto/campaign/tx.proto index 6841f8926..1c0aaff39 100644 --- a/proto/campaign/tx.proto +++ b/proto/campaign/tx.proto @@ -20,15 +20,15 @@ service Msg { rpc BurnVouchers(MsgBurnVouchers) returns (MsgBurnVouchersResponse); rpc RedeemVouchers(MsgRedeemVouchers) returns (MsgRedeemVouchersResponse); rpc UnredeemVouchers(MsgUnredeemVouchers) returns (MsgUnredeemVouchersResponse); -// this line is used by starport scaffolding # proto/tx/rpc + // this line is used by starport scaffolding # proto/tx/rpc } message MsgCreateCampaign { - string coordinator = 1; - string campaignName = 2; + string coordinator = 1; + string campaignName = 2; repeated cosmos.base.v1beta1.Coin totalSupply = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; bytes metadata = 4; @@ -40,19 +40,19 @@ message MsgCreateCampaignResponse { message MsgEditCampaign { string coordinator = 1; - uint64 campaignID = 2; - string name = 3; - bytes metadata = 4; + uint64 campaignID = 2; + string name = 3; + bytes metadata = 4; } message MsgEditCampaignResponse {} message MsgUpdateTotalSupply { - string coordinator = 1; - uint64 campaignID = 2; + string coordinator = 1; + uint64 campaignID = 2; repeated cosmos.base.v1beta1.Coin totalSupplyUpdate = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } @@ -60,18 +60,18 @@ message MsgUpdateTotalSupply { message MsgUpdateTotalSupplyResponse {} message MsgUpdateSpecialAllocations { - string coordinator = 1; - uint64 campaignID = 2; + string coordinator = 1; + uint64 campaignID = 2; SpecialAllocations specialAllocations = 3 [(gogoproto.nullable) = false]; } message MsgUpdateSpecialAllocationsResponse {} message MsgInitializeMainnet { - string coordinator = 1; - uint64 campaignID = 2; - string sourceURL = 3; - string sourceHash = 4; + string coordinator = 1; + uint64 campaignID = 2; + string sourceURL = 3; + string sourceHash = 4; string mainnetChainID = 5; } @@ -80,11 +80,11 @@ message MsgInitializeMainnetResponse { } message MsgMintVouchers { - string coordinator = 1; - uint64 campaignID = 2; + string coordinator = 1; + uint64 campaignID = 2; repeated cosmos.base.v1beta1.Coin shares = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; } @@ -92,11 +92,11 @@ message MsgMintVouchers { message MsgMintVouchersResponse {} message MsgBurnVouchers { - string sender = 1; - uint64 campaignID = 2; + string sender = 1; + uint64 campaignID = 2; repeated cosmos.base.v1beta1.Coin vouchers = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } @@ -104,12 +104,12 @@ message MsgBurnVouchers { message MsgBurnVouchersResponse {} message MsgRedeemVouchers { - string sender = 1; - uint64 campaignID = 2; - string account = 3; + string sender = 1; + uint64 campaignID = 2; + string account = 3; repeated cosmos.base.v1beta1.Coin vouchers = 4 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } @@ -117,11 +117,11 @@ message MsgRedeemVouchers { message MsgRedeemVouchersResponse {} message MsgUnredeemVouchers { - string sender = 1; - uint64 campaignID = 2; + string sender = 1; + uint64 campaignID = 2; repeated cosmos.base.v1beta1.Coin shares = 4 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; } diff --git a/proto/campaign/vesting.proto b/proto/campaign/vesting.proto index a06f6fbfe..84e00b68b 100644 --- a/proto/campaign/vesting.proto +++ b/proto/campaign/vesting.proto @@ -7,7 +7,9 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; message ShareVestingOptions { - oneof options {ShareDelayedVesting delayedVesting = 1;} + oneof options { + ShareDelayedVesting delayedVesting = 1; + } } // ShareDelayedVesting represents options for share delayed vesting @@ -15,13 +17,13 @@ message ShareVestingOptions { // once end time is reached message ShareDelayedVesting { repeated cosmos.base.v1beta1.Coin totalShares = 1 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; repeated cosmos.base.v1beta1.Coin vesting = 2 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "Shares" ]; int64 endTime = 3; diff --git a/proto/claim/claim_record.proto b/proto/claim/claim_record.proto index 2f9ca910e..9c4a0527b 100644 --- a/proto/claim/claim_record.proto +++ b/proto/claim/claim_record.proto @@ -6,9 +6,8 @@ option go_package = "github.com/tendermint/spn/x/claim/types"; import "gogoproto/gogo.proto"; message ClaimRecord { - string address = 1; - string claimable = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false]; + string address = 1; + string claimable = 2 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; repeated uint64 completedMissions = 3; } diff --git a/proto/claim/events.proto b/proto/claim/events.proto index 9bb0f01ac..2f4cb7d0e 100644 --- a/proto/claim/events.proto +++ b/proto/claim/events.proto @@ -5,5 +5,5 @@ option go_package = "github.com/tendermint/spn/x/claim/types"; message EventMissionCompleted { uint64 missionID = 1; - string claimer = 2; + string claimer = 2; } diff --git a/proto/claim/genesis.proto b/proto/claim/genesis.proto index 273fb22a4..913fe895e 100644 --- a/proto/claim/genesis.proto +++ b/proto/claim/genesis.proto @@ -14,10 +14,10 @@ option go_package = "github.com/tendermint/spn/x/claim/types"; // GenesisState defines the claim module's genesis state. message GenesisState { cosmos.base.v1beta1.Coin airdropSupply = 1 [(gogoproto.nullable) = false]; - repeated ClaimRecord claimRecords = 2 [(gogoproto.nullable) = false]; - repeated Mission missions = 3 [(gogoproto.nullable) = false]; - InitialClaim initialClaim = 4 [(gogoproto.nullable) = false]; - Params params = 5 [(gogoproto.nullable) = false]; + repeated ClaimRecord claimRecords = 2 [(gogoproto.nullable) = false]; + repeated Mission missions = 3 [(gogoproto.nullable) = false]; + InitialClaim initialClaim = 4 [(gogoproto.nullable) = false]; + Params params = 5 [(gogoproto.nullable) = false]; // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/claim/initial_claim.proto b/proto/claim/initial_claim.proto index 03b422ac0..95ebd1aef 100644 --- a/proto/claim/initial_claim.proto +++ b/proto/claim/initial_claim.proto @@ -4,6 +4,6 @@ package tendermint.spn.claim; option go_package = "github.com/tendermint/spn/x/claim/types"; message InitialClaim { - bool enabled = 1; + bool enabled = 1; uint64 missionID = 2; } diff --git a/proto/claim/mission.proto b/proto/claim/mission.proto index 491492282..c9e03338a 100644 --- a/proto/claim/mission.proto +++ b/proto/claim/mission.proto @@ -6,9 +6,7 @@ option go_package = "github.com/tendermint/spn/x/claim/types"; import "gogoproto/gogo.proto"; message Mission { - uint64 missionID = 1; + uint64 missionID = 1; string description = 2; - string weight = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false]; + string weight = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } diff --git a/proto/claim/query.proto b/proto/claim/query.proto index b55e9dbfe..9ad2c58ef 100644 --- a/proto/claim/query.proto +++ b/proto/claim/query.proto @@ -47,10 +47,10 @@ service Query { option (google.api.http).get = "/tendermint/spn/claim/airdrop_supply"; } // Queries a InitialClaim by index. - rpc InitialClaim(QueryGetInitialClaimRequest) returns (QueryGetInitialClaimResponse) { - option (google.api.http).get = "/tendermint/spn/claim/initial_claim"; - } -// this line is used by starport scaffolding # 2 + rpc InitialClaim(QueryGetInitialClaimRequest) returns (QueryGetInitialClaimResponse) { + option (google.api.http).get = "/tendermint/spn/claim/initial_claim"; + } + // this line is used by starport scaffolding # 2 } // QueryParamsRequest is request type for the Query/Params RPC method. @@ -75,8 +75,8 @@ message QueryAllClaimRecordRequest { } message QueryAllClaimRecordResponse { - repeated ClaimRecord claimRecord = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated ClaimRecord claimRecord = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetMissionRequest { @@ -92,7 +92,7 @@ message QueryAllMissionRequest { } message QueryAllMissionResponse { - repeated Mission Mission = 1 [(gogoproto.nullable) = false]; + repeated Mission Mission = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -104,7 +104,6 @@ message QueryGetAirdropSupplyResponse { message QueryGetInitialClaimRequest {} message QueryGetInitialClaimResponse { - InitialClaim InitialClaim = 1 [(gogoproto.nullable) = false]; + InitialClaim InitialClaim = 1 [(gogoproto.nullable) = false]; } // this line is used by starport scaffolding # 3 - diff --git a/proto/claim/tx.proto b/proto/claim/tx.proto index 3051f4e28..fe36bbf0b 100644 --- a/proto/claim/tx.proto +++ b/proto/claim/tx.proto @@ -15,7 +15,6 @@ message MsgClaimInitial { string claimer = 1; } -message MsgClaimInitialResponse { -} +message MsgClaimInitialResponse {} // this line is used by starport scaffolding # proto/tx/message diff --git a/proto/launch/chain.proto b/proto/launch/chain.proto index bb1bd3c01..c6d142003 100644 --- a/proto/launch/chain.proto +++ b/proto/launch/chain.proto @@ -6,21 +6,21 @@ import "gogoproto/gogo.proto"; option go_package = "github.com/tendermint/spn/x/launch/types"; message Chain { - uint64 launchID = 1; - uint64 coordinatorID = 2; + uint64 launchID = 1; + uint64 coordinatorID = 2; string genesisChainID = 3; - int64 createdAt = 4; + int64 createdAt = 4; - string sourceURL = 5; + string sourceURL = 5; string sourceHash = 6; InitialGenesis initialGenesis = 7 [(gogoproto.nullable) = false]; - bool hasCampaign = 8; - uint64 campaignID = 9; - bool isMainnet = 10; + bool hasCampaign = 8; + uint64 campaignID = 9; + bool isMainnet = 10; - bool launchTriggered = 11; + bool launchTriggered = 11; int64 launchTimestamp = 12; int64 consumerRevisionHeight = 13; @@ -33,7 +33,7 @@ message Chain { message InitialGenesis { oneof source { DefaultInitialGenesis defaultInitialGenesis = 1; - GenesisURL genesisURL = 2; + GenesisURL genesisURL = 2; } } @@ -43,6 +43,6 @@ message DefaultInitialGenesis {} // GenesisURL specifies using a custom genesis from a URL as the initial genesis message GenesisURL { - string url = 1; + string url = 1; string hash = 2; } \ No newline at end of file diff --git a/proto/launch/events.proto b/proto/launch/events.proto index 70d532545..97877dc6c 100644 --- a/proto/launch/events.proto +++ b/proto/launch/events.proto @@ -12,70 +12,69 @@ import "launch/genesis_validator.proto"; option go_package = "github.com/tendermint/spn/x/launch/types"; message EventChainCreated { - uint64 launchID = 1; + uint64 launchID = 1; string coordinatorAddress = 2; - uint64 coordinatorID = 3; + uint64 coordinatorID = 3; } - message EventRequestCreated { - string creator = 1; + string creator = 1; Request request = 2 [(gogoproto.nullable) = false]; } message EventRequestSettled { - uint64 launchID = 1; + uint64 launchID = 1; uint64 requestID = 2; - bool approved = 3; + bool approved = 3; } message EventGenesisAccountAdded { - uint64 launchID = 1; - string address = 2; + uint64 launchID = 1; + string address = 2; repeated cosmos.base.v1beta1.Coin coins = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; string coordinatorAddress = 4; } message EventVestingAccountAdded { - uint64 launchID = 1; - string address = 2; - VestingOptions vestingOptions = 3 [(gogoproto.nullable) = false]; - string coordinatorAddress = 4; + uint64 launchID = 1; + string address = 2; + VestingOptions vestingOptions = 3 [(gogoproto.nullable) = false]; + string coordinatorAddress = 4; } message EventValidatorAdded { - uint64 launchID = 1; - string address = 2; - bytes genTx = 3; - bytes consPubKey = 4; - cosmos.base.v1beta1.Coin selfDelegation = 5 [(gogoproto.nullable) = false]; - Peer peer = 6 [(gogoproto.nullable) = false]; - bool hasCampaign = 7; - uint64 campaignID = 8; - string coordinatorAddress = 9; + uint64 launchID = 1; + string address = 2; + bytes genTx = 3; + bytes consPubKey = 4; + cosmos.base.v1beta1.Coin selfDelegation = 5 [(gogoproto.nullable) = false]; + Peer peer = 6 [(gogoproto.nullable) = false]; + bool hasCampaign = 7; + uint64 campaignID = 8; + string coordinatorAddress = 9; } message EventAccountRemoved { - string address = 1; - uint64 launchID = 2; + string address = 1; + uint64 launchID = 2; string coordinatorAddress = 3; } message EventValidatorRemoved { string genesisValidatorAccount = 1; - uint64 launchID = 2; - bool hasCampaign = 3; - uint64 campaignID = 4; - string coordinatorAddress = 5; + uint64 launchID = 2; + bool hasCampaign = 3; + uint64 campaignID = 4; + string coordinatorAddress = 5; } message EventLaunchTriggered { - uint64 launchID = 1; - int64 launchTimestamp = 2; + uint64 launchID = 1; + int64 launchTimestamp = 2; } message EventLaunchReverted { diff --git a/proto/launch/genesis.proto b/proto/launch/genesis.proto index 98c261523..ca3959fd0 100644 --- a/proto/launch/genesis.proto +++ b/proto/launch/genesis.proto @@ -15,17 +15,17 @@ option go_package = "github.com/tendermint/spn/x/launch/types"; // GenesisState defines the launch module's genesis state. message GenesisState { // this line is used by starport scaffolding # genesis/proto/state - repeated Chain chainList = 1 [(gogoproto.nullable) = false]; - uint64 chainCounter = 2; - repeated GenesisAccount genesisAccountList = 3 [(gogoproto.nullable) = false]; - repeated VestingAccount vestingAccountList = 4 [(gogoproto.nullable) = false]; + repeated Chain chainList = 1 [(gogoproto.nullable) = false]; + uint64 chainCounter = 2; + repeated GenesisAccount genesisAccountList = 3 [(gogoproto.nullable) = false]; + repeated VestingAccount vestingAccountList = 4 [(gogoproto.nullable) = false]; repeated GenesisValidator genesisValidatorList = 5 [(gogoproto.nullable) = false]; - repeated Request requestList = 6 [(gogoproto.nullable) = false]; - repeated RequestCounter requestCounterList = 7 [(gogoproto.nullable) = false]; - Params params = 8 [(gogoproto.nullable) = false]; + repeated Request requestList = 6 [(gogoproto.nullable) = false]; + repeated RequestCounter requestCounterList = 7 [(gogoproto.nullable) = false]; + Params params = 8 [(gogoproto.nullable) = false]; } message RequestCounter { uint64 launchID = 1; - uint64 counter = 2; + uint64 counter = 2; } \ No newline at end of file diff --git a/proto/launch/genesis_account.proto b/proto/launch/genesis_account.proto index f124b554d..91aaeb9d1 100644 --- a/proto/launch/genesis_account.proto +++ b/proto/launch/genesis_account.proto @@ -7,11 +7,11 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; message GenesisAccount { - uint64 launchID = 1; - string address = 2; + uint64 launchID = 1; + string address = 2; repeated cosmos.base.v1beta1.Coin coins = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } diff --git a/proto/launch/genesis_validator.proto b/proto/launch/genesis_validator.proto index 1bbf2d23e..8a6b57df3 100644 --- a/proto/launch/genesis_validator.proto +++ b/proto/launch/genesis_validator.proto @@ -7,26 +7,27 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; message GenesisValidator { - uint64 launchID = 1; - string address = 2; - bytes genTx = 3; - bytes consPubKey = 4; + uint64 launchID = 1; + string address = 2; + bytes genTx = 3; + bytes consPubKey = 4; cosmos.base.v1beta1.Coin selfDelegation = 5 [(gogoproto.nullable) = false]; - Peer peer = 6 [(gogoproto.nullable) = false]; + Peer peer = 6 [(gogoproto.nullable) = false]; } message Peer { string id = 1; // e.g.: 7786ace6ddb3d771024792a46540c88587e0e8cc oneof connection { - string tcpAddress = 2; // use a TCP address - HTTPTunnel httpTunnel = 3; // or use an HTTP tunnel - EmptyConnection none = 4; // or don't provide any connection + string tcpAddress = 2; // use a TCP address + HTTPTunnel httpTunnel = 3; // or use an HTTP tunnel + EmptyConnection none = 4; // or don't provide any connection } message HTTPTunnel { - string name = 1; // e.g.: chisel (https://github.com/jpillora/chisel) - string address = 2; // for chisel running on Gitpod, e.g.: https://3475-chocolate-capybara-kkiztq32.ws-eu21.gitpod.io/ + string name = 1; // e.g.: chisel (https://github.com/jpillora/chisel) + string address = + 2; // for chisel running on Gitpod, e.g.: https://3475-chocolate-capybara-kkiztq32.ws-eu21.gitpod.io/ } message EmptyConnection {} diff --git a/proto/launch/params.proto b/proto/launch/params.proto index bc7927aa5..bcfa8d42e 100644 --- a/proto/launch/params.proto +++ b/proto/launch/params.proto @@ -10,11 +10,11 @@ option go_package = "github.com/tendermint/spn/x/launch/types"; message Params { option (gogoproto.goproto_stringer) = false; - LaunchTimeRange launchTimeRange = 1 [(gogoproto.nullable) = false]; - int64 revertDelay = 2; + LaunchTimeRange launchTimeRange = 1 [(gogoproto.nullable) = false]; + int64 revertDelay = 2; repeated cosmos.base.v1beta1.Coin chainCreationFee = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } diff --git a/proto/launch/query.proto b/proto/launch/query.proto index 84195869d..9f54bc4b0 100644 --- a/proto/launch/query.proto +++ b/proto/launch/query.proto @@ -83,13 +83,13 @@ message QueryAllChainRequest { } message QueryAllChainResponse { - repeated Chain chain = 1 [(gogoproto.nullable) = false]; + repeated Chain chain = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetGenesisAccountRequest { uint64 launchID = 1; - string address = 2; + string address = 2; } message QueryGetGenesisAccountResponse { @@ -97,18 +97,18 @@ message QueryGetGenesisAccountResponse { } message QueryAllGenesisAccountRequest { - uint64 launchID = 1; + uint64 launchID = 1; cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryAllGenesisAccountResponse { - repeated GenesisAccount genesisAccount = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated GenesisAccount genesisAccount = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetVestingAccountRequest { uint64 launchID = 1; - string address = 2; + string address = 2; } message QueryGetVestingAccountResponse { @@ -116,18 +116,18 @@ message QueryGetVestingAccountResponse { } message QueryAllVestingAccountRequest { - uint64 launchID = 1; + uint64 launchID = 1; cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryAllVestingAccountResponse { - repeated VestingAccount vestingAccount = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated VestingAccount vestingAccount = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetGenesisValidatorRequest { uint64 launchID = 1; - string address = 2; + string address = 2; } message QueryGetGenesisValidatorResponse { @@ -135,17 +135,17 @@ message QueryGetGenesisValidatorResponse { } message QueryAllGenesisValidatorRequest { - uint64 launchID = 1; + uint64 launchID = 1; cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryAllGenesisValidatorResponse { - repeated GenesisValidator genesisValidator = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated GenesisValidator genesisValidator = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetRequestRequest { - uint64 launchID = 1; + uint64 launchID = 1; uint64 requestID = 2; } @@ -154,12 +154,12 @@ message QueryGetRequestResponse { } message QueryAllRequestRequest { - uint64 launchID = 1; + uint64 launchID = 1; cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryAllRequestResponse { - repeated Request request = 1 [(gogoproto.nullable) = false]; + repeated Request request = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/proto/launch/request.proto b/proto/launch/request.proto index 602fb2c44..0d82ca233 100644 --- a/proto/launch/request.proto +++ b/proto/launch/request.proto @@ -9,13 +9,13 @@ import "launch/genesis_validator.proto"; option go_package = "github.com/tendermint/spn/x/launch/types"; message Request { - uint64 launchID = 1; - uint64 requestID = 2; - string creator = 3; - int64 createdAt = 4; - RequestContent content = 5 [(gogoproto.nullable) = false]; + uint64 launchID = 1; + uint64 requestID = 2; + string creator = 3; + int64 createdAt = 4; + RequestContent content = 5 [(gogoproto.nullable) = false]; enum Status { - PENDING = 0; + PENDING = 0; APPROVED = 1; REJECTED = 2; } @@ -24,10 +24,10 @@ message Request { message RequestContent { oneof content { - GenesisAccount genesisAccount = 1; - VestingAccount vestingAccount = 2; + GenesisAccount genesisAccount = 1; + VestingAccount vestingAccount = 2; GenesisValidator genesisValidator = 3; - AccountRemoval accountRemoval = 4; + AccountRemoval accountRemoval = 4; ValidatorRemoval validatorRemoval = 5; } } diff --git a/proto/launch/tx.proto b/proto/launch/tx.proto index 26e0ec7bd..934dfe22d 100644 --- a/proto/launch/tx.proto +++ b/proto/launch/tx.proto @@ -27,15 +27,15 @@ service Msg { } message MsgCreateChain { - string coordinator = 1; + string coordinator = 1; string genesisChainID = 2; - string sourceURL = 3; - string sourceHash = 4; - string genesisURL = 5; - string genesisHash = 6; - bool hasCampaign = 7; - uint64 campaignID = 8; - bytes metadata = 9; + string sourceURL = 3; + string sourceHash = 4; + string genesisURL = 5; + string genesisHash = 6; + bool hasCampaign = 7; + uint64 campaignID = 8; + bytes metadata = 9; } message MsgCreateChainResponse { @@ -43,111 +43,111 @@ message MsgCreateChainResponse { } message MsgEditChain { - string coordinator = 1; - uint64 launchID = 2; - bool setCampaignID = 3; - uint64 campaignID = 4; - bytes metadata = 5; + string coordinator = 1; + uint64 launchID = 2; + bool setCampaignID = 3; + uint64 campaignID = 4; + bytes metadata = 5; } message MsgEditChainResponse {} message MsgUpdateLaunchInformation { - string coordinator = 1; - uint64 launchID = 2; - string genesisChainID = 3; - string sourceURL = 4; - string sourceHash = 5; + string coordinator = 1; + uint64 launchID = 2; + string genesisChainID = 3; + string sourceURL = 4; + string sourceHash = 5; InitialGenesis initialGenesis = 6; } message MsgUpdateLaunchInformationResponse {} message MsgRequestAddAccount { - string creator = 1; - uint64 launchID = 2; - string address = 3; + string creator = 1; + uint64 launchID = 2; + string address = 3; repeated cosmos.base.v1beta1.Coin coins = 4 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } message MsgRequestAddAccountResponse { - uint64 requestID = 1; - bool autoApproved = 2; + uint64 requestID = 1; + bool autoApproved = 2; } message MsgRequestAddVestingAccount { - string creator = 1; - uint64 launchID = 2; - string address = 3; - VestingOptions options = 4 [(gogoproto.nullable) = false]; + string creator = 1; + uint64 launchID = 2; + string address = 3; + VestingOptions options = 4 [(gogoproto.nullable) = false]; } message MsgRequestAddVestingAccountResponse { - uint64 requestID = 1; - bool autoApproved = 2; + uint64 requestID = 1; + bool autoApproved = 2; } message MsgRequestRemoveAccount { - string creator = 1; + string creator = 1; uint64 launchID = 2; - string address = 3; + string address = 3; } message MsgRequestRemoveAccountResponse { - uint64 requestID = 1; - bool autoApproved = 2; + uint64 requestID = 1; + bool autoApproved = 2; } message MsgRequestAddValidator { - string creator = 1; - uint64 launchID = 2; - string valAddress = 3; - bytes genTx = 4; - bytes consPubKey = 5; + string creator = 1; + uint64 launchID = 2; + string valAddress = 3; + bytes genTx = 4; + bytes consPubKey = 5; cosmos.base.v1beta1.Coin selfDelegation = 6 [(gogoproto.nullable) = false]; - Peer peer = 7 [(gogoproto.nullable) = false]; + Peer peer = 7 [(gogoproto.nullable) = false]; } message MsgRequestAddValidatorResponse { - uint64 requestID = 1; - bool autoApproved = 2; + uint64 requestID = 1; + bool autoApproved = 2; } message MsgRequestRemoveValidator { - string creator = 1; - uint64 launchID = 2; + string creator = 1; + uint64 launchID = 2; string validatorAddress = 3; } message MsgRequestRemoveValidatorResponse { - uint64 requestID = 1; - bool autoApproved = 2; + uint64 requestID = 1; + bool autoApproved = 2; } message MsgSettleRequest { - string signer = 1; - uint64 launchID = 2; + string signer = 1; + uint64 launchID = 2; uint64 requestID = 3; - bool approve = 4; + bool approve = 4; } message MsgSettleRequestResponse {} message MsgTriggerLaunch { - string coordinator = 1; - uint64 launchID = 2; - int64 remainingTime = 3; + string coordinator = 1; + uint64 launchID = 2; + int64 remainingTime = 3; } message MsgTriggerLaunchResponse {} message MsgRevertLaunch { string coordinator = 1; - uint64 launchID = 2; + uint64 launchID = 2; } message MsgRevertLaunchResponse {} diff --git a/proto/launch/vesting_account.proto b/proto/launch/vesting_account.proto index 5e467d63e..a3451ecb4 100644 --- a/proto/launch/vesting_account.proto +++ b/proto/launch/vesting_account.proto @@ -7,13 +7,15 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; message VestingAccount { - uint64 launchID = 1; - string address = 2; + uint64 launchID = 1; + string address = 2; VestingOptions vestingOptions = 3 [(gogoproto.nullable) = false]; } message VestingOptions { - oneof options {DelayedVesting delayedVesting = 1;} + oneof options { + DelayedVesting delayedVesting = 1; + } } // DelayedVesting represents options for delayed vesting @@ -21,13 +23,13 @@ message VestingOptions { // once end time is reached message DelayedVesting { repeated cosmos.base.v1beta1.Coin totalBalance = 1 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; repeated cosmos.base.v1beta1.Coin vesting = 2 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; int64 endTime = 3; diff --git a/proto/mint/mint.proto b/proto/mint/mint.proto index c91b8ae5a..cc9acfcb3 100644 --- a/proto/mint/mint.proto +++ b/proto/mint/mint.proto @@ -11,45 +11,31 @@ message Minter { string inflation = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // current annual expected provisions - string annual_provisions = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string annual_provisions = 2 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } message WeightedAddress { string address = 1; - string weight = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string weight = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } message DistributionProportions { // staking defines the proportion of the minted minted_denom that is to be // allocated as staking rewards. - string staking = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string staking = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // incentives defines the proportion of the minted minted_denom that is // to be allocated as incentives. - string incentives = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string incentives = 2 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // development_fund defines the proportion of the minted minted_denom that is // to be allocated for development funding. - string development_fund = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string development_fund = 3 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // community_pool defines the proportion of the minted minted_denom that is // to be allocated to the community pool. - string community_pool = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string community_pool = 4 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } // Params holds parameters for the mint module. @@ -59,33 +45,22 @@ message Params { // type of coin to mint string mint_denom = 1; // maximum annual change in inflation rate - string inflation_rate_change = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string inflation_rate_change = 2 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // maximum inflation rate - string inflation_max = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string inflation_max = 3 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // minimum inflation rate - string inflation_min = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string inflation_min = 4 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // goal of percent bonded atoms - string goal_bonded = 5 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false - ]; + string goal_bonded = 5 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // expected blocks per year uint64 blocks_per_year = 6; // distribution_proportions defines the proportion of the minted denom - DistributionProportions distribution_proportions = 7 - [ (gogoproto.nullable) = false ]; + DistributionProportions distribution_proportions = 7 [(gogoproto.nullable) = false]; // address to receive developer rewards - repeated WeightedAddress development_fund_recipients = 8 [ - (gogoproto.nullable) = false - ]; + repeated WeightedAddress development_fund_recipients = 8 [(gogoproto.nullable) = false]; } diff --git a/proto/monitoringc/genesis.proto b/proto/monitoringc/genesis.proto index 1b7f7393f..18b27aa17 100644 --- a/proto/monitoringc/genesis.proto +++ b/proto/monitoringc/genesis.proto @@ -14,12 +14,12 @@ option go_package = "github.com/tendermint/spn/x/monitoringc/types"; // GenesisState defines the monitoringc module's genesis state. message GenesisState { - string port_id = 1; - repeated VerifiedClientID verifiedClientIDList = 2 [(gogoproto.nullable) = false]; - repeated ProviderClientID providerClientIDList = 3 [(gogoproto.nullable) = false]; + string port_id = 1; + repeated VerifiedClientID verifiedClientIDList = 2 [(gogoproto.nullable) = false]; + repeated ProviderClientID providerClientIDList = 3 [(gogoproto.nullable) = false]; repeated LaunchIDFromVerifiedClientID launchIDFromVerifiedClientIDList = 4 [(gogoproto.nullable) = false]; - repeated LaunchIDFromChannelID launchIDFromChannelIDList = 5 [(gogoproto.nullable) = false]; - repeated MonitoringHistory monitoringHistoryList = 6 [(gogoproto.nullable) = false]; - Params params = 7 [(gogoproto.nullable) = false]; + repeated LaunchIDFromChannelID launchIDFromChannelIDList = 5 [(gogoproto.nullable) = false]; + repeated MonitoringHistory monitoringHistoryList = 6 [(gogoproto.nullable) = false]; + Params params = 7 [(gogoproto.nullable) = false]; // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/monitoringc/launch_id_from_channel_id.proto b/proto/monitoringc/launch_id_from_channel_id.proto index 095930869..753e44da0 100644 --- a/proto/monitoringc/launch_id_from_channel_id.proto +++ b/proto/monitoringc/launch_id_from_channel_id.proto @@ -5,5 +5,5 @@ option go_package = "github.com/tendermint/spn/x/monitoringc/types"; message LaunchIDFromChannelID { string channelID = 1; - uint64 launchID = 2; + uint64 launchID = 2; } diff --git a/proto/monitoringc/monitoring_history.proto b/proto/monitoringc/monitoring_history.proto index 9321ad075..24db11532 100644 --- a/proto/monitoringc/monitoring_history.proto +++ b/proto/monitoringc/monitoring_history.proto @@ -7,6 +7,6 @@ import "types/monitoring.proto"; option go_package = "github.com/tendermint/spn/x/monitoringc/types"; message MonitoringHistory { - uint64 launchID = 1; + uint64 launchID = 1; tendermint.spn.types.MonitoringPacket latestMonitoringPacket = 2 [(gogoproto.nullable) = false]; } diff --git a/proto/monitoringc/query.proto b/proto/monitoringc/query.proto index 160d7007c..9bedad580 100644 --- a/proto/monitoringc/query.proto +++ b/proto/monitoringc/query.proto @@ -74,8 +74,8 @@ message QueryAllProviderClientIDRequest { } message QueryAllProviderClientIDResponse { - repeated ProviderClientID providerClientID = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated ProviderClientID providerClientID = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetLaunchIDFromChannelIDRequest { @@ -91,8 +91,8 @@ message QueryAllLaunchIDFromChannelIDRequest { } message QueryAllLaunchIDFromChannelIDResponse { - repeated LaunchIDFromChannelID launchIDFromChannelID = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated LaunchIDFromChannelID launchIDFromChannelID = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetMonitoringHistoryRequest { diff --git a/proto/monitoringc/tx.proto b/proto/monitoringc/tx.proto index 922d7540c..8c9fefdfe 100644 --- a/proto/monitoringc/tx.proto +++ b/proto/monitoringc/tx.proto @@ -15,12 +15,12 @@ service Msg { } message MsgCreateClient { - string creator = 1; - uint64 launchID = 2; - tendermint.spn.types.ConsensusState consensusState = 3 [(gogoproto.nullable) = false]; - tendermint.spn.types.ValidatorSet validatorSet = 4 [(gogoproto.nullable) = false]; - int64 unbondingPeriod = 5; - uint64 revisionHeight = 6; + string creator = 1; + uint64 launchID = 2; + tendermint.spn.types.ConsensusState consensusState = 3 [(gogoproto.nullable) = false]; + tendermint.spn.types.ValidatorSet validatorSet = 4 [(gogoproto.nullable) = false]; + int64 unbondingPeriod = 5; + uint64 revisionHeight = 6; } message MsgCreateClientResponse { diff --git a/proto/monitoringc/verified_client_id.proto b/proto/monitoringc/verified_client_id.proto index 69bb4da71..f4d7f582d 100644 --- a/proto/monitoringc/verified_client_id.proto +++ b/proto/monitoringc/verified_client_id.proto @@ -4,6 +4,6 @@ package tendermint.spn.monitoringc; option go_package = "github.com/tendermint/spn/x/monitoringc/types"; message VerifiedClientID { - uint64 launchID = 1; + uint64 launchID = 1; repeated string clientIDs = 2; } diff --git a/proto/monitoringp/genesis.proto b/proto/monitoringp/genesis.proto index 5f5c70401..b8defdce0 100644 --- a/proto/monitoringp/genesis.proto +++ b/proto/monitoringp/genesis.proto @@ -12,10 +12,10 @@ option go_package = "github.com/tendermint/spn/x/monitoringp/types"; // GenesisState defines the monitoringp module's genesis state. message GenesisState { - string port_id = 1; - ConsumerClientID consumerClientID = 2; + string port_id = 1; + ConsumerClientID consumerClientID = 2; ConnectionChannelID connectionChannelID = 3; - MonitoringInfo monitoringInfo = 4; - Params params = 5 [(gogoproto.nullable) = false]; + MonitoringInfo monitoringInfo = 4; + Params params = 5 [(gogoproto.nullable) = false]; // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/monitoringp/monitoring_info.proto b/proto/monitoringp/monitoring_info.proto index a6d71792e..5f6e5229c 100644 --- a/proto/monitoringp/monitoring_info.proto +++ b/proto/monitoringp/monitoring_info.proto @@ -7,6 +7,6 @@ import "types/monitoring.proto"; option go_package = "github.com/tendermint/spn/x/monitoringp/types"; message MonitoringInfo { - bool transmitted = 1; + bool transmitted = 1; tendermint.spn.types.SignatureCounts signatureCounts = 2 [(gogoproto.nullable) = false]; } diff --git a/proto/monitoringp/params.proto b/proto/monitoringp/params.proto index 2d3e5d4fa..59d112cde 100644 --- a/proto/monitoringp/params.proto +++ b/proto/monitoringp/params.proto @@ -10,9 +10,9 @@ option go_package = "github.com/tendermint/spn/x/monitoringp/types"; message Params { option (gogoproto.goproto_stringer) = false; - int64 lastBlockHeight = 1; - string consumerChainID = 2; - tendermint.spn.types.ConsensusState consumerConsensusState = 3 [(gogoproto.nullable) = false]; - int64 consumerUnbondingPeriod = 4; - uint64 consumerRevisionHeight = 5; + int64 lastBlockHeight = 1; + string consumerChainID = 2; + tendermint.spn.types.ConsensusState consumerConsensusState = 3 [(gogoproto.nullable) = false]; + int64 consumerUnbondingPeriod = 4; + uint64 consumerRevisionHeight = 5; } diff --git a/proto/participation/auction_used_allocations.proto b/proto/participation/auction_used_allocations.proto index ac14ca04f..9df7fd521 100644 --- a/proto/participation/auction_used_allocations.proto +++ b/proto/participation/auction_used_allocations.proto @@ -7,11 +7,9 @@ option go_package = "github.com/tendermint/spn/x/participation/types"; // Allocations used by a user for a specific auction message AuctionUsedAllocations { - string address = 1; - uint64 auctionID = 2; - bool withdrawn = 3; - string numAllocations = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; + string address = 1; + uint64 auctionID = 2; + bool withdrawn = 3; + string numAllocations = 4 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } diff --git a/proto/participation/events.proto b/proto/participation/events.proto index 05884b37c..736ccda97 100644 --- a/proto/participation/events.proto +++ b/proto/participation/events.proto @@ -6,15 +6,13 @@ import "gogoproto/gogo.proto"; option go_package = "github.com/tendermint/spn/x/participation/types"; message EventAllocationsUsed { - string participant = 1; - uint64 auctionID = 2; - string numAllocations = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; + string participant = 1; + uint64 auctionID = 2; + string numAllocations = 3 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } message EventAllocationsWithdrawn { string participant = 1; - uint64 auctionID = 2; + uint64 auctionID = 2; } \ No newline at end of file diff --git a/proto/participation/genesis.proto b/proto/participation/genesis.proto index 3f6338509..2648839f0 100644 --- a/proto/participation/genesis.proto +++ b/proto/participation/genesis.proto @@ -11,8 +11,8 @@ option go_package = "github.com/tendermint/spn/x/participation/types"; // GenesisState defines the participation module's genesis state. message GenesisState { - repeated UsedAllocations usedAllocationsList = 1 [(gogoproto.nullable) = false]; + repeated UsedAllocations usedAllocationsList = 1 [(gogoproto.nullable) = false]; repeated AuctionUsedAllocations auctionUsedAllocationsList = 2 [(gogoproto.nullable) = false]; - Params params = 3 [(gogoproto.nullable) = false]; + Params params = 3 [(gogoproto.nullable) = false]; // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/participation/params.proto b/proto/participation/params.proto index 839a88e33..6bc9558db 100644 --- a/proto/participation/params.proto +++ b/proto/participation/params.proto @@ -10,8 +10,8 @@ option go_package = "github.com/tendermint/spn/x/participation/types"; message Params { option (gogoproto.goproto_stringer) = false; - AllocationPrice allocationPrice = 1 [(gogoproto.nullable) = false]; - repeated Tier participationTierList = 2 [(gogoproto.nullable) = false]; + AllocationPrice allocationPrice = 1 [(gogoproto.nullable) = false]; + repeated Tier participationTierList = 2 [(gogoproto.nullable) = false]; // Time frame before auction starts where MsgParticipate can be called google.protobuf.Duration registrationPeriod = 3 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true]; // Delay after auction starts when allocations can be withdrawn @@ -20,26 +20,19 @@ message Params { message AllocationPrice { // number of bonded tokens necessary to get one allocation - string bonded = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; + string bonded = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } // Matches a number of required allocations with benefits message Tier { - uint64 tierID = 1; - string requiredAllocations = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; + uint64 tierID = 1; + string requiredAllocations = 2 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; TierBenefits benefits = 3 [(gogoproto.nullable) = false]; } message TierBenefits { // maximum amount an auction participant can bid - string maxBidAmount = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; + string maxBidAmount = 1 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } diff --git a/proto/participation/query.proto b/proto/participation/query.proto index d44607fb6..53c910f94 100644 --- a/proto/participation/query.proto +++ b/proto/participation/query.proto @@ -29,7 +29,8 @@ service Query { } // Queries a list of AuctionUsedAllocations items. - rpc AuctionUsedAllocationsAll(QueryAllAuctionUsedAllocationsRequest) returns (QueryAllAuctionUsedAllocationsResponse) { + rpc AuctionUsedAllocationsAll(QueryAllAuctionUsedAllocationsRequest) + returns (QueryAllAuctionUsedAllocationsResponse) { option (google.api.http).get = "/tendermint/spn/participation/auction_used_allocations/{address}"; } @@ -64,12 +65,12 @@ message QueryAllUsedAllocationsRequest { } message QueryAllUsedAllocationsResponse { - repeated UsedAllocations usedAllocations = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated UsedAllocations usedAllocations = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetAuctionUsedAllocationsRequest { - string address = 1; + string address = 1; uint64 auctionID = 2; } @@ -78,13 +79,13 @@ message QueryGetAuctionUsedAllocationsResponse { } message QueryAllAuctionUsedAllocationsRequest { - string address = 1; + string address = 1; cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryAllAuctionUsedAllocationsResponse { - repeated AuctionUsedAllocations auctionUsedAllocations = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated AuctionUsedAllocations auctionUsedAllocations = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetTotalAllocationsRequest { @@ -92,10 +93,8 @@ message QueryGetTotalAllocationsRequest { } message QueryGetTotalAllocationsResponse { - string totalAllocations = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; + string totalAllocations = 1 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } message QueryGetAvailableAllocationsRequest { @@ -103,10 +102,8 @@ message QueryGetAvailableAllocationsRequest { } message QueryGetAvailableAllocationsResponse { - string availableAllocations = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; + string availableAllocations = 1 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } // QueryParamsRequest is request type for the Query/Params RPC method. diff --git a/proto/participation/tx.proto b/proto/participation/tx.proto index cfaafcfb4..af305bf0f 100644 --- a/proto/participation/tx.proto +++ b/proto/participation/tx.proto @@ -14,15 +14,15 @@ service Msg { message MsgParticipate { string participant = 1; - uint64 auctionID = 2; - uint64 tierID = 3; + uint64 auctionID = 2; + uint64 tierID = 3; } message MsgParticipateResponse {} message MsgWithdrawAllocations { string participant = 1; - uint64 auctionID = 2; + uint64 auctionID = 2; } message MsgWithdrawAllocationsResponse {} diff --git a/proto/participation/used_allocations.proto b/proto/participation/used_allocations.proto index afb5b49d7..57bd90f30 100644 --- a/proto/participation/used_allocations.proto +++ b/proto/participation/used_allocations.proto @@ -7,9 +7,7 @@ option go_package = "github.com/tendermint/spn/x/participation/types"; // Describes the number of allocations already used by a user for existing auctions message UsedAllocations { - string address = 1; - string numAllocations = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; + string address = 1; + string numAllocations = 2 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } diff --git a/proto/profile/coordinator.proto b/proto/profile/coordinator.proto index ab639d006..6647fa403 100644 --- a/proto/profile/coordinator.proto +++ b/proto/profile/coordinator.proto @@ -6,19 +6,19 @@ option go_package = "github.com/tendermint/spn/x/profile/types"; import "gogoproto/gogo.proto"; message Coordinator { - uint64 coordinatorID = 1; - string address = 2; - CoordinatorDescription description = 3 [(gogoproto.nullable) = false]; - bool active = 4; + uint64 coordinatorID = 1; + string address = 2; + CoordinatorDescription description = 3 [(gogoproto.nullable) = false]; + bool active = 4; } message CoordinatorDescription { string identity = 1; - string website = 2; - string details = 3; + string website = 2; + string details = 3; } message CoordinatorByAddress { - string address = 1; + string address = 1; uint64 coordinatorID = 2; } diff --git a/proto/profile/events.proto b/proto/profile/events.proto index 0a14bbd7c..9f35d75dc 100644 --- a/proto/profile/events.proto +++ b/proto/profile/events.proto @@ -5,30 +5,29 @@ import "gogoproto/gogo.proto"; import "profile/coordinator.proto"; import "profile/validator.proto"; - option go_package = "github.com/tendermint/spn/x/profile/types"; message EventCoordinatorCreated { uint64 coordinatorID = 1; - string address = 2; + string address = 2; } message EventCoordinatorAddressUpdated { uint64 coordinatorID = 1; - string newAddress = 2; + string newAddress = 2; } message EventCoordinatorDisabled { uint64 coordinatorID = 1; - string address = 2; + string address = 2; } message EventValidatorCreated { - string address = 1; + string address = 1; repeated string operatorAddresses = 2; } message EventValidatorOperatorAddressesUpdated { - string address = 1; + string address = 1; repeated string operatorAddresses = 2; } \ No newline at end of file diff --git a/proto/profile/genesis.proto b/proto/profile/genesis.proto index 483a4d703..6d4ed7af5 100644 --- a/proto/profile/genesis.proto +++ b/proto/profile/genesis.proto @@ -10,10 +10,10 @@ option go_package = "github.com/tendermint/spn/x/profile/types"; // GenesisState defines the profile module's genesis state. message GenesisState { - repeated Validator validatorList = 1 [(gogoproto.nullable) = false]; + repeated Validator validatorList = 1 [(gogoproto.nullable) = false]; repeated ValidatorByOperatorAddress validatorByOperatorAddressList = 2 [(gogoproto.nullable) = false]; - repeated Coordinator coordinatorList = 3 [(gogoproto.nullable) = false]; - uint64 coordinatorCounter = 4; - repeated CoordinatorByAddress coordinatorByAddressList = 5 [(gogoproto.nullable) = false]; + repeated Coordinator coordinatorList = 3 [(gogoproto.nullable) = false]; + uint64 coordinatorCounter = 4; + repeated CoordinatorByAddress coordinatorByAddressList = 5 [(gogoproto.nullable) = false]; // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/profile/query.proto b/proto/profile/query.proto index bc54fe3a3..cecd8a982 100644 --- a/proto/profile/query.proto +++ b/proto/profile/query.proto @@ -25,7 +25,8 @@ service Query { } // Queries a ValidatorByConsAddress by consensus address. - rpc ValidatorByOperatorAddress(QueryGetValidatorByOperatorAddressRequest) returns (QueryGetValidatorByOperatorAddressResponse) { + rpc ValidatorByOperatorAddress(QueryGetValidatorByOperatorAddressRequest) + returns (QueryGetValidatorByOperatorAddressResponse) { option (google.api.http).get = "/tendermint/spn/profile/validator_by_operator_address/{operatorAddress}"; } @@ -60,7 +61,7 @@ message QueryAllValidatorRequest { } message QueryAllValidatorResponse { - repeated Validator validator = 1 [(gogoproto.nullable) = false]; + repeated Validator validator = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -85,8 +86,8 @@ message QueryAllCoordinatorRequest { } message QueryAllCoordinatorResponse { - repeated Coordinator coordinator = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated Coordinator coordinator = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryGetCoordinatorByAddressRequest { diff --git a/proto/profile/tx.proto b/proto/profile/tx.proto index 8b77c240e..5adb043b4 100644 --- a/proto/profile/tx.proto +++ b/proto/profile/tx.proto @@ -20,7 +20,7 @@ service Msg { } message MsgUpdateValidatorDescription { - string address = 1; + string address = 1; ValidatorDescription description = 2 [(gogoproto.nullable) = false]; } @@ -28,13 +28,13 @@ message MsgUpdateValidatorDescriptionResponse {} message MsgAddValidatorOperatorAddress { string validatorAddress = 1; - string operatorAddress = 2; + string operatorAddress = 2; } message MsgAddValidatorOperatorAddressResponse {} message MsgCreateCoordinator { - string address = 1; + string address = 1; CoordinatorDescription description = 2 [(gogoproto.nullable) = false]; } @@ -43,14 +43,14 @@ message MsgCreateCoordinatorResponse { } message MsgUpdateCoordinatorDescription { - string address = 1; + string address = 1; CoordinatorDescription description = 2 [(gogoproto.nullable) = false]; } message MsgUpdateCoordinatorDescriptionResponse {} message MsgUpdateCoordinatorAddress { - string address = 1; + string address = 1; string newAddress = 2; } diff --git a/proto/profile/validator.proto b/proto/profile/validator.proto index fcb3542c4..214fcadc0 100644 --- a/proto/profile/validator.proto +++ b/proto/profile/validator.proto @@ -6,20 +6,20 @@ option go_package = "github.com/tendermint/spn/x/profile/types"; import "gogoproto/gogo.proto"; message Validator { - string address = 1; - repeated string operatorAddresses = 2; - ValidatorDescription description = 3 [(gogoproto.nullable) = false]; + string address = 1; + repeated string operatorAddresses = 2; + ValidatorDescription description = 3 [(gogoproto.nullable) = false]; } message ValidatorDescription { - string identity = 1; - string moniker = 2; - string website = 3; + string identity = 1; + string moniker = 2; + string website = 3; string securityContact = 4; - string details = 5; + string details = 5; } message ValidatorByOperatorAddress { - string operatorAddress = 1; + string operatorAddress = 1; string validatorAddress = 2; } diff --git a/proto/reward/events.proto b/proto/reward/events.proto index 5e5f9992e..b0b0e0ad7 100644 --- a/proto/reward/events.proto +++ b/proto/reward/events.proto @@ -17,11 +17,11 @@ message EventRewardPoolRemoved { } message EventRewardsDistributed { - uint64 launchID = 1; - string receiver = 2; + uint64 launchID = 1; + string receiver = 2; repeated cosmos.base.v1beta1.Coin rewards = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } \ No newline at end of file diff --git a/proto/reward/genesis.proto b/proto/reward/genesis.proto index 6d063c5f3..cf8bcc1bd 100644 --- a/proto/reward/genesis.proto +++ b/proto/reward/genesis.proto @@ -11,6 +11,6 @@ option go_package = "github.com/tendermint/spn/x/reward/types"; // GenesisState defines the reward module's genesis state. message GenesisState { repeated RewardPool rewardPoolList = 1 [(gogoproto.nullable) = false]; - Params params = 2 [(gogoproto.nullable) = false]; + Params params = 2 [(gogoproto.nullable) = false]; // this line is used by starport scaffolding # genesis/proto/state } diff --git a/proto/reward/query.proto b/proto/reward/query.proto index 87cebea41..24b53e638 100644 --- a/proto/reward/query.proto +++ b/proto/reward/query.proto @@ -44,7 +44,7 @@ message QueryAllRewardPoolRequest { } message QueryAllRewardPoolResponse { - repeated RewardPool rewardPool = 1 [(gogoproto.nullable) = false]; + repeated RewardPool rewardPool = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/proto/reward/reward_pool.proto b/proto/reward/reward_pool.proto index 5610dd116..95a357990 100644 --- a/proto/reward/reward_pool.proto +++ b/proto/reward/reward_pool.proto @@ -7,19 +7,19 @@ import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/tendermint/spn/x/reward/types"; message RewardPool { - uint64 launchID = 1; - string provider = 2; + uint64 launchID = 1; + string provider = 2; repeated cosmos.base.v1beta1.Coin initialCoins = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; repeated cosmos.base.v1beta1.Coin remainingCoins = 4 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; - int64 lastRewardHeight = 5; + int64 lastRewardHeight = 5; int64 currentRewardHeight = 6; - bool closed = 7; + bool closed = 7; } diff --git a/proto/reward/tx.proto b/proto/reward/tx.proto index 0ab00e0d7..dfc57c7c4 100644 --- a/proto/reward/tx.proto +++ b/proto/reward/tx.proto @@ -14,11 +14,11 @@ service Msg { } message MsgSetRewards { - string provider = 1; - uint64 launchID = 2; + string provider = 1; + uint64 launchID = 2; repeated cosmos.base.v1beta1.Coin coins = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; int64 lastRewardHeight = 4; @@ -26,14 +26,14 @@ message MsgSetRewards { message MsgSetRewardsResponse { repeated cosmos.base.v1beta1.Coin previousCoins = 1 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; - int64 previousLastRewardHeight = 2; + int64 previousLastRewardHeight = 2; repeated cosmos.base.v1beta1.Coin newCoins = 3 [ - (gogoproto.nullable) = false, - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", + (gogoproto.nullable) = false, + (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; int64 newLastRewardHeight = 4; diff --git a/proto/types/ibc.proto b/proto/types/ibc.proto index 3fd90747f..75e246681 100644 --- a/proto/types/ibc.proto +++ b/proto/types/ibc.proto @@ -13,23 +13,22 @@ message MerkleRoot { // ConsensusState represents a Consensus State // it is compatible with the dumped state from `appd q ibc client self-consensus-state` command message ConsensusState { - string nextValidatorsHash = 1; - string timestamp = 2; - MerkleRoot root = 3 [(gogoproto.nullable) = false]; + string nextValidatorsHash = 1; + string timestamp = 2; + MerkleRoot root = 3 [(gogoproto.nullable) = false]; } - // PubKey represents a public key in Validator message PubKey { - string type = 1; + string type = 1; string value = 2; } // Validator represents a validator in ValSet message Validator { string proposerPriority = 1; - string votingPower = 2; - PubKey pubKey = 3 [(gogoproto.nullable) = false]; + string votingPower = 2; + PubKey pubKey = 3 [(gogoproto.nullable) = false]; } // ValidatorSet represents a Validator Set diff --git a/proto/types/monitoring.proto b/proto/types/monitoring.proto index 31707d937..f54f86db5 100644 --- a/proto/types/monitoring.proto +++ b/proto/types/monitoring.proto @@ -14,29 +14,24 @@ message MonitoringPacketData { } // MonitoringPacketAck defines a struct for the packet acknowledgment -message MonitoringPacketAck { -} +message MonitoringPacketAck {} // MonitoringPacket is the packet sent over IBC that contains all the signature counts message MonitoringPacket { - int64 blockHeight = 1; + int64 blockHeight = 1; SignatureCounts signatureCounts = 2 [(gogoproto.nullable) = false]; } - // SignatureCounts contains information about signature reporting for a number of blocks message SignatureCounts { - uint64 blockCount = 1; - repeated SignatureCount counts = 2 [(gogoproto.nullable) = false]; + uint64 blockCount = 1; + repeated SignatureCount counts = 2 [(gogoproto.nullable) = false]; } - // SignatureCount contains information of signature reporting for one specific validator with consensus address // RelativeSignatures is the sum of all signatures relative to the validator set size message SignatureCount { - string opAddress = 1; - string RelativeSignatures = 2 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec" - ]; + string opAddress = 1; + string RelativeSignatures = 2 + [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; } From 9cc331783099d290bb53115e8c822816e48d86e4 Mon Sep 17 00:00:00 2001 From: aljo242 Date: Sun, 31 Jul 2022 14:55:48 -0400 Subject: [PATCH 5/5] make proto-gen --- go.mod | 2 +- x/campaign/types/query.pb.gw.go | 20 ++++++++++---------- x/claim/types/query.pb.gw.go | 14 +++++++------- x/launch/types/query.pb.gw.go | 22 +++++++++++----------- x/mint/types/query.pb.gw.go | 6 +++--- x/monitoringc/types/query.pb.gw.go | 14 +++++++------- x/monitoringp/types/query.pb.gw.go | 8 ++++---- x/participation/types/params.pb.go | 2 +- x/participation/types/query.pb.gw.go | 14 +++++++------- x/profile/types/query.pb.gw.go | 12 ++++++------ x/reward/types/query.pb.gw.go | 6 +++--- 11 files changed, 60 insertions(+), 60 deletions(-) diff --git a/go.mod b/go.mod index fd3aef4e9..1d60ae040 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,6 @@ require ( github.com/tendermint/tm-db v0.6.7 google.golang.org/genproto v0.0.0-20220719170305-83ca9fad585f google.golang.org/grpc v1.48.0 - google.golang.org/protobuf v1.28.0 gopkg.in/yaml.v2 v2.4.0 ) @@ -145,6 +144,7 @@ require ( golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect google.golang.org/api v0.84.0 // indirect google.golang.org/appengine v1.6.7 // indirect + google.golang.org/protobuf v1.28.0 // indirect gopkg.in/ini.v1 v1.66.6 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect nhooyr.io/websocket v1.8.6 // indirect diff --git a/x/campaign/types/query.pb.gw.go b/x/campaign/types/query.pb.gw.go index 4782e8508..259d200dc 100644 --- a/x/campaign/types/query.pb.gw.go +++ b/x/campaign/types/query.pb.gw.go @@ -1044,25 +1044,25 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Campaign_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"tendermint", "spn", "campaign", "campaignID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Campaign_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"tendermint", "spn", "campaign", "campaignID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_CampaignAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 2}, []string{"tendermint", "spn", "campaign"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_CampaignAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 2}, []string{"tendermint", "spn", "campaign"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_CampaignChains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "campaign", "campaign_chains", "campaignID"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_CampaignChains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"tendermint", "spn", "campaign", "campaign_chains", "campaignID"}, "", 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", "campaign", "special_allocations_balance", "campaignID"}, "", 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", "campaign", "special_allocations_balance", "campaignID"}, "", 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", "campaign", "mainnet_account", "campaignID", "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", "campaign", "mainnet_account", "campaignID", "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", "campaign", "mainnet_account", "campaignID"}, "", 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", "campaign", "mainnet_account", "campaignID"}, "", 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", "campaign", "mainnet_account_balance", "campaignID", "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", "campaign", "mainnet_account_balance", "campaignID", "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", "campaign", "mainnet_account_balance", "campaignID"}, "", 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", "campaign", "mainnet_account_balance", "campaignID"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "campaign", "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", "campaign", "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", "campaign", "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", "campaign", "total_shares"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/claim/types/query.pb.gw.go b/x/claim/types/query.pb.gw.go index 149503c0f..dae6ccaa8 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{"tendermint", "spn", "claim", "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", "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{"tendermint", "spn", "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{"tendermint", "spn", "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{"tendermint", "spn", "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{"tendermint", "spn", "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{"tendermint", "spn", "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{"tendermint", "spn", "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{"tendermint", "spn", "claim", "mission"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MissionAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "claim", "mission"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AirdropSupply_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"tendermint", "spn", "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{"tendermint", "spn", "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{"tendermint", "spn", "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{"tendermint", "spn", "claim", "initial_claim"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/launch/types/query.pb.gw.go b/x/launch/types/query.pb.gw.go index 28f958881..4121ee6a8 100644 --- a/x/launch/types/query.pb.gw.go +++ b/x/launch/types/query.pb.gw.go @@ -1257,27 +1257,27 @@ 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_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/mint/types/query.pb.gw.go b/x/mint/types/query.pb.gw.go index c13ea6278..b1438cf39 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 ( diff --git a/x/monitoringc/types/query.pb.gw.go b/x/monitoringc/types/query.pb.gw.go index e1f4a5939..ea021a4ea 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 771fdf2b8..0ac000cce 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/params.pb.go b/x/participation/types/params.pb.go index 82ce1431f..f28e78639 100644 --- a/x/participation/types/params.pb.go +++ b/x/participation/types/params.pb.go @@ -8,8 +8,8 @@ import ( github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "google.golang.org/protobuf/types/known/durationpb" io "io" math "math" math_bits "math/bits" diff --git a/x/participation/types/query.pb.gw.go b/x/participation/types/query.pb.gw.go index f75c1b7c8..740bad402 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 4959c627b..efdf923a3 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/reward/types/query.pb.gw.go b/x/reward/types/query.pb.gw.go index af753271f..69d9a6377 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 (