Skip to content

Commit

Permalink
rm proposal handler
Browse files Browse the repository at this point in the history
  • Loading branch information
gitferry committed Nov 18, 2024
1 parent 8426379 commit 8b76ab0
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 746 deletions.
12 changes: 5 additions & 7 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import (
"github.com/CosmWasm/wasmd/x/wasm"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
"github.com/babylonlabs-io/babylon/x/mint"
minttypes "github.com/babylonlabs-io/babylon/x/mint/types"
abci "github.com/cometbft/cometbft/abci/types"
cmtos "github.com/cometbft/cometbft/libs/os"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
Expand Down Expand Up @@ -91,14 +89,15 @@ import (
ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"
"github.com/spf13/cast"

"github.com/babylonlabs-io/babylon/app/ante"
"github.com/babylonlabs-io/babylon/app/upgrades"
bbn "github.com/babylonlabs-io/babylon/types"
finalityclient "github.com/babylonlabs-io/babylon/x/finality/client"
"github.com/babylonlabs-io/babylon/x/mint"
minttypes "github.com/babylonlabs-io/babylon/x/mint/types"

"github.com/babylonlabs-io/babylon/app/ante"
appkeepers "github.com/babylonlabs-io/babylon/app/keepers"
appparams "github.com/babylonlabs-io/babylon/app/params"
"github.com/babylonlabs-io/babylon/app/upgrades"
"github.com/babylonlabs-io/babylon/client/docs"
bbn "github.com/babylonlabs-io/babylon/types"
"github.com/babylonlabs-io/babylon/x/btccheckpoint"
btccheckpointtypes "github.com/babylonlabs-io/babylon/x/btccheckpoint/types"
"github.com/babylonlabs-io/babylon/x/btclightclient"
Expand Down Expand Up @@ -328,7 +327,6 @@ func NewBabylonApp(
govtypes.ModuleName: gov.NewAppModuleBasic(
[]govclient.ProposalHandler{
paramsclient.ProposalHandler,
finalityclient.ResumeFinalityHandler,
},
),
})
Expand Down
70 changes: 0 additions & 70 deletions client/parsers.go

This file was deleted.

25 changes: 0 additions & 25 deletions proto/babylon/finality/v1/gov.proto

This file was deleted.

93 changes: 0 additions & 93 deletions x/finality/client/cli/gov.go

This file was deleted.

11 changes: 0 additions & 11 deletions x/finality/client/proposal_handler.go

This file was deleted.

2 changes: 1 addition & 1 deletion x/finality/keeper/gov_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestHandleResumeFinalityProposal(t *testing.T) {
}

func generateNFpPks(t *testing.T, r *rand.Rand, n int) []bbntypes.BIP340PubKey {
fpPks := make([]bbntypes.BIP340PubKey, 0)
fpPks := make([]bbntypes.BIP340PubKey, 0, n)
for i := 0; i < n; i++ {
fpPk, err := datagen.GenRandomBIP340PubKey(r)
require.NoError(t, err)
Expand Down
2 changes: 0 additions & 2 deletions x/finality/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ var (
ErrVotingPowerTableNotUpdated = errorsmod.Register(ModuleName, 1113, "voting power table has not been updated")
ErrBTCStakingNotActivated = errorsmod.Register(ModuleName, 1114, "the BTC staking protocol is not activated yet")
ErrFinalityNotActivated = errorsmod.Register(ModuleName, 1115, "finality is not active yet")
ErrEmptyProposalFinalityProviders = errorsmod.Register(ModuleName, 1116, "the finality provider list in the ResumeFinality is empty")
ErrEmptyProposalHaltingHeight = errorsmod.Register(ModuleName, 1117, "the halting height in the ResumeFinality is empty")
)
81 changes: 0 additions & 81 deletions x/finality/types/gov.go

This file was deleted.

Loading

0 comments on commit 8b76ab0

Please sign in to comment.