@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.
@@ -334,17 +334,39 @@ export function check_block_or_tx_signatures(hex_str) {
334
334
  }
335
335
 
336
336
  /**
337
- * @param {string} tx_hex
337
+ * @param {string} hex
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
338
360
  * @returns {string}
339
361
  */
340
- export function get_necessary_data_list_js(tx_hex) {
362
+ export function decode_plutus_program_pretty_uplc(hex) {
341
363
  let deferred3_0;
342
364
  let deferred3_1;
343
365
  try {
344
366
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
345
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
367
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
346
368
  const len0 = WASM_VECTOR_LEN;
347
- wasm.get_necessary_data_list_js(retptr, ptr0, len0);
369
+ wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
348
370
  var r0 = getInt32Memory0()[retptr / 4 + 0];
349
371
  var r1 = getInt32Memory0()[retptr / 4 + 1];
350
372
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -366,48 +388,41 @@ export function get_necessary_data_list_js(tx_hex) {
366
388
 
367
389
  /**
368
390
  * @param {string} tx_hex
369
- * @param {string} validation_context
370
- * @returns {string}
391
+ * @returns {(string)[]}
371
392
  */
372
- export function validate_transaction_js(tx_hex, validation_context) {
373
- let deferred4_0;
374
- let deferred4_1;
393
+ export function get_utxo_list_from_tx(tx_hex) {
375
394
  try {
376
395
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
377
396
  const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
378
397
  const len0 = WASM_VECTOR_LEN;
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);
398
+ wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
382
399
  var r0 = getInt32Memory0()[retptr / 4 + 0];
383
400
  var r1 = getInt32Memory0()[retptr / 4 + 1];
384
401
  var r2 = getInt32Memory0()[retptr / 4 + 2];
385
402
  var r3 = getInt32Memory0()[retptr / 4 + 3];
386
- var ptr3 = r0;
387
- var len3 = r1;
388
403
  if (r3) {
389
- ptr3 = 0; len3 = 0;
390
404
  throw takeObject(r2);
391
405
  }
392
- deferred4_0 = ptr3;
393
- deferred4_1 = len3;
394
- return getStringFromWasm0(ptr3, len3);
406
+ var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
407
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
408
+ return v2;
395
409
  } finally {
396
410
  wasm.__wbindgen_add_to_stack_pointer(16);
397
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
398
411
  }
399
412
  }
400
413
 
401
414
  /**
402
- * @param {string} hex
415
+ * @param {string} tx_hex
416
+ * @param {any} utxo_json
417
+ * @param {any} cost_models_json
403
418
  * @returns {any}
404
419
  */
405
- export function decode_plutus_program_uplc_json(hex) {
420
+ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
406
421
  try {
407
422
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
408
- const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
423
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
409
424
  const len0 = WASM_VECTOR_LEN;
410
- wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
425
+ wasm.execute_tx_scripts(retptr, ptr0, len0, addHeapObject(utxo_json), addHeapObject(cost_models_json));
411
426
  var r0 = getInt32Memory0()[retptr / 4 + 0];
412
427
  var r1 = getInt32Memory0()[retptr / 4 + 1];
413
428
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -421,17 +436,17 @@ export function decode_plutus_program_uplc_json(hex) {
421
436
  }
422
437
 
423
438
  /**
424
- * @param {string} hex
439
+ * @param {string} tx_hex
425
440
  * @returns {string}
426
441
  */
427
- export function decode_plutus_program_pretty_uplc(hex) {
442
+ export function get_necessary_data_list_js(tx_hex) {
428
443
  let deferred3_0;
429
444
  let deferred3_1;
430
445
  try {
431
446
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
432
- const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
447
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
433
448
  const len0 = WASM_VECTOR_LEN;
434
- wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
449
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
435
450
  var r0 = getInt32Memory0()[retptr / 4 + 0];
436
451
  var r1 = getInt32Memory0()[retptr / 4 + 1];
437
452
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -453,50 +468,35 @@ export function decode_plutus_program_pretty_uplc(hex) {
453
468
 
454
469
  /**
455
470
  * @param {string} tx_hex
456
- * @returns {(string)[]}
471
+ * @param {string} validation_context
472
+ * @returns {string}
457
473
  */
458
- export function get_utxo_list_from_tx(tx_hex) {
474
+ export function validate_transaction_js(tx_hex, validation_context) {
475
+ let deferred4_0;
476
+ let deferred4_1;
459
477
  try {
460
478
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
461
479
  const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
462
480
  const len0 = WASM_VECTOR_LEN;
463
- wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
481
+ const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
482
+ const len1 = WASM_VECTOR_LEN;
483
+ wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
464
484
  var r0 = getInt32Memory0()[retptr / 4 + 0];
465
485
  var r1 = getInt32Memory0()[retptr / 4 + 1];
466
486
  var r2 = getInt32Memory0()[retptr / 4 + 2];
467
487
  var r3 = getInt32Memory0()[retptr / 4 + 3];
488
+ var ptr3 = r0;
489
+ var len3 = r1;
468
490
  if (r3) {
491
+ ptr3 = 0; len3 = 0;
469
492
  throw takeObject(r2);
470
493
  }
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);
494
+ deferred4_0 = ptr3;
495
+ deferred4_1 = len3;
496
+ return getStringFromWasm0(ptr3, len3);
498
497
  } finally {
499
498
  wasm.__wbindgen_add_to_stack_pointer(16);
499
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
500
500
  }
501
501
  }
502
502
 
@@ -1086,100 +1086,38 @@ function handleError(f, args) {
1086
1086
  }
1087
1087
  /**
1088
1088
  */
1089
- 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", });
1090
- /**
1091
- */
1092
- export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1089
+ 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", });
1093
1090
  /**
1094
1091
  */
1095
- export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1092
+ export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1096
1093
  /**
1097
1094
  */
1098
- 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", });
1095
+ 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", });
1099
1096
  /**
1100
1097
  */
1101
- export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1098
+ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1102
1099
  /**
1103
1100
  */
1104
- export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1101
+ 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", });
1105
1102
  /**
1106
1103
  */
1107
- export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1104
+ export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1108
1105
  /**
1109
1106
  * Used to choosed the schema for a script JSON string
1110
1107
  */
1111
1108
  export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1112
1109
  /**
1113
1110
  */
1114
- 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", });
1111
+ export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1115
1112
  /**
1116
1113
  */
1117
1114
  export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1118
1115
  /**
1119
1116
  */
1120
- export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1121
- /**
1122
- * Each new language uses a different namespace for hashing its script
1123
- * This is because you could have a language where the same bytes have different semantics
1124
- * So this avoids scripts in different languages mapping to the same hash
1125
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1126
- */
1127
- export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1128
- /**
1129
- */
1130
- export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1131
- /**
1132
- */
1133
- 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", });
1134
- /**
1135
- */
1136
- 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", });
1137
- /**
1138
- */
1139
- export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1140
- /**
1141
- */
1142
- 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", });
1143
- /**
1144
- */
1145
- export const CoinSelectionStrategyCIP2 = Object.freeze({
1146
- /**
1147
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1148
- */
1149
- LargestFirst:0,"0":"LargestFirst",
1150
- /**
1151
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1152
- */
1153
- RandomImprove:1,"1":"RandomImprove",
1154
- /**
1155
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1156
- */
1157
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1158
- /**
1159
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1160
- */
1161
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1162
- /**
1163
- */
1164
1117
  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", });
1165
1118
  /**
1166
1119
  */
1167
- export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1168
- /**
1169
- */
1170
- export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1171
- /**
1172
- */
1173
- 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", });
1174
- /**
1175
- */
1176
- 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", });
1177
- /**
1178
- */
1179
- export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1180
- /**
1181
- */
1182
- export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1120
+ 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", });
1183
1121
  /**
1184
1122
  * JSON <-> PlutusData conversion schemas.
1185
1123
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1231,6 +1169,68 @@ BasicConversions:0,"0":"BasicConversions",
1231
1169
  * * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
1232
1170
  */
1233
1171
  DetailedSchema:1,"1":"DetailedSchema", });
1172
+ /**
1173
+ */
1174
+ export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1175
+ /**
1176
+ */
1177
+ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1178
+ /**
1179
+ */
1180
+ 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", });
1181
+ /**
1182
+ */
1183
+ export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1184
+ /**
1185
+ */
1186
+ export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1187
+ /**
1188
+ */
1189
+ export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1190
+ /**
1191
+ * Each new language uses a different namespace for hashing its script
1192
+ * This is because you could have a language where the same bytes have different semantics
1193
+ * So this avoids scripts in different languages mapping to the same hash
1194
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1195
+ */
1196
+ export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1197
+ /**
1198
+ */
1199
+ export const CoinSelectionStrategyCIP2 = Object.freeze({
1200
+ /**
1201
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1202
+ */
1203
+ LargestFirst:0,"0":"LargestFirst",
1204
+ /**
1205
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1206
+ */
1207
+ RandomImprove:1,"1":"RandomImprove",
1208
+ /**
1209
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1210
+ */
1211
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1212
+ /**
1213
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1214
+ */
1215
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1216
+ /**
1217
+ */
1218
+ 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", });
1219
+ /**
1220
+ */
1221
+ 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", });
1222
+ /**
1223
+ */
1224
+ export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1225
+ /**
1226
+ */
1227
+ export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1228
+ /**
1229
+ */
1230
+ export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1231
+ /**
1232
+ */
1233
+ 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", });
1234
1234
 
1235
1235
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1236
1236
  ? { register: () => {}, unregister: () => {} }
@@ -39069,11 +39069,6 @@ 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
-
39077
39072
  export function __wbindgen_is_undefined(arg0) {
39078
39073
  const ret = getObject(arg0) === undefined;
39079
39074
  return ret;
@@ -39119,6 +39114,11 @@ export function __wbindgen_is_object(arg0) {
39119
39114
  return ret;
39120
39115
  };
39121
39116
 
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;
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;