client

package
v0.0.0-...-53c0529 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProtocolVersion version.Protocol = 0x1
)

Functions

This section is empty.

Types

type State

type State struct {
	ChainID string `json:"chain_id"`
	Size    int64  `json:"size"`
	Height  int64  `json:"height"`
	AppHash []byte `json:"app_hash"`

	MessageTimestamp model.Timestamp `json:"message_timestamp"`
	// contains filtered or unexported fields
}

type Txn

type Txn struct {
	Type  string      `json:"type"`
	Data  interface{} `json:"data"`
	Nonce []byte      `json:"nonce"`
}

type WebChatApplication

type WebChatApplication struct {
	types.BaseApplication
	// contains filtered or unexported fields
}

func NewWebChatApplication

func NewWebChatApplication() *WebChatApplication

func (*WebChatApplication) CheckTx

func (app *WebChatApplication) CheckTx(tx []byte) types.ResponseCheckTx

func (*WebChatApplication) Commit

func (app *WebChatApplication) Commit() types.ResponseCommit

func (*WebChatApplication) DeliverTx

func (app *WebChatApplication) DeliverTx(tx []byte) types.ResponseDeliverTx

func (*WebChatApplication) GetState

func (app *WebChatApplication) GetState() *State

func (*WebChatApplication) Info

func (*WebChatApplication) Query

func (app *WebChatApplication) Query(reqQuery types.RequestQuery) (resQuery types.ResponseQuery)

Jump to

Keyboard shortcuts

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