Documentation ¶
Index ¶
- func ToKey(k interface{}) datastore.Key
- type HdWallet
- type History
- type HistoryStore
- type KeyStore
- type MsgState
- type MsigWallet
- type NodeInfo
- type NodeStore
- type PrivateWallet
- type ScryptStore
- type StateStore
- type StoredIndex
- type StoredState
- type WalletDB
- func (db *WalletDB) DeleteLoginPassword() error
- func (db *WalletDB) DeleteMasterPassword() error
- func (db *WalletDB) DeleteMnemonic() error
- func (db *WalletDB) DeleteMsig(addr string) error
- func (db *WalletDB) DeleteNode(name string) error
- func (db *WalletDB) DeletePrivate(addr string) error
- func (db *WalletDB) GetHistory(addr string, nonce uint64) (*History, error)
- func (db *WalletDB) GetLoginPassword() ([]byte, error)
- func (db *WalletDB) GetMasterPassword() ([]byte, error)
- func (db *WalletDB) GetMnemonic() (*HdWallet, error)
- func (db *WalletDB) GetMsig(addr string) (*MsigWallet, error)
- func (db *WalletDB) GetNode(name string) (*NodeInfo, error)
- func (db *WalletDB) GetPrivate(addr string) (*PrivateWallet, error)
- func (db *WalletDB) HasLoginPassword() (bool, error)
- func (db *WalletDB) HasMasterPassword() (bool, error)
- func (db *WalletDB) HasMnemonic() (bool, error)
- func (db *WalletDB) HistoryList(addr string) ([]History, error)
- func (db *WalletDB) MnemonicIndex() (uint64, error)
- func (db *WalletDB) MsigWalletList() ([]MsigWallet, error)
- func (db *WalletDB) NextMnemonicIndex() (uint64, error)
- func (db *WalletDB) NodeList() ([]NodeInfo, error)
- func (db *WalletDB) SetHistory(msg *History) error
- func (db *WalletDB) SetLoginPassword(password []byte) error
- func (db *WalletDB) SetMasterPassword(password []byte) error
- func (db *WalletDB) SetMnemonic(hdWallet *HdWallet) error
- func (db *WalletDB) SetMsig(msigWallet *MsigWallet) error
- func (db *WalletDB) SetNode(nodeInfo *NodeInfo) error
- func (db *WalletDB) SetPrivate(priWallet *PrivateWallet) error
- func (db *WalletDB) UpdateHistory(msg *History) error
- func (db *WalletDB) UpdateLoginPassword(password []byte) error
- func (db *WalletDB) UpdateMasterPassword(password []byte) error
- func (db *WalletDB) UpdateMnemonic(hdWallet *HdWallet) error
- func (db *WalletDB) UpdateMsig(msigWallet *MsigWallet) error
- func (db *WalletDB) UpdateNode(nodeInfo *NodeInfo) error
- func (db *WalletDB) UpdatePrivate(priWallet *PrivateWallet) error
- func (db *WalletDB) WalletList() ([]PrivateWallet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type History ¶
type History struct { Version uint64 `json:"version"` To string `json:"to"` From string `json:"from"` Nonce uint64 `json:"nonce"` Value int64 `json:"value"` GasLimit int64 `json:"gas_limit"` GasFeeCap int64 `json:"gas_feecap"` GasPremium int64 `json:"gas_premium"` Method uint64 `json:"method"` Params string `json:"params"` ParamName string `json:"param_name"` TxCid string `json:"tx_cid"` TxState MsgState `json:"tx_state"` Detail string `json:"detail"` }
type HistoryStore ¶
type HistoryStore struct {
// contains filtered or unexported fields
}
type MsigWallet ¶
type PrivateWallet ¶
type ScryptStore ¶
type ScryptStore struct {
// contains filtered or unexported fields
}
type StateStore ¶
type StateStore struct {
// contains filtered or unexported fields
}
func NewStateStore ¶
func NewStateStore(ds datastore.Datastore) *StateStore
func (*StateStore) Begin ¶
func (st *StateStore) Begin(i interface{}, state interface{}, force bool) error
func (*StateStore) Get ¶
func (st *StateStore) Get(i interface{}) *StoredState
func (*StateStore) Has ¶
func (st *StateStore) Has(i interface{}) (bool, error)
func (*StateStore) List ¶
func (st *StateStore) List(out interface{}) error
type StoredIndex ¶
type StoredIndex struct {
// contains filtered or unexported fields
}
StoredIndex is a counter that persists to a datastore as it increments
func NewStoredIndex ¶
func NewStoredIndex(ds datastore.Datastore, name datastore.Key) *StoredIndex
NewStoredIndex returns a new StoredCounter for the given datastore and key
func (*StoredIndex) Get ¶
func (si *StoredIndex) Get() (uint64, error)
Get returns current counter value
func (*StoredIndex) Next ¶
func (si *StoredIndex) Next() (uint64, error)
Next returns the next counter value, updating it on disk in the process if no counter is present, it creates one and returns a 0 value
type StoredState ¶
type StoredState struct {
// contains filtered or unexported fields
}
func (*StoredState) Delete ¶
func (st *StoredState) Delete() error
func (*StoredState) Get ¶
func (st *StoredState) Get() ([]byte, error)
func (*StoredState) Mutate ¶
func (st *StoredState) Mutate(mutator interface{}) error
type WalletDB ¶
type WalletDB struct {
// contains filtered or unexported fields
}
func NewWalletDB ¶
func NewWalletDB(ds datastore.Batching) WalletDB
func (*WalletDB) DeleteLoginPassword ¶
func (*WalletDB) DeleteMasterPassword ¶
func (*WalletDB) DeleteMnemonic ¶
func (*WalletDB) DeleteMsig ¶
func (*WalletDB) DeleteNode ¶
func (*WalletDB) DeletePrivate ¶
func (*WalletDB) GetHistory ¶
func (*WalletDB) GetLoginPassword ¶
func (*WalletDB) GetMasterPassword ¶
func (*WalletDB) GetMnemonic ¶
func (*WalletDB) GetPrivate ¶
func (db *WalletDB) GetPrivate(addr string) (*PrivateWallet, error)
func (*WalletDB) HasLoginPassword ¶
func (*WalletDB) HasMasterPassword ¶
func (*WalletDB) HasMnemonic ¶
func (*WalletDB) MnemonicIndex ¶
func (*WalletDB) MsigWalletList ¶
func (db *WalletDB) MsigWalletList() ([]MsigWallet, error)
func (*WalletDB) NextMnemonicIndex ¶
func (*WalletDB) SetHistory ¶
func (*WalletDB) SetLoginPassword ¶
func (*WalletDB) SetMasterPassword ¶
func (*WalletDB) SetMnemonic ¶
func (*WalletDB) SetMsig ¶
func (db *WalletDB) SetMsig(msigWallet *MsigWallet) error
func (*WalletDB) SetPrivate ¶
func (db *WalletDB) SetPrivate(priWallet *PrivateWallet) error
func (*WalletDB) UpdateHistory ¶
func (*WalletDB) UpdateLoginPassword ¶
func (*WalletDB) UpdateMasterPassword ¶
func (*WalletDB) UpdateMnemonic ¶
func (*WalletDB) UpdateMsig ¶
func (db *WalletDB) UpdateMsig(msigWallet *MsigWallet) error
func (*WalletDB) UpdateNode ¶
func (*WalletDB) UpdatePrivate ¶
func (db *WalletDB) UpdatePrivate(priWallet *PrivateWallet) error
func (*WalletDB) WalletList ¶
func (db *WalletDB) WalletList() ([]PrivateWallet, error)
Click to show internal directories.
Click to hide internal directories.