@anastasia-labs/cardano-multiplatform-lib-browser 6.0.1-1 → 6.0.1-2

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,24 +189,66 @@ 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 RedeemersKind {
193
- ArrLegacyRedeemer = 0,
194
- MapRedeemerKeyToRedeemerVal = 1,
192
+ export enum ChunkableStringKind {
193
+ Single = 0,
194
+ Chunked = 1,
195
195
  }
196
196
  /**
197
- * Which version of the CIP25 spec to use. See CIP25 for details.
198
- * This will change how things are encoded but for the most part contains
199
- * the same information.
200
197
  */
201
- export enum CIP25Version {
198
+ export enum NativeScriptKind {
199
+ ScriptPubkey = 0,
200
+ ScriptAll = 1,
201
+ ScriptAny = 2,
202
+ ScriptNOfK = 3,
203
+ ScriptInvalidBefore = 4,
204
+ ScriptInvalidHereafter = 5,
205
+ }
202
206
  /**
203
- * Initial version of CIP25 with only string (utf8) asset names allowed.
204
207
  */
205
- V1 = 0,
208
+ export enum NonceKind {
209
+ Identity = 0,
210
+ Hash = 1,
211
+ }
206
212
  /**
207
- * Second version of CIP25. Supports any type of asset names.
208
213
  */
209
- V2 = 1,
214
+ export enum DRepKind {
215
+ Key = 0,
216
+ Script = 1,
217
+ AlwaysAbstain = 2,
218
+ AlwaysNoConfidence = 3,
219
+ }
220
+ /**
221
+ */
222
+ export enum GovActionKind {
223
+ ParameterChangeAction = 0,
224
+ HardForkInitiationAction = 1,
225
+ TreasuryWithdrawalsAction = 2,
226
+ NoConfidence = 3,
227
+ UpdateCommittee = 4,
228
+ NewConstitution = 5,
229
+ InfoAction = 6,
230
+ }
231
+ /**
232
+ */
233
+ export enum AddressKind {
234
+ Base = 0,
235
+ Ptr = 1,
236
+ Enterprise = 2,
237
+ Reward = 3,
238
+ Byron = 4,
239
+ }
240
+ /**
241
+ */
242
+ export enum ChangeSelectionAlgo {
243
+ Default = 0,
244
+ }
245
+ /**
246
+ */
247
+ export enum ScriptKind {
248
+ Native = 0,
249
+ PlutusV1 = 1,
250
+ PlutusV2 = 2,
251
+ PlutusV3 = 3,
210
252
  }
211
253
  /**
212
254
  */
@@ -216,24 +258,46 @@ export enum Language {
216
258
  PlutusV3 = 2,
217
259
  }
218
260
  /**
261
+ * Which version of the CIP25 spec to use. See CIP25 for details.
262
+ * This will change how things are encoded but for the most part contains
263
+ * the same information.
219
264
  */
220
- export enum DelegationDistributionKind {
221
- Weighted = 0,
222
- Legacy = 1,
265
+ export enum CIP25Version {
266
+ /**
267
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
268
+ */
269
+ V1 = 0,
270
+ /**
271
+ * Second version of CIP25. Supports any type of asset names.
272
+ */
273
+ V2 = 1,
223
274
  }
224
275
  /**
276
+ * Careful: this enum doesn't include the network ID part of the header
277
+ * ex: base address isn't 0b0000_0000 but instead 0b0000
278
+ * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
225
279
  */
226
- export enum RelayKind {
227
- SingleHostAddr = 0,
228
- SingleHostName = 1,
229
- MultiHostName = 2,
280
+ export enum AddressHeaderKind {
281
+ BasePaymentKeyStakeKey = 0,
282
+ BasePaymentScriptStakeKey = 1,
283
+ BasePaymentKeyStakeScript = 2,
284
+ BasePaymentScriptStakeScript = 3,
285
+ PointerKey = 4,
286
+ PointerScript = 5,
287
+ EnterpriseKey = 6,
288
+ EnterpriseScript = 7,
289
+ Byron = 8,
290
+ RewardKey = 14,
291
+ RewardScript = 15,
230
292
  }
231
293
  /**
232
294
  */
233
- export enum AuxiliaryDataKind {
234
- Shelley = 0,
235
- ShelleyMA = 1,
236
- Conway = 2,
295
+ export enum VoterKind {
296
+ ConstitutionalCommitteeHotKeyHash = 0,
297
+ ConstitutionalCommitteeHotScriptHash = 1,
298
+ DRepKeyHash = 2,
299
+ DRepScriptHash = 3,
300
+ StakingPoolKeyHash = 4,
237
301
  }
238
302
  /**
239
303
  */
@@ -271,33 +335,29 @@ export enum StakeDistributionKind {
271
335
  }
272
336
  /**
273
337
  */
274
- export enum Vote {
275
- No = 0,
276
- Yes = 1,
277
- Abstain = 2,
278
- }
338
+ export enum CoinSelectionStrategyCIP2 {
279
339
  /**
340
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
280
341
  */
281
- export enum NonceKind {
282
- Identity = 0,
283
- Hash = 1,
284
- }
342
+ LargestFirst = 0,
285
343
  /**
344
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
286
345
  */
287
- export enum ChunkableStringKind {
288
- Single = 0,
289
- Chunked = 1,
290
- }
346
+ RandomImprove = 1,
291
347
  /**
348
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
292
349
  */
293
- export enum DatumOptionKind {
294
- Hash = 0,
295
- Datum = 1,
350
+ LargestFirstMultiAsset = 2,
351
+ /**
352
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
353
+ */
354
+ RandomImproveMultiAsset = 3,
296
355
  }
297
356
  /**
298
357
  */
299
- export enum ChangeSelectionAlgo {
300
- Default = 0,
358
+ export enum DelegationDistributionKind {
359
+ Weighted = 0,
360
+ Legacy = 1,
301
361
  }
302
362
  /**
303
363
  */
@@ -306,6 +366,19 @@ export enum CredentialKind {
306
366
  Script = 1,
307
367
  }
308
368
  /**
369
+ */
370
+ export enum RelayKind {
371
+ SingleHostAddr = 0,
372
+ SingleHostName = 1,
373
+ MultiHostName = 2,
374
+ }
375
+ /**
376
+ */
377
+ export enum DatumOptionKind {
378
+ Hash = 0,
379
+ Datum = 1,
380
+ }
381
+ /**
309
382
  * JSON <-> PlutusData conversion schemas.
310
383
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
311
384
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -359,78 +432,43 @@ export enum CardanoNodePlutusDatumSchema {
359
432
  }
360
433
  /**
361
434
  */
362
- export enum TransactionMetadatumKind {
363
- Map = 0,
364
- List = 1,
365
- Int = 2,
366
- Bytes = 3,
367
- Text = 4,
435
+ export enum TransactionOutputKind {
436
+ AlonzoFormatTxOut = 0,
437
+ ConwayFormatTxOut = 1,
368
438
  }
369
439
  /**
370
440
  */
371
- export enum GovActionKind {
372
- ParameterChangeAction = 0,
373
- HardForkInitiationAction = 1,
374
- TreasuryWithdrawalsAction = 2,
375
- NoConfidence = 3,
376
- UpdateCommittee = 4,
377
- NewConstitution = 5,
378
- InfoAction = 6,
441
+ export enum RedeemersKind {
442
+ ArrLegacyRedeemer = 0,
443
+ MapRedeemerKeyToRedeemerVal = 1,
379
444
  }
380
445
  /**
381
- * Careful: this enum doesn't include the network ID part of the header
382
- * ex: base address isn't 0b0000_0000 but instead 0b0000
383
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
384
446
  */
385
- export enum AddressHeaderKind {
386
- BasePaymentKeyStakeKey = 0,
387
- BasePaymentScriptStakeKey = 1,
388
- BasePaymentKeyStakeScript = 2,
389
- BasePaymentScriptStakeScript = 3,
390
- PointerKey = 4,
391
- PointerScript = 5,
392
- EnterpriseKey = 6,
393
- EnterpriseScript = 7,
394
- Byron = 8,
395
- RewardKey = 14,
396
- RewardScript = 15,
447
+ export enum MetadataJsonSchema {
448
+ NoConversions = 0,
449
+ BasicConversions = 1,
450
+ DetailedSchema = 2,
397
451
  }
398
452
  /**
399
453
  */
400
- export enum CoinSelectionStrategyCIP2 {
401
- /**
402
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
403
- */
404
- LargestFirst = 0,
405
- /**
406
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
407
- */
408
- RandomImprove = 1,
409
- /**
410
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
411
- */
412
- LargestFirstMultiAsset = 2,
413
- /**
414
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
415
- */
416
- RandomImproveMultiAsset = 3,
454
+ export enum SpendingDataKind {
455
+ SpendingDataPubKey = 0,
456
+ SpendingDataScript = 1,
457
+ SpendingDataRedeem = 2,
417
458
  }
418
459
  /**
419
460
  */
420
- export enum AddressKind {
421
- Base = 0,
422
- Ptr = 1,
423
- Enterprise = 2,
424
- Reward = 3,
425
- Byron = 4,
461
+ export enum Vote {
462
+ No = 0,
463
+ Yes = 1,
464
+ Abstain = 2,
426
465
  }
427
466
  /**
428
467
  */
429
- export enum DRepKind {
430
- Key = 0,
431
- Script = 1,
432
- AlwaysAbstain = 2,
433
- AlwaysNoConfidence = 3,
468
+ export enum AuxiliaryDataKind {
469
+ Shelley = 0,
470
+ ShelleyMA = 1,
471
+ Conway = 2,
434
472
  }
435
473
  /**
436
474
  */
@@ -443,41 +481,12 @@ export enum PlutusDataKind {
443
481
  }
444
482
  /**
445
483
  */
446
- export enum MetadataJsonSchema {
447
- NoConversions = 0,
448
- BasicConversions = 1,
449
- DetailedSchema = 2,
450
- }
451
- /**
452
- */
453
- export enum ScriptKind {
454
- Native = 0,
455
- PlutusV1 = 1,
456
- PlutusV2 = 2,
457
- PlutusV3 = 3,
458
- }
459
- /**
460
- */
461
- export enum NativeScriptKind {
462
- ScriptPubkey = 0,
463
- ScriptAll = 1,
464
- ScriptAny = 2,
465
- ScriptNOfK = 3,
466
- ScriptInvalidBefore = 4,
467
- ScriptInvalidHereafter = 5,
468
- }
469
- /**
470
- */
471
- export enum TransactionOutputKind {
472
- AlonzoFormatTxOut = 0,
473
- ConwayFormatTxOut = 1,
474
- }
475
- /**
476
- */
477
- export enum SpendingDataKind {
478
- SpendingDataPubKey = 0,
479
- SpendingDataScript = 1,
480
- SpendingDataRedeem = 2,
484
+ export enum TransactionMetadatumKind {
485
+ Map = 0,
486
+ List = 1,
487
+ Int = 2,
488
+ Bytes = 3,
489
+ Text = 4,
481
490
  }
482
491
  /**
483
492
  */
@@ -491,15 +500,6 @@ export enum RedeemerTag {
491
500
  }
492
501
  /**
493
502
  */
494
- export enum VoterKind {
495
- ConstitutionalCommitteeHotKeyHash = 0,
496
- ConstitutionalCommitteeHotScriptHash = 1,
497
- DRepKeyHash = 2,
498
- DRepScriptHash = 3,
499
- StakingPoolKeyHash = 4,
500
- }
501
- /**
502
- */
503
503
  export class AddrAttributes {
504
504
  free(): void;
505
505
  /**
@@ -4,26 +4,6 @@ export function __wbg_set_wasm(val) {
4
4
  }
5
5
 
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
-
27
7
  const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
28
8
 
29
9
  let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -44,6 +24,12 @@ function getStringFromWasm0(ptr, len) {
44
24
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
45
25
  }
46
26
 
27
+ const heap = new Array(128).fill(undefined);
28
+
29
+ heap.push(undefined, null, true, false);
30
+
31
+ let heap_next = heap.length;
32
+
47
33
  function addHeapObject(obj) {
48
34
  if (heap_next === heap.length) heap.push(heap.length + 1);
49
35
  const idx = heap_next;
@@ -53,6 +39,20 @@ function addHeapObject(obj) {
53
39
  return idx;
54
40
  }
55
41
 
42
+ function getObject(idx) { return heap[idx]; }
43
+
44
+ function dropObject(idx) {
45
+ if (idx < 132) return;
46
+ heap[idx] = heap_next;
47
+ heap_next = idx;
48
+ }
49
+
50
+ function takeObject(idx) {
51
+ const ret = getObject(idx);
52
+ dropObject(idx);
53
+ return ret;
54
+ }
55
+
56
56
  function handleError(f, args) {
57
57
  try {
58
58
  return f.apply(this, args);
@@ -773,7 +773,31 @@ function getArrayU64FromWasm0(ptr, len) {
773
773
  }
774
774
  /**
775
775
  */
776
- export const RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
776
+ export const ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
777
+ /**
778
+ */
779
+ export const 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", });
780
+ /**
781
+ */
782
+ export const NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
783
+ /**
784
+ */
785
+ export const DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
786
+ /**
787
+ */
788
+ export const 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", });
789
+ /**
790
+ */
791
+ export const AddressKind = Object.freeze({ Base:0,"0":"Base",Ptr:1,"1":"Ptr",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron", });
792
+ /**
793
+ */
794
+ export const ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
795
+ /**
796
+ */
797
+ export const ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
798
+ /**
799
+ */
800
+ export const Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
777
801
  /**
778
802
  * Which version of the CIP25 spec to use. See CIP25 for details.
779
803
  * This will change how things are encoded but for the most part contains
@@ -789,17 +813,14 @@ V1:0,"0":"V1",
789
813
  */
790
814
  V2:1,"1":"V2", });
791
815
  /**
816
+ * Careful: this enum doesn't include the network ID part of the header
817
+ * ex: base address isn't 0b0000_0000 but instead 0b0000
818
+ * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
792
819
  */
793
- export const Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
794
- /**
795
- */
796
- export const DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
797
- /**
798
- */
799
- export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
820
+ export const 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", });
800
821
  /**
801
822
  */
802
- export const AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
823
+ export const VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
803
824
  /**
804
825
  */
805
826
  export const ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
@@ -811,23 +832,36 @@ export const CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeReg
811
832
  export const StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
812
833
  /**
813
834
  */
814
- export const Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
835
+ export const CoinSelectionStrategyCIP2 = Object.freeze({
815
836
  /**
837
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
816
838
  */
817
- export const NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
839
+ LargestFirst:0,"0":"LargestFirst",
818
840
  /**
841
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
819
842
  */
820
- export const ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
843
+ RandomImprove:1,"1":"RandomImprove",
821
844
  /**
845
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
822
846
  */
823
- export const DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
847
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
824
848
  /**
849
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
825
850
  */
826
- export const ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
851
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
852
+ /**
853
+ */
854
+ export const DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
827
855
  /**
828
856
  */
829
857
  export const CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
830
858
  /**
859
+ */
860
+ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
861
+ /**
862
+ */
863
+ export const DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
864
+ /**
831
865
  * JSON <-> PlutusData conversion schemas.
832
866
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
833
867
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -880,65 +914,31 @@ BasicConversions:0,"0":"BasicConversions",
880
914
  DetailedSchema:1,"1":"DetailedSchema", });
881
915
  /**
882
916
  */
883
- export const TransactionMetadatumKind = Object.freeze({ Map:0,"0":"Map",List:1,"1":"List",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
884
- /**
885
- */
886
- export const 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", });
887
- /**
888
- * Careful: this enum doesn't include the network ID part of the header
889
- * ex: base address isn't 0b0000_0000 but instead 0b0000
890
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
891
- */
892
- export const 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", });
893
- /**
894
- */
895
- export const CoinSelectionStrategyCIP2 = Object.freeze({
896
- /**
897
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
898
- */
899
- LargestFirst:0,"0":"LargestFirst",
917
+ export const TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
900
918
  /**
901
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
902
919
  */
903
- RandomImprove:1,"1":"RandomImprove",
920
+ export const RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
904
921
  /**
905
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
906
922
  */
907
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
923
+ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
908
924
  /**
909
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
910
925
  */
911
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
926
+ export const SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
912
927
  /**
913
928
  */
914
- export const AddressKind = Object.freeze({ Base:0,"0":"Base",Ptr:1,"1":"Ptr",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron", });
929
+ export const Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
915
930
  /**
916
931
  */
917
- export const DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
932
+ export const AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
918
933
  /**
919
934
  */
920
935
  export const PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
921
936
  /**
922
937
  */
923
- export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
924
- /**
925
- */
926
- export const ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
927
- /**
928
- */
929
- export const 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", });
930
- /**
931
- */
932
- export const TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
933
- /**
934
- */
935
- export const SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
938
+ export const TransactionMetadatumKind = Object.freeze({ Map:0,"0":"Map",List:1,"1":"List",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
936
939
  /**
937
940
  */
938
941
  export const 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", });
939
- /**
940
- */
941
- export const VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
942
942
 
943
943
  const AddrAttributesFinalization = (typeof FinalizationRegistry === 'undefined')
944
944
  ? { register: () => {}, unregister: () => {} }
@@ -44278,15 +44278,15 @@ export class WithdrawalBuilderResult {
44278
44278
  }
44279
44279
  }
44280
44280
 
44281
- export function __wbindgen_object_drop_ref(arg0) {
44282
- takeObject(arg0);
44283
- };
44284
-
44285
44281
  export function __wbindgen_string_new(arg0, arg1) {
44286
44282
  const ret = getStringFromWasm0(arg0, arg1);
44287
44283
  return addHeapObject(ret);
44288
44284
  };
44289
44285
 
44286
+ export function __wbindgen_object_drop_ref(arg0) {
44287
+ takeObject(arg0);
44288
+ };
44289
+
44290
44290
  export function __wbindgen_throw(arg0, arg1) {
44291
44291
  throw new Error(getStringFromWasm0(arg0, arg1));
44292
44292
  };
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@anastasia-labs/cardano-multiplatform-lib-browser",
3
3
  "description": "Multiplatform WASM SDK containing the most common CML crates for Cardano blockchain functionality",
4
- "version": "6.0.1-1",
4
+ "version": "6.0.1-2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",