Skip to content

Commit

Permalink
gofumpt, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hard-nett committed Nov 2, 2023
1 parent c9ef45f commit 651e26a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 17 deletions.
4 changes: 2 additions & 2 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ import (
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

denomburn "github.com/terpnetwork/terp-core/v4/x/burn"
// clockkeeper "github.com/terpnetwork/terp-core/v2/x/clock/keeper"
// clocktypes "github.com/terpnetwork/terp-core/v2/x/clock/types"
// clockkeeper "github.com/terpnetwork/terp-core/v4/x/clock/keeper"
// clocktypes "github.com/terpnetwork/terp-core/v4/x/clock/types"
feesharekeeper "github.com/terpnetwork/terp-core/v4/x/feeshare/keeper"
feesharetypes "github.com/terpnetwork/terp-core/v4/x/feeshare/types"

Expand Down
2 changes: 1 addition & 1 deletion app/keepers/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
icqtypes "github.com/cosmos/ibc-apps/modules/async-icq/v7/types"
ibchookstypes "github.com/cosmos/ibc-apps/modules/ibc-hooks/v7/types"
ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
// clocktypes "github.com/terpnetwork/terp-core/v2/x/clock/types"
// clocktypes "github.com/terpnetwork/terp-core/v4/x/clock/types"
)

func (appKeepers *AppKeepers) GenerateKeys() {
Expand Down
4 changes: 2 additions & 2 deletions app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"

// "github.com/terpnetwork/terp-core/v2/x/clock"
// clocktypes "github.com/terpnetwork/terp-core/v2/x/clock/types"
// "github.com/terpnetwork/terp-core/v4/x/clock"
// clocktypes "github.com/terpnetwork/terp-core/v4/x/clock/types"

"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/x/auth"
Expand Down
6 changes: 1 addition & 5 deletions app/upgrades/v4/headstash-patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (

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

bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
"github.com/terpnetwork/terp-core/v4/app/upgrades"

Expand All @@ -17,9 +16,7 @@ import (
func returnFundsToCommunityPool(
ctx sdk.Context,
dk distrkeeper.Keeper,
bk bankkeeper.Keeper,
) error {

) {
headstashes := v3.GetHeadstashPayments()
total := int64(0)

Expand Down Expand Up @@ -50,7 +47,6 @@ func returnFundsToCommunityPool(
}
total += amount
}
return nil
}

// TODO: handle headstash-patch contract upload & instantiation
4 changes: 1 addition & 3 deletions app/upgrades/v4/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ func CreateV4UpgradeHandler(
logger.Info(fmt.Sprintf("upgraded global fee params to %s", minGasPrices))

// revert headstash allocation
if err := returnFundsToCommunityPool(ctx, keepers.DistrKeeper, keepers.BankKeeper); err != nil {
return nil, err
}
returnFundsToCommunityPool(ctx, keepers.DistrKeeper)

// print the burn module address
burnModule := keepers.AccountKeeper.GetModuleAddress(burn.ModuleName)
Expand Down
4 changes: 2 additions & 2 deletions interchaintest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ replace (
github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.22.2 //indirect
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
// For this nested module, you always want to replace the parent reference with the current worktree.
github.com/terpnetwork/terp-core/v2 => ../
github.com/terpnetwork/terp-core/v4 => ../

github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7
)
Expand All @@ -23,7 +23,7 @@ require (
github.com/docker/docker v24.0.4+incompatible
github.com/strangelove-ventures/interchaintest/v7 v7.0.0-20230721183422-fb937bb0e165
github.com/stretchr/testify v1.8.4
github.com/terpnetwork/terp-core/v2 v2.0.0-00010101000000-000000000000
github.com/terpnetwork/terp-core/v4 v4.0.0-00010101000000-000000000000
go.uber.org/zap v1.24.0
)

Expand Down
2 changes: 1 addition & 1 deletion interchaintest/module_clock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package interchaintest
// "github.com/strangelove-ventures/interchaintest/v7/ibc"
// "github.com/strangelove-ventures/interchaintest/v7/testutil"
// "github.com/stretchr/testify/require"
// clocktypes "github.com/terpnetwork/terp-core/v2/x/clock/types"
// clocktypes "github.com/terpnetwork/terp-core/v4/x/clock/types"

// helpers "github.com/terpnetwork/terp-core/tests/interchaintest/helpers"
// )
Expand Down
2 changes: 1 addition & 1 deletion interchaintest/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest"

// clocktypes "github.com/terpnetwork/terp-core/v2/x/clock/types"
// clocktypes "github.com/terpnetwork/terp-core/v4/x/clock/types"
feesharetypes "github.com/terpnetwork/terp-core/v4/x/feeshare/types"
tokenfactorytypes "github.com/terpnetwork/terp-core/v4/x/tokenfactory/types"

Expand Down

0 comments on commit 651e26a

Please sign in to comment.