aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/accounts.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-08 21:53:02 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-13 20:00:08 +0800
commitc5215fdd48231622dd56aba63a5187c6e42828d4 (patch)
tree98bdb47dccb9ef3deaa571585c32db9d19166a80 /accounts/accounts.go
parentfad5eb0a87abfc12812647344a26de8a43830182 (diff)
downloadgo-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.gz
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.bz2
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.lz
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.xz
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.zst
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.zip
accounts, cmd, internal, mobile, node: canonical account URLs
Diffstat (limited to 'accounts/accounts.go')
-rw-r--r--accounts/accounts.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/accounts/accounts.go b/accounts/accounts.go
index b367ee2f4..6c9e0bbce 100644
--- a/accounts/accounts.go
+++ b/accounts/accounts.go
@@ -29,19 +29,16 @@ import (
// by the optional URL field.
type Account struct {
Address common.Address `json:"address"` // Ethereum account address derived from the key
- URL string `json:"url"` // Optional resource locator within a backend
+ URL URL `json:"url"` // Optional resource locator within a backend
}
// Wallet represents a software or hardware wallet that might contain one or more
// accounts (derived from the same seed).
type Wallet interface {
- // Type retrieves a textual representation of the type of the wallet.
- Type() string
-
// URL retrieves the canonical path under which this wallet is reachable. It is
// user by upper layers to define a sorting order over all wallets from multiple
// backends.
- URL() string
+ URL() URL
// Status returns a textual status to aid the user in the current state of the
// wallet.