plutus-contract-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.Trace.Effects.EmulatedWalletAPI

Description

Interfacing with the wallet (for making payments)

Synopsis

Documentation

data EmulatedWalletAPI r where Source #

Constructors

LiftWallet :: Wallet -> Eff '[WalletEffect, Error WalletAPIError, LogMsg Text, LogMsg RequestHandlerLogMsg] a -> EmulatedWalletAPI a 

liftWallet :: forall a. forall effs. Member EmulatedWalletAPI effs => Wallet -> Eff ('(:) WalletEffect ('(:) (Error WalletAPIError) ('(:) (LogMsg Text) ('(:) (LogMsg RequestHandlerLogMsg) ('[] :: [Type -> Type]))))) a -> Eff effs a Source #

payToWallet :: forall effs. Member EmulatedWalletAPI effs => Wallet -> Wallet -> Value -> Eff effs TxId Source #

Make a payment from one wallet to another

handleEmulatedWalletAPI :: Member MultiAgentEffect effs => EmulatedWalletAPI ~> Eff effs Source #

Handle the EmulatedWalletAPI effect using the emulator's MultiAgent effect.