@anastasia-labs/cardano-multiplatform-lib-nodejs 6.0.0-10 → 6.0.0-13

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,15 +189,40 @@ 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 CredentialKind {
193
- PubKey = 0,
194
- Script = 1,
192
+ export enum DatumOptionKind {
193
+ Hash = 0,
194
+ Datum = 1,
195
195
  }
196
196
  /**
197
197
  */
198
- export enum TransactionOutputKind {
199
- AlonzoFormatTxOut = 0,
200
- ConwayFormatTxOut = 1,
198
+ export enum NativeScriptKind {
199
+ ScriptPubkey = 0,
200
+ ScriptAll = 1,
201
+ ScriptAny = 2,
202
+ ScriptNOfK = 3,
203
+ ScriptInvalidBefore = 4,
204
+ ScriptInvalidHereafter = 5,
205
+ }
206
+ /**
207
+ */
208
+ export enum CertificateKind {
209
+ StakeRegistration = 0,
210
+ StakeDeregistration = 1,
211
+ StakeDelegation = 2,
212
+ PoolRegistration = 3,
213
+ PoolRetirement = 4,
214
+ RegCert = 5,
215
+ UnregCert = 6,
216
+ VoteDelegCert = 7,
217
+ StakeVoteDelegCert = 8,
218
+ StakeRegDelegCert = 9,
219
+ VoteRegDelegCert = 10,
220
+ StakeVoteRegDelegCert = 11,
221
+ AuthCommitteeHotCert = 12,
222
+ ResignCommitteeColdCert = 13,
223
+ RegDrepCert = 14,
224
+ UnregDrepCert = 15,
225
+ UpdateDrepCert = 16,
201
226
  }
202
227
  /**
203
228
  */
@@ -232,83 +257,12 @@ export enum GovActionKind {
232
257
  }
233
258
  /**
234
259
  */
235
- export enum RedeemerTag {
236
- Spend = 0,
237
- Mint = 1,
238
- Cert = 2,
239
- Reward = 3,
240
- Voting = 4,
241
- Proposing = 5,
242
- }
243
- /**
244
- */
245
- export enum ByronAddrType {
246
- PublicKey = 0,
247
- Script = 1,
248
- Redeem = 2,
249
- }
250
- /**
251
- */
252
- export enum VoterKind {
253
- ConstitutionalCommitteeHotKeyHash = 0,
254
- ConstitutionalCommitteeHotScriptHash = 1,
255
- DRepKeyHash = 2,
256
- DRepScriptHash = 3,
257
- StakingPoolKeyHash = 4,
258
- }
259
- /**
260
- */
261
260
  export enum Vote {
262
261
  No = 0,
263
262
  Yes = 1,
264
263
  Abstain = 2,
265
264
  }
266
265
  /**
267
- * Careful: this enum doesn't include the network ID part of the header
268
- * ex: base address isn't 0b0000_0000 but instead 0b0000
269
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
270
- */
271
- export enum AddressHeaderKind {
272
- BasePaymentKeyStakeKey = 0,
273
- BasePaymentScriptStakeKey = 1,
274
- BasePaymentKeyStakeScript = 2,
275
- BasePaymentScriptStakeScript = 3,
276
- PointerKey = 4,
277
- PointerScript = 5,
278
- EnterpriseKey = 6,
279
- EnterpriseScript = 7,
280
- Byron = 8,
281
- RewardKey = 14,
282
- RewardScript = 15,
283
- }
284
- /**
285
- */
286
- export enum DatumOptionKind {
287
- Hash = 0,
288
- Datum = 1,
289
- }
290
- /**
291
- */
292
- export enum RedeemersKind {
293
- ArrLegacyRedeemer = 0,
294
- MapRedeemerKeyToRedeemerVal = 1,
295
- }
296
- /**
297
- */
298
- export enum AddressKind {
299
- Base = 0,
300
- Ptr = 1,
301
- Enterprise = 2,
302
- Reward = 3,
303
- Byron = 4,
304
- }
305
- /**
306
- */
307
- export enum ChunkableStringKind {
308
- Single = 0,
309
- Chunked = 1,
310
- }
311
- /**
312
266
  * JSON <-> PlutusData conversion schemas.
313
267
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
314
268
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -362,28 +316,36 @@ export enum CardanoNodePlutusDatumSchema {
362
316
  }
363
317
  /**
364
318
  */
365
- export enum StakeDistributionKind {
366
- SingleKey = 0,
367
- BootstrapEra = 1,
368
- }
369
- /**
370
- */
371
- export enum ChangeSelectionAlgo {
372
- Default = 0,
319
+ export enum TransactionMetadatumKind {
320
+ Map = 0,
321
+ List = 1,
322
+ Int = 2,
323
+ Bytes = 3,
324
+ Text = 4,
373
325
  }
374
326
  /**
327
+ * Careful: this enum doesn't include the network ID part of the header
328
+ * ex: base address isn't 0b0000_0000 but instead 0b0000
329
+ * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
375
330
  */
376
- export enum Language {
377
- PlutusV1 = 0,
378
- PlutusV2 = 1,
379
- PlutusV3 = 2,
331
+ export enum AddressHeaderKind {
332
+ BasePaymentKeyStakeKey = 0,
333
+ BasePaymentScriptStakeKey = 1,
334
+ BasePaymentKeyStakeScript = 2,
335
+ BasePaymentScriptStakeScript = 3,
336
+ PointerKey = 4,
337
+ PointerScript = 5,
338
+ EnterpriseKey = 6,
339
+ EnterpriseScript = 7,
340
+ Byron = 8,
341
+ RewardKey = 14,
342
+ RewardScript = 15,
380
343
  }
381
344
  /**
382
345
  */
383
- export enum RelayKind {
384
- SingleHostAddr = 0,
385
- SingleHostName = 1,
386
- MultiHostName = 2,
346
+ export enum StakeDistributionKind {
347
+ SingleKey = 0,
348
+ BootstrapEra = 1,
387
349
  }
388
350
  /**
389
351
  */
@@ -396,20 +358,13 @@ export enum PlutusDataKind {
396
358
  }
397
359
  /**
398
360
  */
399
- export enum MetadataJsonSchema {
400
- NoConversions = 0,
401
- BasicConversions = 1,
402
- DetailedSchema = 2,
403
- }
404
- /**
405
- */
406
- export enum NativeScriptKind {
407
- ScriptPubkey = 0,
408
- ScriptAll = 1,
409
- ScriptAny = 2,
410
- ScriptNOfK = 3,
411
- ScriptInvalidBefore = 4,
412
- ScriptInvalidHereafter = 5,
361
+ export enum RedeemerTag {
362
+ Spend = 0,
363
+ Mint = 1,
364
+ Cert = 2,
365
+ Reward = 3,
366
+ Voting = 4,
367
+ Proposing = 5,
413
368
  }
414
369
  /**
415
370
  */
@@ -421,11 +376,47 @@ export enum ScriptKind {
421
376
  }
422
377
  /**
423
378
  */
379
+ export enum MetadataJsonSchema {
380
+ NoConversions = 0,
381
+ BasicConversions = 1,
382
+ DetailedSchema = 2,
383
+ }
384
+ /**
385
+ */
386
+ export enum AuxiliaryDataKind {
387
+ Shelley = 0,
388
+ ShelleyMA = 1,
389
+ Conway = 2,
390
+ }
391
+ /**
392
+ */
424
393
  export enum NonceKind {
425
394
  Identity = 0,
426
395
  Hash = 1,
427
396
  }
428
397
  /**
398
+ * Which version of the CIP25 spec to use. See CIP25 for details.
399
+ * This will change how things are encoded but for the most part contains
400
+ * the same information.
401
+ */
402
+ export enum CIP25Version {
403
+ /**
404
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
405
+ */
406
+ V1 = 0,
407
+ /**
408
+ * Second version of CIP25. Supports any type of asset names.
409
+ */
410
+ V2 = 1,
411
+ }
412
+ /**
413
+ */
414
+ export enum Language {
415
+ PlutusV1 = 0,
416
+ PlutusV2 = 1,
417
+ PlutusV3 = 2,
418
+ }
419
+ /**
429
420
  */
430
421
  export enum SpendingDataKind {
431
422
  SpendingDataPubKey = 0,
@@ -434,19 +425,9 @@ export enum SpendingDataKind {
434
425
  }
435
426
  /**
436
427
  */
437
- export enum TransactionMetadatumKind {
438
- Map = 0,
439
- List = 1,
440
- Int = 2,
441
- Bytes = 3,
442
- Text = 4,
443
- }
444
- /**
445
- */
446
- export enum AuxiliaryDataKind {
447
- Shelley = 0,
448
- ShelleyMA = 1,
449
- Conway = 2,
428
+ export enum TransactionOutputKind {
429
+ AlonzoFormatTxOut = 0,
430
+ ConwayFormatTxOut = 1,
450
431
  }
451
432
  /**
452
433
  */
@@ -458,45 +439,64 @@ export enum DRepKind {
458
439
  }
459
440
  /**
460
441
  */
461
- export enum CertificateKind {
462
- StakeRegistration = 0,
463
- StakeDeregistration = 1,
464
- StakeDelegation = 2,
465
- PoolRegistration = 3,
466
- PoolRetirement = 4,
467
- RegCert = 5,
468
- UnregCert = 6,
469
- VoteDelegCert = 7,
470
- StakeVoteDelegCert = 8,
471
- StakeRegDelegCert = 9,
472
- VoteRegDelegCert = 10,
473
- StakeVoteRegDelegCert = 11,
474
- AuthCommitteeHotCert = 12,
475
- ResignCommitteeColdCert = 13,
476
- RegDrepCert = 14,
477
- UnregDrepCert = 15,
478
- UpdateDrepCert = 16,
479
- }
480
- /**
481
- */
482
442
  export enum DelegationDistributionKind {
483
443
  Weighted = 0,
484
444
  Legacy = 1,
485
445
  }
486
446
  /**
487
- * Which version of the CIP25 spec to use. See CIP25 for details.
488
- * This will change how things are encoded but for the most part contains
489
- * the same information.
490
447
  */
491
- export enum CIP25Version {
448
+ export enum ChangeSelectionAlgo {
449
+ Default = 0,
450
+ }
492
451
  /**
493
- * Initial version of CIP25 with only string (utf8) asset names allowed.
494
452
  */
495
- V1 = 0,
453
+ export enum ChunkableStringKind {
454
+ Single = 0,
455
+ Chunked = 1,
456
+ }
496
457
  /**
497
- * Second version of CIP25. Supports any type of asset names.
498
458
  */
499
- V2 = 1,
459
+ export enum ByronAddrType {
460
+ PublicKey = 0,
461
+ Script = 1,
462
+ Redeem = 2,
463
+ }
464
+ /**
465
+ */
466
+ export enum CredentialKind {
467
+ PubKey = 0,
468
+ Script = 1,
469
+ }
470
+ /**
471
+ */
472
+ export enum RedeemersKind {
473
+ ArrLegacyRedeemer = 0,
474
+ MapRedeemerKeyToRedeemerVal = 1,
475
+ }
476
+ /**
477
+ */
478
+ export enum VoterKind {
479
+ ConstitutionalCommitteeHotKeyHash = 0,
480
+ ConstitutionalCommitteeHotScriptHash = 1,
481
+ DRepKeyHash = 2,
482
+ DRepScriptHash = 3,
483
+ StakingPoolKeyHash = 4,
484
+ }
485
+ /**
486
+ */
487
+ export enum RelayKind {
488
+ SingleHostAddr = 0,
489
+ SingleHostName = 1,
490
+ MultiHostName = 2,
491
+ }
492
+ /**
493
+ */
494
+ export enum AddressKind {
495
+ Base = 0,
496
+ Ptr = 1,
497
+ Enterprise = 2,
498
+ Reward = 3,
499
+ Byron = 4,
500
500
  }
501
501
  /**
502
502
  */
@@ -4,6 +4,26 @@ 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
+
7
27
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
8
28
 
9
29
  cachedTextDecoder.decode();
@@ -22,12 +42,6 @@ function getStringFromWasm0(ptr, len) {
22
42
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
23
43
  }
24
44
 
25
- const heap = new Array(128).fill(undefined);
26
-
27
- heap.push(undefined, null, true, false);
28
-
29
- let heap_next = heap.length;
30
-
31
45
  function addHeapObject(obj) {
32
46
  if (heap_next === heap.length) heap.push(heap.length + 1);
33
47
  const idx = heap_next;
@@ -37,20 +51,6 @@ function addHeapObject(obj) {
37
51
  return idx;
38
52
  }
39
53
 
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,10 +769,13 @@ function getArrayU64FromWasm0(ptr, len) {
769
769
  }
770
770
  /**
771
771
  */
772
- module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
772
+ module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
773
773
  /**
774
774
  */
775
- module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
775
+ 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", });
776
+ /**
777
+ */
778
+ 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", });
776
779
  /**
777
780
  */
778
781
  module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
@@ -797,35 +800,8 @@ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
797
800
  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", });
798
801
  /**
799
802
  */
800
- 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", });
801
- /**
802
- */
803
- module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
804
- /**
805
- */
806
- 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", });
807
- /**
808
- */
809
803
  module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
810
804
  /**
811
- * Careful: this enum doesn't include the network ID part of the header
812
- * ex: base address isn't 0b0000_0000 but instead 0b0000
813
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
814
- */
815
- 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", });
816
- /**
817
- */
818
- module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
819
- /**
820
- */
821
- module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
822
- /**
823
- */
824
- 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", });
825
- /**
826
- */
827
- module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
828
- /**
829
805
  * JSON <-> PlutusData conversion schemas.
830
806
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
831
807
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -878,63 +854,87 @@ BasicConversions:0,"0":"BasicConversions",
878
854
  DetailedSchema:1,"1":"DetailedSchema", });
879
855
  /**
880
856
  */
881
- module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
857
+ 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", });
882
858
  /**
859
+ * Careful: this enum doesn't include the network ID part of the header
860
+ * ex: base address isn't 0b0000_0000 but instead 0b0000
861
+ * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
883
862
  */
884
- module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
863
+ 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", });
885
864
  /**
886
865
  */
887
- module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
866
+ module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
888
867
  /**
889
868
  */
890
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
869
+ 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", });
891
870
  /**
892
871
  */
893
- 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", });
872
+ 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", });
894
873
  /**
895
874
  */
896
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
875
+ module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
897
876
  /**
898
877
  */
899
- 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", });
878
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
900
879
  /**
901
880
  */
902
- module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
881
+ module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
903
882
  /**
904
883
  */
905
884
  module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
906
885
  /**
886
+ * Which version of the CIP25 spec to use. See CIP25 for details.
887
+ * This will change how things are encoded but for the most part contains
888
+ * the same information.
907
889
  */
908
- module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
890
+ module.exports.CIP25Version = Object.freeze({
909
891
  /**
892
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
910
893
  */
911
- 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", });
894
+ V1:0,"0":"V1",
895
+ /**
896
+ * Second version of CIP25. Supports any type of asset names.
897
+ */
898
+ V2:1,"1":"V2", });
912
899
  /**
913
900
  */
914
- module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
901
+ module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
915
902
  /**
916
903
  */
917
- module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
904
+ module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
918
905
  /**
919
906
  */
920
- 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", });
907
+ module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
908
+ /**
909
+ */
910
+ module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
921
911
  /**
922
912
  */
923
913
  module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
924
914
  /**
925
- * Which version of the CIP25 spec to use. See CIP25 for details.
926
- * This will change how things are encoded but for the most part contains
927
- * the same information.
928
915
  */
929
- module.exports.CIP25Version = Object.freeze({
916
+ module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
930
917
  /**
931
- * Initial version of CIP25 with only string (utf8) asset names allowed.
932
918
  */
933
- V1:0,"0":"V1",
919
+ module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
934
920
  /**
935
- * Second version of CIP25. Supports any type of asset names.
936
921
  */
937
- V2:1,"1":"V2", });
922
+ module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
923
+ /**
924
+ */
925
+ module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
926
+ /**
927
+ */
928
+ module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
929
+ /**
930
+ */
931
+ 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", });
932
+ /**
933
+ */
934
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
935
+ /**
936
+ */
937
+ 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", });
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
+
44511
44515
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
44512
44516
  const ret = getStringFromWasm0(arg0, arg1);
44513
44517
  return addHeapObject(ret);
44514
44518
  };
44515
44519
 
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.0-10",
4
+ "version": "6.0.0-13",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",