Skip to content

Commit

Permalink
more manual upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Aug 29, 2024
1 parent f0158da commit 774bb05
Show file tree
Hide file tree
Showing 66 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ linters-settings:
sections:
- standard
- default
- prefix(github.com/zeta-chain/zetacore)
- prefix(github.com/zeta-chain/node)
skip-generated: true

issues:
Expand Down
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.ClientName=zetaclientd
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .FullCommit }}
- -X github.com/zeta-chain/zetacore/pkg/constant.Name=zetacored
- -X github.com/zeta-chain/zetacore/pkg/constant.Version={{ .Version }}
- -X github.com/zeta-chain/zetacore/pkg/constant.CommitHash={{ .FullCommit }}
- -X github.com/zeta-chain/zetacore/pkg/constant.BuildTime={{ .Env.BUILDTIME }}
- -X github.com/zeta-chain/node/pkg/constant.Name=zetacored
- -X github.com/zeta-chain/node/pkg/constant.Version={{ .Version }}
- -X github.com/zeta-chain/node/pkg/constant.CommitHash={{ .FullCommit }}
- -X github.com/zeta-chain/node/pkg/constant.BuildTime={{ .Env.BUILDTIME }}
- -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb

- id: "zetaclientd"
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=zetacore \
-X github.com/cosmos/cosmos-sdk/version.ClientName=zetaclientd \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X github.com/zeta-chain/zetacore/pkg/constant.Name=zetacored \
-X github.com/zeta-chain/zetacore/pkg/constant.Version=$(VERSION) \
-X github.com/zeta-chain/zetacore/pkg/constant.CommitHash=$(COMMIT) \
-X github.com/zeta-chain/zetacore/pkg/constant.BuildTime=$(BUILDTIME) \
-X github.com/zeta-chain/node/pkg/constant.Name=zetacored \
-X github.com/zeta-chain/node/pkg/constant.Version=$(VERSION) \
-X github.com/zeta-chain/node/pkg/constant.CommitHash=$(COMMIT) \
-X github.com/zeta-chain/node/pkg/constant.BuildTime=$(BUILDTIME) \
-X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb

BUILD_FLAGS := -ldflags '$(ldflags)' -tags pebbledb,ledger
Expand Down
6 changes: 3 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ import (
// ibctypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types"
// ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
// ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"
// "github.com/zeta-chain/zetacore/x/ibccrosschain"
// ibccrosschainkeeper "github.com/zeta-chain/zetacore/x/ibccrosschain/keeper"
// ibccrosschaintypes "github.com/zeta-chain/zetacore/x/ibccrosschain/types"
// "github.com/zeta-chain/node/x/ibccrosschain"
// ibccrosschainkeeper "github.com/zeta-chain/node/x/ibccrosschain/keeper"
// ibccrosschaintypes "github.com/zeta-chain/node/x/ibccrosschain/types"

const Name = "zetacore"

Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/authority/authorization.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zetachain.zetacore.authority;
import "gogoproto/gogo.proto";
import "zetachain/zetacore/authority/policies.proto";

option go_package = "github.com/zeta-chain/zetacore/x/authority/types";
option go_package = "github.com/zeta-chain/node/x/authority/types";

// Authorization defines the authorization required to access use a message
// which needs special permissions
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/authority/chain_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zetachain.zetacore.authority;
import "zetachain/zetacore/pkg/chains/chains.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/authority/types";
option go_package = "github.com/zeta-chain/node/x/authority/types";

// ChainInfo contains static information about the chains
// This structure is used to dynamically update these info on a live network
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/authority/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "zetachain/zetacore/authority/authorization.proto";
import "zetachain/zetacore/authority/chain_info.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/authority/types";
option go_package = "github.com/zeta-chain/node/x/authority/types";

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

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/authority/types";
option go_package = "github.com/zeta-chain/node/x/authority/types";

// PolicyType defines the type of policy
enum PolicyType {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/authority/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "cosmos/base/query/v1beta1/pagination.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";

option go_package = "github.com/zeta-chain/zetacore/x/authority/types";
option go_package = "github.com/zeta-chain/node/x/authority/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/authority/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "zetachain/zetacore/authority/chain_info.proto";
import "zetachain/zetacore/authority/authorization.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/authority/types";
option go_package = "github.com/zeta-chain/node/x/authority/types";

// Msg defines the Msg service.
service Msg {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/crosschain/cross_chain_tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "zetachain/zetacore/pkg/coin/coin.proto";

// TODO : fix the descriptor numbers for the fields
// https://github.com/zeta-chain/node/issues/1951
option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

enum CctxStatus {
option (gogoproto.goproto_enum_stringer) = true;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/crosschain/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zetachain.zetacore.crosschain;

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

message EventInboundFinalized {
string msg_type_url = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/crosschain/gas_price.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package zetachain.zetacore.crosschain;

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

message GasPrice {
string creator = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/crosschain/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "zetachain/zetacore/crosschain/outbound_tracker.proto";
import "zetachain/zetacore/crosschain/rate_limiter_flags.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

// GenesisState defines the crosschain module's genesis state.
message GenesisState {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package zetachain.zetacore.crosschain;

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

message InboundHashToCctx {
string inbound_hash = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/crosschain/inbound_tracker.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zetachain.zetacore.crosschain;

import "zetachain/zetacore/pkg/coin/coin.proto";

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

message InboundTracker {
int64 chain_id = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package zetachain.zetacore.crosschain;

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

message LastBlockHeight {
string creator = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/crosschain/outbound_tracker.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package zetachain.zetacore.crosschain;

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

message TxHash {
string tx_hash = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/crosschain/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "zetachain/zetacore/crosschain/rate_limiter_flags.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zetachain.zetacore.crosschain;
import "gogoproto/gogo.proto";
import "zetachain/zetacore/pkg/coin/coin.proto";

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

message RateLimiterFlags {
bool enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/crosschain/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "zetachain/zetacore/pkg/proofs/proofs.proto";
import "zetachain/zetacore/crosschain/rate_limiter_flags.proto";
import "zetachain/zetacore/crosschain/cross_chain_tx.proto";

option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types";
option go_package = "github.com/zeta-chain/node/x/crosschain/types";

// Msg defines the Msg service.
service Msg {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/emissions/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zetachain.zetacore.emissions;

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/emissions/types";
option go_package = "github.com/zeta-chain/node/x/emissions/types";

enum EmissionType {
option (gogoproto.goproto_enum_stringer) = true;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/emissions/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "zetachain/zetacore/emissions/params.proto";
import "zetachain/zetacore/emissions/withdrawable_emissions.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/emissions/types";
option go_package = "github.com/zeta-chain/node/x/emissions/types";

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

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/emissions/types";
option go_package = "github.com/zeta-chain/node/x/emissions/types";

// Params defines the parameters for the module.
message Params {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/emissions/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "zetachain/zetacore/emissions/params.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";

option go_package = "github.com/zeta-chain/zetacore/x/emissions/types";
option go_package = "github.com/zeta-chain/node/x/emissions/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/emissions/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zetachain.zetacore.emissions;
import "zetachain/zetacore/emissions/params.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/emissions/types";
option go_package = "github.com/zeta-chain/node/x/emissions/types";

// Msg defines the Msg service.
service Msg {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zetachain.zetacore.emissions;

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/emissions/types";
option go_package = "github.com/zeta-chain/node/x/emissions/types";

message WithdrawableEmissions {
string address = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/fungible/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "zetachain/zetacore/fungible/tx.proto";
import "gogoproto/gogo.proto";
import "zetachain/zetacore/pkg/coin/coin.proto";

option go_package = "github.com/zeta-chain/zetacore/x/fungible/types";
option go_package = "github.com/zeta-chain/node/x/fungible/types";

message EventSystemContractUpdated {
string msg_type_url = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/fungible/foreign_coins.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zetachain.zetacore.fungible;
import "gogoproto/gogo.proto";
import "zetachain/zetacore/pkg/coin/coin.proto";

option go_package = "github.com/zeta-chain/zetacore/x/fungible/types";
option go_package = "github.com/zeta-chain/node/x/fungible/types";

message ForeignCoins {
// string index = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/fungible/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "zetachain/zetacore/fungible/foreign_coins.proto";
import "zetachain/zetacore/fungible/system_contract.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/fungible/types";
option go_package = "github.com/zeta-chain/node/x/fungible/types";

// GenesisState defines the fungible module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/fungible/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "zetachain/zetacore/fungible/system_contract.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";

option go_package = "github.com/zeta-chain/zetacore/x/fungible/types";
option go_package = "github.com/zeta-chain/node/x/fungible/types";

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

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/fungible/types";
option go_package = "github.com/zeta-chain/node/x/fungible/types";

message SystemContract {
string system_contract = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/fungible/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zetachain.zetacore.fungible;
import "gogoproto/gogo.proto";
import "zetachain/zetacore/pkg/coin/coin.proto";

option go_package = "github.com/zeta-chain/zetacore/x/fungible/types";
option go_package = "github.com/zeta-chain/node/x/fungible/types";

// Msg defines the Msg service.
service Msg {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/ibccrosschain/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zetachain.zetacore.ibccrosschain;

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/ibccrosschain/types";
option go_package = "github.com/zeta-chain/node/x/ibccrosschain/types";

// GenesisState defines the ibccrosschain module's genesis state.
message GenesisState {}
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/ibccrosschain/query.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package zetachain.zetacore.ibccrosschain;

option go_package = "github.com/zeta-chain/zetacore/x/ibccrosschain/types";
option go_package = "github.com/zeta-chain/node/x/ibccrosschain/types";

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

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/ibccrosschain/types";
option go_package = "github.com/zeta-chain/node/x/ibccrosschain/types";

// Msg defines the Msg service.
service Msg {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zetachain.zetacore.lightclient;

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/lightclient/types";
option go_package = "github.com/zeta-chain/node/x/lightclient/types";

// HeaderSupportedChain is a structure containing information of weather a chain
// is enabled or not for block header verification
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/lightclient/chain_state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zetachain.zetacore.lightclient;

import "gogoproto/gogo.proto";

option go_package = "github.com/zeta-chain/zetacore/x/lightclient/types";
option go_package = "github.com/zeta-chain/node/x/lightclient/types";

// ChainState defines the overall state of the block headers for a given chain
message ChainState {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/lightclient/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "zetachain/zetacore/lightclient/block_header_verification.proto";
import "zetachain/zetacore/lightclient/chain_state.proto";
import "zetachain/zetacore/pkg/proofs/proofs.proto";

option go_package = "github.com/zeta-chain/zetacore/x/lightclient/types";
option go_package = "github.com/zeta-chain/node/x/lightclient/types";

// GenesisState defines the lightclient module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/lightclient/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "zetachain/zetacore/lightclient/block_header_verification.proto";
import "zetachain/zetacore/lightclient/chain_state.proto";
import "zetachain/zetacore/pkg/proofs/proofs.proto";

option go_package = "github.com/zeta-chain/zetacore/x/lightclient/types";
option go_package = "github.com/zeta-chain/node/x/lightclient/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/zetachain/zetacore/lightclient/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zetachain.zetacore.lightclient;
import "gogoproto/gogo.proto";
import "zetachain/zetacore/lightclient/block_header_verification.proto";

option go_package = "github.com/zeta-chain/zetacore/x/lightclient/types";
option go_package = "github.com/zeta-chain/node/x/lightclient/types";

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

option go_package = "github.com/zeta-chain/zetacore/x/observer/types";
option go_package = "github.com/zeta-chain/node/x/observer/types";

enum VoteType {
option (gogoproto.goproto_enum_stringer) = true;
Expand Down
Loading

0 comments on commit 774bb05

Please sign in to comment.