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

BtcLsp.Yesod.Foundation

Synopsis

Documentation

type Uuid'SwapIntoLnTable = Uuid 'SwapIntoLnTable Source #

NOTE : this type aliases are there only because of poor support of advanced Haskell in yesodroutes and i18n files through Yesod TH.

!!! DO NOT USE DIRECTLY IN SOURCE CODE !!!

data App Source #

The foundation datatype for your application. This can be a good place to keep settings and values requiring initialization before your application starts running, such as database connections. Every handler will have access to the data present here.

Constructors

forall m.Env m => App 

Fields

Instances

Instances details
HasHttpManager App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

YesodAuth App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Associated Types

type AuthId App #

YesodAuthPersist App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Associated Types

type AuthEntity App #

YesodBreadcrumbs App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

YesodDispatch App Source # 
Instance details

Defined in BtcLsp.Yesod.Application

Yesod App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

ParseRoute App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Methods

parseRoute :: ([Text], [(Text, Text)]) -> Maybe (Route App) #

RenderRoute App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Associated Types

data Route App #

Methods

renderRoute :: Route App -> ([Text], [(Text, Text)]) #

RouteAttrs App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Methods

routeAttrs :: Route App -> Set Text #

YesodPersist App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Associated Types

type YesodPersistBackend App #

Methods

runDB :: YesodDB App a -> HandlerFor App a #

YesodPersistRunner App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

RenderMessage App AppMessage Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Methods

renderMessage :: App -> [Lang] -> AppMessage -> Text #

RenderMessage App FormMessage Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Methods

renderMessage :: App -> [Lang] -> FormMessage -> Text #

Read (Route App) Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Show (Route App) Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Eq (Route App) Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Methods

(==) :: Route App -> Route App -> Bool #

(/=) :: Route App -> Route App -> Bool #

type AuthEntity App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

type AuthEntity App = KeyEntity (AuthId App)
type AuthId App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

data Route App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

type YesodPersistBackend App Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

data AppMessage Source #

Constructors

MsgNothing 
MsgProxy 

Fields

MsgUtcTime 
MsgL 
MsgS 
MsgP 
MsgIso3166v1 
MsgCopy 
MsgContinue 
MsgAmount 
MsgSatoshi 

Fields

MsgStatus 
MsgExpiresAt 
MsgInsertedAt 
MsgUpdatedAt 
MsgChannelPrivacy 
MsgBlock 
MsgTxId 
MsgVout 
MsgInputFailure 
MsgSwapWaitingFundChain 
MsgSwapWaitingPeer 
MsgSwapWaitingChan 
MsgSwapSucceeded 
MsgSwapExpired 
MsgSwapUtxoUnspent 
MsgSwapUtxoUnspentDust 
MsgSwapUtxoUnspentChanReserve 
MsgSwapUtxoSpentChanSwapped 
MsgSwapUtxoSpentRefund 
MsgSwapUtxoOrphan 
MsgLnChanStatusPendingOpen 
MsgLnChanStatusOpened 
MsgLnChanStatusActive 
MsgLnChanStatusFullyResolved 
MsgLnChanStatusInactive 
MsgLnChanStatusPendingClose 
MsgLnChanStatusClosed 
MsgChanPrivate 
MsgChanPublic 
MsgHomeRTitle 
MsgOpenChanRTitle 
MsgSwapIntoLnCreateRTitle 
MsgSwapIntoLnSelectRTitle 
MsgAboutRTitle 
MsgHomeRLinkShort 
MsgOpenChanRLinkShort 
MsgSwapIntoLnCreateRLinkShort 
MsgSwapIntoLnSelectRLinkShort 
MsgAboutRLinkShort 
MsgHomeRLinkLong 
MsgOpenChanRLinkLong 
MsgSwapIntoLnCreateRLinkLong 
MsgSwapIntoLnSelectRLinkLong 
MsgAboutRLinkLong 
MsgHomeBigHeader 
MsgHomeSmallHeader 
MsgOpenChanInstruction 
MsgSwapIntoLnFailureRefundOnChainAddressIsNotValid 
MsgSwapIntoLnFailureRefundOnChainAddressIsNotSegwit 
MsgSwapIntoLnHeaderInfo 
MsgSwapIntoLnHeaderUtxos 
MsgSwapIntoLnHeaderChans 
MsgSwapIntoLnTotalOnChainReceived 
MsgSwapIntoLnTotalOnChainReserved 
MsgSwapIntoLnTotalOnChainSwapped 
MsgSwapIntoLnTotalOnChainRefunded 
MsgSwapIntoLnTotalOnChainDust 
MsgSwapIntoLnFeeLsp 
MsgSwapIntoLnChanCapUser 
MsgSwapIntoLnChanCapLsp 
MsgSwapIntoLnChanCapTotal 
MsgSwapIntoLnUuid 
MsgSwapIntoLnUserId 
MsgSwapIntoLnFundInvoice 
MsgSwapIntoLnFundAddress 
MsgSwapIntoLnRefundAddress 
MsgSwapIntoLnInfoShort 
MsgSwapIntoLnWaitingFundChainShort 
MsgSwapIntoLnFundedShort 
MsgSwapIntoLnWaitingChanShort 
MsgSwapIntoLnSucceededShort 
MsgSwapIntoLnExpiredShort 
MsgSwapIntoLnInfoLong 
MsgSwapIntoLnWaitingFundChainLong 
MsgSwapIntoLnFundedLong 
MsgSwapIntoLnWaitingChanLong 
MsgSwapIntoLnSucceededLong 
MsgSwapIntoLnExpiredLong 
MsgDisclaimerTos0 
MsgDisclaimerTos1 
MsgDisclaimerCommitmentFee 
MsgAboutGen0 
MsgAboutGen1 
MsgAboutGen2 
MsgAboutGen3 
MsgAboutGen4 
MsgAboutGen5 
MsgAboutGen6 
MsgAboutGen7 
MsgAboutGen8 
MsgAboutGen9 
MsgAboutGen10 
MsgAboutGen11 
MsgAboutGen12 
MsgAboutMathGen0 
MsgAboutMathGen1 
MsgAboutMathGen2 
MsgAboutMathGen3 
MsgAboutMathGen4 
MsgAboutMathGen5 
MsgAboutMathGen6 
MsgAboutMathGen7 
MsgAboutMathGen8 
MsgAboutMathGen9 
MsgAboutMathMinMax0 
MsgAboutMathMinMax1 
MsgAboutMathMinMax2 
MsgAboutMathMinMax3 
MsgAboutMathMinMax4 
MsgAboutMathMinMax5 
MsgAboutMathMinMax6 
MsgAboutMathMinMax7 
MsgAboutMathMinMax8 
MsgAboutMathLspFee0 
MsgAboutMathLspFee1 
MsgAboutMathLspFee2 
MsgAboutMathLspFee3 
MsgAboutMathLspFee4 
MsgAboutMathLspFee5 
MsgAboutMathLspFee6 
MsgAboutMathLspFee7 
MsgAboutMathLspFee8 
MsgAboutMathLspFee9 
MsgAboutMathLspFee10 
MsgAboutMathCommFee0 
MsgAboutMathCommFee1 
MsgAboutMathCommFee2 
MsgAboutExamples 
MsgAboutExamplesUserOnChainFunding 
MsgAboutExamplesLspSwapFee 
MsgAboutExamplesUserOutgoingCap 
MsgAboutExamplesUserIncomingCap 
MsgAboutExamplesTotalChanCap 
MsgAboutSwap0 
MsgAboutSwap1 
MsgAboutSwap2 
MsgAboutSwap3 
MsgAboutSwap4 
MsgAboutSwap5 
MsgAboutSwap6 
MsgAboutSwap7 
MsgAboutSwap8 
MsgAboutSwap9 
MsgAboutSwap10 
MsgAboutSwap11 
MsgAboutSwap12 
MsgAboutDisclaimer0 
MsgAboutDisclaimer1 

Instances

Instances details
RenderMessage App AppMessage Source # 
Instance details

Defined in BtcLsp.Yesod.Foundation

Methods

renderMessage :: App -> [Lang] -> AppMessage -> Text #

type Form x = Html -> MForm (HandlerFor App) (FormResult x, Widget) Source #

A convenient synonym for creating forms.

type DB a = forall (m :: Type -> Type). MonadUnliftIO m => ReaderT SqlBackend m a Source #

A convenient synonym for database access functions.

isAuthenticated :: Handler AuthResult Source #

Access function to determine if a user is logged in.