@cardananium/cquisitor-lib 0.1.0-beta.29 → 0.1.0-beta.30

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.
@@ -290,67 +290,24 @@ export function get_possible_types_for_input(input) {
290
290
  }
291
291
 
292
292
  /**
293
- * @param {string} tx_hex
294
- * @returns {string}
295
- */
296
- export function get_necessary_data_list_js(tx_hex) {
297
- let deferred3_0;
298
- let deferred3_1;
299
- try {
300
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
301
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
302
- const len0 = WASM_VECTOR_LEN;
303
- wasm.get_necessary_data_list_js(retptr, ptr0, len0);
304
- var r0 = getInt32Memory0()[retptr / 4 + 0];
305
- var r1 = getInt32Memory0()[retptr / 4 + 1];
306
- var r2 = getInt32Memory0()[retptr / 4 + 2];
307
- var r3 = getInt32Memory0()[retptr / 4 + 3];
308
- var ptr2 = r0;
309
- var len2 = r1;
310
- if (r3) {
311
- ptr2 = 0; len2 = 0;
312
- throw takeObject(r2);
313
- }
314
- deferred3_0 = ptr2;
315
- deferred3_1 = len2;
316
- return getStringFromWasm0(ptr2, len2);
317
- } finally {
318
- wasm.__wbindgen_add_to_stack_pointer(16);
319
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
320
- }
321
- }
322
-
323
- /**
324
- * @param {string} tx_hex
325
- * @param {string} validation_context
326
- * @returns {string}
293
+ * @param {string} hex_str
294
+ * @returns {any}
327
295
  */
328
- export function validate_transaction_js(tx_hex, validation_context) {
329
- let deferred4_0;
330
- let deferred4_1;
296
+ export function check_block_or_tx_signatures(hex_str) {
331
297
  try {
332
298
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
333
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
299
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
334
300
  const len0 = WASM_VECTOR_LEN;
335
- const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
336
- const len1 = WASM_VECTOR_LEN;
337
- wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
301
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
338
302
  var r0 = getInt32Memory0()[retptr / 4 + 0];
339
303
  var r1 = getInt32Memory0()[retptr / 4 + 1];
340
304
  var r2 = getInt32Memory0()[retptr / 4 + 2];
341
- var r3 = getInt32Memory0()[retptr / 4 + 3];
342
- var ptr3 = r0;
343
- var len3 = r1;
344
- if (r3) {
345
- ptr3 = 0; len3 = 0;
346
- throw takeObject(r2);
305
+ if (r2) {
306
+ throw takeObject(r1);
347
307
  }
348
- deferred4_0 = ptr3;
349
- deferred4_1 = len3;
350
- return getStringFromWasm0(ptr3, len3);
308
+ return takeObject(r0);
351
309
  } finally {
352
310
  wasm.__wbindgen_add_to_stack_pointer(16);
353
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
354
311
  }
355
312
  }
356
313
 
@@ -511,24 +468,67 @@ export function get_ref_script_bytes(tx_hex, output_index) {
511
468
  }
512
469
 
513
470
  /**
514
- * @param {string} hex_str
515
- * @returns {any}
471
+ * @param {string} tx_hex
472
+ * @returns {string}
516
473
  */
517
- export function check_block_or_tx_signatures(hex_str) {
474
+ export function get_necessary_data_list_js(tx_hex) {
475
+ let deferred3_0;
476
+ let deferred3_1;
518
477
  try {
519
478
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
520
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
479
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
521
480
  const len0 = WASM_VECTOR_LEN;
522
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
481
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
523
482
  var r0 = getInt32Memory0()[retptr / 4 + 0];
524
483
  var r1 = getInt32Memory0()[retptr / 4 + 1];
525
484
  var r2 = getInt32Memory0()[retptr / 4 + 2];
526
- if (r2) {
527
- throw takeObject(r1);
485
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
486
+ var ptr2 = r0;
487
+ var len2 = r1;
488
+ if (r3) {
489
+ ptr2 = 0; len2 = 0;
490
+ throw takeObject(r2);
528
491
  }
529
- return takeObject(r0);
492
+ deferred3_0 = ptr2;
493
+ deferred3_1 = len2;
494
+ return getStringFromWasm0(ptr2, len2);
495
+ } finally {
496
+ wasm.__wbindgen_add_to_stack_pointer(16);
497
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
498
+ }
499
+ }
500
+
501
+ /**
502
+ * @param {string} tx_hex
503
+ * @param {string} validation_context
504
+ * @returns {string}
505
+ */
506
+ export function validate_transaction_js(tx_hex, validation_context) {
507
+ let deferred4_0;
508
+ let deferred4_1;
509
+ try {
510
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
511
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
512
+ const len0 = WASM_VECTOR_LEN;
513
+ const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
514
+ const len1 = WASM_VECTOR_LEN;
515
+ wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
516
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
517
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
518
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
519
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
520
+ var ptr3 = r0;
521
+ var len3 = r1;
522
+ if (r3) {
523
+ ptr3 = 0; len3 = 0;
524
+ throw takeObject(r2);
525
+ }
526
+ deferred4_0 = ptr3;
527
+ deferred4_1 = len3;
528
+ return getStringFromWasm0(ptr3, len3);
530
529
  } finally {
531
530
  wasm.__wbindgen_add_to_stack_pointer(16);
531
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
532
532
  }
533
533
  }
534
534
 
@@ -1118,38 +1118,10 @@ function handleError(f, args) {
1118
1118
  }
1119
1119
  /**
1120
1120
  */
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", });
1122
- /**
1123
- */
1124
- export const CoinSelectionStrategyCIP2 = Object.freeze({
1125
- /**
1126
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1127
- */
1128
- LargestFirst:0,"0":"LargestFirst",
1129
- /**
1130
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1131
- */
1132
- RandomImprove:1,"1":"RandomImprove",
1133
- /**
1134
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1135
- */
1136
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1137
- /**
1138
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1139
- */
1140
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1141
- /**
1142
- */
1143
- 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", });
1144
- /**
1145
- */
1146
- 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", });
1147
- /**
1148
- */
1149
1121
  export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1150
1122
  /**
1151
1123
  */
1152
- 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", });
1124
+ 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", });
1153
1125
  /**
1154
1126
  * JSON <-> PlutusData conversion schemas.
1155
1127
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1202,67 +1174,95 @@ BasicConversions:0,"0":"BasicConversions",
1202
1174
  */
1203
1175
  DetailedSchema:1,"1":"DetailedSchema", });
1204
1176
  /**
1177
+ * Used to choosed the schema for a script JSON string
1205
1178
  */
1206
- 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", });
1179
+ export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1207
1180
  /**
1208
1181
  */
1209
- export const AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
1182
+ 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", });
1210
1183
  /**
1184
+ * Each new language uses a different namespace for hashing its script
1185
+ * This is because you could have a language where the same bytes have different semantics
1186
+ * So this avoids scripts in different languages mapping to the same hash
1187
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1211
1188
  */
1212
- export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1189
+ export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1213
1190
  /**
1214
1191
  */
1215
- 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", });
1192
+ export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1216
1193
  /**
1217
1194
  */
1218
- export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1195
+ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1219
1196
  /**
1220
- * Used to choosed the schema for a script JSON string
1221
1197
  */
1222
- export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1198
+ export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1223
1199
  /**
1224
1200
  */
1225
- 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", });
1201
+ export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1226
1202
  /**
1227
1203
  */
1228
1204
  export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1229
1205
  /**
1230
1206
  */
1231
- export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1207
+ export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1232
1208
  /**
1233
1209
  */
1234
- 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", });
1210
+ export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1211
+ /**
1212
+ */
1213
+ 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", });
1214
+ /**
1215
+ */
1216
+ 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", });
1235
1217
  /**
1236
1218
  */
1237
1219
  export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1238
1220
  /**
1239
1221
  */
1240
- export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1222
+ export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1241
1223
  /**
1242
1224
  */
1243
- export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1225
+ 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", });
1244
1226
  /**
1245
1227
  */
1246
- export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1228
+ 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", });
1247
1229
  /**
1248
1230
  */
1249
- export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1231
+ 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", });
1250
1232
  /**
1251
1233
  */
1252
- export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1234
+ 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", });
1253
1235
  /**
1254
- * Each new language uses a different namespace for hashing its script
1255
- * This is because you could have a language where the same bytes have different semantics
1256
- * So this avoids scripts in different languages mapping to the same hash
1257
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1258
1236
  */
1259
- export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1237
+ export const CoinSelectionStrategyCIP2 = Object.freeze({
1260
1238
  /**
1239
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1261
1240
  */
1262
- export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1241
+ LargestFirst:0,"0":"LargestFirst",
1242
+ /**
1243
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1244
+ */
1245
+ RandomImprove:1,"1":"RandomImprove",
1246
+ /**
1247
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1248
+ */
1249
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1250
+ /**
1251
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1252
+ */
1253
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1263
1254
  /**
1264
1255
  */
1265
1256
  export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1257
+ /**
1258
+ */
1259
+ 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", });
1260
+ /**
1261
+ */
1262
+ export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1263
+ /**
1264
+ */
1265
+ export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1266
1266
 
1267
1267
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1268
1268
  ? { register: () => {}, unregister: () => {} }
@@ -39101,11 +39101,6 @@ export function __wbindgen_string_new(arg0, arg1) {
39101
39101
  return addHeapObject(ret);
39102
39102
  };
39103
39103
 
39104
- export function __wbindgen_error_new(arg0, arg1) {
39105
- const ret = new Error(getStringFromWasm0(arg0, arg1));
39106
- return addHeapObject(ret);
39107
- };
39108
-
39109
39104
  export function __wbindgen_is_undefined(arg0) {
39110
39105
  const ret = getObject(arg0) === undefined;
39111
39106
  return ret;
@@ -39151,6 +39146,11 @@ export function __wbindgen_is_object(arg0) {
39151
39146
  return ret;
39152
39147
  };
39153
39148
 
39149
+ export function __wbindgen_error_new(arg0, arg1) {
39150
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
39151
+ return addHeapObject(ret);
39152
+ };
39153
+
39154
39154
  export function __wbindgen_object_clone_ref(arg0) {
39155
39155
  const ret = getObject(arg0);
39156
39156
  return addHeapObject(ret);
Binary file
@@ -4,15 +4,15 @@ 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 get_necessary_data_list_js(a: number, b: number, c: number): void;
8
- export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
7
+ export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
9
8
  export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
10
9
  export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
11
10
  export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
12
11
  export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
13
12
  export function cbor_to_json(a: number, b: number, c: number): void;
14
13
  export function get_ref_script_bytes(a: number, b: number, c: number, d: number): void;
15
- export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
14
+ export function get_necessary_data_list_js(a: number, b: number, c: number): void;
15
+ export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
16
16
  export function __wbg_noconfidenceaction_free(a: number): void;
17
17
  export function noconfidenceaction_to_bytes(a: number, b: number): void;
18
18
  export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
@@ -285,67 +285,24 @@ module.exports.get_possible_types_for_input = function(input) {
285
285
  };
286
286
 
287
287
  /**
288
- * @param {string} tx_hex
289
- * @returns {string}
290
- */
291
- module.exports.get_necessary_data_list_js = function(tx_hex) {
292
- let deferred3_0;
293
- let deferred3_1;
294
- try {
295
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
296
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
- const len0 = WASM_VECTOR_LEN;
298
- wasm.get_necessary_data_list_js(retptr, ptr0, len0);
299
- var r0 = getInt32Memory0()[retptr / 4 + 0];
300
- var r1 = getInt32Memory0()[retptr / 4 + 1];
301
- var r2 = getInt32Memory0()[retptr / 4 + 2];
302
- var r3 = getInt32Memory0()[retptr / 4 + 3];
303
- var ptr2 = r0;
304
- var len2 = r1;
305
- if (r3) {
306
- ptr2 = 0; len2 = 0;
307
- throw takeObject(r2);
308
- }
309
- deferred3_0 = ptr2;
310
- deferred3_1 = len2;
311
- return getStringFromWasm0(ptr2, len2);
312
- } finally {
313
- wasm.__wbindgen_add_to_stack_pointer(16);
314
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
315
- }
316
- };
317
-
318
- /**
319
- * @param {string} tx_hex
320
- * @param {string} validation_context
321
- * @returns {string}
288
+ * @param {string} hex_str
289
+ * @returns {any}
322
290
  */
323
- module.exports.validate_transaction_js = function(tx_hex, validation_context) {
324
- let deferred4_0;
325
- let deferred4_1;
291
+ module.exports.check_block_or_tx_signatures = function(hex_str) {
326
292
  try {
327
293
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
328
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
294
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
329
295
  const len0 = WASM_VECTOR_LEN;
330
- const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
331
- const len1 = WASM_VECTOR_LEN;
332
- wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
296
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
333
297
  var r0 = getInt32Memory0()[retptr / 4 + 0];
334
298
  var r1 = getInt32Memory0()[retptr / 4 + 1];
335
299
  var r2 = getInt32Memory0()[retptr / 4 + 2];
336
- var r3 = getInt32Memory0()[retptr / 4 + 3];
337
- var ptr3 = r0;
338
- var len3 = r1;
339
- if (r3) {
340
- ptr3 = 0; len3 = 0;
341
- throw takeObject(r2);
300
+ if (r2) {
301
+ throw takeObject(r1);
342
302
  }
343
- deferred4_0 = ptr3;
344
- deferred4_1 = len3;
345
- return getStringFromWasm0(ptr3, len3);
303
+ return takeObject(r0);
346
304
  } finally {
347
305
  wasm.__wbindgen_add_to_stack_pointer(16);
348
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
349
306
  }
350
307
  };
351
308
 
@@ -506,24 +463,67 @@ module.exports.get_ref_script_bytes = function(tx_hex, output_index) {
506
463
  };
507
464
 
508
465
  /**
509
- * @param {string} hex_str
510
- * @returns {any}
466
+ * @param {string} tx_hex
467
+ * @returns {string}
511
468
  */
512
- module.exports.check_block_or_tx_signatures = function(hex_str) {
469
+ module.exports.get_necessary_data_list_js = function(tx_hex) {
470
+ let deferred3_0;
471
+ let deferred3_1;
513
472
  try {
514
473
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
515
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
474
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
516
475
  const len0 = WASM_VECTOR_LEN;
517
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
476
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
518
477
  var r0 = getInt32Memory0()[retptr / 4 + 0];
519
478
  var r1 = getInt32Memory0()[retptr / 4 + 1];
520
479
  var r2 = getInt32Memory0()[retptr / 4 + 2];
521
- if (r2) {
522
- throw takeObject(r1);
480
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
481
+ var ptr2 = r0;
482
+ var len2 = r1;
483
+ if (r3) {
484
+ ptr2 = 0; len2 = 0;
485
+ throw takeObject(r2);
523
486
  }
524
- return takeObject(r0);
487
+ deferred3_0 = ptr2;
488
+ deferred3_1 = len2;
489
+ return getStringFromWasm0(ptr2, len2);
525
490
  } finally {
526
491
  wasm.__wbindgen_add_to_stack_pointer(16);
492
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
493
+ }
494
+ };
495
+
496
+ /**
497
+ * @param {string} tx_hex
498
+ * @param {string} validation_context
499
+ * @returns {string}
500
+ */
501
+ module.exports.validate_transaction_js = function(tx_hex, validation_context) {
502
+ let deferred4_0;
503
+ let deferred4_1;
504
+ try {
505
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
506
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
507
+ const len0 = WASM_VECTOR_LEN;
508
+ const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
509
+ const len1 = WASM_VECTOR_LEN;
510
+ wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
511
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
512
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
513
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
514
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
515
+ var ptr3 = r0;
516
+ var len3 = r1;
517
+ if (r3) {
518
+ ptr3 = 0; len3 = 0;
519
+ throw takeObject(r2);
520
+ }
521
+ deferred4_0 = ptr3;
522
+ deferred4_1 = len3;
523
+ return getStringFromWasm0(ptr3, len3);
524
+ } finally {
525
+ wasm.__wbindgen_add_to_stack_pointer(16);
526
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
527
527
  }
528
528
  };
529
529
 
@@ -1113,25 +1113,70 @@ function handleError(f, args) {
1113
1113
  }
1114
1114
  /**
1115
1115
  */
1116
- 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", });
1116
+ 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", });
1117
1117
  /**
1118
1118
  */
1119
- module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1119
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1120
1120
  /**
1121
1121
  */
1122
- 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", });
1122
+ 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", });
1123
1123
  /**
1124
1124
  */
1125
- 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", });
1125
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1126
1126
  /**
1127
1127
  */
1128
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1128
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1129
1129
  /**
1130
+ * Used to choosed the schema for a script JSON string
1130
1131
  */
1131
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1132
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1132
1133
  /**
1133
1134
  */
1134
- 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", });
1135
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1136
+ /**
1137
+ */
1138
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1139
+ /**
1140
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1141
+ */
1142
+ LargestFirst:0,"0":"LargestFirst",
1143
+ /**
1144
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1145
+ */
1146
+ RandomImprove:1,"1":"RandomImprove",
1147
+ /**
1148
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1149
+ */
1150
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1151
+ /**
1152
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1153
+ */
1154
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1155
+ /**
1156
+ */
1157
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1158
+ /**
1159
+ */
1160
+ module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1161
+ /**
1162
+ */
1163
+ 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", });
1164
+ /**
1165
+ * Each new language uses a different namespace for hashing its script
1166
+ * This is because you could have a language where the same bytes have different semantics
1167
+ * So this avoids scripts in different languages mapping to the same hash
1168
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1169
+ */
1170
+ module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1171
+ /**
1172
+ */
1173
+ 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", });
1174
+ /**
1175
+ */
1176
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1177
+ /**
1178
+ */
1179
+ module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1135
1180
  /**
1136
1181
  */
1137
1182
  module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
@@ -1139,6 +1184,27 @@ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:
1139
1184
  */
1140
1185
  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", });
1141
1186
  /**
1187
+ */
1188
+ module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1189
+ /**
1190
+ */
1191
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1192
+ /**
1193
+ */
1194
+ 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", });
1195
+ /**
1196
+ */
1197
+ module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
1198
+ /**
1199
+ */
1200
+ 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", });
1201
+ /**
1202
+ */
1203
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1204
+ /**
1205
+ */
1206
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1207
+ /**
1142
1208
  * JSON <-> PlutusData conversion schemas.
1143
1209
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
1144
1210
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -1191,73 +1257,7 @@ BasicConversions:0,"0":"BasicConversions",
1191
1257
  DetailedSchema:1,"1":"DetailedSchema", });
1192
1258
  /**
1193
1259
  */
1194
- module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1195
- /**
1196
- */
1197
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1198
- /**
1199
- */
1200
- 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", });
1201
- /**
1202
- */
1203
- 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", });
1204
- /**
1205
- */
1206
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1207
- /**
1208
- */
1209
- 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", });
1210
- /**
1211
- */
1212
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1213
- /**
1214
- */
1215
- 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", });
1216
- /**
1217
- */
1218
- module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1219
- /**
1220
- * Each new language uses a different namespace for hashing its script
1221
- * This is because you could have a language where the same bytes have different semantics
1222
- * So this avoids scripts in different languages mapping to the same hash
1223
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1224
- */
1225
- module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1226
- /**
1227
- */
1228
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1229
- /**
1230
- */
1231
- module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1232
- /**
1233
- */
1234
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1235
- /**
1236
- * Used to choosed the schema for a script JSON string
1237
- */
1238
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1239
- /**
1240
- */
1241
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1242
- /**
1243
- */
1244
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1245
- /**
1246
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1247
- */
1248
- LargestFirst:0,"0":"LargestFirst",
1249
- /**
1250
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1251
- */
1252
- RandomImprove:1,"1":"RandomImprove",
1253
- /**
1254
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1255
- */
1256
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1257
- /**
1258
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1259
- */
1260
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1260
+ 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", });
1261
1261
 
1262
1262
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1263
1263
  ? { register: () => {}, unregister: () => {} }
@@ -39293,11 +39293,6 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
39293
39293
  return addHeapObject(ret);
39294
39294
  };
39295
39295
 
39296
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
39297
- const ret = new Error(getStringFromWasm0(arg0, arg1));
39298
- return addHeapObject(ret);
39299
- };
39300
-
39301
39296
  module.exports.__wbindgen_is_undefined = function(arg0) {
39302
39297
  const ret = getObject(arg0) === undefined;
39303
39298
  return ret;
@@ -39343,6 +39338,11 @@ module.exports.__wbindgen_is_object = function(arg0) {
39343
39338
  return ret;
39344
39339
  };
39345
39340
 
39341
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
39342
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
39343
+ return addHeapObject(ret);
39344
+ };
39345
+
39346
39346
  module.exports.__wbindgen_object_clone_ref = function(arg0) {
39347
39347
  const ret = getObject(arg0);
39348
39348
  return addHeapObject(ret);
Binary file
@@ -4,15 +4,15 @@ 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 get_necessary_data_list_js(a: number, b: number, c: number): void;
8
- export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
7
+ export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
9
8
  export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
10
9
  export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
11
10
  export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
12
11
  export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
13
12
  export function cbor_to_json(a: number, b: number, c: number): void;
14
13
  export function get_ref_script_bytes(a: number, b: number, c: number, d: number): void;
15
- export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
14
+ export function get_necessary_data_list_js(a: number, b: number, c: number): void;
15
+ export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
16
16
  export function __wbg_noconfidenceaction_free(a: number): void;
17
17
  export function noconfidenceaction_to_bytes(a: number, b: number): void;
18
18
  export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Evgenii Lisitskii <evgeniilisitskii@gmail.com>"
5
5
  ],
6
6
  "description": "Cardano transaction validation library",
7
- "version": "0.1.0-beta.29",
7
+ "version": "0.1.0-beta.30",
8
8
  "license": "Apache-2.0",
9
9
  "files": [
10
10
  "node/cquisitor_lib_bg.wasm",