Skip to content

Commit

Permalink
reconcile: expected_keepers.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Feb 12, 2024
1 parent e92e1cb commit d12e7e2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions x/supplier/types/expected_keepers.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
package types

//go:generate mockgen -destination ../../../testutil/supplier/mocks/expected_keepers_mock.go -package mocks . AccountKeeper,BankKeeper,SessionKeeper

import (
"context"

sdk "github.com/cosmos/cosmos-sdk/types"

sessiontypes "github.com/pokt-network/poktroll/x/session/types"
)

type SessionKeeper interface {
// TODO Add methods imported from session should be defined here
GetSession(context.Context, *sessiontypes.QueryGetSessionRequest) (*sessiontypes.QueryGetSessionResponse, error)
}

// AccountKeeper defines the expected interface for the Account module.
Expand All @@ -18,7 +22,8 @@ type AccountKeeper interface {

// BankKeeper defines the expected interface for the Bank module.
type BankKeeper interface {
SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins
DelegateCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
// Methods imported from bank should be defined here
}

Expand Down

0 comments on commit d12e7e2

Please sign in to comment.