@anastasia-labs/cardano-multiplatform-lib-browser 6.0.0-1 → 6.0.0-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,43 +189,30 @@ 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 NonceKind {
193
- Identity = 0,
194
- Hash = 1,
195
- }
196
- /**
197
- */
198
- export enum PlutusDataKind {
199
- ConstrPlutusData = 0,
200
- Map = 1,
201
- List = 2,
202
- Integer = 3,
203
- Bytes = 4,
192
+ export enum StakeDistributionKind {
193
+ SingleKey = 0,
194
+ BootstrapEra = 1,
204
195
  }
205
196
  /**
206
197
  */
207
- export enum DelegationDistributionKind {
208
- Weighted = 0,
209
- Legacy = 1,
198
+ export enum CredentialKind {
199
+ PubKey = 0,
200
+ Script = 1,
210
201
  }
211
202
  /**
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.
212
206
  */
213
- export enum DatumOptionKind {
214
- Hash = 0,
215
- Datum = 1,
216
- }
207
+ export enum CIP25Version {
217
208
  /**
209
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
218
210
  */
219
- export enum ChangeSelectionAlgo {
220
- Default = 0,
221
- }
211
+ V1 = 0,
222
212
  /**
213
+ * Second version of CIP25. Supports any type of asset names.
223
214
  */
224
- export enum ScriptKind {
225
- Native = 0,
226
- PlutusV1 = 1,
227
- PlutusV2 = 2,
228
- PlutusV3 = 3,
215
+ V2 = 1,
229
216
  }
230
217
  /**
231
218
  */
@@ -239,83 +226,107 @@ export enum RedeemerTag {
239
226
  }
240
227
  /**
241
228
  */
242
- export enum Vote {
243
- No = 0,
244
- Yes = 1,
245
- Abstain = 2,
229
+ export enum ChangeSelectionAlgo {
230
+ Default = 0,
246
231
  }
247
232
  /**
248
- * JSON <-> PlutusData conversion schemas.
249
- * Follows ScriptDataJsonSchema in cardano-cli defined at:
250
- * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
251
- *
252
- * All methods here have the following restrictions due to limitations on dependencies:
253
- * * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
254
- * * Hex strings for bytes don't accept odd-length (half-byte) strings.
255
- * cardano-cli seems to support these however but it seems to be different than just 0-padding
256
- * on either side when tested so proceed with caution
257
233
  */
258
- export enum CardanoNodePlutusDatumSchema {
234
+ export enum TransactionMetadatumKind {
235
+ Map = 0,
236
+ List = 1,
237
+ Int = 2,
238
+ Bytes = 3,
239
+ Text = 4,
240
+ }
259
241
  /**
260
- * ScriptDataJsonNoSchema in cardano-node.
261
- *
262
- * This is the format used by --script-data-value in cardano-cli
263
- * This tries to accept most JSON but does not support the full spectrum of Plutus datums.
264
- * From JSON:
265
- * * null/true/false/floats NOT supported
266
- * * strings starting with 0x are treated as hex bytes. All other strings are encoded as their utf8 bytes.
267
- * To JSON:
268
- * * ConstrPlutusData not supported in ANY FORM (neither keys nor values)
269
- * * Lists not supported in keys
270
- * * Maps not supported in keys
271
242
  */
272
- BasicConversions = 0,
243
+ export enum AuxiliaryDataKind {
244
+ Shelley = 0,
245
+ ShelleyMA = 1,
246
+ Conway = 2,
247
+ }
273
248
  /**
274
- * ScriptDataJsonDetailedSchema in cardano-node.
275
- *
276
- * This is the format used by --script-data-file in cardano-cli
277
- * This covers almost all (only minor exceptions) Plutus datums, but the JSON must conform to a strict schema.
278
- * The schema specifies that ALL keys and ALL values must be contained in a JSON map with 2 cases:
279
- * 1. For ConstrPlutusData there must be two fields "constructor" contianing a number and "fields" containing its fields
280
- * e.g. { "constructor": 2, "fields": [{"int": 2}, {"list": [{"bytes": "CAFEF00D"}]}]}
281
- * 2. For all other cases there must be only one field named "int", "bytes", "list" or "map"
282
- * BigInteger's value is a JSON number e.g. {"int": 100}
283
- * Bytes' value is a hex string representing the bytes WITHOUT any prefix e.g. {"bytes": "CAFEF00D"}
284
- * Lists' value is a JSON list of its elements encoded via the same schema e.g. {"list": [{"bytes": "CAFEF00D"}]}
285
- * Maps' value is a JSON list of objects, one for each key-value pair in the map, with keys "k" and "v"
286
- * respectively with their values being the plutus datum encoded via this same schema
287
- * e.g. {"map": [
288
- * {"k": {"int": 2}, "v": {"int": 5}},
289
- * {"k": {"map": [{"k": {"list": [{"int": 1}]}, "v": {"bytes": "FF03"}}]}, "v": {"list": []}}
290
- * ]}
291
- * From JSON:
292
- * * null/true/false/floats NOT supported
293
- * * the JSON must conform to a very specific schema
294
- * To JSON:
295
- * * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
296
249
  */
297
- DetailedSchema = 1,
250
+ export enum PlutusDataKind {
251
+ ConstrPlutusData = 0,
252
+ Map = 1,
253
+ List = 2,
254
+ Integer = 3,
255
+ Bytes = 4,
298
256
  }
299
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
300
261
  */
301
- export enum CredentialKind {
302
- PubKey = 0,
303
- Script = 1,
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,
304
274
  }
305
275
  /**
306
276
  */
307
- export enum RedeemersKind {
308
- ArrLegacyRedeemer = 0,
309
- MapRedeemerKeyToRedeemerVal = 1,
277
+ export enum NonceKind {
278
+ Identity = 0,
279
+ Hash = 1,
310
280
  }
311
281
  /**
312
282
  */
313
- export enum AddressKind {
314
- Base = 0,
315
- Ptr = 1,
316
- Enterprise = 2,
317
- Reward = 3,
318
- Byron = 4,
283
+ export enum Language {
284
+ PlutusV1 = 0,
285
+ PlutusV2 = 1,
286
+ PlutusV3 = 2,
287
+ }
288
+ /**
289
+ */
290
+ export enum ScriptKind {
291
+ Native = 0,
292
+ PlutusV1 = 1,
293
+ PlutusV2 = 2,
294
+ PlutusV3 = 3,
295
+ }
296
+ /**
297
+ */
298
+ export enum NativeScriptKind {
299
+ ScriptPubkey = 0,
300
+ ScriptAll = 1,
301
+ ScriptAny = 2,
302
+ ScriptNOfK = 3,
303
+ ScriptInvalidBefore = 4,
304
+ ScriptInvalidHereafter = 5,
305
+ }
306
+ /**
307
+ */
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
+ }
317
+ /**
318
+ */
319
+ export enum ByronAddrType {
320
+ PublicKey = 0,
321
+ Script = 1,
322
+ Redeem = 2,
323
+ }
324
+ /**
325
+ */
326
+ export enum MetadataJsonSchema {
327
+ NoConversions = 0,
328
+ BasicConversions = 1,
329
+ DetailedSchema = 2,
319
330
  }
320
331
  /**
321
332
  */
@@ -355,66 +366,70 @@ export enum ChunkableStringKind {
355
366
  }
356
367
  /**
357
368
  */
358
- export enum StakeDistributionKind {
359
- SingleKey = 0,
360
- BootstrapEra = 1,
361
- }
362
- /**
363
- */
364
- export enum ByronAddrType {
365
- PublicKey = 0,
366
- Script = 1,
367
- Redeem = 2,
368
- }
369
- /**
370
- */
371
- export enum TransactionOutputKind {
372
- AlonzoFormatTxOut = 0,
373
- ConwayFormatTxOut = 1,
374
- }
375
- /**
376
- */
377
- export enum AuxiliaryDataKind {
378
- Shelley = 0,
379
- ShelleyMA = 1,
380
- Conway = 2,
369
+ export enum DatumOptionKind {
370
+ Hash = 0,
371
+ Datum = 1,
381
372
  }
382
373
  /**
383
374
  */
384
- export enum GovActionKind {
385
- ParameterChangeAction = 0,
386
- HardForkInitiationAction = 1,
387
- TreasuryWithdrawalsAction = 2,
388
- NoConfidence = 3,
389
- UpdateCommittee = 4,
390
- NewConstitution = 5,
391
- InfoAction = 6,
375
+ export enum AddressKind {
376
+ Base = 0,
377
+ Ptr = 1,
378
+ Enterprise = 2,
379
+ Reward = 3,
380
+ Byron = 4,
392
381
  }
393
382
  /**
383
+ * JSON <-> PlutusData conversion schemas.
384
+ * Follows ScriptDataJsonSchema in cardano-cli defined at:
385
+ * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
386
+ *
387
+ * All methods here have the following restrictions due to limitations on dependencies:
388
+ * * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
389
+ * * Hex strings for bytes don't accept odd-length (half-byte) strings.
390
+ * cardano-cli seems to support these however but it seems to be different than just 0-padding
391
+ * on either side when tested so proceed with caution
394
392
  */
395
- export enum TransactionMetadatumKind {
396
- Map = 0,
397
- List = 1,
398
- Int = 2,
399
- Bytes = 3,
400
- Text = 4,
401
- }
393
+ export enum CardanoNodePlutusDatumSchema {
402
394
  /**
395
+ * ScriptDataJsonNoSchema in cardano-node.
396
+ *
397
+ * This is the format used by --script-data-value in cardano-cli
398
+ * This tries to accept most JSON but does not support the full spectrum of Plutus datums.
399
+ * From JSON:
400
+ * * null/true/false/floats NOT supported
401
+ * * strings starting with 0x are treated as hex bytes. All other strings are encoded as their utf8 bytes.
402
+ * To JSON:
403
+ * * ConstrPlutusData not supported in ANY FORM (neither keys nor values)
404
+ * * Lists not supported in keys
405
+ * * Maps not supported in keys
403
406
  */
404
- export enum NativeScriptKind {
405
- ScriptPubkey = 0,
406
- ScriptAll = 1,
407
- ScriptAny = 2,
408
- ScriptNOfK = 3,
409
- ScriptInvalidBefore = 4,
410
- ScriptInvalidHereafter = 5,
411
- }
407
+ BasicConversions = 0,
412
408
  /**
409
+ * ScriptDataJsonDetailedSchema in cardano-node.
410
+ *
411
+ * This is the format used by --script-data-file in cardano-cli
412
+ * This covers almost all (only minor exceptions) Plutus datums, but the JSON must conform to a strict schema.
413
+ * The schema specifies that ALL keys and ALL values must be contained in a JSON map with 2 cases:
414
+ * 1. For ConstrPlutusData there must be two fields "constructor" contianing a number and "fields" containing its fields
415
+ * e.g. { "constructor": 2, "fields": [{"int": 2}, {"list": [{"bytes": "CAFEF00D"}]}]}
416
+ * 2. For all other cases there must be only one field named "int", "bytes", "list" or "map"
417
+ * BigInteger's value is a JSON number e.g. {"int": 100}
418
+ * Bytes' value is a hex string representing the bytes WITHOUT any prefix e.g. {"bytes": "CAFEF00D"}
419
+ * Lists' value is a JSON list of its elements encoded via the same schema e.g. {"list": [{"bytes": "CAFEF00D"}]}
420
+ * Maps' value is a JSON list of objects, one for each key-value pair in the map, with keys "k" and "v"
421
+ * respectively with their values being the plutus datum encoded via this same schema
422
+ * e.g. {"map": [
423
+ * {"k": {"int": 2}, "v": {"int": 5}},
424
+ * {"k": {"map": [{"k": {"list": [{"int": 1}]}, "v": {"bytes": "FF03"}}]}, "v": {"list": []}}
425
+ * ]}
426
+ * From JSON:
427
+ * * null/true/false/floats NOT supported
428
+ * * the JSON must conform to a very specific schema
429
+ * To JSON:
430
+ * * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
413
431
  */
414
- export enum Language {
415
- PlutusV1 = 0,
416
- PlutusV2 = 1,
417
- PlutusV3 = 2,
432
+ DetailedSchema = 1,
418
433
  }
419
434
  /**
420
435
  */
@@ -426,50 +441,29 @@ export enum DRepKind {
426
441
  }
427
442
  /**
428
443
  */
429
- export enum MetadataJsonSchema {
430
- NoConversions = 0,
431
- BasicConversions = 1,
432
- DetailedSchema = 2,
433
- }
434
- /**
435
- * Careful: this enum doesn't include the network ID part of the header
436
- * ex: base address isn't 0b0000_0000 but instead 0b0000
437
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
438
- */
439
- export enum AddressHeaderKind {
440
- BasePaymentKeyStakeKey = 0,
441
- BasePaymentScriptStakeKey = 1,
442
- BasePaymentKeyStakeScript = 2,
443
- BasePaymentScriptStakeScript = 3,
444
- PointerKey = 4,
445
- PointerScript = 5,
446
- EnterpriseKey = 6,
447
- EnterpriseScript = 7,
448
- Byron = 8,
449
- RewardKey = 14,
450
- RewardScript = 15,
451
- }
452
- /**
453
- */
454
444
  export enum RelayKind {
455
445
  SingleHostAddr = 0,
456
446
  SingleHostName = 1,
457
447
  MultiHostName = 2,
458
448
  }
459
449
  /**
460
- * Which version of the CIP25 spec to use. See CIP25 for details.
461
- * This will change how things are encoded but for the most part contains
462
- * the same information.
463
450
  */
464
- export enum CIP25Version {
451
+ export enum RedeemersKind {
452
+ ArrLegacyRedeemer = 0,
453
+ MapRedeemerKeyToRedeemerVal = 1,
454
+ }
465
455
  /**
466
- * Initial version of CIP25 with only string (utf8) asset names allowed.
467
456
  */
468
- V1 = 0,
457
+ export enum DelegationDistributionKind {
458
+ Weighted = 0,
459
+ Legacy = 1,
460
+ }
469
461
  /**
470
- * Second version of CIP25. Supports any type of asset names.
471
462
  */
472
- V2 = 1,
463
+ export enum Vote {
464
+ No = 0,
465
+ Yes = 1,
466
+ Abstain = 2,
473
467
  }
474
468
  /**
475
469
  */
@@ -500,6 +494,12 @@ export enum SpendingDataKind {
500
494
  }
501
495
  /**
502
496
  */
497
+ export enum TransactionOutputKind {
498
+ AlonzoFormatTxOut = 0,
499
+ ConwayFormatTxOut = 1,
500
+ }
501
+ /**
502
+ */
503
503
  export class AddrAttributes {
504
504
  free(): void;
505
505
  /**
@@ -771,28 +771,81 @@ function getArrayU64FromWasm0(ptr, len) {
771
771
  }
772
772
  /**
773
773
  */
774
- export const NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
774
+ export const StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
775
775
  /**
776
776
  */
777
- 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", });
777
+ export const CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
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.
779
782
  */
780
- export const DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
783
+ export const CIP25Version = Object.freeze({
781
784
  /**
785
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
782
786
  */
783
- export const DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
787
+ V1:0,"0":"V1",
788
+ /**
789
+ * Second version of CIP25. Supports any type of asset names.
790
+ */
791
+ V2:1,"1":"V2", });
792
+ /**
793
+ */
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", });
784
795
  /**
785
796
  */
786
797
  export const ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
787
798
  /**
788
799
  */
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", });
801
+ /**
802
+ */
803
+ export const AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
804
+ /**
805
+ */
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", });
807
+ /**
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
+ */
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", });
813
+ /**
814
+ */
815
+ export const NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
816
+ /**
817
+ */
818
+ export const Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
819
+ /**
820
+ */
789
821
  export const ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
790
822
  /**
791
823
  */
792
- 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", });
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", });
793
825
  /**
794
826
  */
795
- export const Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
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", });
828
+ /**
829
+ */
830
+ export const ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
831
+ /**
832
+ */
833
+ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
834
+ /**
835
+ */
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", });
837
+ /**
838
+ */
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", });
840
+ /**
841
+ */
842
+ export const ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
843
+ /**
844
+ */
845
+ export const DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
846
+ /**
847
+ */
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", });
796
849
  /**
797
850
  * JSON <-> PlutusData conversion schemas.
798
851
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -846,75 +899,19 @@ BasicConversions:0,"0":"BasicConversions",
846
899
  DetailedSchema:1,"1":"DetailedSchema", });
847
900
  /**
848
901
  */
849
- export const CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
850
- /**
851
- */
852
- export const RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
853
- /**
854
- */
855
- 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", });
856
- /**
857
- */
858
- 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", });
859
- /**
860
- */
861
- 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", });
862
- /**
863
- */
864
- export const ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
865
- /**
866
- */
867
- export const StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
868
- /**
869
- */
870
- export const ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
871
- /**
872
- */
873
- export const TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
874
- /**
875
- */
876
- export const AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
877
- /**
878
- */
879
- 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", });
880
- /**
881
- */
882
- 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", });
883
- /**
884
- */
885
- 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", });
886
- /**
887
- */
888
- export const Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
889
- /**
890
- */
891
902
  export const DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
892
903
  /**
893
904
  */
894
- export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
895
- /**
896
- * Careful: this enum doesn't include the network ID part of the header
897
- * ex: base address isn't 0b0000_0000 but instead 0b0000
898
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
899
- */
900
- 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", });
901
- /**
902
- */
903
905
  export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
904
906
  /**
905
- * Which version of the CIP25 spec to use. See CIP25 for details.
906
- * This will change how things are encoded but for the most part contains
907
- * the same information.
908
907
  */
909
- export const CIP25Version = Object.freeze({
908
+ export const RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
910
909
  /**
911
- * Initial version of CIP25 with only string (utf8) asset names allowed.
912
910
  */
913
- V1:0,"0":"V1",
911
+ export const DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
914
912
  /**
915
- * Second version of CIP25. Supports any type of asset names.
916
913
  */
917
- V2:1,"1":"V2", });
914
+ export const Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
918
915
  /**
919
916
  */
920
917
  export const CoinSelectionStrategyCIP2 = Object.freeze({
@@ -937,6 +934,9 @@ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
937
934
  /**
938
935
  */
939
936
  export const SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
937
+ /**
938
+ */
939
+ export const TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
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-1",
4
+ "version": "6.0.0-2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",