@@ -163,6 +163,7 @@ def build_raw_tx_bare(
163
163
ttl : tp .Optional [int ] = None ,
164
164
withdrawals : structs .OptionalTxOuts = (),
165
165
script_withdrawals : structs .OptionalScriptWithdrawals = (),
166
+ script_votes : structs .OptionalScriptVotes = (),
166
167
invalid_hereafter : tp .Optional [int ] = None ,
167
168
invalid_before : tp .Optional [int ] = None ,
168
169
script_valid : bool = True ,
@@ -195,6 +196,7 @@ def build_raw_tx_bare(
195
196
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
196
197
script_withdrawals: An iterable of `ScriptWithdrawal`, specifying withdrawal script
197
198
data (optional).
199
+ script_votes: An iterable of `ScriptVote`, specifying vote script data (optional).
198
200
invalid_hereafter: A last block when the transaction is still valid (optional).
199
201
invalid_before: A first block when the transaction is valid (optional).
200
202
script_valid: A bool indicating that the script is valid (True by default).
@@ -256,6 +258,7 @@ def build_raw_tx_bare(
256
258
mint = mint ,
257
259
complex_certs = complex_certs ,
258
260
script_withdrawals = script_withdrawals ,
261
+ script_votes = script_votes ,
259
262
for_build = False ,
260
263
)
261
264
@@ -321,6 +324,7 @@ def build_raw_tx_bare(
321
324
era = self ._clusterlib_obj .command_era or self ._clusterlib_obj .tx_era ,
322
325
script_txins = script_txins ,
323
326
script_withdrawals = script_withdrawals ,
327
+ script_votes = script_votes ,
324
328
complex_certs = complex_certs ,
325
329
mint = mint ,
326
330
invalid_hereafter = invalid_hereafter or ttl ,
@@ -360,6 +364,7 @@ def build_raw_tx(
360
364
ttl : tp .Optional [int ] = None ,
361
365
withdrawals : structs .OptionalTxOuts = (),
362
366
script_withdrawals : structs .OptionalScriptWithdrawals = (),
367
+ script_votes : structs .OptionalScriptVotes = (),
363
368
deposit : tp .Optional [int ] = None ,
364
369
invalid_hereafter : tp .Optional [int ] = None ,
365
370
invalid_before : tp .Optional [int ] = None ,
@@ -395,6 +400,7 @@ def build_raw_tx(
395
400
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
396
401
script_withdrawals: An iterable of `ScriptWithdrawal`, specifying withdrawal script
397
402
data (optional).
403
+ script_votes: An iterable of `ScriptVote`, specifying vote script data (optional).
398
404
deposit: A deposit amount needed by the transaction (optional).
399
405
invalid_hereafter: A last block when the transaction is still valid (optional).
400
406
invalid_before: A first block when the transaction is valid (optional).
@@ -453,6 +459,7 @@ def build_raw_tx(
453
459
required_signer_hashes = required_signer_hashes ,
454
460
withdrawals = collected_data .withdrawals ,
455
461
script_withdrawals = collected_data .script_withdrawals ,
462
+ script_votes = script_votes ,
456
463
invalid_hereafter = invalid_hereafter or ttl ,
457
464
invalid_before = invalid_before ,
458
465
join_txouts = join_txouts ,
@@ -530,6 +537,7 @@ def calculate_tx_fee(
530
537
ttl : tp .Optional [int ] = None ,
531
538
withdrawals : structs .OptionalTxOuts = (),
532
539
script_withdrawals : structs .OptionalScriptWithdrawals = (),
540
+ script_votes : structs .OptionalScriptVotes = (),
533
541
deposit : tp .Optional [int ] = None ,
534
542
invalid_hereafter : tp .Optional [int ] = None ,
535
543
invalid_before : tp .Optional [int ] = None ,
@@ -566,6 +574,7 @@ def calculate_tx_fee(
566
574
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
567
575
script_withdrawals: An iterable of `ScriptWithdrawal`, specifying withdrawal script
568
576
data (optional).
577
+ script_votes: An iterable of `ScriptVote`, specifying vote script data (optional).
569
578
deposit: A deposit amount needed by the transaction (optional).
570
579
invalid_hereafter: A last block when the transaction is still valid (optional).
571
580
invalid_before: A first block when the transaction is valid (optional).
@@ -608,6 +617,7 @@ def calculate_tx_fee(
608
617
fee = self .min_fee ,
609
618
withdrawals = withdrawals ,
610
619
script_withdrawals = script_withdrawals ,
620
+ script_votes = script_votes ,
611
621
invalid_hereafter = invalid_hereafter or ttl ,
612
622
invalid_before = invalid_before ,
613
623
deposit = deposit ,
@@ -735,6 +745,7 @@ def build_tx( # noqa: C901
735
745
required_signer_hashes : tp .Optional [tp .List [str ]] = None ,
736
746
withdrawals : structs .OptionalTxOuts = (),
737
747
script_withdrawals : structs .OptionalScriptWithdrawals = (),
748
+ script_votes : structs .OptionalScriptVotes = (),
738
749
deposit : tp .Optional [int ] = None ,
739
750
invalid_hereafter : tp .Optional [int ] = None ,
740
751
invalid_before : tp .Optional [int ] = None ,
@@ -774,6 +785,7 @@ def build_tx( # noqa: C901
774
785
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
775
786
script_withdrawals: An iterable of `ScriptWithdrawal`, specifying withdrawal script
776
787
data (optional).
788
+ script_votes: An iterable of `ScriptVote`, specifying vote script data (optional).
777
789
deposit: A deposit amount needed by the transaction (optional).
778
790
invalid_hereafter: A last block when the transaction is still valid (optional).
779
791
invalid_before: A first block when the transaction is valid (optional).
@@ -866,6 +878,7 @@ def build_tx( # noqa: C901
866
878
mint = mint ,
867
879
complex_certs = complex_certs ,
868
880
script_withdrawals = collected_data .script_withdrawals ,
881
+ script_votes = script_votes ,
869
882
for_build = True ,
870
883
)
871
884
@@ -931,6 +944,7 @@ def build_tx( # noqa: C901
931
944
era = self ._clusterlib_obj .command_era or self ._clusterlib_obj .tx_era ,
932
945
script_txins = script_txins ,
933
946
script_withdrawals = collected_data .script_withdrawals ,
947
+ script_votes = script_votes ,
934
948
complex_certs = complex_certs ,
935
949
mint = mint ,
936
950
invalid_hereafter = invalid_hereafter ,
@@ -1159,6 +1173,7 @@ def send_tx(
1159
1173
ttl : tp .Optional [int ] = None ,
1160
1174
withdrawals : structs .OptionalTxOuts = (),
1161
1175
script_withdrawals : structs .OptionalScriptWithdrawals = (),
1176
+ script_votes : structs .OptionalScriptVotes = (),
1162
1177
deposit : tp .Optional [int ] = None ,
1163
1178
invalid_hereafter : tp .Optional [int ] = None ,
1164
1179
invalid_before : tp .Optional [int ] = None ,
@@ -1203,6 +1218,7 @@ def send_tx(
1203
1218
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
1204
1219
script_withdrawals: An iterable of `ScriptWithdrawal`, specifying withdrawal script
1205
1220
data (optional).
1221
+ script_votes: An iterable of `ScriptVote`, specifying vote script data (optional).
1206
1222
deposit: A deposit amount needed by the transaction (optional).
1207
1223
invalid_hereafter: A last block when the transaction is still valid (optional).
1208
1224
invalid_before: A first block when the transaction is valid (optional).
@@ -1274,6 +1290,7 @@ def send_tx(
1274
1290
required_signer_hashes = required_signer_hashes ,
1275
1291
withdrawals = withdrawals ,
1276
1292
script_withdrawals = script_withdrawals ,
1293
+ script_votes = script_votes ,
1277
1294
deposit = deposit ,
1278
1295
invalid_hereafter = invalid_hereafter or ttl ,
1279
1296
invalid_before = invalid_before ,
@@ -1387,6 +1404,7 @@ def calculate_plutus_script_cost(
1387
1404
required_signer_hashes : tp .Optional [tp .List [str ]] = None ,
1388
1405
withdrawals : structs .OptionalTxOuts = (),
1389
1406
script_withdrawals : structs .OptionalScriptWithdrawals = (),
1407
+ script_votes : structs .OptionalScriptVotes = (),
1390
1408
deposit : tp .Optional [int ] = None ,
1391
1409
invalid_hereafter : tp .Optional [int ] = None ,
1392
1410
invalid_before : tp .Optional [int ] = None ,
@@ -1425,6 +1443,7 @@ def calculate_plutus_script_cost(
1425
1443
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
1426
1444
script_withdrawals: An iterable of `ScriptWithdrawal`, specifying withdrawal script
1427
1445
data (optional).
1446
+ script_votes: An iterable of `ScriptVote`, specifying vote script data (optional).
1428
1447
deposit: A deposit amount needed by the transaction (optional).
1429
1448
invalid_hereafter: A last block when the transaction is still valid (optional).
1430
1449
invalid_before: A first block when the transaction is valid (optional).
0 commit comments