Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove not required flags and files #298

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions x/accountedpool/client/cli/query_accounted_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cli_test

import (
"fmt"
"strconv"
"testing"

tmcli "github.com/cometbft/cometbft/libs/cli"
Expand All @@ -18,9 +17,6 @@ import (
"github.com/elys-network/elys/x/accountedpool/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func networkWithAccountedPoolObjects(t *testing.T, n int) (*network.Network, []types.AccountedPool) {
t.Helper()
cfg := network.DefaultConfig()
Expand Down
9 changes: 0 additions & 9 deletions x/accountedpool/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,13 @@ package cli

import (
"fmt"
"time"

"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/elys-network/elys/x/accountedpool/types"
)

var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())

const (
flagPacketTimeoutTimestamp = "packet-timeout-timestamp"
listSeparator = ","
)

// GetTxCmd returns the transaction commands for this module
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Expand Down
4 changes: 0 additions & 4 deletions x/accountedpool/keeper/accounted_pool_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package keeper_test

import (
"strconv"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -13,9 +12,6 @@ import (
"github.com/stretchr/testify/require"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func createNAccountedPool(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.AccountedPool {
items := make([]types.AccountedPool, n)
for i := range items {
Expand Down
4 changes: 0 additions & 4 deletions x/accountedpool/keeper/query_accounted_pool_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package keeper_test

import (
"strconv"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -15,9 +14,6 @@ import (
"github.com/elys-network/elys/x/accountedpool/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func TestAccountedPoolQuerySingle(t *testing.T) {
keeper, ctx := keepertest.AccountedPoolKeeper(t)
wctx := sdk.WrapSDKContext(ctx)
Expand Down
3 changes: 0 additions & 3 deletions x/amm/client/cli/query_denom_liquidity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ import (
"github.com/elys-network/elys/x/amm/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func networkWithDenomLiquidityObjects(t *testing.T, n int) (*network.Network, []types.DenomLiquidity) {
t.Helper()
cfg := network.DefaultConfig()
Expand Down
3 changes: 0 additions & 3 deletions x/amm/client/cli/query_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ import (
ptypes "github.com/elys-network/elys/x/parameter/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func networkWithPoolObjects(t *testing.T, n int) (*network.Network, []types.Pool) {
t.Helper()
cfg := network.DefaultConfig()
Expand Down
11 changes: 3 additions & 8 deletions x/amm/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,17 @@ package cli

import (
"fmt"
"time"

"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/elys-network/elys/x/amm/types"
)

var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())

const (
FlagDiscount = "discount"
FlagRecipient = "recipient"
flagPacketTimeoutTimestamp = "packet-timeout-timestamp"
listSeparator = ","
FlagDiscount = "discount"
FlagRecipient = "recipient"
listSeparator = ","
)

// GetTxCmd returns the transaction commands for this module
Expand Down
3 changes: 0 additions & 3 deletions x/amm/keeper/denom_liquidity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ import (
"github.com/stretchr/testify/require"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func createNDenomLiquidity(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DenomLiquidity {
items := make([]types.DenomLiquidity, n)
for i := range items {
Expand Down
3 changes: 0 additions & 3 deletions x/amm/keeper/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import (
"github.com/stretchr/testify/require"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func createNPool(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Pool {
items := make([]types.Pool, n)
for i := range items {
Expand Down
3 changes: 0 additions & 3 deletions x/amm/keeper/query_denom_liquidity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ import (
"github.com/elys-network/elys/x/amm/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func TestDenomLiquidityQuerySingle(t *testing.T) {
keeper, ctx, _, _ := keepertest.AmmKeeper(t)
wctx := sdk.WrapSDKContext(ctx)
Expand Down
4 changes: 0 additions & 4 deletions x/amm/keeper/query_pool_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package keeper_test

import (
"strconv"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -15,9 +14,6 @@ import (
"github.com/elys-network/elys/x/amm/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func TestPoolQuerySingle(t *testing.T) {
keeper, ctx, _, _ := keepertest.AmmKeeper(t)
wctx := sdk.WrapSDKContext(ctx)
Expand Down
3 changes: 0 additions & 3 deletions x/assetprofile/client/cli/query_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ import (
"github.com/elys-network/elys/x/assetprofile/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func networkWithEntryObjects(t *testing.T, n int) (*network.Network, []types.Entry) {
t.Helper()
cfg := network.DefaultConfig()
Expand Down
9 changes: 0 additions & 9 deletions x/assetprofile/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,13 @@ package cli

import (
"fmt"
"time"

"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/elys-network/elys/x/assetprofile/types"
)

var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())

const (
flagPacketTimeoutTimestamp = "packet-timeout-timestamp"
listSeparator = ","
)

// GetTxCmd returns the transaction commands for this module
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Expand Down
3 changes: 0 additions & 3 deletions x/assetprofile/keeper/entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ import (
"github.com/stretchr/testify/require"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func createNEntry(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Entry {
items := make([]types.Entry, n)
for i := range items {
Expand Down
3 changes: 0 additions & 3 deletions x/assetprofile/keeper/msg_server_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ import (
"github.com/elys-network/elys/x/assetprofile/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func TestEntryMsgServerCreate(t *testing.T) {
k, ctx := keepertest.AssetprofileKeeper(t)
srv := keeper.NewMsgServerImpl(*k)
Expand Down
3 changes: 0 additions & 3 deletions x/assetprofile/keeper/query_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ import (
"github.com/elys-network/elys/x/assetprofile/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func TestEntryQuerySingle(t *testing.T) {
keeper, ctx := keepertest.AssetprofileKeeper(t)
wctx := sdk.WrapSDKContext(ctx)
Expand Down
3 changes: 0 additions & 3 deletions x/assetprofile/simulation/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import (
"github.com/elys-network/elys/x/assetprofile/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func SimulateMsgCreateEntry(
ak types.AccountKeeper,
bk types.BankKeeper,
Expand Down
3 changes: 0 additions & 3 deletions x/burner/client/cli/query_history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ import (
"github.com/elys-network/elys/x/burner/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func networkWithHistoryObjects(t *testing.T, n int) (*network.Network, []types.History) {
t.Helper()
cfg := network.DefaultConfig()
Expand Down
8 changes: 0 additions & 8 deletions x/burner/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cli

import (
"fmt"
"time"

"github.com/spf13/cobra"

Expand All @@ -11,13 +10,6 @@ import (
"github.com/elys-network/elys/x/burner/types"
)

var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())

const (
flagPacketTimeoutTimestamp = "packet-timeout-timestamp"
listSeparator = ","
)

// GetTxCmd returns the transaction commands for this module
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Expand Down
3 changes: 0 additions & 3 deletions x/burner/keeper/history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ import (
"github.com/stretchr/testify/require"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func createNHistory(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.History {
items := make([]types.History, n)
for i := range items {
Expand Down
3 changes: 0 additions & 3 deletions x/burner/keeper/query_history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ import (
"github.com/elys-network/elys/x/burner/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func TestHistoryQuerySingle(t *testing.T) {
keeper, ctx, _ := keepertest.BurnerKeeper(t)
wctx := sdk.WrapSDKContext(ctx)
Expand Down
8 changes: 0 additions & 8 deletions x/commitment/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cli

import (
"fmt"
"time"

"github.com/spf13/cobra"

Expand All @@ -11,13 +10,6 @@ import (
"github.com/elys-network/elys/x/commitment/types"
)

var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())

const (
flagPacketTimeoutTimestamp = "packet-timeout-timestamp"
listSeparator = ","
)

// GetTxCmd returns the transaction commands for this module
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Expand Down
4 changes: 0 additions & 4 deletions x/commitment/client/cli/tx_update_vesting_info_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cli_test

import (
"strconv"
"testing"

clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
Expand All @@ -11,9 +10,6 @@ import (
"github.com/elys-network/elys/x/commitment/client/cli"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func setupNetwork(t *testing.T) *network.Network {
t.Helper()

Expand Down
3 changes: 0 additions & 3 deletions x/epochs/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ import (
"github.com/elys-network/elys/x/epochs/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func TestEpochInfoQuerySingle(t *testing.T) {
keeper, ctx := keepertest.EpochsKeeper(t)
wctx := sdk.WrapSDKContext(ctx)
Expand Down
16 changes: 4 additions & 12 deletions x/incentive/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"strconv"
"strings"
"time"

"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand All @@ -22,17 +21,10 @@ import (
)

var (
FlagCommission = "commission"
FlagValidatorAddress = "validator-address"
FlagMaxMessagesPerTx = "max-msgs"
FlagEarnType = "earn-type"
DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())
)

const (
flagPacketTimeoutTimestamp = "packet-timeout-timestamp"
MaxMessagesPerTxDefault = 0
listSeparator = ","
FlagCommission = "commission"
FlagValidatorAddress = "validator-address"
FlagMaxMessagesPerTx = "max-msgs"
FlagEarnType = "earn-type"
)

// GetTxCmd returns the transaction commands for this module
Expand Down
4 changes: 0 additions & 4 deletions x/incentive/client/cli/tx_update_incentive_params_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cli_test

import (
"strconv"
"testing"

clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
Expand All @@ -11,9 +10,6 @@ import (
"github.com/elys-network/elys/x/incentive/client/cli"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func setupNetwork(t *testing.T) *network.Network {
t.Helper()

Expand Down
Loading
Loading