@anastasia-labs/cardano-multiplatform-lib-nodejs 6.0.0-2 → 6.0.0-4

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