@anastasia-labs/cardano-multiplatform-lib-nodejs 5.3.1-4 → 5.3.1-5

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