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: 0

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