Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixedAddressRewardsAddressProvider ¶
type FixedAddressRewardsAddressProvider struct {
// contains filtered or unexported fields
}
FixedAddressRewardsAddressProvider provides a portion of auction profits to a fixed address (i.e. the proposer portion). This is useful for chains that do not have a distribution module.
func NewFixedAddressRewardsAddressProvider ¶
func NewFixedAddressRewardsAddressProvider( rewardsAddress sdk.AccAddress, ) *FixedAddressRewardsAddressProvider
NewFixedAddressRewardsAddressProvider creates a reward provider for a fixed address.
func (*FixedAddressRewardsAddressProvider) GetRewardsAddress ¶
func (p *FixedAddressRewardsAddressProvider) GetRewardsAddress(_ sdk.Context) (sdk.AccAddress, error)
type ProposerRewardsAddressProvider ¶
type ProposerRewardsAddressProvider struct {
// contains filtered or unexported fields
}
ProposerRewardsAddressProvider provides a portion of auction profits to the block proposer.
func NewProposerRewardsAddressProvider ¶
func NewProposerRewardsAddressProvider( distrKeeper types.DistributionKeeper, stakingKeeper types.StakingKeeper, ) *ProposerRewardsAddressProvider
NewProposerRewardsAddressProvider creates a reward provider for block proposers.
func (*ProposerRewardsAddressProvider) GetRewardsAddress ¶
func (p *ProposerRewardsAddressProvider) GetRewardsAddress(ctx sdk.Context) (sdk.AccAddress, error)
Click to show internal directories.
Click to hide internal directories.