dao

package
v0.0.0-...-8790121 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DaoTokenKey  = []byte{0x00} // key for the token of the dao
	FundsPoolKey = []byte{0x01} // key for the pool of coins
)

nolint

Functions

This section is empty.

Types

type Keeper

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

DAO Keeper

func (Keeper) DepositCoins

func (keeper Keeper) DepositCoins(ctx sdk.Context, depositor sdk.AccAddress, amount sdk.Coins) (Validator, sdk.Error)

func (Keeper) RemoveValidator

func (keeper Keeper) RemoveValidator(ctx sdk.Context, operAddr sdk.ValAddress) sdk.Error

func (Keeper) SetValidator

func (keeper Keeper) SetValidator(ctx sdk.Context, validator Validator)

func (Keeper) UpdateValidatorConsPubKey

func (keeper Keeper) UpdateValidatorConsPubKey(ctx sdk.Context, operAddr sdk.ValAddress, newConsPubKey sdk.ConsPubKey) sdk.Error

func (Keeper) UpdateValidatorDescription

func (keeper Keeper) UpdateValidatorDescription(ctx sdk.Context, operAddr sdk.ValAddress, updateDescription Description)

func (Keeper) UpdateValidatorPower

func (keeper Keeper) UpdateValidatorPower(ctx sdk.Context, operAddr sdk.ValAddress, newPower int64) sdk.Error

func (Keeper) ValidatorIterator

func (keeper Keeper) ValidatorIterator(ctx sdk.Context) sdk.Iterator

Jump to

Keyboard shortcuts

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