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