forked from mirror/go-ethereum
parent
21fd722abc
commit
738d6e20f2
@ -1,18 +1,8 @@ |
|||||||
package ui |
package ui |
||||||
|
|
||||||
// ReturnInterface is returned by the Intercom interface when a method is called
|
import "github.com/ethereum/go-ethereum/core/types" |
||||||
type ReturnInterface interface { |
|
||||||
Get(i int) (interface{}, error) |
|
||||||
Size() int |
|
||||||
} |
|
||||||
|
|
||||||
// Frontend is the basic interface for calling arbitrary methods on something that
|
type Interface interface { |
||||||
// implements a front end (GUI, CLI, etc)
|
UnlockAccount(address []byte) bool |
||||||
type Frontend interface { |
ConfirmTransaction(tx *types.Transaction) bool |
||||||
// 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) |
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue