@anastasia-labs/cardano-multiplatform-lib-nodejs 6.0.0-6 → 6.0.0-7

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,23 +189,55 @@ 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 ChangeSelectionAlgo {
193
- Default = 0,
192
+ export enum CertificateKind {
193
+ StakeRegistration = 0,
194
+ StakeDeregistration = 1,
195
+ StakeDelegation = 2,
196
+ PoolRegistration = 3,
197
+ PoolRetirement = 4,
198
+ RegCert = 5,
199
+ UnregCert = 6,
200
+ VoteDelegCert = 7,
201
+ StakeVoteDelegCert = 8,
202
+ StakeRegDelegCert = 9,
203
+ VoteRegDelegCert = 10,
204
+ StakeVoteRegDelegCert = 11,
205
+ AuthCommitteeHotCert = 12,
206
+ ResignCommitteeColdCert = 13,
207
+ RegDrepCert = 14,
208
+ UnregDrepCert = 15,
209
+ UpdateDrepCert = 16,
194
210
  }
195
211
  /**
196
212
  */
197
- export enum TransactionOutputKind {
198
- AlonzoFormatTxOut = 0,
199
- ConwayFormatTxOut = 1,
213
+ export enum ByronAddrType {
214
+ PublicKey = 0,
215
+ Script = 1,
216
+ Redeem = 2,
200
217
  }
201
218
  /**
202
219
  */
203
- export enum AddressKind {
204
- Base = 0,
205
- Ptr = 1,
206
- Enterprise = 2,
207
- Reward = 3,
208
- Byron = 4,
220
+ export enum Language {
221
+ PlutusV1 = 0,
222
+ PlutusV2 = 1,
223
+ PlutusV3 = 2,
224
+ }
225
+ /**
226
+ */
227
+ export enum TransactionMetadatumKind {
228
+ Map = 0,
229
+ List = 1,
230
+ Int = 2,
231
+ Bytes = 3,
232
+ Text = 4,
233
+ }
234
+ /**
235
+ */
236
+ export enum ScriptKind {
237
+ Native = 0,
238
+ PlutusV1 = 1,
239
+ PlutusV2 = 2,
240
+ PlutusV3 = 3,
209
241
  }
210
242
  /**
211
243
  * Careful: this enum doesn't include the network ID part of the header
@@ -227,41 +259,9 @@ export enum AddressHeaderKind {
227
259
  }
228
260
  /**
229
261
  */
230
- export enum NativeScriptKind {
231
- ScriptPubkey = 0,
232
- ScriptAll = 1,
233
- ScriptAny = 2,
234
- ScriptNOfK = 3,
235
- ScriptInvalidBefore = 4,
236
- ScriptInvalidHereafter = 5,
237
- }
238
- /**
239
- */
240
- export enum AuxiliaryDataKind {
241
- Shelley = 0,
242
- ShelleyMA = 1,
243
- Conway = 2,
244
- }
245
- /**
246
- */
247
- export enum CertificateKind {
248
- StakeRegistration = 0,
249
- StakeDeregistration = 1,
250
- StakeDelegation = 2,
251
- PoolRegistration = 3,
252
- PoolRetirement = 4,
253
- RegCert = 5,
254
- UnregCert = 6,
255
- VoteDelegCert = 7,
256
- StakeVoteDelegCert = 8,
257
- StakeRegDelegCert = 9,
258
- VoteRegDelegCert = 10,
259
- StakeVoteRegDelegCert = 11,
260
- AuthCommitteeHotCert = 12,
261
- ResignCommitteeColdCert = 13,
262
- RegDrepCert = 14,
263
- UnregDrepCert = 15,
264
- UpdateDrepCert = 16,
262
+ export enum DelegationDistributionKind {
263
+ Weighted = 0,
264
+ Legacy = 1,
265
265
  }
266
266
  /**
267
267
  */
@@ -274,9 +274,64 @@ export enum PlutusDataKind {
274
274
  }
275
275
  /**
276
276
  */
277
- export enum DelegationDistributionKind {
278
- Weighted = 0,
279
- Legacy = 1,
277
+ export enum CoinSelectionStrategyCIP2 {
278
+ /**
279
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
280
+ */
281
+ LargestFirst = 0,
282
+ /**
283
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
284
+ */
285
+ RandomImprove = 1,
286
+ /**
287
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
288
+ */
289
+ LargestFirstMultiAsset = 2,
290
+ /**
291
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
292
+ */
293
+ RandomImproveMultiAsset = 3,
294
+ }
295
+ /**
296
+ */
297
+ export enum CredentialKind {
298
+ PubKey = 0,
299
+ Script = 1,
300
+ }
301
+ /**
302
+ */
303
+ export enum MetadataJsonSchema {
304
+ NoConversions = 0,
305
+ BasicConversions = 1,
306
+ DetailedSchema = 2,
307
+ }
308
+ /**
309
+ * Which version of the CIP25 spec to use. See CIP25 for details.
310
+ * This will change how things are encoded but for the most part contains
311
+ * the same information.
312
+ */
313
+ export enum CIP25Version {
314
+ /**
315
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
316
+ */
317
+ V1 = 0,
318
+ /**
319
+ * Second version of CIP25. Supports any type of asset names.
320
+ */
321
+ V2 = 1,
322
+ }
323
+ /**
324
+ */
325
+ export enum NonceKind {
326
+ Identity = 0,
327
+ Hash = 1,
328
+ }
329
+ /**
330
+ */
331
+ export enum SpendingDataKind {
332
+ SpendingDataPubKey = 0,
333
+ SpendingDataScript = 1,
334
+ SpendingDataRedeem = 2,
280
335
  }
281
336
  /**
282
337
  * JSON <-> PlutusData conversion schemas.
@@ -332,78 +387,39 @@ export enum CardanoNodePlutusDatumSchema {
332
387
  }
333
388
  /**
334
389
  */
335
- export enum DatumOptionKind {
336
- Hash = 0,
337
- Datum = 1,
338
- }
339
- /**
340
- */
341
- export enum DRepKind {
342
- Key = 0,
343
- Script = 1,
344
- AlwaysAbstain = 2,
345
- AlwaysNoConfidence = 3,
346
- }
347
- /**
348
- */
349
- export enum NonceKind {
350
- Identity = 0,
351
- Hash = 1,
352
- }
353
- /**
354
- */
355
- export enum ByronAddrType {
356
- PublicKey = 0,
357
- Script = 1,
358
- Redeem = 2,
359
- }
360
- /**
361
- */
362
- export enum Language {
363
- PlutusV1 = 0,
364
- PlutusV2 = 1,
365
- PlutusV3 = 2,
366
- }
367
- /**
368
- */
369
390
  export enum StakeDistributionKind {
370
391
  SingleKey = 0,
371
392
  BootstrapEra = 1,
372
393
  }
373
394
  /**
374
395
  */
375
- export enum MetadataJsonSchema {
376
- NoConversions = 0,
377
- BasicConversions = 1,
378
- DetailedSchema = 2,
379
- }
380
- /**
381
- */
382
- export enum TransactionMetadatumKind {
383
- Map = 0,
384
- List = 1,
385
- Int = 2,
386
- Bytes = 3,
387
- Text = 4,
388
- }
389
- /**
390
- */
391
- export enum RedeemersKind {
392
- ArrLegacyRedeemer = 0,
393
- MapRedeemerKeyToRedeemerVal = 1,
396
+ export enum GovActionKind {
397
+ ParameterChangeAction = 0,
398
+ HardForkInitiationAction = 1,
399
+ TreasuryWithdrawalsAction = 2,
400
+ NoConfidence = 3,
401
+ UpdateCommittee = 4,
402
+ NewConstitution = 5,
403
+ InfoAction = 6,
394
404
  }
395
405
  /**
396
406
  */
397
- export enum ChunkableStringKind {
398
- Single = 0,
399
- Chunked = 1,
407
+ export enum AddressKind {
408
+ Base = 0,
409
+ Ptr = 1,
410
+ Enterprise = 2,
411
+ Reward = 3,
412
+ Byron = 4,
400
413
  }
401
414
  /**
402
415
  */
403
- export enum RelayKind {
404
- SingleHostAddr = 0,
405
- SingleHostName = 1,
406
- MultiHostName = 2,
416
+ export enum NativeScriptKind {
417
+ ScriptPubkey = 0,
418
+ ScriptAll = 1,
419
+ ScriptAny = 2,
420
+ ScriptNOfK = 3,
421
+ ScriptInvalidBefore = 4,
422
+ ScriptInvalidHereafter = 5,
407
423
  }
408
424
  /**
409
425
  */
@@ -417,86 +433,70 @@ export enum RedeemerTag {
417
433
  }
418
434
  /**
419
435
  */
420
- export enum SpendingDataKind {
421
- SpendingDataPubKey = 0,
422
- SpendingDataScript = 1,
423
- SpendingDataRedeem = 2,
436
+ export enum ChangeSelectionAlgo {
437
+ Default = 0,
424
438
  }
425
439
  /**
426
440
  */
427
- export enum CoinSelectionStrategyCIP2 {
428
- /**
429
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
430
- */
431
- LargestFirst = 0,
432
- /**
433
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
434
- */
435
- RandomImprove = 1,
436
- /**
437
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
438
- */
439
- LargestFirstMultiAsset = 2,
440
- /**
441
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
442
- */
443
- RandomImproveMultiAsset = 3,
441
+ export enum DRepKind {
442
+ Key = 0,
443
+ Script = 1,
444
+ AlwaysAbstain = 2,
445
+ AlwaysNoConfidence = 3,
444
446
  }
445
447
  /**
446
448
  */
447
- export enum GovActionKind {
448
- ParameterChangeAction = 0,
449
- HardForkInitiationAction = 1,
450
- TreasuryWithdrawalsAction = 2,
451
- NoConfidence = 3,
452
- UpdateCommittee = 4,
453
- NewConstitution = 5,
454
- InfoAction = 6,
449
+ export enum AuxiliaryDataKind {
450
+ Shelley = 0,
451
+ ShelleyMA = 1,
452
+ Conway = 2,
455
453
  }
456
454
  /**
457
455
  */
458
- export enum Vote {
459
- No = 0,
460
- Yes = 1,
461
- Abstain = 2,
456
+ export enum DatumOptionKind {
457
+ Hash = 0,
458
+ Datum = 1,
462
459
  }
463
460
  /**
464
- * Which version of the CIP25 spec to use. See CIP25 for details.
465
- * This will change how things are encoded but for the most part contains
466
- * the same information.
467
461
  */
468
- export enum CIP25Version {
462
+ export enum VoterKind {
463
+ ConstitutionalCommitteeHotKeyHash = 0,
464
+ ConstitutionalCommitteeHotScriptHash = 1,
465
+ DRepKeyHash = 2,
466
+ DRepScriptHash = 3,
467
+ StakingPoolKeyHash = 4,
468
+ }
469
469
  /**
470
- * Initial version of CIP25 with only string (utf8) asset names allowed.
471
470
  */
472
- V1 = 0,
471
+ export enum TransactionOutputKind {
472
+ AlonzoFormatTxOut = 0,
473
+ ConwayFormatTxOut = 1,
474
+ }
473
475
  /**
474
- * Second version of CIP25. Supports any type of asset names.
475
476
  */
476
- V2 = 1,
477
+ export enum RelayKind {
478
+ SingleHostAddr = 0,
479
+ SingleHostName = 1,
480
+ MultiHostName = 2,
477
481
  }
478
482
  /**
479
483
  */
480
- export enum ScriptKind {
481
- Native = 0,
482
- PlutusV1 = 1,
483
- PlutusV2 = 2,
484
- PlutusV3 = 3,
484
+ export enum ChunkableStringKind {
485
+ Single = 0,
486
+ Chunked = 1,
485
487
  }
486
488
  /**
487
489
  */
488
- export enum CredentialKind {
489
- PubKey = 0,
490
- Script = 1,
490
+ export enum RedeemersKind {
491
+ ArrLegacyRedeemer = 0,
492
+ MapRedeemerKeyToRedeemerVal = 1,
491
493
  }
492
494
  /**
493
495
  */
494
- export enum VoterKind {
495
- ConstitutionalCommitteeHotKeyHash = 0,
496
- ConstitutionalCommitteeHotScriptHash = 1,
497
- DRepKeyHash = 2,
498
- DRepScriptHash = 3,
499
- StakingPoolKeyHash = 4,
496
+ export enum Vote {
497
+ No = 0,
498
+ Yes = 1,
499
+ Abstain = 2,
500
500
  }
501
501
  /**
502
502
  */
@@ -767,13 +767,19 @@ function getArrayU64FromWasm0(ptr, len) {
767
767
  }
768
768
  /**
769
769
  */
770
- module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
770
+ 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", });
771
771
  /**
772
772
  */
773
- module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
773
+ module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
774
774
  /**
775
775
  */
776
- 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", });
776
+ module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
777
+ /**
778
+ */
779
+ 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", });
780
+ /**
781
+ */
782
+ module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
777
783
  /**
778
784
  * Careful: this enum doesn't include the network ID part of the header
779
785
  * ex: base address isn't 0b0000_0000 but instead 0b0000
@@ -782,19 +788,55 @@ module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Ptr:1,"1":"Ptr",E
782
788
  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", });
783
789
  /**
784
790
  */
785
- 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", });
791
+ module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
786
792
  /**
787
793
  */
788
- module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
794
+ 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", });
789
795
  /**
790
796
  */
791
- 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", });
797
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
792
798
  /**
799
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
793
800
  */
794
- 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", });
801
+ LargestFirst:0,"0":"LargestFirst",
795
802
  /**
803
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
796
804
  */
797
- module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
805
+ RandomImprove:1,"1":"RandomImprove",
806
+ /**
807
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
808
+ */
809
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
810
+ /**
811
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
812
+ */
813
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
814
+ /**
815
+ */
816
+ module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
817
+ /**
818
+ */
819
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
820
+ /**
821
+ * Which version of the CIP25 spec to use. See CIP25 for details.
822
+ * This will change how things are encoded but for the most part contains
823
+ * the same information.
824
+ */
825
+ module.exports.CIP25Version = Object.freeze({
826
+ /**
827
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
828
+ */
829
+ V1:0,"0":"V1",
830
+ /**
831
+ * Second version of CIP25. Supports any type of asset names.
832
+ */
833
+ V2:1,"1":"V2", });
834
+ /**
835
+ */
836
+ module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
837
+ /**
838
+ */
839
+ module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
798
840
  /**
799
841
  * JSON <-> PlutusData conversion schemas.
800
842
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -848,91 +890,49 @@ BasicConversions:0,"0":"BasicConversions",
848
890
  DetailedSchema:1,"1":"DetailedSchema", });
849
891
  /**
850
892
  */
851
- module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
852
- /**
853
- */
854
- module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
855
- /**
856
- */
857
- module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
858
- /**
859
- */
860
- module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
861
- /**
862
- */
863
- module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
864
- /**
865
- */
866
893
  module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
867
894
  /**
868
895
  */
869
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
870
- /**
871
- */
872
- 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", });
873
- /**
874
- */
875
- module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
896
+ 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", });
876
897
  /**
877
898
  */
878
- module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
899
+ 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", });
879
900
  /**
880
901
  */
881
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
902
+ 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", });
882
903
  /**
883
904
  */
884
905
  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", });
885
906
  /**
886
907
  */
887
- module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
888
- /**
889
- */
890
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
891
- /**
892
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
893
- */
894
- LargestFirst:0,"0":"LargestFirst",
895
- /**
896
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
897
- */
898
- RandomImprove:1,"1":"RandomImprove",
908
+ module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
899
909
  /**
900
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
901
910
  */
902
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
911
+ module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
903
912
  /**
904
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
905
913
  */
906
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
914
+ module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
907
915
  /**
908
916
  */
909
- 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", });
917
+ module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
910
918
  /**
911
919
  */
912
- module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
913
- /**
914
- * Which version of the CIP25 spec to use. See CIP25 for details.
915
- * This will change how things are encoded but for the most part contains
916
- * the same information.
917
- */
918
- module.exports.CIP25Version = Object.freeze({
920
+ 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", });
919
921
  /**
920
- * Initial version of CIP25 with only string (utf8) asset names allowed.
921
922
  */
922
- V1:0,"0":"V1",
923
+ module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
923
924
  /**
924
- * Second version of CIP25. Supports any type of asset names.
925
925
  */
926
- V2:1,"1":"V2", });
926
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
927
927
  /**
928
928
  */
929
- module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
929
+ module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
930
930
  /**
931
931
  */
932
- module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
932
+ module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
933
933
  /**
934
934
  */
935
- 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", });
935
+ module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
936
936
 
937
937
  const AddrAttributesFinalization = (typeof FinalizationRegistry === 'undefined')
938
938
  ? { register: () => {}, unregister: () => {} }
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-6",
4
+ "version": "6.0.0-7",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",