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

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