Documentation ¶
Index ¶
Constants ¶
View Source
const ( AttributeTxHash = "txhash" EventTypeCertVote = "cert_vote" EventTypeSetCertVote = "set_cert_vote" )
Variables ¶
View Source
var ( // CustomParamsKey is the key custom CustomParamsKey = []byte{0x31} )
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶ added in v2.12.0
type AccountKeeper interface { AddressCodec() addresscodec.Codec GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx context.Context, name string) sdk.ModuleAccountI // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 SetModuleAccount(context.Context, sdk.ModuleAccountI) }
AccountKeeper defines the expected account keeper (noalias)
type CertKeeper ¶
type CertKeeper interface { IsCertifier(ctx context.Context, addr sdk.AccAddress) (bool, error) GetCertifier(ctx context.Context, certifierAddress sdk.AccAddress) (certtypes.Certifier, error) HasCertifierAlias(ctx context.Context, alias string) (bool, error) IsCertified(ctx context.Context, content string, certType string) bool GetAllCertifiers(ctx context.Context) (certifiers certtypes.Certifiers) }
type DistributionKeeper ¶ added in v2.12.0
type DistributionKeeper interface {
FundCommunityPool(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
DistributionKeeper defines the expected distribution keeper.
type StakingKeeper ¶
type StakingKeeper interface { ValidatorAddressCodec() addresscodec.Codec // iterate through bonded validators by operator address, execute func for each validator IterateBondedValidatorsByPower( context.Context, func(index int64, validator stakingtypes.ValidatorI) (stop bool), ) error TotalBondedTokens(context.Context) (math.Int, error) // total bonded tokens within the validator set IterateDelegations( ctx context.Context, delegator sdk.AccAddress, fn func(index int64, delegation stakingtypes.DelegationI) (stop bool), ) error }
StakingKeeper expected staking keeper (Validator and Delegator sets) (noalias)
Click to show internal directories.
Click to hide internal directories.