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

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.
@@ -8,7 +8,7 @@ export function get_necessary_data_list_js(tx_hex: string): string;
8
8
  * @param {ValidationInputContext} validation_context
9
9
  * @returns {string}
10
10
  */
11
- export function validate_transaction_js(tx_hex: string, validation_context: ValidationInputContext): string;
11
+ export function validate_transaction_js(tx_hex: string, validation_context: string): string;
12
12
 
13
13
  /**
14
14
  * @returns {(string)[]}
@@ -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,22 @@ 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", });
1088
- /**
1089
- */
1090
- export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1091
- /**
1092
- */
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", });
1094
- /**
1095
- */
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", });
1097
- /**
1098
- * Used to choosed the schema for a script JSON string
1099
- */
1100
- export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
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", });
1101
1090
  /**
1102
1091
  */
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", });
1092
+ 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", });
1104
1093
  /**
1105
1094
  */
1106
- export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1095
+ export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1107
1096
  /**
1108
1097
  */
1109
1098
  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", });
1110
1099
  /**
1111
1100
  */
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", });
1113
- /**
1114
- */
1115
- export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1116
- /**
1117
- */
1118
- export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1101
+ export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1119
1102
  /**
1120
1103
  */
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", });
1104
+ export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1122
1105
  /**
1123
1106
  * JSON <-> PlutusData conversion schemas.
1124
1107
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1172,16 +1155,29 @@ BasicConversions:0,"0":"BasicConversions",
1172
1155
  DetailedSchema:1,"1":"DetailedSchema", });
1173
1156
  /**
1174
1157
  */
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", });
1158
+ 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", });
1176
1159
  /**
1177
1160
  */
1178
- export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1161
+ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1179
1162
  /**
1180
1163
  */
1181
- export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1164
+ 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", });
1182
1165
  /**
1183
1166
  */
1184
- export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1167
+ export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1168
+ /**
1169
+ */
1170
+ export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1171
+ /**
1172
+ */
1173
+ 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", });
1174
+ /**
1175
+ * Used to choosed the schema for a script JSON string
1176
+ */
1177
+ export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1178
+ /**
1179
+ */
1180
+ 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", });
1185
1181
  /**
1186
1182
  */
1187
1183
  export const CoinSelectionStrategyCIP2 = Object.freeze({
@@ -1203,10 +1199,19 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1203
1199
  RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1204
1200
  /**
1205
1201
  */
1206
- export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
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", });
1207
1203
  /**
1208
1204
  */
1209
- export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
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", });
1210
1215
  /**
1211
1216
  * Each new language uses a different namespace for hashing its script
1212
1217
  * This is because you could have a language where the same bytes have different semantics
@@ -1216,19 +1221,16 @@ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",S
1216
1221
  export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1217
1222
  /**
1218
1223
  */
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", });
1224
+ export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1223
1225
  /**
1224
1226
  */
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", });
1227
+ export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1226
1228
  /**
1227
1229
  */
1228
- export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1230
+ export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1229
1231
  /**
1230
1232
  */
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", });
1233
+ export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
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;
@@ -8,7 +8,7 @@ export function get_necessary_data_list_js(tx_hex: string): string;
8
8
  * @param {ValidationInputContext} validation_context
9
9
  * @returns {string}
10
10
  */
11
- export function validate_transaction_js(tx_hex: string, validation_context: ValidationInputContext): string;
11
+ export function validate_transaction_js(tx_hex: string, validation_context: string): string;
12
12
 
13
13
  /**
14
14
  * @returns {(string)[]}
@@ -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
 
@@ -1079,19 +1081,41 @@ function handleError(f, args) {
1079
1081
  }
1080
1082
  /**
1081
1083
  */
1082
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1084
+ 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", });
1083
1085
  /**
1084
1086
  */
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", });
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", });
1086
1100
  /**
1087
1101
  */
1088
1102
  module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1089
1103
  /**
1090
1104
  */
1091
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
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", });
1092
1106
  /**
1093
1107
  */
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", });
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", });
1109
+ /**
1110
+ */
1111
+ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1112
+ /**
1113
+ */
1114
+ 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", });
1115
+ /**
1116
+ * Used to choosed the schema for a script JSON string
1117
+ */
1118
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1095
1119
  /**
1096
1120
  */
1097
1121
  module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
@@ -1113,26 +1137,25 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1113
1137
  RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1114
1138
  /**
1115
1139
  */
1116
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1140
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1117
1141
  /**
1118
1142
  */
1119
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1143
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1120
1144
  /**
1121
1145
  */
1122
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1146
+ module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1123
1147
  /**
1124
- * Used to choosed the schema for a script JSON string
1125
1148
  */
1126
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1149
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1127
1150
  /**
1128
1151
  */
1129
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1152
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1130
1153
  /**
1131
1154
  */
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", });
1155
+ 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", });
1133
1156
  /**
1134
1157
  */
1135
- module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1158
+ module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1136
1159
  /**
1137
1160
  * JSON <-> PlutusData conversion schemas.
1138
1161
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1186,44 +1209,23 @@ BasicConversions:0,"0":"BasicConversions",
1186
1209
  DetailedSchema:1,"1":"DetailedSchema", });
1187
1210
  /**
1188
1211
  */
1189
- module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
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
- module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1197
- /**
1198
- */
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", });
1200
- /**
1201
- */
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", });
1203
- /**
1204
- */
1205
1212
  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", });
1206
1213
  /**
1207
1214
  */
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", });
1209
- /**
1210
- */
1211
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1212
- /**
1213
- */
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", });
1215
- /**
1216
- */
1217
- module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1215
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1218
1216
  /**
1219
1217
  */
1220
- module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1218
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1221
1219
  /**
1222
1220
  */
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", });
1221
+ 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", });
1224
1222
  /**
1223
+ * Each new language uses a different namespace for hashing its script
1224
+ * This is because you could have a language where the same bytes have different semantics
1225
+ * So this avoids scripts in different languages mapping to the same hash
1226
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1225
1227
  */
1226
- module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1228
+ module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
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.19",
7
7
  "files": [
8
8
  "node/cquisitor_lib_bg.wasm",
9
9
  "node/cquisitor_lib.js",