aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/gui.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-24 06:01:22 +0800
committerobscuren <geffobscura@gmail.com>2014-04-24 06:01:22 +0800
commitbb72347acf8a82d1c20e8aae25c84e5dc75903dd (patch)
treec2ab64cf4bbbe23a9efab8efa1087ba775e12aa2 /ethereal/ui/gui.go
parent43f1214f97e52863b1f1ef7913991bef3d00c58e (diff)
downloaddexon-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar
dexon-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.gz
dexon-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.bz2
dexon-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.lz
dexon-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.xz
dexon-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.tar.zst
dexon-bb72347acf8a82d1c20e8aae25c84e5dc75903dd.zip
Minor fixes and sample coin "improvements"
Diffstat (limited to 'ethereal/ui/gui.go')
-rw-r--r--ethereal/ui/gui.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/ethereal/ui/gui.go b/ethereal/ui/gui.go
index 0e5d57c93..80498d718 100644
--- a/ethereal/ui/gui.go
+++ b/ethereal/ui/gui.go
@@ -8,7 +8,7 @@ import (
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethdb"
"github.com/ethereum/eth-go/ethutil"
- "github.com/niemeyer/qml"
+ "github.com/go-qml/qml"
"math/big"
"strings"
)
@@ -24,6 +24,18 @@ type Tx struct {
Contract bool
}
+type Key struct {
+ Address string
+}
+
+type KeyRing struct {
+ Keys []interface{}
+}
+
+func NewKeyRing(keys []interface{}) *KeyRing {
+ return &KeyRing{Keys: keys}
+}
+
func NewTxFromTransaction(tx *ethchain.Transaction) *Tx {
hash := hex.EncodeToString(tx.Hash())
sender := hex.EncodeToString(tx.Recipient)