Skip to content

Commit

Permalink
chore: use github.com/zeta-chain/node import path
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Aug 29, 2024
1 parent 994f1ca commit b9fd6ab
Show file tree
Hide file tree
Showing 965 changed files with 2,859 additions and 3,425 deletions.
5 changes: 2 additions & 3 deletions app/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ import (
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
"github.com/cosmos/cosmos-sdk/x/authz"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"

crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types"
observertypes "github.com/zeta-chain/zetacore/x/observer/types"
crosschaintypes "github.com/zeta-chain/node/x/crosschain/types"
observertypes "github.com/zeta-chain/node/x/observer/types"
)

func ValidateHandlerOptions(options HandlerOptions) error {
Expand Down
10 changes: 5 additions & 5 deletions app/ante/ante_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/stretchr/testify/require"

"github.com/zeta-chain/zetacore/app"
"github.com/zeta-chain/zetacore/app/ante"
"github.com/zeta-chain/zetacore/testutil/sample"
crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types"
observertypes "github.com/zeta-chain/zetacore/x/observer/types"
"github.com/zeta-chain/node/app"
"github.com/zeta-chain/node/app/ante"
"github.com/zeta-chain/node/testutil/sample"
crosschaintypes "github.com/zeta-chain/node/x/crosschain/types"
observertypes "github.com/zeta-chain/node/x/observer/types"
)

var _ sdk.AnteHandler = (&MockAnteHandler{}).AnteHandle
Expand Down
3 changes: 1 addition & 2 deletions app/ante/handler_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ import (
ethante "github.com/zeta-chain/ethermint/app/ante"
ethermint "github.com/zeta-chain/ethermint/types"
evmtypes "github.com/zeta-chain/ethermint/x/evm/types"

observerkeeper "github.com/zeta-chain/zetacore/x/observer/keeper"
observerkeeper "github.com/zeta-chain/node/x/observer/keeper"
)

type HandlerOptions struct {
Expand Down
6 changes: 3 additions & 3 deletions app/ante/system_tx_priority_decorator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"

"github.com/zeta-chain/zetacore/app"
"github.com/zeta-chain/zetacore/app/ante"
"github.com/zeta-chain/zetacore/testutil/sample"
"github.com/zeta-chain/node/app"
"github.com/zeta-chain/node/app/ante"
"github.com/zeta-chain/node/testutil/sample"
)

func TestSystemTxPriorityDecorator_AnteHandle(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions app/ante/vesting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/stretchr/testify/require"

"github.com/zeta-chain/zetacore/app"
"github.com/zeta-chain/zetacore/app/ante"
"github.com/zeta-chain/zetacore/testutil/sample"
"github.com/zeta-chain/node/app"
"github.com/zeta-chain/node/app/ante"
"github.com/zeta-chain/node/testutil/sample"
)

func TestVesting_AnteHandle(t *testing.T) {
Expand Down
47 changes: 23 additions & 24 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,30 +88,29 @@ import (
"github.com/zeta-chain/ethermint/x/feemarket"
feemarketkeeper "github.com/zeta-chain/ethermint/x/feemarket/keeper"
feemarkettypes "github.com/zeta-chain/ethermint/x/feemarket/types"

"github.com/zeta-chain/zetacore/app/ante"
"github.com/zeta-chain/zetacore/docs/openapi"
zetamempool "github.com/zeta-chain/zetacore/pkg/mempool"
"github.com/zeta-chain/zetacore/precompiles"
srvflags "github.com/zeta-chain/zetacore/server/flags"
authoritymodule "github.com/zeta-chain/zetacore/x/authority"
authoritykeeper "github.com/zeta-chain/zetacore/x/authority/keeper"
authoritytypes "github.com/zeta-chain/zetacore/x/authority/types"
crosschainmodule "github.com/zeta-chain/zetacore/x/crosschain"
crosschainkeeper "github.com/zeta-chain/zetacore/x/crosschain/keeper"
crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types"
emissionsmodule "github.com/zeta-chain/zetacore/x/emissions"
emissionskeeper "github.com/zeta-chain/zetacore/x/emissions/keeper"
emissionstypes "github.com/zeta-chain/zetacore/x/emissions/types"
fungiblemodule "github.com/zeta-chain/zetacore/x/fungible"
fungiblekeeper "github.com/zeta-chain/zetacore/x/fungible/keeper"
fungibletypes "github.com/zeta-chain/zetacore/x/fungible/types"
lightclientmodule "github.com/zeta-chain/zetacore/x/lightclient"
lightclientkeeper "github.com/zeta-chain/zetacore/x/lightclient/keeper"
lightclienttypes "github.com/zeta-chain/zetacore/x/lightclient/types"
observermodule "github.com/zeta-chain/zetacore/x/observer"
observerkeeper "github.com/zeta-chain/zetacore/x/observer/keeper"
observertypes "github.com/zeta-chain/zetacore/x/observer/types"
"github.com/zeta-chain/node/app/ante"
"github.com/zeta-chain/node/docs/openapi"
zetamempool "github.com/zeta-chain/node/pkg/mempool"
"github.com/zeta-chain/node/precompiles"
srvflags "github.com/zeta-chain/node/server/flags"
authoritymodule "github.com/zeta-chain/node/x/authority"
authoritykeeper "github.com/zeta-chain/node/x/authority/keeper"
authoritytypes "github.com/zeta-chain/node/x/authority/types"
crosschainmodule "github.com/zeta-chain/node/x/crosschain"
crosschainkeeper "github.com/zeta-chain/node/x/crosschain/keeper"
crosschaintypes "github.com/zeta-chain/node/x/crosschain/types"
emissionsmodule "github.com/zeta-chain/node/x/emissions"
emissionskeeper "github.com/zeta-chain/node/x/emissions/keeper"
emissionstypes "github.com/zeta-chain/node/x/emissions/types"
fungiblemodule "github.com/zeta-chain/node/x/fungible"
fungiblekeeper "github.com/zeta-chain/node/x/fungible/keeper"
fungibletypes "github.com/zeta-chain/node/x/fungible/types"
lightclientmodule "github.com/zeta-chain/node/x/lightclient"
lightclientkeeper "github.com/zeta-chain/node/x/lightclient/keeper"
lightclienttypes "github.com/zeta-chain/node/x/lightclient/types"
observermodule "github.com/zeta-chain/node/x/observer"
observerkeeper "github.com/zeta-chain/node/x/observer/keeper"
observertypes "github.com/zeta-chain/node/x/observer/types"
)

// TODO: enable back IBC
Expand Down
13 changes: 6 additions & 7 deletions app/init_genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ import (
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
evmtypes "github.com/zeta-chain/ethermint/x/evm/types"
feemarkettypes "github.com/zeta-chain/ethermint/x/feemarket/types"

authoritytypes "github.com/zeta-chain/zetacore/x/authority/types"
crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types"
emissionsModuleTypes "github.com/zeta-chain/zetacore/x/emissions/types"
fungibleModuleTypes "github.com/zeta-chain/zetacore/x/fungible/types"
lightclienttypes "github.com/zeta-chain/zetacore/x/lightclient/types"
observertypes "github.com/zeta-chain/zetacore/x/observer/types"
authoritytypes "github.com/zeta-chain/node/x/authority/types"
crosschaintypes "github.com/zeta-chain/node/x/crosschain/types"
emissionsModuleTypes "github.com/zeta-chain/node/x/emissions/types"
fungibleModuleTypes "github.com/zeta-chain/node/x/fungible/types"
lightclienttypes "github.com/zeta-chain/node/x/lightclient/types"
observertypes "github.com/zeta-chain/node/x/observer/types"
)

// InitGenesisModuleList returns the module list for genesis initialization
Expand Down
3 changes: 1 addition & 2 deletions app/prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ package app
import (
sdk "github.com/cosmos/cosmos-sdk/types"
ethcfg "github.com/zeta-chain/ethermint/cmd/config"

cmdcfg "github.com/zeta-chain/zetacore/cmd/zetacored/config"
cmdcfg "github.com/zeta-chain/node/cmd/zetacored/config"
)

func SetConfig() {
Expand Down
9 changes: 4 additions & 5 deletions app/setup_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ import (
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/cosmos/cosmos-sdk/x/upgrade/types"
"github.com/zeta-chain/node/pkg/constant"
authoritytypes "github.com/zeta-chain/node/x/authority/types"
emissionstypes "github.com/zeta-chain/node/x/emissions/types"
observertypes "github.com/zeta-chain/node/x/observer/types"
"golang.org/x/exp/slices"

"github.com/zeta-chain/zetacore/pkg/constant"
authoritytypes "github.com/zeta-chain/zetacore/x/authority/types"
emissionstypes "github.com/zeta-chain/zetacore/x/emissions/types"
observertypes "github.com/zeta-chain/zetacore/x/observer/types"
)

func SetupHandlers(app *App) {
Expand Down
4 changes: 2 additions & 2 deletions app/upgrade_tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/stretchr/testify/require"

authoritytypes "github.com/zeta-chain/zetacore/x/authority/types"
lightclienttypes "github.com/zeta-chain/zetacore/x/lightclient/types"
authoritytypes "github.com/zeta-chain/node/x/authority/types"
lightclienttypes "github.com/zeta-chain/node/x/lightclient/types"
)

func TestUpgradeTracker(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions cmd/zetaclientd-supervisor/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ import (
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
"github.com/hashicorp/go-getter"
"github.com/rs/zerolog"
"github.com/zeta-chain/node/zetaclient/config"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

"github.com/zeta-chain/zetacore/zetaclient/config"
)

const zetaclientdBinaryName = "zetaclientd"
Expand Down
7 changes: 3 additions & 4 deletions cmd/zetaclientd-supervisor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ import (
"time"

"cosmossdk.io/errors"
"github.com/zeta-chain/node/app"
zetaos "github.com/zeta-chain/node/pkg/os"
"github.com/zeta-chain/node/zetaclient/config"
"golang.org/x/sync/errgroup"

"github.com/zeta-chain/zetacore/app"
zetaos "github.com/zeta-chain/zetacore/pkg/os"
"github.com/zeta-chain/zetacore/zetaclient/config"
)

func main() {
Expand Down
17 changes: 8 additions & 9 deletions cmd/zetaclientd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ import (
"github.com/onrik/ethrpc"
"github.com/rs/zerolog"
"github.com/spf13/cobra"

"github.com/zeta-chain/zetacore/pkg/coin"
"github.com/zeta-chain/zetacore/testutil/sample"
btcobserver "github.com/zeta-chain/zetacore/zetaclient/chains/bitcoin/observer"
evmobserver "github.com/zeta-chain/zetacore/zetaclient/chains/evm/observer"
"github.com/zeta-chain/zetacore/zetaclient/config"
zctx "github.com/zeta-chain/zetacore/zetaclient/context"
"github.com/zeta-chain/zetacore/zetaclient/keys"
"github.com/zeta-chain/zetacore/zetaclient/zetacore"
"github.com/zeta-chain/node/pkg/coin"
"github.com/zeta-chain/node/testutil/sample"
btcobserver "github.com/zeta-chain/node/zetaclient/chains/bitcoin/observer"
evmobserver "github.com/zeta-chain/node/zetaclient/chains/evm/observer"
"github.com/zeta-chain/node/zetaclient/config"
zctx "github.com/zeta-chain/node/zetaclient/context"
"github.com/zeta-chain/node/zetaclient/keys"
"github.com/zeta-chain/node/zetaclient/zetacore"
)

var debugArgs = debugArguments{}
Expand Down
3 changes: 1 addition & 2 deletions cmd/zetaclientd/encrypt_tss.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (

"github.com/pkg/errors"
"github.com/spf13/cobra"

"github.com/zeta-chain/zetacore/pkg/crypto"
"github.com/zeta-chain/node/pkg/crypto"
)

var encTssCmd = &cobra.Command{
Expand Down
7 changes: 3 additions & 4 deletions cmd/zetaclientd/hsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"
keystone "github.com/zeta-chain/keystone/keys"

"github.com/zeta-chain/zetacore/cmd"
"github.com/zeta-chain/zetacore/pkg/cosmos"
"github.com/zeta-chain/zetacore/zetaclient/hsm"
"github.com/zeta-chain/node/cmd"
"github.com/zeta-chain/node/pkg/cosmos"
"github.com/zeta-chain/node/zetaclient/hsm"
)

var HsmCmd = &cobra.Command{
Expand Down
9 changes: 4 additions & 5 deletions cmd/zetaclientd/import_relayer_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/zeta-chain/zetacore/pkg/chains"
"github.com/zeta-chain/zetacore/pkg/crypto"
zetaos "github.com/zeta-chain/zetacore/pkg/os"
"github.com/zeta-chain/zetacore/zetaclient/keys"
"github.com/zeta-chain/node/pkg/chains"
"github.com/zeta-chain/node/pkg/crypto"
zetaos "github.com/zeta-chain/node/pkg/os"
"github.com/zeta-chain/node/zetaclient/keys"
)

var CmdImportRelayerKey = &cobra.Command{
Expand Down
5 changes: 2 additions & 3 deletions cmd/zetaclientd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ package main
import (
"github.com/rs/zerolog"
"github.com/spf13/cobra"

"github.com/zeta-chain/zetacore/zetaclient/config"
"github.com/zeta-chain/zetacore/zetaclient/testutils"
"github.com/zeta-chain/node/zetaclient/config"
"github.com/zeta-chain/node/zetaclient/testutils"
)

var InitCmd = &cobra.Command{
Expand Down
15 changes: 7 additions & 8 deletions cmd/zetaclientd/keygen_tss.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@ import (
"time"

"github.com/rs/zerolog"
"github.com/zeta-chain/node/pkg/chains"
observertypes "github.com/zeta-chain/node/x/observer/types"
"github.com/zeta-chain/node/zetaclient/chains/interfaces"
zctx "github.com/zeta-chain/node/zetaclient/context"
"github.com/zeta-chain/node/zetaclient/metrics"
mc "github.com/zeta-chain/node/zetaclient/tss"
"github.com/zeta-chain/node/zetaclient/zetacore"
tsscommon "gitlab.com/thorchain/tss/go-tss/common"
"gitlab.com/thorchain/tss/go-tss/keygen"
"gitlab.com/thorchain/tss/go-tss/tss"
"golang.org/x/crypto/sha3"

"github.com/zeta-chain/zetacore/pkg/chains"
observertypes "github.com/zeta-chain/zetacore/x/observer/types"
"github.com/zeta-chain/zetacore/zetaclient/chains/interfaces"
zctx "github.com/zeta-chain/zetacore/zetaclient/context"
"github.com/zeta-chain/zetacore/zetaclient/metrics"
mc "github.com/zeta-chain/zetacore/zetaclient/tss"
"github.com/zeta-chain/zetacore/zetaclient/zetacore"
)

// GenerateTSS generates a new TSS if keygen is set.
Expand Down
5 changes: 2 additions & 3 deletions cmd/zetaclientd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
"github.com/cosmos/cosmos-sdk/types"
"github.com/zeta-chain/node/app"
"github.com/zeta-chain/node/cmd"
ecdsakeygen "gitlab.com/thorchain/tss/tss-lib/ecdsa/keygen"

"github.com/zeta-chain/zetacore/app"
"github.com/zeta-chain/zetacore/cmd"
)

var (
Expand Down
7 changes: 3 additions & 4 deletions cmd/zetaclientd/p2p_diagnostics.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ import (
dutil "github.com/libp2p/go-libp2p/p2p/discovery/util"
maddr "github.com/multiformats/go-multiaddr"
"github.com/rs/zerolog"

"github.com/zeta-chain/zetacore/pkg/cosmos"
"github.com/zeta-chain/zetacore/zetaclient/config"
"github.com/zeta-chain/zetacore/zetaclient/metrics"
"github.com/zeta-chain/node/pkg/cosmos"
"github.com/zeta-chain/node/zetaclient/config"
"github.com/zeta-chain/node/zetaclient/metrics"
)

func RunDiagnostics(
Expand Down
27 changes: 13 additions & 14 deletions cmd/zetaclientd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/zeta-chain/zetacore/pkg/authz"
"github.com/zeta-chain/zetacore/pkg/chains"
"github.com/zeta-chain/zetacore/pkg/constant"
zetaos "github.com/zeta-chain/zetacore/pkg/os"
observerTypes "github.com/zeta-chain/zetacore/x/observer/types"
"github.com/zeta-chain/zetacore/zetaclient/chains/base"
"github.com/zeta-chain/zetacore/zetaclient/config"
zctx "github.com/zeta-chain/zetacore/zetaclient/context"
"github.com/zeta-chain/zetacore/zetaclient/maintenance"
"github.com/zeta-chain/zetacore/zetaclient/metrics"
"github.com/zeta-chain/zetacore/zetaclient/orchestrator"
mc "github.com/zeta-chain/zetacore/zetaclient/tss"
"github.com/zeta-chain/zetacore/zetaclient/zetacore"
"github.com/zeta-chain/node/pkg/authz"
"github.com/zeta-chain/node/pkg/chains"
"github.com/zeta-chain/node/pkg/constant"
zetaos "github.com/zeta-chain/node/pkg/os"
observerTypes "github.com/zeta-chain/node/x/observer/types"
"github.com/zeta-chain/node/zetaclient/chains/base"
"github.com/zeta-chain/node/zetaclient/config"
zctx "github.com/zeta-chain/node/zetaclient/context"
"github.com/zeta-chain/node/zetaclient/maintenance"
"github.com/zeta-chain/node/zetaclient/metrics"
"github.com/zeta-chain/node/zetaclient/orchestrator"
mc "github.com/zeta-chain/node/zetaclient/tss"
"github.com/zeta-chain/node/zetaclient/zetacore"
)

var StartCmd = &cobra.Command{
Expand Down
3 changes: 1 addition & 2 deletions cmd/zetaclientd/start_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ import (

"github.com/pkg/errors"
"github.com/rs/zerolog"
"github.com/zeta-chain/node/zetaclient/config"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

"github.com/zeta-chain/zetacore/zetaclient/config"
)

func waitForZetaCore(config config.Config, logger zerolog.Logger) {
Expand Down
9 changes: 4 additions & 5 deletions cmd/zetaclientd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ package main
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/rs/zerolog"

"github.com/zeta-chain/zetacore/zetaclient/authz"
"github.com/zeta-chain/zetacore/zetaclient/config"
"github.com/zeta-chain/zetacore/zetaclient/keys"
"github.com/zeta-chain/zetacore/zetaclient/zetacore"
"github.com/zeta-chain/node/zetaclient/authz"
"github.com/zeta-chain/node/zetaclient/config"
"github.com/zeta-chain/node/zetaclient/keys"
"github.com/zeta-chain/node/zetaclient/zetacore"
)

func CreateAuthzSigner(granter string, grantee sdk.AccAddress) {
Expand Down
Loading

0 comments on commit b9fd6ab

Please sign in to comment.