aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/qml_container.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/qml_container.go')
-rw-r--r--ethereal/qml_container.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/ethereal/qml_container.go b/ethereal/qml_container.go
index babb9ceab..8c9ea0a8f 100644
--- a/ethereal/qml_container.go
+++ b/ethereal/qml_container.go
@@ -5,7 +5,7 @@ import (
"runtime"
"github.com/ethereum/eth-go/ethchain"
- "github.com/ethereum/eth-go/ethpub"
+ "github.com/ethereum/eth-go/ethpipe"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethutil"
"gopkg.in/qml.v1"
@@ -49,18 +49,10 @@ func (app *QmlApplication) NewWatcher(quitChan chan bool) {
// Events
func (app *QmlApplication) NewBlock(block *ethchain.Block) {
- pblock := &ethpub.PBlock{Number: int(block.BlockInfo().Number), Hash: ethutil.Bytes2Hex(block.Hash())}
+ pblock := &ethpipe.JSBlock{Number: int(block.BlockInfo().Number), Hash: ethutil.Bytes2Hex(block.Hash())}
app.win.Call("onNewBlockCb", pblock)
}
-func (app *QmlApplication) ObjectChanged(stateObject *ethstate.StateObject) {
- app.win.Call("onObjectChangeCb", ethpub.NewPStateObject(stateObject))
-}
-
-func (app *QmlApplication) StorageChanged(storageObject *ethstate.StorageState) {
- app.win.Call("onStorageChangeCb", ethpub.NewPStorageState(storageObject))
-}
-
func (self *QmlApplication) Messages(msgs ethstate.Messages, id string) {
fmt.Println("IMPLEMENT QML APPLICATION MESSAGES METHOD")
}