treasury

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyLunaTargetIssuance = []byte{0x01}
	KeyIncomePool         = []byte{0x02}
	PrefixClaim           = []byte{0x03}
)

nolint

Functions

func GetClaimKey

func GetClaimKey(account sdk.AccAddress) []byte

GetClaimKey is in format of prefixclaim||accaddress

Types

type Claim

type Claim struct {
	Account sdk.AccAddress
	Weight  sdk.Dec
}

type Continent

type Continent struct {
	Address sdk.AccAddress
	Name    string
	Website string
	Weight  sdk.Dec
}

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper of the treasury store

func NewKeeper

func NewKeeper(key sdk.StoreKey, cdc *codec.Codec,
	taxKeeper tax.Keeper, fk auth.FeeCollectionKeeper) Keeper

NewKeeper constructs a new keeper

func (Keeper) AddClaim

func (keeper Keeper) AddClaim(ctx sdk.Context, claim Claim)

func (Keeper) PayMintIncome

func (keeper Keeper) PayMintIncome(ctx sdk.Context, revenue sdk.Coins)

func (Keeper) PayTax

func (keeper Keeper) PayTax(ctx sdk.Context, revenue sdk.Coins)

Jump to

Keyboard shortcuts

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