OSDN Git Service

add store.go
authorChengcheng Zhang <943420582@qq.com>
Thu, 20 Jun 2019 06:17:20 +0000 (14:17 +0800)
committerChengcheng Zhang <943420582@qq.com>
Thu, 20 Jun 2019 06:17:20 +0000 (14:17 +0800)
wallet/store.go [new file with mode: 0644]

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
+}