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.
 
 
 
 
 
 

22 lines
554 B

package types
type Application interface {
// Return application info
Info() (info string)
// Set application option (e.g. mode=mempool, mode=consensus)
SetOption(key string, value string) (log string)
// Append a tx
AppendTx(tx []byte) (code RetCode, result []byte, log string)
// Validate a tx for the mempool
CheckTx(tx []byte) (code RetCode, result []byte, log string)
// Return the application Merkle root hash
GetHash() (hash []byte, log string)
// Query for state
Query(query []byte) (code RetCode, result []byte, log string)
}