convex-wallet-0.2.0.0: Simple wallet
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.Wallet.WalletState

Description

Serialisable state of a wallet

Synopsis

Documentation

data WalletState Source #

Constructors

WalletState 

Instances

Instances details
FromJSON WalletState Source # 
Instance details

Defined in Convex.Wallet.WalletState

ToJSON WalletState Source # 
Instance details

Defined in Convex.Wallet.WalletState

Generic WalletState Source # 
Instance details

Defined in Convex.Wallet.WalletState

Associated Types

type Rep WalletStateTypeType Source #

Show WalletState Source # 
Instance details

Defined in Convex.Wallet.WalletState

Eq WalletState Source # 
Instance details

Defined in Convex.Wallet.WalletState

type Rep WalletState Source # 
Instance details

Defined in Convex.Wallet.WalletState

type Rep WalletState = D1 ('MetaData "WalletState" "Convex.Wallet.WalletState" "convex-wallet-0.2.0.0-inplace" 'False) (C1 ('MetaCons "WalletState" 'PrefixI 'True) (S1 ('MetaSel ('Just "wsChainPoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JSONChainPoint) :*: S1 ('MetaSel ('Just "wsUtxos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (UtxoSet CtxTx ()))))

walletStateUtxoSet CtxTx () → BlockHeaderWalletState Source #

Construct a WalletState from a UTxO set and a block header

writeToFileFilePathWalletStateIO () Source #

Write the wallet state to a JSON file

readFromFileFilePathIO (Maybe WalletState) Source #

Read the wallet state from a JSON file