@anastasia-labs/cardano-multiplatform-lib-nodejs 6.0.0-12 → 6.0.0-13

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