@cardananium/cquisitor-lib 0.1.0-beta.22 → 0.1.0-beta.24
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 +104 -28
- package/browser/cquisitor_lib_bg.js +445 -444
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2288 -2288
- package/node/cquisitor_lib.d.ts +104 -28
- package/node/cquisitor_lib.js +403 -402
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2288 -2288
- package/package.json +1 -1
|
@@ -430,9 +430,17 @@ export interface CostModels {
|
|
|
430
430
|
|
|
431
431
|
|
|
432
432
|
///AUTOGENERATED
|
|
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
|
+
|
|
433
440
|
export interface NecessaryInputData {
|
|
434
441
|
accounts: string[];
|
|
435
|
-
|
|
442
|
+
committeeMembersCold: LocalCredential[];
|
|
443
|
+
committeeMembersHot: LocalCredential[];
|
|
436
444
|
dReps: string[];
|
|
437
445
|
govActions: GovernanceActionId[];
|
|
438
446
|
lastEnactedGovAction: GovernanceActionType[];
|
|
@@ -592,7 +600,7 @@ export type Phase1Error =
|
|
|
592
600
|
}
|
|
593
601
|
| {
|
|
594
602
|
MissingRedeemer: {
|
|
595
|
-
index:
|
|
603
|
+
index: bigint;
|
|
596
604
|
tag: string;
|
|
597
605
|
};
|
|
598
606
|
}
|
|
@@ -675,35 +683,30 @@ export type Phase1Error =
|
|
|
675
683
|
}
|
|
676
684
|
| {
|
|
677
685
|
DRepIncorrectDeposit: {
|
|
678
|
-
cert_index: number;
|
|
679
686
|
required_deposit: number;
|
|
680
687
|
supplied_deposit: number;
|
|
681
688
|
};
|
|
682
689
|
}
|
|
683
690
|
| {
|
|
684
691
|
DRepDeregistrationWrongRefund: {
|
|
685
|
-
cert_index: number;
|
|
686
692
|
required_refund: number;
|
|
687
693
|
supplied_refund: number;
|
|
688
694
|
};
|
|
689
695
|
}
|
|
690
696
|
| {
|
|
691
697
|
StakeRegistrationWrongDeposit: {
|
|
692
|
-
cert_index: number;
|
|
693
698
|
required_deposit: number;
|
|
694
699
|
supplied_deposit: number;
|
|
695
700
|
};
|
|
696
701
|
}
|
|
697
702
|
| {
|
|
698
703
|
StakeDeregistrationWrongRefund: {
|
|
699
|
-
cert_index: number;
|
|
700
704
|
required_refund: number;
|
|
701
705
|
supplied_refund: number;
|
|
702
706
|
};
|
|
703
707
|
}
|
|
704
708
|
| {
|
|
705
709
|
PoolRegistrationWrongDeposit: {
|
|
706
|
-
cert_index: number;
|
|
707
710
|
required_deposit: number;
|
|
708
711
|
supplied_deposit: number;
|
|
709
712
|
};
|
|
@@ -944,6 +947,54 @@ export type Phase1Error =
|
|
|
944
947
|
};
|
|
945
948
|
};
|
|
946
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
|
+
};
|
|
947
998
|
export type Phase1Warning =
|
|
948
999
|
| ("InputsAreNotSorted" | "CollateralIsUnnecessary" | "TotalCollateralIsNotDeclared")
|
|
949
1000
|
| {
|
|
@@ -963,16 +1014,8 @@ export type Phase1Warning =
|
|
|
963
1014
|
invalid_collateral: string;
|
|
964
1015
|
};
|
|
965
1016
|
}
|
|
966
|
-
|
|
|
967
|
-
|
|
968
|
-
cert_index: number;
|
|
969
|
-
};
|
|
970
|
-
}
|
|
971
|
-
| {
|
|
972
|
-
CannotCheckDRepDeregistrationRefund: {
|
|
973
|
-
cert_index: number;
|
|
974
|
-
};
|
|
975
|
-
}
|
|
1017
|
+
| "CannotCheckStakeDeregistrationRefund"
|
|
1018
|
+
| "CannotCheckDRepDeregistrationRefund"
|
|
976
1019
|
| {
|
|
977
1020
|
PoolAlreadyRegistered: {
|
|
978
1021
|
pool_id: string;
|
|
@@ -1014,10 +1057,13 @@ export type Phase1Warning =
|
|
|
1014
1057
|
};
|
|
1015
1058
|
|
|
1016
1059
|
export interface ValidationResult {
|
|
1017
|
-
errors:
|
|
1018
|
-
|
|
1060
|
+
errors: ValidationPhase1Error[];
|
|
1061
|
+
eval_redeemer_results: EvalRedeemerResult[];
|
|
1062
|
+
phase2_errors: ValidationPhase2Error[];
|
|
1063
|
+
phase2_warnings: ValidationPhase2Warning[];
|
|
1064
|
+
warnings: ValidationPhase1Warning[];
|
|
1019
1065
|
}
|
|
1020
|
-
export interface
|
|
1066
|
+
export interface ValidationPhase1Error {
|
|
1021
1067
|
error: Phase1Error;
|
|
1022
1068
|
error_message: string;
|
|
1023
1069
|
hint?: string | null;
|
|
@@ -1065,7 +1111,28 @@ export interface ProtocolVersion {
|
|
|
1065
1111
|
* The governance action with zero withdrawals
|
|
1066
1112
|
*/
|
|
1067
1113
|
|
|
1068
|
-
export interface
|
|
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
|
+
}
|
|
1123
|
+
|
|
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 {
|
|
1069
1136
|
hint?: string | null;
|
|
1070
1137
|
locations: string[];
|
|
1071
1138
|
warning: Phase1Warning;
|
|
@@ -1086,16 +1153,17 @@ export type GovernanceActionType =
|
|
|
1086
1153
|
| "updateCommitteeAction"
|
|
1087
1154
|
| "newConstitutionAction"
|
|
1088
1155
|
| "infoAction";
|
|
1089
|
-
export type NetworkType = "mainnet" | "
|
|
1156
|
+
export type NetworkType = "mainnet" | "preview" | "preprod";
|
|
1090
1157
|
|
|
1091
1158
|
export interface ValidationInputContext {
|
|
1092
1159
|
accountContexts: AccountInputContext[];
|
|
1093
|
-
|
|
1160
|
+
currentCommitteeMembers: CommitteeInputContext[];
|
|
1094
1161
|
drepContexts: DrepInputContext[];
|
|
1095
1162
|
govActionContexts: GovActionInputContext[];
|
|
1096
1163
|
lastEnactedGovAction: GovActionInputContext[];
|
|
1097
1164
|
networkType: NetworkType;
|
|
1098
1165
|
poolContexts: PoolInputContext[];
|
|
1166
|
+
potentialCommitteeMembers: CommitteeInputContext[];
|
|
1099
1167
|
protocolParameters: ProtocolParameters;
|
|
1100
1168
|
slot: bigint;
|
|
1101
1169
|
treasuryValue: bigint;
|
|
@@ -1110,9 +1178,9 @@ export interface AccountInputContext {
|
|
|
1110
1178
|
payedDeposit?: number | null;
|
|
1111
1179
|
}
|
|
1112
1180
|
export interface CommitteeInputContext {
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1181
|
+
committeeMemberCold: LocalCredential;
|
|
1182
|
+
committeeMemberHot?: LocalCredential | null;
|
|
1183
|
+
isResigned: boolean;
|
|
1116
1184
|
}
|
|
1117
1185
|
export interface DrepInputContext {
|
|
1118
1186
|
bech32Drep: string;
|
|
@@ -1125,7 +1193,7 @@ export interface GovActionInputContext {
|
|
|
1125
1193
|
isActive: boolean;
|
|
1126
1194
|
}
|
|
1127
1195
|
export interface GovernanceActionId {
|
|
1128
|
-
index:
|
|
1196
|
+
index: bigint;
|
|
1129
1197
|
txHash: number[];
|
|
1130
1198
|
}
|
|
1131
1199
|
export interface PoolInputContext {
|
|
@@ -1198,10 +1266,18 @@ export interface ProtocolParameters {
|
|
|
1198
1266
|
*/
|
|
1199
1267
|
protocolVersion: [unknown, unknown];
|
|
1200
1268
|
referenceScriptCostPerByte: SubCoin;
|
|
1269
|
+
/**
|
|
1270
|
+
* Deposit amount required for registering a stake key
|
|
1271
|
+
*/
|
|
1201
1272
|
stakeKeyDeposit: bigint;
|
|
1273
|
+
/**
|
|
1274
|
+
* Deposit amount required for registering a stake pool
|
|
1275
|
+
*/
|
|
1202
1276
|
stakePoolDeposit: bigint;
|
|
1203
1277
|
}
|
|
1204
|
-
|
|
1278
|
+
/**
|
|
1279
|
+
* Price of execution units for script execution
|
|
1280
|
+
*/
|
|
1205
1281
|
export interface ExUnitPrices {
|
|
1206
1282
|
memPrice: SubCoin;
|
|
1207
1283
|
stepPrice: SubCoin;
|