Skip to content

Commit

Permalink
chore: do some cleanup in proto files (tendermint#1002)
Browse files Browse the repository at this point in the history
* gomod

* remove protobuf

* protos

* more removal
  • Loading branch information
lumtis authored Dec 9, 2022
1 parent cbb7e55 commit 3760f9a
Show file tree
Hide file tree
Showing 34 changed files with 15 additions and 166 deletions.
8 changes: 0 additions & 8 deletions proto/buf.gen.gogo.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions proto/buf.gen.pulsar.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions proto/buf.lock

This file was deleted.

23 changes: 0 additions & 23 deletions proto/buf.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions proto/campaign/campaign.proto
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
syntax = "proto3";
package tendermint.spn.campaign;

option go_package = "github.com/tendermint/spn/x/campaign/types";

import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "campaign/special_allocations.proto";

option go_package = "github.com/tendermint/spn/x/campaign/types";

message Campaign {
uint64 campaignID = 1;
string campaignName = 2;
Expand Down
2 changes: 0 additions & 2 deletions proto/campaign/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
syntax = "proto3";
package tendermint.spn.campaign;

// this line is used by starport scaffolding # genesis/proto/import
import "gogoproto/gogo.proto";
import "campaign/campaign_chains.proto";
import "campaign/vesting.proto";
Expand All @@ -19,5 +18,4 @@ message GenesisState {
repeated MainnetAccount mainnetAccounts = 4 [(gogoproto.nullable) = false];
uint64 totalShares = 5;
Params params = 6 [(gogoproto.nullable) = false];
// this line is used by starport scaffolding # genesis/proto/state
}
5 changes: 0 additions & 5 deletions proto/campaign/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import "campaign/campaign.proto";
import "campaign/vesting.proto";
import "campaign/mainnet_account.proto";
import "campaign/params.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/tendermint/spn/x/campaign/types";

Expand Down Expand Up @@ -68,8 +67,6 @@ service Query {
rpc TotalShares(QueryTotalSharesRequest) returns (QueryTotalSharesResponse) {
option (google.api.http).get = "/tendermint/spn/campaign/total_shares";
}

// this line is used by starport scaffolding # 2
}

message QueryGetCampaignRequest {
Expand Down Expand Up @@ -165,5 +162,3 @@ message QueryTotalSharesRequest {}
message QueryTotalSharesResponse {
uint64 totalShares = 1;
}

// this line is used by starport scaffolding # 3
4 changes: 2 additions & 2 deletions proto/campaign/special_allocations.proto
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";
package tendermint.spn.campaign;

option go_package = "github.com/tendermint/spn/x/campaign/types";

import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/tendermint/spn/x/campaign/types";

message SpecialAllocations {
repeated cosmos.base.v1beta1.Coin genesisDistribution = 1 [
(gogoproto.nullable) = false,
Expand Down
4 changes: 0 additions & 4 deletions proto/campaign/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
syntax = "proto3";
package tendermint.spn.campaign;

// this line is used by starport scaffolding # proto/tx/import
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "campaign/vesting.proto";
Expand All @@ -20,7 +19,6 @@ 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
}

message MsgCreateCampaign {
Expand Down Expand Up @@ -127,5 +125,3 @@ message MsgUnredeemVouchers {
}

message MsgUnredeemVouchersResponse {}

// this line is used by starport scaffolding # proto/tx/message
4 changes: 2 additions & 2 deletions proto/campaign/vesting.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package tendermint.spn.campaign;

import "google/protobuf/timestamp.proto";

option go_package = "github.com/tendermint/spn/x/campaign/types";

import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/tendermint/spn/x/campaign/types";

message ShareVestingOptions {
oneof options {
ShareDelayedVesting delayedVesting = 1;
Expand Down
2 changes: 0 additions & 2 deletions proto/launch/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
syntax = "proto3";
package tendermint.spn.launch;

// this line is used by starport scaffolding # genesis/proto/import
import "gogoproto/gogo.proto";
import "launch/request.proto";
import "launch/vesting_account.proto";
Expand All @@ -14,7 +13,6 @@ 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 chains = 1 [(gogoproto.nullable) = false];
uint64 chainCounter = 2;
repeated GenesisAccount genesisAccounts = 3 [(gogoproto.nullable) = false];
Expand Down
4 changes: 2 additions & 2 deletions proto/launch/genesis_account.proto
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
syntax = "proto3";
package tendermint.spn.launch;

option go_package = "github.com/tendermint/spn/x/launch/types";

import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/tendermint/spn/x/launch/types";

message GenesisAccount {
uint64 launchID = 1;
string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
Expand Down
4 changes: 2 additions & 2 deletions proto/launch/genesis_validator.proto
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
syntax = "proto3";
package tendermint.spn.launch;

option go_package = "github.com/tendermint/spn/x/launch/types";

import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/tendermint/spn/x/launch/types";

message GenesisValidator {
uint64 launchID = 1;
string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
Expand Down
5 changes: 0 additions & 5 deletions proto/launch/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "cosmos_proto/cosmos.proto";

// this line is used by starport scaffolding # 1
import "launch/request.proto";
import "launch/vesting_account.proto";
import "launch/genesis_account.proto";
Expand All @@ -18,8 +17,6 @@ option go_package = "github.com/tendermint/spn/x/launch/types";

// Query defines the gRPC querier service.
service Query {
// this line is used by starport scaffolding # 2

// Queries a chain by index.
rpc Chain(QueryGetChainRequest) returns (QueryGetChainResponse) {
option (google.api.http).get = "/tendermint/spn/launch/chain/{launchID}";
Expand Down Expand Up @@ -187,5 +184,3 @@ message QueryAllParamChangeResponse {
repeated ParamChange paramChanges = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

// this line is used by starport scaffolding # 3
4 changes: 0 additions & 4 deletions proto/launch/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
syntax = "proto3";
package tendermint.spn.launch;

// this line is used by starport scaffolding # proto/tx/import
import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "cosmos/base/v1beta1/coin.proto";
Expand All @@ -14,7 +13,6 @@ option go_package = "github.com/tendermint/spn/x/launch/types";

// Msg defines the Msg service.
service Msg {
// this line is used by starport scaffolding # proto/tx/rpc
rpc CreateChain(MsgCreateChain) returns (MsgCreateChainResponse);
rpc EditChain(MsgEditChain) returns (MsgEditChainResponse);
rpc UpdateLaunchInformation(MsgUpdateLaunchInformation) returns (MsgUpdateLaunchInformationResponse);
Expand Down Expand Up @@ -99,5 +97,3 @@ message MsgRevertLaunch {
}

message MsgRevertLaunchResponse {}

// this line is used by starport scaffolding # proto/tx/message
2 changes: 0 additions & 2 deletions proto/monitoringc/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import "monitoringc/provider_client_id.proto";
import "monitoringc/launch_id_from_verified_client_id.proto";
import "monitoringc/launch_id_from_channel_id.proto";
import "monitoringc/monitoring_history.proto";
// this line is used by starport scaffolding # genesis/proto/import

option go_package = "github.com/tendermint/spn/x/monitoringc/types";

Expand All @@ -21,5 +20,4 @@ message GenesisState {
repeated LaunchIDFromChannelID launchIDsFromChannelID = 5 [(gogoproto.nullable) = false];
repeated MonitoringHistory monitoringHistories = 6 [(gogoproto.nullable) = false];
Params params = 7 [(gogoproto.nullable) = false];
// this line is used by starport scaffolding # genesis/proto/state
}
6 changes: 1 addition & 5 deletions proto/monitoringc/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ package tendermint.spn.monitoringc;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";

import "monitoringc/params.proto";
import "monitoringc/provider_client_id.proto";
import "monitoringc/launch_id_from_verified_client_id.proto";
import "monitoringc/launch_id_from_channel_id.proto";
import "monitoringc/monitoring_history.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/tendermint/spn/x/monitoringc/types";

Expand Down Expand Up @@ -49,8 +49,6 @@ service Query {
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/tendermint/spn/monitoringc/params";
}

// this line is used by starport scaffolding # 2
}

message QueryGetVerifiedClientIdsRequest {
Expand Down Expand Up @@ -110,5 +108,3 @@ message QueryParamsRequest {}
message QueryParamsResponse {
Params params = 1 [(gogoproto.nullable) = false];
}

// this line is used by starport scaffolding # 3
4 changes: 0 additions & 4 deletions proto/monitoringc/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
syntax = "proto3";
package tendermint.spn.monitoringc;

// this line is used by starport scaffolding # proto/tx/import
import "cosmos/base/query/v1beta1/pagination.proto";
import "gogoproto/gogo.proto";
import "types/ibc.proto";
Expand All @@ -11,7 +10,6 @@ option go_package = "github.com/tendermint/spn/x/monitoringc/types";
// Msg defines the Msg service.
service Msg {
rpc CreateClient(MsgCreateClient) returns (MsgCreateClientResponse);
// this line is used by starport scaffolding # proto/tx/rpc
}

message MsgCreateClient {
Expand All @@ -26,5 +24,3 @@ message MsgCreateClient {
message MsgCreateClientResponse {
string clientID = 1;
}

// this line is used by starport scaffolding # proto/tx/message
2 changes: 0 additions & 2 deletions proto/monitoringp/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import "monitoringp/params.proto";
import "monitoringp/consumer_client_id.proto";
import "monitoringp/connection_channel_id.proto";
import "monitoringp/monitoring_info.proto";
// this line is used by starport scaffolding # genesis/proto/import

option go_package = "github.com/tendermint/spn/x/monitoringp/types";

Expand All @@ -17,5 +16,4 @@ message GenesisState {
ConnectionChannelID connectionChannelID = 3;
MonitoringInfo monitoringInfo = 4;
Params params = 5 [(gogoproto.nullable) = false];
// this line is used by starport scaffolding # genesis/proto/state
}
5 changes: 0 additions & 5 deletions proto/monitoringp/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import "monitoringp/params.proto";
import "monitoringp/consumer_client_id.proto";
import "monitoringp/connection_channel_id.proto";
import "monitoringp/monitoring_info.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/tendermint/spn/x/monitoringp/types";

Expand All @@ -33,8 +32,6 @@ service Query {
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/tendermint/spn/monitoringp/params";
}

// this line is used by starport scaffolding # 2
}

message QueryGetConsumerClientIDRequest {}
Expand Down Expand Up @@ -62,5 +59,3 @@ message QueryParamsRequest {}
message QueryParamsResponse {
Params params = 1 [(gogoproto.nullable) = false];
}

// this line is used by starport scaffolding # 3
5 changes: 0 additions & 5 deletions proto/monitoringp/tx.proto
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
syntax = "proto3";
package tendermint.spn.monitoringp;

// this line is used by starport scaffolding # proto/tx/import

option go_package = "github.com/tendermint/spn/x/monitoringp/types";

// Msg defines the Msg service.
service Msg {
// this line is used by starport scaffolding # proto/tx/rpc
}

// this line is used by starport scaffolding # proto/tx/message
Loading

0 comments on commit 3760f9a

Please sign in to comment.