counter

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterPlugin

type CounterPlugin struct {
}

func New

func New() *CounterPlugin

func (*CounterPlugin) BeginBlock

func (cp *CounterPlugin) BeginBlock(store types.KVStore, hash []byte, header *abci.Header)

func (*CounterPlugin) EndBlock

func (cp *CounterPlugin) EndBlock(store types.KVStore, height uint64) (res abci.ResponseEndBlock)

func (*CounterPlugin) InitChain

func (cp *CounterPlugin) InitChain(store types.KVStore, vals []*abci.Validator)

func (*CounterPlugin) Name

func (cp *CounterPlugin) Name() string

func (*CounterPlugin) RunTx

func (cp *CounterPlugin) RunTx(store types.KVStore, ctx types.CallContext, txBytes []byte) (res abci.Result)

func (*CounterPlugin) SetOption

func (cp *CounterPlugin) SetOption(store types.KVStore, key, value string) (log string)

func (*CounterPlugin) StateKey

func (cp *CounterPlugin) StateKey() []byte

type CounterPluginState

type CounterPluginState struct {
	Counter   int
	TotalFees types.Coins
}

type CounterTx

type CounterTx struct {
	Valid bool
	Fee   types.Coins
}

Jump to

Keyboard shortcuts

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