From 1e2810f0cc423d2c632430d6a9572d7b70dfa2b8 Mon Sep 17 00:00:00 2001 From: mmontin Date: Thu, 12 Sep 2024 17:51:00 +0200 Subject: [PATCH] withdrawals --- doc/CHEATSHEET.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/doc/CHEATSHEET.md b/doc/CHEATSHEET.md index c175095c..c31211a7 100644 --- a/doc/CHEATSHEET.md +++ b/doc/CHEATSHEET.md @@ -313,16 +313,6 @@ txSkelTemplate * ``paysPK ... `withStakingCredential` ...`` * ``paysScript... ... `withStakingCredential` ...`` -### Spend a referenced script output - -```haskell -txSkelTemplate - { ... - txSkelIns = Map.fromList [(scriptTxOutRefToSpend, txSkelSomeRedeemerForReferencedScript txOutRefCarryingReferenceScript redeemer), ...], - ... - } -``` - ## Balancing ### Choose which wallet provides UTxOs to balance a transaction @@ -560,3 +550,15 @@ txSkelTemplate { txOptAnchorResolution = AnchorResolutionHttp } ``` + +## Withdrawals + +Withdrawals allow to execute scripts with the "rewarding" purpose but do not +work properly in terms of withdrawn values. + +```haskell + txSkelTemplate + { txSkelWithdrawals = scriptWithdrawal withdrawalScript someRedeemer someAdaValue, + ... + } +```