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 SendTx ¶
func SendTx(val uint32)
SendTx is called from the cli to send a transaction to the node
func ValidateCounterTx ¶
ValidateCounterTx valdates new transactions
Types ¶
type CounterExampleService ¶
type CounterExampleService struct{}
CounterExampleService implementation for counter
func (CounterExampleService) Execute ¶
func (srv CounterExampleService) Execute(tx *sdk.SignedTransaction, store sdk.RWStore) sdk.Result
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
Click to show internal directories.
Click to hide internal directories.