4 "github.com/vapor/common"
5 "github.com/vapor/crypto/ed25519/chainkd"
6 "github.com/vapor/protocol/bc"
9 // AccountStorer interface contains account storage functions.
10 type AccountStorer interface {
13 SetAccount(*Account, bool) error
14 GetAccountIDByAccountAlias(string) string
15 GetAccountByAccountID(string) (*Account, error)
16 GetAccountIndex([]chainkd.XPub) uint64
17 DeleteAccountByAccountAlias(string)
18 DeleteAccountByAccountID(string)
19 DeleteRawProgram(common.Hash)
20 DeleteBip44ContractIndex(string)
21 DeleteContractIndex(string)
22 GetContractIndex(string) []byte
23 GetAccountUTXOs(string) [][]byte
24 DeleteStandardUTXO(bc.Hash)
25 GetCoinbaseArbitrary() []byte
26 SetCoinbaseArbitrary([]byte)
27 GetMiningAddress() []byte
28 SetMiningAddress([]byte)
29 GetBip44ContractIndex(string, bool) []byte
30 GetRawProgram(common.Hash) []byte
31 GetAccounts(string) [][]byte
32 GetControlPrograms() ([][]byte, error)
33 SetRawProgram(common.Hash, []byte)
34 SetContractIndex(string, uint64)
35 SetBip44ContractIndex(string, bool, uint64)
37 GetStandardUTXO(bc.Hash) []byte
38 GetContractUTXO(bc.Hash) []byte
39 SetStandardUTXO(bc.Hash, []byte)