-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.go
34 lines (28 loc) · 1.07 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package types
import (
sdk "github.com/furyaxyz/fuxchain/libs/cosmos-sdk/types"
authexported "github.com/furyaxyz/fuxchain/libs/cosmos-sdk/x/auth/exported"
"github.com/furyaxyz/fuxchain/libs/cosmos-sdk/x/params"
govtypes "github.com/furyaxyz/fuxchain/x/gov/types"
)
// AccountKeeper defines the expected interface needed to retrieve account info.
type AccountKeeper interface {
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authexported.Account
}
// SupplyKeeper defines the expected interface needed to retrieve account balances.
type SupplyKeeper interface {
SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}
type Subspace interface {
GetParamSet(ctx sdk.Context, ps params.ParamSet)
SetParamSet(ctx sdk.Context, ps params.ParamSet)
}
// GovKeeper defines the expected gov Keeper
type GovKeeper interface {
GetDepositParams(ctx sdk.Context) govtypes.DepositParams
GetVotingParams(ctx sdk.Context) govtypes.VotingParams
}
type EvmKeeper interface {
AddInnerTx(...interface{})
DeleteInnerTx(...interface{})
}