app

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// HomeDir is the name of the directory where all the tendermint data is stored for the node
	HomeDir = "counterdata"
)

Variables

This section is empty.

Functions

func CheckState

func CheckState()

CheckState queries the node for the latest confirmed state of the count

func RunApp

func RunApp()

RunApp sets up the menta application and starts the node

func SendTx

func SendTx(val uint32)

SendTx is called from the cli to send a transaction to the node

func ValidateCounterTx

func ValidateCounterTx(tx *sdk.SignedTransaction, store sdk.RWStore) sdk.Result

ValidateCounterTx valdates new transactions

Types

type CounterExampleService

type CounterExampleService struct{}

CounterExampleService implementation for counter

func (CounterExampleService) Execute

Execute runs the core logic

func (CounterExampleService) Init

func (srv CounterExampleService) Init(store sdk.RWStore)

Init set the initial state

func (CounterExampleService) Query

func (srv CounterExampleService) Query(key []byte, store sdk.QueryStore) sdk.Result

Query returns the current committed state

func (CounterExampleService) Route

func (srv CounterExampleService) Route() string

Route returns the registered name of the service

Jump to

Keyboard shortcuts

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