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

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,63 +189,74 @@ 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 CredentialKind {
193
- PubKey = 0,
194
- Script = 1,
192
+ export enum MetadataJsonSchema {
193
+ NoConversions = 0,
194
+ BasicConversions = 1,
195
+ DetailedSchema = 2,
195
196
  }
196
197
  /**
197
198
  */
198
- export enum TransactionOutputKind {
199
- AlonzoFormatTxOut = 0,
200
- ConwayFormatTxOut = 1,
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,
201
207
  }
202
208
  /**
203
209
  */
204
- export enum CoinSelectionStrategyCIP2 {
205
- /**
206
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
207
- */
208
- LargestFirst = 0,
210
+ export enum Language {
211
+ PlutusV1 = 0,
212
+ PlutusV2 = 1,
213
+ PlutusV3 = 2,
214
+ }
209
215
  /**
210
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
211
216
  */
212
- RandomImprove = 1,
217
+ export enum DatumOptionKind {
218
+ Hash = 0,
219
+ Datum = 1,
220
+ }
213
221
  /**
214
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
215
222
  */
216
- LargestFirstMultiAsset = 2,
217
- /**
218
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
219
- */
220
- RandomImproveMultiAsset = 3,
223
+ export enum CertificateKind {
224
+ StakeRegistration = 0,
225
+ StakeDeregistration = 1,
226
+ StakeDelegation = 2,
227
+ PoolRegistration = 3,
228
+ PoolRetirement = 4,
229
+ RegCert = 5,
230
+ UnregCert = 6,
231
+ VoteDelegCert = 7,
232
+ StakeVoteDelegCert = 8,
233
+ StakeRegDelegCert = 9,
234
+ VoteRegDelegCert = 10,
235
+ StakeVoteRegDelegCert = 11,
236
+ AuthCommitteeHotCert = 12,
237
+ ResignCommitteeColdCert = 13,
238
+ RegDrepCert = 14,
239
+ UnregDrepCert = 15,
240
+ UpdateDrepCert = 16,
221
241
  }
222
242
  /**
223
243
  */
224
- export enum GovActionKind {
225
- ParameterChangeAction = 0,
226
- HardForkInitiationAction = 1,
227
- TreasuryWithdrawalsAction = 2,
228
- NoConfidence = 3,
229
- UpdateCommittee = 4,
230
- NewConstitution = 5,
231
- InfoAction = 6,
244
+ export enum ChangeSelectionAlgo {
245
+ Default = 0,
232
246
  }
233
247
  /**
234
248
  */
235
- export enum RedeemerTag {
236
- Spend = 0,
237
- Mint = 1,
238
- Cert = 2,
239
- Reward = 3,
240
- Voting = 4,
241
- Proposing = 5,
249
+ export enum RedeemersKind {
250
+ ArrLegacyRedeemer = 0,
251
+ MapRedeemerKeyToRedeemerVal = 1,
242
252
  }
243
253
  /**
244
254
  */
245
- export enum ByronAddrType {
246
- PublicKey = 0,
255
+ export enum DRepKind {
256
+ Key = 0,
247
257
  Script = 1,
248
- Redeem = 2,
258
+ AlwaysAbstain = 2,
259
+ AlwaysNoConfidence = 3,
249
260
  }
250
261
  /**
251
262
  */
@@ -257,13 +268,6 @@ export enum VoterKind {
257
268
  StakingPoolKeyHash = 4,
258
269
  }
259
270
  /**
260
- */
261
- export enum Vote {
262
- No = 0,
263
- Yes = 1,
264
- Abstain = 2,
265
- }
266
- /**
267
271
  * Careful: this enum doesn't include the network ID part of the header
268
272
  * ex: base address isn't 0b0000_0000 but instead 0b0000
269
273
  * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
@@ -283,15 +287,55 @@ export enum AddressHeaderKind {
283
287
  }
284
288
  /**
285
289
  */
286
- export enum DatumOptionKind {
287
- Hash = 0,
288
- Datum = 1,
290
+ export enum TransactionMetadatumKind {
291
+ Map = 0,
292
+ List = 1,
293
+ Int = 2,
294
+ Bytes = 3,
295
+ Text = 4,
289
296
  }
290
297
  /**
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.
291
301
  */
292
- export enum RedeemersKind {
293
- ArrLegacyRedeemer = 0,
294
- MapRedeemerKeyToRedeemerVal = 1,
302
+ export enum CIP25Version {
303
+ /**
304
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
305
+ */
306
+ V1 = 0,
307
+ /**
308
+ * Second version of CIP25. Supports any type of asset names.
309
+ */
310
+ V2 = 1,
311
+ }
312
+ /**
313
+ */
314
+ export enum PlutusDataKind {
315
+ ConstrPlutusData = 0,
316
+ Map = 1,
317
+ List = 2,
318
+ Integer = 3,
319
+ Bytes = 4,
320
+ }
321
+ /**
322
+ */
323
+ export enum Vote {
324
+ No = 0,
325
+ Yes = 1,
326
+ Abstain = 2,
327
+ }
328
+ /**
329
+ */
330
+ export enum CredentialKind {
331
+ PubKey = 0,
332
+ Script = 1,
333
+ }
334
+ /**
335
+ */
336
+ export enum DelegationDistributionKind {
337
+ Weighted = 0,
338
+ Legacy = 1,
295
339
  }
296
340
  /**
297
341
  */
@@ -303,12 +347,6 @@ export enum AddressKind {
303
347
  Byron = 4,
304
348
  }
305
349
  /**
306
- */
307
- export enum ChunkableStringKind {
308
- Single = 0,
309
- Chunked = 1,
310
- }
311
- /**
312
350
  * JSON <-> PlutusData conversion schemas.
313
351
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
314
352
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -362,141 +400,103 @@ export enum CardanoNodePlutusDatumSchema {
362
400
  }
363
401
  /**
364
402
  */
365
- export enum StakeDistributionKind {
366
- SingleKey = 0,
367
- BootstrapEra = 1,
403
+ export enum ScriptKind {
404
+ Native = 0,
405
+ PlutusV1 = 1,
406
+ PlutusV2 = 2,
407
+ PlutusV3 = 3,
368
408
  }
369
409
  /**
370
410
  */
371
- export enum ChangeSelectionAlgo {
372
- Default = 0,
411
+ export enum TransactionOutputKind {
412
+ AlonzoFormatTxOut = 0,
413
+ ConwayFormatTxOut = 1,
373
414
  }
374
415
  /**
375
416
  */
376
- export enum Language {
377
- PlutusV1 = 0,
378
- PlutusV2 = 1,
379
- PlutusV3 = 2,
417
+ export enum StakeDistributionKind {
418
+ SingleKey = 0,
419
+ BootstrapEra = 1,
380
420
  }
381
421
  /**
382
422
  */
383
- export enum RelayKind {
384
- SingleHostAddr = 0,
385
- SingleHostName = 1,
386
- MultiHostName = 2,
423
+ export enum AuxiliaryDataKind {
424
+ Shelley = 0,
425
+ ShelleyMA = 1,
426
+ Conway = 2,
387
427
  }
388
428
  /**
389
429
  */
390
- export enum PlutusDataKind {
391
- ConstrPlutusData = 0,
392
- Map = 1,
393
- List = 2,
394
- Integer = 3,
395
- Bytes = 4,
430
+ export enum ChunkableStringKind {
431
+ Single = 0,
432
+ Chunked = 1,
396
433
  }
397
434
  /**
398
435
  */
399
- export enum MetadataJsonSchema {
400
- NoConversions = 0,
401
- BasicConversions = 1,
402
- DetailedSchema = 2,
436
+ export enum NonceKind {
437
+ Identity = 0,
438
+ Hash = 1,
403
439
  }
404
440
  /**
405
441
  */
406
- export enum NativeScriptKind {
407
- ScriptPubkey = 0,
408
- ScriptAll = 1,
409
- ScriptAny = 2,
410
- ScriptNOfK = 3,
411
- ScriptInvalidBefore = 4,
412
- ScriptInvalidHereafter = 5,
442
+ export enum ByronAddrType {
443
+ PublicKey = 0,
444
+ Script = 1,
445
+ Redeem = 2,
413
446
  }
414
447
  /**
415
448
  */
416
- export enum ScriptKind {
417
- Native = 0,
418
- PlutusV1 = 1,
419
- PlutusV2 = 2,
420
- PlutusV3 = 3,
449
+ export enum RelayKind {
450
+ SingleHostAddr = 0,
451
+ SingleHostName = 1,
452
+ MultiHostName = 2,
421
453
  }
422
454
  /**
423
455
  */
424
- export enum NonceKind {
425
- Identity = 0,
426
- Hash = 1,
427
- }
456
+ export enum CoinSelectionStrategyCIP2 {
428
457
  /**
458
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
429
459
  */
430
- export enum SpendingDataKind {
431
- SpendingDataPubKey = 0,
432
- SpendingDataScript = 1,
433
- SpendingDataRedeem = 2,
434
- }
460
+ LargestFirst = 0,
435
461
  /**
462
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
436
463
  */
437
- export enum TransactionMetadatumKind {
438
- Map = 0,
439
- List = 1,
440
- Int = 2,
441
- Bytes = 3,
442
- Text = 4,
443
- }
464
+ RandomImprove = 1,
444
465
  /**
466
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
445
467
  */
446
- export enum AuxiliaryDataKind {
447
- Shelley = 0,
448
- ShelleyMA = 1,
449
- Conway = 2,
450
- }
468
+ LargestFirstMultiAsset = 2,
451
469
  /**
470
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
452
471
  */
453
- export enum DRepKind {
454
- Key = 0,
455
- Script = 1,
456
- AlwaysAbstain = 2,
457
- AlwaysNoConfidence = 3,
472
+ RandomImproveMultiAsset = 3,
458
473
  }
459
474
  /**
460
475
  */
461
- export enum CertificateKind {
462
- StakeRegistration = 0,
463
- StakeDeregistration = 1,
464
- StakeDelegation = 2,
465
- PoolRegistration = 3,
466
- PoolRetirement = 4,
467
- RegCert = 5,
468
- UnregCert = 6,
469
- VoteDelegCert = 7,
470
- StakeVoteDelegCert = 8,
471
- StakeRegDelegCert = 9,
472
- VoteRegDelegCert = 10,
473
- StakeVoteRegDelegCert = 11,
474
- AuthCommitteeHotCert = 12,
475
- ResignCommitteeColdCert = 13,
476
- RegDrepCert = 14,
477
- UnregDrepCert = 15,
478
- UpdateDrepCert = 16,
476
+ export enum SpendingDataKind {
477
+ SpendingDataPubKey = 0,
478
+ SpendingDataScript = 1,
479
+ SpendingDataRedeem = 2,
479
480
  }
480
481
  /**
481
482
  */
482
- export enum DelegationDistributionKind {
483
- Weighted = 0,
484
- Legacy = 1,
483
+ export enum RedeemerTag {
484
+ Spend = 0,
485
+ Mint = 1,
486
+ Cert = 2,
487
+ Reward = 3,
488
+ Voting = 4,
489
+ Proposing = 5,
485
490
  }
486
491
  /**
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.
490
- */
491
- export enum CIP25Version {
492
- /**
493
- * Initial version of CIP25 with only string (utf8) asset names allowed.
494
- */
495
- V1 = 0,
496
- /**
497
- * Second version of CIP25. Supports any type of asset names.
498
492
  */
499
- V2 = 1,
493
+ export enum NativeScriptKind {
494
+ ScriptPubkey = 0,
495
+ ScriptAll = 1,
496
+ ScriptAny = 2,
497
+ ScriptNOfK = 3,
498
+ ScriptInvalidBefore = 4,
499
+ ScriptInvalidHereafter = 5,
500
500
  }
501
501
  /**
502
502
  */
@@ -4,6 +4,26 @@ imports['__wbindgen_placeholder__'] = module.exports;
4
4
  let wasm;
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
+ const heap = new Array(128).fill(undefined);
8
+
9
+ heap.push(undefined, null, true, false);
10
+
11
+ function getObject(idx) { return heap[idx]; }
12
+
13
+ let heap_next = heap.length;
14
+
15
+ function dropObject(idx) {
16
+ if (idx < 132) return;
17
+ heap[idx] = heap_next;
18
+ heap_next = idx;
19
+ }
20
+
21
+ function takeObject(idx) {
22
+ const ret = getObject(idx);
23
+ dropObject(idx);
24
+ return ret;
25
+ }
26
+
7
27
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
8
28
 
9
29
  cachedTextDecoder.decode();
@@ -22,12 +42,6 @@ function getStringFromWasm0(ptr, len) {
22
42
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
23
43
  }
24
44
 
25
- const heap = new Array(128).fill(undefined);
26
-
27
- heap.push(undefined, null, true, false);
28
-
29
- let heap_next = heap.length;
30
-
31
45
  function addHeapObject(obj) {
32
46
  if (heap_next === heap.length) heap.push(heap.length + 1);
33
47
  const idx = heap_next;
@@ -37,20 +51,6 @@ function addHeapObject(obj) {
37
51
  return idx;
38
52
  }
39
53
 
40
- function getObject(idx) { return heap[idx]; }
41
-
42
- function dropObject(idx) {
43
- if (idx < 132) return;
44
- heap[idx] = heap_next;
45
- heap_next = idx;
46
- }
47
-
48
- function takeObject(idx) {
49
- const ret = getObject(idx);
50
- dropObject(idx);
51
- return ret;
52
- }
53
-
54
54
  function handleError(f, args) {
55
55
  try {
56
56
  return f.apply(this, args);
@@ -769,62 +769,69 @@ function getArrayU64FromWasm0(ptr, len) {
769
769
  }
770
770
  /**
771
771
  */
772
- module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
772
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
773
773
  /**
774
774
  */
775
- module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
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
776
  /**
777
777
  */
778
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
778
+ module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
779
779
  /**
780
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
781
780
  */
782
- LargestFirst:0,"0":"LargestFirst",
781
+ module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
783
782
  /**
784
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
785
783
  */
786
- RandomImprove:1,"1":"RandomImprove",
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", });
787
785
  /**
788
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
789
786
  */
790
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
787
+ module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
791
788
  /**
792
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
793
789
  */
794
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
790
+ module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
795
791
  /**
796
792
  */
797
- 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", });
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
795
  */
800
- 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", });
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", });
801
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
802
801
  */
803
- module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
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", });
804
803
  /**
805
804
  */
806
- 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", });
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", });
807
806
  /**
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.
808
810
  */
809
- module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
811
+ module.exports.CIP25Version = Object.freeze({
810
812
  /**
811
- * Careful: this enum doesn't include the network ID part of the header
812
- * ex: base address isn't 0b0000_0000 but instead 0b0000
813
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
813
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
814
814
  */
815
- 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", });
815
+ V1:0,"0":"V1",
816
816
  /**
817
+ * Second version of CIP25. Supports any type of asset names.
817
818
  */
818
- module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
819
+ V2:1,"1":"V2", });
819
820
  /**
820
821
  */
821
- module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
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", });
822
823
  /**
823
824
  */
824
- 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", });
825
+ module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
825
826
  /**
826
827
  */
827
- module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
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", });
828
835
  /**
829
836
  * JSON <-> PlutusData conversion schemas.
830
837
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -878,63 +885,56 @@ BasicConversions:0,"0":"BasicConversions",
878
885
  DetailedSchema:1,"1":"DetailedSchema", });
879
886
  /**
880
887
  */
881
- module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
882
- /**
883
- */
884
- module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
885
- /**
886
- */
887
- module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
888
+ module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
888
889
  /**
889
890
  */
890
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
891
+ module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
891
892
  /**
892
893
  */
893
- 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", });
894
895
  /**
895
896
  */
896
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
897
+ module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
897
898
  /**
898
899
  */
899
- 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", });
900
+ module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
900
901
  /**
901
902
  */
902
- module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
903
+ module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
903
904
  /**
904
905
  */
905
- module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
906
+ module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
906
907
  /**
907
908
  */
908
- module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
909
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
909
910
  /**
910
911
  */
911
- 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", });
912
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
912
913
  /**
914
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
913
915
  */
914
- module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
916
+ LargestFirst:0,"0":"LargestFirst",
915
917
  /**
918
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
916
919
  */
917
- module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
920
+ RandomImprove:1,"1":"RandomImprove",
918
921
  /**
922
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
919
923
  */
920
- 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", });
924
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
921
925
  /**
926
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
922
927
  */
923
- module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
928
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
924
929
  /**
925
- * Which version of the CIP25 spec to use. See CIP25 for details.
926
- * This will change how things are encoded but for the most part contains
927
- * the same information.
928
930
  */
929
- module.exports.CIP25Version = Object.freeze({
931
+ module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
930
932
  /**
931
- * Initial version of CIP25 with only string (utf8) asset names allowed.
932
933
  */
933
- V1:0,"0":"V1",
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", });
934
935
  /**
935
- * Second version of CIP25. Supports any type of asset names.
936
936
  */
937
- V2:1,"1":"V2", });
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", });
938
938
 
939
939
  const AddrAttributesFinalization = (typeof FinalizationRegistry === 'undefined')
940
940
  ? { register: () => {}, unregister: () => {} }
@@ -44508,15 +44508,15 @@ class WithdrawalBuilderResult {
44508
44508
  }
44509
44509
  module.exports.WithdrawalBuilderResult = WithdrawalBuilderResult;
44510
44510
 
44511
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
44512
+ takeObject(arg0);
44513
+ };
44514
+
44511
44515
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
44512
44516
  const ret = getStringFromWasm0(arg0, arg1);
44513
44517
  return addHeapObject(ret);
44514
44518
  };
44515
44519
 
44516
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
44517
- takeObject(arg0);
44518
- };
44519
-
44520
44520
  module.exports.__wbindgen_throw = function(arg0, arg1) {
44521
44521
  throw new Error(getStringFromWasm0(arg0, arg1));
44522
44522
  };
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-10",
4
+ "version": "6.0.0-12",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",