From 7a0311b46e299aa32a02637769ea12859b9c8220 Mon Sep 17 00:00:00 2001 From: Cirrus Gai Date: Fri, 20 Sep 2024 18:01:51 +0800 Subject: [PATCH] chore: Add unjail-finality-provider cmd (#60) --- finality-provider/cmd/fpd/daemon/export.go | 10 +++++----- finality-provider/cmd/fpd/daemon/keys.go | 5 +++-- finality-provider/cmd/fpd/daemon/tx.go | 2 ++ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/finality-provider/cmd/fpd/daemon/export.go b/finality-provider/cmd/fpd/daemon/export.go index c601aa6a..8686628b 100644 --- a/finality-provider/cmd/fpd/daemon/export.go +++ b/finality-provider/cmd/fpd/daemon/export.go @@ -6,16 +6,16 @@ import ( "fmt" "cosmossdk.io/math" - fpcmd "github.com/babylonlabs-io/finality-provider/finality-provider/cmd" - fpcfg "github.com/babylonlabs-io/finality-provider/finality-provider/config" - dc "github.com/babylonlabs-io/finality-provider/finality-provider/service/client" + bbn "github.com/babylonlabs-io/babylon/types" + btcstktypes "github.com/babylonlabs-io/babylon/x/btcstaking/types" "github.com/cosmos/cosmos-sdk/client" sdkflags "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/spf13/cobra" - bbn "github.com/babylonlabs-io/babylon/types" - btcstktypes "github.com/babylonlabs-io/babylon/x/btcstaking/types" + fpcmd "github.com/babylonlabs-io/finality-provider/finality-provider/cmd" + fpcfg "github.com/babylonlabs-io/finality-provider/finality-provider/config" + dc "github.com/babylonlabs-io/finality-provider/finality-provider/service/client" ) // FinalityProviderSigned wraps the finality provider by adding the diff --git a/finality-provider/cmd/fpd/daemon/keys.go b/finality-provider/cmd/fpd/daemon/keys.go index dbc9fbec..e4cf9e42 100644 --- a/finality-provider/cmd/fpd/daemon/keys.go +++ b/finality-provider/cmd/fpd/daemon/keys.go @@ -3,13 +3,14 @@ package daemon import ( "strings" - helper "github.com/babylonlabs-io/finality-provider/finality-provider/cmd" - fpcfg "github.com/babylonlabs-io/finality-provider/finality-provider/config" "github.com/cosmos/cosmos-sdk/client" sdkflags "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/keys" goflags "github.com/jessevdk/go-flags" "github.com/spf13/cobra" + + helper "github.com/babylonlabs-io/finality-provider/finality-provider/cmd" + fpcfg "github.com/babylonlabs-io/finality-provider/finality-provider/config" ) // CommandKeys returns the keys group command and updates the add command to do a diff --git a/finality-provider/cmd/fpd/daemon/tx.go b/finality-provider/cmd/fpd/daemon/tx.go index f13339d2..9a5897de 100644 --- a/finality-provider/cmd/fpd/daemon/tx.go +++ b/finality-provider/cmd/fpd/daemon/tx.go @@ -9,6 +9,7 @@ import ( btcstakingcli "github.com/babylonlabs-io/babylon/x/btcstaking/client/cli" btcstakingtypes "github.com/babylonlabs-io/babylon/x/btcstaking/types" + finalitycli "github.com/babylonlabs-io/babylon/x/finality/client/cli" sdk "github.com/cosmos/cosmos-sdk/types" authclient "github.com/cosmos/cosmos-sdk/x/auth/client" authcli "github.com/cosmos/cosmos-sdk/x/auth/client/cli" @@ -27,6 +28,7 @@ func CommandTxs() *cobra.Command { cmd.AddCommand( authcli.GetSignCommand(), btcstakingcli.NewCreateFinalityProviderCmd(), + finalitycli.NewUnjailFinalityProviderCmd(), NewValidateSignedFinalityProviderCmd(), )