Skip to content

Commit e9f1e86

Browse files
committed
Merge branch 'develop' into poc-9
2 parents bb15261 + 827ea43 commit e9f1e86

2 files changed

Lines changed: 0 additions & 34 deletions

File tree

‎cmd/mist/ext_app.go‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/ethereum/go-ethereum/core"
2525
"github.com/ethereum/go-ethereum/core/types"
2626
"github.com/ethereum/go-ethereum/event"
27-
"github.com/ethereum/go-ethereum/ui/qt"
2827
"github.com/ethereum/go-ethereum/xeth"
2928
"github.com/obscuren/qml"
3029
)
@@ -116,7 +115,3 @@ func (app *ExtApplication) mainLoop() {
116115
}
117116
}
118117
}
119-
120-
func (self *ExtApplication) Watch(filterOptions map[string]interface{}, identifier string) {
121-
self.filters[identifier] = qt.NewFilterFromMap(filterOptions, self.eth)
122-
}

‎ui/qt/filter.go‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1 @@
11
package qt
2-
3-
import (
4-
"github.com/ethereum/go-ethereum/core"
5-
"github.com/ethereum/go-ethereum/ui"
6-
"github.com/obscuren/qml"
7-
)
8-
9-
func NewFilterFromMap(object map[string]interface{}, eth core.Backend) *core.Filter {
10-
filter := ui.NewFilterFromMap(object, eth)
11-
12-
if object["topics"] != nil {
13-
filter.SetTopics(makeTopics(object["topics"]))
14-
}
15-
16-
return filter
17-
}
18-
19-
func makeTopics(v interface{}) (d [][]byte) {
20-
if qList, ok := v.(*qml.List); ok {
21-
var s []string
22-
qList.Convert(&s)
23-
24-
d = ui.MakeTopics(s)
25-
} else if str, ok := v.(string); ok {
26-
d = ui.MakeTopics(str)
27-
}
28-
29-
return
30-
}

0 commit comments

Comments
 (0)