@cardananium/cquisitor-lib 0.1.0-beta.28 → 0.1.0-beta.29
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 +647 -582
- package/browser/cquisitor_lib_bg.js +99 -67
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2 -1
- package/node/cquisitor_lib.d.ts +647 -582
- package/node/cquisitor_lib.js +111 -79
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2 -1
- package/package.json +1 -1
|
@@ -57,6 +57,12 @@ export function decode_plutus_program_uplc_json(hex: string): ProgramJson;
|
|
|
57
57
|
* @returns {string}
|
|
58
58
|
*/
|
|
59
59
|
export function decode_plutus_program_pretty_uplc(hex: string): string;
|
|
60
|
+
/**
|
|
61
|
+
* @param {string} tx_hex
|
|
62
|
+
* @param {number} output_index
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
export function get_ref_script_bytes(tx_hex: string, output_index: number): string;
|
|
60
66
|
|
|
61
67
|
export interface CborPosition {
|
|
62
68
|
offset: number;
|
|
@@ -447,672 +453,715 @@ export interface NecessaryInputData {
|
|
|
447
453
|
lastEnactedGovAction: GovernanceActionType[];
|
|
448
454
|
pools: string[];
|
|
449
455
|
utxos: TxInput[];
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
export type Phase1Error =
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Phase 1 validation errors
|
|
460
|
+
*/
|
|
461
|
+
export type Phase1Error =
|
|
456
462
|
| (
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
463
|
+
| "GenesisKeyDelegationCertificateIsNotSupported"
|
|
464
|
+
| "MoveInstantaneousRewardsCertificateIsNotSupported"
|
|
465
|
+
)
|
|
460
466
|
| {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
}
|
|
467
|
+
BadInputsUTxO: {
|
|
468
|
+
invalid_input: TxInput;
|
|
469
|
+
};
|
|
470
|
+
}
|
|
465
471
|
| {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
472
|
+
OutsideValidityIntervalUTxO: {
|
|
473
|
+
current_slot: bigint;
|
|
474
|
+
interval_end: bigint;
|
|
475
|
+
interval_start: bigint;
|
|
476
|
+
};
|
|
477
|
+
}
|
|
472
478
|
| {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
479
|
+
MaxTxSizeUTxO: {
|
|
480
|
+
actual_size: bigint;
|
|
481
|
+
max_size: bigint;
|
|
482
|
+
};
|
|
483
|
+
}
|
|
478
484
|
| "InputSetEmptyUTxO"
|
|
479
485
|
| {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}
|
|
486
|
+
FeeTooSmallUTxO: {
|
|
487
|
+
actual_fee: bigint;
|
|
488
|
+
fee_decomposition: FeeDecomposition;
|
|
489
|
+
min_fee: bigint;
|
|
490
|
+
};
|
|
491
|
+
}
|
|
486
492
|
| {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
}
|
|
493
|
+
ValueNotConservedUTxO: {
|
|
494
|
+
difference: Value;
|
|
495
|
+
input_sum: Value;
|
|
496
|
+
output_sum: Value;
|
|
497
|
+
};
|
|
498
|
+
}
|
|
493
499
|
| {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
500
|
+
WrongNetwork: {
|
|
501
|
+
wrong_addresses: string[];
|
|
502
|
+
};
|
|
503
|
+
}
|
|
498
504
|
| {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
505
|
+
WrongNetworkWithdrawal: {
|
|
506
|
+
wrong_addresses: string[];
|
|
507
|
+
};
|
|
508
|
+
}
|
|
503
509
|
| {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}
|
|
510
|
+
WrongNetworkInTxBody: {
|
|
511
|
+
actual_network: number;
|
|
512
|
+
expected_network: number;
|
|
513
|
+
};
|
|
514
|
+
}
|
|
509
515
|
| {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
}
|
|
516
|
+
OutputTooSmallUTxO: {
|
|
517
|
+
min_amount: number;
|
|
518
|
+
output_amount: number;
|
|
519
|
+
};
|
|
520
|
+
}
|
|
515
521
|
| {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
522
|
+
CollateralReturnTooSmall: {
|
|
523
|
+
min_amount: number;
|
|
524
|
+
output_amount: number;
|
|
525
|
+
};
|
|
526
|
+
}
|
|
521
527
|
| {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}
|
|
528
|
+
OutputBootAddrAttrsTooBig: {
|
|
529
|
+
actual_size: bigint;
|
|
530
|
+
max_size: bigint;
|
|
531
|
+
output: unknown;
|
|
532
|
+
};
|
|
533
|
+
}
|
|
528
534
|
| {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
535
|
+
OutputsValueTooBig: {
|
|
536
|
+
actual_size: bigint;
|
|
537
|
+
max_size: bigint;
|
|
538
|
+
};
|
|
539
|
+
}
|
|
534
540
|
| {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}
|
|
541
|
+
InsufficientCollateral: {
|
|
542
|
+
required_collateral: number;
|
|
543
|
+
total_collateral: number;
|
|
544
|
+
};
|
|
545
|
+
}
|
|
540
546
|
| {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
}
|
|
547
|
+
ExUnitsTooBigUTxO: {
|
|
548
|
+
actual_memory_units: bigint;
|
|
549
|
+
actual_steps_units: bigint;
|
|
550
|
+
max_memory_units: bigint;
|
|
551
|
+
max_steps_units: bigint;
|
|
552
|
+
};
|
|
553
|
+
}
|
|
548
554
|
| "CalculatedCollateralContainsNonAdaAssets"
|
|
549
555
|
| {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
556
|
+
CollateralInputContainsNonAdaAssets: {
|
|
557
|
+
collateral_input: string;
|
|
558
|
+
};
|
|
559
|
+
}
|
|
554
560
|
| {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
}
|
|
561
|
+
CollateralIsLockedByScript: {
|
|
562
|
+
invalid_collateral: string;
|
|
563
|
+
};
|
|
564
|
+
}
|
|
559
565
|
| {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}
|
|
566
|
+
TooManyCollateralInputs: {
|
|
567
|
+
actual_count: number;
|
|
568
|
+
max_count: number;
|
|
569
|
+
};
|
|
570
|
+
}
|
|
565
571
|
| "NoCollateralInputs"
|
|
566
572
|
| {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
}
|
|
573
|
+
IncorrectTotalCollateralField: {
|
|
574
|
+
actual_sum: number;
|
|
575
|
+
declared_total: number;
|
|
576
|
+
};
|
|
577
|
+
}
|
|
572
578
|
| {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
}
|
|
579
|
+
InvalidSignature: {
|
|
580
|
+
invalid_signature: string;
|
|
581
|
+
};
|
|
582
|
+
}
|
|
577
583
|
| {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
}
|
|
584
|
+
ExtraneousSignature: {
|
|
585
|
+
extraneous_signature: string;
|
|
586
|
+
};
|
|
587
|
+
}
|
|
582
588
|
| {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}
|
|
589
|
+
NativeScriptIsUnsuccessful: {
|
|
590
|
+
native_script_hash: string;
|
|
591
|
+
};
|
|
592
|
+
}
|
|
587
593
|
| {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
594
|
+
PlutusScriptIsUnsuccessful: {
|
|
595
|
+
plutus_script_hash: string;
|
|
596
|
+
};
|
|
597
|
+
}
|
|
592
598
|
| {
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}
|
|
599
|
+
MissingVKeyWitnesses: {
|
|
600
|
+
missing_key_hash: string;
|
|
601
|
+
};
|
|
602
|
+
}
|
|
597
603
|
| {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}
|
|
604
|
+
MissingScriptWitnesses: {
|
|
605
|
+
missing_script_hash: string;
|
|
606
|
+
};
|
|
607
|
+
}
|
|
602
608
|
| {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}
|
|
609
|
+
MissingRedeemer: {
|
|
610
|
+
index: bigint;
|
|
611
|
+
tag: string;
|
|
612
|
+
};
|
|
613
|
+
}
|
|
608
614
|
| "MissingTxBodyMetadataHash"
|
|
609
615
|
| "MissingTxMetadata"
|
|
610
616
|
| {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}
|
|
617
|
+
ConflictingMetadataHash: {
|
|
618
|
+
actual_hash: string;
|
|
619
|
+
expected_hash: string;
|
|
620
|
+
};
|
|
621
|
+
}
|
|
616
622
|
| {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
}
|
|
623
|
+
InvalidMetadata: {
|
|
624
|
+
message: string;
|
|
625
|
+
};
|
|
626
|
+
}
|
|
621
627
|
| {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
}
|
|
628
|
+
ExtraneousScriptWitnesses: {
|
|
629
|
+
extraneous_script: string;
|
|
630
|
+
};
|
|
631
|
+
}
|
|
626
632
|
| {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}
|
|
633
|
+
StakeAlreadyRegistered: {
|
|
634
|
+
reward_address: string;
|
|
635
|
+
};
|
|
636
|
+
}
|
|
631
637
|
| {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
}
|
|
638
|
+
StakeNotRegistered: {
|
|
639
|
+
reward_address: string;
|
|
640
|
+
};
|
|
641
|
+
}
|
|
636
642
|
| {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}
|
|
643
|
+
StakeNonZeroAccountBalance: {
|
|
644
|
+
remaining_balance: bigint;
|
|
645
|
+
reward_address: string;
|
|
646
|
+
};
|
|
647
|
+
}
|
|
642
648
|
| {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}
|
|
649
|
+
RewardAccountNotExisting: {
|
|
650
|
+
reward_address: string;
|
|
651
|
+
};
|
|
652
|
+
}
|
|
647
653
|
| {
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}
|
|
654
|
+
WrongRequestedWithdrawalAmount: {
|
|
655
|
+
expected_amount: number;
|
|
656
|
+
requested_amount: bigint;
|
|
657
|
+
reward_address: string;
|
|
658
|
+
};
|
|
659
|
+
}
|
|
654
660
|
| {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
}
|
|
661
|
+
StakePoolNotRegistered: {
|
|
662
|
+
pool_id: string;
|
|
663
|
+
};
|
|
664
|
+
}
|
|
659
665
|
| {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}
|
|
666
|
+
WrongRetirementEpoch: {
|
|
667
|
+
current_epoch: bigint;
|
|
668
|
+
max_epoch: bigint;
|
|
669
|
+
min_epoch: bigint;
|
|
670
|
+
specified_epoch: bigint;
|
|
671
|
+
};
|
|
672
|
+
}
|
|
667
673
|
| {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
}
|
|
674
|
+
StakePoolCostTooLow: {
|
|
675
|
+
min_cost: bigint;
|
|
676
|
+
specified_cost: bigint;
|
|
677
|
+
};
|
|
678
|
+
}
|
|
673
679
|
| {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
}
|
|
680
|
+
InsufficientFundsForMir: {
|
|
681
|
+
available_amount: bigint;
|
|
682
|
+
requested_amount: bigint;
|
|
683
|
+
};
|
|
684
|
+
}
|
|
679
685
|
| {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
686
|
+
InvalidCommitteeVote: {
|
|
687
|
+
message: string;
|
|
688
|
+
voter: unknown;
|
|
689
|
+
};
|
|
690
|
+
}
|
|
685
691
|
| {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}
|
|
692
|
+
DRepIncorrectDeposit: {
|
|
693
|
+
required_deposit: number;
|
|
694
|
+
supplied_deposit: number;
|
|
695
|
+
};
|
|
696
|
+
}
|
|
691
697
|
| {
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
698
|
+
DRepDeregistrationWrongRefund: {
|
|
699
|
+
required_refund: number;
|
|
700
|
+
supplied_refund: number;
|
|
701
|
+
};
|
|
702
|
+
}
|
|
697
703
|
| {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
}
|
|
704
|
+
StakeRegistrationWrongDeposit: {
|
|
705
|
+
required_deposit: number;
|
|
706
|
+
supplied_deposit: number;
|
|
707
|
+
};
|
|
708
|
+
}
|
|
703
709
|
| {
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}
|
|
710
|
+
StakeDeregistrationWrongRefund: {
|
|
711
|
+
required_refund: number;
|
|
712
|
+
supplied_refund: number;
|
|
713
|
+
};
|
|
714
|
+
}
|
|
709
715
|
| {
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}
|
|
716
|
+
PoolRegistrationWrongDeposit: {
|
|
717
|
+
required_deposit: number;
|
|
718
|
+
supplied_deposit: number;
|
|
719
|
+
};
|
|
720
|
+
}
|
|
715
721
|
| {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
}
|
|
722
|
+
CommitteeHasPreviouslyResigned: {
|
|
723
|
+
committee_credential: LocalCredential;
|
|
724
|
+
};
|
|
725
|
+
}
|
|
720
726
|
| {
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
}
|
|
727
|
+
TreasuryValueMismatch: {
|
|
728
|
+
actual_value: bigint;
|
|
729
|
+
declared_value: bigint;
|
|
730
|
+
};
|
|
731
|
+
}
|
|
726
732
|
| {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
}
|
|
733
|
+
RefScriptsSizeTooBig: {
|
|
734
|
+
actual_size: bigint;
|
|
735
|
+
max_size: bigint;
|
|
736
|
+
};
|
|
737
|
+
}
|
|
732
738
|
| {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}
|
|
739
|
+
WithdrawalNotAllowedBecauseNotDelegatedToDRep: {
|
|
740
|
+
reward_address: string;
|
|
741
|
+
};
|
|
742
|
+
}
|
|
737
743
|
| {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
744
|
+
CommitteeIsUnknown: {
|
|
745
|
+
/**
|
|
746
|
+
* The committee key hash
|
|
747
|
+
*/
|
|
748
|
+
committee_key_hash:
|
|
743
749
|
| {
|
|
744
|
-
|
|
745
|
-
|
|
750
|
+
keyHash: number[];
|
|
751
|
+
}
|
|
746
752
|
| {
|
|
747
|
-
|
|
753
|
+
scriptHash: number[];
|
|
754
|
+
};
|
|
748
755
|
};
|
|
749
|
-
|
|
750
|
-
}
|
|
751
|
-
| {
|
|
752
|
-
GovActionsDoNotExist: {
|
|
753
|
-
/**
|
|
754
|
-
* The list of invalid governance action IDs
|
|
755
|
-
*/
|
|
756
|
-
invalid_action_ids: GovernanceActionId[];
|
|
757
|
-
};
|
|
758
|
-
}
|
|
759
|
-
| {
|
|
760
|
-
MalformedProposal: {
|
|
761
|
-
gov_action: GovernanceActionId;
|
|
762
|
-
};
|
|
763
|
-
}
|
|
764
|
-
| {
|
|
765
|
-
ProposalProcedureNetworkIdMismatch: {
|
|
766
|
-
/**
|
|
767
|
-
* The expected network ID
|
|
768
|
-
*/
|
|
769
|
-
expected_network: number;
|
|
770
|
-
/**
|
|
771
|
-
* The reward account
|
|
772
|
-
*/
|
|
773
|
-
reward_account: string;
|
|
774
|
-
};
|
|
775
|
-
}
|
|
756
|
+
}
|
|
776
757
|
| {
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
*/
|
|
785
|
-
mismatched_account: string;
|
|
786
|
-
};
|
|
787
|
-
}
|
|
758
|
+
GovActionsDoNotExist: {
|
|
759
|
+
/**
|
|
760
|
+
* The list of invalid governance action IDs
|
|
761
|
+
*/
|
|
762
|
+
invalid_action_ids: GovernanceActionId[];
|
|
763
|
+
};
|
|
764
|
+
}
|
|
788
765
|
| {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
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
|
+
}
|
|
801
807
|
| {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
}
|
|
808
|
+
DisallowedVoters: {
|
|
809
|
+
/**
|
|
810
|
+
* List of disallowed voter and action ID pairs
|
|
811
|
+
*/
|
|
812
|
+
disallowed_pairs: [unknown, unknown][];
|
|
813
|
+
};
|
|
814
|
+
}
|
|
809
815
|
| {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
816
|
+
ConflictingCommitteeUpdate: {
|
|
817
|
+
/**
|
|
818
|
+
* The set of conflicting credentials
|
|
819
|
+
*/
|
|
820
|
+
conflicting_credentials:
|
|
815
821
|
| {
|
|
816
|
-
|
|
817
|
-
|
|
822
|
+
keyHash: number[];
|
|
823
|
+
}
|
|
818
824
|
| {
|
|
819
|
-
|
|
825
|
+
scriptHash: number[];
|
|
826
|
+
};
|
|
820
827
|
};
|
|
821
|
-
|
|
822
|
-
}
|
|
828
|
+
}
|
|
823
829
|
| {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
830
|
+
ExpirationEpochTooSmall: {
|
|
831
|
+
/**
|
|
832
|
+
* Map of credentials to their invalid expiration epochs
|
|
833
|
+
*/
|
|
834
|
+
invalid_expirations: {
|
|
829
835
|
[k: string]: number;
|
|
836
|
+
};
|
|
830
837
|
};
|
|
831
|
-
|
|
832
|
-
}
|
|
838
|
+
}
|
|
833
839
|
| {
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
840
|
+
InvalidPrevGovActionId: {
|
|
841
|
+
/**
|
|
842
|
+
* The invalid proposal
|
|
843
|
+
*/
|
|
844
|
+
proposal: {
|
|
839
845
|
[k: string]: unknown;
|
|
846
|
+
};
|
|
840
847
|
};
|
|
841
|
-
|
|
842
|
-
}
|
|
843
|
-
| {
|
|
844
|
-
VotingOnExpiredGovAction: {
|
|
845
|
-
expired_gov_action: GovernanceActionId;
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
+
}
|
|
848
849
|
| {
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
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
|
+
}
|
|
873
879
|
| {
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
880
|
+
VoterDoNotExist: {
|
|
881
|
+
/**
|
|
882
|
+
* List of non-existent voters
|
|
883
|
+
*/
|
|
884
|
+
missing_voter: {
|
|
879
885
|
[k: string]: unknown;
|
|
886
|
+
};
|
|
880
887
|
};
|
|
881
|
-
|
|
882
|
-
}
|
|
888
|
+
}
|
|
883
889
|
| {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}
|
|
888
|
-
| {
|
|
889
|
-
ProposalReturnAccountDoesNotExist: {
|
|
890
|
-
/**
|
|
891
|
-
* The invalid return account
|
|
892
|
-
*/
|
|
893
|
-
return_account: string;
|
|
894
|
-
};
|
|
895
|
-
}
|
|
890
|
+
ZeroTreasuryWithdrawals: {
|
|
891
|
+
gov_action: GovernanceActionId;
|
|
892
|
+
};
|
|
893
|
+
}
|
|
896
894
|
| {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
}
|
|
895
|
+
ProposalReturnAccountDoesNotExist: {
|
|
896
|
+
/**
|
|
897
|
+
* The invalid return account
|
|
898
|
+
*/
|
|
899
|
+
return_account: string;
|
|
900
|
+
};
|
|
901
|
+
}
|
|
904
902
|
| {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
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
|
+
}
|
|
916
922
|
| "AuxiliaryDataHashMissing"
|
|
917
923
|
| "AuxiliaryDataHashPresentButNotExpected"
|
|
918
924
|
| {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
}
|
|
923
|
-
| {
|
|
924
|
-
MissingDatum: {
|
|
925
|
-
datum_hash: string;
|
|
926
|
-
};
|
|
927
|
-
}
|
|
925
|
+
UnknownError: {
|
|
926
|
+
message: string;
|
|
927
|
+
};
|
|
928
|
+
}
|
|
928
929
|
| {
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
}
|
|
930
|
+
MissingDatum: {
|
|
931
|
+
datum_hash: string;
|
|
932
|
+
};
|
|
933
|
+
}
|
|
933
934
|
| {
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
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
|
+
}
|
|
945
951
|
| {
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
};
|
|
950
|
-
|
|
951
|
-
/**
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
export type Phase2Error =
|
|
952
|
+
ReferenceInputOverlapsWithInput: {
|
|
953
|
+
input: TxInput;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Phase 1 validation errors
|
|
959
|
+
*/
|
|
960
|
+
export type Phase2Error =
|
|
955
961
|
| "NativeScriptIsReferencedByRedeemer"
|
|
956
962
|
| {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
}
|
|
963
|
+
NoEnoughBudget: {
|
|
964
|
+
actual_budget: ExUnits;
|
|
965
|
+
expected_budget: ExUnits;
|
|
966
|
+
};
|
|
967
|
+
}
|
|
962
968
|
| {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
}
|
|
969
|
+
InvalidRedeemerIndex: {
|
|
970
|
+
index: bigint;
|
|
971
|
+
tag: string;
|
|
972
|
+
};
|
|
973
|
+
}
|
|
968
974
|
| {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
}
|
|
975
|
+
MachineError: {
|
|
976
|
+
error: string;
|
|
977
|
+
};
|
|
978
|
+
}
|
|
973
979
|
| {
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
}
|
|
980
|
+
CostModelNotFound: {
|
|
981
|
+
language: string;
|
|
982
|
+
};
|
|
983
|
+
}
|
|
978
984
|
| {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
}
|
|
985
|
+
ScriptDecodeError: {
|
|
986
|
+
error: string;
|
|
987
|
+
};
|
|
988
|
+
}
|
|
983
989
|
| {
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
}
|
|
990
|
+
ResolvedInputNotFound: {
|
|
991
|
+
tx_hash: string;
|
|
992
|
+
tx_index: bigint;
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
| "ByronAddressNotAllowed"
|
|
996
|
+
| "InlineDatumNotAllowedForPlutusV1"
|
|
997
|
+
| "ReferenceInputsNotAllowedForPlutusV1"
|
|
988
998
|
| {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
}
|
|
993
|
-
|
|
999
|
+
SlotTooFarInThePast: {
|
|
1000
|
+
oldest_allowed: bigint;
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
| "NoPaymentCredential"
|
|
1004
|
+
| {
|
|
1005
|
+
ExtraneousRedeemer: {
|
|
1006
|
+
index: bigint;
|
|
1007
|
+
tag: string;
|
|
1008
|
+
};
|
|
1009
|
+
}
|
|
1010
|
+
| {
|
|
1011
|
+
BuildTxContextError: {
|
|
1012
|
+
error: string;
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
| {
|
|
1016
|
+
RedeemerIndexOutOfBounds: {
|
|
1017
|
+
index: bigint;
|
|
1018
|
+
max_index?: number | null;
|
|
1019
|
+
tag: string;
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
| {
|
|
1023
|
+
MissingRequiredScript: {
|
|
1024
|
+
script_hash: string;
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
| {
|
|
1028
|
+
MissingRequiredDatum: {
|
|
1029
|
+
datum_hash: string;
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
| "NonScriptWithdrawal"
|
|
1033
|
+
| "NonScriptCredential"
|
|
1034
|
+
| "UnsupportedCertificateType"
|
|
1035
|
+
| "NoGuardrailScriptForProcedure"
|
|
1036
|
+
| "MissingRequiredInlineDatumOrHash"
|
|
1037
|
+
| {
|
|
1038
|
+
ScriptLookupError: {
|
|
1039
|
+
error: string;
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
export type Phase2Warning = {
|
|
994
1043
|
BudgetIsBiggerThanExpected: {
|
|
995
|
-
|
|
996
|
-
|
|
1044
|
+
actual_budget: ExUnits;
|
|
1045
|
+
expected_budget: ExUnits;
|
|
997
1046
|
};
|
|
998
|
-
};
|
|
999
|
-
export type Phase1Warning =
|
|
1047
|
+
};
|
|
1048
|
+
export type Phase1Warning =
|
|
1000
1049
|
| ("InputsAreNotSorted" | "CollateralIsUnnecessary" | "TotalCollateralIsNotDeclared")
|
|
1001
1050
|
| {
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
}
|
|
1051
|
+
FeeIsBiggerThanMinFee: {
|
|
1052
|
+
actual_fee: bigint;
|
|
1053
|
+
fee_decomposition: FeeDecomposition;
|
|
1054
|
+
min_fee: bigint;
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1008
1057
|
| {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
}
|
|
1058
|
+
InputUsesRewardAddress: {
|
|
1059
|
+
invalid_input: string;
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1013
1062
|
| {
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
}
|
|
1063
|
+
CollateralInputUsesRewardAddress: {
|
|
1064
|
+
invalid_collateral: string;
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1018
1067
|
| "CannotCheckStakeDeregistrationRefund"
|
|
1019
1068
|
| "CannotCheckDRepDeregistrationRefund"
|
|
1020
1069
|
| {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1070
|
+
PoolAlreadyRegistered: {
|
|
1071
|
+
pool_id: string;
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1025
1074
|
| {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
}
|
|
1075
|
+
DRepAlreadyRegistered: {
|
|
1076
|
+
drep_id: string;
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1030
1079
|
| {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
}
|
|
1080
|
+
CommitteeAlreadyAuthorized: {
|
|
1081
|
+
committee_key: string;
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1035
1084
|
| {
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
}
|
|
1085
|
+
DRepNotRegistered: {
|
|
1086
|
+
cert_index: number;
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1040
1089
|
| {
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}
|
|
1090
|
+
DuplicateRegistrationInTx: {
|
|
1091
|
+
cert_index: number;
|
|
1092
|
+
entity_id: string;
|
|
1093
|
+
entity_type: string;
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1047
1096
|
| {
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
}
|
|
1097
|
+
DuplicateCommitteeColdResignationInTx: {
|
|
1098
|
+
cert_index: number;
|
|
1099
|
+
committee_credential: LocalCredential;
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1053
1102
|
| {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
export interface ValidationResult {
|
|
1103
|
+
DuplicateCommitteeHotRegistrationInTx: {
|
|
1104
|
+
cert_index: number;
|
|
1105
|
+
committee_credential: LocalCredential;
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
export interface ValidationResult {
|
|
1061
1110
|
errors: ValidationPhase1Error[];
|
|
1062
1111
|
eval_redeemer_results: EvalRedeemerResult[];
|
|
1063
1112
|
phase2_errors: ValidationPhase2Error[];
|
|
1064
1113
|
phase2_warnings: ValidationPhase2Warning[];
|
|
1065
1114
|
warnings: ValidationPhase1Warning[];
|
|
1066
|
-
}
|
|
1067
|
-
export interface ValidationPhase1Error {
|
|
1115
|
+
}
|
|
1116
|
+
export interface ValidationPhase1Error {
|
|
1068
1117
|
error: Phase1Error;
|
|
1069
1118
|
error_message: string;
|
|
1070
1119
|
hint?: string | null;
|
|
1071
1120
|
locations: string[];
|
|
1072
|
-
}
|
|
1073
|
-
/**
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
export interface FeeDecomposition {
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* The invalid input UTxO
|
|
1124
|
+
*/
|
|
1125
|
+
|
|
1126
|
+
export interface FeeDecomposition {
|
|
1078
1127
|
executionUnitsFee: bigint;
|
|
1079
1128
|
referenceScriptsFee: bigint;
|
|
1080
1129
|
txSizeFee: bigint;
|
|
1081
|
-
}
|
|
1082
|
-
export interface Value {
|
|
1130
|
+
}
|
|
1131
|
+
export interface Value {
|
|
1083
1132
|
assets: MultiAsset;
|
|
1084
1133
|
coins: number;
|
|
1085
|
-
}
|
|
1086
|
-
export interface MultiAsset {
|
|
1134
|
+
}
|
|
1135
|
+
export interface MultiAsset {
|
|
1087
1136
|
assets: ValidatorAsset[];
|
|
1088
|
-
}
|
|
1089
|
-
export interface ValidatorAsset {
|
|
1137
|
+
}
|
|
1138
|
+
export interface ValidatorAsset {
|
|
1090
1139
|
asset_name: string;
|
|
1091
1140
|
policy_id: string;
|
|
1092
1141
|
quantity: number;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
/**
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
export interface ProtocolVersion {
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* The invalid governance action
|
|
1146
|
+
*/
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* The expired governance action
|
|
1150
|
+
*/
|
|
1151
|
+
|
|
1152
|
+
export interface ProtocolVersion {
|
|
1104
1153
|
major: bigint;
|
|
1105
1154
|
minor: bigint;
|
|
1106
|
-
}
|
|
1107
|
-
/**
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
export interface EvalRedeemerResult {
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* The supplied protocol version
|
|
1158
|
+
*/
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* The governance action with zero withdrawals
|
|
1162
|
+
*/
|
|
1163
|
+
|
|
1164
|
+
export interface EvalRedeemerResult {
|
|
1116
1165
|
calculated_ex_units: ExUnits;
|
|
1117
1166
|
error?: string | null;
|
|
1118
1167
|
index: bigint;
|
|
@@ -1120,33 +1169,33 @@ export interface EvalRedeemerResult {
|
|
|
1120
1169
|
provided_ex_units: ExUnits;
|
|
1121
1170
|
success: boolean;
|
|
1122
1171
|
tag: RedeemerTag;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
export interface ValidationPhase2Error {
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
export interface ValidationPhase2Error {
|
|
1126
1175
|
error: Phase2Error;
|
|
1127
1176
|
error_message: string;
|
|
1128
1177
|
hint?: string | null;
|
|
1129
1178
|
locations: string[];
|
|
1130
|
-
}
|
|
1131
|
-
export interface ValidationPhase2Warning {
|
|
1179
|
+
}
|
|
1180
|
+
export interface ValidationPhase2Warning {
|
|
1132
1181
|
hint?: string | null;
|
|
1133
1182
|
locations: string[];
|
|
1134
1183
|
warning: Phase2Warning;
|
|
1135
|
-
}
|
|
1136
|
-
export interface ValidationPhase1Warning {
|
|
1184
|
+
}
|
|
1185
|
+
export interface ValidationPhase1Warning {
|
|
1137
1186
|
hint?: string | null;
|
|
1138
1187
|
locations: string[];
|
|
1139
1188
|
warning: Phase1Warning;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
export type LocalCredential =
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
export type LocalCredential =
|
|
1143
1192
|
| {
|
|
1144
|
-
|
|
1145
|
-
}
|
|
1193
|
+
keyHash: number[];
|
|
1194
|
+
}
|
|
1146
1195
|
| {
|
|
1147
|
-
|
|
1148
|
-
};
|
|
1149
|
-
export type GovernanceActionType =
|
|
1196
|
+
scriptHash: number[];
|
|
1197
|
+
};
|
|
1198
|
+
export type GovernanceActionType =
|
|
1150
1199
|
| "parameterChangeAction"
|
|
1151
1200
|
| "hardForkInitiationAction"
|
|
1152
1201
|
| "treasuryWithdrawalsAction"
|
|
@@ -1154,9 +1203,9 @@ export type GovernanceActionType =
|
|
|
1154
1203
|
| "updateCommitteeAction"
|
|
1155
1204
|
| "newConstitutionAction"
|
|
1156
1205
|
| "infoAction";
|
|
1157
|
-
export type NetworkType = "mainnet" | "preview" | "preprod";
|
|
1158
|
-
|
|
1159
|
-
export interface ValidationInputContext {
|
|
1206
|
+
export type NetworkType = "mainnet" | "preview" | "preprod";
|
|
1207
|
+
|
|
1208
|
+
export interface ValidationInputContext {
|
|
1160
1209
|
accountContexts: AccountInputContext[];
|
|
1161
1210
|
currentCommitteeMembers: CommitteeInputContext[];
|
|
1162
1211
|
drepContexts: DrepInputContext[];
|
|
@@ -1169,40 +1218,40 @@ export interface ValidationInputContext {
|
|
|
1169
1218
|
slot: bigint;
|
|
1170
1219
|
treasuryValue: bigint;
|
|
1171
1220
|
utxoSet: UtxoInputContext[];
|
|
1172
|
-
}
|
|
1173
|
-
export interface AccountInputContext {
|
|
1221
|
+
}
|
|
1222
|
+
export interface AccountInputContext {
|
|
1174
1223
|
balance?: number | null;
|
|
1175
1224
|
bech32Address: string;
|
|
1176
1225
|
delegatedToDrep?: string | null;
|
|
1177
1226
|
delegatedToPool?: string | null;
|
|
1178
1227
|
isRegistered: boolean;
|
|
1179
1228
|
payedDeposit?: number | null;
|
|
1180
|
-
}
|
|
1181
|
-
export interface CommitteeInputContext {
|
|
1229
|
+
}
|
|
1230
|
+
export interface CommitteeInputContext {
|
|
1182
1231
|
committeeMemberCold: LocalCredential;
|
|
1183
1232
|
committeeMemberHot?: LocalCredential | null;
|
|
1184
1233
|
isResigned: boolean;
|
|
1185
|
-
}
|
|
1186
|
-
export interface DrepInputContext {
|
|
1234
|
+
}
|
|
1235
|
+
export interface DrepInputContext {
|
|
1187
1236
|
bech32Drep: string;
|
|
1188
1237
|
isRegistered: boolean;
|
|
1189
1238
|
payedDeposit?: number | null;
|
|
1190
|
-
}
|
|
1191
|
-
export interface GovActionInputContext {
|
|
1239
|
+
}
|
|
1240
|
+
export interface GovActionInputContext {
|
|
1192
1241
|
actionId: GovernanceActionId;
|
|
1193
1242
|
actionType: GovernanceActionType;
|
|
1194
1243
|
isActive: boolean;
|
|
1195
|
-
}
|
|
1196
|
-
export interface GovernanceActionId {
|
|
1244
|
+
}
|
|
1245
|
+
export interface GovernanceActionId {
|
|
1197
1246
|
index: bigint;
|
|
1198
1247
|
txHash: number[];
|
|
1199
|
-
}
|
|
1200
|
-
export interface PoolInputContext {
|
|
1248
|
+
}
|
|
1249
|
+
export interface PoolInputContext {
|
|
1201
1250
|
isRegistered: boolean;
|
|
1202
1251
|
poolId: string;
|
|
1203
1252
|
retirementEpoch?: number | null;
|
|
1204
|
-
}
|
|
1205
|
-
export interface ProtocolParameters {
|
|
1253
|
+
}
|
|
1254
|
+
export interface ProtocolParameters {
|
|
1206
1255
|
/**
|
|
1207
1256
|
* Cost per UTxO byte in lovelace
|
|
1208
1257
|
*/
|
|
@@ -1275,20 +1324,36 @@ export interface ProtocolParameters {
|
|
|
1275
1324
|
* Deposit amount required for registering a stake pool
|
|
1276
1325
|
*/
|
|
1277
1326
|
stakePoolDeposit: bigint;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Price of execution units for script execution
|
|
1331
|
+
*/
|
|
1332
|
+
export interface ExUnitPrices {
|
|
1283
1333
|
memPrice: SubCoin;
|
|
1284
1334
|
stepPrice: SubCoin;
|
|
1285
|
-
}
|
|
1286
|
-
export interface SubCoin {
|
|
1335
|
+
}
|
|
1336
|
+
export interface SubCoin {
|
|
1287
1337
|
denominator: bigint;
|
|
1288
1338
|
numerator: bigint;
|
|
1289
|
-
}
|
|
1339
|
+
}
|
|
1290
1340
|
|
|
1291
|
-
|
|
1341
|
+
|
|
1342
|
+
export interface UtxoInputContext {
|
|
1292
1343
|
isSpent: boolean;
|
|
1293
1344
|
utxo: UTxO;
|
|
1294
|
-
}
|
|
1345
|
+
}
|
|
1346
|
+
export interface UTxO {
|
|
1347
|
+
input: TxInput;
|
|
1348
|
+
output: TxOutput;
|
|
1349
|
+
}
|
|
1350
|
+
export interface TxInput {
|
|
1351
|
+
outputIndex: number;
|
|
1352
|
+
txHash: string;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
export interface Asset {
|
|
1356
|
+
quantity: string;
|
|
1357
|
+
unit: string;
|
|
1358
|
+
}
|
|
1359
|
+
|