refactor!(staking): remove comet crypto as a dep (#20295)

This commit is contained in:
Marko
2024-05-07 10:27:47 +00:00
committed by GitHub
parent 48d5ab41b9
commit fc84ff6f40
10 changed files with 47 additions and 58 deletions
-3
View File
@@ -1,8 +1,6 @@
package types
import (
cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1"
"cosmossdk.io/math"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
@@ -87,7 +85,6 @@ type ValidatorI interface {
IsUnbonding() bool // check if has status unbonding
GetOperator() string // operator address to receive/return validators coins
ConsPubKey() (cryptotypes.PubKey, error) // validation consensus pubkey (cryptotypes.PubKey)
TmConsPublicKey() (cmtprotocrypto.PublicKey, error) // validation consensus pubkey (CometBFT)
GetConsAddr() ([]byte, error) // validation consensus address
GetTokens() math.Int // validation tokens
GetBondedTokens() math.Int // validator bonded tokens