@anastasia-labs/cardano-multiplatform-lib-nodejs 6.0.1-1 → 6.0.1-2

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.
@@ -189,30 +189,9 @@ export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNod
189
189
  export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
190
190
  /**
191
191
  */
192
- export enum RedeemersKind {
193
- ArrLegacyRedeemer = 0,
194
- MapRedeemerKeyToRedeemerVal = 1,
195
- }
196
- /**
197
- */
198
- export enum Language {
199
- PlutusV1 = 0,
200
- PlutusV2 = 1,
201
- PlutusV3 = 2,
202
- }
203
- /**
204
- */
205
- export enum AuxiliaryDataKind {
206
- Shelley = 0,
207
- ShelleyMA = 1,
208
- Conway = 2,
209
- }
210
- /**
211
- */
212
- export enum MetadataJsonSchema {
213
- NoConversions = 0,
214
- BasicConversions = 1,
215
- DetailedSchema = 2,
192
+ export enum ChunkableStringKind {
193
+ Single = 0,
194
+ Chunked = 1,
216
195
  }
217
196
  /**
218
197
  */
@@ -242,13 +221,18 @@ export enum AddressHeaderKind {
242
221
  }
243
222
  /**
244
223
  */
245
- export enum RedeemerTag {
246
- Spend = 0,
247
- Mint = 1,
248
- Cert = 2,
249
- Reward = 3,
250
- Voting = 4,
251
- Proposing = 5,
224
+ export enum RelayKind {
225
+ SingleHostAddr = 0,
226
+ SingleHostName = 1,
227
+ MultiHostName = 2,
228
+ }
229
+ /**
230
+ */
231
+ export enum DRepKind {
232
+ Key = 0,
233
+ Script = 1,
234
+ AlwaysAbstain = 2,
235
+ AlwaysNoConfidence = 3,
252
236
  }
253
237
  /**
254
238
  */
@@ -258,133 +242,133 @@ export enum StakeDistributionKind {
258
242
  }
259
243
  /**
260
244
  */
261
- export enum Vote {
262
- No = 0,
263
- Yes = 1,
264
- Abstain = 2,
245
+ export enum VoterKind {
246
+ ConstitutionalCommitteeHotKeyHash = 0,
247
+ ConstitutionalCommitteeHotScriptHash = 1,
248
+ DRepKeyHash = 2,
249
+ DRepScriptHash = 3,
250
+ StakingPoolKeyHash = 4,
265
251
  }
266
252
  /**
253
+ * Which version of the CIP25 spec to use. See CIP25 for details.
254
+ * This will change how things are encoded but for the most part contains
255
+ * the same information.
267
256
  */
268
- export enum CoinSelectionStrategyCIP2 {
257
+ export enum CIP25Version {
269
258
  /**
270
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
259
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
271
260
  */
272
- LargestFirst = 0,
261
+ V1 = 0,
273
262
  /**
274
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
263
+ * Second version of CIP25. Supports any type of asset names.
275
264
  */
276
- RandomImprove = 1,
265
+ V2 = 1,
266
+ }
277
267
  /**
278
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
279
268
  */
280
- LargestFirstMultiAsset = 2,
269
+ export enum NonceKind {
270
+ Identity = 0,
271
+ Hash = 1,
272
+ }
281
273
  /**
282
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
283
274
  */
284
- RandomImproveMultiAsset = 3,
275
+ export enum MetadataJsonSchema {
276
+ NoConversions = 0,
277
+ BasicConversions = 1,
278
+ DetailedSchema = 2,
285
279
  }
286
280
  /**
287
281
  */
288
- export enum AddressKind {
289
- Base = 0,
290
- Ptr = 1,
291
- Enterprise = 2,
292
- Reward = 3,
293
- Byron = 4,
282
+ export enum AuxiliaryDataKind {
283
+ Shelley = 0,
284
+ ShelleyMA = 1,
285
+ Conway = 2,
294
286
  }
295
287
  /**
296
288
  */
297
- export enum TransactionMetadatumKind {
298
- Map = 0,
299
- List = 1,
300
- Int = 2,
301
- Bytes = 3,
302
- Text = 4,
289
+ export enum CredentialKind {
290
+ PubKey = 0,
291
+ Script = 1,
303
292
  }
304
293
  /**
305
- * JSON <-> PlutusData conversion schemas.
306
- * Follows ScriptDataJsonSchema in cardano-cli defined at:
307
- * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
308
- *
309
- * All methods here have the following restrictions due to limitations on dependencies:
310
- * * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
311
- * * Hex strings for bytes don't accept odd-length (half-byte) strings.
312
- * cardano-cli seems to support these however but it seems to be different than just 0-padding
313
- * on either side when tested so proceed with caution
314
294
  */
315
- export enum CardanoNodePlutusDatumSchema {
295
+ export enum ChangeSelectionAlgo {
296
+ Default = 0,
297
+ }
316
298
  /**
317
- * ScriptDataJsonNoSchema in cardano-node.
318
- *
319
- * This is the format used by --script-data-value in cardano-cli
320
- * This tries to accept most JSON but does not support the full spectrum of Plutus datums.
321
- * From JSON:
322
- * * null/true/false/floats NOT supported
323
- * * strings starting with 0x are treated as hex bytes. All other strings are encoded as their utf8 bytes.
324
- * To JSON:
325
- * * ConstrPlutusData not supported in ANY FORM (neither keys nor values)
326
- * * Lists not supported in keys
327
- * * Maps not supported in keys
328
299
  */
329
- BasicConversions = 0,
300
+ export enum Vote {
301
+ No = 0,
302
+ Yes = 1,
303
+ Abstain = 2,
304
+ }
330
305
  /**
331
- * ScriptDataJsonDetailedSchema in cardano-node.
332
- *
333
- * This is the format used by --script-data-file in cardano-cli
334
- * This covers almost all (only minor exceptions) Plutus datums, but the JSON must conform to a strict schema.
335
- * The schema specifies that ALL keys and ALL values must be contained in a JSON map with 2 cases:
336
- * 1. For ConstrPlutusData there must be two fields "constructor" contianing a number and "fields" containing its fields
337
- * e.g. { "constructor": 2, "fields": [{"int": 2}, {"list": [{"bytes": "CAFEF00D"}]}]}
338
- * 2. For all other cases there must be only one field named "int", "bytes", "list" or "map"
339
- * BigInteger's value is a JSON number e.g. {"int": 100}
340
- * Bytes' value is a hex string representing the bytes WITHOUT any prefix e.g. {"bytes": "CAFEF00D"}
341
- * Lists' value is a JSON list of its elements encoded via the same schema e.g. {"list": [{"bytes": "CAFEF00D"}]}
342
- * Maps' value is a JSON list of objects, one for each key-value pair in the map, with keys "k" and "v"
343
- * respectively with their values being the plutus datum encoded via this same schema
344
- * e.g. {"map": [
345
- * {"k": {"int": 2}, "v": {"int": 5}},
346
- * {"k": {"map": [{"k": {"list": [{"int": 1}]}, "v": {"bytes": "FF03"}}]}, "v": {"list": []}}
347
- * ]}
348
- * From JSON:
349
- * * null/true/false/floats NOT supported
350
- * * the JSON must conform to a very specific schema
351
- * To JSON:
352
- * * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
353
306
  */
354
- DetailedSchema = 1,
307
+ export enum DatumOptionKind {
308
+ Hash = 0,
309
+ Datum = 1,
355
310
  }
356
311
  /**
357
312
  */
358
- export enum NativeScriptKind {
359
- ScriptPubkey = 0,
360
- ScriptAll = 1,
361
- ScriptAny = 2,
362
- ScriptNOfK = 3,
363
- ScriptInvalidBefore = 4,
364
- ScriptInvalidHereafter = 5,
313
+ export enum DelegationDistributionKind {
314
+ Weighted = 0,
315
+ Legacy = 1,
365
316
  }
366
317
  /**
367
318
  */
368
- export enum ChunkableStringKind {
369
- Single = 0,
370
- Chunked = 1,
319
+ export enum TransactionOutputKind {
320
+ AlonzoFormatTxOut = 0,
321
+ ConwayFormatTxOut = 1,
371
322
  }
372
323
  /**
373
324
  */
374
- export enum DRepKind {
375
- Key = 0,
376
- Script = 1,
377
- AlwaysAbstain = 2,
378
- AlwaysNoConfidence = 3,
325
+ export enum RedeemerTag {
326
+ Spend = 0,
327
+ Mint = 1,
328
+ Cert = 2,
329
+ Reward = 3,
330
+ Voting = 4,
331
+ Proposing = 5,
379
332
  }
380
333
  /**
381
334
  */
382
- export enum PlutusDataKind {
383
- ConstrPlutusData = 0,
384
- Map = 1,
385
- List = 2,
386
- Integer = 3,
387
- Bytes = 4,
335
+ export enum Language {
336
+ PlutusV1 = 0,
337
+ PlutusV2 = 1,
338
+ PlutusV3 = 2,
339
+ }
340
+ /**
341
+ */
342
+ export enum SpendingDataKind {
343
+ SpendingDataPubKey = 0,
344
+ SpendingDataScript = 1,
345
+ SpendingDataRedeem = 2,
346
+ }
347
+ /**
348
+ */
349
+ export enum GovActionKind {
350
+ ParameterChangeAction = 0,
351
+ HardForkInitiationAction = 1,
352
+ TreasuryWithdrawalsAction = 2,
353
+ NoConfidence = 3,
354
+ UpdateCommittee = 4,
355
+ NewConstitution = 5,
356
+ InfoAction = 6,
357
+ }
358
+ /**
359
+ */
360
+ export enum RedeemersKind {
361
+ ArrLegacyRedeemer = 0,
362
+ MapRedeemerKeyToRedeemerVal = 1,
363
+ }
364
+ /**
365
+ */
366
+ export enum AddressKind {
367
+ Base = 0,
368
+ Ptr = 1,
369
+ Enterprise = 2,
370
+ Reward = 3,
371
+ Byron = 4,
388
372
  }
389
373
  /**
390
374
  */
@@ -395,6 +379,16 @@ export enum ByronAddrType {
395
379
  }
396
380
  /**
397
381
  */
382
+ export enum NativeScriptKind {
383
+ ScriptPubkey = 0,
384
+ ScriptAll = 1,
385
+ ScriptAny = 2,
386
+ ScriptNOfK = 3,
387
+ ScriptInvalidBefore = 4,
388
+ ScriptInvalidHereafter = 5,
389
+ }
390
+ /**
391
+ */
398
392
  export enum CertificateKind {
399
393
  StakeRegistration = 0,
400
394
  StakeDeregistration = 1,
@@ -416,87 +410,93 @@ export enum CertificateKind {
416
410
  }
417
411
  /**
418
412
  */
419
- export enum VoterKind {
420
- ConstitutionalCommitteeHotKeyHash = 0,
421
- ConstitutionalCommitteeHotScriptHash = 1,
422
- DRepKeyHash = 2,
423
- DRepScriptHash = 3,
424
- StakingPoolKeyHash = 4,
425
- }
426
- /**
427
- */
428
- export enum DelegationDistributionKind {
429
- Weighted = 0,
430
- Legacy = 1,
413
+ export enum PlutusDataKind {
414
+ ConstrPlutusData = 0,
415
+ Map = 1,
416
+ List = 2,
417
+ Integer = 3,
418
+ Bytes = 4,
431
419
  }
432
420
  /**
433
421
  */
434
- export enum RelayKind {
435
- SingleHostAddr = 0,
436
- SingleHostName = 1,
437
- MultiHostName = 2,
422
+ export enum TransactionMetadatumKind {
423
+ Map = 0,
424
+ List = 1,
425
+ Int = 2,
426
+ Bytes = 3,
427
+ Text = 4,
438
428
  }
439
429
  /**
440
430
  */
441
- export enum CredentialKind {
442
- PubKey = 0,
443
- Script = 1,
444
- }
431
+ export enum CoinSelectionStrategyCIP2 {
445
432
  /**
433
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
446
434
  */
447
- export enum ChangeSelectionAlgo {
448
- Default = 0,
449
- }
435
+ LargestFirst = 0,
450
436
  /**
437
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
451
438
  */
452
- export enum SpendingDataKind {
453
- SpendingDataPubKey = 0,
454
- SpendingDataScript = 1,
455
- SpendingDataRedeem = 2,
456
- }
439
+ RandomImprove = 1,
457
440
  /**
441
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
458
442
  */
459
- export enum TransactionOutputKind {
460
- AlonzoFormatTxOut = 0,
461
- ConwayFormatTxOut = 1,
462
- }
443
+ LargestFirstMultiAsset = 2,
463
444
  /**
445
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
464
446
  */
465
- export enum NonceKind {
466
- Identity = 0,
467
- Hash = 1,
447
+ RandomImproveMultiAsset = 3,
468
448
  }
469
449
  /**
470
- * Which version of the CIP25 spec to use. See CIP25 for details.
471
- * This will change how things are encoded but for the most part contains
472
- * the same information.
473
- */
474
- export enum CIP25Version {
475
- /**
476
- * Initial version of CIP25 with only string (utf8) asset names allowed.
477
- */
478
- V1 = 0,
479
- /**
480
- * Second version of CIP25. Supports any type of asset names.
450
+ * JSON <-> PlutusData conversion schemas.
451
+ * Follows ScriptDataJsonSchema in cardano-cli defined at:
452
+ * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
453
+ *
454
+ * All methods here have the following restrictions due to limitations on dependencies:
455
+ * * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
456
+ * * Hex strings for bytes don't accept odd-length (half-byte) strings.
457
+ * cardano-cli seems to support these however but it seems to be different than just 0-padding
458
+ * on either side when tested so proceed with caution
481
459
  */
482
- V2 = 1,
483
- }
460
+ export enum CardanoNodePlutusDatumSchema {
484
461
  /**
462
+ * ScriptDataJsonNoSchema in cardano-node.
463
+ *
464
+ * This is the format used by --script-data-value in cardano-cli
465
+ * This tries to accept most JSON but does not support the full spectrum of Plutus datums.
466
+ * From JSON:
467
+ * * null/true/false/floats NOT supported
468
+ * * strings starting with 0x are treated as hex bytes. All other strings are encoded as their utf8 bytes.
469
+ * To JSON:
470
+ * * ConstrPlutusData not supported in ANY FORM (neither keys nor values)
471
+ * * Lists not supported in keys
472
+ * * Maps not supported in keys
485
473
  */
486
- export enum GovActionKind {
487
- ParameterChangeAction = 0,
488
- HardForkInitiationAction = 1,
489
- TreasuryWithdrawalsAction = 2,
490
- NoConfidence = 3,
491
- UpdateCommittee = 4,
492
- NewConstitution = 5,
493
- InfoAction = 6,
494
- }
474
+ BasicConversions = 0,
495
475
  /**
476
+ * ScriptDataJsonDetailedSchema in cardano-node.
477
+ *
478
+ * This is the format used by --script-data-file in cardano-cli
479
+ * This covers almost all (only minor exceptions) Plutus datums, but the JSON must conform to a strict schema.
480
+ * The schema specifies that ALL keys and ALL values must be contained in a JSON map with 2 cases:
481
+ * 1. For ConstrPlutusData there must be two fields "constructor" contianing a number and "fields" containing its fields
482
+ * e.g. { "constructor": 2, "fields": [{"int": 2}, {"list": [{"bytes": "CAFEF00D"}]}]}
483
+ * 2. For all other cases there must be only one field named "int", "bytes", "list" or "map"
484
+ * BigInteger's value is a JSON number e.g. {"int": 100}
485
+ * Bytes' value is a hex string representing the bytes WITHOUT any prefix e.g. {"bytes": "CAFEF00D"}
486
+ * Lists' value is a JSON list of its elements encoded via the same schema e.g. {"list": [{"bytes": "CAFEF00D"}]}
487
+ * Maps' value is a JSON list of objects, one for each key-value pair in the map, with keys "k" and "v"
488
+ * respectively with their values being the plutus datum encoded via this same schema
489
+ * e.g. {"map": [
490
+ * {"k": {"int": 2}, "v": {"int": 5}},
491
+ * {"k": {"map": [{"k": {"list": [{"int": 1}]}, "v": {"bytes": "FF03"}}]}, "v": {"list": []}}
492
+ * ]}
493
+ * From JSON:
494
+ * * null/true/false/floats NOT supported
495
+ * * the JSON must conform to a very specific schema
496
+ * To JSON:
497
+ * * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
496
498
  */
497
- export enum DatumOptionKind {
498
- Hash = 0,
499
- Datum = 1,
499
+ DetailedSchema = 1,
500
500
  }
501
501
  /**
502
502
  */
@@ -4,26 +4,6 @@ imports['__wbindgen_placeholder__'] = module.exports;
4
4
  let wasm;
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
- const heap = new Array(128).fill(undefined);
8
-
9
- heap.push(undefined, null, true, false);
10
-
11
- function getObject(idx) { return heap[idx]; }
12
-
13
- let heap_next = heap.length;
14
-
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
19
- }
20
-
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
25
- }
26
-
27
7
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
8
 
29
9
  cachedTextDecoder.decode();
@@ -42,6 +22,12 @@ function getStringFromWasm0(ptr, len) {
42
22
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
43
23
  }
44
24
 
25
+ const heap = new Array(128).fill(undefined);
26
+
27
+ heap.push(undefined, null, true, false);
28
+
29
+ let heap_next = heap.length;
30
+
45
31
  function addHeapObject(obj) {
46
32
  if (heap_next === heap.length) heap.push(heap.length + 1);
47
33
  const idx = heap_next;
@@ -51,6 +37,20 @@ function addHeapObject(obj) {
51
37
  return idx;
52
38
  }
53
39
 
40
+ function getObject(idx) { return heap[idx]; }
41
+
42
+ function dropObject(idx) {
43
+ if (idx < 132) return;
44
+ heap[idx] = heap_next;
45
+ heap_next = idx;
46
+ }
47
+
48
+ function takeObject(idx) {
49
+ const ret = getObject(idx);
50
+ dropObject(idx);
51
+ return ret;
52
+ }
53
+
54
54
  function handleError(f, args) {
55
55
  try {
56
56
  return f.apply(this, args);
@@ -769,34 +769,102 @@ function getArrayU64FromWasm0(ptr, len) {
769
769
  }
770
770
  /**
771
771
  */
772
- module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
772
+ module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
773
773
  /**
774
774
  */
775
- module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
775
+ module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
776
+ /**
777
+ * Careful: this enum doesn't include the network ID part of the header
778
+ * ex: base address isn't 0b0000_0000 but instead 0b0000
779
+ * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
780
+ */
781
+ module.exports.AddressHeaderKind = Object.freeze({ BasePaymentKeyStakeKey:0,"0":"BasePaymentKeyStakeKey",BasePaymentScriptStakeKey:1,"1":"BasePaymentScriptStakeKey",BasePaymentKeyStakeScript:2,"2":"BasePaymentKeyStakeScript",BasePaymentScriptStakeScript:3,"3":"BasePaymentScriptStakeScript",PointerKey:4,"4":"PointerKey",PointerScript:5,"5":"PointerScript",EnterpriseKey:6,"6":"EnterpriseKey",EnterpriseScript:7,"7":"EnterpriseScript",Byron:8,"8":"Byron",RewardKey:14,"14":"RewardKey",RewardScript:15,"15":"RewardScript", });
776
782
  /**
777
783
  */
778
- module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
784
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
785
+ /**
786
+ */
787
+ module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
788
+ /**
789
+ */
790
+ module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
791
+ /**
792
+ */
793
+ 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", });
794
+ /**
795
+ * Which version of the CIP25 spec to use. See CIP25 for details.
796
+ * This will change how things are encoded but for the most part contains
797
+ * the same information.
798
+ */
799
+ module.exports.CIP25Version = Object.freeze({
800
+ /**
801
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
802
+ */
803
+ V1:0,"0":"V1",
804
+ /**
805
+ * Second version of CIP25. Supports any type of asset names.
806
+ */
807
+ V2:1,"1":"V2", });
808
+ /**
809
+ */
810
+ module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
779
811
  /**
780
812
  */
781
813
  module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
782
814
  /**
783
815
  */
784
- module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
816
+ module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
785
817
  /**
786
- * Careful: this enum doesn't include the network ID part of the header
787
- * ex: base address isn't 0b0000_0000 but instead 0b0000
788
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
789
818
  */
790
- module.exports.AddressHeaderKind = Object.freeze({ BasePaymentKeyStakeKey:0,"0":"BasePaymentKeyStakeKey",BasePaymentScriptStakeKey:1,"1":"BasePaymentScriptStakeKey",BasePaymentKeyStakeScript:2,"2":"BasePaymentKeyStakeScript",BasePaymentScriptStakeScript:3,"3":"BasePaymentScriptStakeScript",PointerKey:4,"4":"PointerKey",PointerScript:5,"5":"PointerScript",EnterpriseKey:6,"6":"EnterpriseKey",EnterpriseScript:7,"7":"EnterpriseScript",Byron:8,"8":"Byron",RewardKey:14,"14":"RewardKey",RewardScript:15,"15":"RewardScript", });
819
+ module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
820
+ /**
821
+ */
822
+ module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
823
+ /**
824
+ */
825
+ module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
826
+ /**
827
+ */
828
+ module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
829
+ /**
830
+ */
831
+ module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
832
+ /**
833
+ */
834
+ module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
791
835
  /**
792
836
  */
793
837
  module.exports.RedeemerTag = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Voting:4,"4":"Voting",Proposing:5,"5":"Proposing", });
794
838
  /**
795
839
  */
796
- module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
840
+ module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
797
841
  /**
798
842
  */
799
- module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
843
+ module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
844
+ /**
845
+ */
846
+ module.exports.GovActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidence:3,"3":"NoConfidence",UpdateCommittee:4,"4":"UpdateCommittee",NewConstitution:5,"5":"NewConstitution",InfoAction:6,"6":"InfoAction", });
847
+ /**
848
+ */
849
+ module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
850
+ /**
851
+ */
852
+ module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Ptr:1,"1":"Ptr",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron", });
853
+ /**
854
+ */
855
+ module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
856
+ /**
857
+ */
858
+ module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",ScriptInvalidBefore:4,"4":"ScriptInvalidBefore",ScriptInvalidHereafter:5,"5":"ScriptInvalidHereafter", });
859
+ /**
860
+ */
861
+ 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",RegCert:5,"5":"RegCert",UnregCert:6,"6":"UnregCert",VoteDelegCert:7,"7":"VoteDelegCert",StakeVoteDelegCert:8,"8":"StakeVoteDelegCert",StakeRegDelegCert:9,"9":"StakeRegDelegCert",VoteRegDelegCert:10,"10":"VoteRegDelegCert",StakeVoteRegDelegCert:11,"11":"StakeVoteRegDelegCert",AuthCommitteeHotCert:12,"12":"AuthCommitteeHotCert",ResignCommitteeColdCert:13,"13":"ResignCommitteeColdCert",RegDrepCert:14,"14":"RegDrepCert",UnregDrepCert:15,"15":"UnregDrepCert",UpdateDrepCert:16,"16":"UpdateDrepCert", });
862
+ /**
863
+ */
864
+ 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", });
865
+ /**
866
+ */
867
+ module.exports.TransactionMetadatumKind = Object.freeze({ Map:0,"0":"Map",List:1,"1":"List",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
800
868
  /**
801
869
  */
802
870
  module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
@@ -817,12 +885,6 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
817
885
  */
818
886
  RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
819
887
  /**
820
- */
821
- module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Ptr:1,"1":"Ptr",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron", });
822
- /**
823
- */
824
- module.exports.TransactionMetadatumKind = Object.freeze({ Map:0,"0":"Map",List:1,"1":"List",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
825
- /**
826
888
  * JSON <-> PlutusData conversion schemas.
827
889
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
828
890
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -873,68 +935,6 @@ BasicConversions:0,"0":"BasicConversions",
873
935
  * * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
874
936
  */
875
937
  DetailedSchema:1,"1":"DetailedSchema", });
876
- /**
877
- */
878
- module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",ScriptInvalidBefore:4,"4":"ScriptInvalidBefore",ScriptInvalidHereafter:5,"5":"ScriptInvalidHereafter", });
879
- /**
880
- */
881
- module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
882
- /**
883
- */
884
- module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
885
- /**
886
- */
887
- 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", });
888
- /**
889
- */
890
- module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
891
- /**
892
- */
893
- 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",RegCert:5,"5":"RegCert",UnregCert:6,"6":"UnregCert",VoteDelegCert:7,"7":"VoteDelegCert",StakeVoteDelegCert:8,"8":"StakeVoteDelegCert",StakeRegDelegCert:9,"9":"StakeRegDelegCert",VoteRegDelegCert:10,"10":"VoteRegDelegCert",StakeVoteRegDelegCert:11,"11":"StakeVoteRegDelegCert",AuthCommitteeHotCert:12,"12":"AuthCommitteeHotCert",ResignCommitteeColdCert:13,"13":"ResignCommitteeColdCert",RegDrepCert:14,"14":"RegDrepCert",UnregDrepCert:15,"15":"UnregDrepCert",UpdateDrepCert:16,"16":"UpdateDrepCert", });
894
- /**
895
- */
896
- 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", });
897
- /**
898
- */
899
- module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
900
- /**
901
- */
902
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
903
- /**
904
- */
905
- module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
906
- /**
907
- */
908
- module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
909
- /**
910
- */
911
- module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
912
- /**
913
- */
914
- module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
915
- /**
916
- */
917
- module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
918
- /**
919
- * Which version of the CIP25 spec to use. See CIP25 for details.
920
- * This will change how things are encoded but for the most part contains
921
- * the same information.
922
- */
923
- module.exports.CIP25Version = Object.freeze({
924
- /**
925
- * Initial version of CIP25 with only string (utf8) asset names allowed.
926
- */
927
- V1:0,"0":"V1",
928
- /**
929
- * Second version of CIP25. Supports any type of asset names.
930
- */
931
- V2:1,"1":"V2", });
932
- /**
933
- */
934
- module.exports.GovActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidence:3,"3":"NoConfidence",UpdateCommittee:4,"4":"UpdateCommittee",NewConstitution:5,"5":"NewConstitution",InfoAction:6,"6":"InfoAction", });
935
- /**
936
- */
937
- module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
938
938
 
939
939
  const AddrAttributesFinalization = (typeof FinalizationRegistry === 'undefined')
940
940
  ? { register: () => {}, unregister: () => {} }
@@ -44508,15 +44508,15 @@ class WithdrawalBuilderResult {
44508
44508
  }
44509
44509
  module.exports.WithdrawalBuilderResult = WithdrawalBuilderResult;
44510
44510
 
44511
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
44512
- takeObject(arg0);
44513
- };
44514
-
44515
44511
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
44516
44512
  const ret = getStringFromWasm0(arg0, arg1);
44517
44513
  return addHeapObject(ret);
44518
44514
  };
44519
44515
 
44516
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
44517
+ takeObject(arg0);
44518
+ };
44519
+
44520
44520
  module.exports.__wbindgen_throw = function(arg0, arg1) {
44521
44521
  throw new Error(getStringFromWasm0(arg0, arg1));
44522
44522
  };
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@anastasia-labs/cardano-multiplatform-lib-nodejs",
3
3
  "description": "Multiplatform WASM SDK containing the most common CML crates for Cardano blockchain functionality",
4
- "version": "6.0.1-1",
4
+ "version": "6.0.1-2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",