@cardananium/cquisitor-lib 0.1.0-beta.17 → 0.1.0-beta.18

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.
@@ -289,6 +289,50 @@ export function get_possible_types_for_input(input) {
289
289
  }
290
290
  }
291
291
 
292
+ /**
293
+ * @param {string} cbor_hex
294
+ * @returns {any}
295
+ */
296
+ export function cbor_to_json(cbor_hex) {
297
+ try {
298
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
299
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
300
+ const len0 = WASM_VECTOR_LEN;
301
+ wasm.cbor_to_json(retptr, ptr0, len0);
302
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
303
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
304
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
305
+ if (r2) {
306
+ throw takeObject(r1);
307
+ }
308
+ return takeObject(r0);
309
+ } finally {
310
+ wasm.__wbindgen_add_to_stack_pointer(16);
311
+ }
312
+ }
313
+
314
+ /**
315
+ * @param {string} hex_str
316
+ * @returns {any}
317
+ */
318
+ export function check_block_or_tx_signatures(hex_str) {
319
+ try {
320
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
321
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
+ const len0 = WASM_VECTOR_LEN;
323
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
324
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
325
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
326
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
327
+ if (r2) {
328
+ throw takeObject(r1);
329
+ }
330
+ return takeObject(r0);
331
+ } finally {
332
+ wasm.__wbindgen_add_to_stack_pointer(16);
333
+ }
334
+ }
335
+
292
336
  /**
293
337
  * @param {string} hex
294
338
  * @returns {any}
@@ -424,77 +468,35 @@ export function get_necessary_data_list_js(tx_hex) {
424
468
 
425
469
  /**
426
470
  * @param {string} tx_hex
427
- * @param {any} validation_context
471
+ * @param {string} validation_context
428
472
  * @returns {string}
429
473
  */
430
474
  export function validate_transaction_js(tx_hex, validation_context) {
431
- let deferred3_0;
432
- let deferred3_1;
475
+ let deferred4_0;
476
+ let deferred4_1;
433
477
  try {
434
478
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
435
479
  const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
436
480
  const len0 = WASM_VECTOR_LEN;
437
- wasm.validate_transaction_js(retptr, ptr0, len0, addHeapObject(validation_context));
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);
438
484
  var r0 = getInt32Memory0()[retptr / 4 + 0];
439
485
  var r1 = getInt32Memory0()[retptr / 4 + 1];
440
486
  var r2 = getInt32Memory0()[retptr / 4 + 2];
441
487
  var r3 = getInt32Memory0()[retptr / 4 + 3];
442
- var ptr2 = r0;
443
- var len2 = r1;
488
+ var ptr3 = r0;
489
+ var len3 = r1;
444
490
  if (r3) {
445
- ptr2 = 0; len2 = 0;
491
+ ptr3 = 0; len3 = 0;
446
492
  throw takeObject(r2);
447
493
  }
448
- deferred3_0 = ptr2;
449
- deferred3_1 = len2;
450
- return getStringFromWasm0(ptr2, len2);
451
- } finally {
452
- wasm.__wbindgen_add_to_stack_pointer(16);
453
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
454
- }
455
- }
456
-
457
- /**
458
- * @param {string} cbor_hex
459
- * @returns {any}
460
- */
461
- export function cbor_to_json(cbor_hex) {
462
- try {
463
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
464
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
465
- const len0 = WASM_VECTOR_LEN;
466
- wasm.cbor_to_json(retptr, ptr0, len0);
467
- var r0 = getInt32Memory0()[retptr / 4 + 0];
468
- var r1 = getInt32Memory0()[retptr / 4 + 1];
469
- var r2 = getInt32Memory0()[retptr / 4 + 2];
470
- if (r2) {
471
- throw takeObject(r1);
472
- }
473
- return takeObject(r0);
474
- } finally {
475
- wasm.__wbindgen_add_to_stack_pointer(16);
476
- }
477
- }
478
-
479
- /**
480
- * @param {string} hex_str
481
- * @returns {any}
482
- */
483
- export function check_block_or_tx_signatures(hex_str) {
484
- try {
485
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
486
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
487
- const len0 = WASM_VECTOR_LEN;
488
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
489
- var r0 = getInt32Memory0()[retptr / 4 + 0];
490
- var r1 = getInt32Memory0()[retptr / 4 + 1];
491
- var r2 = getInt32Memory0()[retptr / 4 + 2];
492
- if (r2) {
493
- throw takeObject(r1);
494
- }
495
- return takeObject(r0);
494
+ deferred4_0 = ptr3;
495
+ deferred4_1 = len3;
496
+ return getStringFromWasm0(ptr3, len3);
496
497
  } finally {
497
498
  wasm.__wbindgen_add_to_stack_pointer(16);
499
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
498
500
  }
499
501
  }
500
502
 
@@ -1084,41 +1086,78 @@ function handleError(f, args) {
1084
1086
  }
1085
1087
  /**
1086
1088
  */
1087
- export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1089
+ export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1088
1090
  /**
1089
1091
  */
1090
- export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1092
+ 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", });
1091
1093
  /**
1092
1094
  */
1093
- 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 VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1094
1096
  /**
1095
1097
  */
1096
- 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", });
1098
+ 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
+ /**
1100
+ */
1101
+ export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1102
+ /**
1103
+ */
1104
+ 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", });
1105
+ /**
1106
+ */
1107
+ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1108
+ /**
1109
+ */
1110
+ export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1111
+ /**
1112
+ */
1113
+ export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1114
+ /**
1115
+ */
1116
+ export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1117
+ /**
1118
+ * Each new language uses a different namespace for hashing its script
1119
+ * This is because you could have a language where the same bytes have different semantics
1120
+ * So this avoids scripts in different languages mapping to the same hash
1121
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1122
+ */
1123
+ export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1124
+ /**
1125
+ */
1126
+ 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", });
1097
1127
  /**
1098
1128
  * Used to choosed the schema for a script JSON string
1099
1129
  */
1100
1130
  export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1101
1131
  /**
1102
1132
  */
1103
- 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", });
1133
+ export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1104
1134
  /**
1105
1135
  */
1106
- export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1136
+ 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", });
1107
1137
  /**
1108
1138
  */
1109
- 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", });
1139
+ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1110
1140
  /**
1111
1141
  */
1112
- 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", });
1142
+ 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", });
1143
+ /**
1144
+ */
1145
+ 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", });
1146
+ /**
1147
+ */
1148
+ export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1149
+ /**
1150
+ */
1151
+ 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", });
1113
1152
  /**
1114
1153
  */
1115
1154
  export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1116
1155
  /**
1117
1156
  */
1118
- export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1157
+ export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1119
1158
  /**
1120
1159
  */
1121
- 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", });
1160
+ export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1122
1161
  /**
1123
1162
  * JSON <-> PlutusData conversion schemas.
1124
1163
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1172,16 +1211,7 @@ BasicConversions:0,"0":"BasicConversions",
1172
1211
  DetailedSchema:1,"1":"DetailedSchema", });
1173
1212
  /**
1174
1213
  */
1175
- 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", });
1176
- /**
1177
- */
1178
- export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1179
- /**
1180
- */
1181
- export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1182
- /**
1183
- */
1184
- export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1214
+ 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", });
1185
1215
  /**
1186
1216
  */
1187
1217
  export const CoinSelectionStrategyCIP2 = Object.freeze({
@@ -1201,34 +1231,6 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1201
1231
  * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1202
1232
  */
1203
1233
  RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1204
- /**
1205
- */
1206
- export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1207
- /**
1208
- */
1209
- export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1210
- /**
1211
- * Each new language uses a different namespace for hashing its script
1212
- * This is because you could have a language where the same bytes have different semantics
1213
- * So this avoids scripts in different languages mapping to the same hash
1214
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1215
- */
1216
- export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1217
- /**
1218
- */
1219
- export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1220
- /**
1221
- */
1222
- export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1223
- /**
1224
- */
1225
- 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", });
1226
- /**
1227
- */
1228
- export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1229
- /**
1230
- */
1231
- 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", });
1232
1234
 
1233
1235
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1234
1236
  ? { register: () => {}, unregister: () => {} }
@@ -39092,12 +39094,6 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
39092
39094
  return ret;
39093
39095
  };
39094
39096
 
39095
- export function __wbindgen_boolean_get(arg0) {
39096
- const v = getObject(arg0);
39097
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
39098
- return ret;
39099
- };
39100
-
39101
39097
  export function __wbindgen_is_string(arg0) {
39102
39098
  const ret = typeof(getObject(arg0)) === 'string';
39103
39099
  return ret;
@@ -39133,6 +39129,12 @@ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
39133
39129
  return ret;
39134
39130
  };
39135
39131
 
39132
+ export function __wbindgen_boolean_get(arg0) {
39133
+ const v = getObject(arg0);
39134
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
39135
+ return ret;
39136
+ };
39137
+
39136
39138
  export function __wbindgen_number_get(arg0, arg1) {
39137
39139
  const obj = getObject(arg1);
39138
39140
  const ret = typeof(obj) === 'number' ? obj : undefined;
Binary file
@@ -4,14 +4,14 @@ export const memory: WebAssembly.Memory;
4
4
  export function get_decodable_types(a: number): void;
5
5
  export function decode_specific_type(a: number, b: number, c: number, d: number, e: number, f: number): void;
6
6
  export function get_possible_types_for_input(a: number, b: number, c: number): void;
7
+ export function cbor_to_json(a: number, b: number, c: number): void;
8
+ export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
7
9
  export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
8
10
  export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
9
11
  export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
10
12
  export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
11
13
  export function get_necessary_data_list_js(a: number, b: number, c: number): void;
12
- export function validate_transaction_js(a: number, b: number, c: number, d: number): void;
13
- export function cbor_to_json(a: number, b: number, c: number): void;
14
- export function check_block_or_tx_signatures(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;
@@ -284,6 +284,50 @@ module.exports.get_possible_types_for_input = function(input) {
284
284
  }
285
285
  };
286
286
 
287
+ /**
288
+ * @param {string} cbor_hex
289
+ * @returns {any}
290
+ */
291
+ module.exports.cbor_to_json = function(cbor_hex) {
292
+ try {
293
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
294
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
+ const len0 = WASM_VECTOR_LEN;
296
+ wasm.cbor_to_json(retptr, ptr0, len0);
297
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
298
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
299
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
300
+ if (r2) {
301
+ throw takeObject(r1);
302
+ }
303
+ return takeObject(r0);
304
+ } finally {
305
+ wasm.__wbindgen_add_to_stack_pointer(16);
306
+ }
307
+ };
308
+
309
+ /**
310
+ * @param {string} hex_str
311
+ * @returns {any}
312
+ */
313
+ module.exports.check_block_or_tx_signatures = function(hex_str) {
314
+ try {
315
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
316
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
317
+ const len0 = WASM_VECTOR_LEN;
318
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
319
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
320
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
321
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
322
+ if (r2) {
323
+ throw takeObject(r1);
324
+ }
325
+ return takeObject(r0);
326
+ } finally {
327
+ wasm.__wbindgen_add_to_stack_pointer(16);
328
+ }
329
+ };
330
+
287
331
  /**
288
332
  * @param {string} hex
289
333
  * @returns {any}
@@ -419,77 +463,35 @@ module.exports.get_necessary_data_list_js = function(tx_hex) {
419
463
 
420
464
  /**
421
465
  * @param {string} tx_hex
422
- * @param {any} validation_context
466
+ * @param {string} validation_context
423
467
  * @returns {string}
424
468
  */
425
469
  module.exports.validate_transaction_js = function(tx_hex, validation_context) {
426
- let deferred3_0;
427
- let deferred3_1;
470
+ let deferred4_0;
471
+ let deferred4_1;
428
472
  try {
429
473
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
430
474
  const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
431
475
  const len0 = WASM_VECTOR_LEN;
432
- wasm.validate_transaction_js(retptr, ptr0, len0, addHeapObject(validation_context));
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);
433
479
  var r0 = getInt32Memory0()[retptr / 4 + 0];
434
480
  var r1 = getInt32Memory0()[retptr / 4 + 1];
435
481
  var r2 = getInt32Memory0()[retptr / 4 + 2];
436
482
  var r3 = getInt32Memory0()[retptr / 4 + 3];
437
- var ptr2 = r0;
438
- var len2 = r1;
483
+ var ptr3 = r0;
484
+ var len3 = r1;
439
485
  if (r3) {
440
- ptr2 = 0; len2 = 0;
486
+ ptr3 = 0; len3 = 0;
441
487
  throw takeObject(r2);
442
488
  }
443
- deferred3_0 = ptr2;
444
- deferred3_1 = len2;
445
- return getStringFromWasm0(ptr2, len2);
446
- } finally {
447
- wasm.__wbindgen_add_to_stack_pointer(16);
448
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
449
- }
450
- };
451
-
452
- /**
453
- * @param {string} cbor_hex
454
- * @returns {any}
455
- */
456
- module.exports.cbor_to_json = function(cbor_hex) {
457
- try {
458
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
459
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
460
- const len0 = WASM_VECTOR_LEN;
461
- wasm.cbor_to_json(retptr, ptr0, len0);
462
- var r0 = getInt32Memory0()[retptr / 4 + 0];
463
- var r1 = getInt32Memory0()[retptr / 4 + 1];
464
- var r2 = getInt32Memory0()[retptr / 4 + 2];
465
- if (r2) {
466
- throw takeObject(r1);
467
- }
468
- return takeObject(r0);
469
- } finally {
470
- wasm.__wbindgen_add_to_stack_pointer(16);
471
- }
472
- };
473
-
474
- /**
475
- * @param {string} hex_str
476
- * @returns {any}
477
- */
478
- module.exports.check_block_or_tx_signatures = function(hex_str) {
479
- try {
480
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
481
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
482
- const len0 = WASM_VECTOR_LEN;
483
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
484
- var r0 = getInt32Memory0()[retptr / 4 + 0];
485
- var r1 = getInt32Memory0()[retptr / 4 + 1];
486
- var r2 = getInt32Memory0()[retptr / 4 + 2];
487
- if (r2) {
488
- throw takeObject(r1);
489
- }
490
- return takeObject(r0);
489
+ deferred4_0 = ptr3;
490
+ deferred4_1 = len3;
491
+ return getStringFromWasm0(ptr3, len3);
491
492
  } finally {
492
493
  wasm.__wbindgen_add_to_stack_pointer(16);
494
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
493
495
  }
494
496
  };
495
497
 
@@ -1078,62 +1080,6 @@ function handleError(f, args) {
1078
1080
  }
1079
1081
  }
1080
1082
  /**
1081
- */
1082
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1083
- /**
1084
- */
1085
- 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", });
1086
- /**
1087
- */
1088
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1089
- /**
1090
- */
1091
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1092
- /**
1093
- */
1094
- 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", });
1095
- /**
1096
- */
1097
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1098
- /**
1099
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1100
- */
1101
- LargestFirst:0,"0":"LargestFirst",
1102
- /**
1103
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1104
- */
1105
- RandomImprove:1,"1":"RandomImprove",
1106
- /**
1107
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1108
- */
1109
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1110
- /**
1111
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1112
- */
1113
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1114
- /**
1115
- */
1116
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1117
- /**
1118
- */
1119
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1120
- /**
1121
- */
1122
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1123
- /**
1124
- * Used to choosed the schema for a script JSON string
1125
- */
1126
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1127
- /**
1128
- */
1129
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1130
- /**
1131
- */
1132
- 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", });
1133
- /**
1134
- */
1135
- module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1136
- /**
1137
1083
  * JSON <-> PlutusData conversion schemas.
1138
1084
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
1139
1085
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -1186,7 +1132,19 @@ BasicConversions:0,"0":"BasicConversions",
1186
1132
  DetailedSchema:1,"1":"DetailedSchema", });
1187
1133
  /**
1188
1134
  */
1189
- module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1135
+ module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1136
+ /**
1137
+ */
1138
+ 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", });
1139
+ /**
1140
+ */
1141
+ 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", });
1142
+ /**
1143
+ */
1144
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1145
+ /**
1146
+ */
1147
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1190
1148
  /**
1191
1149
  * Each new language uses a different namespace for hashing its script
1192
1150
  * This is because you could have a language where the same bytes have different semantics
@@ -1196,34 +1154,78 @@ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATSc
1196
1154
  module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1197
1155
  /**
1198
1156
  */
1199
- 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", });
1157
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1200
1158
  /**
1201
1159
  */
1202
- 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", });
1160
+ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1203
1161
  /**
1162
+ * Used to choosed the schema for a script JSON string
1204
1163
  */
1205
- 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", });
1164
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1206
1165
  /**
1207
1166
  */
1208
- 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", });
1167
+ 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", });
1209
1168
  /**
1210
1169
  */
1211
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1170
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1212
1171
  /**
1172
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1213
1173
  */
1214
- 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", });
1174
+ LargestFirst:0,"0":"LargestFirst",
1215
1175
  /**
1176
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1216
1177
  */
1217
- module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1178
+ RandomImprove:1,"1":"RandomImprove",
1179
+ /**
1180
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1181
+ */
1182
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1183
+ /**
1184
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1185
+ */
1186
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1187
+ /**
1188
+ */
1189
+ 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", });
1190
+ /**
1191
+ */
1192
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1193
+ /**
1194
+ */
1195
+ 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", });
1196
+ /**
1197
+ */
1198
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1218
1199
  /**
1219
1200
  */
1220
1201
  module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1221
1202
  /**
1222
1203
  */
1223
- 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", });
1204
+ 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", });
1205
+ /**
1206
+ */
1207
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1208
+ /**
1209
+ */
1210
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1224
1211
  /**
1225
1212
  */
1226
1213
  module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1214
+ /**
1215
+ */
1216
+ 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", });
1217
+ /**
1218
+ */
1219
+ 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", });
1220
+ /**
1221
+ */
1222
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1223
+ /**
1224
+ */
1225
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1226
+ /**
1227
+ */
1228
+ 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", });
1227
1229
 
1228
1230
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1229
1231
  ? { register: () => {}, unregister: () => {} }
@@ -39284,12 +39286,6 @@ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
39284
39286
  return ret;
39285
39287
  };
39286
39288
 
39287
- module.exports.__wbindgen_boolean_get = function(arg0) {
39288
- const v = getObject(arg0);
39289
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
39290
- return ret;
39291
- };
39292
-
39293
39289
  module.exports.__wbindgen_is_string = function(arg0) {
39294
39290
  const ret = typeof(getObject(arg0)) === 'string';
39295
39291
  return ret;
@@ -39325,6 +39321,12 @@ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
39325
39321
  return ret;
39326
39322
  };
39327
39323
 
39324
+ module.exports.__wbindgen_boolean_get = function(arg0) {
39325
+ const v = getObject(arg0);
39326
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
39327
+ return ret;
39328
+ };
39329
+
39328
39330
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
39329
39331
  const obj = getObject(arg1);
39330
39332
  const ret = typeof(obj) === 'number' ? obj : undefined;
Binary file
@@ -4,14 +4,14 @@ export const memory: WebAssembly.Memory;
4
4
  export function get_decodable_types(a: number): void;
5
5
  export function decode_specific_type(a: number, b: number, c: number, d: number, e: number, f: number): void;
6
6
  export function get_possible_types_for_input(a: number, b: number, c: number): void;
7
+ export function cbor_to_json(a: number, b: number, c: number): void;
8
+ export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
7
9
  export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
8
10
  export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
9
11
  export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
10
12
  export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
11
13
  export function get_necessary_data_list_js(a: number, b: number, c: number): void;
12
- export function validate_transaction_js(a: number, b: number, c: number, d: number): void;
13
- export function cbor_to_json(a: number, b: number, c: number): void;
14
- export function check_block_or_tx_signatures(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.17",
6
+ "version": "0.1.0-beta.18",
7
7
  "files": [
8
8
  "node/cquisitor_lib_bg.wasm",
9
9
  "node/cquisitor_lib.js",