Skip to content

Commit

Permalink
Add treasury donation for build tx command
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturWieczorek committed Jul 24, 2024
1 parent 43f8b1f commit c8744a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cardano_clusterlib/transaction_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ def build_tx( # noqa: C901
script_withdrawals: structs.OptionalScriptWithdrawals = (),
script_votes: structs.OptionalScriptVotes = (),
deposit: tp.Optional[int] = None,
treasury_donation: tp.Optional[int] = None,
invalid_hereafter: tp.Optional[int] = None,
invalid_before: tp.Optional[int] = None,
witness_override: tp.Optional[int] = None,
Expand Down Expand Up @@ -810,6 +811,7 @@ def build_tx( # noqa: C901
data (optional).
script_votes: An iterable of `ScriptVote`, specifying vote script data (optional).
deposit: A deposit amount needed by the transaction (optional).
treasury_donation: A donation to the treasury to perform (optional).
invalid_hereafter: A last block when the transaction is still valid (optional).
invalid_before: A first block when the transaction is valid (optional).
witness_override: An integer indicating real number of witnesses. Can be used to fix
Expand Down Expand Up @@ -892,6 +894,9 @@ def build_tx( # noqa: C901
if invalid_hereafter is not None:
misc_args.extend(["--invalid-hereafter", str(invalid_hereafter)])

if treasury_donation is not None:
misc_args.extend(["--treasury-donation", str(treasury_donation)])

if not script_valid:
misc_args.append("--script-invalid")

Expand Down

0 comments on commit c8744a5

Please sign in to comment.