Skip to content

Commit

Permalink
rebuild protos now that we refer to v4 (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat authored Dec 5, 2022
1 parent 29e70d6 commit 9d83474
Show file tree
Hide file tree
Showing 74 changed files with 794 additions and 797 deletions.
2 changes: 1 addition & 1 deletion proto/stride/claim/claim.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stride.claim;

import "gogoproto/gogo.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/claim/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/claim/types";

enum Action {
option (gogoproto.goproto_enum_prefix) = false;
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/claim/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "stride/claim/claim.proto";
import "stride/claim/params.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/claim/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/claim/types";

// GenesisState defines the claim module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/claim/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/claim/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/claim/types";

// Params defines the claim module's parameters.
message Params { repeated Airdrop airdrops = 1; }
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/claim/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "stride/claim/claim.proto";
import "stride/claim/params.proto";
import "stride/vesting/vesting.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/claim/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/claim/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/claim/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package stride.claim;
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/claim/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/claim/types";

// Msg defines the Msg service.
service Msg {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/epochs/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/epochs/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/epochs/types";

message EpochInfo {
string identifier = 1;
Expand Down
4 changes: 2 additions & 2 deletions proto/stride/epochs/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "stride/epochs/genesis.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/epochs/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/epochs/types";

// Query defines the gRPC querier service.
service Query {
Expand Down Expand Up @@ -51,7 +51,7 @@ message QueryEpochInfoResponse {
// import "epochs/params.proto";
// // this line is used by starport scaffolding # 1

// option go_package = "github.com/Stride-Labs/stride/v3/x/epochs/types";
// option go_package = "github.com/Stride-Labs/stride/v4/x/epochs/types";

// // Query defines the gRPC querier service.
// service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/icacallbacks/callback_data.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package stride.icacallbacks;

option go_package = "github.com/Stride-Labs/stride/v3/x/icacallbacks/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/icacallbacks/types";

message CallbackData {
string callback_key = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/icacallbacks/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "stride/icacallbacks/params.proto";
import "stride/icacallbacks/callback_data.proto";
// this line is used by starport scaffolding # genesis/proto/import

option go_package = "github.com/Stride-Labs/stride/v3/x/icacallbacks/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/icacallbacks/types";

// GenesisState defines the icacallbacks module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/icacallbacks/packet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stride.icacallbacks;

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

option go_package = "github.com/Stride-Labs/stride/v3/x/icacallbacks/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/icacallbacks/types";

message IcacallbacksPacketData {
oneof packet {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/icacallbacks/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stride.icacallbacks;

import "gogoproto/gogo.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/icacallbacks/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/icacallbacks/types";

// Params defines the parameters for the module.
message Params { option (gogoproto.goproto_stringer) = false; }
2 changes: 1 addition & 1 deletion proto/stride/icacallbacks/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "stride/icacallbacks/params.proto";
import "stride/icacallbacks/callback_data.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/Stride-Labs/stride/v3/x/icacallbacks/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/icacallbacks/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/icacallbacks/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stride.icacallbacks;

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

option go_package = "github.com/Stride-Labs/stride/v3/x/icacallbacks/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/icacallbacks/types";

// Msg defines the Msg service.
service Msg {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/interchainquery/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package stride.interchainquery.v1;
import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/interchainquery/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/interchainquery/types";

message Query {
string id = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/interchainquery/v1/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "google/api/annotations.proto";
import "tendermint/crypto/proof.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/interchainquery/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/interchainquery/types";

// Msg defines the interchainquery Msg service.
service Msg {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/mint/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package stride.mint.v1beta1;
import "gogoproto/gogo.proto";
import "stride/mint/v1beta1/mint.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/mint/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/mint/types";

// GenesisState defines the mint module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/mint/v1beta1/mint.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package stride.mint.v1beta1;

option go_package = "github.com/Stride-Labs/stride/v3/x/mint/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/mint/types";

import "gogoproto/gogo.proto";

Expand Down
2 changes: 1 addition & 1 deletion proto/stride/mint/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "stride/mint/v1beta1/mint.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/mint/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/mint/types";

// Query provides defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/records/callbacks.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package stride.records;
option go_package = "github.com/Stride-Labs/stride/v3/x/records/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/records/types";

// ---------------------- Transfer Callback ---------------------- //
message TransferCallback { uint64 deposit_record_id = 1; }
2 changes: 1 addition & 1 deletion proto/stride/records/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";

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

option go_package = "github.com/Stride-Labs/stride/v3/x/records/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/records/types";

message UserRedemptionRecord {
string id = 1; // {chain_id}.{epoch}.{sender}
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/records/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "cosmos/base/query/v1beta1/pagination.proto";
import "stride/records/genesis.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/Stride-Labs/stride/v3/x/records/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/records/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/callbacks.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package stride.stakeibc;
option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";

Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/delegation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stride.stakeibc;

import "stride/stakeibc/validator.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

message Delegation {
string delegate_acct_address = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/epoch_tracker.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package stride.stakeibc;

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

message EpochTracker {
string epoch_identifier = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "stride/stakeibc/host_zone.proto";
import "stride/stakeibc/epoch_tracker.proto";
// this line is used by starport scaffolding # genesis/proto/import

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

// GenesisState defines the stakeibc module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/gov.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";
package stride.stakeibc;
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

message AddValidatorProposal {
option (gogoproto.equal) = true;
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/host_zone.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "stride/stakeibc/ica_account.proto";
import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

// next id: 19
message HostZone {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/ica_account.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package stride.stakeibc;
import "stride/stakeibc/delegation.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

enum ICAAccountType {
DELEGATION = 0;
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/min_validator_requirements.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package stride.stakeibc;

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

message MinValidatorRequirements {
int32 commission_rate = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/packet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stride.stakeibc;

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

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

message StakeibcPacketData {
oneof packet {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package stride.stakeibc;

import "gogoproto/gogo.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

// Params defines the parameters for the module.
// next id: 18
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "stride/stakeibc/host_zone.proto";
import "stride/stakeibc/epoch_tracker.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package stride.stakeibc;
import "stride/stakeibc/ica_account.proto";
// this line is used by starport scaffolding # proto/tx/import

option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";
import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";

Expand Down
2 changes: 1 addition & 1 deletion proto/stride/stakeibc/validator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";
package stride.stakeibc;
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
option go_package = "github.com/Stride-Labs/stride/v3/x/stakeibc/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/stakeibc/types";

message ValidatorExchangeRate {
string internal_tokens_to_shares_rate = 1 [
Expand Down
2 changes: 1 addition & 1 deletion proto/stride/vesting/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package stride.vesting;

option go_package = "github.com/Stride-Labs/stride/v3/x/claim/vesting/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/claim/vesting/types";

// Msg defines the bank Msg service.
service Msg {}
2 changes: 1 addition & 1 deletion proto/stride/vesting/vesting.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos/auth/v1beta1/auth.proto";

option go_package = "github.com/Stride-Labs/stride/v3/x/claim/vesting/types";
option go_package = "github.com/Stride-Labs/stride/v4/x/claim/vesting/types";

// BaseVestingAccount implements the VestingAccount interface. It contains all
// the necessary fields needed for any vesting account implementation.
Expand Down
10 changes: 5 additions & 5 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ set -eo pipefail
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@v0.45.9 2>/dev/null
# go get github.com/cosmos/cosmos-sdk@v0.45.11 2>/dev/null

echo "Generating gogo proto code"
cd proto
proto_dirs=$(find ./stride -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
if grep go_package "$file" &>/dev/null; then
buf generate --template buf.gen.gogo.yaml "$file"
fi
done
done
Expand All @@ -24,5 +24,5 @@ cd ..
# move proto files to the right places
#
# Note: Proto files are suffixed with the current binary version.
cp -r github.com/Stride-Labs/stride/v3/* ./
rm -rf github.com
cp -r github.com/Stride-Labs/stride/v4/* ./
rm -rf github.com
Loading

0 comments on commit 9d83474

Please sign in to comment.