@cardananium/cquisitor-lib 0.1.0-beta.33 → 0.1.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cquisitor_lib.d.ts +960 -891
- package/browser/cquisitor_lib_bg.js +123 -90
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2 -1
- package/node/cquisitor_lib.d.ts +960 -891
- package/node/cquisitor_lib.js +98 -65
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3,6 +3,77 @@
|
|
|
3
3
|
* @returns {string}
|
|
4
4
|
*/
|
|
5
5
|
export function get_necessary_data_list_js(tx_hex: string): string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Extracts all script and datum hashes from a transaction
|
|
9
|
+
* @param {string} tx_hex - Hex-encoded transaction bytes
|
|
10
|
+
* @returns {string} JSON string with ExtractedHashes structure
|
|
11
|
+
*
|
|
12
|
+
* Schema:
|
|
13
|
+
* ```typescript
|
|
14
|
+
* interface ExtractedHashes {
|
|
15
|
+
* // Script hashes from witness set (native scripts) - indexed by position in witness set
|
|
16
|
+
* witness_native_script_hashes: (string | null)[];
|
|
17
|
+
* // Script info from witness set (plutus scripts) - indexed by position in witness set
|
|
18
|
+
* witness_plutus_scripts: (PlutusScriptInfo | null)[];
|
|
19
|
+
* // Datum hashes from witness set (plutus_data) - indexed by position in witness set
|
|
20
|
+
* witness_datum_hashes: (string | null)[];
|
|
21
|
+
* // Inlined script info from transaction outputs (script_ref) - indexed by output index
|
|
22
|
+
* output_inline_scripts: (InlineScriptInfo | null)[];
|
|
23
|
+
* // Inlined datum hashes from transaction outputs (inline datum) - indexed by output index
|
|
24
|
+
* output_inline_datum_hashes: (string | null)[];
|
|
25
|
+
* // Datum hashes from transaction outputs (data_hash field) - indexed by output index
|
|
26
|
+
* output_datum_hashes: (string | null)[];
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* interface PlutusScriptInfo {
|
|
30
|
+
* hash: string;
|
|
31
|
+
* version: PlutusVersion;
|
|
32
|
+
* }
|
|
33
|
+
*
|
|
34
|
+
* type PlutusVersion = "V1" | "V2" | "V3";
|
|
35
|
+
*
|
|
36
|
+
* interface InlineScriptInfo {
|
|
37
|
+
* hash: string;
|
|
38
|
+
* script_type: InlineScriptType;
|
|
39
|
+
* }
|
|
40
|
+
*
|
|
41
|
+
* type InlineScriptType = "Native" | { Plutus: PlutusVersion };
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export function extract_hashes_from_transaction_js(tx_hex: string): string;
|
|
45
|
+
|
|
46
|
+
// ========== ExtractedHashes types ==========
|
|
47
|
+
|
|
48
|
+
export interface ExtractedHashes {
|
|
49
|
+
/** Script hashes from witness set (native scripts) - indexed by position in witness set */
|
|
50
|
+
witness_native_script_hashes: (string | null)[];
|
|
51
|
+
/** Script info from witness set (plutus scripts) - indexed by position in witness set */
|
|
52
|
+
witness_plutus_scripts: (PlutusScriptInfo | null)[];
|
|
53
|
+
/** Datum hashes from witness set (plutus_data) - indexed by position in witness set */
|
|
54
|
+
witness_datum_hashes: (string | null)[];
|
|
55
|
+
/** Inlined script info from transaction outputs (script_ref) - indexed by output index */
|
|
56
|
+
output_inline_scripts: (InlineScriptInfo | null)[];
|
|
57
|
+
/** Inlined datum hashes from transaction outputs (inline datum) - indexed by output index */
|
|
58
|
+
output_inline_datum_hashes: (string | null)[];
|
|
59
|
+
/** Datum hashes from transaction outputs (data_hash field) - indexed by output index */
|
|
60
|
+
output_datum_hashes: (string | null)[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface PlutusScriptInfo {
|
|
64
|
+
hash: string;
|
|
65
|
+
version: PlutusVersion;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type PlutusVersion = "V1" | "V2" | "V3";
|
|
69
|
+
|
|
70
|
+
export interface InlineScriptInfo {
|
|
71
|
+
hash: string;
|
|
72
|
+
script_type: InlineScriptType;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type InlineScriptType = "Native" | { Plutus: PlutusVersion };
|
|
76
|
+
|
|
6
77
|
/**
|
|
7
78
|
* @param {string} tx_hex
|
|
8
79
|
* @param {ValidationInputContext} validation_context
|
|
@@ -439,921 +510,919 @@ export interface CostModels {
|
|
|
439
510
|
///AUTOGENERATED
|
|
440
511
|
|
|
441
512
|
// Auto-generated TypeScript types from JSON schemas
|
|
442
|
-
// Generated at: 2025-
|
|
513
|
+
// Generated at: 2025-12-26T19:20:24.371Z
|
|
443
514
|
//
|
|
444
515
|
// This file contains exported TypeScript types that can be imported in other modules.
|
|
445
516
|
// Large integers (uint64, int64) are represented as bigint for safe handling.
|
|
446
517
|
|
|
447
518
|
export interface NecessaryInputData {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
| {
|
|
472
|
-
OutsideValidityIntervalUTxO: {
|
|
473
|
-
current_slot: bigint;
|
|
474
|
-
interval_end: bigint;
|
|
475
|
-
interval_start: bigint;
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
| {
|
|
479
|
-
MaxTxSizeUTxO: {
|
|
480
|
-
actual_size: bigint;
|
|
481
|
-
max_size: bigint;
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
| "InputSetEmptyUTxO"
|
|
485
|
-
| {
|
|
486
|
-
FeeTooSmallUTxO: {
|
|
487
|
-
actual_fee: bigint;
|
|
488
|
-
fee_decomposition: FeeDecomposition;
|
|
489
|
-
min_fee: bigint;
|
|
490
|
-
};
|
|
491
|
-
}
|
|
492
|
-
| {
|
|
493
|
-
ValueNotConservedUTxO: {
|
|
494
|
-
difference: Value;
|
|
495
|
-
input_sum: Value;
|
|
496
|
-
output_sum: Value;
|
|
497
|
-
};
|
|
498
|
-
}
|
|
499
|
-
| {
|
|
500
|
-
WrongNetwork: {
|
|
501
|
-
wrong_addresses: string[];
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
| {
|
|
505
|
-
WrongNetworkWithdrawal: {
|
|
506
|
-
wrong_addresses: string[];
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
| {
|
|
510
|
-
WrongNetworkInTxBody: {
|
|
511
|
-
actual_network: number;
|
|
512
|
-
expected_network: number;
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
| {
|
|
516
|
-
OutputTooSmallUTxO: {
|
|
517
|
-
min_amount: number;
|
|
518
|
-
output_amount: number;
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
| {
|
|
522
|
-
CollateralReturnTooSmall: {
|
|
523
|
-
min_amount: number;
|
|
524
|
-
output_amount: number;
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
| {
|
|
528
|
-
OutputBootAddrAttrsTooBig: {
|
|
529
|
-
actual_size: bigint;
|
|
530
|
-
max_size: bigint;
|
|
531
|
-
output: unknown;
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
| {
|
|
535
|
-
OutputsValueTooBig: {
|
|
536
|
-
actual_size: bigint;
|
|
537
|
-
max_size: bigint;
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
| {
|
|
541
|
-
InsufficientCollateral: {
|
|
542
|
-
required_collateral: number;
|
|
543
|
-
total_collateral: number;
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
| {
|
|
547
|
-
ExUnitsTooBigUTxO: {
|
|
548
|
-
actual_memory_units: bigint;
|
|
549
|
-
actual_steps_units: bigint;
|
|
550
|
-
max_memory_units: bigint;
|
|
551
|
-
max_steps_units: bigint;
|
|
552
|
-
};
|
|
553
|
-
}
|
|
554
|
-
| "CalculatedCollateralContainsNonAdaAssets"
|
|
555
|
-
| {
|
|
556
|
-
CollateralInputContainsNonAdaAssets: {
|
|
557
|
-
collateral_input: string;
|
|
558
|
-
};
|
|
559
|
-
}
|
|
560
|
-
| {
|
|
561
|
-
CollateralIsLockedByScript: {
|
|
562
|
-
invalid_collateral: string;
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
| {
|
|
566
|
-
TooManyCollateralInputs: {
|
|
567
|
-
actual_count: number;
|
|
568
|
-
max_count: number;
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
| "NoCollateralInputs"
|
|
572
|
-
| {
|
|
573
|
-
IncorrectTotalCollateralField: {
|
|
574
|
-
actual_sum: number;
|
|
575
|
-
declared_total: number;
|
|
576
|
-
};
|
|
577
|
-
}
|
|
578
|
-
| {
|
|
579
|
-
InvalidSignature: {
|
|
580
|
-
invalid_signature: string;
|
|
581
|
-
};
|
|
582
|
-
}
|
|
583
|
-
| {
|
|
584
|
-
ExtraneousSignature: {
|
|
585
|
-
extraneous_signature: string;
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
| {
|
|
589
|
-
NativeScriptIsUnsuccessful: {
|
|
590
|
-
native_script_hash: string;
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
| {
|
|
594
|
-
PlutusScriptIsUnsuccessful: {
|
|
595
|
-
plutus_script_hash: string;
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
| {
|
|
599
|
-
MissingVKeyWitnesses: {
|
|
600
|
-
missing_key_hash: string;
|
|
601
|
-
};
|
|
602
|
-
}
|
|
603
|
-
| {
|
|
604
|
-
MissingScriptWitnesses: {
|
|
605
|
-
missing_script_hash: string;
|
|
606
|
-
};
|
|
607
|
-
}
|
|
608
|
-
| {
|
|
609
|
-
MissingRedeemer: {
|
|
610
|
-
index: bigint;
|
|
611
|
-
tag: string;
|
|
612
|
-
};
|
|
613
|
-
}
|
|
614
|
-
| "MissingTxBodyMetadataHash"
|
|
615
|
-
| "MissingTxMetadata"
|
|
616
|
-
| {
|
|
617
|
-
ConflictingMetadataHash: {
|
|
618
|
-
actual_hash: string;
|
|
619
|
-
expected_hash: string;
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
| {
|
|
623
|
-
InvalidMetadata: {
|
|
624
|
-
message: string;
|
|
625
|
-
};
|
|
626
|
-
}
|
|
627
|
-
| {
|
|
628
|
-
ExtraneousScriptWitnesses: {
|
|
629
|
-
extraneous_script: string;
|
|
630
|
-
};
|
|
631
|
-
}
|
|
632
|
-
| {
|
|
633
|
-
StakeAlreadyRegistered: {
|
|
634
|
-
reward_address: string;
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
| {
|
|
638
|
-
StakeNotRegistered: {
|
|
639
|
-
reward_address: string;
|
|
640
|
-
};
|
|
641
|
-
}
|
|
642
|
-
| {
|
|
643
|
-
StakeNonZeroAccountBalance: {
|
|
644
|
-
remaining_balance: bigint;
|
|
645
|
-
reward_address: string;
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
| {
|
|
649
|
-
RewardAccountNotExisting: {
|
|
650
|
-
reward_address: string;
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
| {
|
|
654
|
-
WrongRequestedWithdrawalAmount: {
|
|
655
|
-
expected_amount: number;
|
|
656
|
-
requested_amount: bigint;
|
|
657
|
-
reward_address: string;
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
| {
|
|
661
|
-
StakePoolNotRegistered: {
|
|
662
|
-
pool_id: string;
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
| {
|
|
666
|
-
WrongRetirementEpoch: {
|
|
667
|
-
current_epoch: bigint;
|
|
668
|
-
max_epoch: bigint;
|
|
669
|
-
min_epoch: bigint;
|
|
670
|
-
specified_epoch: bigint;
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
| {
|
|
674
|
-
StakePoolCostTooLow: {
|
|
675
|
-
min_cost: bigint;
|
|
676
|
-
specified_cost: bigint;
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
| {
|
|
680
|
-
InsufficientFundsForMir: {
|
|
681
|
-
available_amount: bigint;
|
|
682
|
-
requested_amount: bigint;
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
| {
|
|
686
|
-
InvalidCommitteeVote: {
|
|
687
|
-
message: string;
|
|
688
|
-
voter: unknown;
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
| {
|
|
692
|
-
DRepIncorrectDeposit: {
|
|
693
|
-
required_deposit: number;
|
|
694
|
-
supplied_deposit: number;
|
|
695
|
-
};
|
|
696
|
-
}
|
|
697
|
-
| {
|
|
698
|
-
DRepDeregistrationWrongRefund: {
|
|
699
|
-
required_refund: number;
|
|
700
|
-
supplied_refund: number;
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
| {
|
|
704
|
-
StakeRegistrationWrongDeposit: {
|
|
705
|
-
required_deposit: number;
|
|
706
|
-
supplied_deposit: number;
|
|
707
|
-
};
|
|
708
|
-
}
|
|
709
|
-
| {
|
|
710
|
-
StakeDeregistrationWrongRefund: {
|
|
711
|
-
required_refund: number;
|
|
712
|
-
supplied_refund: number;
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
| {
|
|
716
|
-
PoolRegistrationWrongDeposit: {
|
|
717
|
-
required_deposit: number;
|
|
718
|
-
supplied_deposit: number;
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
| {
|
|
722
|
-
CommitteeHasPreviouslyResigned: {
|
|
723
|
-
committee_credential: LocalCredential;
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
| {
|
|
727
|
-
TreasuryValueMismatch: {
|
|
728
|
-
actual_value: bigint;
|
|
729
|
-
declared_value: bigint;
|
|
730
|
-
};
|
|
731
|
-
}
|
|
732
|
-
| {
|
|
733
|
-
RefScriptsSizeTooBig: {
|
|
734
|
-
actual_size: bigint;
|
|
735
|
-
max_size: bigint;
|
|
736
|
-
};
|
|
737
|
-
}
|
|
738
|
-
| {
|
|
739
|
-
WithdrawalNotAllowedBecauseNotDelegatedToDRep: {
|
|
740
|
-
reward_address: string;
|
|
741
|
-
};
|
|
742
|
-
}
|
|
743
|
-
| {
|
|
744
|
-
CommitteeIsUnknown: {
|
|
745
|
-
/**
|
|
746
|
-
* The committee key hash
|
|
747
|
-
*/
|
|
748
|
-
committee_key_hash:
|
|
749
|
-
| {
|
|
750
|
-
keyHash: number[];
|
|
751
|
-
}
|
|
752
|
-
| {
|
|
753
|
-
scriptHash: number[];
|
|
754
|
-
};
|
|
755
|
-
};
|
|
756
|
-
}
|
|
757
|
-
| {
|
|
758
|
-
GovActionsDoNotExist: {
|
|
759
|
-
/**
|
|
760
|
-
* The list of invalid governance action IDs
|
|
761
|
-
*/
|
|
762
|
-
invalid_action_ids: GovernanceActionId[];
|
|
763
|
-
};
|
|
764
|
-
}
|
|
765
|
-
| {
|
|
766
|
-
MalformedProposal: {
|
|
767
|
-
gov_action: GovernanceActionId;
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
| {
|
|
771
|
-
ProposalProcedureNetworkIdMismatch: {
|
|
772
|
-
/**
|
|
773
|
-
* The expected network ID
|
|
774
|
-
*/
|
|
775
|
-
expected_network: number;
|
|
776
|
-
/**
|
|
777
|
-
* The reward account
|
|
778
|
-
*/
|
|
779
|
-
reward_account: string;
|
|
780
|
-
};
|
|
781
|
-
}
|
|
782
|
-
| {
|
|
783
|
-
TreasuryWithdrawalsNetworkIdMismatch: {
|
|
784
|
-
/**
|
|
785
|
-
* The expected network ID
|
|
786
|
-
*/
|
|
787
|
-
expected_network: number;
|
|
788
|
-
/**
|
|
789
|
-
* The set of mismatched reward accounts
|
|
790
|
-
*/
|
|
791
|
-
mismatched_account: string;
|
|
792
|
-
};
|
|
793
|
-
}
|
|
794
|
-
| {
|
|
795
|
-
VotingProposalIncorrectDeposit: {
|
|
796
|
-
proposal_index: number;
|
|
797
|
-
/**
|
|
798
|
-
* The required deposit amount
|
|
799
|
-
*/
|
|
800
|
-
required_deposit: number;
|
|
801
|
-
/**
|
|
802
|
-
* The supplied deposit amount
|
|
803
|
-
*/
|
|
804
|
-
supplied_deposit: number;
|
|
805
|
-
};
|
|
806
|
-
}
|
|
807
|
-
| {
|
|
808
|
-
DisallowedVoters: {
|
|
809
|
-
/**
|
|
810
|
-
* List of disallowed voter and action ID pairs
|
|
811
|
-
*/
|
|
812
|
-
disallowed_pairs: [unknown, unknown][];
|
|
813
|
-
};
|
|
814
|
-
}
|
|
815
|
-
| {
|
|
816
|
-
ConflictingCommitteeUpdate: {
|
|
817
|
-
/**
|
|
818
|
-
* The set of conflicting credentials
|
|
819
|
-
*/
|
|
820
|
-
conflicting_credentials:
|
|
821
|
-
| {
|
|
822
|
-
keyHash: number[];
|
|
823
|
-
}
|
|
824
|
-
| {
|
|
825
|
-
scriptHash: number[];
|
|
826
|
-
};
|
|
827
|
-
};
|
|
828
|
-
}
|
|
829
|
-
| {
|
|
830
|
-
ExpirationEpochTooSmall: {
|
|
831
|
-
/**
|
|
832
|
-
* Map of credentials to their invalid expiration epochs
|
|
833
|
-
*/
|
|
834
|
-
invalid_expirations: {
|
|
835
|
-
[k: string]: number;
|
|
836
|
-
};
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
| {
|
|
840
|
-
InvalidPrevGovActionId: {
|
|
841
|
-
/**
|
|
842
|
-
* The invalid proposal
|
|
843
|
-
*/
|
|
844
|
-
proposal: {
|
|
845
|
-
[k: string]: unknown;
|
|
846
|
-
};
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
| {
|
|
850
|
-
VotingOnExpiredGovAction: {
|
|
851
|
-
expired_gov_action: GovernanceActionId;
|
|
852
|
-
};
|
|
853
|
-
}
|
|
854
|
-
| {
|
|
855
|
-
ProposalCantFollow: {
|
|
856
|
-
/**
|
|
857
|
-
* The expected protocol version
|
|
858
|
-
*/
|
|
859
|
-
expected_versions: ProtocolVersion[];
|
|
860
|
-
/**
|
|
861
|
-
* Previous governance action ID
|
|
862
|
-
*/
|
|
863
|
-
prev_gov_action_id?: GovernanceActionId | null;
|
|
864
|
-
supplied_version: ProtocolVersion;
|
|
865
|
-
};
|
|
866
|
-
}
|
|
867
|
-
| {
|
|
868
|
-
InvalidConstitutionPolicyHash: {
|
|
869
|
-
/**
|
|
870
|
-
* The expected policy hash
|
|
871
|
-
*/
|
|
872
|
-
expected_hash?: string | null;
|
|
873
|
-
/**
|
|
874
|
-
* The supplied policy hash
|
|
875
|
-
*/
|
|
876
|
-
supplied_hash?: string | null;
|
|
877
|
-
};
|
|
878
|
-
}
|
|
879
|
-
| {
|
|
880
|
-
VoterDoNotExist: {
|
|
881
|
-
/**
|
|
882
|
-
* List of non-existent voters
|
|
883
|
-
*/
|
|
884
|
-
missing_voter: {
|
|
885
|
-
[k: string]: unknown;
|
|
886
|
-
};
|
|
887
|
-
};
|
|
888
|
-
}
|
|
889
|
-
| {
|
|
890
|
-
ZeroTreasuryWithdrawals: {
|
|
891
|
-
gov_action: GovernanceActionId;
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
|
-
| {
|
|
895
|
-
ProposalReturnAccountDoesNotExist: {
|
|
896
|
-
/**
|
|
897
|
-
* The invalid return account
|
|
898
|
-
*/
|
|
899
|
-
return_account: string;
|
|
900
|
-
};
|
|
901
|
-
}
|
|
902
|
-
| {
|
|
903
|
-
TreasuryWithdrawalReturnAccountsDoNotExist: {
|
|
904
|
-
/**
|
|
905
|
-
* List of non-existent return accounts
|
|
906
|
-
*/
|
|
907
|
-
missing_account: string;
|
|
908
|
-
};
|
|
909
|
-
}
|
|
910
|
-
| {
|
|
911
|
-
AuxiliaryDataHashMismatch: {
|
|
912
|
-
/**
|
|
913
|
-
* The actual auxiliary data hash
|
|
914
|
-
*/
|
|
915
|
-
actual_hash?: string | null;
|
|
916
|
-
/**
|
|
917
|
-
* The expected auxiliary data hash
|
|
918
|
-
*/
|
|
919
|
-
expected_hash: string;
|
|
920
|
-
};
|
|
921
|
-
}
|
|
922
|
-
| "AuxiliaryDataHashMissing"
|
|
923
|
-
| "AuxiliaryDataHashPresentButNotExpected"
|
|
924
|
-
| {
|
|
925
|
-
UnknownError: {
|
|
926
|
-
message: string;
|
|
927
|
-
};
|
|
928
|
-
}
|
|
929
|
-
| {
|
|
930
|
-
MissingDatum: {
|
|
931
|
-
datum_hash: string;
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
| {
|
|
935
|
-
ExtraneousDatumWitnesses: {
|
|
936
|
-
datum_hash: string;
|
|
937
|
-
};
|
|
938
|
-
}
|
|
939
|
-
| {
|
|
940
|
-
ScriptDataHashMismatch: {
|
|
941
|
-
/**
|
|
942
|
-
* The expected script data hash
|
|
943
|
-
*/
|
|
944
|
-
expected_hash?: string | null;
|
|
945
|
-
/**
|
|
946
|
-
* The actual script data hash
|
|
947
|
-
*/
|
|
948
|
-
provided_hash?: string | null;
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
| {
|
|
952
|
-
ReferenceInputOverlapsWithInput: {
|
|
953
|
-
input: TxInput;
|
|
954
|
-
};
|
|
519
|
+
accounts: string[];
|
|
520
|
+
committeeMembersCold: LocalCredential[];
|
|
521
|
+
committeeMembersHot: LocalCredential[];
|
|
522
|
+
dReps: string[];
|
|
523
|
+
govActions: GovernanceActionId[];
|
|
524
|
+
lastEnactedGovAction: GovernanceActionType[];
|
|
525
|
+
pools: string[];
|
|
526
|
+
utxos: TxInput[];
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Phase 1 validation errors
|
|
531
|
+
*/
|
|
532
|
+
export type Phase1Error =
|
|
533
|
+
| (
|
|
534
|
+
| "GenesisKeyDelegationCertificateIsNotSupported"
|
|
535
|
+
| "MoveInstantaneousRewardsCertificateIsNotSupported"
|
|
536
|
+
)
|
|
537
|
+
| {
|
|
538
|
+
BadInputsUTxO: {
|
|
539
|
+
invalid_input: TxInput;
|
|
955
540
|
};
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
541
|
+
}
|
|
542
|
+
| {
|
|
543
|
+
OutsideValidityIntervalUTxO: {
|
|
544
|
+
current_slot: bigint;
|
|
545
|
+
interval_end: bigint;
|
|
546
|
+
interval_start: bigint;
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
| {
|
|
550
|
+
MaxTxSizeUTxO: {
|
|
551
|
+
actual_size: bigint;
|
|
552
|
+
max_size: bigint;
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
| "InputSetEmptyUTxO"
|
|
556
|
+
| {
|
|
557
|
+
FeeTooSmallUTxO: {
|
|
558
|
+
actual_fee: bigint;
|
|
559
|
+
fee_decomposition: FeeDecomposition;
|
|
560
|
+
min_fee: bigint;
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
| {
|
|
564
|
+
ValueNotConservedUTxO: {
|
|
565
|
+
difference: Value;
|
|
566
|
+
input_sum: Value;
|
|
567
|
+
output_sum: Value;
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
| {
|
|
571
|
+
WrongNetwork: {
|
|
572
|
+
wrong_addresses: string[];
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
| {
|
|
576
|
+
WrongNetworkWithdrawal: {
|
|
577
|
+
wrong_addresses: string[];
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
| {
|
|
581
|
+
WrongNetworkInTxBody: {
|
|
582
|
+
actual_network: number;
|
|
583
|
+
expected_network: number;
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
| {
|
|
587
|
+
OutputTooSmallUTxO: {
|
|
588
|
+
min_amount: number;
|
|
589
|
+
output_amount: number;
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
| {
|
|
593
|
+
CollateralReturnTooSmall: {
|
|
594
|
+
min_amount: number;
|
|
595
|
+
output_amount: number;
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
| {
|
|
599
|
+
OutputBootAddrAttrsTooBig: {
|
|
600
|
+
actual_size: bigint;
|
|
601
|
+
max_size: bigint;
|
|
602
|
+
output: unknown;
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
| {
|
|
606
|
+
OutputsValueTooBig: {
|
|
607
|
+
actual_size: bigint;
|
|
608
|
+
max_size: bigint;
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
| {
|
|
612
|
+
InsufficientCollateral: {
|
|
613
|
+
required_collateral: number;
|
|
614
|
+
total_collateral: number;
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
| {
|
|
618
|
+
ExUnitsTooBigUTxO: {
|
|
619
|
+
actual_memory_units: bigint;
|
|
620
|
+
actual_steps_units: bigint;
|
|
621
|
+
max_memory_units: bigint;
|
|
622
|
+
max_steps_units: bigint;
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
| "CalculatedCollateralContainsNonAdaAssets"
|
|
626
|
+
| {
|
|
627
|
+
CollateralInputContainsNonAdaAssets: {
|
|
628
|
+
collateral_input: string;
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
| {
|
|
632
|
+
CollateralIsLockedByScript: {
|
|
633
|
+
invalid_collateral: string;
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
| {
|
|
637
|
+
TooManyCollateralInputs: {
|
|
638
|
+
actual_count: number;
|
|
639
|
+
max_count: number;
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
| "NoCollateralInputs"
|
|
643
|
+
| {
|
|
644
|
+
IncorrectTotalCollateralField: {
|
|
645
|
+
actual_sum: number;
|
|
646
|
+
declared_total: number;
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
| {
|
|
650
|
+
InvalidSignature: {
|
|
651
|
+
invalid_signature: string;
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
| {
|
|
655
|
+
ExtraneousSignature: {
|
|
656
|
+
extraneous_signature: string;
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
| {
|
|
660
|
+
NativeScriptIsUnsuccessful: {
|
|
661
|
+
native_script_hash: string;
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
| {
|
|
665
|
+
PlutusScriptIsUnsuccessful: {
|
|
666
|
+
plutus_script_hash: string;
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
| {
|
|
670
|
+
MissingVKeyWitnesses: {
|
|
671
|
+
missing_key_hash: string;
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
| {
|
|
675
|
+
MissingScriptWitnesses: {
|
|
676
|
+
missing_script_hash: string;
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
| {
|
|
680
|
+
MissingRedeemer: {
|
|
681
|
+
index: bigint;
|
|
682
|
+
tag: string;
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
| "MissingTxBodyMetadataHash"
|
|
686
|
+
| "MissingTxMetadata"
|
|
687
|
+
| {
|
|
688
|
+
ConflictingMetadataHash: {
|
|
689
|
+
actual_hash: string;
|
|
690
|
+
expected_hash: string;
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
| {
|
|
694
|
+
InvalidMetadata: {
|
|
695
|
+
message: string;
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
| {
|
|
699
|
+
ExtraneousScriptWitnesses: {
|
|
700
|
+
extraneous_script: string;
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
| {
|
|
704
|
+
StakeAlreadyRegistered: {
|
|
705
|
+
reward_address: string;
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
| {
|
|
709
|
+
StakeNotRegistered: {
|
|
710
|
+
reward_address: string;
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
| {
|
|
714
|
+
StakeNonZeroAccountBalance: {
|
|
715
|
+
remaining_balance: bigint;
|
|
716
|
+
reward_address: string;
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
| {
|
|
720
|
+
RewardAccountNotExisting: {
|
|
721
|
+
reward_address: string;
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
| {
|
|
725
|
+
WrongRequestedWithdrawalAmount: {
|
|
726
|
+
expected_amount: number;
|
|
727
|
+
requested_amount: bigint;
|
|
728
|
+
reward_address: string;
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
| {
|
|
732
|
+
StakePoolNotRegistered: {
|
|
733
|
+
pool_id: string;
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
| {
|
|
737
|
+
WrongRetirementEpoch: {
|
|
738
|
+
current_epoch: bigint;
|
|
739
|
+
max_epoch: bigint;
|
|
740
|
+
min_epoch: bigint;
|
|
741
|
+
specified_epoch: bigint;
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
| {
|
|
745
|
+
StakePoolCostTooLow: {
|
|
746
|
+
min_cost: bigint;
|
|
747
|
+
specified_cost: bigint;
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
| {
|
|
751
|
+
InsufficientFundsForMir: {
|
|
752
|
+
available_amount: bigint;
|
|
753
|
+
requested_amount: bigint;
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
| {
|
|
757
|
+
InvalidCommitteeVote: {
|
|
758
|
+
message: string;
|
|
759
|
+
voter: unknown;
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
| {
|
|
763
|
+
DRepIncorrectDeposit: {
|
|
764
|
+
required_deposit: number;
|
|
765
|
+
supplied_deposit: number;
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
| {
|
|
769
|
+
DRepDeregistrationWrongRefund: {
|
|
770
|
+
required_refund: number;
|
|
771
|
+
supplied_refund: number;
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
| {
|
|
775
|
+
StakeRegistrationWrongDeposit: {
|
|
776
|
+
required_deposit: number;
|
|
777
|
+
supplied_deposit: number;
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
| {
|
|
781
|
+
StakeDeregistrationWrongRefund: {
|
|
782
|
+
required_refund: number;
|
|
783
|
+
supplied_refund: number;
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
| {
|
|
787
|
+
PoolRegistrationWrongDeposit: {
|
|
788
|
+
required_deposit: number;
|
|
789
|
+
supplied_deposit: number;
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
| {
|
|
793
|
+
CommitteeHasPreviouslyResigned: {
|
|
794
|
+
committee_credential: LocalCredential;
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
| {
|
|
798
|
+
TreasuryValueMismatch: {
|
|
799
|
+
actual_value: bigint;
|
|
800
|
+
declared_value: bigint;
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
| {
|
|
804
|
+
RefScriptsSizeTooBig: {
|
|
805
|
+
actual_size: bigint;
|
|
806
|
+
max_size: bigint;
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
| {
|
|
810
|
+
WithdrawalNotAllowedBecauseNotDelegatedToDRep: {
|
|
811
|
+
reward_address: string;
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
| {
|
|
815
|
+
CommitteeIsUnknown: {
|
|
816
|
+
/**
|
|
817
|
+
* The committee key hash
|
|
818
|
+
*/
|
|
819
|
+
committee_key_hash:
|
|
820
|
+
| {
|
|
821
|
+
keyHash: number[];
|
|
822
|
+
}
|
|
823
|
+
| {
|
|
824
|
+
scriptHash: number[];
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
| {
|
|
829
|
+
GovActionsDoNotExist: {
|
|
830
|
+
/**
|
|
831
|
+
* The list of invalid governance action IDs
|
|
832
|
+
*/
|
|
833
|
+
invalid_action_ids: GovernanceActionId[];
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
| {
|
|
837
|
+
MalformedProposal: {
|
|
838
|
+
gov_action: GovernanceActionId;
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
| {
|
|
842
|
+
ProposalProcedureNetworkIdMismatch: {
|
|
843
|
+
/**
|
|
844
|
+
* The expected network ID
|
|
845
|
+
*/
|
|
846
|
+
expected_network: number;
|
|
847
|
+
/**
|
|
848
|
+
* The reward account
|
|
849
|
+
*/
|
|
850
|
+
reward_account: string;
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
| {
|
|
854
|
+
TreasuryWithdrawalsNetworkIdMismatch: {
|
|
855
|
+
/**
|
|
856
|
+
* The expected network ID
|
|
857
|
+
*/
|
|
858
|
+
expected_network: number;
|
|
859
|
+
/**
|
|
860
|
+
* The set of mismatched reward accounts
|
|
861
|
+
*/
|
|
862
|
+
mismatched_account: string;
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
| {
|
|
866
|
+
VotingProposalIncorrectDeposit: {
|
|
867
|
+
proposal_index: number;
|
|
868
|
+
/**
|
|
869
|
+
* The required deposit amount
|
|
870
|
+
*/
|
|
871
|
+
required_deposit: number;
|
|
872
|
+
/**
|
|
873
|
+
* The supplied deposit amount
|
|
874
|
+
*/
|
|
875
|
+
supplied_deposit: number;
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
| {
|
|
879
|
+
DisallowedVoters: {
|
|
880
|
+
/**
|
|
881
|
+
* List of disallowed voter and action ID pairs
|
|
882
|
+
*/
|
|
883
|
+
disallowed_pairs: [unknown, unknown][];
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
| {
|
|
887
|
+
ConflictingCommitteeUpdate: {
|
|
888
|
+
/**
|
|
889
|
+
* The set of conflicting credentials
|
|
890
|
+
*/
|
|
891
|
+
conflicting_credentials:
|
|
892
|
+
| {
|
|
893
|
+
keyHash: number[];
|
|
894
|
+
}
|
|
895
|
+
| {
|
|
896
|
+
scriptHash: number[];
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
| {
|
|
901
|
+
ExpirationEpochTooSmall: {
|
|
902
|
+
/**
|
|
903
|
+
* Map of credentials to their invalid expiration epochs
|
|
904
|
+
*/
|
|
905
|
+
invalid_expirations: {
|
|
906
|
+
[k: string]: number;
|
|
1025
907
|
};
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
| {
|
|
911
|
+
InvalidPrevGovActionId: {
|
|
912
|
+
/**
|
|
913
|
+
* The invalid proposal
|
|
914
|
+
*/
|
|
915
|
+
proposal: {
|
|
916
|
+
[k: string]: unknown;
|
|
1030
917
|
};
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
| {
|
|
921
|
+
VotingOnExpiredGovAction: {
|
|
922
|
+
expired_gov_action: GovernanceActionId;
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
| {
|
|
926
|
+
ProposalCantFollow: {
|
|
927
|
+
/**
|
|
928
|
+
* The expected protocol version
|
|
929
|
+
*/
|
|
930
|
+
expected_versions: ProtocolVersion[];
|
|
931
|
+
/**
|
|
932
|
+
* Previous governance action ID
|
|
933
|
+
*/
|
|
934
|
+
prev_gov_action_id?: GovernanceActionId | null;
|
|
935
|
+
supplied_version: ProtocolVersion;
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
| {
|
|
939
|
+
InvalidConstitutionPolicyHash: {
|
|
940
|
+
/**
|
|
941
|
+
* The expected policy hash
|
|
942
|
+
*/
|
|
943
|
+
expected_hash?: string | null;
|
|
944
|
+
/**
|
|
945
|
+
* The supplied policy hash
|
|
946
|
+
*/
|
|
947
|
+
supplied_hash?: string | null;
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
| {
|
|
951
|
+
VoterDoNotExist: {
|
|
952
|
+
/**
|
|
953
|
+
* List of non-existent voters
|
|
954
|
+
*/
|
|
955
|
+
missing_voter: {
|
|
956
|
+
[k: string]: unknown;
|
|
1040
957
|
};
|
|
1041
958
|
};
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
959
|
+
}
|
|
960
|
+
| {
|
|
961
|
+
ZeroTreasuryWithdrawals: {
|
|
962
|
+
gov_action: GovernanceActionId;
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
| {
|
|
966
|
+
ProposalReturnAccountDoesNotExist: {
|
|
967
|
+
/**
|
|
968
|
+
* The invalid return account
|
|
969
|
+
*/
|
|
970
|
+
return_account: string;
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
| {
|
|
974
|
+
TreasuryWithdrawalReturnAccountsDoNotExist: {
|
|
975
|
+
/**
|
|
976
|
+
* List of non-existent return accounts
|
|
977
|
+
*/
|
|
978
|
+
missing_account: string;
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
| {
|
|
982
|
+
AuxiliaryDataHashMismatch: {
|
|
983
|
+
/**
|
|
984
|
+
* The actual auxiliary data hash
|
|
985
|
+
*/
|
|
986
|
+
actual_hash?: string | null;
|
|
987
|
+
/**
|
|
988
|
+
* The expected auxiliary data hash
|
|
989
|
+
*/
|
|
990
|
+
expected_hash: string;
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
| "AuxiliaryDataHashMissing"
|
|
994
|
+
| "AuxiliaryDataHashPresentButNotExpected"
|
|
995
|
+
| {
|
|
996
|
+
UnknownError: {
|
|
997
|
+
message: string;
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
| {
|
|
1001
|
+
MissingDatum: {
|
|
1002
|
+
datum_hash: string;
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
| {
|
|
1006
|
+
ExtraneousDatumWitnesses: {
|
|
1007
|
+
datum_hash: string;
|
|
1008
|
+
};
|
|
1009
|
+
}
|
|
1010
|
+
| {
|
|
1011
|
+
ScriptDataHashMismatch: {
|
|
1012
|
+
/**
|
|
1013
|
+
* The expected script data hash
|
|
1014
|
+
*/
|
|
1015
|
+
expected_hash?: string | null;
|
|
1016
|
+
/**
|
|
1017
|
+
* The actual script data hash
|
|
1018
|
+
*/
|
|
1019
|
+
provided_hash?: string | null;
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
| {
|
|
1023
|
+
ReferenceInputOverlapsWithInput: {
|
|
1024
|
+
input: TxInput;
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* Phase 1 validation errors
|
|
1030
|
+
*/
|
|
1031
|
+
export type Phase2Error =
|
|
1032
|
+
| "NativeScriptIsReferencedByRedeemer"
|
|
1033
|
+
| {
|
|
1034
|
+
NoEnoughBudget: {
|
|
1035
|
+
actual_budget: ExUnits;
|
|
1036
|
+
expected_budget: ExUnits;
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
| {
|
|
1040
|
+
InvalidRedeemerIndex: {
|
|
1041
|
+
index: bigint;
|
|
1042
|
+
tag: string;
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
| {
|
|
1046
|
+
MachineError: {
|
|
1047
|
+
error: string;
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
| {
|
|
1051
|
+
CostModelNotFound: {
|
|
1052
|
+
language: string;
|
|
1053
|
+
};
|
|
1054
|
+
}
|
|
1055
|
+
| {
|
|
1056
|
+
ScriptDecodeError: {
|
|
1057
|
+
error: string;
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
| {
|
|
1061
|
+
ResolvedInputNotFound: {
|
|
1062
|
+
tx_hash: string;
|
|
1063
|
+
tx_index: bigint;
|
|
1064
|
+
};
|
|
1065
|
+
}
|
|
1066
|
+
| "ByronAddressNotAllowed"
|
|
1067
|
+
| "InlineDatumNotAllowedForPlutusV1"
|
|
1068
|
+
| "ReferenceInputsNotAllowedForPlutusV1"
|
|
1069
|
+
| {
|
|
1070
|
+
SlotTooFarInThePast: {
|
|
1071
|
+
oldest_allowed: bigint;
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
| "NoPaymentCredential"
|
|
1075
|
+
| {
|
|
1076
|
+
ExtraneousRedeemer: {
|
|
1077
|
+
index: bigint;
|
|
1078
|
+
tag: string;
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
| {
|
|
1082
|
+
BuildTxContextError: {
|
|
1083
|
+
error: string;
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
| {
|
|
1087
|
+
RedeemerIndexOutOfBounds: {
|
|
1088
|
+
index: bigint;
|
|
1089
|
+
max_index?: number | null;
|
|
1090
|
+
tag: string;
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
| {
|
|
1094
|
+
MissingRequiredScript: {
|
|
1095
|
+
script_hash: string;
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
| {
|
|
1099
|
+
MissingRequiredDatum: {
|
|
1100
|
+
datum_hash: string;
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
| "NonScriptWithdrawal"
|
|
1104
|
+
| "NonScriptCredential"
|
|
1105
|
+
| "UnsupportedCertificateType"
|
|
1106
|
+
| "NoGuardrailScriptForProcedure"
|
|
1107
|
+
| "MissingRequiredInlineDatumOrHash"
|
|
1108
|
+
| {
|
|
1109
|
+
ScriptLookupError: {
|
|
1110
|
+
error: string;
|
|
1111
|
+
};
|
|
1046
1112
|
};
|
|
1113
|
+
export type Phase2Warning = {
|
|
1114
|
+
BudgetIsBiggerThanExpected: {
|
|
1115
|
+
actual_budget: ExUnits;
|
|
1116
|
+
expected_budget: ExUnits;
|
|
1047
1117
|
};
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
}
|
|
1062
|
-
| {
|
|
1063
|
-
CollateralInputUsesRewardAddress: {
|
|
1064
|
-
invalid_collateral: string;
|
|
1065
|
-
};
|
|
1066
|
-
}
|
|
1067
|
-
| "CannotCheckStakeDeregistrationRefund"
|
|
1068
|
-
| "CannotCheckDRepDeregistrationRefund"
|
|
1069
|
-
| {
|
|
1070
|
-
PoolAlreadyRegistered: {
|
|
1071
|
-
pool_id: string;
|
|
1072
|
-
};
|
|
1073
|
-
}
|
|
1074
|
-
| {
|
|
1075
|
-
DRepAlreadyRegistered: {
|
|
1076
|
-
drep_id: string;
|
|
1077
|
-
};
|
|
1078
|
-
}
|
|
1079
|
-
| {
|
|
1080
|
-
CommitteeAlreadyAuthorized: {
|
|
1081
|
-
committee_key: string;
|
|
1082
|
-
};
|
|
1083
|
-
}
|
|
1084
|
-
| {
|
|
1085
|
-
DRepNotRegistered: {
|
|
1086
|
-
cert_index: number;
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
| {
|
|
1090
|
-
DuplicateRegistrationInTx: {
|
|
1091
|
-
cert_index: number;
|
|
1092
|
-
entity_id: string;
|
|
1093
|
-
entity_type: string;
|
|
1094
|
-
};
|
|
1095
|
-
}
|
|
1096
|
-
| {
|
|
1097
|
-
DuplicateCommitteeColdResignationInTx: {
|
|
1098
|
-
cert_index: number;
|
|
1099
|
-
committee_credential: LocalCredential;
|
|
1100
|
-
};
|
|
1101
|
-
}
|
|
1102
|
-
| {
|
|
1103
|
-
DuplicateCommitteeHotRegistrationInTx: {
|
|
1104
|
-
cert_index: number;
|
|
1105
|
-
committee_credential: LocalCredential;
|
|
1106
|
-
};
|
|
1118
|
+
};
|
|
1119
|
+
export type Phase1Warning =
|
|
1120
|
+
| (
|
|
1121
|
+
| "InputsAreNotSorted"
|
|
1122
|
+
| "WithdrawalsAreNotSorted"
|
|
1123
|
+
| "CollateralIsUnnecessary"
|
|
1124
|
+
| "TotalCollateralIsNotDeclared"
|
|
1125
|
+
)
|
|
1126
|
+
| {
|
|
1127
|
+
FeeIsBiggerThanMinFee: {
|
|
1128
|
+
actual_fee: bigint;
|
|
1129
|
+
fee_decomposition: FeeDecomposition;
|
|
1130
|
+
min_fee: bigint;
|
|
1107
1131
|
};
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1132
|
+
}
|
|
1133
|
+
| {
|
|
1134
|
+
InputUsesRewardAddress: {
|
|
1135
|
+
invalid_input: string;
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
| {
|
|
1139
|
+
CollateralInputUsesRewardAddress: {
|
|
1140
|
+
invalid_collateral: string;
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
| "CannotCheckStakeDeregistrationRefund"
|
|
1144
|
+
| "CannotCheckDRepDeregistrationRefund"
|
|
1145
|
+
| {
|
|
1146
|
+
PoolAlreadyRegistered: {
|
|
1147
|
+
pool_id: string;
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
| {
|
|
1151
|
+
DRepAlreadyRegistered: {
|
|
1152
|
+
drep_id: string;
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
| {
|
|
1156
|
+
CommitteeAlreadyAuthorized: {
|
|
1157
|
+
committee_key: string;
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
| {
|
|
1161
|
+
DRepNotRegistered: {
|
|
1162
|
+
cert_index: number;
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
| {
|
|
1166
|
+
DuplicateRegistrationInTx: {
|
|
1167
|
+
cert_index: number;
|
|
1168
|
+
entity_id: string;
|
|
1169
|
+
entity_type: string;
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
| {
|
|
1173
|
+
DuplicateCommitteeColdResignationInTx: {
|
|
1174
|
+
cert_index: number;
|
|
1175
|
+
committee_credential: LocalCredential;
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
| {
|
|
1179
|
+
DuplicateCommitteeHotRegistrationInTx: {
|
|
1180
|
+
cert_index: number;
|
|
1181
|
+
committee_credential: LocalCredential;
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
export interface ValidationResult {
|
|
1186
|
+
errors: ValidationPhase1Error[];
|
|
1187
|
+
eval_redeemer_results: EvalRedeemerResult[];
|
|
1188
|
+
phase2_errors: ValidationPhase2Error[];
|
|
1189
|
+
phase2_warnings: ValidationPhase2Warning[];
|
|
1190
|
+
warnings: ValidationPhase1Warning[];
|
|
1191
|
+
}
|
|
1192
|
+
export interface ValidationPhase1Error {
|
|
1193
|
+
error: Phase1Error;
|
|
1194
|
+
error_message: string;
|
|
1195
|
+
hint?: string | null;
|
|
1196
|
+
locations: string[];
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* The invalid input UTxO
|
|
1200
|
+
*/
|
|
1201
|
+
|
|
1202
|
+
export interface FeeDecomposition {
|
|
1203
|
+
executionUnitsFee: bigint;
|
|
1204
|
+
referenceScriptsFee: bigint;
|
|
1205
|
+
txSizeFee: bigint;
|
|
1206
|
+
}
|
|
1207
|
+
export interface Value {
|
|
1208
|
+
assets: MultiAsset;
|
|
1209
|
+
coins: number;
|
|
1210
|
+
}
|
|
1211
|
+
export interface MultiAsset {
|
|
1212
|
+
assets: ValidatorAsset[];
|
|
1213
|
+
}
|
|
1214
|
+
export interface ValidatorAsset {
|
|
1215
|
+
asset_name: string;
|
|
1216
|
+
policy_id: string;
|
|
1217
|
+
quantity: number;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* The invalid governance action
|
|
1222
|
+
*/
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* The expired governance action
|
|
1226
|
+
*/
|
|
1227
|
+
|
|
1228
|
+
export interface ProtocolVersion {
|
|
1229
|
+
major: bigint;
|
|
1230
|
+
minor: bigint;
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* The supplied protocol version
|
|
1234
|
+
*/
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* The governance action with zero withdrawals
|
|
1238
|
+
*/
|
|
1239
|
+
|
|
1240
|
+
export interface EvalRedeemerResult {
|
|
1241
|
+
calculated_ex_units: ExUnits;
|
|
1242
|
+
error?: string | null;
|
|
1243
|
+
index: bigint;
|
|
1244
|
+
logs: string[];
|
|
1245
|
+
provided_ex_units: ExUnits;
|
|
1246
|
+
success: boolean;
|
|
1247
|
+
tag: RedeemerTag;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
export interface ValidationPhase2Error {
|
|
1251
|
+
error: Phase2Error;
|
|
1252
|
+
error_message: string;
|
|
1253
|
+
hint?: string | null;
|
|
1254
|
+
locations: string[];
|
|
1255
|
+
}
|
|
1256
|
+
export interface ValidationPhase2Warning {
|
|
1257
|
+
hint?: string | null;
|
|
1258
|
+
locations: string[];
|
|
1259
|
+
warning: Phase2Warning;
|
|
1260
|
+
warning_message: string;
|
|
1261
|
+
}
|
|
1262
|
+
export interface ValidationPhase1Warning {
|
|
1263
|
+
hint?: string | null;
|
|
1264
|
+
locations: string[];
|
|
1265
|
+
warning: Phase1Warning;
|
|
1266
|
+
warning_message: string;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
export type LocalCredential =
|
|
1270
|
+
| {
|
|
1271
|
+
keyHash: number[];
|
|
1272
|
+
}
|
|
1273
|
+
| {
|
|
1274
|
+
scriptHash: number[];
|
|
1275
|
+
};
|
|
1276
|
+
export type GovernanceActionType =
|
|
1277
|
+
| "parameterChangeAction"
|
|
1278
|
+
| "hardForkInitiationAction"
|
|
1279
|
+
| "treasuryWithdrawalsAction"
|
|
1280
|
+
| "noConfidenceAction"
|
|
1281
|
+
| "updateCommitteeAction"
|
|
1282
|
+
| "newConstitutionAction"
|
|
1283
|
+
| "infoAction";
|
|
1284
|
+
export type NetworkType = "mainnet" | "preview" | "preprod";
|
|
1285
|
+
|
|
1286
|
+
export interface ValidationInputContext {
|
|
1287
|
+
accountContexts: AccountInputContext[];
|
|
1288
|
+
currentCommitteeMembers: CommitteeInputContext[];
|
|
1289
|
+
drepContexts: DrepInputContext[];
|
|
1290
|
+
govActionContexts: GovActionInputContext[];
|
|
1291
|
+
lastEnactedGovAction: GovActionInputContext[];
|
|
1292
|
+
networkType: NetworkType;
|
|
1293
|
+
poolContexts: PoolInputContext[];
|
|
1294
|
+
potentialCommitteeMembers: CommitteeInputContext[];
|
|
1295
|
+
protocolParameters: ProtocolParameters;
|
|
1296
|
+
slot: bigint;
|
|
1297
|
+
treasuryValue: bigint;
|
|
1298
|
+
utxoSet: UtxoInputContext[];
|
|
1299
|
+
}
|
|
1300
|
+
export interface AccountInputContext {
|
|
1301
|
+
balance?: number | null;
|
|
1302
|
+
bech32Address: string;
|
|
1303
|
+
delegatedToDrep?: string | null;
|
|
1304
|
+
delegatedToPool?: string | null;
|
|
1305
|
+
isRegistered: boolean;
|
|
1306
|
+
payedDeposit?: number | null;
|
|
1307
|
+
}
|
|
1308
|
+
export interface CommitteeInputContext {
|
|
1309
|
+
committeeMemberCold: LocalCredential;
|
|
1310
|
+
committeeMemberHot?: LocalCredential | null;
|
|
1311
|
+
isResigned: boolean;
|
|
1312
|
+
}
|
|
1313
|
+
export interface DrepInputContext {
|
|
1314
|
+
bech32Drep: string;
|
|
1315
|
+
isRegistered: boolean;
|
|
1316
|
+
payedDeposit?: number | null;
|
|
1317
|
+
}
|
|
1318
|
+
export interface GovActionInputContext {
|
|
1319
|
+
actionId: GovernanceActionId;
|
|
1320
|
+
actionType: GovernanceActionType;
|
|
1321
|
+
isActive: boolean;
|
|
1322
|
+
}
|
|
1323
|
+
export interface GovernanceActionId {
|
|
1324
|
+
index: bigint;
|
|
1325
|
+
txHash: number[];
|
|
1326
|
+
}
|
|
1327
|
+
export interface PoolInputContext {
|
|
1328
|
+
isRegistered: boolean;
|
|
1329
|
+
poolId: string;
|
|
1330
|
+
retirementEpoch?: number | null;
|
|
1331
|
+
}
|
|
1332
|
+
export interface ProtocolParameters {
|
|
1122
1333
|
/**
|
|
1123
|
-
*
|
|
1334
|
+
* Cost per UTxO byte in lovelace
|
|
1124
1335
|
*/
|
|
1125
|
-
|
|
1126
|
-
export interface FeeDecomposition {
|
|
1127
|
-
executionUnitsFee: bigint;
|
|
1128
|
-
referenceScriptsFee: bigint;
|
|
1129
|
-
txSizeFee: bigint;
|
|
1130
|
-
}
|
|
1131
|
-
export interface Value {
|
|
1132
|
-
assets: MultiAsset;
|
|
1133
|
-
coins: number;
|
|
1134
|
-
}
|
|
1135
|
-
export interface MultiAsset {
|
|
1136
|
-
assets: ValidatorAsset[];
|
|
1137
|
-
}
|
|
1138
|
-
export interface ValidatorAsset {
|
|
1139
|
-
asset_name: string;
|
|
1140
|
-
policy_id: string;
|
|
1141
|
-
quantity: number;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1336
|
+
adaPerUtxoByte: bigint;
|
|
1144
1337
|
/**
|
|
1145
|
-
*
|
|
1338
|
+
* Percentage of transaction fee required as collateral
|
|
1146
1339
|
*/
|
|
1147
|
-
|
|
1340
|
+
collateralPercentage: number;
|
|
1341
|
+
costModels: CostModels;
|
|
1148
1342
|
/**
|
|
1149
|
-
*
|
|
1343
|
+
* Deposit amount required for registering as a DRep
|
|
1150
1344
|
*/
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
major: bigint;
|
|
1154
|
-
minor: bigint;
|
|
1155
|
-
}
|
|
1345
|
+
drepDeposit: bigint;
|
|
1346
|
+
executionPrices: ExUnitPrices;
|
|
1156
1347
|
/**
|
|
1157
|
-
*
|
|
1348
|
+
* Deposit amount required for submitting a governance action
|
|
1158
1349
|
*/
|
|
1159
|
-
|
|
1350
|
+
governanceActionDeposit: bigint;
|
|
1160
1351
|
/**
|
|
1161
|
-
*
|
|
1352
|
+
* Maximum block body size in bytes
|
|
1162
1353
|
*/
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
currentCommitteeMembers: CommitteeInputContext[];
|
|
1211
|
-
drepContexts: DrepInputContext[];
|
|
1212
|
-
govActionContexts: GovActionInputContext[];
|
|
1213
|
-
lastEnactedGovAction: GovActionInputContext[];
|
|
1214
|
-
networkType: NetworkType;
|
|
1215
|
-
poolContexts: PoolInputContext[];
|
|
1216
|
-
potentialCommitteeMembers: CommitteeInputContext[];
|
|
1217
|
-
protocolParameters: ProtocolParameters;
|
|
1218
|
-
slot: bigint;
|
|
1219
|
-
treasuryValue: bigint;
|
|
1220
|
-
utxoSet: UtxoInputContext[];
|
|
1221
|
-
}
|
|
1222
|
-
export interface AccountInputContext {
|
|
1223
|
-
balance?: number | null;
|
|
1224
|
-
bech32Address: string;
|
|
1225
|
-
delegatedToDrep?: string | null;
|
|
1226
|
-
delegatedToPool?: string | null;
|
|
1227
|
-
isRegistered: boolean;
|
|
1228
|
-
payedDeposit?: number | null;
|
|
1229
|
-
}
|
|
1230
|
-
export interface CommitteeInputContext {
|
|
1231
|
-
committeeMemberCold: LocalCredential;
|
|
1232
|
-
committeeMemberHot?: LocalCredential | null;
|
|
1233
|
-
isResigned: boolean;
|
|
1234
|
-
}
|
|
1235
|
-
export interface DrepInputContext {
|
|
1236
|
-
bech32Drep: string;
|
|
1237
|
-
isRegistered: boolean;
|
|
1238
|
-
payedDeposit?: number | null;
|
|
1239
|
-
}
|
|
1240
|
-
export interface GovActionInputContext {
|
|
1241
|
-
actionId: GovernanceActionId;
|
|
1242
|
-
actionType: GovernanceActionType;
|
|
1243
|
-
isActive: boolean;
|
|
1244
|
-
}
|
|
1245
|
-
export interface GovernanceActionId {
|
|
1246
|
-
index: bigint;
|
|
1247
|
-
txHash: number[];
|
|
1248
|
-
}
|
|
1249
|
-
export interface PoolInputContext {
|
|
1250
|
-
isRegistered: boolean;
|
|
1251
|
-
poolId: string;
|
|
1252
|
-
retirementEpoch?: number | null;
|
|
1253
|
-
}
|
|
1254
|
-
export interface ProtocolParameters {
|
|
1255
|
-
/**
|
|
1256
|
-
* Cost per UTxO byte in lovelace
|
|
1257
|
-
*/
|
|
1258
|
-
adaPerUtxoByte: bigint;
|
|
1259
|
-
/**
|
|
1260
|
-
* Percentage of transaction fee required as collateral
|
|
1261
|
-
*/
|
|
1262
|
-
collateralPercentage: number;
|
|
1263
|
-
costModels: CostModels;
|
|
1264
|
-
/**
|
|
1265
|
-
* Deposit amount required for registering as a DRep
|
|
1266
|
-
*/
|
|
1267
|
-
drepDeposit: bigint;
|
|
1268
|
-
executionPrices: ExUnitPrices;
|
|
1269
|
-
/**
|
|
1270
|
-
* Deposit amount required for submitting a governance action
|
|
1271
|
-
*/
|
|
1272
|
-
governanceActionDeposit: bigint;
|
|
1273
|
-
/**
|
|
1274
|
-
* Maximum block body size in bytes
|
|
1275
|
-
*/
|
|
1276
|
-
maxBlockBodySize: number;
|
|
1277
|
-
maxBlockExecutionUnits: ExUnits;
|
|
1278
|
-
/**
|
|
1279
|
-
* Maximum block header size in bytes
|
|
1280
|
-
*/
|
|
1281
|
-
maxBlockHeaderSize: number;
|
|
1282
|
-
/**
|
|
1283
|
-
* Maximum number of collateral inputs
|
|
1284
|
-
*/
|
|
1285
|
-
maxCollateralInputs: number;
|
|
1286
|
-
/**
|
|
1287
|
-
* Maximum number of epochs that can be used for pool retirement ahead
|
|
1288
|
-
*/
|
|
1289
|
-
maxEpochForPoolRetirement: number;
|
|
1290
|
-
/**
|
|
1291
|
-
* Maximum transaction size in bytes
|
|
1292
|
-
*/
|
|
1293
|
-
maxTransactionSize: number;
|
|
1294
|
-
maxTxExecutionUnits: ExUnits;
|
|
1295
|
-
/**
|
|
1296
|
-
* Maximum size of a Value in bytes
|
|
1297
|
-
*/
|
|
1298
|
-
maxValueSize: number;
|
|
1299
|
-
/**
|
|
1300
|
-
* Linear factor for the minimum fee calculation formula
|
|
1301
|
-
*/
|
|
1302
|
-
minFeeCoefficientA: bigint;
|
|
1303
|
-
/**
|
|
1304
|
-
* Constant factor for the minimum fee calculation formula
|
|
1305
|
-
*/
|
|
1306
|
-
minFeeConstantB: bigint;
|
|
1307
|
-
/**
|
|
1308
|
-
* Minimum pool cost in lovelace
|
|
1309
|
-
*/
|
|
1310
|
-
minPoolCost: bigint;
|
|
1311
|
-
/**
|
|
1312
|
-
* Protocol version (major, minor)
|
|
1313
|
-
*
|
|
1314
|
-
* @minItems 2
|
|
1315
|
-
* @maxItems 2
|
|
1316
|
-
*/
|
|
1317
|
-
protocolVersion: [unknown, unknown];
|
|
1318
|
-
referenceScriptCostPerByte: SubCoin;
|
|
1319
|
-
/**
|
|
1320
|
-
* Deposit amount required for registering a stake key
|
|
1321
|
-
*/
|
|
1322
|
-
stakeKeyDeposit: bigint;
|
|
1323
|
-
/**
|
|
1324
|
-
* Deposit amount required for registering a stake pool
|
|
1325
|
-
*/
|
|
1326
|
-
stakePoolDeposit: bigint;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1354
|
+
maxBlockBodySize: number;
|
|
1355
|
+
maxBlockExecutionUnits: ExUnits;
|
|
1356
|
+
/**
|
|
1357
|
+
* Maximum block header size in bytes
|
|
1358
|
+
*/
|
|
1359
|
+
maxBlockHeaderSize: number;
|
|
1360
|
+
/**
|
|
1361
|
+
* Maximum number of collateral inputs
|
|
1362
|
+
*/
|
|
1363
|
+
maxCollateralInputs: number;
|
|
1364
|
+
/**
|
|
1365
|
+
* Maximum number of epochs that can be used for pool retirement ahead
|
|
1366
|
+
*/
|
|
1367
|
+
maxEpochForPoolRetirement: number;
|
|
1368
|
+
/**
|
|
1369
|
+
* Maximum transaction size in bytes
|
|
1370
|
+
*/
|
|
1371
|
+
maxTransactionSize: number;
|
|
1372
|
+
maxTxExecutionUnits: ExUnits;
|
|
1373
|
+
/**
|
|
1374
|
+
* Maximum size of a Value in bytes
|
|
1375
|
+
*/
|
|
1376
|
+
maxValueSize: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* Linear factor for the minimum fee calculation formula
|
|
1379
|
+
*/
|
|
1380
|
+
minFeeCoefficientA: bigint;
|
|
1381
|
+
/**
|
|
1382
|
+
* Constant factor for the minimum fee calculation formula
|
|
1383
|
+
*/
|
|
1384
|
+
minFeeConstantB: bigint;
|
|
1385
|
+
/**
|
|
1386
|
+
* Minimum pool cost in lovelace
|
|
1387
|
+
*/
|
|
1388
|
+
minPoolCost: bigint;
|
|
1389
|
+
/**
|
|
1390
|
+
* Protocol version (major, minor)
|
|
1391
|
+
*
|
|
1392
|
+
* @minItems 2
|
|
1393
|
+
* @maxItems 2
|
|
1394
|
+
*/
|
|
1395
|
+
protocolVersion: [unknown, unknown];
|
|
1396
|
+
referenceScriptCostPerByte: SubCoin;
|
|
1397
|
+
/**
|
|
1398
|
+
* Deposit amount required for registering a stake key
|
|
1399
|
+
*/
|
|
1400
|
+
stakeKeyDeposit: bigint;
|
|
1329
1401
|
/**
|
|
1330
|
-
*
|
|
1402
|
+
* Deposit amount required for registering a stake pool
|
|
1331
1403
|
*/
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1404
|
+
stakePoolDeposit: bigint;
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Price of execution units for script execution
|
|
1408
|
+
*/
|
|
1409
|
+
export interface ExUnitPrices {
|
|
1410
|
+
memPrice: SubCoin;
|
|
1411
|
+
stepPrice: SubCoin;
|
|
1412
|
+
}
|
|
1413
|
+
export interface SubCoin {
|
|
1414
|
+
denominator: bigint;
|
|
1415
|
+
numerator: bigint;
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Maximum execution units allowed for a transaction
|
|
1419
|
+
*/
|
|
1340
1420
|
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
utxo: UTxO;
|
|
1345
|
-
}
|
|
1346
|
-
export interface UTxO {
|
|
1347
|
-
input: TxInput;
|
|
1348
|
-
output: TxOutput;
|
|
1349
|
-
}
|
|
1350
|
-
export interface TxInput {
|
|
1351
|
-
outputIndex: number;
|
|
1352
|
-
txHash: string;
|
|
1353
|
-
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Coins per byte for reference scripts
|
|
1423
|
+
*/
|
|
1354
1424
|
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1425
|
+
export interface UtxoInputContext {
|
|
1426
|
+
isSpent: boolean;
|
|
1427
|
+
utxo: UTxO;
|
|
1428
|
+
}
|