You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Jae Kwon e40c4834a8 Replace SetEventsMode with SetOption 9 years ago
cmd Conform to go-wire 1.0 9 years ago
example Replace SetEventsMode with SetOption 9 years ago
server Replace SetEventsMode with SetOption 9 years ago
types Replace SetEventsMode with SetOption 9 years ago
.gitignore Add .gitignore file 9 years ago
LICENSE.md Add Apache2.0 license 9 years ago
README.md Replace SetEventsMode with SetOption 9 years ago

README.md

Tendermint Streaming Protocol (TMSP)

TMSP is a socket protocol, which means applications can be written in any programming language. TMSP is an asynchronous streaming protocol: message responses are written back asynchronously to the platform.

Applications must be deterministic.

Message types

AppendTx

  • Arguments:
    • TxBytes ([]byte)
  • Returns:
    • RetCode (int8)
  • Usage:
    Append and run a transaction. The transaction may or may not be final.

GetHash

  • Returns:
    • RetCode (int8)
    • Hash ([]byte)
  • Usage:
    Return a Merkle root hash of the application state

Commit

  • Returns:
    • RetCode (int8)
  • Usage:
    Finalize all appended transactions

Rollback

  • Returns:
    • RetCode (int8)
  • Usage:
    Roll back to the last commit

AddListener

  • Arguments:
    • EventKey (string)
  • Returns:
    • RetCode (int8)
  • Usage:
    Add event listener callback for events with given key.

RemoveListener

  • Arguments:
    • EventKey (string)
  • Returns:
    • RetCode (int8)
  • Usage:
    Remove event listener callback for events with given key.

Flush

  • Usage:
    Flush the response queue. Applications that implement types.Application need not implement this message -- it's handled by the project.

Info

  • Returns:
    • Data ([]string)
  • Usage:
    Return an array of strings about the application state. Application specific.

SetOption

  • Arguments:
    • Key (string)
    • Value (string)
  • Returns:
    • RetCode (int8)
  • Usage:
    Set application options. E.g. Key="mode", Value="mempool" for a mempool connection, or Key="mode", Value="consensus" for a consensus connection. Other options are application specific.