@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.
@@ -329,17 +329,39 @@ module.exports.check_block_or_tx_signatures = function(hex_str) {
329
329
  };
330
330
 
331
331
  /**
332
- * @param {string} tx_hex
332
+ * @param {string} hex
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
333
355
  * @returns {string}
334
356
  */
335
- module.exports.get_necessary_data_list_js = function(tx_hex) {
357
+ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
336
358
  let deferred3_0;
337
359
  let deferred3_1;
338
360
  try {
339
361
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
340
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
362
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
341
363
  const len0 = WASM_VECTOR_LEN;
342
- wasm.get_necessary_data_list_js(retptr, ptr0, len0);
364
+ wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
343
365
  var r0 = getInt32Memory0()[retptr / 4 + 0];
344
366
  var r1 = getInt32Memory0()[retptr / 4 + 1];
345
367
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -361,48 +383,41 @@ module.exports.get_necessary_data_list_js = function(tx_hex) {
361
383
 
362
384
  /**
363
385
  * @param {string} tx_hex
364
- * @param {string} validation_context
365
- * @returns {string}
386
+ * @returns {(string)[]}
366
387
  */
367
- module.exports.validate_transaction_js = function(tx_hex, validation_context) {
368
- let deferred4_0;
369
- let deferred4_1;
388
+ module.exports.get_utxo_list_from_tx = function(tx_hex) {
370
389
  try {
371
390
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
372
391
  const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
373
392
  const len0 = WASM_VECTOR_LEN;
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);
393
+ wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
377
394
  var r0 = getInt32Memory0()[retptr / 4 + 0];
378
395
  var r1 = getInt32Memory0()[retptr / 4 + 1];
379
396
  var r2 = getInt32Memory0()[retptr / 4 + 2];
380
397
  var r3 = getInt32Memory0()[retptr / 4 + 3];
381
- var ptr3 = r0;
382
- var len3 = r1;
383
398
  if (r3) {
384
- ptr3 = 0; len3 = 0;
385
399
  throw takeObject(r2);
386
400
  }
387
- deferred4_0 = ptr3;
388
- deferred4_1 = len3;
389
- return getStringFromWasm0(ptr3, len3);
401
+ var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
402
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
403
+ return v2;
390
404
  } finally {
391
405
  wasm.__wbindgen_add_to_stack_pointer(16);
392
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
393
406
  }
394
407
  };
395
408
 
396
409
  /**
397
- * @param {string} hex
410
+ * @param {string} tx_hex
411
+ * @param {any} utxo_json
412
+ * @param {any} cost_models_json
398
413
  * @returns {any}
399
414
  */
400
- module.exports.decode_plutus_program_uplc_json = function(hex) {
415
+ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json) {
401
416
  try {
402
417
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
403
- const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
418
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
404
419
  const len0 = WASM_VECTOR_LEN;
405
- wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
420
+ wasm.execute_tx_scripts(retptr, ptr0, len0, addHeapObject(utxo_json), addHeapObject(cost_models_json));
406
421
  var r0 = getInt32Memory0()[retptr / 4 + 0];
407
422
  var r1 = getInt32Memory0()[retptr / 4 + 1];
408
423
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -416,17 +431,17 @@ module.exports.decode_plutus_program_uplc_json = function(hex) {
416
431
  };
417
432
 
418
433
  /**
419
- * @param {string} hex
434
+ * @param {string} tx_hex
420
435
  * @returns {string}
421
436
  */
422
- module.exports.decode_plutus_program_pretty_uplc = function(hex) {
437
+ module.exports.get_necessary_data_list_js = function(tx_hex) {
423
438
  let deferred3_0;
424
439
  let deferred3_1;
425
440
  try {
426
441
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
427
- const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
442
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
428
443
  const len0 = WASM_VECTOR_LEN;
429
- wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
444
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
430
445
  var r0 = getInt32Memory0()[retptr / 4 + 0];
431
446
  var r1 = getInt32Memory0()[retptr / 4 + 1];
432
447
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -448,50 +463,35 @@ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
448
463
 
449
464
  /**
450
465
  * @param {string} tx_hex
451
- * @returns {(string)[]}
466
+ * @param {string} validation_context
467
+ * @returns {string}
452
468
  */
453
- module.exports.get_utxo_list_from_tx = function(tx_hex) {
469
+ module.exports.validate_transaction_js = function(tx_hex, validation_context) {
470
+ let deferred4_0;
471
+ let deferred4_1;
454
472
  try {
455
473
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
456
474
  const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
457
475
  const len0 = WASM_VECTOR_LEN;
458
- wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
476
+ const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
477
+ const len1 = WASM_VECTOR_LEN;
478
+ wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
459
479
  var r0 = getInt32Memory0()[retptr / 4 + 0];
460
480
  var r1 = getInt32Memory0()[retptr / 4 + 1];
461
481
  var r2 = getInt32Memory0()[retptr / 4 + 2];
462
482
  var r3 = getInt32Memory0()[retptr / 4 + 3];
483
+ var ptr3 = r0;
484
+ var len3 = r1;
463
485
  if (r3) {
486
+ ptr3 = 0; len3 = 0;
464
487
  throw takeObject(r2);
465
488
  }
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);
489
+ deferred4_0 = ptr3;
490
+ deferred4_1 = len3;
491
+ return getStringFromWasm0(ptr3, len3);
493
492
  } finally {
494
493
  wasm.__wbindgen_add_to_stack_pointer(16);
494
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
495
495
  }
496
496
  };
497
497
 
@@ -1081,66 +1081,54 @@ function handleError(f, args) {
1081
1081
  }
1082
1082
  /**
1083
1083
  */
1084
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1084
+ 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", });
1085
1085
  /**
1086
+ * Each new language uses a different namespace for hashing its script
1087
+ * This is because you could have a language where the same bytes have different semantics
1088
+ * So this avoids scripts in different languages mapping to the same hash
1089
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1086
1090
  */
1087
- 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", });
1091
+ module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1088
1092
  /**
1089
1093
  */
1090
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1094
+ 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", });
1091
1095
  /**
1092
1096
  */
1093
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1097
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1094
1098
  /**
1095
1099
  */
1096
1100
  module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1097
1101
  /**
1098
- * Used to choosed the schema for a script JSON string
1099
- */
1100
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1101
- /**
1102
- */
1103
- module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1104
- /**
1105
- */
1106
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1107
- /**
1108
- */
1109
- 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", });
1110
- /**
1111
- */
1112
- module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1113
- /**
1114
1102
  */
1115
- module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1103
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1116
1104
  /**
1117
1105
  */
1118
- 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", });
1106
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1119
1107
  /**
1108
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1120
1109
  */
1121
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1110
+ LargestFirst:0,"0":"LargestFirst",
1122
1111
  /**
1112
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1123
1113
  */
1124
- 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", });
1114
+ RandomImprove:1,"1":"RandomImprove",
1125
1115
  /**
1116
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1126
1117
  */
1127
- 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", });
1118
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1128
1119
  /**
1120
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1129
1121
  */
1130
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1122
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1131
1123
  /**
1132
- * Each new language uses a different namespace for hashing its script
1133
- * This is because you could have a language where the same bytes have different semantics
1134
- * So this avoids scripts in different languages mapping to the same hash
1135
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1136
1124
  */
1137
- module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1125
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1138
1126
  /**
1139
1127
  */
1140
- 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", });
1128
+ 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", });
1141
1129
  /**
1142
1130
  */
1143
- 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", });
1131
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1144
1132
  /**
1145
1133
  * JSON <-> PlutusData conversion schemas.
1146
1134
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1194,38 +1182,50 @@ BasicConversions:0,"0":"BasicConversions",
1194
1182
  DetailedSchema:1,"1":"DetailedSchema", });
1195
1183
  /**
1196
1184
  */
1197
- 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", });
1185
+ 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", });
1198
1186
  /**
1199
1187
  */
1200
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1188
+ 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
1189
  /**
1202
1190
  */
1203
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1191
+ 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", });
1204
1192
  /**
1205
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1206
1193
  */
1207
- LargestFirst:0,"0":"LargestFirst",
1194
+ module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1208
1195
  /**
1209
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1210
1196
  */
1211
- RandomImprove:1,"1":"RandomImprove",
1197
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1212
1198
  /**
1213
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1214
1199
  */
1215
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1200
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1216
1201
  /**
1217
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1218
1202
  */
1219
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1203
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1204
+ /**
1205
+ */
1206
+ 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", });
1207
+ /**
1208
+ * Used to choosed the schema for a script JSON string
1209
+ */
1210
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1211
+ /**
1212
+ */
1213
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1214
+ /**
1215
+ */
1216
+ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1220
1217
  /**
1221
1218
  */
1222
1219
  module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1223
1220
  /**
1224
1221
  */
1225
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1222
+ 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", });
1226
1223
  /**
1227
1224
  */
1228
- 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", });
1225
+ 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", });
1226
+ /**
1227
+ */
1228
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1229
1229
 
1230
1230
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1231
1231
  ? { register: () => {}, unregister: () => {} }
@@ -39261,11 +39261,6 @@ 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
-
39269
39264
  module.exports.__wbindgen_is_undefined = function(arg0) {
39270
39265
  const ret = getObject(arg0) === undefined;
39271
39266
  return ret;
@@ -39311,6 +39306,11 @@ module.exports.__wbindgen_is_object = function(arg0) {
39311
39306
  return ret;
39312
39307
  };
39313
39308
 
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;
11
9
  export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
12
10
  export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
13
11
  export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
14
12
  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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "Evgenii Lisitskii <evgeniilisitskii@gmail.com>"
5
5
  ],
6
- "version": "0.1.0-beta.21",
6
+ "version": "0.1.0-beta.23",
7
7
  "files": [
8
8
  "node/cquisitor_lib_bg.wasm",
9
9
  "node/cquisitor_lib.js",