OSDN Git Service

add store.go
[bytom/vapor.git] / wallet / store.go
diff --git a/wallet/store.go b/wallet/store.go
new file mode 100644 (file)
index 0000000..4b7b02d
--- /dev/null
@@ -0,0 +1,13 @@
+package wallet
+
+import (
+       "github.com/vapor/common"
+       "github.com/vapor/protocol/bc"
+)
+
+// DB interface contains wallet storage functions.
+type DB interface {
+       GetAssetDefinitionByAssetID(*bc.AssetID) []byte
+       GetRawProgramByAccountHash(common.Hash) []byte
+       GetAccountValueByAccountID(string) []byte
+}