Safe Haskell | None |
---|---|
Language | Haskell2010 |
Turn
UnbalancedTx
values into transactions using the
wallet API.
Synopsis
- balanceTx :: forall (effs :: [ Type -> Type ]). Member WalletEffect effs => UnbalancedTx -> Eff effs ( Either WalletAPIError CardanoTx)
- handleTx :: ( Member WalletEffect effs, Member ( Error WalletAPIError) effs) => UnbalancedTx -> Eff effs CardanoTx
- yieldUnbalancedTx :: forall (effs :: [ Type -> Type ]). Member WalletEffect effs => UnbalancedTx -> Eff effs ()
- signTxAndSubmit :: forall (effs :: [ Type -> Type ]). Member WalletEffect effs => CardanoTx -> Eff effs CardanoTx
-
data
ExportTx
=
ExportTx
{
- partialTx :: Tx BabbageEra
- lookups :: [ ExportTxInput ]
- redeemers :: [ ExportTxRedeemer ]
-
data
ExportTxInput
=
ExportTxInput
{
- etxiId :: TxId
- etxiTxIx :: TxIx
- etxiAddress :: AddressInEra BabbageEra
- etxiLovelaceQuantity :: Lovelace
- etxiDatumHash :: Maybe ( Hash ScriptData )
- etxiAssets :: [( PolicyId , AssetName , Quantity )]
-
data
ExportTxRedeemer
- = SpendingRedeemer { }
- | MintingRedeemer { }
- | RewardingRedeemer { }
-
|
CertifyingRedeemer
{
- redeemer :: Redeemer
- redeemerDCert :: DCert
- export :: Params -> UnbalancedTx -> Either CardanoLedgerError ExportTx
Documentation
balanceTx :: forall (effs :: [ Type -> Type ]). Member WalletEffect effs => UnbalancedTx -> Eff effs ( Either WalletAPIError CardanoTx) #
handleTx :: ( Member WalletEffect effs, Member ( Error WalletAPIError) effs) => UnbalancedTx -> Eff effs CardanoTx Source #
Balance an unabalanced transaction, sign it, and submit it to the chain in the context of a wallet.
yieldUnbalancedTx :: forall (effs :: [ Type -> Type ]). Member WalletEffect effs => UnbalancedTx -> Eff effs () #
signTxAndSubmit :: forall (effs :: [ Type -> Type ]). Member WalletEffect effs => CardanoTx -> Eff effs CardanoTx #
Exporting transactions
Partial transaction that can be balanced by the wallet backend.
ExportTx | |
|
Instances
Eq ExportTx Source # | |
Show ExportTx Source # | |
Generic ExportTx Source # | |
ToJSON ExportTx Source # | |
FromJSON ExportTx Source # | |
ToSchema ExportTx Source # | |
Defined in Plutus.PAB.Webserver.Types |
|
type Rep ExportTx Source # | |
Defined in Cardano.Wallet.LocalClient.ExportTx
type
Rep
ExportTx
=
D1
('
MetaData
"ExportTx" "Cardano.Wallet.LocalClient.ExportTx" "plutus-pab-1.2.0.0-CtfsFiD4ohhEkbPm9mkCAB" '
False
) (
C1
('
MetaCons
"ExportTx" '
PrefixI
'
True
) (
S1
('
MetaSel
('
Just
"partialTx") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
(
Tx
BabbageEra
))
:*:
(
S1
('
MetaSel
('
Just
"lookups") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
[
ExportTxInput
])
:*:
S1
('
MetaSel
('
Just
"redeemers") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
[
ExportTxRedeemer
]))))
|
data ExportTxInput Source #
ExportTxInput | |
|
Instances
data ExportTxRedeemer Source #
SpendingRedeemer | |
MintingRedeemer | |
RewardingRedeemer | |
CertifyingRedeemer | |
|
Instances
export :: Params -> UnbalancedTx -> Either CardanoLedgerError ExportTx Source #