Skip to content

Commit

Permalink
update structure
Browse files Browse the repository at this point in the history
  • Loading branch information
NagaTulasi committed Sep 25, 2024
1 parent 40e96cf commit 78c3a33
Show file tree
Hide file tree
Showing 50 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion chainclient/broadcast_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/types"
)

// GetBinPath returns the path to the cada home directory within the user's home directory.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
package sdk.avail.v1beta1;
package cada.v1beta1;

import "gogoproto/gogo.proto";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
package sdk.avail.v1beta1;
package cada.v1beta1;

option go_package = "github.com/vitwit/avail-da-module/types";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
syntax = "proto3";
package sdk.avail.v1beta1;
package cada.v1beta1;

import "google/api/annotations.proto";
import "sdk/avail/v1beta1/tx.proto";
import "cada/v1beta1/tx.proto";

option go_package = "github.com/vitwit/avail-da-module/types";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
package sdk.avail.v1beta1;
package cada.v1beta1;

import "cosmos/msg/v1/msg.proto";
import "gogoproto/gogo.proto";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package sdk.avail.v1beta1;
package cada.v1beta1;

import "sdk/avail/v1beta1/tx.proto";
import "cada/v1beta1/tx.proto";

option go_package = "github.com/vitwit/avail-da-module/types";

Expand Down
2 changes: 1 addition & 1 deletion relayer/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
dacli "github.com/vitwit/avail-da-module/chainclient"
"github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/types"
)

// PostBlocks is called in the PreBlocker. The proposer will publish the blocks at this point
Expand Down
2 changes: 1 addition & 1 deletion relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/vitwit/avail-da-module/relayer/avail"
"github.com/vitwit/avail-da-module/relayer/local"
"github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/types"
)

// Relayer is responsible for posting new blocks to Avail
Expand Down
2 changes: 1 addition & 1 deletion relayer/submit_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
relayer "github.com/vitwit/avail-da-module/relayer"
"github.com/vitwit/avail-da-module/relayer/avail"
mocks "github.com/vitwit/avail-da-module/relayer/avail/mocks"
cadatypes "github.com/vitwit/avail-da-module/types"
cadatypes "github.com/vitwit/avail-da-module/x/cada/types"
)

func TestSubmitDataToAvailClient(t *testing.T) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion client/cli/keys.go → x/cada/client/cli/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cli
import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
types "github.com/vitwit/avail-da-module/types"
types "github.com/vitwit/avail-da-module/x/cada/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion client/cli/query.go → x/cada/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/cobra"
types "github.com/vitwit/avail-da-module/types"
types "github.com/vitwit/avail-da-module/x/cada/types"
)

// GetQueryCmd returns the root query command for the cada module.
Expand Down
4 changes: 2 additions & 2 deletions client/cli/tx.go → x/cada/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
"github.com/spf13/cobra"
"github.com/vitwit/avail-da-module/keeper"
types "github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/keeper"
types "github.com/vitwit/avail-da-module/x/cada/types"
)

// NewTxCmd creates and returns a Cobra command for transaction subcommands related to the cada module.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion keeper/abci_test.go → x/cada/keeper/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
abci "github.com/cometbft/cometbft/abci/types"
sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
store "github.com/vitwit/avail-da-module/keeper"
store "github.com/vitwit/avail-da-module/x/cada/keeper"
)

func (s *TestSuite) TestPrepareProposal() {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion keeper/genesis.go → x/cada/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package keeper

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/types"
)

// InitGenesis initializes the module's state from a genesis state.
Expand Down
2 changes: 1 addition & 1 deletion keeper/keeper.go → x/cada/keeper/keeper.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"
"github.com/spf13/cobra"
"github.com/vitwit/avail-da-module/relayer"
types "github.com/vitwit/avail-da-module/types"
types "github.com/vitwit/avail-da-module/x/cada/types"
)

type Keeper struct {
Expand Down
6 changes: 3 additions & 3 deletions keeper/keeper_test.go → x/cada/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
"github.com/stretchr/testify/suite"
"github.com/vitwit/avail-da-module/keeper"
module "github.com/vitwit/avail-da-module/module"
relayer "github.com/vitwit/avail-da-module/relayer"
types "github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/keeper"
module "github.com/vitwit/avail-da-module/x/cada/module"
types "github.com/vitwit/avail-da-module/x/cada/types"
)

type TestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion keeper/msg_server.go → x/cada/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/types"
)

type msgServer struct {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper_test

import (
cadakeeper "github.com/vitwit/avail-da-module/keeper"
"github.com/vitwit/avail-da-module/types"
cadakeeper "github.com/vitwit/avail-da-module/x/cada/keeper"
"github.com/vitwit/avail-da-module/x/cada/types"
)

func (s *TestSuite) TestMsgServer_UpdateBlobStatus() {
Expand Down
2 changes: 1 addition & 1 deletion keeper/query_server.go → x/cada/keeper/query_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/types"
)

var _ types.QueryServer = queryServer{}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper_test

import (
store "github.com/vitwit/avail-da-module/keeper"
"github.com/vitwit/avail-da-module/types"
store "github.com/vitwit/avail-da-module/x/cada/keeper"
"github.com/vitwit/avail-da-module/x/cada/types"
)

func (s *TestSuite) TestSubmitBlobStatus() {
Expand Down
2 changes: 1 addition & 1 deletion keeper/status_test.go → x/cada/keeper/status_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper_test

import (
"github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/types"
)

func (s *TestSuite) TestSetBlobStatusPending() {
Expand Down
2 changes: 1 addition & 1 deletion keeper/store.go → x/cada/keeper/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"cosmossdk.io/collections"
storetypes2 "cosmossdk.io/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
types "github.com/vitwit/avail-da-module/types"
types "github.com/vitwit/avail-da-module/x/cada/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion keeper/store_test.go → x/cada/keeper/store_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper_test

import (
store "github.com/vitwit/avail-da-module/keeper"
store "github.com/vitwit/avail-da-module/x/cada/keeper"
)

func (s *TestSuite) TestCanUpdateStatusToPending() {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package keeper_test

import (
abci "github.com/cometbft/cometbft/abci/types"
store "github.com/vitwit/avail-da-module/keeper"
store "github.com/vitwit/avail-da-module/x/cada/keeper"
)

func (s *TestSuite) TestExtendVoteHandler() {
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions module/module.go → x/cada/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
"github.com/vitwit/avail-da-module/client/cli"
"github.com/vitwit/avail-da-module/keeper"
types "github.com/vitwit/avail-da-module/types"
"github.com/vitwit/avail-da-module/x/cada/client/cli"
"github.com/vitwit/avail-da-module/x/cada/keeper"
types "github.com/vitwit/avail-da-module/x/cada/types"
)

var (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 78c3a33

Please sign in to comment.