Documentation ¶
Index ¶
Constants ¶
View Source
const ( InMemoryStore = "inmemory" FileStore = "file" KVStore = "kv" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServerUrl string ServerPubKey *secp256k1.PublicKey WalletType string ClientType string Network common.Network VtxoTreeExpiry common.RelativeLocktime RoundInterval int64 UnilateralExitDelay common.RelativeLocktime Dust uint64 BoardingDescriptorTemplate string ExplorerURL string ForfeitAddress string WithTransactionFeed bool }
type ConfigStore ¶
type Store ¶
type Store interface { ConfigStore() ConfigStore TransactionStore() TransactionStore VtxoStore() VtxoStore Close() }
type Transaction ¶
type Transaction struct { TransactionKey Amount uint64 Type TxType Settled bool CreatedAt time.Time SpentBy string }
func (Transaction) IsBoarding ¶
func (t Transaction) IsBoarding() bool
func (Transaction) IsOOR ¶
func (t Transaction) IsOOR() bool
func (Transaction) IsRound ¶
func (t Transaction) IsRound() bool
func (Transaction) String ¶
func (t Transaction) String() string
type TransactionEvent ¶
type TransactionEvent struct { Tx Transaction Event EventType }
type TransactionKey ¶
func (TransactionKey) String ¶
func (t TransactionKey) String() string
type TransactionStore ¶
type TransactionStore interface { AddTransactions(ctx context.Context, txs []Transaction) error UpdateTransactions(ctx context.Context, txs []Transaction) error GetAllTransactions(ctx context.Context) ([]Transaction, error) GetEventChannel() chan TransactionEvent Close() }
type Utxo ¶
Click to show internal directories.
Click to hide internal directories.