cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2018-2020 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Cardano.Wallet.DB.Sqlite.Types

Description

This module contains instances and types necessary for storing wallets in a SQL database with Persistent.

It's in a separate module due to the GHC stage restriction.

The ToJSON/FromJSON and Read instance orphans exist due to class constraints on Persistent functions.

Synopsis

Documentation

sqlSettings' :: MkPersistSettings Source #

Settings for generating the Persistent types.

newtype TxId Source #

Wraps 'Hash Tx ' because the persistent entity syntax doesn't seem to support parameterized types.

Constructors

TxId

Fields

Instances

Instances details
Eq TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Ord TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Read TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Show TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Generic TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Associated Types

type Rep TxId :: Type -> Type Source #

ToJSON TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromJSON TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToHttpApiData TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromHttpApiData TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PathPiece TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistFieldSql TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

SymbolToField "localTxSubmissionTxId" LocalTxSubmission TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txCollateralOutTokenTxId" TxCollateralOutToken TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txCollateralOutTxId" TxCollateralOut TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txCollateralSourceTxId" TxCollateral TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txCollateralTxId" TxCollateral TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txInputSourceTxId" TxIn TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txInputTxId" TxIn TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txMetaTxId" TxMeta TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txOutTokenTxId" TxOutToken TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txOutputTxId" TxOut TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txWithdrawalTxId" TxWithdrawal TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "utxoInputId" UTxO TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "utxoTokenTxId" UTxOToken TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

type Rep TxId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

type Rep TxId = D1 (' MetaData "TxId" "Cardano.Wallet.DB.Sqlite.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "TxId" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getTxId") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Hash "Tx"))))

newtype BlockId Source #

Constructors

BlockId

Fields

Instances

Instances details
Eq BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Ord BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Read BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Show BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Generic BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToJSON BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromJSON BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToHttpApiData BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromHttpApiData BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PathPiece BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistFieldSql BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

SymbolToField "blockHeaderHash" BlockHeader BlockId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "blockParentHash" BlockHeader BlockId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "checkpointHeaderHash" Checkpoint BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "checkpointParentHash" Checkpoint BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "poolProductionHeaderHash" PoolProduction BlockId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolProductionParentHash" PoolProduction BlockId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "walGenesisHash" Wallet BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

type Rep BlockId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

type Rep BlockId = D1 (' MetaData "BlockId" "Cardano.Wallet.DB.Sqlite.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "BlockId" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getBlockId") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Hash "BlockHeader"))))

hashOfNoParent :: Hash "BlockHeader" Source #

Magic value that denotes the hash of the parent of the genesis block (which does not exist). This value is used for serializing the Nothing case of the #parentHeaderHash field.

stdGenFromString :: String -> Either Text StdGen Source #

In random < 1.2 there used to be an instance Read StdGen , but no longer.

The format used to look like this: 5889121503043413025 17512980752375952679

stdGenToString :: StdGen -> String Source #

Equivalent to the old random < 1.2 StdGen Show instance.

newtype HDPassphrase Source #

Constructors

HDPassphrase ( Passphrase "addr-derivation-payload")

Instances

Instances details
Read HDPassphrase Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Show HDPassphrase Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Generic HDPassphrase Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistFieldSql HDPassphrase Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField HDPassphrase Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

SymbolToField "rndStateHdPassphrase" RndState HDPassphrase Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

type Rep HDPassphrase Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

type Rep HDPassphrase = D1 (' MetaData "HDPassphrase" "Cardano.Wallet.DB.Sqlite.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "HDPassphrase" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Passphrase "addr-derivation-payload"))))

Orphan instances

Read SlotNo Source #
Instance details

Read PoolOwner Source #
Instance details

Read PoolId Source #
Instance details

Read StakePoolMetadataUrl Source #
Instance details

Read StakePoolMetadataHash Source #
Instance details

Read WalletId Source #
Instance details

ToJSON RewardAccount Source #
Instance details

ToJSON PoolId Source #
Instance details

ToJSON StakePoolMetadataUrl Source #
Instance details

ToJSON StakePoolMetadataHash Source #
Instance details

ToJSON WalletId Source #
Instance details

FromJSON RewardAccount Source #
Instance details

FromJSON PoolId Source #
Instance details

FromJSON StakePoolMetadataUrl Source #
Instance details

FromJSON StakePoolMetadataHash Source #
Instance details

FromJSON WalletId Source #
Instance details

ToHttpApiData SlotNo Source #
Instance details

ToHttpApiData RewardAccount Source #
Instance details

ToHttpApiData EpochNo Source #
Instance details

ToHttpApiData PoolId Source #
Instance details

ToHttpApiData StakePoolMetadataUrl Source #
Instance details

ToHttpApiData StakePoolMetadataHash Source #
Instance details

ToHttpApiData WalletId Source #
Instance details

FromHttpApiData SlotNo Source #
Instance details

FromHttpApiData RewardAccount Source #
Instance details

FromHttpApiData EpochNo Source #
Instance details

FromHttpApiData PoolId Source #
Instance details

FromHttpApiData StakePoolMetadataUrl Source #
Instance details

FromHttpApiData StakePoolMetadataHash Source #
Instance details

FromHttpApiData WalletId Source #
Instance details

PathPiece SlotNo Source #
Instance details

PathPiece RewardAccount Source #
Instance details

PathPiece EpochNo Source #
Instance details

PathPiece PoolId Source #
Instance details

PathPiece StakePoolMetadataUrl Source #
Instance details

PathPiece StakePoolMetadataHash Source #
Instance details

PathPiece WalletId Source #
Instance details

PersistFieldSql StdGen Source #
Instance details

PersistFieldSql ScriptHash Source #
Instance details

PersistFieldSql TxMetadata Source #
Instance details

PersistFieldSql SlotNo Source #
Instance details

PersistFieldSql POSIXTime Source #
Instance details

PersistFieldSql PassphraseScheme Source #
Instance details

PersistFieldSql AddressState Source #
Instance details

PersistFieldSql Address Source #
Instance details

PersistFieldSql TokenQuantity Source #
Instance details

PersistFieldSql TokenName Source #
Instance details

PersistFieldSql TokenPolicyId Source #
Instance details

PersistFieldSql RewardAccount Source #
Instance details

PersistFieldSql DerivationPrefix Source #
Instance details

PersistFieldSql Role Source #
Instance details

PersistFieldSql Percentage Source #
Instance details

PersistFieldSql Coin Source #
Instance details

PersistFieldSql TxScriptValidity Source #
Instance details

PersistFieldSql SealedTx Source #
Instance details

PersistFieldSql Direction Source #
Instance details

PersistFieldSql TxStatus Source #
Instance details

PersistFieldSql PoolMetadataSource Source #
Instance details

PersistFieldSql StakeKeyCertificate Source #
Instance details

PersistFieldSql EpochNo Source #
Instance details

PersistFieldSql FeePolicy Source #
Instance details

PersistFieldSql PoolOwner Source #
Instance details

PersistFieldSql PoolId Source #
Instance details

PersistFieldSql StakePoolTicker Source #
Instance details

PersistFieldSql StakePoolMetadataUrl Source #
Instance details

PersistFieldSql StakePoolMetadataHash Source #
Instance details

PersistFieldSql WalletId Source #
Instance details

PersistFieldSql AddressPoolGap Source #
Instance details

PersistFieldSql CredentialType Source #
Instance details

PersistField StdGen Source #
Instance details

PersistField ScriptHash Source #
Instance details

PersistField TxMetadata Source #
Instance details

PersistField SlotNo Source #
Instance details

PersistField POSIXTime Source #
Instance details

PersistField PassphraseScheme Source #
Instance details

PersistField AddressState Source #
Instance details

PersistField Address Source #
Instance details

PersistField TokenQuantity Source #
Instance details

PersistField TokenName Source #
Instance details

PersistField TokenPolicyId Source #
Instance details

PersistField RewardAccount Source #
Instance details

PersistField DerivationPrefix Source #
Instance details

PersistField Role Source #
Instance details

PersistField Percentage Source #
Instance details

PersistField Coin Source #
Instance details

PersistField TxScriptValidity Source #
Instance details

PersistField SealedTx Source #
Instance details

PersistField Direction Source #
Instance details

PersistField TxStatus Source #
Instance details

PersistField PoolMetadataSource Source #
Instance details

PersistField StakeKeyCertificate Source #
Instance details

PersistField EpochNo Source #
Instance details

PersistField FeePolicy Source #
Instance details

PersistField PoolOwner Source #
Instance details

PersistField PoolId Source #
Instance details

PersistField StakePoolTicker Source #
Instance details

PersistField StakePoolMetadataUrl Source #
Instance details

PersistField StakePoolMetadataHash Source #
Instance details

PersistField WalletId Source #
Instance details

PersistField AddressPoolGap Source #
Instance details

PersistField CredentialType Source #
Instance details

ToText ScriptHash Source #
Instance details

FromText ScriptHash Source #
Instance details

PersistFieldSql [ PoolOwner ] Source #
Instance details

PersistFieldSql ( Script Cosigner ) Source #
Instance details

PersistField [ PoolOwner ] Source #
Instance details

PersistField ( Script Cosigner ) Source #
Instance details

FromText [ PoolOwner ] Source #
Instance details