Skip to content

Commit

Permalink
Cleanup: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
bermuell committed Nov 7, 2023
1 parent fe9f5f5 commit 9dbf847
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions x/ccv/provider/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import (
"encoding/json"
"fmt"
"strings"
"time"

errorsmod "cosmossdk.io/errors"
"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
ccvtypes "github.com/cosmos/interchain-security/v3/x/ccv/types"
)

Expand Down Expand Up @@ -111,34 +109,6 @@ func ParseConsumerKeyFromJson(jsonStr string) (pkType, key string, err error) {
return pubKey.Type, pubKey.Key, nil
}

// NewMsgConsumerAddition creates a new MsgConsumerAddition instance.
func NewMsgConsumerAddition(signer, chainID string,
initialHeight clienttypes.Height, genesisHash, binaryHash []byte,
spawnTime time.Time,
consumerRedistributionFraction string,
blocksPerDistributionTransmission int64,
distributionTransmissionChannel string,
historicalEntries int64,
ccvTimeoutPeriod time.Duration,
transferTimeoutPeriod time.Duration,
unbondingPeriod time.Duration) *MsgConsumerAddition {
return &MsgConsumerAddition{
ChainId: chainID,
InitialHeight: initialHeight,
GenesisHash: genesisHash,
BinaryHash: binaryHash,
SpawnTime: spawnTime,
ConsumerRedistributionFraction: consumerRedistributionFraction,
BlocksPerDistributionTransmission: blocksPerDistributionTransmission,
DistributionTransmissionChannel: distributionTransmissionChannel,
HistoricalEntries: historicalEntries,
CcvTimeoutPeriod: ccvTimeoutPeriod,
TransferTimeoutPeriod: transferTimeoutPeriod,
UnbondingPeriod: unbondingPeriod,
Signer: signer,
}
}

// GetSigners implements the sdk.Msg interface. It returns the address(es) that
// must sign over msg.GetSignBytes().
// If the validator address is not same as delegator's, then the validator must
Expand Down Expand Up @@ -208,12 +178,6 @@ func (msg *MsgConsumerAddition) ValidateBasic() error {
return nil
}

// NewMsgConsumerRemoval creates a new MsgConsumerRemoval instance
func NewMsgConsumerRemoval(signer string) *MsgConsumerRemoval {
//@bermuell: TODO finsh implementation!
return &MsgConsumerRemoval{}
}

func (msg *MsgConsumerRemoval) ValidateBasic() error {

if strings.TrimSpace(msg.ChainId) == "" {
Expand All @@ -226,12 +190,6 @@ func (msg *MsgConsumerRemoval) ValidateBasic() error {
return nil
}

// MsgChangeRewardDenoms creates a new MsgChangeRewardDenoms instance
func NewMsgChangeRewardDenoms(signer string) *MsgChangeRewardDenoms {
//@bermuell: TODO finsh implementation!
return &MsgChangeRewardDenoms{}
}

func (msg *MsgChangeRewardDenoms) ValidateBasic() error {
emptyDenomsToAdd := len(msg.DenomsToAdd) == 0
emptyDenomsToRemove := len(msg.DenomsToRemove) == 0
Expand Down

0 comments on commit 9dbf847

Please sign in to comment.