@anastasia-labs/cardano-multiplatform-lib-nodejs 6.0.0-1 → 6.0.0-3

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