@cardananium/cquisitor-lib 0.1.0-beta.26 → 0.1.0-beta.28

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,15 +290,15 @@ export function get_possible_types_for_input(input) {
290
290
  }
291
291
 
292
292
  /**
293
- * @param {string} cbor_hex
293
+ * @param {string} hex_str
294
294
  * @returns {any}
295
295
  */
296
- export function cbor_to_json(cbor_hex) {
296
+ export function check_block_or_tx_signatures(hex_str) {
297
297
  try {
298
298
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
299
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
299
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
300
300
  const len0 = WASM_VECTOR_LEN;
301
- wasm.cbor_to_json(retptr, ptr0, len0);
301
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
302
302
  var r0 = getInt32Memory0()[retptr / 4 + 0];
303
303
  var r1 = getInt32Memory0()[retptr / 4 + 1];
304
304
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -312,24 +312,67 @@ export function cbor_to_json(cbor_hex) {
312
312
  }
313
313
 
314
314
  /**
315
- * @param {string} hex_str
316
- * @returns {any}
315
+ * @param {string} tx_hex
316
+ * @returns {string}
317
317
  */
318
- export function check_block_or_tx_signatures(hex_str) {
318
+ export function get_necessary_data_list_js(tx_hex) {
319
+ let deferred3_0;
320
+ let deferred3_1;
319
321
  try {
320
322
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
321
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
323
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
324
  const len0 = WASM_VECTOR_LEN;
323
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
325
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
324
326
  var r0 = getInt32Memory0()[retptr / 4 + 0];
325
327
  var r1 = getInt32Memory0()[retptr / 4 + 1];
326
328
  var r2 = getInt32Memory0()[retptr / 4 + 2];
327
- if (r2) {
328
- throw takeObject(r1);
329
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
330
+ var ptr2 = r0;
331
+ var len2 = r1;
332
+ if (r3) {
333
+ ptr2 = 0; len2 = 0;
334
+ throw takeObject(r2);
329
335
  }
330
- return takeObject(r0);
336
+ deferred3_0 = ptr2;
337
+ deferred3_1 = len2;
338
+ return getStringFromWasm0(ptr2, len2);
339
+ } finally {
340
+ wasm.__wbindgen_add_to_stack_pointer(16);
341
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
342
+ }
343
+ }
344
+
345
+ /**
346
+ * @param {string} tx_hex
347
+ * @param {string} validation_context
348
+ * @returns {string}
349
+ */
350
+ export function validate_transaction_js(tx_hex, validation_context) {
351
+ let deferred4_0;
352
+ let deferred4_1;
353
+ try {
354
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
355
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
356
+ const len0 = WASM_VECTOR_LEN;
357
+ const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
358
+ const len1 = WASM_VECTOR_LEN;
359
+ wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
360
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
361
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
362
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
363
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
364
+ var ptr3 = r0;
365
+ var len3 = r1;
366
+ if (r3) {
367
+ ptr3 = 0; len3 = 0;
368
+ throw takeObject(r2);
369
+ }
370
+ deferred4_0 = ptr3;
371
+ deferred4_1 = len3;
372
+ return getStringFromWasm0(ptr3, len3);
331
373
  } finally {
332
374
  wasm.__wbindgen_add_to_stack_pointer(16);
375
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
333
376
  }
334
377
  }
335
378
 
@@ -436,67 +479,24 @@ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
436
479
  }
437
480
 
438
481
  /**
439
- * @param {string} tx_hex
440
- * @returns {string}
441
- */
442
- export function get_necessary_data_list_js(tx_hex) {
443
- let deferred3_0;
444
- let deferred3_1;
445
- try {
446
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
447
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
448
- const len0 = WASM_VECTOR_LEN;
449
- wasm.get_necessary_data_list_js(retptr, ptr0, len0);
450
- var r0 = getInt32Memory0()[retptr / 4 + 0];
451
- var r1 = getInt32Memory0()[retptr / 4 + 1];
452
- var r2 = getInt32Memory0()[retptr / 4 + 2];
453
- var r3 = getInt32Memory0()[retptr / 4 + 3];
454
- var ptr2 = r0;
455
- var len2 = r1;
456
- if (r3) {
457
- ptr2 = 0; len2 = 0;
458
- throw takeObject(r2);
459
- }
460
- deferred3_0 = ptr2;
461
- deferred3_1 = len2;
462
- return getStringFromWasm0(ptr2, len2);
463
- } finally {
464
- wasm.__wbindgen_add_to_stack_pointer(16);
465
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
466
- }
467
- }
468
-
469
- /**
470
- * @param {string} tx_hex
471
- * @param {string} validation_context
472
- * @returns {string}
482
+ * @param {string} cbor_hex
483
+ * @returns {any}
473
484
  */
474
- export function validate_transaction_js(tx_hex, validation_context) {
475
- let deferred4_0;
476
- let deferred4_1;
485
+ export function cbor_to_json(cbor_hex) {
477
486
  try {
478
487
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
479
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
488
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
480
489
  const len0 = WASM_VECTOR_LEN;
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);
490
+ wasm.cbor_to_json(retptr, ptr0, len0);
484
491
  var r0 = getInt32Memory0()[retptr / 4 + 0];
485
492
  var r1 = getInt32Memory0()[retptr / 4 + 1];
486
493
  var r2 = getInt32Memory0()[retptr / 4 + 2];
487
- var r3 = getInt32Memory0()[retptr / 4 + 3];
488
- var ptr3 = r0;
489
- var len3 = r1;
490
- if (r3) {
491
- ptr3 = 0; len3 = 0;
492
- throw takeObject(r2);
494
+ if (r2) {
495
+ throw takeObject(r1);
493
496
  }
494
- deferred4_0 = ptr3;
495
- deferred4_1 = len3;
496
- return getStringFromWasm0(ptr3, len3);
497
+ return takeObject(r0);
497
498
  } finally {
498
499
  wasm.__wbindgen_add_to_stack_pointer(16);
499
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
500
500
  }
501
501
  }
502
502
 
@@ -1086,94 +1086,32 @@ function handleError(f, args) {
1086
1086
  }
1087
1087
  /**
1088
1088
  */
1089
- 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", });
1090
- /**
1091
- */
1092
- export const CoinSelectionStrategyCIP2 = Object.freeze({
1093
- /**
1094
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1095
- */
1096
- LargestFirst:0,"0":"LargestFirst",
1097
- /**
1098
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1099
- */
1100
- RandomImprove:1,"1":"RandomImprove",
1101
- /**
1102
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1103
- */
1104
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1105
- /**
1106
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1107
- */
1108
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1109
- /**
1110
- */
1111
1089
  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", });
1112
1090
  /**
1113
1091
  */
1114
- 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", });
1115
- /**
1116
- */
1117
- export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1118
- /**
1119
- */
1120
- export const RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
1121
- /**
1122
- */
1123
- 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", });
1124
- /**
1125
- */
1126
- export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1127
- /**
1128
- */
1129
- export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1130
- /**
1131
- */
1132
- export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1133
- /**
1134
- */
1135
1092
  export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1136
1093
  /**
1137
- * Each new language uses a different namespace for hashing its script
1138
- * This is because you could have a language where the same bytes have different semantics
1139
- * So this avoids scripts in different languages mapping to the same hash
1140
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1141
1094
  */
1142
- export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1143
- /**
1144
- */
1145
- export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1095
+ 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", });
1146
1096
  /**
1147
1097
  * Used to choosed the schema for a script JSON string
1148
1098
  */
1149
1099
  export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1150
1100
  /**
1151
1101
  */
1152
- export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1153
- /**
1154
- */
1155
- export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1102
+ 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", });
1156
1103
  /**
1157
1104
  */
1158
1105
  export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1159
1106
  /**
1160
1107
  */
1161
- export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1162
- /**
1163
- */
1164
- export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1165
- /**
1166
- */
1167
- export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1168
- /**
1169
- */
1170
- 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", });
1108
+ export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1171
1109
  /**
1172
1110
  */
1173
- 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", });
1111
+ export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1174
1112
  /**
1175
1113
  */
1176
- 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", });
1114
+ export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1177
1115
  /**
1178
1116
  * JSON <-> PlutusData conversion schemas.
1179
1117
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1227,10 +1165,72 @@ BasicConversions:0,"0":"BasicConversions",
1227
1165
  DetailedSchema:1,"1":"DetailedSchema", });
1228
1166
  /**
1229
1167
  */
1230
- 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", });
1168
+ 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", });
1231
1169
  /**
1232
1170
  */
1233
- export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1171
+ export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1172
+ /**
1173
+ */
1174
+ export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1175
+ /**
1176
+ */
1177
+ 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", });
1178
+ /**
1179
+ */
1180
+ export const CoinSelectionStrategyCIP2 = Object.freeze({
1181
+ /**
1182
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1183
+ */
1184
+ LargestFirst:0,"0":"LargestFirst",
1185
+ /**
1186
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1187
+ */
1188
+ RandomImprove:1,"1":"RandomImprove",
1189
+ /**
1190
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1191
+ */
1192
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1193
+ /**
1194
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1195
+ */
1196
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1197
+ /**
1198
+ */
1199
+ export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1200
+ /**
1201
+ */
1202
+ export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1203
+ /**
1204
+ */
1205
+ 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", });
1206
+ /**
1207
+ * Each new language uses a different namespace for hashing its script
1208
+ * This is because you could have a language where the same bytes have different semantics
1209
+ * So this avoids scripts in different languages mapping to the same hash
1210
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1211
+ */
1212
+ export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1213
+ /**
1214
+ */
1215
+ export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1216
+ /**
1217
+ */
1218
+ export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1219
+ /**
1220
+ */
1221
+ 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", });
1222
+ /**
1223
+ */
1224
+ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1225
+ /**
1226
+ */
1227
+ 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", });
1228
+ /**
1229
+ */
1230
+ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1231
+ /**
1232
+ */
1233
+ 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", });
1234
1234
 
1235
1235
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1236
1236
  ? { register: () => {}, unregister: () => {} }
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
7
  export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
8
+ export function get_necessary_data_list_js(a: number, b: number, c: number): void;
9
+ export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
9
10
  export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
10
11
  export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
11
12
  export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
12
13
  export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
13
- export function get_necessary_data_list_js(a: number, b: number, c: number): void;
14
- export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
14
+ export function cbor_to_json(a: number, b: number, c: 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;
@@ -285,15 +285,15 @@ module.exports.get_possible_types_for_input = function(input) {
285
285
  };
286
286
 
287
287
  /**
288
- * @param {string} cbor_hex
288
+ * @param {string} hex_str
289
289
  * @returns {any}
290
290
  */
291
- module.exports.cbor_to_json = function(cbor_hex) {
291
+ module.exports.check_block_or_tx_signatures = function(hex_str) {
292
292
  try {
293
293
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
294
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
294
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
295
  const len0 = WASM_VECTOR_LEN;
296
- wasm.cbor_to_json(retptr, ptr0, len0);
296
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
297
297
  var r0 = getInt32Memory0()[retptr / 4 + 0];
298
298
  var r1 = getInt32Memory0()[retptr / 4 + 1];
299
299
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -307,24 +307,67 @@ module.exports.cbor_to_json = function(cbor_hex) {
307
307
  };
308
308
 
309
309
  /**
310
- * @param {string} hex_str
311
- * @returns {any}
310
+ * @param {string} tx_hex
311
+ * @returns {string}
312
312
  */
313
- module.exports.check_block_or_tx_signatures = function(hex_str) {
313
+ module.exports.get_necessary_data_list_js = function(tx_hex) {
314
+ let deferred3_0;
315
+ let deferred3_1;
314
316
  try {
315
317
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
316
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
318
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
317
319
  const len0 = WASM_VECTOR_LEN;
318
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
320
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
319
321
  var r0 = getInt32Memory0()[retptr / 4 + 0];
320
322
  var r1 = getInt32Memory0()[retptr / 4 + 1];
321
323
  var r2 = getInt32Memory0()[retptr / 4 + 2];
322
- if (r2) {
323
- throw takeObject(r1);
324
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
325
+ var ptr2 = r0;
326
+ var len2 = r1;
327
+ if (r3) {
328
+ ptr2 = 0; len2 = 0;
329
+ throw takeObject(r2);
324
330
  }
325
- return takeObject(r0);
331
+ deferred3_0 = ptr2;
332
+ deferred3_1 = len2;
333
+ return getStringFromWasm0(ptr2, len2);
326
334
  } finally {
327
335
  wasm.__wbindgen_add_to_stack_pointer(16);
336
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
337
+ }
338
+ };
339
+
340
+ /**
341
+ * @param {string} tx_hex
342
+ * @param {string} validation_context
343
+ * @returns {string}
344
+ */
345
+ module.exports.validate_transaction_js = function(tx_hex, validation_context) {
346
+ let deferred4_0;
347
+ let deferred4_1;
348
+ try {
349
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
350
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
351
+ const len0 = WASM_VECTOR_LEN;
352
+ const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
353
+ const len1 = WASM_VECTOR_LEN;
354
+ wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
355
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
356
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
357
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
358
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
359
+ var ptr3 = r0;
360
+ var len3 = r1;
361
+ if (r3) {
362
+ ptr3 = 0; len3 = 0;
363
+ throw takeObject(r2);
364
+ }
365
+ deferred4_0 = ptr3;
366
+ deferred4_1 = len3;
367
+ return getStringFromWasm0(ptr3, len3);
368
+ } finally {
369
+ wasm.__wbindgen_add_to_stack_pointer(16);
370
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
328
371
  }
329
372
  };
330
373
 
@@ -431,67 +474,24 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
431
474
  };
432
475
 
433
476
  /**
434
- * @param {string} tx_hex
435
- * @returns {string}
436
- */
437
- module.exports.get_necessary_data_list_js = function(tx_hex) {
438
- let deferred3_0;
439
- let deferred3_1;
440
- try {
441
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
442
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
443
- const len0 = WASM_VECTOR_LEN;
444
- wasm.get_necessary_data_list_js(retptr, ptr0, len0);
445
- var r0 = getInt32Memory0()[retptr / 4 + 0];
446
- var r1 = getInt32Memory0()[retptr / 4 + 1];
447
- var r2 = getInt32Memory0()[retptr / 4 + 2];
448
- var r3 = getInt32Memory0()[retptr / 4 + 3];
449
- var ptr2 = r0;
450
- var len2 = r1;
451
- if (r3) {
452
- ptr2 = 0; len2 = 0;
453
- throw takeObject(r2);
454
- }
455
- deferred3_0 = ptr2;
456
- deferred3_1 = len2;
457
- return getStringFromWasm0(ptr2, len2);
458
- } finally {
459
- wasm.__wbindgen_add_to_stack_pointer(16);
460
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
461
- }
462
- };
463
-
464
- /**
465
- * @param {string} tx_hex
466
- * @param {string} validation_context
467
- * @returns {string}
477
+ * @param {string} cbor_hex
478
+ * @returns {any}
468
479
  */
469
- module.exports.validate_transaction_js = function(tx_hex, validation_context) {
470
- let deferred4_0;
471
- let deferred4_1;
480
+ module.exports.cbor_to_json = function(cbor_hex) {
472
481
  try {
473
482
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
474
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
483
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
475
484
  const len0 = WASM_VECTOR_LEN;
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);
485
+ wasm.cbor_to_json(retptr, ptr0, len0);
479
486
  var r0 = getInt32Memory0()[retptr / 4 + 0];
480
487
  var r1 = getInt32Memory0()[retptr / 4 + 1];
481
488
  var r2 = getInt32Memory0()[retptr / 4 + 2];
482
- var r3 = getInt32Memory0()[retptr / 4 + 3];
483
- var ptr3 = r0;
484
- var len3 = r1;
485
- if (r3) {
486
- ptr3 = 0; len3 = 0;
487
- throw takeObject(r2);
489
+ if (r2) {
490
+ throw takeObject(r1);
488
491
  }
489
- deferred4_0 = ptr3;
490
- deferred4_1 = len3;
491
- return getStringFromWasm0(ptr3, len3);
492
+ return takeObject(r0);
492
493
  } finally {
493
494
  wasm.__wbindgen_add_to_stack_pointer(16);
494
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
495
495
  }
496
496
  };
497
497
 
@@ -1080,6 +1080,69 @@ function handleError(f, args) {
1080
1080
  }
1081
1081
  }
1082
1082
  /**
1083
+ */
1084
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1085
+ /**
1086
+ */
1087
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1088
+ /**
1089
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1090
+ */
1091
+ LargestFirst:0,"0":"LargestFirst",
1092
+ /**
1093
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1094
+ */
1095
+ RandomImprove:1,"1":"RandomImprove",
1096
+ /**
1097
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1098
+ */
1099
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1100
+ /**
1101
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1102
+ */
1103
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1104
+ /**
1105
+ */
1106
+ 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", });
1107
+ /**
1108
+ */
1109
+ 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", });
1110
+ /**
1111
+ */
1112
+ module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1113
+ /**
1114
+ */
1115
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1116
+ /**
1117
+ */
1118
+ 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", });
1119
+ /**
1120
+ */
1121
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1122
+ /**
1123
+ */
1124
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1125
+ /**
1126
+ */
1127
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1128
+ /**
1129
+ * Used to choosed the schema for a script JSON string
1130
+ */
1131
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1132
+ /**
1133
+ */
1134
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1135
+ /**
1136
+ * Each new language uses a different namespace for hashing its script
1137
+ * This is because you could have a language where the same bytes have different semantics
1138
+ * So this avoids scripts in different languages mapping to the same hash
1139
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1140
+ */
1141
+ module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1142
+ /**
1143
+ */
1144
+ module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1145
+ /**
1083
1146
  * JSON <-> PlutusData conversion schemas.
1084
1147
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
1085
1148
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -1132,100 +1195,37 @@ BasicConversions:0,"0":"BasicConversions",
1132
1195
  DetailedSchema:1,"1":"DetailedSchema", });
1133
1196
  /**
1134
1197
  */
1135
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1136
- /**
1137
- */
1138
- module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
1198
+ 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", });
1139
1199
  /**
1140
1200
  */
1141
1201
  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", });
1142
1202
  /**
1143
1203
  */
1144
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1145
- /**
1146
- */
1147
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1148
- /**
1149
- */
1150
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1151
- /**
1152
- */
1153
- module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1154
- /**
1155
- */
1156
- 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", });
1157
- /**
1158
- * Each new language uses a different namespace for hashing its script
1159
- * This is because you could have a language where the same bytes have different semantics
1160
- * So this avoids scripts in different languages mapping to the same hash
1161
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1162
- */
1163
- module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1164
- /**
1165
- */
1166
1204
  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", });
1167
1205
  /**
1168
1206
  */
1169
- 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", });
1170
- /**
1171
- */
1172
1207
  module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1173
1208
  /**
1174
1209
  */
1175
- 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", });
1176
- /**
1177
- */
1178
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1179
- /**
1180
- */
1181
- 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", });
1182
- /**
1183
- */
1184
- 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", });
1210
+ 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", });
1185
1211
  /**
1186
1212
  */
1187
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1213
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1188
1214
  /**
1189
1215
  */
1190
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1216
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1191
1217
  /**
1192
1218
  */
1193
- 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", });
1219
+ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1194
1220
  /**
1195
1221
  */
1196
1222
  module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1197
1223
  /**
1198
1224
  */
1199
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1200
- /**
1201
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1202
- */
1203
- LargestFirst:0,"0":"LargestFirst",
1204
- /**
1205
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1206
- */
1207
- RandomImprove:1,"1":"RandomImprove",
1208
- /**
1209
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1210
- */
1211
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1212
- /**
1213
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1214
- */
1215
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1216
- /**
1217
- */
1218
- module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1219
- /**
1220
- */
1221
- module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1222
- /**
1223
- * Used to choosed the schema for a script JSON string
1224
- */
1225
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1225
+ 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", });
1226
1226
  /**
1227
1227
  */
1228
- module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1228
+ 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", });
1229
1229
 
1230
1230
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1231
1231
  ? { register: () => {}, unregister: () => {} }
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
7
  export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
8
+ export function get_necessary_data_list_js(a: number, b: number, c: number): void;
9
+ export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
9
10
  export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
10
11
  export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
11
12
  export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
12
13
  export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
13
- export function get_necessary_data_list_js(a: number, b: number, c: number): void;
14
- export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
14
+ export function cbor_to_json(a: number, b: number, c: 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
@@ -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.26",
7
+ "version": "0.1.0-beta.28",
8
8
  "license": "Apache-2.0",
9
9
  "files": [
10
10
  "node/cquisitor_lib_bg.wasm",