Skip to content

Commit

Permalink
update module path
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Mar 15, 2024
1 parent 5122ad5 commit 7af67b6
Show file tree
Hide file tree
Showing 50 changed files with 84 additions and 84 deletions.
16 changes: 8 additions & 8 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ import (
tmos "github.com/tendermint/tendermint/libs/os"
dbm "github.com/tendermint/tm-db"

"nucleus/x/htlc"
htlckeeper "nucleus/x/htlc/keeper"
htlctypes "nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc"
htlckeeper "github.com/komodoplatform/nucleus/x/htlc/keeper"
htlctypes "github.com/komodoplatform/nucleus/x/htlc/types"

nucleusmodule "nucleus/x/nucleus"
nucleusmodulekeeper "nucleus/x/nucleus/keeper"
nucleusmoduletypes "nucleus/x/nucleus/types"
nucleusmodule "github.com/komodoplatform/nucleus/x/nucleus"
nucleusmodulekeeper "github.com/komodoplatform/nucleus/x/nucleus/keeper"
nucleusmoduletypes "github.com/komodoplatform/nucleus/x/nucleus/types"

appparams "nucleus/app/params"
"nucleus/docs"
appparams "github.com/komodoplatform/nucleus/app/params"
"github.com/komodoplatform/nucleus/docs"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/std"
"github.com/cosmos/cosmos-sdk/x/auth/tx"

"nucleus/app/params"
"github.com/komodoplatform/nucleus/app/params"
)

// makeEncodingConfig creates an EncodingConfig for an amino based test configuration.
Expand Down
2 changes: 1 addition & 1 deletion app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package app
import (
"encoding/json"
"log"
"nucleus/x/htlc"
"github.com/komodoplatform/nucleus/x/htlc"

servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 1 addition & 1 deletion app/simulation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
tmtypes "github.com/tendermint/tendermint/types"

"nucleus/app"
"github.com/komodoplatform/nucleus/app"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/nucleusd/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
sdk "github.com/cosmos/cosmos-sdk/types"

"nucleus/app"
"github.com/komodoplatform/nucleus/app"
)

func initSDKConfig() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/nucleusd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import (
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"

"nucleus/app"
appparams "nucleus/app/params"
"github.com/komodoplatform/nucleus/app"
appparams "github.com/komodoplatform/nucleus/app/params"
)

// NewRootCmd creates a new root command for a Cosmos SDK application
Expand Down
4 changes: 2 additions & 2 deletions cmd/nucleusd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

"nucleus/app"
"nucleus/cmd/nucleusd/cmd"
"github.com/komodoplatform/nucleus/app"
"github.com/komodoplatform/nucleus/cmd/nucleusd/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module nucleus
module github.com/komodoplatform/nucleus

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions testutil/keeper/nucleus.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package keeper
import (
"testing"

"nucleus/x/nucleus/keeper"
"nucleus/x/nucleus/types"
"github.com/komodoplatform/nucleus/x/nucleus/keeper"
"github.com/komodoplatform/nucleus/x/nucleus/types"

"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
Expand Down
2 changes: 1 addition & 1 deletion testutil/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"nucleus/app"
"nucleus/app"github.com/komodoplatform/nucleus/

Check failure on line 8 in testutil/network/network.go

View workflow job for this annotation

GitHub Actions / code-checks

expected ';', found github (typecheck)

Check failure on line 8 in testutil/network/network.go

View workflow job for this annotation

GitHub Actions / benchmarks

expected ';', found github

Check failure on line 8 in testutil/network/network.go

View workflow job for this annotation

GitHub Actions / tests

expected ';', found github

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/crypto/hd"
Expand Down
6 changes: 3 additions & 3 deletions x/htlc/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"nucleus/x/htlc/keeper"
"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/keeper"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// BeginBlocker handles block beginning logic for HTLC
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
ctx = ctx.WithLogger(ctx.Logger().With("handler", "beginBlock").With("module", "nucleus/htlc"))
ctx = ctx.WithLogger(ctx.Logger().With("handler", "beginBlock").With("module", "github.com/komodoplatform/nucleus/htlc"))

currentBlockHeight := uint64(ctx.BlockHeight())
k.IterateHTLCExpiredQueueByHeight(
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/version"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// GetQueryCmd returns the cli query commands for the module.
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/version"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// NewTxCmd returns the transaction commands for this module
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/client/testutil/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/cosmos/cosmos-sdk/testutil"
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"

htlccli "nucleus/x/htlc/client/cli"
htlccli "github.com/komodoplatform/nucleus/x/htlc/client/cli"
)

// MsgRedelegateExec creates a redelegate message.
Expand Down
4 changes: 2 additions & 2 deletions x/htlc/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
tmbytes "github.com/tendermint/tendermint/libs/bytes"

"nucleus/x/htlc/keeper"
"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/keeper"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// InitGenesis stores the genesis state
Expand Down
4 changes: 2 additions & 2 deletions x/htlc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

"nucleus/x/htlc/keeper"
"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/keeper"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// NewHandler creates an sdk.Handler for all the HTLC type messages
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/keeper/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// IncrementCurrentAssetSupply increments an asset's supply by the coin
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

var _ types.QueryServer = Keeper{}
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/keeper/htlc.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// CreateHTLC creates an HTLC
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/keeper/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions x/htlc/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// Keeper defines the HTLC keeper
Expand Down Expand Up @@ -55,7 +55,7 @@ func NewKeeper(

// Logger returns a module-specific logger
func (k Keeper) Logger(ctx sdk.Context) log.Logger {
return ctx.Logger().With("module", fmt.Sprintf("nucleus/%s", types.ModuleName))
return ctx.Logger().With("module", fmt.Sprintf("github.com/komodoplatform/nucleus/%s", types.ModuleName))
}

// GetHTLCAccount returns the HTLC module account
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

type msgServer struct {
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// ParamKeyTable for htlc module
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/keeper/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// NewQuerier creates a new HTLC Querier instance
Expand Down
8 changes: 4 additions & 4 deletions x/htlc/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"

"nucleus/x/htlc/client/cli"
"nucleus/x/htlc/keeper"
"nucleus/x/htlc/simulation"
"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/client/cli"
"github.com/komodoplatform/nucleus/x/htlc/keeper"
"github.com/komodoplatform/nucleus/x/htlc/simulation"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/simulation/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/types/kv"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// NewDecodeStore unmarshals the KVPair's Value to the corresponding HTLC type
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/tendermint/tendermint/crypto"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions x/htlc/simulation/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"

"nucleus/x/htlc/keeper"
"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/keeper"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

// Simulation operation weights constants
Expand Down
4 changes: 2 additions & 2 deletions x/htlc/types/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func init() {
}

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&MsgCreateHTLC{}, "nucleus/htlc/MsgCreateHTLC", nil)
cdc.RegisterConcrete(&MsgClaimHTLC{}, "nucleus/htlc/MsgClaimHTLC", nil)
cdc.RegisterConcrete(&MsgCreateHTLC{}, "github.com/komodoplatform/nucleus/htlc/MsgCreateHTLC", nil)
cdc.RegisterConcrete(&MsgClaimHTLC{}, "github.com/komodoplatform/nucleus/htlc/MsgClaimHTLC", nil)
}

func RegisterInterfaces(registry types.InterfaceRegistry) {
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/types/conmmon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion x/htlc/types/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

type GenesisTestSuite struct {
Expand Down
6 changes: 3 additions & 3 deletions x/htlc/types/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

var (
Expand Down Expand Up @@ -101,7 +101,7 @@ func TestMsgCreateHTLCGetSignBytes(t *testing.T) {
msg := types.NewMsgCreateHTLC(senderStr, recipientStr, amount, hashLockStr, timestamp, timeLock)
res := msg.GetSignBytes()

expected := `{"type":"nucleus/htlc/MsgCreateHTLC","value":{"amount":[{"amount":"10","denom":"stake"}],"hash_lock":"6F4ECE9B22CFC1CF39C9C73DD2D35867A8EC97C48A9C2F664FE5287865A18C2E","sender":"cosmos1pgm8hyk0pvphmlvfjc8wsvk4daluz5tgmr4lac","time_lock":"50","timestamp":"1580000000","to":"cosmos1vewsdxxmeraett7ztsaym88jsrv85kzm8ekjsg"}}`
expected := `{"type":"github.com/komodoplatform/nucleus/htlc/MsgCreateHTLC","value":{"amount":[{"amount":"10","denom":"stake"}],"hash_lock":"6F4ECE9B22CFC1CF39C9C73DD2D35867A8EC97C48A9C2F664FE5287865A18C2E","sender":"cosmos1pgm8hyk0pvphmlvfjc8wsvk4daluz5tgmr4lac","time_lock":"50","timestamp":"1580000000","to":"cosmos1vewsdxxmeraett7ztsaym88jsrv85kzm8ekjsg"}}`
require.Equal(t, expected, string(res))
}

Expand Down Expand Up @@ -173,7 +173,7 @@ func TestMsgClaimHTLCGetSignBytes(t *testing.T) {
msg := types.NewMsgClaimHTLC(senderStr, idStr, secretStr)
res := msg.GetSignBytes()

expected := `{"type":"nucleus/htlc/MsgClaimHTLC","value":{"id":"B94EFE2C859EDADE7F3F6CAF5D7A1CE388D65B9E63CB6CE0B824117F117695A7","secret":"2BB80D537B1DA3E38BD30361AA855686BDE0EACD7162FEF6A25FE97BF527A25B","sender":"cosmos1pgm8hyk0pvphmlvfjc8wsvk4daluz5tgmr4lac"}}`
expected := `{"type":"github.com/komodoplatform/nucleus/htlc/MsgClaimHTLC","value":{"id":"B94EFE2C859EDADE7F3F6CAF5D7A1CE388D65B9E63CB6CE0B824117F117695A7","secret":"2BB80D537B1DA3E38BD30361AA855686BDE0EACD7162FEF6A25FE97BF527A25B","sender":"cosmos1pgm8hyk0pvphmlvfjc8wsvk4daluz5tgmr4lac"}}`
require.Equal(t, expected, string(res))
}

Expand Down
2 changes: 1 addition & 1 deletion x/htlc/types/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"nucleus/x/htlc/types"
"github.com/komodoplatform/nucleus/x/htlc/types"
)

type ParamsTestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion x/nucleus/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cli

import (
"fmt"
"nucleus/x/nucleus/types"
"github.com/komodoplatform/nucleus/x/nucleus/types"

"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion x/nucleus/client/cli/query_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cli
import (
"context"

"nucleus/x/nucleus/types"
"github.com/komodoplatform/nucleus/x/nucleus/types"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
Loading

0 comments on commit 7af67b6

Please sign in to comment.