plutus-contract-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Wallet.Effects

Synopsis

Wallet effect

data WalletEffect r where Source #

Constructors

SubmitTxn :: CardanoTx -> WalletEffect () 
OwnPaymentPubKeyHash :: WalletEffect PaymentPubKeyHash 
BalanceTx :: UnbalancedTx -> WalletEffect (Either WalletAPIError CardanoTx) 
TotalFunds 

Fields

WalletAddSignature :: CardanoTx -> WalletEffect CardanoTx 
YieldUnbalancedTx :: UnbalancedTx -> WalletEffect ()

Sends an unbalanced tx to be balanced, signed and submitted.

submitTxn :: forall effs. Member WalletEffect effs => CardanoTx -> Eff effs () Source #

totalFunds :: forall effs. Member WalletEffect effs => Eff effs Value Source #

yieldUnbalancedTx :: forall effs. Member WalletEffect effs => UnbalancedTx -> Eff effs () Source #

Node client

publishTx :: forall effs. Member NodeClientEffect effs => CardanoTx -> Eff effs () Source #

getClientSlot :: forall effs. Member NodeClientEffect effs => Eff effs Slot Source #