diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-09 20:49:14 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-09 20:49:14 +0800 |
commit | 738d6e20f2a229aab15b767cb8ca2d2f9c2f9aa8 (patch) | |
tree | c7bb201102d2a678e95289cfe5130ea41c15b204 /ui | |
parent | 21fd722abc37d60d3f54b54efefab3db71309b57 (diff) | |
download | dexon-738d6e20f2a229aab15b767cb8ca2d2f9c2f9aa8.tar dexon-738d6e20f2a229aab15b767cb8ca2d2f9c2f9aa8.tar.gz dexon-738d6e20f2a229aab15b767cb8ca2d2f9c2f9aa8.tar.bz2 dexon-738d6e20f2a229aab15b767cb8ca2d2f9c2f9aa8.tar.lz dexon-738d6e20f2a229aab15b767cb8ca2d2f9c2f9aa8.tar.xz dexon-738d6e20f2a229aab15b767cb8ca2d2f9c2f9aa8.tar.zst dexon-738d6e20f2a229aab15b767cb8ca2d2f9c2f9aa8.zip |
Added ui.Interface to xeth
Diffstat (limited to 'ui')
-rw-r--r-- | ui/frontend.go | 18 |
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 } |