gov

package
v0.0.0-...-0494fad Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version        = "0.1"
	MaxVotingPower = 1<<53 - 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Governmint

type Governmint struct {
	*types.GovMeta
}

func NewGovernmint

func NewGovernmint() *Governmint

func (*Governmint) BeginBlock

func (gov *Governmint) BeginBlock(store base.KVStore, height uint64)

func (*Governmint) EndBlock

func (gov *Governmint) EndBlock(store base.KVStore, height uint64) []*tmsp.Validator

func (*Governmint) GetActiveProposal

func (gov *Governmint) GetActiveProposal(store base.KVStore, id string) (ap *types.ActiveProposal, ok bool)

func (*Governmint) GetEntity

func (gov *Governmint) GetEntity(store base.KVStore, addr []byte) (entity *types.Entity, ok bool)

func (*Governmint) GetGovMeta

func (gov *Governmint) GetGovMeta(store base.KVStore) (ap *types.GovMeta, ok bool)

func (*Governmint) GetGroup

func (gov *Governmint) GetGroup(store base.KVStore, id string) (group *types.Group, ok bool)

func (*Governmint) InitChain

func (gov *Governmint) InitChain(store base.KVStore, validators []*tmsp.Validator)

func (*Governmint) RunProposalTx

func (gov *Governmint) RunProposalTx(store base.KVStore, tx *types.ProposalTx) tmsp.Result

func (*Governmint) RunTx

func (gov *Governmint) RunTx(store base.KVStore, ctx base.CallContext, txBytes []byte) tmsp.Result

Implements basecoin.Plugin

func (*Governmint) RunTxParsed

func (gov *Governmint) RunTxParsed(store base.KVStore, tx types.Tx) tmsp.Result

func (*Governmint) RunVoteTx

func (gov *Governmint) RunVoteTx(store base.KVStore, tx *types.VoteTx) tmsp.Result

func (*Governmint) SetActiveProposal

func (gov *Governmint) SetActiveProposal(store base.KVStore, o *types.ActiveProposal)

func (*Governmint) SetEntity

func (gov *Governmint) SetEntity(store base.KVStore, o *types.Entity)

func (*Governmint) SetGovMeta

func (gov *Governmint) SetGovMeta(store base.KVStore, o *types.GovMeta)

func (*Governmint) SetGroup

func (gov *Governmint) SetGroup(store base.KVStore, o *types.Group)

func (*Governmint) SetOption

func (gov *Governmint) SetOption(store base.KVStore, key string, value string) (log string)

Jump to

Keyboard shortcuts

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