Skip to content

Commit

Permalink
chore: remove unused expected interface (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
zakir-code authored Sep 23, 2024
1 parent fccc2fb commit de10401
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 175 deletions.
170 changes: 34 additions & 136 deletions x/crosschain/mock/expected_keepers_mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 2 additions & 20 deletions x/crosschain/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
bank "github.com/cosmos/cosmos-sdk/x/bank/types"
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
tranfsertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
"github.com/ethereum/go-ethereum/common"
Expand All @@ -29,10 +28,6 @@ type StakingMsgServer interface {
Undelegate(goCtx context.Context, msg *stakingtypes.MsgUndelegate) (*stakingtypes.MsgUndelegateResponse, error)
}

type DistributionKeeper interface {
GetDelegatorStartingInfo(ctx sdk.Context, val sdk.ValAddress, del sdk.AccAddress) (period distributiontypes.DelegatorStartingInfo)
}

type DistributionMsgServer interface {
WithdrawDelegatorReward(goCtx context.Context, msg *distributiontypes.MsgWithdrawDelegatorReward) (*distributiontypes.MsgWithdrawDelegatorRewardResponse, error)
}
Expand All @@ -53,7 +48,7 @@ type BankKeeper interface {

type Erc20Keeper interface {
TransferAfter(ctx sdk.Context, sender sdk.AccAddress, receive string, coin, fee sdk.Coin, _, _ bool) error
ConvertCoin(goCtx context.Context, msg *erc20types.MsgConvertCoin) (*erc20types.MsgConvertCoinResponse, error)
ConvertCoin(ctx context.Context, msg *erc20types.MsgConvertCoin) (*erc20types.MsgConvertCoinResponse, error)
ConvertDenomToTarget(ctx sdk.Context, from sdk.AccAddress, coin sdk.Coin, fxTarget fxtypes.FxTarget) (sdk.Coin, error)
HookOutgoingRefund(ctx sdk.Context, moduleName string, txID uint64, sender sdk.AccAddress, totalCoin sdk.Coin) error
SetOutgoingTransferRelation(ctx sdk.Context, moduleName string, txID uint64)
Expand All @@ -72,7 +67,7 @@ type EVMKeeper interface {
}

type IBCTransferKeeper interface {
Transfer(goCtx context.Context, msg *tranfsertypes.MsgTransfer) (*tranfsertypes.MsgTransferResponse, error)
Transfer(ctx context.Context, msg *tranfsertypes.MsgTransfer) (*tranfsertypes.MsgTransferResponse, error)

SetDenomTrace(ctx sdk.Context, denomTrace tranfsertypes.DenomTrace)
}
Expand All @@ -83,16 +78,3 @@ type AccountKeeper interface {
SetAccount(ctx context.Context, acc sdk.AccountI)
NewAccountWithAddress(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
}

type (
ParamSet = paramtypes.ParamSet
// Subspace defines an interface that implements the legacy x/params Subspace
// type.
//
// NOTE: This is used solely for migration of x/params managed parameters.
Subspace interface {
GetParamSet(ctx sdk.Context, ps ParamSet)
HasKeyTable() bool
WithKeyTable(table paramtypes.KeyTable) paramtypes.Subspace
}
)
Loading

0 comments on commit de10401

Please sign in to comment.