Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Serialisable state of a wallet
Synopsis
- data WalletState = WalletState {}
- walletState ∷ UtxoSet CtxTx () → BlockHeader → WalletState
- utxoSet ∷ WalletState → UtxoSet CtxTx ()
- chainPoint ∷ WalletState → ChainPoint
- initialWalletState ∷ WalletState
- writeToFile ∷ FilePath → WalletState → IO ()
- readFromFile ∷ FilePath → IO (Maybe WalletState)
Documentation
data WalletState Source #
Instances
walletState ∷ UtxoSet CtxTx () → BlockHeader → WalletState Source #
Construct a WalletState
from a UTxO set and a block header
writeToFile ∷ FilePath → WalletState → IO () Source #
Write the wallet state to a JSON file
readFromFile ∷ FilePath → IO (Maybe WalletState) Source #
Read the wallet state from a JSON file