-
Notifications
You must be signed in to change notification settings - Fork 0
/
expected_keepers.go
30 lines (23 loc) · 919 Bytes
/
expected_keepers.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
package keepers
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/distribution/types"
supply "github.com/cosmos/cosmos-sdk/x/supply/exported"
"github.com/coinexchain/cet-sdk/modules/asset"
)
type DistributionKeeper interface {
GetFeePool(ctx sdk.Context) (feePool types.FeePool)
SetFeePool(ctx sdk.Context, feePool types.FeePool)
GetFeePoolCommunityCoins(ctx sdk.Context) sdk.DecCoins
IterateValidatorOutstandingRewards(ctx sdk.Context, handler func(val sdk.ValAddress, rewards types.ValidatorOutstandingRewards) (stop bool))
}
type ExpectBankxKeeper interface {
TotalAmountOfCoin(ctx sdk.Context, denom string) sdk.Int
}
type ExpectSupplyKeeper interface {
GetModuleAccount(ctx sdk.Context, name string) supply.ModuleAccountI
GetSupply(ctx sdk.Context) (supply supply.SupplyI)
}
type AssetViewKeeper interface {
GetToken(ctx sdk.Context, symbol string) asset.Token
}