Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Start a wallet / operator server
Synopsis
- data RunningWalletServer = RunningWalletServer {}
- data WalletLog
- = WMsgText { }
- | WMsgWaiting String
- | WCreatingKey { }
- | WWallet WalletLog
- withWallet ∷ Tracer IO WalletLog → FilePath → RunningNode → (RunningWalletServer → IO a) → IO a
- getUTxOs ∷ RunningWalletServer → IO (UtxoSet CtxTx ())
- waitUntilAvailable ∷ Tracer IO WalletLog → RunningWalletServer → IO ()
- sendFundsToOperator ∷ Tracer IO WalletLog → RunningNode → Operator k → Lovelace → IO (Tx BabbageEra)
Documentation
data RunningWalletServer Source #
Instances
FromJSON WalletLog Source # | |
ToJSON WalletLog Source # | |
Generic WalletLog Source # | |
Show WalletLog Source # | |
type Rep WalletLog Source # | |
Defined in Convex.Devnet.WalletServer type Rep WalletLog = D1 ('MetaData "WalletLog" "Convex.Devnet.WalletServer" "convex-devnet-0.2.0.0-inplace" 'False) ((C1 ('MetaCons "WMsgText" 'PrefixI 'True) (S1 ('MetaSel ('Just "wmsgText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "WMsgWaiting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))) :+: (C1 ('MetaCons "WCreatingKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: C1 ('MetaCons "WWallet" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WalletLog)))) |
withWallet ∷ Tracer IO WalletLog → FilePath → RunningNode → (RunningWalletServer → IO a) → IO a Source #
waitUntilAvailable ∷ Tracer IO WalletLog → RunningWalletServer → IO () Source #
Wait until the service is online (healthcheck route respons with 200)
sendFundsToOperator ∷ Tracer IO WalletLog → RunningNode → Operator k → Lovelace → IO (Tx BabbageEra) Source #
Send faucet funds to the operator