@anastasia-labs/cardano-multiplatform-lib-browser 6.0.0-2 → 6.0.0-3

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