diff --git a/x/accountedpool/client/cli/query_accounted_pool_test.go b/x/accountedpool/client/cli/query_accounted_pool_test.go index 263872bcf..94e4b6bdf 100644 --- a/x/accountedpool/client/cli/query_accounted_pool_test.go +++ b/x/accountedpool/client/cli/query_accounted_pool_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -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() diff --git a/x/accountedpool/client/cli/tx.go b/x/accountedpool/client/cli/tx.go index 553dd5dec..6e1e1ed2e 100644 --- a/x/accountedpool/client/cli/tx.go +++ b/x/accountedpool/client/cli/tx.go @@ -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{ diff --git a/x/accountedpool/keeper/accounted_pool_test.go b/x/accountedpool/keeper/accounted_pool_test.go index 335173896..6dcdfbe12 100644 --- a/x/accountedpool/keeper/accounted_pool_test.go +++ b/x/accountedpool/keeper/accounted_pool_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -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 { diff --git a/x/accountedpool/keeper/query_accounted_pool_test.go b/x/accountedpool/keeper/query_accounted_pool_test.go index ba55f0a3c..bb9a182f9 100644 --- a/x/accountedpool/keeper/query_accounted_pool_test.go +++ b/x/accountedpool/keeper/query_accounted_pool_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -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) diff --git a/x/amm/client/cli/query_denom_liquidity_test.go b/x/amm/client/cli/query_denom_liquidity_test.go index f865b90a7..cbc2f37aa 100644 --- a/x/amm/client/cli/query_denom_liquidity_test.go +++ b/x/amm/client/cli/query_denom_liquidity_test.go @@ -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() diff --git a/x/amm/client/cli/query_pool_test.go b/x/amm/client/cli/query_pool_test.go index 5d4b4d56e..b800af22f 100644 --- a/x/amm/client/cli/query_pool_test.go +++ b/x/amm/client/cli/query_pool_test.go @@ -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() diff --git a/x/amm/client/cli/tx.go b/x/amm/client/cli/tx.go index fc531b425..2182be89d 100644 --- a/x/amm/client/cli/tx.go +++ b/x/amm/client/cli/tx.go @@ -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 diff --git a/x/amm/keeper/denom_liquidity_test.go b/x/amm/keeper/denom_liquidity_test.go index 5f70adffd..81e298bf2 100644 --- a/x/amm/keeper/denom_liquidity_test.go +++ b/x/amm/keeper/denom_liquidity_test.go @@ -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 { diff --git a/x/amm/keeper/pool_test.go b/x/amm/keeper/pool_test.go index cf083f361..0ba7bf67a 100644 --- a/x/amm/keeper/pool_test.go +++ b/x/amm/keeper/pool_test.go @@ -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 { diff --git a/x/amm/keeper/query_denom_liquidity_test.go b/x/amm/keeper/query_denom_liquidity_test.go index e520b11dd..d4b3b1464 100644 --- a/x/amm/keeper/query_denom_liquidity_test.go +++ b/x/amm/keeper/query_denom_liquidity_test.go @@ -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) diff --git a/x/amm/keeper/query_pool_test.go b/x/amm/keeper/query_pool_test.go index f0bd9efc3..dca994bf0 100644 --- a/x/amm/keeper/query_pool_test.go +++ b/x/amm/keeper/query_pool_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -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) diff --git a/x/assetprofile/client/cli/query_entry_test.go b/x/assetprofile/client/cli/query_entry_test.go index e0742d780..0aed44b9d 100644 --- a/x/assetprofile/client/cli/query_entry_test.go +++ b/x/assetprofile/client/cli/query_entry_test.go @@ -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() diff --git a/x/assetprofile/client/cli/tx.go b/x/assetprofile/client/cli/tx.go index 2539acde4..417351645 100644 --- a/x/assetprofile/client/cli/tx.go +++ b/x/assetprofile/client/cli/tx.go @@ -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{ diff --git a/x/assetprofile/keeper/entry_test.go b/x/assetprofile/keeper/entry_test.go index 92594e39a..22c7de350 100644 --- a/x/assetprofile/keeper/entry_test.go +++ b/x/assetprofile/keeper/entry_test.go @@ -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 { diff --git a/x/assetprofile/keeper/msg_server_entry_test.go b/x/assetprofile/keeper/msg_server_entry_test.go index f20afae68..02a25257f 100644 --- a/x/assetprofile/keeper/msg_server_entry_test.go +++ b/x/assetprofile/keeper/msg_server_entry_test.go @@ -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) diff --git a/x/assetprofile/keeper/query_entry_test.go b/x/assetprofile/keeper/query_entry_test.go index fe74b173c..9717bf205 100644 --- a/x/assetprofile/keeper/query_entry_test.go +++ b/x/assetprofile/keeper/query_entry_test.go @@ -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) diff --git a/x/assetprofile/simulation/entry.go b/x/assetprofile/simulation/entry.go index 5242fea94..699519501 100644 --- a/x/assetprofile/simulation/entry.go +++ b/x/assetprofile/simulation/entry.go @@ -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, diff --git a/x/burner/client/cli/query_history_test.go b/x/burner/client/cli/query_history_test.go index 2d48a631a..b5ceed3e2 100644 --- a/x/burner/client/cli/query_history_test.go +++ b/x/burner/client/cli/query_history_test.go @@ -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() diff --git a/x/burner/client/cli/tx.go b/x/burner/client/cli/tx.go index 64e0c7197..9d782dbc7 100644 --- a/x/burner/client/cli/tx.go +++ b/x/burner/client/cli/tx.go @@ -2,7 +2,6 @@ package cli import ( "fmt" - "time" "github.com/spf13/cobra" @@ -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{ diff --git a/x/burner/keeper/history_test.go b/x/burner/keeper/history_test.go index f5e753b1d..887301d19 100644 --- a/x/burner/keeper/history_test.go +++ b/x/burner/keeper/history_test.go @@ -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 { diff --git a/x/burner/keeper/query_history_test.go b/x/burner/keeper/query_history_test.go index 1d2ead025..21a30128f 100644 --- a/x/burner/keeper/query_history_test.go +++ b/x/burner/keeper/query_history_test.go @@ -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) diff --git a/x/commitment/client/cli/tx.go b/x/commitment/client/cli/tx.go index 5f6f3f809..cdc85cc47 100644 --- a/x/commitment/client/cli/tx.go +++ b/x/commitment/client/cli/tx.go @@ -2,7 +2,6 @@ package cli import ( "fmt" - "time" "github.com/spf13/cobra" @@ -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{ diff --git a/x/commitment/client/cli/tx_update_vesting_info_test.go b/x/commitment/client/cli/tx_update_vesting_info_test.go index de1b56425..edba6692f 100644 --- a/x/commitment/client/cli/tx_update_vesting_info_test.go +++ b/x/commitment/client/cli/tx_update_vesting_info_test.go @@ -1,7 +1,6 @@ package cli_test import ( - "strconv" "testing" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" @@ -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() diff --git a/x/epochs/keeper/grpc_query_test.go b/x/epochs/keeper/grpc_query_test.go index 0f0a170aa..5caf44d21 100644 --- a/x/epochs/keeper/grpc_query_test.go +++ b/x/epochs/keeper/grpc_query_test.go @@ -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) diff --git a/x/incentive/client/cli/tx.go b/x/incentive/client/cli/tx.go index bef3a26ef..85c359915 100644 --- a/x/incentive/client/cli/tx.go +++ b/x/incentive/client/cli/tx.go @@ -4,7 +4,6 @@ import ( "fmt" "strconv" "strings" - "time" "github.com/spf13/cobra" "github.com/spf13/pflag" @@ -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 diff --git a/x/incentive/client/cli/tx_update_incentive_params_test.go b/x/incentive/client/cli/tx_update_incentive_params_test.go index 9610dfa8a..7eeb1d1b7 100644 --- a/x/incentive/client/cli/tx_update_incentive_params_test.go +++ b/x/incentive/client/cli/tx_update_incentive_params_test.go @@ -1,7 +1,6 @@ package cli_test import ( - "strconv" "testing" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" @@ -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() diff --git a/x/leveragelp/client/cli/tx.go b/x/leveragelp/client/cli/tx.go index 070a0abbc..35c9257a8 100644 --- a/x/leveragelp/client/cli/tx.go +++ b/x/leveragelp/client/cli/tx.go @@ -2,7 +2,6 @@ package cli import ( "fmt" - "time" "github.com/spf13/cobra" @@ -11,13 +10,6 @@ import ( "github.com/elys-network/elys/x/leveragelp/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{ diff --git a/x/leveragelp/keeper/pool_test.go b/x/leveragelp/keeper/pool_test.go index 9df16df30..1c5e47d9c 100644 --- a/x/leveragelp/keeper/pool_test.go +++ b/x/leveragelp/keeper/pool_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -12,9 +11,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 { diff --git a/x/leveragelp/keeper/query_pool_test.go b/x/leveragelp/keeper/query_pool_test.go index cb1ba8745..01c568c7c 100644 --- a/x/leveragelp/keeper/query_pool_test.go +++ b/x/leveragelp/keeper/query_pool_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -15,9 +14,6 @@ import ( "github.com/elys-network/elys/x/leveragelp/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestPoolQuerySingle(t *testing.T) { keeper, ctx := keepertest.LeveragelpKeeper(t) wctx := sdk.WrapSDKContext(ctx) diff --git a/x/margin/client/cli/query_get_positions_by_pool_test.go b/x/margin/client/cli/query_get_positions_by_pool_test.go index f64ad1292..8c71d7443 100644 --- a/x/margin/client/cli/query_get_positions_by_pool_test.go +++ b/x/margin/client/cli/query_get_positions_by_pool_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -15,9 +14,6 @@ import ( "github.com/elys-network/elys/x/margin/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestShowMTPByPool(t *testing.T) { net, objs := networkWithMTPObjects(t, 2) diff --git a/x/margin/client/cli/query_get_positions_for_address_test.go b/x/margin/client/cli/query_get_positions_for_address_test.go index 03ac81ce2..3b3e2d4ce 100644 --- a/x/margin/client/cli/query_get_positions_for_address_test.go +++ b/x/margin/client/cli/query_get_positions_for_address_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -15,9 +14,6 @@ import ( "github.com/elys-network/elys/x/margin/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestShowMTPByAddress(t *testing.T) { net, objs := networkWithMTPObjects(t, 2) diff --git a/x/margin/client/cli/query_get_positions_test.go b/x/margin/client/cli/query_get_positions_test.go index f01180971..c83a2288a 100644 --- a/x/margin/client/cli/query_get_positions_test.go +++ b/x/margin/client/cli/query_get_positions_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -14,9 +13,6 @@ import ( "github.com/elys-network/elys/x/margin/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestListPositions(t *testing.T) { net, objs := networkWithMTPObjects(t, 5) diff --git a/x/margin/client/cli/query_get_status_test.go b/x/margin/client/cli/query_get_status_test.go index 02a104fe2..82346eaa8 100644 --- a/x/margin/client/cli/query_get_status_test.go +++ b/x/margin/client/cli/query_get_status_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -13,9 +12,6 @@ import ( "github.com/elys-network/elys/x/margin/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestGetStatus(t *testing.T) { net, _ := networkWithMTPObjects(t, 5) diff --git a/x/margin/client/cli/query_get_whitelist_test.go b/x/margin/client/cli/query_get_whitelist_test.go index 600462dbf..87d6029e8 100644 --- a/x/margin/client/cli/query_get_whitelist_test.go +++ b/x/margin/client/cli/query_get_whitelist_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -18,9 +17,6 @@ import ( "github.com/elys-network/elys/x/margin/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func networkWithWhitelistedObjects(t *testing.T, n int) (*network.Network, []string) { t.Helper() app := simapp.InitElysTestApp(true) diff --git a/x/margin/client/cli/query_is_whitelisted_test.go b/x/margin/client/cli/query_is_whitelisted_test.go index c8977185e..4afad0ee3 100644 --- a/x/margin/client/cli/query_is_whitelisted_test.go +++ b/x/margin/client/cli/query_is_whitelisted_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -15,9 +14,6 @@ import ( "github.com/elys-network/elys/x/margin/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestIsWhitelisted(t *testing.T) { net, objs := networkWithWhitelistedObjects(t, 2) diff --git a/x/margin/client/cli/query_mtp_test.go b/x/margin/client/cli/query_mtp_test.go index b28213864..967bc72e7 100644 --- a/x/margin/client/cli/query_mtp_test.go +++ b/x/margin/client/cli/query_mtp_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -20,9 +19,6 @@ import ( ptypes "github.com/elys-network/elys/x/parameter/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func networkWithMTPObjects(t *testing.T, n int) (*network.Network, []*types.MTP) { t.Helper() app := simapp.InitElysTestApp(true) diff --git a/x/margin/client/cli/query_open_estimation.go b/x/margin/client/cli/query_open_estimation.go index 9ea20de0a..914eeab62 100644 --- a/x/margin/client/cli/query_open_estimation.go +++ b/x/margin/client/cli/query_open_estimation.go @@ -40,7 +40,7 @@ func CmdOpenEstimation() *cobra.Command { return err } - takeProfitPriceStr, err := cmd.Flags().GetString(flagTakeProfitPrice) + takeProfitPriceStr, err := cmd.Flags().GetString(FlagTakeProfitPrice) if err != nil { return err } @@ -86,7 +86,7 @@ func CmdOpenEstimation() *cobra.Command { flags.AddQueryFlagsToCmd(cmd) cmd.Flags().String(FlagDiscount, "0.0", "discount to apply to the swap fee") - cmd.Flags().String(flagTakeProfitPrice, types.InfinitePriceString, "Optional take profit price") + cmd.Flags().String(FlagTakeProfitPrice, types.InfinitePriceString, "Optional take profit price") return cmd } diff --git a/x/margin/client/cli/query_params_test.go b/x/margin/client/cli/query_params_test.go index fceba2ee4..78958864c 100644 --- a/x/margin/client/cli/query_params_test.go +++ b/x/margin/client/cli/query_params_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -13,9 +12,6 @@ import ( "github.com/elys-network/elys/x/margin/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestGetParams(t *testing.T) { net, _ := networkWithMTPObjects(t, 0) diff --git a/x/margin/client/cli/query_pool_test.go b/x/margin/client/cli/query_pool_test.go index 5847f5079..509ac4e72 100644 --- a/x/margin/client/cli/query_pool_test.go +++ b/x/margin/client/cli/query_pool_test.go @@ -2,7 +2,6 @@ package cli_test import ( "fmt" - "strconv" "testing" tmcli "github.com/cometbft/cometbft/libs/cli" @@ -18,9 +17,6 @@ import ( "github.com/elys-network/elys/x/margin/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func networkWithPoolObjects(t *testing.T, n int) (*network.Network, []types.Pool) { t.Helper() cfg := network.DefaultConfig() diff --git a/x/margin/client/cli/tx.go b/x/margin/client/cli/tx.go index c35383c2b..5d0d071de 100644 --- a/x/margin/client/cli/tx.go +++ b/x/margin/client/cli/tx.go @@ -2,22 +2,16 @@ 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/margin/types" ) -var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds()) - const ( - FlagDiscount = "discount" - flagTakeProfitPrice = "take-profit" - flagPacketTimeoutTimestamp = "packet-timeout-timestamp" - listSeparator = "," + FlagDiscount = "discount" + FlagTakeProfitPrice = "take-profit" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/margin/client/cli/tx_close_test.go b/x/margin/client/cli/tx_close_test.go index b7e80d441..2db2106fa 100644 --- a/x/margin/client/cli/tx_close_test.go +++ b/x/margin/client/cli/tx_close_test.go @@ -1,7 +1,6 @@ package cli_test import ( - "strconv" "testing" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" @@ -10,9 +9,6 @@ import ( "github.com/elys-network/elys/x/margin/client/cli" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestClosePosition(t *testing.T) { net := setupNetwork(t) ctx := net.Validators[0].ClientCtx diff --git a/x/margin/client/cli/tx_dewhitelist_test.go b/x/margin/client/cli/tx_dewhitelist_test.go index ead51539c..81ab5ab12 100644 --- a/x/margin/client/cli/tx_dewhitelist_test.go +++ b/x/margin/client/cli/tx_dewhitelist_test.go @@ -1,7 +1,6 @@ package cli_test import ( - "strconv" "testing" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" @@ -13,9 +12,6 @@ import ( "github.com/elys-network/elys/x/margin/client/cli" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestGovDeWhitelist(t *testing.T) { net := setupNetwork(t) ctx := net.Validators[0].ClientCtx diff --git a/x/margin/client/cli/tx_open.go b/x/margin/client/cli/tx_open.go index b7ea72b97..af195470f 100644 --- a/x/margin/client/cli/tx_open.go +++ b/x/margin/client/cli/tx_open.go @@ -45,7 +45,7 @@ elysd tx margin open short 5 uatom 100000000uusdc --take-profit 100 --from=treas return err } - takeProfitPriceStr, err := cmd.Flags().GetString(flagTakeProfitPrice) + takeProfitPriceStr, err := cmd.Flags().GetString(FlagTakeProfitPrice) if err != nil { return err } @@ -79,7 +79,7 @@ elysd tx margin open short 5 uatom 100000000uusdc --take-profit 100 --from=treas }, } - cmd.Flags().String(flagTakeProfitPrice, types.InfinitePriceString, "Optional take profit price") + cmd.Flags().String(FlagTakeProfitPrice, types.InfinitePriceString, "Optional take profit price") flags.AddTxFlagsToCmd(cmd) diff --git a/x/margin/client/cli/tx_open_test.go b/x/margin/client/cli/tx_open_test.go index 5cfb00419..d0d6c044e 100644 --- a/x/margin/client/cli/tx_open_test.go +++ b/x/margin/client/cli/tx_open_test.go @@ -1,7 +1,6 @@ package cli_test import ( - "strconv" "testing" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" @@ -12,9 +11,6 @@ import ( ptypes "github.com/elys-network/elys/x/parameter/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func setupNetwork(t *testing.T) *network.Network { t.Helper() diff --git a/x/margin/client/cli/tx_update_params_test.go b/x/margin/client/cli/tx_update_params_test.go index f2c3aa3e2..dff56e660 100644 --- a/x/margin/client/cli/tx_update_params_test.go +++ b/x/margin/client/cli/tx_update_params_test.go @@ -1,7 +1,6 @@ package cli_test import ( - "strconv" "testing" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" @@ -13,9 +12,6 @@ import ( "github.com/elys-network/elys/x/margin/client/cli" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestGovUpdateParams(t *testing.T) { net := setupNetwork(t) ctx := net.Validators[0].ClientCtx diff --git a/x/margin/client/cli/tx_whitelist_test.go b/x/margin/client/cli/tx_whitelist_test.go index 69554d59e..7fbb1722b 100644 --- a/x/margin/client/cli/tx_whitelist_test.go +++ b/x/margin/client/cli/tx_whitelist_test.go @@ -1,7 +1,6 @@ package cli_test import ( - "strconv" "testing" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" @@ -13,9 +12,6 @@ import ( "github.com/elys-network/elys/x/margin/client/cli" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestGovWhitelist(t *testing.T) { net := setupNetwork(t) ctx := net.Validators[0].ClientCtx diff --git a/x/margin/keeper/pool_test.go b/x/margin/keeper/pool_test.go index 50f1b3019..2c24c20a8 100644 --- a/x/margin/keeper/pool_test.go +++ b/x/margin/keeper/pool_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -12,9 +11,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 { diff --git a/x/margin/keeper/query_pool_test.go b/x/margin/keeper/query_pool_test.go index 9b9b21e14..5f1d965d0 100644 --- a/x/margin/keeper/query_pool_test.go +++ b/x/margin/keeper/query_pool_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -15,9 +14,6 @@ import ( "github.com/elys-network/elys/x/margin/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestPoolQuerySingle(t *testing.T) { keeper, ctx := keepertest.MarginKeeper(t) wctx := sdk.WrapSDKContext(ctx) diff --git a/x/oracle/client/cli/tx_oracle.go b/x/oracle/client/cli/flags.go similarity index 100% rename from x/oracle/client/cli/tx_oracle.go rename to x/oracle/client/cli/flags.go diff --git a/x/oracle/client/cli/query.go b/x/oracle/client/cli/query.go index dadc91395..8beb92ba4 100644 --- a/x/oracle/client/cli/query.go +++ b/x/oracle/client/cli/query.go @@ -2,15 +2,10 @@ package cli import ( "fmt" - // "strings" - - "github.com/spf13/cobra" "github.com/cosmos/cosmos-sdk/client" - // "github.com/cosmos/cosmos-sdk/client/flags" - // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/elys-network/elys/x/oracle/types" + "github.com/spf13/cobra" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/oracle/client/cli/query_coin_rates.go b/x/oracle/client/cli/query_band_price_result.go similarity index 100% rename from x/oracle/client/cli/query_coin_rates.go rename to x/oracle/client/cli/query_band_price_result.go diff --git a/x/oracle/client/cli/tx.go b/x/oracle/client/cli/tx.go index e1ce2d19c..d994916b0 100644 --- a/x/oracle/client/cli/tx.go +++ b/x/oracle/client/cli/tx.go @@ -4,7 +4,6 @@ import ( "fmt" "strconv" "strings" - "time" "github.com/spf13/cobra" @@ -14,18 +13,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/gov/client/cli" "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" - - // "github.com/cosmos/cosmos-sdk/client/flags" "github.com/elys-network/elys/x/oracle/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{ diff --git a/x/oracle/keeper/grpc_query_price_feeder_test.go b/x/oracle/keeper/grpc_query_price_feeder_test.go index c090c7770..a1cf4fc56 100644 --- a/x/oracle/keeper/grpc_query_price_feeder_test.go +++ b/x/oracle/keeper/grpc_query_price_feeder_test.go @@ -12,9 +12,6 @@ import ( "github.com/elys-network/elys/x/oracle/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func (suite *KeeperTestSuite) TestPriceFeederQuerySingle() { keeper, ctx := suite.app.OracleKeeper, suite.ctx wctx := sdk.WrapSDKContext(ctx) diff --git a/x/oracle/keeper/msg_server_price_feeder_test.go b/x/oracle/keeper/msg_server_price_feeder_test.go index 8a677b458..5386653e3 100644 --- a/x/oracle/keeper/msg_server_price_feeder_test.go +++ b/x/oracle/keeper/msg_server_price_feeder_test.go @@ -1,17 +1,12 @@ package keeper_test import ( - "strconv" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/elys-network/elys/x/oracle/keeper" "github.com/elys-network/elys/x/oracle/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func (suite *KeeperTestSuite) TestPriceFeederMsgServerUpdate() { creator := "A" diff --git a/x/oracle/keeper/msg_server_price_test.go b/x/oracle/keeper/msg_server_price_test.go index 12e4a0c87..9b82194f1 100644 --- a/x/oracle/keeper/msg_server_price_test.go +++ b/x/oracle/keeper/msg_server_price_test.go @@ -9,9 +9,6 @@ import ( "github.com/elys-network/elys/x/oracle/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func (suite *KeeperTestSuite) TestPriceMsgServerCreate() { k, ctx := suite.app.OracleKeeper, suite.ctx srv := keeper.NewMsgServerImpl(k) diff --git a/x/oracle/keeper/price_feeder.go b/x/oracle/keeper/price_feeder.go index a6d6872ea..1abea7210 100644 --- a/x/oracle/keeper/price_feeder.go +++ b/x/oracle/keeper/price_feeder.go @@ -27,10 +27,7 @@ func (k Keeper) GetPriceFeeder(ctx sdk.Context, feeder string) (val types.PriceF } // RemovePriceFeeder removes a priceFeeder from the store -func (k Keeper) RemovePriceFeeder( - ctx sdk.Context, - feeder string, -) { +func (k Keeper) RemovePriceFeeder(ctx sdk.Context, feeder string) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PriceFeederKeyPrefix)) store.Delete(types.PriceFeederKey(feeder)) } diff --git a/x/oracle/keeper/price_feeder_test.go b/x/oracle/keeper/price_feeder_test.go index 5e91c22b3..e46284c1f 100644 --- a/x/oracle/keeper/price_feeder_test.go +++ b/x/oracle/keeper/price_feeder_test.go @@ -9,9 +9,6 @@ import ( "github.com/elys-network/elys/x/oracle/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func createNPriceFeeder(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.PriceFeeder { // Clear existing price feeders // Current it does have one price feeder from genesis.json diff --git a/x/oracle/keeper/price_test.go b/x/oracle/keeper/price_test.go index 10bd2613f..7e00455d1 100644 --- a/x/oracle/keeper/price_test.go +++ b/x/oracle/keeper/price_test.go @@ -9,9 +9,6 @@ import ( "github.com/elys-network/elys/x/oracle/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func createNPrice(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Price { items := make([]types.Price, n) for i := range items { diff --git a/x/oracle/simulation/price.go b/x/oracle/simulation/price.go index db6ead965..d91a1eb15 100644 --- a/x/oracle/simulation/price.go +++ b/x/oracle/simulation/price.go @@ -13,9 +13,6 @@ import ( "github.com/elys-network/elys/x/oracle/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func SimulateMsgFeedPrice( ak types.AccountKeeper, bk types.BankKeeper, diff --git a/x/oracle/simulation/price_feeder.go b/x/oracle/simulation/price_feeder.go index 7fef5f477..401f08281 100644 --- a/x/oracle/simulation/price_feeder.go +++ b/x/oracle/simulation/price_feeder.go @@ -2,7 +2,6 @@ package simulation import ( "math/rand" - "strconv" simappparams "cosmossdk.io/simapp/params" "github.com/cosmos/cosmos-sdk/baseapp" @@ -13,9 +12,6 @@ import ( "github.com/elys-network/elys/x/oracle/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func SimulateMsgSetPriceFeeder( ak types.AccountKeeper, bk types.BankKeeper, diff --git a/x/oracle/types/types.go b/x/oracle/types/types.go deleted file mode 100644 index ab1254f4c..000000000 --- a/x/oracle/types/types.go +++ /dev/null @@ -1 +0,0 @@ -package types diff --git a/x/parameter/client/cli/tx.go b/x/parameter/client/cli/tx.go index 504c513b0..138255c95 100644 --- a/x/parameter/client/cli/tx.go +++ b/x/parameter/client/cli/tx.go @@ -2,7 +2,6 @@ package cli import ( "fmt" - "time" "github.com/spf13/cobra" @@ -13,13 +12,6 @@ import ( "github.com/elys-network/elys/x/parameter/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{ diff --git a/x/stablestake/client/cli/tx.go b/x/stablestake/client/cli/tx.go index d3abbfbc9..4aaa8e37c 100644 --- a/x/stablestake/client/cli/tx.go +++ b/x/stablestake/client/cli/tx.go @@ -2,7 +2,6 @@ package cli import ( "fmt" - "time" "github.com/spf13/cobra" @@ -11,13 +10,6 @@ import ( "github.com/elys-network/elys/x/stablestake/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{ diff --git a/x/tokenomics/client/cli/query_airdrop_test.go b/x/tokenomics/client/cli/query_airdrop_test.go index 7089a2442..392c6fec0 100644 --- a/x/tokenomics/client/cli/query_airdrop_test.go +++ b/x/tokenomics/client/cli/query_airdrop_test.go @@ -18,9 +18,6 @@ import ( "github.com/elys-network/elys/x/tokenomics/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func networkWithAirdropObjects(t *testing.T, n int) (*network.Network, []types.Airdrop) { t.Helper() cfg := network.DefaultConfig() diff --git a/x/tokenomics/client/cli/query_time_based_inflation_test.go b/x/tokenomics/client/cli/query_time_based_inflation_test.go index 42c539bf0..78177d2d8 100644 --- a/x/tokenomics/client/cli/query_time_based_inflation_test.go +++ b/x/tokenomics/client/cli/query_time_based_inflation_test.go @@ -18,9 +18,6 @@ import ( "github.com/elys-network/elys/x/tokenomics/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func networkWithTimeBasedInflationObjects(t *testing.T, n int) (*network.Network, []types.TimeBasedInflation) { t.Helper() cfg := network.DefaultConfig() diff --git a/x/tokenomics/client/cli/tx.go b/x/tokenomics/client/cli/tx.go index c6a4cc1b6..5656d7e86 100644 --- a/x/tokenomics/client/cli/tx.go +++ b/x/tokenomics/client/cli/tx.go @@ -2,7 +2,6 @@ package cli import ( "fmt" - "time" "github.com/spf13/cobra" @@ -11,13 +10,6 @@ import ( "github.com/elys-network/elys/x/tokenomics/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{ diff --git a/x/tokenomics/keeper/airdrop_test.go b/x/tokenomics/keeper/airdrop_test.go index ab28521cc..f158bbdca 100644 --- a/x/tokenomics/keeper/airdrop_test.go +++ b/x/tokenomics/keeper/airdrop_test.go @@ -12,9 +12,6 @@ import ( "github.com/stretchr/testify/require" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func createNAirdrop(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Airdrop { items := make([]types.Airdrop, n) for i := range items { diff --git a/x/tokenomics/keeper/msg_server_airdrop_test.go b/x/tokenomics/keeper/msg_server_airdrop_test.go index 1adc1ba8e..073dde85e 100644 --- a/x/tokenomics/keeper/msg_server_airdrop_test.go +++ b/x/tokenomics/keeper/msg_server_airdrop_test.go @@ -15,9 +15,6 @@ import ( "github.com/elys-network/elys/x/tokenomics/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestAirdropMsgServerCreate(t *testing.T) { k, ctx := keepertest.TokenomicsKeeper(t) srv := keeper.NewMsgServerImpl(*k) diff --git a/x/tokenomics/keeper/msg_server_time_based_inflation_test.go b/x/tokenomics/keeper/msg_server_time_based_inflation_test.go index 649ca46e1..e8d210a23 100644 --- a/x/tokenomics/keeper/msg_server_time_based_inflation_test.go +++ b/x/tokenomics/keeper/msg_server_time_based_inflation_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -15,9 +14,6 @@ import ( "github.com/elys-network/elys/x/tokenomics/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestTimeBasedInflationMsgServerCreate(t *testing.T) { k, ctx := keepertest.TokenomicsKeeper(t) srv := keeper.NewMsgServerImpl(*k) diff --git a/x/tokenomics/keeper/query_airdrop_test.go b/x/tokenomics/keeper/query_airdrop_test.go index d60a74898..93d028477 100644 --- a/x/tokenomics/keeper/query_airdrop_test.go +++ b/x/tokenomics/keeper/query_airdrop_test.go @@ -15,9 +15,6 @@ import ( "github.com/elys-network/elys/x/tokenomics/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestAirdropQuerySingle(t *testing.T) { keeper, ctx := keepertest.TokenomicsKeeper(t) wctx := sdk.WrapSDKContext(ctx) diff --git a/x/tokenomics/keeper/query_time_based_inflation_test.go b/x/tokenomics/keeper/query_time_based_inflation_test.go index bb644672f..b16547359 100644 --- a/x/tokenomics/keeper/query_time_based_inflation_test.go +++ b/x/tokenomics/keeper/query_time_based_inflation_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -15,9 +14,6 @@ import ( "github.com/elys-network/elys/x/tokenomics/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func TestTimeBasedInflationQuerySingle(t *testing.T) { keeper, ctx := keepertest.TokenomicsKeeper(t) wctx := sdk.WrapSDKContext(ctx) diff --git a/x/tokenomics/keeper/time_based_inflation_test.go b/x/tokenomics/keeper/time_based_inflation_test.go index 38e4ad64e..5ba54df9f 100644 --- a/x/tokenomics/keeper/time_based_inflation_test.go +++ b/x/tokenomics/keeper/time_based_inflation_test.go @@ -1,7 +1,6 @@ package keeper_test import ( - "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" @@ -12,9 +11,6 @@ import ( "github.com/stretchr/testify/require" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func createNTimeBasedInflation(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.TimeBasedInflation { items := make([]types.TimeBasedInflation, n) for i := range items { diff --git a/x/tokenomics/simulation/airdrop.go b/x/tokenomics/simulation/airdrop.go index 650b5a091..d6c6d53d0 100644 --- a/x/tokenomics/simulation/airdrop.go +++ b/x/tokenomics/simulation/airdrop.go @@ -13,9 +13,6 @@ import ( "github.com/elys-network/elys/x/tokenomics/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func SimulateMsgCreateAirdrop( ak types.AccountKeeper, bk types.BankKeeper, diff --git a/x/tokenomics/simulation/time_based_inflation.go b/x/tokenomics/simulation/time_based_inflation.go index 0142902da..8c2ae95f0 100644 --- a/x/tokenomics/simulation/time_based_inflation.go +++ b/x/tokenomics/simulation/time_based_inflation.go @@ -2,7 +2,6 @@ package simulation import ( "math/rand" - "strconv" simappparams "cosmossdk.io/simapp/params" "github.com/cosmos/cosmos-sdk/baseapp" @@ -13,9 +12,6 @@ import ( "github.com/elys-network/elys/x/tokenomics/types" ) -// Prevent strconv unused error -var _ = strconv.IntSize - func SimulateMsgCreateTimeBasedInflation( ak types.AccountKeeper, bk types.BankKeeper,