Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AddressInfo ¶
type OceanRepoManager ¶
type OceanRepoManager interface { WalletRepository() WalletRepository UtxoRepository() UtxoRepository TransactionRepository() TransactionRepository }
func NewOceanRepoManager ¶
func NewOceanRepoManager(oceanDbDir string) (OceanRepoManager, error)
type Transaction ¶
type Transaction struct { TxID string TxHex string BlockHash string BlockHeight uint64 Accounts map[string]struct{} }
Transaction is the data structure representing an Elements tx with extra info like whether it is conifirmed/unconfirmed and the name of the accounts owning one or more of its inputs.
func (*Transaction) AddAccount ¶
func (t *Transaction) AddAccount(accountName string)
AddAccount adds the given account to the map of those involved in the tx.
func (*Transaction) Confirm ¶
func (t *Transaction) Confirm(blockHash string, blockHeight uint64)
Confirm marks the tx as confirmed.
func (*Transaction) IsConfirmed ¶
func (t *Transaction) IsConfirmed() bool
IsConfirmed returns whther the tx is included in the blockchain.
type TransactionRepository ¶
type TransactionRepository interface {
AddTransactions(txs []*Transaction) error
}
func NewTransactionRepositoryImpl ¶
func NewTransactionRepositoryImpl(store *badgerhold.Store) TransactionRepository
type Utxo ¶
type Utxo struct { UtxoKey Value uint64 Asset string ValueCommitment []byte AssetCommitment []byte ValueBlinder []byte AssetBlinder []byte Script []byte Nonce []byte RangeProof []byte SurjectionProof []byte AccountName string LockTimestamp int64 LockExpiryTimestamp int64 SpentStatus UtxoStatus ConfirmedStatus UtxoStatus }
type UtxoRepository ¶
func NewUtxoRepositoryImpl ¶
func NewUtxoRepositoryImpl(store *badgerhold.Store) UtxoRepository
type UtxoStatus ¶
type WalletRepository ¶
func NewWalletRepositoryImpl ¶
func NewWalletRepositoryImpl(store *badgerhold.Store) WalletRepository
Click to show internal directories.
Click to hide internal directories.