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