rewards

package
v1.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL