@anastasia-labs/cardano-multiplatform-lib-nodejs 6.0.0-2 → 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,16 +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 RelayKind {
193
- SingleHostAddr = 0,
194
- SingleHostName = 1,
195
- MultiHostName = 2,
196
- }
197
- /**
198
- */
199
- export enum RedeemersKind {
200
- ArrLegacyRedeemer = 0,
201
- MapRedeemerKeyToRedeemerVal = 1,
192
+ export enum ChunkableStringKind {
193
+ Single = 0,
194
+ Chunked = 1,
202
195
  }
203
196
  /**
204
197
  */
@@ -209,16 +202,29 @@ export enum Vote {
209
202
  }
210
203
  /**
211
204
  */
212
- export enum AuxiliaryDataKind {
213
- Shelley = 0,
214
- ShelleyMA = 1,
215
- Conway = 2,
205
+ export enum RelayKind {
206
+ SingleHostAddr = 0,
207
+ SingleHostName = 1,
208
+ MultiHostName = 2,
216
209
  }
217
210
  /**
218
211
  */
219
- export enum NonceKind {
220
- Identity = 0,
221
- Hash = 1,
212
+ export enum VoterKind {
213
+ ConstitutionalCommitteeHotKeyHash = 0,
214
+ ConstitutionalCommitteeHotScriptHash = 1,
215
+ DRepKeyHash = 2,
216
+ DRepScriptHash = 3,
217
+ StakingPoolKeyHash = 4,
218
+ }
219
+ /**
220
+ */
221
+ export enum RedeemerTag {
222
+ Spend = 0,
223
+ Mint = 1,
224
+ Cert = 2,
225
+ Reward = 3,
226
+ Voting = 4,
227
+ Proposing = 5,
222
228
  }
223
229
  /**
224
230
  * Careful: this enum doesn't include the network ID part of the header
@@ -240,22 +246,22 @@ export enum AddressHeaderKind {
240
246
  }
241
247
  /**
242
248
  */
243
- export enum VoterKind {
244
- ConstitutionalCommitteeHotKeyHash = 0,
245
- ConstitutionalCommitteeHotScriptHash = 1,
246
- DRepKeyHash = 2,
247
- DRepScriptHash = 3,
248
- StakingPoolKeyHash = 4,
249
+ export enum TransactionMetadatumKind {
250
+ Map = 0,
251
+ List = 1,
252
+ Int = 2,
253
+ Bytes = 3,
254
+ Text = 4,
249
255
  }
250
256
  /**
251
257
  */
252
- export enum RedeemerTag {
253
- Spend = 0,
254
- Mint = 1,
255
- Cert = 2,
256
- Reward = 3,
257
- Voting = 4,
258
- Proposing = 5,
258
+ export enum NativeScriptKind {
259
+ ScriptPubkey = 0,
260
+ ScriptAll = 1,
261
+ ScriptAny = 2,
262
+ ScriptNOfK = 3,
263
+ ScriptInvalidBefore = 4,
264
+ ScriptInvalidHereafter = 5,
259
265
  }
260
266
  /**
261
267
  */
@@ -265,56 +271,30 @@ export enum DatumOptionKind {
265
271
  }
266
272
  /**
267
273
  */
268
- export enum CoinSelectionStrategyCIP2 {
269
- /**
270
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
271
- */
272
- LargestFirst = 0,
273
- /**
274
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
275
- */
276
- RandomImprove = 1,
277
- /**
278
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
279
- */
280
- LargestFirstMultiAsset = 2,
281
- /**
282
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
283
- */
284
- RandomImproveMultiAsset = 3,
285
- }
286
- /**
287
- */
288
- export enum NativeScriptKind {
289
- ScriptPubkey = 0,
290
- ScriptAll = 1,
291
- ScriptAny = 2,
292
- ScriptNOfK = 3,
293
- ScriptInvalidBefore = 4,
294
- ScriptInvalidHereafter = 5,
274
+ export enum Language {
275
+ PlutusV1 = 0,
276
+ PlutusV2 = 1,
277
+ PlutusV3 = 2,
295
278
  }
296
279
  /**
297
280
  */
298
- export enum PlutusDataKind {
299
- ConstrPlutusData = 0,
300
- Map = 1,
301
- List = 2,
302
- Integer = 3,
303
- Bytes = 4,
281
+ export enum MetadataJsonSchema {
282
+ NoConversions = 0,
283
+ BasicConversions = 1,
284
+ DetailedSchema = 2,
304
285
  }
305
286
  /**
306
287
  */
307
- export enum StakeDistributionKind {
308
- SingleKey = 0,
309
- BootstrapEra = 1,
288
+ export enum AuxiliaryDataKind {
289
+ Shelley = 0,
290
+ ShelleyMA = 1,
291
+ Conway = 2,
310
292
  }
311
293
  /**
312
294
  */
313
- export enum DRepKind {
314
- Key = 0,
315
- Script = 1,
316
- AlwaysAbstain = 2,
317
- AlwaysNoConfidence = 3,
295
+ export enum NonceKind {
296
+ Identity = 0,
297
+ Hash = 1,
318
298
  }
319
299
  /**
320
300
  */
@@ -329,18 +309,11 @@ export enum GovActionKind {
329
309
  }
330
310
  /**
331
311
  */
332
- export enum ChunkableStringKind {
333
- Single = 0,
334
- Chunked = 1,
335
- }
336
- /**
337
- */
338
- export enum AddressKind {
339
- Base = 0,
340
- Ptr = 1,
341
- Enterprise = 2,
342
- Reward = 3,
343
- Byron = 4,
312
+ export enum DRepKind {
313
+ Key = 0,
314
+ Script = 1,
315
+ AlwaysAbstain = 2,
316
+ AlwaysNoConfidence = 3,
344
317
  }
345
318
  /**
346
319
  * JSON <-> PlutusData conversion schemas.
@@ -396,19 +369,44 @@ export enum CardanoNodePlutusDatumSchema {
396
369
  }
397
370
  /**
398
371
  */
399
- export enum TransactionMetadatumKind {
400
- Map = 0,
401
- List = 1,
402
- Int = 2,
403
- Bytes = 3,
404
- Text = 4,
372
+ export enum AddressKind {
373
+ Base = 0,
374
+ Ptr = 1,
375
+ Enterprise = 2,
376
+ Reward = 3,
377
+ Byron = 4,
405
378
  }
406
379
  /**
407
380
  */
408
- export enum Language {
409
- PlutusV1 = 0,
410
- PlutusV2 = 1,
411
- PlutusV3 = 2,
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
+ */
394
+ export enum ChangeSelectionAlgo {
395
+ Default = 0,
396
+ }
397
+ /**
398
+ */
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,
412
410
  }
413
411
  /**
414
412
  */
@@ -417,6 +415,21 @@ export enum TransactionOutputKind {
417
415
  ConwayFormatTxOut = 1,
418
416
  }
419
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
+ /**
420
433
  */
421
434
  export enum CertificateKind {
422
435
  StakeRegistration = 0,
@@ -439,51 +452,23 @@ export enum CertificateKind {
439
452
  }
440
453
  /**
441
454
  */
442
- export enum MetadataJsonSchema {
443
- NoConversions = 0,
444
- BasicConversions = 1,
445
- DetailedSchema = 2,
446
- }
447
- /**
448
- * Which version of the CIP25 spec to use. See CIP25 for details.
449
- * This will change how things are encoded but for the most part contains
450
- * the same information.
451
- */
452
- export enum CIP25Version {
453
- /**
454
- * Initial version of CIP25 with only string (utf8) asset names allowed.
455
- */
456
- V1 = 0,
457
- /**
458
- * Second version of CIP25. Supports any type of asset names.
459
- */
460
- V2 = 1,
461
- }
455
+ export enum CoinSelectionStrategyCIP2 {
462
456
  /**
457
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
463
458
  */
464
- export enum SpendingDataKind {
465
- SpendingDataPubKey = 0,
466
- SpendingDataScript = 1,
467
- SpendingDataRedeem = 2,
468
- }
459
+ LargestFirst = 0,
469
460
  /**
461
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
470
462
  */
471
- export enum CredentialKind {
472
- PubKey = 0,
473
- Script = 1,
474
- }
463
+ RandomImprove = 1,
475
464
  /**
465
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
476
466
  */
477
- export enum ScriptKind {
478
- Native = 0,
479
- PlutusV1 = 1,
480
- PlutusV2 = 2,
481
- PlutusV3 = 3,
482
- }
467
+ LargestFirstMultiAsset = 2,
483
468
  /**
469
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
484
470
  */
485
- export enum ChangeSelectionAlgo {
486
- Default = 0,
471
+ RandomImproveMultiAsset = 3,
487
472
  }
488
473
  /**
489
474
  */
@@ -500,6 +485,21 @@ export enum ByronAddrType {
500
485
  }
501
486
  /**
502
487
  */
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
+ }
501
+ /**
502
+ */
503
503
  export class AddrAttributes {
504
504
  free(): void;
505
505
  /**
@@ -767,19 +767,19 @@ 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", });
770
+ module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
771
771
  /**
772
772
  */
773
- module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
773
+ module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
774
774
  /**
775
775
  */
776
- module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
776
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
777
777
  /**
778
778
  */
779
- module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
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", });
780
780
  /**
781
781
  */
782
- module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
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", });
783
783
  /**
784
784
  * Careful: this enum doesn't include the network ID part of the header
785
785
  * ex: base address isn't 0b0000_0000 but instead 0b0000
@@ -788,53 +788,31 @@ module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":
788
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", });
789
789
  /**
790
790
  */
791
- 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", });
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", });
792
792
  /**
793
793
  */
794
- 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
+ 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", });
795
795
  /**
796
796
  */
797
797
  module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
798
798
  /**
799
799
  */
800
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
801
- /**
802
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
803
- */
804
- LargestFirst:0,"0":"LargestFirst",
805
- /**
806
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
807
- */
808
- RandomImprove:1,"1":"RandomImprove",
809
- /**
810
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
811
- */
812
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
813
- /**
814
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
815
- */
816
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
817
- /**
818
- */
819
- 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", });
800
+ module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
820
801
  /**
821
802
  */
822
- 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", });
803
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
823
804
  /**
824
805
  */
825
- module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
806
+ module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
826
807
  /**
827
808
  */
828
- module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
809
+ module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
829
810
  /**
830
811
  */
831
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", });
832
813
  /**
833
814
  */
834
- module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
835
- /**
836
- */
837
- 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", });
815
+ module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
838
816
  /**
839
817
  * JSON <-> PlutusData conversion schemas.
840
818
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -888,19 +866,25 @@ BasicConversions:0,"0":"BasicConversions",
888
866
  DetailedSchema:1,"1":"DetailedSchema", });
889
867
  /**
890
868
  */
891
- 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", });
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", });
892
870
  /**
893
871
  */
894
- module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
872
+ module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
895
873
  /**
896
874
  */
897
- module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
875
+ module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
898
876
  /**
899
877
  */
900
- 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", });
878
+ module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
901
879
  /**
902
880
  */
903
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
881
+ module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
882
+ /**
883
+ */
884
+ module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
885
+ /**
886
+ */
887
+ module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
904
888
  /**
905
889
  * Which version of the CIP25 spec to use. See CIP25 for details.
906
890
  * This will change how things are encoded but for the most part contains
@@ -917,22 +901,38 @@ V1:0,"0":"V1",
917
901
  V2:1,"1":"V2", });
918
902
  /**
919
903
  */
920
- module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
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", });
921
905
  /**
922
906
  */
923
- module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
907
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
924
908
  /**
909
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
925
910
  */
926
- module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
911
+ LargestFirst:0,"0":"LargestFirst",
927
912
  /**
913
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
928
914
  */
929
- module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
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", });
930
924
  /**
931
925
  */
932
926
  module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
933
927
  /**
934
928
  */
935
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-2",
4
+ "version": "6.0.0-3",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",