@cardananium/cquisitor-lib 0.1.0-beta.15 → 0.1.0-beta.16
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 +98 -98
- package/browser/cquisitor_lib_bg.js +46 -46
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib.d.ts +98 -98
- package/node/cquisitor_lib.js +29 -29
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/package.json +1 -1
package/node/cquisitor_lib.d.ts
CHANGED
|
@@ -2,43 +2,43 @@
|
|
|
2
2
|
* @param {string} tx_hex
|
|
3
3
|
* @returns {string}
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
export function get_necessary_data_list_js(tx_hex: string): string;
|
|
6
6
|
/**
|
|
7
7
|
* @param {string} tx_hex
|
|
8
8
|
* @param {ValidationInputContext} validation_context
|
|
9
9
|
* @returns {string}
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
export function validate_transaction_js(tx_hex: string, validation_context: ValidationInputContext): string;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @returns {(string)[]}
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
export function get_decodable_types(): (string)[];
|
|
17
17
|
/**
|
|
18
18
|
* @param {string} input
|
|
19
19
|
* @param {string} type_name
|
|
20
20
|
* @param {any} params_json
|
|
21
21
|
* @returns {any}
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
export function decode_specific_type(input: string, type_name: string, params_json: DecodingParams): any;
|
|
24
24
|
/**
|
|
25
25
|
* @param {string} input
|
|
26
26
|
* @returns {(string)[]}
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
export function get_possible_types_for_input(input: string): (string)[];
|
|
29
29
|
/**
|
|
30
30
|
* @param {string} cbor_hex
|
|
31
31
|
* @returns {any}
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
export function cbor_to_json(cbor_hex: string): CborValue;
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
export function check_block_or_tx_signatures(hex_str: string): CheckSignaturesResult;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* @param {string} tx_hex
|
|
39
39
|
* @returns {(string)[]}
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
export function get_utxo_list_from_tx(tx_hex: string): string[];
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @param {string} tx_hex
|
|
@@ -46,24 +46,24 @@ declare function get_utxo_list_from_tx(tx_hex: string): string[];
|
|
|
46
46
|
* @param {CostModels} cost_models_json
|
|
47
47
|
* @returns {ExecuteTxScriptsResult}
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
export function execute_tx_scripts(tx_hex: string, utxo_json: UTxO[], cost_models_json: CostModels): ExecuteTxScriptsResult;
|
|
50
50
|
/**
|
|
51
51
|
* @param {string} hex
|
|
52
52
|
* @returns {ProgramJson}
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
export function decode_plutus_program_uplc_json(hex: string): ProgramJson;
|
|
55
55
|
/**
|
|
56
56
|
* @param {string} hex
|
|
57
57
|
* @returns {string}
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
export function decode_plutus_program_pretty_uplc(hex: string): string;
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
export interface CborPosition {
|
|
62
62
|
offset: number;
|
|
63
63
|
length: number;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
export type CborSimpleType =
|
|
67
67
|
| "Null"
|
|
68
68
|
| "Bool"
|
|
69
69
|
| "U8"
|
|
@@ -84,13 +84,13 @@ declare type CborSimpleType =
|
|
|
84
84
|
| "Undefined"
|
|
85
85
|
| "Break";
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
export interface CborSimple {
|
|
88
88
|
position_info: CborPosition;
|
|
89
89
|
struct_position_info?: CborPosition;
|
|
90
90
|
value: any;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
export interface CborArray {
|
|
94
94
|
type: "Array";
|
|
95
95
|
position_info: CborPosition;
|
|
96
96
|
struct_position_info: CborPosition;
|
|
@@ -98,7 +98,7 @@ declare interface CborArray {
|
|
|
98
98
|
values: CborValue[]; // nested
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
export interface CborMap {
|
|
102
102
|
type: "Map";
|
|
103
103
|
position_info: CborPosition;
|
|
104
104
|
struct_position_info: CborPosition;
|
|
@@ -109,7 +109,7 @@ declare interface CborMap {
|
|
|
109
109
|
}[];
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
export interface CborTag {
|
|
113
113
|
type: "Tag";
|
|
114
114
|
position_info: CborPosition;
|
|
115
115
|
struct_position_info: CborPosition;
|
|
@@ -117,21 +117,21 @@ declare interface CborTag {
|
|
|
117
117
|
value: CborValue;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
export interface CborIndefiniteString {
|
|
121
121
|
type: "IndefiniteLengthString";
|
|
122
122
|
position_info: CborPosition;
|
|
123
123
|
struct_position_info: CborPosition;
|
|
124
124
|
chunks: CborValue[];
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
export interface CborIndefiniteBytes {
|
|
128
128
|
type: "IndefiniteLengthBytes";
|
|
129
129
|
position_info: CborPosition;
|
|
130
130
|
struct_position_info: CborPosition;
|
|
131
131
|
chunks: CborValue[];
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
export type CborValue =
|
|
135
135
|
| CborSimple
|
|
136
136
|
| CborArray
|
|
137
137
|
| CborMap
|
|
@@ -139,14 +139,14 @@ declare type CborValue =
|
|
|
139
139
|
| CborIndefiniteString
|
|
140
140
|
| CborIndefiniteBytes;
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
export interface DecodingParams {
|
|
143
143
|
plutus_script_version?: number;
|
|
144
144
|
plutus_data_schema?: PlutusDataSchema;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
export type PlutusDataSchema = "BasicConversions" | "DetailedSchema";
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
export interface CheckSignaturesResult {
|
|
150
150
|
/** Indicates whether the transaction or block is valid. */
|
|
151
151
|
valid: boolean;
|
|
152
152
|
/** The transaction hash as a hexadecimal string (if available). */
|
|
@@ -159,17 +159,17 @@ declare interface CheckSignaturesResult {
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
// The execution units object contains two numeric fields.
|
|
162
|
-
|
|
162
|
+
export type ExUnits = {
|
|
163
163
|
steps: number;
|
|
164
164
|
mem: number;
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
// The redeemer tag is one of the following literal strings.
|
|
168
|
-
|
|
168
|
+
export type RedeemerTag = "Spend" | "Mint" | "Cert" | "Reward" | "Propose" | "Vote";
|
|
169
169
|
|
|
170
170
|
// A successful redeemer evaluation contains the original execution units,
|
|
171
171
|
// the calculated execution units, and additional redeemer info.
|
|
172
|
-
|
|
172
|
+
export interface RedeemerSuccess {
|
|
173
173
|
original_ex_units: ExUnits;
|
|
174
174
|
calculated_ex_units: ExUnits;
|
|
175
175
|
redeemer_index: number;
|
|
@@ -178,7 +178,7 @@ declare interface RedeemerSuccess {
|
|
|
178
178
|
|
|
179
179
|
// A failed redeemer evaluation contains the original execution units,
|
|
180
180
|
// an error message, and additional redeemer info.
|
|
181
|
-
|
|
181
|
+
export interface RedeemerError {
|
|
182
182
|
original_ex_units: ExUnits;
|
|
183
183
|
error: string;
|
|
184
184
|
redeemer_index: number;
|
|
@@ -187,14 +187,14 @@ declare interface RedeemerError {
|
|
|
187
187
|
|
|
188
188
|
// The result from executing the transaction scripts is an array of redeemer results.
|
|
189
189
|
// Each result can be either a success or an error.
|
|
190
|
-
|
|
190
|
+
export type RedeemerResult = RedeemerSuccess | RedeemerError;
|
|
191
191
|
|
|
192
192
|
// Type for the `execute_tx_scripts` response after JSON-parsing.
|
|
193
|
-
|
|
193
|
+
export type ExecuteTxScriptsResult = RedeemerResult[];
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
// The overall JSON produced by `to_json_program`:
|
|
197
|
-
|
|
197
|
+
export interface ProgramJson {
|
|
198
198
|
program: {
|
|
199
199
|
version: string;
|
|
200
200
|
term: Term;
|
|
@@ -202,7 +202,7 @@ declare interface ProgramJson {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
// A UPLC term can be one of several forms.
|
|
205
|
-
|
|
205
|
+
export type Term =
|
|
206
206
|
| VarTerm
|
|
207
207
|
| DelayTerm
|
|
208
208
|
| LambdaTerm
|
|
@@ -214,52 +214,52 @@ declare type Term =
|
|
|
214
214
|
| ConstrTerm
|
|
215
215
|
| CaseTerm;
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
export interface VarTerm {
|
|
218
218
|
var: string;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
export interface DelayTerm {
|
|
222
222
|
delay: Term;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
export interface LambdaTerm {
|
|
226
226
|
lambda: {
|
|
227
227
|
parameter_name: string;
|
|
228
228
|
body: Term;
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
export interface ApplyTerm {
|
|
233
233
|
apply: {
|
|
234
234
|
function: Term;
|
|
235
235
|
argument: Term;
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
export interface ConstantTerm {
|
|
240
240
|
constant: Constant;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
export interface ForceTerm {
|
|
244
244
|
force: Term;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
export interface ErrorTerm {
|
|
248
248
|
error: "error";
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
|
|
251
|
+
export interface BuiltinTerm {
|
|
252
252
|
builtin: string;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
|
|
255
|
+
export interface ConstrTerm {
|
|
256
256
|
constr: {
|
|
257
257
|
tag: number;
|
|
258
258
|
fields: Term[];
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
export interface CaseTerm {
|
|
263
263
|
case: {
|
|
264
264
|
constr: Term;
|
|
265
265
|
branches: Term[];
|
|
@@ -267,7 +267,7 @@ declare interface CaseTerm {
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
// The UPLC constant is one of several union types.
|
|
270
|
-
|
|
270
|
+
export type Constant =
|
|
271
271
|
| IntegerConstant
|
|
272
272
|
| ByteStringConstant
|
|
273
273
|
| StringConstant
|
|
@@ -279,34 +279,34 @@ declare type Constant =
|
|
|
279
279
|
| Bls12_381G1ElementConstant
|
|
280
280
|
| Bls12_381G2ElementConstant;
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
export interface IntegerConstant {
|
|
283
283
|
integer: string; // represented as a string
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
|
|
286
|
+
export interface ByteStringConstant {
|
|
287
287
|
bytestring: string; // hex-encoded string
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
export interface StringConstant {
|
|
291
291
|
string: string;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
export interface UnitConstant {
|
|
295
295
|
unit: "()";
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
|
|
298
|
+
export interface BoolConstant {
|
|
299
299
|
bool: boolean;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
|
|
302
|
+
export interface ListConstant {
|
|
303
303
|
list: {
|
|
304
304
|
type: Type;
|
|
305
305
|
items: Constant[];
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
|
|
309
|
+
export interface PairConstant {
|
|
310
310
|
pair: {
|
|
311
311
|
type_left: Type;
|
|
312
312
|
type_right: Type;
|
|
@@ -315,11 +315,11 @@ declare interface PairConstant {
|
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
|
|
318
|
+
export interface DataConstant {
|
|
319
319
|
data: PlutusData;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
|
|
322
|
+
export interface Bls12_381G1ElementConstant {
|
|
323
323
|
bls12_381_G1_element: {
|
|
324
324
|
x: number;
|
|
325
325
|
y: number;
|
|
@@ -327,12 +327,12 @@ declare interface Bls12_381G1ElementConstant {
|
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
export interface Bls12_381G2ElementConstant {
|
|
331
331
|
bls12_381_G2_element: BlstP2;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
// The UPLC type is represented either as a string literal or an object.
|
|
335
|
-
|
|
335
|
+
export type Type =
|
|
336
336
|
| "bool"
|
|
337
337
|
| "integer"
|
|
338
338
|
| "string"
|
|
@@ -345,11 +345,11 @@ declare type Type =
|
|
|
345
345
|
| ListType
|
|
346
346
|
| PairType;
|
|
347
347
|
|
|
348
|
-
|
|
348
|
+
export interface ListType {
|
|
349
349
|
list: Type;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
|
|
352
|
+
export interface PairType {
|
|
353
353
|
pair: {
|
|
354
354
|
left: Type;
|
|
355
355
|
right: Type;
|
|
@@ -357,21 +357,21 @@ declare interface PairType {
|
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
// The JSON representation for a blst_p2 element: each coordinate is an array of numbers.
|
|
360
|
-
|
|
360
|
+
export interface BlstP2 {
|
|
361
361
|
x: number[];
|
|
362
362
|
y: number[];
|
|
363
363
|
z: number[];
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
// Plutus data is also a tagged union.
|
|
367
|
-
|
|
367
|
+
export type PlutusData =
|
|
368
368
|
| ConstrData
|
|
369
369
|
| MapData
|
|
370
370
|
| BigIntData
|
|
371
371
|
| BoundedBytesData
|
|
372
372
|
| ArrayData;
|
|
373
373
|
|
|
374
|
-
|
|
374
|
+
export interface ConstrData {
|
|
375
375
|
constr: {
|
|
376
376
|
tag: number;
|
|
377
377
|
any_constructor: boolean;
|
|
@@ -379,36 +379,36 @@ declare interface ConstrData {
|
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
|
|
382
|
+
export interface MapData {
|
|
383
383
|
map: Array<{
|
|
384
384
|
key: PlutusData;
|
|
385
385
|
value: PlutusData;
|
|
386
386
|
}>;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
|
|
389
|
+
export interface BigIntData {
|
|
390
390
|
integer: string; // big integers are represented as strings
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
|
|
393
|
+
export interface BoundedBytesData {
|
|
394
394
|
bytestring: string; // hex-encoded
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
|
|
397
|
+
export interface ArrayData {
|
|
398
398
|
list: PlutusData[];
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
|
|
401
|
+
export interface Asset {
|
|
402
402
|
unit: string;
|
|
403
403
|
quantity: string;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
|
|
406
|
+
export interface TxInput {
|
|
407
407
|
outputIndex: number;
|
|
408
408
|
txHash: string;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
|
|
411
|
+
export interface TxOutput {
|
|
412
412
|
address: string;
|
|
413
413
|
amount: Asset[];
|
|
414
414
|
dataHash?: string;
|
|
@@ -417,12 +417,12 @@ declare interface TxOutput {
|
|
|
417
417
|
scriptHash?: string;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
|
|
420
|
+
export interface UTxO {
|
|
421
421
|
input: TxInput;
|
|
422
422
|
output: TxOutput;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
|
|
425
|
+
export interface CostModels {
|
|
426
426
|
plutusV1?: number[];
|
|
427
427
|
plutusV2?: number[];
|
|
428
428
|
plutusV3?: number[];
|
|
@@ -431,35 +431,35 @@ declare interface CostModels {
|
|
|
431
431
|
|
|
432
432
|
///AUTOGENERATED
|
|
433
433
|
|
|
434
|
-
|
|
434
|
+
export interface GovernanceActionId {
|
|
435
435
|
index: number;
|
|
436
436
|
txHash: number[];
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
|
|
439
|
+
export type GovernanceActionType = "parameterChangeAction" | "hardForkInitiationAction" | "treasuryWithdrawalsAction" | "noConfidenceAction" | "updateCommitteeAction" | "newConstitutionAction" | "infoAction";
|
|
440
440
|
|
|
441
|
-
|
|
441
|
+
export type LocalCredential = {
|
|
442
442
|
keyHash: number[];
|
|
443
443
|
} | {
|
|
444
444
|
scriptHash: number[];
|
|
445
445
|
};
|
|
446
446
|
|
|
447
|
-
|
|
447
|
+
export interface TxInput {
|
|
448
448
|
outputIndex: number;
|
|
449
449
|
txHash: string;
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
|
|
452
|
+
export interface FeeDecomposition {
|
|
453
453
|
executionUnitsFee: number;
|
|
454
454
|
referenceScriptsFee: number;
|
|
455
455
|
txSizeFee: number;
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
|
|
458
|
+
export interface MultiAsset {
|
|
459
459
|
assets: ValidatorAsset[];
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
|
|
462
|
+
export type Phase1Error = "GenesisKeyDelegationCertificateIsNotSupported" | "MoveInstantaneousRewardsCertificateIsNotSupported" | {
|
|
463
463
|
BadInputsUTxO: {
|
|
464
464
|
invalid_input: TxInput;
|
|
465
465
|
};
|
|
@@ -555,7 +555,7 @@ declare interface GovernanceActionId {
|
|
|
555
555
|
} | string | {
|
|
556
556
|
IncorrectTotalCollateralField: {
|
|
557
557
|
actual_sum: number;
|
|
558
|
-
|
|
558
|
+
exportd_total: number;
|
|
559
559
|
};
|
|
560
560
|
} | {
|
|
561
561
|
InvalidSignature: {
|
|
@@ -685,7 +685,7 @@ declare interface GovernanceActionId {
|
|
|
685
685
|
} | {
|
|
686
686
|
TreasuryValueMismatch: {
|
|
687
687
|
actual_value: number;
|
|
688
|
-
|
|
688
|
+
exportd_value: number;
|
|
689
689
|
};
|
|
690
690
|
} | {
|
|
691
691
|
RefScriptsSizeTooBig: {
|
|
@@ -778,7 +778,7 @@ declare interface GovernanceActionId {
|
|
|
778
778
|
};
|
|
779
779
|
} | string | string;
|
|
780
780
|
|
|
781
|
-
|
|
781
|
+
export type Phase1Warning = "InputsAreNotSorted" | "CollateralIsUnnecessary" | "TotalCollateralIsNotDeclared" | {
|
|
782
782
|
FeeIsBiggerThanMinFee: {
|
|
783
783
|
actual_fee: number;
|
|
784
784
|
fee_decomposition: FeeDecomposition;
|
|
@@ -834,36 +834,36 @@ declare interface GovernanceActionId {
|
|
|
834
834
|
};
|
|
835
835
|
};
|
|
836
836
|
|
|
837
|
-
|
|
837
|
+
export interface ProtocolVersion {
|
|
838
838
|
major: number;
|
|
839
839
|
minor: number;
|
|
840
840
|
}
|
|
841
841
|
|
|
842
|
-
|
|
842
|
+
export interface ValidationError {
|
|
843
843
|
error: Phase1Error;
|
|
844
844
|
error_message: string;
|
|
845
845
|
hint?: any;
|
|
846
846
|
locations: string[];
|
|
847
847
|
}
|
|
848
848
|
|
|
849
|
-
|
|
849
|
+
export interface ValidationWarning {
|
|
850
850
|
hint?: any;
|
|
851
851
|
locations: string[];
|
|
852
852
|
warning: Phase1Warning;
|
|
853
853
|
}
|
|
854
854
|
|
|
855
|
-
|
|
855
|
+
export interface ValidatorAsset {
|
|
856
856
|
asset_name: string;
|
|
857
857
|
policy_id: string;
|
|
858
858
|
quantity: number;
|
|
859
859
|
}
|
|
860
860
|
|
|
861
|
-
|
|
861
|
+
export interface Value {
|
|
862
862
|
assets: MultiAsset;
|
|
863
863
|
coins: number;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
-
|
|
866
|
+
export type Voter = {
|
|
867
867
|
constitutionalCommitteeHotScriptHash: number[];
|
|
868
868
|
} | {
|
|
869
869
|
constitutionalCommitteeHotKeyHash: number[];
|
|
@@ -875,50 +875,50 @@ declare interface GovernanceActionId {
|
|
|
875
875
|
stakingPoolKeyHash: number[];
|
|
876
876
|
};
|
|
877
877
|
|
|
878
|
-
|
|
878
|
+
export interface AccountInputContext {
|
|
879
879
|
balance?: any;
|
|
880
880
|
bech32Address: string;
|
|
881
881
|
isRegistered: boolean;
|
|
882
882
|
payedDeposit?: any;
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
-
|
|
885
|
+
export interface Asset {
|
|
886
886
|
quantity: string;
|
|
887
887
|
unit: string;
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
|
|
890
|
+
export interface CommitteeInputContext {
|
|
891
891
|
activeCommitteeMembers: LocalCredential[];
|
|
892
892
|
potentialCommitteeMembers: LocalCredential[];
|
|
893
893
|
resignedCommitteeMembers: LocalCredential[];
|
|
894
894
|
}
|
|
895
895
|
|
|
896
|
-
|
|
896
|
+
export interface DrepInputContext {
|
|
897
897
|
bech32Drep: string;
|
|
898
898
|
isRegistered: boolean;
|
|
899
899
|
payedDeposit?: any;
|
|
900
900
|
}
|
|
901
901
|
|
|
902
|
-
|
|
902
|
+
export interface ExUnitPrices {
|
|
903
903
|
memPrice: SubCoin;
|
|
904
904
|
stepPrice: SubCoin;
|
|
905
905
|
}
|
|
906
906
|
|
|
907
|
-
|
|
907
|
+
export interface GovActionInputContext {
|
|
908
908
|
actionId: GovernanceActionId;
|
|
909
909
|
actionType: GovernanceActionType;
|
|
910
910
|
isActive: boolean;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
-
|
|
913
|
+
export type NetworkType = "mainnet" | "testnet";
|
|
914
914
|
|
|
915
|
-
|
|
915
|
+
export interface PoolInputContext {
|
|
916
916
|
isRegistered: boolean;
|
|
917
917
|
poolId: string;
|
|
918
918
|
retirementEpoch?: any;
|
|
919
919
|
}
|
|
920
920
|
|
|
921
|
-
|
|
921
|
+
export interface ProtocolParameters {
|
|
922
922
|
adaPerUtxoByte: number;
|
|
923
923
|
collateralPercentage: number;
|
|
924
924
|
costModels: CostModels;
|
|
@@ -942,22 +942,22 @@ declare interface GovernanceActionId {
|
|
|
942
942
|
stakePoolDeposit: number;
|
|
943
943
|
}
|
|
944
944
|
|
|
945
|
-
|
|
945
|
+
export interface SubCoin {
|
|
946
946
|
denominator: number;
|
|
947
947
|
numerator: number;
|
|
948
948
|
}
|
|
949
949
|
|
|
950
|
-
|
|
950
|
+
export interface UTxO {
|
|
951
951
|
input: TxInput;
|
|
952
952
|
output: TxOutput;
|
|
953
953
|
}
|
|
954
954
|
|
|
955
|
-
|
|
955
|
+
export interface UtxoInputContext {
|
|
956
956
|
isSpent: boolean;
|
|
957
957
|
utxo: UTxO;
|
|
958
958
|
}
|
|
959
959
|
|
|
960
|
-
|
|
960
|
+
export interface NecessaryInputData {
|
|
961
961
|
accounts: string[];
|
|
962
962
|
committeeMembers: LocalCredential[];
|
|
963
963
|
dReps: string[];
|
|
@@ -967,12 +967,12 @@ declare interface GovernanceActionId {
|
|
|
967
967
|
utxos: TxInput[];
|
|
968
968
|
}
|
|
969
969
|
|
|
970
|
-
|
|
970
|
+
export interface ValidationResult {
|
|
971
971
|
errors: ValidationError[];
|
|
972
972
|
warnings: ValidationWarning[];
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
|
|
975
|
+
export interface ValidationInputContext {
|
|
976
976
|
accountContexts: AccountInputContext[];
|
|
977
977
|
committeeContext: CommitteeInputContext;
|
|
978
978
|
drepContexts: DrepInputContext[];
|