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