@cardananium/cquisitor-lib 0.1.0-beta.20 → 0.1.0-beta.22
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 +512 -499
- package/browser/cquisitor_lib_bg.js +109 -109
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2 -2
- package/node/cquisitor_lib.d.ts +512 -499
- package/node/cquisitor_lib.js +90 -90
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2 -2
- package/package.json +1 -1
|
@@ -430,336 +430,335 @@ export interface CostModels {
|
|
|
430
430
|
|
|
431
431
|
|
|
432
432
|
///AUTOGENERATED
|
|
433
|
-
|
|
434
433
|
export interface NecessaryInputData {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
434
|
+
accounts: string[];
|
|
435
|
+
committeeMembers: LocalCredential[];
|
|
436
|
+
dReps: string[];
|
|
437
|
+
govActions: GovernanceActionId[];
|
|
438
|
+
lastEnactedGovAction: GovernanceActionType[];
|
|
439
|
+
pools: string[];
|
|
440
|
+
utxos: TxInput[];
|
|
442
441
|
}
|
|
443
442
|
|
|
444
443
|
/**
|
|
445
444
|
* Phase 1 validation errors
|
|
446
445
|
*/
|
|
447
446
|
export type Phase1Error =
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
447
|
+
| (
|
|
448
|
+
| "GenesisKeyDelegationCertificateIsNotSupported"
|
|
449
|
+
| "MoveInstantaneousRewardsCertificateIsNotSupported"
|
|
451
450
|
)
|
|
452
|
-
|
|
453
|
-
|
|
451
|
+
| {
|
|
452
|
+
BadInputsUTxO: {
|
|
454
453
|
invalid_input: TxInput;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
| {
|
|
457
|
+
OutsideValidityIntervalUTxO: {
|
|
459
458
|
current_slot: bigint;
|
|
460
459
|
interval_end: bigint;
|
|
461
460
|
interval_start: bigint;
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
| {
|
|
464
|
+
MaxTxSizeUTxO: {
|
|
466
465
|
actual_size: bigint;
|
|
467
466
|
max_size: bigint;
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
| "InputSetEmptyUTxO"
|
|
470
|
+
| {
|
|
471
|
+
FeeTooSmallUTxO: {
|
|
473
472
|
actual_fee: bigint;
|
|
474
473
|
fee_decomposition: FeeDecomposition;
|
|
475
474
|
min_fee: bigint;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
| {
|
|
478
|
+
ValueNotConservedUTxO: {
|
|
480
479
|
difference: Value;
|
|
481
480
|
input_sum: Value;
|
|
482
481
|
output_sum: Value;
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
| {
|
|
485
|
+
WrongNetwork: {
|
|
487
486
|
wrong_addresses: string[];
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
| {
|
|
490
|
+
WrongNetworkWithdrawal: {
|
|
492
491
|
wrong_addresses: string[];
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
| {
|
|
495
|
+
WrongNetworkInTxBody: {
|
|
497
496
|
actual_network: number;
|
|
498
497
|
expected_network: number;
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
| {
|
|
501
|
+
OutputTooSmallUTxO: {
|
|
503
502
|
min_amount: number;
|
|
504
503
|
output_amount: number;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
| {
|
|
507
|
+
CollateralReturnTooSmall: {
|
|
509
508
|
min_amount: number;
|
|
510
509
|
output_amount: number;
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
| {
|
|
513
|
+
OutputBootAddrAttrsTooBig: {
|
|
515
514
|
actual_size: bigint;
|
|
516
515
|
max_size: bigint;
|
|
517
516
|
output: unknown;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
| {
|
|
520
|
+
OutputTooBigUTxO: {
|
|
522
521
|
actual_size: bigint;
|
|
523
522
|
max_size: bigint;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
| {
|
|
526
|
+
InsufficientCollateral: {
|
|
528
527
|
required_collateral: number;
|
|
529
528
|
total_collateral: number;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
| {
|
|
532
|
+
ExUnitsTooBigUTxO: {
|
|
534
533
|
actual_memory_units: bigint;
|
|
535
534
|
actual_steps_units: bigint;
|
|
536
535
|
max_memory_units: bigint;
|
|
537
536
|
max_steps_units: bigint;
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
| "CalculatedCollateralContainsNonAdaAssets"
|
|
540
|
+
| {
|
|
541
|
+
CollateralInputContainsNonAdaAssets: {
|
|
543
542
|
collateral_input: string;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
| {
|
|
546
|
+
CollateralIsLockedByScript: {
|
|
548
547
|
invalid_collateral: string;
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
| {
|
|
551
|
+
TooManyCollateralInputs: {
|
|
553
552
|
actual_count: number;
|
|
554
553
|
max_count: number;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
| "NoCollateralInputs"
|
|
557
|
+
| {
|
|
558
|
+
IncorrectTotalCollateralField: {
|
|
560
559
|
actual_sum: number;
|
|
561
560
|
declared_total: number;
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
| {
|
|
564
|
+
InvalidSignature: {
|
|
566
565
|
invalid_signature: string;
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
| {
|
|
569
|
+
ExtraneousSignature: {
|
|
571
570
|
extraneous_signature: string;
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
| {
|
|
574
|
+
NativeScriptIsUnsuccessful: {
|
|
576
575
|
native_script_hash: string;
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
| {
|
|
579
|
+
PlutusScriptIsUnsuccessful: {
|
|
581
580
|
plutus_script_hash: string;
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
| {
|
|
584
|
+
MissingVKeyWitnesses: {
|
|
586
585
|
missing_key_hash: string;
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
| {
|
|
589
|
+
MissingScriptWitnesses: {
|
|
591
590
|
missing_script_hash: string;
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
| {
|
|
594
|
+
MissingRedeemer: {
|
|
596
595
|
index: number;
|
|
597
596
|
tag: string;
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
| "MissingTxBodyMetadataHash"
|
|
600
|
+
| "MissingTxMetadata"
|
|
601
|
+
| {
|
|
602
|
+
ConflictingMetadataHash: {
|
|
604
603
|
actual_hash: string;
|
|
605
604
|
expected_hash: string;
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
| {
|
|
608
|
+
InvalidMetadata: {
|
|
610
609
|
message: string;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
| {
|
|
613
|
+
ExtraneousScriptWitnesses: {
|
|
615
614
|
extraneous_script: string;
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
| {
|
|
618
|
+
StakeAlreadyRegistered: {
|
|
620
619
|
reward_address: string;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
| {
|
|
623
|
+
StakeNotRegistered: {
|
|
625
624
|
reward_address: string;
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
| {
|
|
628
|
+
StakeNonZeroAccountBalance: {
|
|
630
629
|
remaining_balance: bigint;
|
|
631
630
|
reward_address: string;
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
| {
|
|
634
|
+
RewardAccountNotExisting: {
|
|
636
635
|
reward_address: string;
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
| {
|
|
639
|
+
WrongRequestedWithdrawalAmount: {
|
|
641
640
|
expected_amount: number;
|
|
642
641
|
requested_amount: bigint;
|
|
643
642
|
reward_address: string;
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
| {
|
|
646
|
+
StakePoolNotRegistered: {
|
|
648
647
|
pool_id: string;
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
| {
|
|
651
|
+
WrongRetirementEpoch: {
|
|
653
652
|
current_epoch: bigint;
|
|
654
653
|
max_epoch: bigint;
|
|
655
654
|
min_epoch: bigint;
|
|
656
655
|
specified_epoch: bigint;
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
| {
|
|
659
|
+
StakePoolCostTooLow: {
|
|
661
660
|
min_cost: bigint;
|
|
662
661
|
specified_cost: bigint;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
| {
|
|
665
|
+
InsufficientFundsForMir: {
|
|
667
666
|
available_amount: bigint;
|
|
668
667
|
requested_amount: bigint;
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
| {
|
|
671
|
+
InvalidCommitteeVote: {
|
|
673
672
|
message: string;
|
|
674
673
|
voter: unknown;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
| {
|
|
677
|
+
DRepIncorrectDeposit: {
|
|
679
678
|
cert_index: number;
|
|
680
679
|
required_deposit: number;
|
|
681
680
|
supplied_deposit: number;
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
| {
|
|
684
|
+
DRepDeregistrationWrongRefund: {
|
|
686
685
|
cert_index: number;
|
|
687
686
|
required_refund: number;
|
|
688
687
|
supplied_refund: number;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
| {
|
|
691
|
+
StakeRegistrationWrongDeposit: {
|
|
693
692
|
cert_index: number;
|
|
694
693
|
required_deposit: number;
|
|
695
694
|
supplied_deposit: number;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
| {
|
|
698
|
+
StakeDeregistrationWrongRefund: {
|
|
700
699
|
cert_index: number;
|
|
701
700
|
required_refund: number;
|
|
702
701
|
supplied_refund: number;
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
| {
|
|
705
|
+
PoolRegistrationWrongDeposit: {
|
|
707
706
|
cert_index: number;
|
|
708
707
|
required_deposit: number;
|
|
709
708
|
supplied_deposit: number;
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
| {
|
|
712
|
+
CommitteeHasPreviouslyResigned: {
|
|
714
713
|
committee_credential: LocalCredential;
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
| {
|
|
717
|
+
TreasuryValueMismatch: {
|
|
719
718
|
actual_value: bigint;
|
|
720
719
|
declared_value: bigint;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
| {
|
|
723
|
+
RefScriptsSizeTooBig: {
|
|
725
724
|
actual_size: bigint;
|
|
726
725
|
max_size: bigint;
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
| {
|
|
729
|
+
WithdrawalNotAllowedBecauseNotDelegatedToDRep: {
|
|
731
730
|
reward_address: string;
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
| {
|
|
734
|
+
CommitteeIsUnknown: {
|
|
736
735
|
/**
|
|
737
736
|
* The committee key hash
|
|
738
737
|
*/
|
|
739
738
|
committee_key_hash:
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
739
|
+
| {
|
|
740
|
+
keyHash: number[];
|
|
741
|
+
}
|
|
742
|
+
| {
|
|
743
|
+
scriptHash: number[];
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
| {
|
|
748
|
+
GovActionsDoNotExist: {
|
|
750
749
|
/**
|
|
751
750
|
* The list of invalid governance action IDs
|
|
752
751
|
*/
|
|
753
752
|
invalid_action_ids: GovernanceActionId[];
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
| {
|
|
756
|
+
MalformedProposal: {
|
|
758
757
|
gov_action: GovernanceActionId;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
| {
|
|
761
|
+
ProposalProcedureNetworkIdMismatch: {
|
|
763
762
|
/**
|
|
764
763
|
* The expected network ID
|
|
765
764
|
*/
|
|
@@ -768,10 +767,10 @@ export type Phase1Error =
|
|
|
768
767
|
* The reward account
|
|
769
768
|
*/
|
|
770
769
|
reward_account: string;
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
| {
|
|
773
|
+
TreasuryWithdrawalsNetworkIdMismatch: {
|
|
775
774
|
/**
|
|
776
775
|
* The expected network ID
|
|
777
776
|
*/
|
|
@@ -780,10 +779,10 @@ export type Phase1Error =
|
|
|
780
779
|
* The set of mismatched reward accounts
|
|
781
780
|
*/
|
|
782
781
|
mismatched_account: string;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
| {
|
|
785
|
+
VotingProposalIncorrectDeposit: {
|
|
787
786
|
proposal_index: number;
|
|
788
787
|
/**
|
|
789
788
|
* The required deposit amount
|
|
@@ -793,57 +792,57 @@ export type Phase1Error =
|
|
|
793
792
|
* The supplied deposit amount
|
|
794
793
|
*/
|
|
795
794
|
supplied_deposit: number;
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
| {
|
|
798
|
+
DisallowedVoters: {
|
|
800
799
|
/**
|
|
801
800
|
* List of disallowed voter and action ID pairs
|
|
802
801
|
*/
|
|
803
802
|
disallowed_pairs: [unknown, unknown][];
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
| {
|
|
806
|
+
ConflictingCommitteeUpdate: {
|
|
808
807
|
/**
|
|
809
808
|
* The set of conflicting credentials
|
|
810
809
|
*/
|
|
811
810
|
conflicting_credentials:
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
811
|
+
| {
|
|
812
|
+
keyHash: number[];
|
|
813
|
+
}
|
|
814
|
+
| {
|
|
815
|
+
scriptHash: number[];
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
| {
|
|
820
|
+
ExpirationEpochTooSmall: {
|
|
822
821
|
/**
|
|
823
822
|
* Map of credentials to their invalid expiration epochs
|
|
824
823
|
*/
|
|
825
824
|
invalid_expirations: {
|
|
826
|
-
|
|
825
|
+
[k: string]: number;
|
|
827
826
|
};
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
| {
|
|
830
|
+
InvalidPrevGovActionId: {
|
|
832
831
|
/**
|
|
833
832
|
* The invalid proposal
|
|
834
833
|
*/
|
|
835
834
|
proposal: {
|
|
836
|
-
|
|
835
|
+
[k: string]: unknown;
|
|
837
836
|
};
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
| {
|
|
840
|
+
VotingOnExpiredGovAction: {
|
|
842
841
|
expired_gov_action: GovernanceActionId;
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
| {
|
|
845
|
+
ProposalCantFollow: {
|
|
847
846
|
/**
|
|
848
847
|
* The expected protocol version
|
|
849
848
|
*/
|
|
@@ -853,10 +852,10 @@ export type Phase1Error =
|
|
|
853
852
|
*/
|
|
854
853
|
prev_gov_action_id?: GovernanceActionId | null;
|
|
855
854
|
supplied_version: ProtocolVersion;
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
| {
|
|
858
|
+
InvalidConstitutionPolicyHash: {
|
|
860
859
|
/**
|
|
861
860
|
* The expected policy hash
|
|
862
861
|
*/
|
|
@@ -865,41 +864,41 @@ export type Phase1Error =
|
|
|
865
864
|
* The supplied policy hash
|
|
866
865
|
*/
|
|
867
866
|
supplied_hash?: string | null;
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
| {
|
|
870
|
+
VoterDoNotExist: {
|
|
872
871
|
/**
|
|
873
872
|
* List of non-existent voters
|
|
874
873
|
*/
|
|
875
874
|
missing_voter: {
|
|
876
|
-
|
|
875
|
+
[k: string]: unknown;
|
|
877
876
|
};
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
| {
|
|
880
|
+
ZeroTreasuryWithdrawals: {
|
|
882
881
|
gov_action: GovernanceActionId;
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
| {
|
|
885
|
+
ProposalReturnAccountDoesNotExist: {
|
|
887
886
|
/**
|
|
888
887
|
* The invalid return account
|
|
889
888
|
*/
|
|
890
889
|
return_account: string;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
| {
|
|
893
|
+
TreasuryWithdrawalReturnAccountsDoNotExist: {
|
|
895
894
|
/**
|
|
896
895
|
* List of non-existent return accounts
|
|
897
896
|
*/
|
|
898
897
|
missing_account: string;
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
| {
|
|
901
|
+
AuxiliaryDataHashMismatch: {
|
|
903
902
|
/**
|
|
904
903
|
* The actual auxiliary data hash
|
|
905
904
|
*/
|
|
@@ -908,27 +907,27 @@ export type Phase1Error =
|
|
|
908
907
|
* The expected auxiliary data hash
|
|
909
908
|
*/
|
|
910
909
|
expected_hash: string;
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
| "AuxiliaryDataHashMissing"
|
|
913
|
+
| "AuxiliaryDataHashPresentButNotExpected"
|
|
914
|
+
| {
|
|
915
|
+
UnknownError: {
|
|
917
916
|
message: string;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
| {
|
|
920
|
+
MissingDatum: {
|
|
922
921
|
datum_hash: string;
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
| {
|
|
925
|
+
ExtraneousDatumWitnesses: {
|
|
927
926
|
datum_hash: string;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
| {
|
|
930
|
+
ScriptDataHashMismatch: {
|
|
932
931
|
/**
|
|
933
932
|
* The expected script data hash
|
|
934
933
|
*/
|
|
@@ -937,268 +936,282 @@ export type Phase1Error =
|
|
|
937
936
|
* The actual script data hash
|
|
938
937
|
*/
|
|
939
938
|
provided_hash?: string | null;
|
|
940
|
-
};
|
|
941
939
|
};
|
|
940
|
+
}
|
|
941
|
+
| {
|
|
942
|
+
ReferenceInputOverlapsWithInput: {
|
|
943
|
+
input: TxInput;
|
|
944
|
+
};
|
|
945
|
+
};
|
|
942
946
|
|
|
943
947
|
export type Phase1Warning =
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
948
|
+
| ("InputsAreNotSorted" | "CollateralIsUnnecessary" | "TotalCollateralIsNotDeclared")
|
|
949
|
+
| {
|
|
950
|
+
FeeIsBiggerThanMinFee: {
|
|
947
951
|
actual_fee: bigint;
|
|
948
952
|
fee_decomposition: FeeDecomposition;
|
|
949
953
|
min_fee: bigint;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
| {
|
|
957
|
+
InputUsesRewardAddress: {
|
|
954
958
|
invalid_input: string;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
| {
|
|
962
|
+
CollateralInputUsesRewardAddress: {
|
|
959
963
|
invalid_collateral: string;
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
| {
|
|
967
|
+
CannotCheckStakeDeregistrationRefund: {
|
|
964
968
|
cert_index: number;
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
| {
|
|
972
|
+
CannotCheckDRepDeregistrationRefund: {
|
|
969
973
|
cert_index: number;
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
| {
|
|
977
|
+
PoolAlreadyRegistered: {
|
|
974
978
|
pool_id: string;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
| {
|
|
982
|
+
DRepAlreadyRegistered: {
|
|
979
983
|
drep_id: string;
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
| {
|
|
987
|
+
CommitteeAlreadyAuthorized: {
|
|
984
988
|
committee_key: string;
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
| {
|
|
992
|
+
DRepNotRegistered: {
|
|
989
993
|
cert_index: number;
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
| {
|
|
997
|
+
DuplicateRegistrationInTx: {
|
|
994
998
|
cert_index: number;
|
|
995
999
|
entity_id: string;
|
|
996
1000
|
entity_type: string;
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
| {
|
|
1004
|
+
DuplicateCommitteeColdResignationInTx: {
|
|
1001
1005
|
cert_index: number;
|
|
1002
1006
|
committee_credential: LocalCredential;
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
| {
|
|
1010
|
+
DuplicateCommitteeHotRegistrationInTx: {
|
|
1007
1011
|
cert_index: number;
|
|
1008
1012
|
committee_credential: LocalCredential;
|
|
1009
|
-
};
|
|
1010
1013
|
};
|
|
1014
|
+
};
|
|
1011
1015
|
|
|
1012
1016
|
export interface ValidationResult {
|
|
1013
|
-
|
|
1014
|
-
|
|
1017
|
+
errors: ValidationError[];
|
|
1018
|
+
warnings: ValidationWarning[];
|
|
1015
1019
|
}
|
|
1016
1020
|
export interface ValidationError {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
+
error: Phase1Error;
|
|
1022
|
+
error_message: string;
|
|
1023
|
+
hint?: string | null;
|
|
1024
|
+
locations: string[];
|
|
1021
1025
|
}
|
|
1026
|
+
/**
|
|
1027
|
+
* The invalid input UTxO
|
|
1028
|
+
*/
|
|
1022
1029
|
|
|
1023
1030
|
export interface FeeDecomposition {
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1031
|
+
executionUnitsFee: bigint;
|
|
1032
|
+
referenceScriptsFee: bigint;
|
|
1033
|
+
txSizeFee: bigint;
|
|
1027
1034
|
}
|
|
1028
1035
|
export interface Value {
|
|
1029
|
-
|
|
1030
|
-
|
|
1036
|
+
assets: MultiAsset;
|
|
1037
|
+
coins: number;
|
|
1031
1038
|
}
|
|
1032
1039
|
export interface MultiAsset {
|
|
1033
|
-
|
|
1040
|
+
assets: ValidatorAsset[];
|
|
1034
1041
|
}
|
|
1035
1042
|
export interface ValidatorAsset {
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1043
|
+
asset_name: string;
|
|
1044
|
+
policy_id: string;
|
|
1045
|
+
quantity: number;
|
|
1039
1046
|
}
|
|
1040
1047
|
|
|
1048
|
+
/**
|
|
1049
|
+
* The invalid governance action
|
|
1050
|
+
*/
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* The expired governance action
|
|
1054
|
+
*/
|
|
1041
1055
|
|
|
1042
1056
|
export interface ProtocolVersion {
|
|
1043
|
-
|
|
1044
|
-
|
|
1057
|
+
major: bigint;
|
|
1058
|
+
minor: bigint;
|
|
1045
1059
|
}
|
|
1060
|
+
/**
|
|
1061
|
+
* The supplied protocol version
|
|
1062
|
+
*/
|
|
1046
1063
|
|
|
1064
|
+
/**
|
|
1065
|
+
* The governance action with zero withdrawals
|
|
1066
|
+
*/
|
|
1047
1067
|
|
|
1048
1068
|
export interface ValidationWarning {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1069
|
+
hint?: string | null;
|
|
1070
|
+
locations: string[];
|
|
1071
|
+
warning: Phase1Warning;
|
|
1052
1072
|
}
|
|
1053
1073
|
|
|
1054
1074
|
export type LocalCredential =
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1075
|
+
| {
|
|
1076
|
+
keyHash: number[];
|
|
1077
|
+
}
|
|
1078
|
+
| {
|
|
1079
|
+
scriptHash: number[];
|
|
1080
|
+
};
|
|
1061
1081
|
export type GovernanceActionType =
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1082
|
+
| "parameterChangeAction"
|
|
1083
|
+
| "hardForkInitiationAction"
|
|
1084
|
+
| "treasuryWithdrawalsAction"
|
|
1085
|
+
| "noConfidenceAction"
|
|
1086
|
+
| "updateCommitteeAction"
|
|
1087
|
+
| "newConstitutionAction"
|
|
1088
|
+
| "infoAction";
|
|
1069
1089
|
export type NetworkType = "mainnet" | "testnet";
|
|
1070
1090
|
|
|
1071
1091
|
export interface ValidationInputContext {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1092
|
+
accountContexts: AccountInputContext[];
|
|
1093
|
+
committeeContext: CommitteeInputContext;
|
|
1094
|
+
drepContexts: DrepInputContext[];
|
|
1095
|
+
govActionContexts: GovActionInputContext[];
|
|
1096
|
+
lastEnactedGovAction: GovActionInputContext[];
|
|
1097
|
+
networkType: NetworkType;
|
|
1098
|
+
poolContexts: PoolInputContext[];
|
|
1099
|
+
protocolParameters: ProtocolParameters;
|
|
1100
|
+
slot: bigint;
|
|
1101
|
+
treasuryValue: bigint;
|
|
1102
|
+
utxoSet: UtxoInputContext[];
|
|
1083
1103
|
}
|
|
1084
1104
|
export interface AccountInputContext {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1105
|
+
balance?: number | null;
|
|
1106
|
+
bech32Address: string;
|
|
1107
|
+
delegatedToDrep?: string | null;
|
|
1108
|
+
delegatedToPool?: string | null;
|
|
1109
|
+
isRegistered: boolean;
|
|
1110
|
+
payedDeposit?: number | null;
|
|
1091
1111
|
}
|
|
1092
1112
|
export interface CommitteeInputContext {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1113
|
+
activeCommitteeMembers: LocalCredential[];
|
|
1114
|
+
potentialCommitteeMembers: LocalCredential[];
|
|
1115
|
+
resignedCommitteeMembers: LocalCredential[];
|
|
1096
1116
|
}
|
|
1097
1117
|
export interface DrepInputContext {
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1118
|
+
bech32Drep: string;
|
|
1119
|
+
isRegistered: boolean;
|
|
1120
|
+
payedDeposit?: number | null;
|
|
1101
1121
|
}
|
|
1102
1122
|
export interface GovActionInputContext {
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1123
|
+
actionId: GovernanceActionId;
|
|
1124
|
+
actionType: GovernanceActionType;
|
|
1125
|
+
isActive: boolean;
|
|
1106
1126
|
}
|
|
1107
1127
|
export interface GovernanceActionId {
|
|
1108
|
-
|
|
1109
|
-
|
|
1128
|
+
index: number;
|
|
1129
|
+
txHash: number[];
|
|
1110
1130
|
}
|
|
1111
1131
|
export interface PoolInputContext {
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1132
|
+
isRegistered: boolean;
|
|
1133
|
+
poolId: string;
|
|
1134
|
+
retirementEpoch?: number | null;
|
|
1115
1135
|
}
|
|
1116
1136
|
export interface ProtocolParameters {
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
*/
|
|
1184
|
-
stakeKeyDeposit: bigint;
|
|
1185
|
-
/**
|
|
1186
|
-
* Deposit amount required for registering a stake pool
|
|
1187
|
-
*/
|
|
1188
|
-
stakePoolDeposit: bigint;
|
|
1137
|
+
/**
|
|
1138
|
+
* Cost per UTxO byte in lovelace
|
|
1139
|
+
*/
|
|
1140
|
+
adaPerUtxoByte: bigint;
|
|
1141
|
+
/**
|
|
1142
|
+
* Percentage of transaction fee required as collateral
|
|
1143
|
+
*/
|
|
1144
|
+
collateralPercentage: number;
|
|
1145
|
+
costModels: CostModels;
|
|
1146
|
+
/**
|
|
1147
|
+
* Deposit amount required for registering as a DRep
|
|
1148
|
+
*/
|
|
1149
|
+
drepDeposit: bigint;
|
|
1150
|
+
executionPrices: ExUnitPrices;
|
|
1151
|
+
/**
|
|
1152
|
+
* Deposit amount required for submitting a governance action
|
|
1153
|
+
*/
|
|
1154
|
+
governanceActionDeposit: bigint;
|
|
1155
|
+
/**
|
|
1156
|
+
* Maximum block body size in bytes
|
|
1157
|
+
*/
|
|
1158
|
+
maxBlockBodySize: number;
|
|
1159
|
+
maxBlockExecutionUnits: ExUnits;
|
|
1160
|
+
/**
|
|
1161
|
+
* Maximum block header size in bytes
|
|
1162
|
+
*/
|
|
1163
|
+
maxBlockHeaderSize: number;
|
|
1164
|
+
/**
|
|
1165
|
+
* Maximum number of collateral inputs
|
|
1166
|
+
*/
|
|
1167
|
+
maxCollateralInputs: number;
|
|
1168
|
+
/**
|
|
1169
|
+
* Maximum number of epochs that can be used for pool retirement ahead
|
|
1170
|
+
*/
|
|
1171
|
+
maxEpochForPoolRetirement: number;
|
|
1172
|
+
/**
|
|
1173
|
+
* Maximum transaction size in bytes
|
|
1174
|
+
*/
|
|
1175
|
+
maxTransactionSize: number;
|
|
1176
|
+
maxTxExecutionUnits: ExUnits;
|
|
1177
|
+
/**
|
|
1178
|
+
* Maximum size of a Value in bytes
|
|
1179
|
+
*/
|
|
1180
|
+
maxValueSize: number;
|
|
1181
|
+
/**
|
|
1182
|
+
* Linear factor for the minimum fee calculation formula
|
|
1183
|
+
*/
|
|
1184
|
+
minFeeCoefficientA: bigint;
|
|
1185
|
+
/**
|
|
1186
|
+
* Constant factor for the minimum fee calculation formula
|
|
1187
|
+
*/
|
|
1188
|
+
minFeeConstantB: bigint;
|
|
1189
|
+
/**
|
|
1190
|
+
* Minimum pool cost in lovelace
|
|
1191
|
+
*/
|
|
1192
|
+
minPoolCost: bigint;
|
|
1193
|
+
/**
|
|
1194
|
+
* Protocol version (major, minor)
|
|
1195
|
+
*
|
|
1196
|
+
* @minItems 2
|
|
1197
|
+
* @maxItems 2
|
|
1198
|
+
*/
|
|
1199
|
+
protocolVersion: [unknown, unknown];
|
|
1200
|
+
referenceScriptCostPerByte: SubCoin;
|
|
1201
|
+
stakeKeyDeposit: bigint;
|
|
1202
|
+
stakePoolDeposit: bigint;
|
|
1189
1203
|
}
|
|
1190
1204
|
|
|
1191
1205
|
export interface ExUnitPrices {
|
|
1192
|
-
|
|
1193
|
-
|
|
1206
|
+
memPrice: SubCoin;
|
|
1207
|
+
stepPrice: SubCoin;
|
|
1194
1208
|
}
|
|
1195
1209
|
export interface SubCoin {
|
|
1196
|
-
|
|
1197
|
-
|
|
1210
|
+
denominator: bigint;
|
|
1211
|
+
numerator: bigint;
|
|
1198
1212
|
}
|
|
1199
1213
|
|
|
1200
|
-
|
|
1201
1214
|
export interface UtxoInputContext {
|
|
1202
|
-
|
|
1203
|
-
|
|
1215
|
+
isSpent: boolean;
|
|
1216
|
+
utxo: UTxO;
|
|
1204
1217
|
}
|