convex-devnet-0.2.0.0: Devnet for integration tests
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.Devnet.Wallet

Description

Glue code

Synopsis

Documentation

sendFaucetFundsToTracer IO WalletLogRunningNodeAddressInEra BabbageEraIntLovelaceIO (Tx BabbageEra) Source #

Send n times the given amount of lovelace to the address

createSeededWalletTracer IO WalletLogRunningNodeIntLovelaceIO 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.

walletUtxosRunningNodeWalletIO (UtxoSet CtxUTxO ()) Source #

Query the node for UTXOs that belong to the wallet

balanceAndSubmitTracer IO WalletLogRunningNodeWalletTxBodyContent BuildTx BabbageEraIO (Tx BabbageEra) Source #

Balance and submit the transaction using the wallet's UTXOs

balanceAndSubmitReturnTracer IO WalletLogRunningNodeWalletTxOut CtxTx BabbageEraTxBodyContent BuildTx BabbageEraIO (Tx BabbageEra) Source #

Balance and submit the transaction using the wallet's UTXOs

data WalletLog Source #

Instances

Instances details
FromJSON WalletLog Source # 
Instance details

Defined in Convex.Devnet.Wallet

ToJSON WalletLog Source # 
Instance details

Defined in Convex.Devnet.Wallet

Generic WalletLog Source # 
Instance details

Defined in Convex.Devnet.Wallet

Associated Types

type Rep WalletLogTypeType Source #

Show WalletLog Source # 
Instance details

Defined in Convex.Devnet.Wallet

type Rep WalletLog Source # 
Instance details

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 ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: (C1 ('MetaCons "WalletLogWarn" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "GeneratedWallet" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Wallet))))

Tracer / MonadLog interop

newtype TracerMonadLogT m a Source #

Constructors

TracerMonadLogT 

Instances

Instances details
MonadFail m ⇒ MonadFail (TracerMonadLogT m) Source # 
Instance details

Defined in Convex.Devnet.Wallet

Methods

failStringTracerMonadLogT m a Source #

MonadIO m ⇒ MonadIO (TracerMonadLogT m) Source # 
Instance details

Defined in Convex.Devnet.Wallet

Methods

liftIOIO a → TracerMonadLogT m a Source #

Applicative m ⇒ Applicative (TracerMonadLogT m) Source # 
Instance details

Defined in Convex.Devnet.Wallet

Functor m ⇒ Functor (TracerMonadLogT m) Source # 
Instance details

Defined in Convex.Devnet.Wallet

Methods

fmap ∷ (a → b) → TracerMonadLogT m a → TracerMonadLogT m b Source #

(<$) ∷ a → TracerMonadLogT m b → TracerMonadLogT m a Source #

Monad m ⇒ Monad (TracerMonadLogT m) Source # 
Instance details

Defined in Convex.Devnet.Wallet

Monad m ⇒ MonadLog (TracerMonadLogT m) Source # 
Instance details

Defined in Convex.Devnet.Wallet

runningNodeBlockchain ∷ ∀ e a. Show e ⇒ Tracer IO WalletLogRunningNode → (∀ 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