btc-lsp-0.1.0.0: Lightning service provider
Safe HaskellSafe-Inferred
LanguageHaskell2010

BtcLsp.Storage.Model

Documentation

data User Source #

Instances

Instances details
Out User Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

docPrec :: Int -> User -> Doc #

doc :: User -> Doc #

docList :: [User] -> Doc #

Generic User Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep User :: Type -> Type #

Methods

from :: User -> Rep User x #

to :: Rep User x -> User #

Show User Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

HasTable User Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

getTable :: Key User -> Table Source #

Eq User Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

(==) :: User -> User -> Bool #

(/=) :: User -> User -> Bool #

Ord User Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

compare :: User -> User -> Ordering #

(<) :: User -> User -> Bool #

(<=) :: User -> User -> Bool #

(>) :: User -> User -> Bool #

(>=) :: User -> User -> Bool #

max :: User -> User -> User #

min :: User -> User -> User #

PersistEntity User Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type PersistEntityBackend User #

data Key User #

data EntityField User :: Type -> Type #

data Unique User #

PersistField User Source # 
Instance details

Defined in BtcLsp.Storage.Model

AtLeastOneUniqueKey User Source # 
Instance details

Defined in BtcLsp.Storage.Model

OnlyOneUniqueKey User Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql User Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

sqlType :: Proxy User -> SqlType #

ToBackendKey SqlBackend User Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "insertedAt" User UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "latestNonce" User Nonce Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "nodePubKey" User NodePubKey Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "updatedAt" User UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "userId" SwapIntoLn UserId Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "id" User (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Out (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

docPrec :: Int -> Key User -> Doc #

doc :: Key User -> Doc #

docList :: [Key User] -> Doc #

FromJSON (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToJSON (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Generic (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep (Key User) :: Type -> Type #

Methods

from :: Key User -> Rep (Key User) x #

to :: Rep (Key User) x -> Key User #

Read (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Show (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

showsPrec :: Int -> Key User -> ShowS #

show :: Key User -> String #

showList :: [Key User] -> ShowS #

Eq (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

(==) :: Key User -> Key User -> Bool #

(/=) :: Key User -> Key User -> Bool #

Ord (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

compare :: Key User -> Key User -> Ordering #

(<) :: Key User -> Key User -> Bool #

(<=) :: Key User -> Key User -> Bool #

(>) :: Key User -> Key User -> Bool #

(>=) :: Key User -> Key User -> Bool #

max :: Key User -> Key User -> Key User #

min :: Key User -> Key User -> Key User #

FromHttpApiData (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToHttpApiData (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PathPiece (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistField (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

sqlType :: Proxy (Key User) -> SqlType #

type Rep User Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep User = D1 ('MetaData "User" "BtcLsp.Storage.Model" "btc-lsp-0.1.0.0-inplace" 'False) (C1 ('MetaCons "User" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userNodePubKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodePubKey) :*: S1 ('MetaSel ('Just "userLatestNonce") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Nonce)) :*: (S1 ('MetaSel ('Just "userInsertedAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "userUpdatedAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime))))
data EntityField User typ Source # 
Instance details

Defined in BtcLsp.Storage.Model

newtype Key User Source # 
Instance details

Defined in BtcLsp.Storage.Model

type PersistEntityBackend User Source # 
Instance details

Defined in BtcLsp.Storage.Model

data Unique User Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key User) Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key User) = D1 ('MetaData "Key" "BtcLsp.Storage.Model" "btc-lsp-0.1.0.0-inplace" 'True) (C1 ('MetaCons "UserKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unUserKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BackendKey SqlBackend))))

data SwapIntoLn Source #

Instances

Instances details
Out SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

Generic SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep SwapIntoLn :: Type -> Type #

Show SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

HasTable SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

Eq SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistEntity SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistField SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

AtLeastOneUniqueKey SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

(TypeError (MultipleUniqueKeysError SwapIntoLn) :: Constraint) => OnlyOneUniqueKey SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToBackendKey SqlBackend SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "expiresAt" SwapIntoLn UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "insertedAt" SwapIntoLn UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "privacy" SwapIntoLn Privacy Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "status" SwapIntoLn SwapStatus Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "swapIntoLnId" SwapUtxo SwapIntoLnId Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "updatedAt" SwapIntoLn UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "userId" SwapIntoLn UserId Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "fundAddress" SwapIntoLn (OnChainAddress 'Fund) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "id" SwapIntoLn (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "lspFeeAndChangeAddress" SwapIntoLn (OnChainAddress 'Gain) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "refundAddress" SwapIntoLn (OnChainAddress 'Refund) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "swapIntoLnId" LnChan (Maybe SwapIntoLnId) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "uuid" SwapIntoLn (Uuid 'SwapIntoLnTable) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "chanCapLsp" SwapIntoLn (Money 'Lsp 'Ln 'Fund) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "chanCapUser" SwapIntoLn (Money 'Usr 'Ln 'Fund) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "feeLsp" SwapIntoLn (Money 'Lsp 'OnChain 'Gain) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "feeMiner" SwapIntoLn (Money 'Lsp 'OnChain 'Loss) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Out (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

FromJSON (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToJSON (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Generic (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep (Key SwapIntoLn) :: Type -> Type #

Read (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Show (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Eq (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Ord (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

FromHttpApiData (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToHttpApiData (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PathPiece (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistField (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep SwapIntoLn = D1 ('MetaData "SwapIntoLn" "BtcLsp.Storage.Model" "btc-lsp-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SwapIntoLn" 'PrefixI 'True) (((S1 ('MetaSel ('Just "swapIntoLnUuid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Uuid 'SwapIntoLnTable)) :*: (S1 ('MetaSel ('Just "swapIntoLnUserId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UserId) :*: S1 ('MetaSel ('Just "swapIntoLnFundAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (OnChainAddress 'Fund)))) :*: ((S1 ('MetaSel ('Just "swapIntoLnLspFeeAndChangeAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (OnChainAddress 'Gain)) :*: S1 ('MetaSel ('Just "swapIntoLnRefundAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (OnChainAddress 'Refund))) :*: (S1 ('MetaSel ('Just "swapIntoLnChanCapUser") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Money 'Usr 'Ln 'Fund)) :*: S1 ('MetaSel ('Just "swapIntoLnChanCapLsp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Money 'Lsp 'Ln 'Fund))))) :*: ((S1 ('MetaSel ('Just "swapIntoLnFeeLsp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Money 'Lsp 'OnChain 'Gain)) :*: (S1 ('MetaSel ('Just "swapIntoLnFeeMiner") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Money 'Lsp 'OnChain 'Loss)) :*: S1 ('MetaSel ('Just "swapIntoLnStatus") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SwapStatus))) :*: ((S1 ('MetaSel ('Just "swapIntoLnPrivacy") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Privacy) :*: S1 ('MetaSel ('Just "swapIntoLnExpiresAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime)) :*: (S1 ('MetaSel ('Just "swapIntoLnInsertedAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "swapIntoLnUpdatedAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime))))))
data EntityField SwapIntoLn typ Source # 
Instance details

Defined in BtcLsp.Storage.Model

newtype Key SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

type PersistEntityBackend SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

data Unique SwapIntoLn Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key SwapIntoLn) Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key SwapIntoLn) = D1 ('MetaData "Key" "BtcLsp.Storage.Model" "btc-lsp-0.1.0.0-inplace" 'True) (C1 ('MetaCons "SwapIntoLnKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSwapIntoLnKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BackendKey SqlBackend))))

data Block Source #

Instances

Instances details
Out Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

docPrec :: Int -> Block -> Doc #

doc :: Block -> Doc #

docList :: [Block] -> Doc #

Generic Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep Block :: Type -> Type #

Methods

from :: Block -> Rep Block x #

to :: Rep Block x -> Block #

Show Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

showsPrec :: Int -> Block -> ShowS #

show :: Block -> String #

showList :: [Block] -> ShowS #

HasTable Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

Eq Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

(==) :: Block -> Block -> Bool #

(/=) :: Block -> Block -> Bool #

Ord Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

compare :: Block -> Block -> Ordering #

(<) :: Block -> Block -> Bool #

(<=) :: Block -> Block -> Bool #

(>) :: Block -> Block -> Bool #

(>=) :: Block -> Block -> Bool #

max :: Block -> Block -> Block #

min :: Block -> Block -> Block #

PersistEntity Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type PersistEntityBackend Block #

data Key Block #

data EntityField Block :: Type -> Type #

data Unique Block #

PersistField Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

AtLeastOneUniqueKey Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

OnlyOneUniqueKey Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

sqlType :: Proxy Block -> SqlType #

ToBackendKey SqlBackend Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "blockId" SwapUtxo BlockId Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "hash" Block BlkHash Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "height" Block BlkHeight Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "insertedAt" Block UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "status" Block BlkStatus Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "updatedAt" Block UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "id" Block (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "refundBlockId" SwapUtxo (Maybe BlockId) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Out (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

docPrec :: Int -> Key Block -> Doc #

doc :: Key Block -> Doc #

docList :: [Key Block] -> Doc #

FromJSON (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToJSON (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Generic (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep (Key Block) :: Type -> Type #

Methods

from :: Key Block -> Rep (Key Block) x #

to :: Rep (Key Block) x -> Key Block #

Read (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Show (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Eq (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

(==) :: Key Block -> Key Block -> Bool #

(/=) :: Key Block -> Key Block -> Bool #

Ord (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

FromHttpApiData (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToHttpApiData (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PathPiece (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistField (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

sqlType :: Proxy (Key Block) -> SqlType #

type Rep Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep Block = D1 ('MetaData "Block" "BtcLsp.Storage.Model" "btc-lsp-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Block" 'PrefixI 'True) ((S1 ('MetaSel ('Just "blockHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlkHeight) :*: S1 ('MetaSel ('Just "blockHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlkHash)) :*: (S1 ('MetaSel ('Just "blockStatus") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlkStatus) :*: (S1 ('MetaSel ('Just "blockInsertedAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "blockUpdatedAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime)))))
data EntityField Block typ Source # 
Instance details

Defined in BtcLsp.Storage.Model

newtype Key Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

type PersistEntityBackend Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

data Unique Block Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key Block) Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key Block) = D1 ('MetaData "Key" "BtcLsp.Storage.Model" "btc-lsp-0.1.0.0-inplace" 'True) (C1 ('MetaCons "BlockKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BackendKey SqlBackend))))

data SwapUtxo Source #

Instances

Instances details
Out SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

docPrec :: Int -> SwapUtxo -> Doc #

doc :: SwapUtxo -> Doc #

docList :: [SwapUtxo] -> Doc #

Generic SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep SwapUtxo :: Type -> Type #

Methods

from :: SwapUtxo -> Rep SwapUtxo x #

to :: Rep SwapUtxo x -> SwapUtxo #

Show SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

Eq SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

Ord SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistEntity SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistField SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

AtLeastOneUniqueKey SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

OnlyOneUniqueKey SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToBackendKey SqlBackend SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "blockId" SwapUtxo BlockId Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "insertedAt" SwapUtxo UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "status" SwapUtxo SwapUtxoStatus Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "swapIntoLnId" SwapUtxo SwapIntoLnId Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "updatedAt" SwapUtxo UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "id" SwapUtxo (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "lockId" SwapUtxo (Maybe UtxoLockId) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "refundBlockId" SwapUtxo (Maybe BlockId) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "refundTxId" SwapUtxo (Maybe (TxId 'Funding)) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "txid" SwapUtxo (TxId 'Funding) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "vout" SwapUtxo (Vout 'Funding) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "amount" SwapUtxo (Money 'Usr 'OnChain 'Fund) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Out (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

FromJSON (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToJSON (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Generic (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep (Key SwapUtxo) :: Type -> Type #

Methods

from :: Key SwapUtxo -> Rep (Key SwapUtxo) x #

to :: Rep (Key SwapUtxo) x -> Key SwapUtxo #

Read (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Show (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Eq (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Ord (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

FromHttpApiData (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToHttpApiData (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PathPiece (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistField (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

data EntityField SwapUtxo typ Source # 
Instance details

Defined in BtcLsp.Storage.Model

newtype Key SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

type PersistEntityBackend SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

data Unique SwapUtxo Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key SwapUtxo) Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key SwapUtxo) = D1 ('MetaData "Key" "BtcLsp.Storage.Model" "btc-lsp-0.1.0.0-inplace" 'True) (C1 ('MetaCons "SwapUtxoKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSwapUtxoKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BackendKey SqlBackend))))

data LnChan Source #

Instances

Instances details
Out LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

docPrec :: Int -> LnChan -> Doc #

doc :: LnChan -> Doc #

docList :: [LnChan] -> Doc #

Generic LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep LnChan :: Type -> Type #

Methods

from :: LnChan -> Rep LnChan x #

to :: Rep LnChan x -> LnChan #

Show LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

HasTable LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

Eq LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

(==) :: LnChan -> LnChan -> Bool #

(/=) :: LnChan -> LnChan -> Bool #

Ord LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistEntity LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type PersistEntityBackend LnChan #

data Key LnChan #

data EntityField LnChan :: Type -> Type #

data Unique LnChan #

PersistField LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

AtLeastOneUniqueKey LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

OnlyOneUniqueKey LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToBackendKey SqlBackend LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "insertedAt" LnChan UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "status" LnChan LnChanStatus Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "totalSatoshisReceived" LnChan MSat Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "totalSatoshisSent" LnChan MSat Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "transactedAt" LnChan UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "updatedAt" LnChan UTCTime Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "bak" LnChan (Maybe SingleChanBackupBlob) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

symbolToField :: EntityField LnChan (Maybe SingleChanBackupBlob) #

SymbolToField "closingTxId" LnChan (Maybe (TxId 'Closing)) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "extId" LnChan (Maybe ChanId) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "fundingTxId" LnChan (TxId 'Funding) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "fundingVout" LnChan (Vout 'Funding) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "id" LnChan (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

SymbolToField "swapIntoLnId" LnChan (Maybe SwapIntoLnId) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Out (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

docPrec :: Int -> Key LnChan -> Doc #

doc :: Key LnChan -> Doc #

docList :: [Key LnChan] -> Doc #

FromJSON (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToJSON (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Generic (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Associated Types

type Rep (Key LnChan) :: Type -> Type #

Methods

from :: Key LnChan -> Rep (Key LnChan) x #

to :: Rep (Key LnChan) x -> Key LnChan #

Read (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Show (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Colored (Entity LnChan) Source # 
Instance details

Defined in BtcLsp.Yesod.Data.Colored

Eq (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

(==) :: Key LnChan -> Key LnChan -> Bool #

(/=) :: Key LnChan -> Key LnChan -> Bool #

Ord (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

FromHttpApiData (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

ToHttpApiData (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PathPiece (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistField (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

PersistFieldSql (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

Methods

sqlType :: Proxy (Key LnChan) -> SqlType #

type Rep LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep LnChan = D1 ('MetaData "LnChan" "BtcLsp.Storage.Model" "btc-lsp-0.1.0.0-inplace" 'False) (C1 ('MetaCons "LnChan" 'PrefixI 'True) (((S1 ('MetaSel ('Just "lnChanSwapIntoLnId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe SwapIntoLnId)) :*: (S1 ('MetaSel ('Just "lnChanFundingTxId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxId 'Funding)) :*: S1 ('MetaSel ('Just "lnChanFundingVout") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Vout 'Funding)))) :*: (S1 ('MetaSel ('Just "lnChanClosingTxId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (TxId 'Closing))) :*: (S1 ('MetaSel ('Just "lnChanExtId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ChanId)) :*: S1 ('MetaSel ('Just "lnChanBak") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe SingleChanBackupBlob))))) :*: ((S1 ('MetaSel ('Just "lnChanTotalSatoshisSent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MSat) :*: (S1 ('MetaSel ('Just "lnChanTotalSatoshisReceived") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MSat) :*: S1 ('MetaSel ('Just "lnChanStatus") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LnChanStatus))) :*: (S1 ('MetaSel ('Just "lnChanInsertedAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "lnChanUpdatedAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "lnChanTransactedAt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime))))))
data EntityField LnChan typ Source # 
Instance details

Defined in BtcLsp.Storage.Model

newtype Key LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

type PersistEntityBackend LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

data Unique LnChan Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key LnChan) Source # 
Instance details

Defined in BtcLsp.Storage.Model

type Rep (Key LnChan) = D1 ('MetaData "Key" "BtcLsp.Storage.Model" "btc-lsp-0.1.0.0-inplace" 'True) (C1 ('MetaCons "LnChanKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unLnChanKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BackendKey SqlBackend))))