@anastasia-labs/cardano-multiplatform-lib-browser 5.3.1-5 → 5.3.1-6

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