Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Glue code
Synopsis
- faucet ∷ IO Wallet
- sendFaucetFundsTo ∷ Tracer IO WalletLog → RunningNode → AddressInEra BabbageEra → Int → Lovelace → IO (Tx BabbageEra)
- createSeededWallet ∷ Tracer IO WalletLog → RunningNode → Int → Lovelace → IO Wallet
- walletUtxos ∷ RunningNode → Wallet → IO (UtxoSet CtxUTxO ())
- balanceAndSubmit ∷ Tracer IO WalletLog → RunningNode → Wallet → TxBodyContent BuildTx BabbageEra → IO (Tx BabbageEra)
- balanceAndSubmitReturn ∷ Tracer IO WalletLog → RunningNode → Wallet → TxOut CtxTx BabbageEra → TxBodyContent BuildTx BabbageEra → IO (Tx BabbageEra)
- data WalletLog
- newtype TracerMonadLogT m a = TracerMonadLogT {
- unTracerMonadLogT ∷ ReaderT (Tracer m WalletLog) m a
- runTracerMonadLogT ∷ Tracer m WalletLog → TracerMonadLogT m a → m a
- runningNodeBlockchain ∷ ∀ e a. Show e ⇒ Tracer IO WalletLog → RunningNode → (∀ m. (MonadFail m, MonadLog m, MonadBlockchain m) ⇒ m a) → IO a
Documentation
sendFaucetFundsTo ∷ Tracer IO WalletLog → RunningNode → AddressInEra BabbageEra → Int → Lovelace → IO (Tx BabbageEra) Source #
Send n
times the given amount of lovelace to the address
createSeededWallet ∷ Tracer IO WalletLog → RunningNode → Int → Lovelace → IO Wallet Source #
Create a new wallet and send n
times the given amount of lovelace to it. Returns when the seed txn has been registered
on the chain.
walletUtxos ∷ RunningNode → Wallet → IO (UtxoSet CtxUTxO ()) Source #
Query the node for UTXOs that belong to the wallet
balanceAndSubmit ∷ Tracer IO WalletLog → RunningNode → Wallet → TxBodyContent BuildTx BabbageEra → IO (Tx BabbageEra) Source #
Balance and submit the transaction using the wallet's UTXOs
balanceAndSubmitReturn ∷ Tracer IO WalletLog → RunningNode → Wallet → TxOut CtxTx BabbageEra → TxBodyContent BuildTx BabbageEra → IO (Tx BabbageEra) Source #
Balance and submit the transaction using the wallet's UTXOs
Instances
FromJSON WalletLog Source # | |
ToJSON WalletLog Source # | |
Generic WalletLog Source # | |
Show WalletLog Source # | |
type Rep WalletLog Source # | |
Defined in Convex.Devnet.Wallet type Rep WalletLog = D1 ('MetaData "WalletLog" "Convex.Devnet.Wallet" "convex-devnet-0.2.0.0-inplace" 'False) (C1 ('MetaCons "WalletLogInfo" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: (C1 ('MetaCons "WalletLogWarn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "GeneratedWallet" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Wallet)))) |
Tracer / MonadLog interop
newtype TracerMonadLogT m a Source #
TracerMonadLogT | |
|
Instances
runTracerMonadLogT ∷ Tracer m WalletLog → TracerMonadLogT m a → m a Source #
runningNodeBlockchain ∷ ∀ e a. Show e ⇒ Tracer IO WalletLog → RunningNode → (∀ m. (MonadFail m, MonadLog m, MonadBlockchain m) ⇒ m a) → IO a Source #
Run a MonadBlockchain
action, using the Tracer
for log messages and the
RunningNode
for blockchain stuff