@cardananium/cquisitor-lib 0.1.0-beta.19 → 0.1.0-beta.20
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.
|
@@ -334,39 +334,17 @@ export function check_block_or_tx_signatures(hex_str) {
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
/**
|
|
337
|
-
* @param {string}
|
|
338
|
-
* @returns {any}
|
|
339
|
-
*/
|
|
340
|
-
export function decode_plutus_program_uplc_json(hex) {
|
|
341
|
-
try {
|
|
342
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
343
|
-
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
344
|
-
const len0 = WASM_VECTOR_LEN;
|
|
345
|
-
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
346
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
347
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
348
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
349
|
-
if (r2) {
|
|
350
|
-
throw takeObject(r1);
|
|
351
|
-
}
|
|
352
|
-
return takeObject(r0);
|
|
353
|
-
} finally {
|
|
354
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* @param {string} hex
|
|
337
|
+
* @param {string} tx_hex
|
|
360
338
|
* @returns {string}
|
|
361
339
|
*/
|
|
362
|
-
export function
|
|
340
|
+
export function get_necessary_data_list_js(tx_hex) {
|
|
363
341
|
let deferred3_0;
|
|
364
342
|
let deferred3_1;
|
|
365
343
|
try {
|
|
366
344
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
367
|
-
const ptr0 = passStringToWasm0(
|
|
345
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
368
346
|
const len0 = WASM_VECTOR_LEN;
|
|
369
|
-
wasm.
|
|
347
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
370
348
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
371
349
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
372
350
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -388,41 +366,48 @@ export function decode_plutus_program_pretty_uplc(hex) {
|
|
|
388
366
|
|
|
389
367
|
/**
|
|
390
368
|
* @param {string} tx_hex
|
|
391
|
-
* @
|
|
369
|
+
* @param {string} validation_context
|
|
370
|
+
* @returns {string}
|
|
392
371
|
*/
|
|
393
|
-
export function
|
|
372
|
+
export function validate_transaction_js(tx_hex, validation_context) {
|
|
373
|
+
let deferred4_0;
|
|
374
|
+
let deferred4_1;
|
|
394
375
|
try {
|
|
395
376
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
396
377
|
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
397
378
|
const len0 = WASM_VECTOR_LEN;
|
|
398
|
-
|
|
379
|
+
const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
380
|
+
const len1 = WASM_VECTOR_LEN;
|
|
381
|
+
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
399
382
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
400
383
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
401
384
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
402
385
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
386
|
+
var ptr3 = r0;
|
|
387
|
+
var len3 = r1;
|
|
403
388
|
if (r3) {
|
|
389
|
+
ptr3 = 0; len3 = 0;
|
|
404
390
|
throw takeObject(r2);
|
|
405
391
|
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
return
|
|
392
|
+
deferred4_0 = ptr3;
|
|
393
|
+
deferred4_1 = len3;
|
|
394
|
+
return getStringFromWasm0(ptr3, len3);
|
|
409
395
|
} finally {
|
|
410
396
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
397
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
411
398
|
}
|
|
412
399
|
}
|
|
413
400
|
|
|
414
401
|
/**
|
|
415
|
-
* @param {string}
|
|
416
|
-
* @param {any} utxo_json
|
|
417
|
-
* @param {any} cost_models_json
|
|
402
|
+
* @param {string} hex
|
|
418
403
|
* @returns {any}
|
|
419
404
|
*/
|
|
420
|
-
export function
|
|
405
|
+
export function decode_plutus_program_uplc_json(hex) {
|
|
421
406
|
try {
|
|
422
407
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
423
|
-
const ptr0 = passStringToWasm0(
|
|
408
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
424
409
|
const len0 = WASM_VECTOR_LEN;
|
|
425
|
-
wasm.
|
|
410
|
+
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
426
411
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
427
412
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
428
413
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -436,17 +421,17 @@ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
|
|
|
436
421
|
}
|
|
437
422
|
|
|
438
423
|
/**
|
|
439
|
-
* @param {string}
|
|
424
|
+
* @param {string} hex
|
|
440
425
|
* @returns {string}
|
|
441
426
|
*/
|
|
442
|
-
export function
|
|
427
|
+
export function decode_plutus_program_pretty_uplc(hex) {
|
|
443
428
|
let deferred3_0;
|
|
444
429
|
let deferred3_1;
|
|
445
430
|
try {
|
|
446
431
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
447
|
-
const ptr0 = passStringToWasm0(
|
|
432
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
448
433
|
const len0 = WASM_VECTOR_LEN;
|
|
449
|
-
wasm.
|
|
434
|
+
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
450
435
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
451
436
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
452
437
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -468,35 +453,50 @@ export function get_necessary_data_list_js(tx_hex) {
|
|
|
468
453
|
|
|
469
454
|
/**
|
|
470
455
|
* @param {string} tx_hex
|
|
471
|
-
* @
|
|
472
|
-
* @returns {string}
|
|
456
|
+
* @returns {(string)[]}
|
|
473
457
|
*/
|
|
474
|
-
export function
|
|
475
|
-
let deferred4_0;
|
|
476
|
-
let deferred4_1;
|
|
458
|
+
export function get_utxo_list_from_tx(tx_hex) {
|
|
477
459
|
try {
|
|
478
460
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
479
461
|
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
480
462
|
const len0 = WASM_VECTOR_LEN;
|
|
481
|
-
|
|
482
|
-
const len1 = WASM_VECTOR_LEN;
|
|
483
|
-
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
463
|
+
wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
|
|
484
464
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
485
465
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
486
466
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
487
467
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
488
|
-
var ptr3 = r0;
|
|
489
|
-
var len3 = r1;
|
|
490
468
|
if (r3) {
|
|
491
|
-
ptr3 = 0; len3 = 0;
|
|
492
469
|
throw takeObject(r2);
|
|
493
470
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
return
|
|
471
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
472
|
+
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
473
|
+
return v2;
|
|
474
|
+
} finally {
|
|
475
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* @param {string} tx_hex
|
|
481
|
+
* @param {any} utxo_json
|
|
482
|
+
* @param {any} cost_models_json
|
|
483
|
+
* @returns {any}
|
|
484
|
+
*/
|
|
485
|
+
export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
|
|
486
|
+
try {
|
|
487
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
488
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
489
|
+
const len0 = WASM_VECTOR_LEN;
|
|
490
|
+
wasm.execute_tx_scripts(retptr, ptr0, len0, addHeapObject(utxo_json), addHeapObject(cost_models_json));
|
|
491
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
492
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
493
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
494
|
+
if (r2) {
|
|
495
|
+
throw takeObject(r1);
|
|
496
|
+
}
|
|
497
|
+
return takeObject(r0);
|
|
497
498
|
} finally {
|
|
498
499
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
499
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
|
|
@@ -1085,24 +1085,47 @@ function handleError(f, args) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
1087
|
/**
|
|
1088
|
+
* Used to choosed the schema for a script JSON string
|
|
1088
1089
|
*/
|
|
1089
|
-
export const
|
|
1090
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1091
|
+
/**
|
|
1092
|
+
*/
|
|
1093
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1094
|
+
/**
|
|
1095
|
+
*/
|
|
1096
|
+
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1090
1097
|
/**
|
|
1091
1098
|
*/
|
|
1092
1099
|
export const PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
1093
1100
|
/**
|
|
1094
1101
|
*/
|
|
1095
|
-
export const
|
|
1102
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1096
1103
|
/**
|
|
1097
1104
|
*/
|
|
1098
|
-
export const
|
|
1105
|
+
export const VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
1099
1106
|
/**
|
|
1100
1107
|
*/
|
|
1101
|
-
export const
|
|
1108
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1109
|
+
/**
|
|
1110
|
+
*/
|
|
1111
|
+
export const BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
|
|
1112
|
+
/**
|
|
1113
|
+
* Each new language uses a different namespace for hashing its script
|
|
1114
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1115
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1116
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1117
|
+
*/
|
|
1118
|
+
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1102
1119
|
/**
|
|
1103
1120
|
*/
|
|
1104
1121
|
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1105
1122
|
/**
|
|
1123
|
+
*/
|
|
1124
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1125
|
+
/**
|
|
1126
|
+
*/
|
|
1127
|
+
export const TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1128
|
+
/**
|
|
1106
1129
|
* JSON <-> PlutusData conversion schemas.
|
|
1107
1130
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
1108
1131
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -1155,29 +1178,40 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1155
1178
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1156
1179
|
/**
|
|
1157
1180
|
*/
|
|
1158
|
-
export const
|
|
1181
|
+
export const AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
|
|
1182
|
+
/**
|
|
1183
|
+
*/
|
|
1184
|
+
export const NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
|
|
1159
1185
|
/**
|
|
1160
1186
|
*/
|
|
1161
1187
|
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1162
1188
|
/**
|
|
1163
1189
|
*/
|
|
1164
|
-
export const
|
|
1190
|
+
export const RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
|
|
1165
1191
|
/**
|
|
1166
1192
|
*/
|
|
1167
1193
|
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1168
1194
|
/**
|
|
1169
1195
|
*/
|
|
1196
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1197
|
+
/**
|
|
1198
|
+
*/
|
|
1199
|
+
export const GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
|
|
1200
|
+
/**
|
|
1201
|
+
*/
|
|
1170
1202
|
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1171
1203
|
/**
|
|
1172
1204
|
*/
|
|
1173
|
-
export const
|
|
1205
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1174
1206
|
/**
|
|
1175
|
-
* Used to choosed the schema for a script JSON string
|
|
1176
1207
|
*/
|
|
1177
|
-
export const
|
|
1208
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1178
1209
|
/**
|
|
1179
1210
|
*/
|
|
1180
|
-
export const
|
|
1211
|
+
export const CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
|
|
1212
|
+
/**
|
|
1213
|
+
*/
|
|
1214
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1181
1215
|
/**
|
|
1182
1216
|
*/
|
|
1183
1217
|
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1197,40 +1231,6 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1197
1231
|
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1198
1232
|
*/
|
|
1199
1233
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1200
|
-
/**
|
|
1201
|
-
*/
|
|
1202
|
-
export const TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1203
|
-
/**
|
|
1204
|
-
*/
|
|
1205
|
-
export const RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
|
|
1206
|
-
/**
|
|
1207
|
-
*/
|
|
1208
|
-
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1209
|
-
/**
|
|
1210
|
-
*/
|
|
1211
|
-
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1212
|
-
/**
|
|
1213
|
-
*/
|
|
1214
|
-
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1215
|
-
/**
|
|
1216
|
-
* Each new language uses a different namespace for hashing its script
|
|
1217
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1218
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1219
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1220
|
-
*/
|
|
1221
|
-
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1222
|
-
/**
|
|
1223
|
-
*/
|
|
1224
|
-
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1225
|
-
/**
|
|
1226
|
-
*/
|
|
1227
|
-
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1228
|
-
/**
|
|
1229
|
-
*/
|
|
1230
|
-
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1231
|
-
/**
|
|
1232
|
-
*/
|
|
1233
|
-
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1234
1234
|
|
|
1235
1235
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1236
1236
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -39069,6 +39069,11 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
|
39069
39069
|
return addHeapObject(ret);
|
|
39070
39070
|
};
|
|
39071
39071
|
|
|
39072
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
39073
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39074
|
+
return addHeapObject(ret);
|
|
39075
|
+
};
|
|
39076
|
+
|
|
39072
39077
|
export function __wbindgen_is_undefined(arg0) {
|
|
39073
39078
|
const ret = getObject(arg0) === undefined;
|
|
39074
39079
|
return ret;
|
|
@@ -39114,11 +39119,6 @@ export function __wbindgen_is_object(arg0) {
|
|
|
39114
39119
|
return ret;
|
|
39115
39120
|
};
|
|
39116
39121
|
|
|
39117
|
-
export function __wbindgen_error_new(arg0, arg1) {
|
|
39118
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39119
|
-
return addHeapObject(ret);
|
|
39120
|
-
};
|
|
39121
|
-
|
|
39122
39122
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
39123
39123
|
const ret = getObject(arg0);
|
|
39124
39124
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -6,12 +6,12 @@ export function decode_specific_type(a: number, b: number, c: number, d: number,
|
|
|
6
6
|
export function get_possible_types_for_input(a: number, b: number, c: number): void;
|
|
7
7
|
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
8
8
|
export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
|
|
9
|
+
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
10
|
+
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
11
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
10
12
|
export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
|
|
11
13
|
export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
|
|
12
14
|
export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
|
|
13
|
-
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
14
|
-
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
15
15
|
export function __wbg_noconfidenceaction_free(a: number): void;
|
|
16
16
|
export function noconfidenceaction_to_bytes(a: number, b: number): void;
|
|
17
17
|
export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
|
package/node/cquisitor_lib.js
CHANGED
|
@@ -329,39 +329,17 @@ module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
|
329
329
|
};
|
|
330
330
|
|
|
331
331
|
/**
|
|
332
|
-
* @param {string}
|
|
333
|
-
* @returns {any}
|
|
334
|
-
*/
|
|
335
|
-
module.exports.decode_plutus_program_uplc_json = function(hex) {
|
|
336
|
-
try {
|
|
337
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
338
|
-
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
339
|
-
const len0 = WASM_VECTOR_LEN;
|
|
340
|
-
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
341
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
342
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
343
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
344
|
-
if (r2) {
|
|
345
|
-
throw takeObject(r1);
|
|
346
|
-
}
|
|
347
|
-
return takeObject(r0);
|
|
348
|
-
} finally {
|
|
349
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @param {string} hex
|
|
332
|
+
* @param {string} tx_hex
|
|
355
333
|
* @returns {string}
|
|
356
334
|
*/
|
|
357
|
-
module.exports.
|
|
335
|
+
module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
358
336
|
let deferred3_0;
|
|
359
337
|
let deferred3_1;
|
|
360
338
|
try {
|
|
361
339
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
362
|
-
const ptr0 = passStringToWasm0(
|
|
340
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
363
341
|
const len0 = WASM_VECTOR_LEN;
|
|
364
|
-
wasm.
|
|
342
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
365
343
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
366
344
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
367
345
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -383,41 +361,48 @@ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
|
|
|
383
361
|
|
|
384
362
|
/**
|
|
385
363
|
* @param {string} tx_hex
|
|
386
|
-
* @
|
|
364
|
+
* @param {string} validation_context
|
|
365
|
+
* @returns {string}
|
|
387
366
|
*/
|
|
388
|
-
module.exports.
|
|
367
|
+
module.exports.validate_transaction_js = function(tx_hex, validation_context) {
|
|
368
|
+
let deferred4_0;
|
|
369
|
+
let deferred4_1;
|
|
389
370
|
try {
|
|
390
371
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
391
372
|
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
392
373
|
const len0 = WASM_VECTOR_LEN;
|
|
393
|
-
|
|
374
|
+
const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
375
|
+
const len1 = WASM_VECTOR_LEN;
|
|
376
|
+
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
394
377
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
395
378
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
396
379
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
397
380
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
381
|
+
var ptr3 = r0;
|
|
382
|
+
var len3 = r1;
|
|
398
383
|
if (r3) {
|
|
384
|
+
ptr3 = 0; len3 = 0;
|
|
399
385
|
throw takeObject(r2);
|
|
400
386
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
return
|
|
387
|
+
deferred4_0 = ptr3;
|
|
388
|
+
deferred4_1 = len3;
|
|
389
|
+
return getStringFromWasm0(ptr3, len3);
|
|
404
390
|
} finally {
|
|
405
391
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
392
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
406
393
|
}
|
|
407
394
|
};
|
|
408
395
|
|
|
409
396
|
/**
|
|
410
|
-
* @param {string}
|
|
411
|
-
* @param {any} utxo_json
|
|
412
|
-
* @param {any} cost_models_json
|
|
397
|
+
* @param {string} hex
|
|
413
398
|
* @returns {any}
|
|
414
399
|
*/
|
|
415
|
-
module.exports.
|
|
400
|
+
module.exports.decode_plutus_program_uplc_json = function(hex) {
|
|
416
401
|
try {
|
|
417
402
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
418
|
-
const ptr0 = passStringToWasm0(
|
|
403
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
419
404
|
const len0 = WASM_VECTOR_LEN;
|
|
420
|
-
wasm.
|
|
405
|
+
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
421
406
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
422
407
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
423
408
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -431,17 +416,17 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
|
|
|
431
416
|
};
|
|
432
417
|
|
|
433
418
|
/**
|
|
434
|
-
* @param {string}
|
|
419
|
+
* @param {string} hex
|
|
435
420
|
* @returns {string}
|
|
436
421
|
*/
|
|
437
|
-
module.exports.
|
|
422
|
+
module.exports.decode_plutus_program_pretty_uplc = function(hex) {
|
|
438
423
|
let deferred3_0;
|
|
439
424
|
let deferred3_1;
|
|
440
425
|
try {
|
|
441
426
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
442
|
-
const ptr0 = passStringToWasm0(
|
|
427
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
443
428
|
const len0 = WASM_VECTOR_LEN;
|
|
444
|
-
wasm.
|
|
429
|
+
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
445
430
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
446
431
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
447
432
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -463,35 +448,50 @@ module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
|
463
448
|
|
|
464
449
|
/**
|
|
465
450
|
* @param {string} tx_hex
|
|
466
|
-
* @
|
|
467
|
-
* @returns {string}
|
|
451
|
+
* @returns {(string)[]}
|
|
468
452
|
*/
|
|
469
|
-
module.exports.
|
|
470
|
-
let deferred4_0;
|
|
471
|
-
let deferred4_1;
|
|
453
|
+
module.exports.get_utxo_list_from_tx = function(tx_hex) {
|
|
472
454
|
try {
|
|
473
455
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
474
456
|
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
475
457
|
const len0 = WASM_VECTOR_LEN;
|
|
476
|
-
|
|
477
|
-
const len1 = WASM_VECTOR_LEN;
|
|
478
|
-
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
458
|
+
wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
|
|
479
459
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
480
460
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
481
461
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
482
462
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
483
|
-
var ptr3 = r0;
|
|
484
|
-
var len3 = r1;
|
|
485
463
|
if (r3) {
|
|
486
|
-
ptr3 = 0; len3 = 0;
|
|
487
464
|
throw takeObject(r2);
|
|
488
465
|
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
return
|
|
466
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
467
|
+
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
468
|
+
return v2;
|
|
469
|
+
} finally {
|
|
470
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @param {string} tx_hex
|
|
476
|
+
* @param {any} utxo_json
|
|
477
|
+
* @param {any} cost_models_json
|
|
478
|
+
* @returns {any}
|
|
479
|
+
*/
|
|
480
|
+
module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json) {
|
|
481
|
+
try {
|
|
482
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
483
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
484
|
+
const len0 = WASM_VECTOR_LEN;
|
|
485
|
+
wasm.execute_tx_scripts(retptr, ptr0, len0, addHeapObject(utxo_json), addHeapObject(cost_models_json));
|
|
486
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
487
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
488
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
489
|
+
if (r2) {
|
|
490
|
+
throw takeObject(r1);
|
|
491
|
+
}
|
|
492
|
+
return takeObject(r0);
|
|
492
493
|
} finally {
|
|
493
494
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
494
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
|
|
@@ -1081,41 +1081,16 @@ function handleError(f, args) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
/**
|
|
1083
1083
|
*/
|
|
1084
|
-
module.exports.
|
|
1085
|
-
/**
|
|
1086
|
-
*/
|
|
1087
|
-
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1088
|
-
/**
|
|
1089
|
-
*/
|
|
1090
|
-
module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1091
|
-
/**
|
|
1092
|
-
*/
|
|
1093
|
-
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1094
|
-
/**
|
|
1095
|
-
*/
|
|
1096
|
-
module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
|
|
1097
|
-
/**
|
|
1098
|
-
*/
|
|
1099
|
-
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1100
|
-
/**
|
|
1101
|
-
*/
|
|
1102
|
-
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1103
|
-
/**
|
|
1104
|
-
*/
|
|
1105
|
-
module.exports.GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
|
|
1106
|
-
/**
|
|
1107
|
-
*/
|
|
1108
|
-
module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
1084
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1109
1085
|
/**
|
|
1110
1086
|
*/
|
|
1111
1087
|
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1112
1088
|
/**
|
|
1113
1089
|
*/
|
|
1114
|
-
module.exports.
|
|
1090
|
+
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1115
1091
|
/**
|
|
1116
|
-
* Used to choosed the schema for a script JSON string
|
|
1117
1092
|
*/
|
|
1118
|
-
module.exports.
|
|
1093
|
+
module.exports.GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
|
|
1119
1094
|
/**
|
|
1120
1095
|
*/
|
|
1121
1096
|
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1137,25 +1112,22 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1137
1112
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1138
1113
|
/**
|
|
1139
1114
|
*/
|
|
1140
|
-
module.exports.
|
|
1141
|
-
/**
|
|
1142
|
-
*/
|
|
1143
|
-
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1115
|
+
module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
1144
1116
|
/**
|
|
1145
1117
|
*/
|
|
1146
|
-
module.exports.
|
|
1118
|
+
module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
|
|
1147
1119
|
/**
|
|
1148
1120
|
*/
|
|
1149
|
-
module.exports.
|
|
1121
|
+
module.exports.CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
|
|
1150
1122
|
/**
|
|
1151
1123
|
*/
|
|
1152
|
-
module.exports.
|
|
1124
|
+
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1153
1125
|
/**
|
|
1154
1126
|
*/
|
|
1155
|
-
module.exports.
|
|
1127
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1156
1128
|
/**
|
|
1157
1129
|
*/
|
|
1158
|
-
module.exports.
|
|
1130
|
+
module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
1159
1131
|
/**
|
|
1160
1132
|
* JSON <-> PlutusData conversion schemas.
|
|
1161
1133
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1209,16 +1181,10 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1209
1181
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1210
1182
|
/**
|
|
1211
1183
|
*/
|
|
1212
|
-
module.exports.
|
|
1213
|
-
/**
|
|
1214
|
-
*/
|
|
1215
|
-
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1216
|
-
/**
|
|
1217
|
-
*/
|
|
1218
|
-
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1184
|
+
module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1219
1185
|
/**
|
|
1220
1186
|
*/
|
|
1221
|
-
module.exports.
|
|
1187
|
+
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1222
1188
|
/**
|
|
1223
1189
|
* Each new language uses a different namespace for hashing its script
|
|
1224
1190
|
* This is because you could have a language where the same bytes have different semantics
|
|
@@ -1226,6 +1192,40 @@ module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubk
|
|
|
1226
1192
|
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1227
1193
|
*/
|
|
1228
1194
|
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1195
|
+
/**
|
|
1196
|
+
*/
|
|
1197
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1198
|
+
/**
|
|
1199
|
+
*/
|
|
1200
|
+
module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
|
|
1201
|
+
/**
|
|
1202
|
+
*/
|
|
1203
|
+
module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
|
|
1204
|
+
/**
|
|
1205
|
+
*/
|
|
1206
|
+
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1207
|
+
/**
|
|
1208
|
+
*/
|
|
1209
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1210
|
+
/**
|
|
1211
|
+
*/
|
|
1212
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1213
|
+
/**
|
|
1214
|
+
* Used to choosed the schema for a script JSON string
|
|
1215
|
+
*/
|
|
1216
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1217
|
+
/**
|
|
1218
|
+
*/
|
|
1219
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1220
|
+
/**
|
|
1221
|
+
*/
|
|
1222
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1223
|
+
/**
|
|
1224
|
+
*/
|
|
1225
|
+
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1226
|
+
/**
|
|
1227
|
+
*/
|
|
1228
|
+
module.exports.RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
|
|
1229
1229
|
|
|
1230
1230
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1231
1231
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -39261,6 +39261,11 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
39261
39261
|
return addHeapObject(ret);
|
|
39262
39262
|
};
|
|
39263
39263
|
|
|
39264
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
39265
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39266
|
+
return addHeapObject(ret);
|
|
39267
|
+
};
|
|
39268
|
+
|
|
39264
39269
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
39265
39270
|
const ret = getObject(arg0) === undefined;
|
|
39266
39271
|
return ret;
|
|
@@ -39306,11 +39311,6 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
39306
39311
|
return ret;
|
|
39307
39312
|
};
|
|
39308
39313
|
|
|
39309
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
39310
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39311
|
-
return addHeapObject(ret);
|
|
39312
|
-
};
|
|
39313
|
-
|
|
39314
39314
|
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
39315
39315
|
const ret = getObject(arg0);
|
|
39316
39316
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -6,12 +6,12 @@ export function decode_specific_type(a: number, b: number, c: number, d: number,
|
|
|
6
6
|
export function get_possible_types_for_input(a: number, b: number, c: number): void;
|
|
7
7
|
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
8
8
|
export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
|
|
9
|
+
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
10
|
+
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
11
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
10
12
|
export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
|
|
11
13
|
export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
|
|
12
14
|
export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
|
|
13
|
-
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
14
|
-
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
15
15
|
export function __wbg_noconfidenceaction_free(a: number): void;
|
|
16
16
|
export function noconfidenceaction_to_bytes(a: number, b: number): void;
|
|
17
17
|
export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
|