aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-10 08:22:38 +0800
committerobscuren <geffobscura@gmail.com>2015-03-10 08:22:38 +0800
commit0db4a0e898d09ffa7b6b1289e9a334edc0001cfa (patch)
treea0b5c8381ab482550ef4800a06d4db086d76a983 /ui
parent94e543bc398efbb5c712b6e4cb48d8a57eb3400d (diff)
parent0d64163fea3a266ceb71cb4c4ee5682052c9ca6c (diff)
downloaddexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.gz
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.bz2
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.lz
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.xz
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.zst
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.zip
Merge branch 'poc-9' into develop
Diffstat (limited to 'ui')
-rw-r--r--ui/frontend.go18
1 files changed, 4 insertions, 14 deletions
diff --git a/ui/frontend.go b/ui/frontend.go
index 22dc64fdf..413a24259 100644
--- a/ui/frontend.go
+++ b/ui/frontend.go
@@ -1,18 +1,8 @@
package ui
-// ReturnInterface is returned by the Intercom interface when a method is called
-type ReturnInterface interface {
- Get(i int) (interface{}, error)
- Size() int
-}
+import "github.com/ethereum/go-ethereum/core/types"
-// Frontend is the basic interface for calling arbitrary methods on something that
-// implements a front end (GUI, CLI, etc)
-type Frontend interface {
- // Checks whether a specific method is implemented
- Supports(method string) bool
- // Call calls the given method on interface it implements. This will return
- // an error with errNotImplemented if the method hasn't been implemented
- // and will return a ReturnInterface if it does.
- Call(method string) (ReturnInterface, error)
+type Interface interface {
+ UnlockAccount(address []byte) bool
+ ConfirmTransaction(tx *types.Transaction) bool
}