|
package core
|
|
|
|
import (
|
|
ctypes "github.com/tendermint/tendermint/rpc/core/types"
|
|
)
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
func TMSPQuery(query []byte) (*ctypes.ResultTMSPQuery, error) {
|
|
res := proxyAppQuery.QuerySync(query)
|
|
return &ctypes.ResultTMSPQuery{res}, nil
|
|
}
|
|
|
|
func TMSPInfo() (*ctypes.ResultTMSPInfo, error) {
|
|
res, tmspInfo, lastBlockInfo, configInfo := proxyAppQuery.InfoSync()
|
|
return &ctypes.ResultTMSPInfo{res, tmspInfo, lastBlockInfo, configInfo}, nil
|
|
}
|