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

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.
@@ -17,18 +17,6 @@ export function emip3_encrypt_with_password(password: string, salt: string, nonc
17
17
  */
18
18
  export function emip3_decrypt_with_password(password: string, data: string): string;
19
19
  /**
20
- * encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
21
- * @param {Uint8Array} bytes
22
- * @returns {TransactionMetadatum}
23
- */
24
- export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
25
- /**
26
- * decodes from chunks of bytes in a list to a byte vector if that is the metadata format, otherwise returns None
27
- * @param {TransactionMetadatum} metadata
28
- * @returns {Uint8Array | undefined}
29
- */
30
- export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array | undefined;
31
- /**
32
20
  * @param {AuxiliaryData} auxiliary_data
33
21
  * @returns {AuxiliaryDataHash}
34
22
  */
@@ -104,33 +92,6 @@ export function get_implicit_input(txbody: TransactionBody, pool_deposit: bigint
104
92
  */
105
93
  export function get_deposit(txbody: TransactionBody, pool_deposit: bigint, key_deposit: bigint): bigint;
106
94
  /**
107
- *
108
- * * Min fee for JUST the script, NOT including ref inputs
109
- *
110
- * @param {Transaction} tx
111
- * @param {ExUnitPrices} ex_unit_prices
112
- * @returns {bigint}
113
- */
114
- export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): bigint;
115
- /**
116
- * @param {Transaction} tx
117
- * @param {LinearFee} linear_fee
118
- * @returns {bigint}
119
- */
120
- export function min_no_script_fee(tx: Transaction, linear_fee: LinearFee): bigint;
121
- /**
122
- *
123
- * * Calculates the cost of all ref scripts
124
- * * * `total_ref_script_size` - Total size (original, not hashes) of all ref scripts. Duplicate scripts are counted as many times as they occur
125
- *
126
- * @param {Transaction} tx
127
- * @param {LinearFee} linear_fee
128
- * @param {ExUnitPrices} ex_unit_prices
129
- * @param {bigint} total_ref_script_size
130
- * @returns {bigint}
131
- */
132
- export function min_fee(tx: Transaction, linear_fee: LinearFee, ex_unit_prices: ExUnitPrices, total_ref_script_size: bigint): bigint;
133
- /**
134
95
  * Converts JSON to Metadata according to MetadataJsonSchema
135
96
  * @param {string} json
136
97
  * @param {MetadataJsonSchema} schema
@@ -145,11 +106,47 @@ export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonS
145
106
  */
146
107
  export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
147
108
  /**
109
+ * @param {string} json
110
+ * @param {CardanoNodePlutusDatumSchema} schema
111
+ * @returns {PlutusData}
112
+ */
113
+ export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNodePlutusDatumSchema): PlutusData;
114
+ /**
115
+ * @param {PlutusData} datum
116
+ * @param {CardanoNodePlutusDatumSchema} schema
117
+ * @returns {string}
118
+ */
119
+ export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
120
+ /**
121
+ * @param {TransactionOutput} output
122
+ * @param {bigint} coins_per_utxo_byte
123
+ * @returns {bigint}
124
+ */
125
+ export function min_ada_required(output: TransactionOutput, coins_per_utxo_byte: bigint): bigint;
126
+ /**
148
127
  * @param {Redeemers} redeemers
149
128
  * @returns {ExUnits}
150
129
  */
151
130
  export function compute_total_ex_units(redeemers: Redeemers): ExUnits;
152
131
  /**
132
+ * encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
133
+ * @param {Uint8Array} bytes
134
+ * @returns {TransactionMetadatum}
135
+ */
136
+ export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
137
+ /**
138
+ * decodes from chunks of bytes in a list to a byte vector if that is the metadata format, otherwise returns None
139
+ * @param {TransactionMetadatum} metadata
140
+ * @returns {Uint8Array | undefined}
141
+ */
142
+ export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array | undefined;
143
+ /**
144
+ * @param {TransactionHash} tx_body_hash
145
+ * @param {PrivateKey} sk
146
+ * @returns {Vkeywitness}
147
+ */
148
+ export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
149
+ /**
153
150
  * @param {TransactionHash} tx_body_hash
154
151
  * @param {ByronAddress} addr
155
152
  * @param {LegacyDaedalusPrivateKey} key
@@ -164,50 +161,38 @@ export function make_daedalus_bootstrap_witness(tx_body_hash: TransactionHash, a
164
161
  */
165
162
  export function make_icarus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: Bip32PrivateKey): BootstrapWitness;
166
163
  /**
167
- * @param {TransactionHash} tx_body_hash
168
- * @param {PrivateKey} sk
169
- * @returns {Vkeywitness}
170
- */
171
- export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
172
- /**
173
- * @param {TransactionOutput} output
174
- * @param {bigint} coins_per_utxo_byte
164
+ *
165
+ * * Min fee for JUST the script, NOT including ref inputs
166
+ *
167
+ * @param {Transaction} tx
168
+ * @param {ExUnitPrices} ex_unit_prices
175
169
  * @returns {bigint}
176
170
  */
177
- export function min_ada_required(output: TransactionOutput, coins_per_utxo_byte: bigint): bigint;
178
- /**
179
- * @param {string} json
180
- * @param {CardanoNodePlutusDatumSchema} schema
181
- * @returns {PlutusData}
182
- */
183
- export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNodePlutusDatumSchema): PlutusData;
184
- /**
185
- * @param {PlutusData} datum
186
- * @param {CardanoNodePlutusDatumSchema} schema
187
- * @returns {string}
188
- */
189
- export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
171
+ export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): bigint;
190
172
  /**
173
+ * @param {Transaction} tx
174
+ * @param {LinearFee} linear_fee
175
+ * @returns {bigint}
191
176
  */
192
- export enum ChunkableStringKind {
193
- Single = 0,
194
- Chunked = 1,
195
- }
177
+ export function min_no_script_fee(tx: Transaction, linear_fee: LinearFee): bigint;
196
178
  /**
179
+ *
180
+ * * Calculates the cost of all ref scripts
181
+ * * * `total_ref_script_size` - Total size (original, not hashes) of all ref scripts. Duplicate scripts are counted as many times as they occur
182
+ *
183
+ * @param {Transaction} tx
184
+ * @param {LinearFee} linear_fee
185
+ * @param {ExUnitPrices} ex_unit_prices
186
+ * @param {bigint} total_ref_script_size
187
+ * @returns {bigint}
197
188
  */
198
- export enum NativeScriptKind {
199
- ScriptPubkey = 0,
200
- ScriptAll = 1,
201
- ScriptAny = 2,
202
- ScriptNOfK = 3,
203
- ScriptInvalidBefore = 4,
204
- ScriptInvalidHereafter = 5,
205
- }
189
+ export function min_fee(tx: Transaction, linear_fee: LinearFee, ex_unit_prices: ExUnitPrices, total_ref_script_size: bigint): bigint;
206
190
  /**
207
191
  */
208
- export enum NonceKind {
209
- Identity = 0,
210
- Hash = 1,
192
+ export enum MetadataJsonSchema {
193
+ NoConversions = 0,
194
+ BasicConversions = 1,
195
+ DetailedSchema = 2,
211
196
  }
212
197
  /**
213
198
  */
@@ -219,58 +204,40 @@ export enum DRepKind {
219
204
  }
220
205
  /**
221
206
  */
222
- export enum GovActionKind {
223
- ParameterChangeAction = 0,
224
- HardForkInitiationAction = 1,
225
- TreasuryWithdrawalsAction = 2,
226
- NoConfidence = 3,
227
- UpdateCommittee = 4,
228
- NewConstitution = 5,
229
- InfoAction = 6,
207
+ export enum Language {
208
+ PlutusV1 = 0,
209
+ PlutusV2 = 1,
210
+ PlutusV3 = 2,
230
211
  }
231
212
  /**
232
213
  */
233
- export enum AddressKind {
234
- Base = 0,
235
- Ptr = 1,
236
- Enterprise = 2,
237
- Reward = 3,
238
- Byron = 4,
214
+ export enum RedeemersKind {
215
+ ArrLegacyRedeemer = 0,
216
+ MapRedeemerKeyToRedeemerVal = 1,
239
217
  }
240
218
  /**
241
219
  */
242
- export enum ChangeSelectionAlgo {
243
- Default = 0,
220
+ export enum ChunkableStringKind {
221
+ Single = 0,
222
+ Chunked = 1,
244
223
  }
245
224
  /**
246
225
  */
247
- export enum ScriptKind {
248
- Native = 0,
249
- PlutusV1 = 1,
250
- PlutusV2 = 2,
251
- PlutusV3 = 3,
226
+ export enum DelegationDistributionKind {
227
+ Weighted = 0,
228
+ Legacy = 1,
252
229
  }
253
230
  /**
254
231
  */
255
- export enum Language {
256
- PlutusV1 = 0,
257
- PlutusV2 = 1,
258
- PlutusV3 = 2,
232
+ export enum NonceKind {
233
+ Identity = 0,
234
+ Hash = 1,
259
235
  }
260
236
  /**
261
- * Which version of the CIP25 spec to use. See CIP25 for details.
262
- * This will change how things are encoded but for the most part contains
263
- * the same information.
264
237
  */
265
- export enum CIP25Version {
266
- /**
267
- * Initial version of CIP25 with only string (utf8) asset names allowed.
268
- */
269
- V1 = 0,
270
- /**
271
- * Second version of CIP25. Supports any type of asset names.
272
- */
273
- V2 = 1,
238
+ export enum DatumOptionKind {
239
+ Hash = 0,
240
+ Datum = 1,
274
241
  }
275
242
  /**
276
243
  * Careful: this enum doesn't include the network ID part of the header
@@ -292,12 +259,14 @@ export enum AddressHeaderKind {
292
259
  }
293
260
  /**
294
261
  */
295
- export enum VoterKind {
296
- ConstitutionalCommitteeHotKeyHash = 0,
297
- ConstitutionalCommitteeHotScriptHash = 1,
298
- DRepKeyHash = 2,
299
- DRepScriptHash = 3,
300
- StakingPoolKeyHash = 4,
262
+ export enum StakeDistributionKind {
263
+ SingleKey = 0,
264
+ BootstrapEra = 1,
265
+ }
266
+ /**
267
+ */
268
+ export enum ChangeSelectionAlgo {
269
+ Default = 0,
301
270
  }
302
271
  /**
303
272
  */
@@ -308,75 +277,71 @@ export enum ByronAddrType {
308
277
  }
309
278
  /**
310
279
  */
311
- export enum CertificateKind {
312
- StakeRegistration = 0,
313
- StakeDeregistration = 1,
314
- StakeDelegation = 2,
315
- PoolRegistration = 3,
316
- PoolRetirement = 4,
317
- RegCert = 5,
318
- UnregCert = 6,
319
- VoteDelegCert = 7,
320
- StakeVoteDelegCert = 8,
321
- StakeRegDelegCert = 9,
322
- VoteRegDelegCert = 10,
323
- StakeVoteRegDelegCert = 11,
324
- AuthCommitteeHotCert = 12,
325
- ResignCommitteeColdCert = 13,
326
- RegDrepCert = 14,
327
- UnregDrepCert = 15,
328
- UpdateDrepCert = 16,
280
+ export enum RedeemerTag {
281
+ Spend = 0,
282
+ Mint = 1,
283
+ Cert = 2,
284
+ Reward = 3,
285
+ Voting = 4,
286
+ Proposing = 5,
329
287
  }
330
288
  /**
331
289
  */
332
- export enum StakeDistributionKind {
333
- SingleKey = 0,
334
- BootstrapEra = 1,
290
+ export enum AuxiliaryDataKind {
291
+ Shelley = 0,
292
+ ShelleyMA = 1,
293
+ Conway = 2,
335
294
  }
336
295
  /**
337
296
  */
338
- export enum CoinSelectionStrategyCIP2 {
339
- /**
340
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
341
- */
342
- LargestFirst = 0,
343
- /**
344
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
345
- */
346
- RandomImprove = 1,
347
- /**
348
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
349
- */
350
- LargestFirstMultiAsset = 2,
297
+ export enum RelayKind {
298
+ SingleHostAddr = 0,
299
+ SingleHostName = 1,
300
+ MultiHostName = 2,
301
+ }
351
302
  /**
352
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
353
303
  */
354
- RandomImproveMultiAsset = 3,
304
+ export enum VoterKind {
305
+ ConstitutionalCommitteeHotKeyHash = 0,
306
+ ConstitutionalCommitteeHotScriptHash = 1,
307
+ DRepKeyHash = 2,
308
+ DRepScriptHash = 3,
309
+ StakingPoolKeyHash = 4,
355
310
  }
356
311
  /**
357
312
  */
358
- export enum DelegationDistributionKind {
359
- Weighted = 0,
360
- Legacy = 1,
313
+ export enum PlutusDataKind {
314
+ ConstrPlutusData = 0,
315
+ Map = 1,
316
+ List = 2,
317
+ Integer = 3,
318
+ Bytes = 4,
361
319
  }
362
320
  /**
363
321
  */
364
- export enum CredentialKind {
365
- PubKey = 0,
366
- Script = 1,
322
+ export enum SpendingDataKind {
323
+ SpendingDataPubKey = 0,
324
+ SpendingDataScript = 1,
325
+ SpendingDataRedeem = 2,
367
326
  }
368
327
  /**
369
328
  */
370
- export enum RelayKind {
371
- SingleHostAddr = 0,
372
- SingleHostName = 1,
373
- MultiHostName = 2,
329
+ export enum AddressKind {
330
+ Base = 0,
331
+ Ptr = 1,
332
+ Enterprise = 2,
333
+ Reward = 3,
334
+ Byron = 4,
374
335
  }
375
336
  /**
376
337
  */
377
- export enum DatumOptionKind {
378
- Hash = 0,
379
- Datum = 1,
338
+ export enum NativeScriptKind {
339
+ ScriptPubkey = 0,
340
+ ScriptAll = 1,
341
+ ScriptAny = 2,
342
+ ScriptNOfK = 3,
343
+ ScriptInvalidBefore = 4,
344
+ ScriptInvalidHereafter = 5,
380
345
  }
381
346
  /**
382
347
  * JSON <-> PlutusData conversion schemas.
@@ -438,23 +403,48 @@ export enum TransactionOutputKind {
438
403
  }
439
404
  /**
440
405
  */
441
- export enum RedeemersKind {
442
- ArrLegacyRedeemer = 0,
443
- MapRedeemerKeyToRedeemerVal = 1,
406
+ export enum ScriptKind {
407
+ Native = 0,
408
+ PlutusV1 = 1,
409
+ PlutusV2 = 2,
410
+ PlutusV3 = 3,
444
411
  }
445
412
  /**
446
413
  */
447
- export enum MetadataJsonSchema {
448
- NoConversions = 0,
449
- BasicConversions = 1,
450
- DetailedSchema = 2,
414
+ export enum CredentialKind {
415
+ PubKey = 0,
416
+ Script = 1,
451
417
  }
452
418
  /**
453
419
  */
454
- export enum SpendingDataKind {
455
- SpendingDataPubKey = 0,
456
- SpendingDataScript = 1,
457
- SpendingDataRedeem = 2,
420
+ export enum GovActionKind {
421
+ ParameterChangeAction = 0,
422
+ HardForkInitiationAction = 1,
423
+ TreasuryWithdrawalsAction = 2,
424
+ NoConfidence = 3,
425
+ UpdateCommittee = 4,
426
+ NewConstitution = 5,
427
+ InfoAction = 6,
428
+ }
429
+ /**
430
+ */
431
+ export enum CoinSelectionStrategyCIP2 {
432
+ /**
433
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
434
+ */
435
+ LargestFirst = 0,
436
+ /**
437
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
438
+ */
439
+ RandomImprove = 1,
440
+ /**
441
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
442
+ */
443
+ LargestFirstMultiAsset = 2,
444
+ /**
445
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
446
+ */
447
+ RandomImproveMultiAsset = 3,
458
448
  }
459
449
  /**
460
450
  */
@@ -465,19 +455,24 @@ export enum Vote {
465
455
  }
466
456
  /**
467
457
  */
468
- export enum AuxiliaryDataKind {
469
- Shelley = 0,
470
- ShelleyMA = 1,
471
- Conway = 2,
472
- }
473
- /**
474
- */
475
- export enum PlutusDataKind {
476
- ConstrPlutusData = 0,
477
- Map = 1,
478
- List = 2,
479
- Integer = 3,
480
- Bytes = 4,
458
+ export enum CertificateKind {
459
+ StakeRegistration = 0,
460
+ StakeDeregistration = 1,
461
+ StakeDelegation = 2,
462
+ PoolRegistration = 3,
463
+ PoolRetirement = 4,
464
+ RegCert = 5,
465
+ UnregCert = 6,
466
+ VoteDelegCert = 7,
467
+ StakeVoteDelegCert = 8,
468
+ StakeRegDelegCert = 9,
469
+ VoteRegDelegCert = 10,
470
+ StakeVoteRegDelegCert = 11,
471
+ AuthCommitteeHotCert = 12,
472
+ ResignCommitteeColdCert = 13,
473
+ RegDrepCert = 14,
474
+ UnregDrepCert = 15,
475
+ UpdateDrepCert = 16,
481
476
  }
482
477
  /**
483
478
  */
@@ -489,14 +484,19 @@ export enum TransactionMetadatumKind {
489
484
  Text = 4,
490
485
  }
491
486
  /**
487
+ * Which version of the CIP25 spec to use. See CIP25 for details.
488
+ * This will change how things are encoded but for the most part contains
489
+ * the same information.
492
490
  */
493
- export enum RedeemerTag {
494
- Spend = 0,
495
- Mint = 1,
496
- Cert = 2,
497
- Reward = 3,
498
- Voting = 4,
499
- Proposing = 5,
491
+ export enum CIP25Version {
492
+ /**
493
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
494
+ */
495
+ V1 = 0,
496
+ /**
497
+ * Second version of CIP25. Supports any type of asset names.
498
+ */
499
+ V2 = 1,
500
500
  }
501
501
  /**
502
502
  */
@@ -1072,6 +1072,51 @@ export class AssetName {
1072
1072
  free(): void;
1073
1073
  /**
1074
1074
  *
1075
+ * * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
1076
+ *
1077
+ * @param {string} utf8_str
1078
+ * @returns {AssetName}
1079
+ */
1080
+ static from_str(utf8_str: string): AssetName;
1081
+ /**
1082
+ *
1083
+ * * AssetName as a utf8 string if it's possible. Will error if the asset is not utf8
1084
+ *
1085
+ * @returns {string}
1086
+ */
1087
+ to_str(): string;
1088
+ /**
1089
+ *
1090
+ * * Direct raw bytes without any CBOR structure
1091
+ *
1092
+ * @returns {Uint8Array}
1093
+ */
1094
+ to_raw_bytes(): Uint8Array;
1095
+ /**
1096
+ *
1097
+ * * Parse from the direct raw bytes, without any CBOR structure
1098
+ *
1099
+ * @param {Uint8Array} bytes
1100
+ * @returns {AssetName}
1101
+ */
1102
+ static from_raw_bytes(bytes: Uint8Array): AssetName;
1103
+ /**
1104
+ *
1105
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1106
+ *
1107
+ * @returns {string}
1108
+ */
1109
+ to_hex(): string;
1110
+ /**
1111
+ *
1112
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1113
+ *
1114
+ * @param {string} input
1115
+ * @returns {AssetName}
1116
+ */
1117
+ static from_hex(input: string): AssetName;
1118
+ /**
1119
+ *
1075
1120
  * * Serialize this type to CBOR bytes
1076
1121
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
1077
1122
  * * If created from scratch the CBOR will be canonical.
@@ -1132,51 +1177,6 @@ export class AssetName {
1132
1177
  * @returns {AssetName}
1133
1178
  */
1134
1179
  static from_json(json: string): AssetName;
1135
- /**
1136
- *
1137
- * * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
1138
- *
1139
- * @param {string} utf8_str
1140
- * @returns {AssetName}
1141
- */
1142
- static from_str(utf8_str: string): AssetName;
1143
- /**
1144
- *
1145
- * * AssetName as a utf8 string if it's possible. Will error if the asset is not utf8
1146
- *
1147
- * @returns {string}
1148
- */
1149
- to_str(): string;
1150
- /**
1151
- *
1152
- * * Direct raw bytes without any CBOR structure
1153
- *
1154
- * @returns {Uint8Array}
1155
- */
1156
- to_raw_bytes(): Uint8Array;
1157
- /**
1158
- *
1159
- * * Parse from the direct raw bytes, without any CBOR structure
1160
- *
1161
- * @param {Uint8Array} bytes
1162
- * @returns {AssetName}
1163
- */
1164
- static from_raw_bytes(bytes: Uint8Array): AssetName;
1165
- /**
1166
- *
1167
- * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1168
- *
1169
- * @returns {string}
1170
- */
1171
- to_hex(): string;
1172
- /**
1173
- *
1174
- * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1175
- *
1176
- * @param {string} input
1177
- * @returns {AssetName}
1178
- */
1179
- static from_hex(input: string): AssetName;
1180
1180
  }
1181
1181
  /**
1182
1182
  */
@@ -7597,6 +7597,25 @@ export class PlutusData {
7597
7597
  free(): void;
7598
7598
  /**
7599
7599
  *
7600
+ * * Convert to a Datum that will serialize equivalent to cardano-node's format
7601
+ * *
7602
+ * * Please VERY STRONGLY consider using PlutusData::from_cbor_bytes() instead wherever possible.
7603
+ * * You should try to never rely on a tool encoding CBOR a certain way as there are many possible,
7604
+ * * and just because it matches with a specific datum, doesn't mean that a different datum won't differ.
7605
+ * * This is critical as that means the datum hash won't match.
7606
+ * * After creation a datum (or other hashable CBOR object) should only be treated as raw CBOR bytes,
7607
+ * * or through a type that respects its specific CBOR format e.g. CML's PlutusData::from_cbor_bytes()
7608
+ * *
7609
+ * * This function is just here in case there's no possible way at all to create from CBOR bytes and
7610
+ * * thus cold only be constructed manually and then had this function called on it.
7611
+ * *
7612
+ * * This is also the format that CSL and Lucid use
7613
+ *
7614
+ * @returns {PlutusData}
7615
+ */
7616
+ to_cardano_node_format(): PlutusData;
7617
+ /**
7618
+ *
7600
7619
  * * Serialize this type to CBOR bytes
7601
7620
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
7602
7621
  * * If created from scratch the CBOR will be canonical.