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 {
- redeemer :: Redeemer
- redeemerOutRef :: TxOutRef
- | MintingRedeemer {
- redeemer :: Redeemer
- redeemerPolicyId :: MintingPolicyHash
- | RewardingRedeemer {
- redeemer :: Redeemer
- redeemerStakingCredential :: StakingCredential
- | CertifyingRedeemer {
- redeemer :: Redeemer
- redeemerDCert :: DCert
- = SpendingRedeemer {
- 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
data ExportTxInput Source #
ExportTxInput | |
|
Instances
data ExportTxRedeemer Source #
SpendingRedeemer | |
| |
MintingRedeemer | |
| |
RewardingRedeemer | |
| |
CertifyingRedeemer | |
|