aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-05 17:56:05 +0800
committerobscuren <geffobscura@gmail.com>2014-05-05 17:56:05 +0800
commitdd45197bcd174e16adc3b738bf390cc3018a5a28 (patch)
tree13db37ed9ca5358c60f08cf4bd1a3ebb0ca0e22a /ethereal/ui
parent2582d719b2a8a3facac4410dd9a2ddaf5000f038 (diff)
downloadgo-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.gz
go-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.zst
go-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.zip
Added storage watch
Diffstat (limited to 'ethereal/ui')
-rw-r--r--ethereal/ui/ext_app.go7
-rw-r--r--ethereal/ui/html_container.go5
2 files changed, 5 insertions, 7 deletions
diff --git a/ethereal/ui/ext_app.go b/ethereal/ui/ext_app.go
index a215709d0..de5f15db6 100644
--- a/ethereal/ui/ext_app.go
+++ b/ethereal/ui/ext_app.go
@@ -6,7 +6,6 @@ import (
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethutil"
"github.com/go-qml/qml"
- "math/big"
)
type AppContainer interface {
@@ -18,7 +17,7 @@ type AppContainer interface {
NewBlock(*ethchain.Block)
ObjectChanged(*ethchain.StateObject)
- StorageChanged(*ethchain.StateObject, []byte, *big.Int)
+ StorageChanged(*ethchain.StorageState)
}
type ExtApplication struct {
@@ -105,8 +104,8 @@ out:
case object := <-app.changeChan:
if stateObject, ok := object.Resource.(*ethchain.StateObject); ok {
app.container.ObjectChanged(stateObject)
- } else if _, ok := object.Resource.(*big.Int); ok {
- //
+ } else if storageObject, ok := object.Resource.(*ethchain.StorageState); ok {
+ app.container.StorageChanged(storageObject)
}
}
}
diff --git a/ethereal/ui/html_container.go b/ethereal/ui/html_container.go
index e3e48bfcc..4f12aaaf6 100644
--- a/ethereal/ui/html_container.go
+++ b/ethereal/ui/html_container.go
@@ -6,7 +6,6 @@ import (
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethutil"
"github.com/go-qml/qml"
- "math/big"
"path/filepath"
)
@@ -65,8 +64,8 @@ func (app *HtmlApplication) ObjectChanged(stateObject *ethchain.StateObject) {
app.webView.Call("onObjectChangeCb", ethpub.NewPStateObject(stateObject))
}
-func (app *HtmlApplication) StorageChanged(stateObject *ethchain.StateObject, addr []byte, value *big.Int) {
- app.webView.Call("onStorageChangeCb", nil)
+func (app *HtmlApplication) StorageChanged(storageObject *ethchain.StorageState) {
+ app.webView.Call("onStorageChangeCb", ethpub.NewPStorageState(storageObject))
}
func (app *HtmlApplication) Destroy() {