Big cleanup of app dir

StoreApp just the queries, BaseApp with handler/ticker
Ticker now defined top level, as an interface, with context
Name for info taken as parameter, start cmd uses commandline name
Cleaner compisition of apps.
This commit is contained in:
Ethan Frey
2017-10-20 13:42:03 +02:00
parent 3a16fa9482
commit f65215ad92
12 changed files with 202 additions and 204 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ test01GetInsecure() {
INFO=$(${CLIENT_EXE} rpc info)
assertTrue "line=${LINENO}, get info" "$?"
DATA=$(echo $INFO | jq .response.data)
assertEquals "line=${LINENO}, basecoin info" '"Basecoin v0.7.1"' "$DATA"
assertEquals "line=${LINENO}, basecoin info" '"basecoin v0.7.1"' "$DATA"
}
test02GetSecure() {
@@ -28,13 +28,9 @@ func TestCounterPlugin(t *testing.T) {
// logger := log.NewTracingLogger(log.NewTMLogger(os.Stdout))
h := NewHandler("gold")
bcApp, err := app.NewBasecoin(
h,
"",
0,
logger.With("module", "app"),
)
store, err := app.MockStoreApp("counter", logger)
require.Nil(err, "%+v", err)
bcApp := app.NewBaseApp(store, h, nil)
_, err = bcApp.InitState("base", "chain_id", chainID)
require.Nil(err, "%+v", err)