@anastasia-labs/cardano-multiplatform-lib-browser 6.0.0 → 6.0.1-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,10 +17,17 @@ 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
- * @param {Redeemers} redeemers
21
- * @returns {ExUnits}
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}
22
23
  */
23
- export function compute_total_ex_units(redeemers: Redeemers): ExUnits;
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;
24
31
  /**
25
32
  * @param {AuxiliaryData} auxiliary_data
26
33
  * @returns {AuxiliaryDataHash}
@@ -124,30 +131,6 @@ export function min_no_script_fee(tx: Transaction, linear_fee: LinearFee): bigin
124
131
  */
125
132
  export function min_fee(tx: Transaction, linear_fee: LinearFee, ex_unit_prices: ExUnitPrices, total_ref_script_size: bigint): bigint;
126
133
  /**
127
- * @param {TransactionOutput} output
128
- * @param {bigint} coins_per_utxo_byte
129
- * @returns {bigint}
130
- */
131
- export function min_ada_required(output: TransactionOutput, coins_per_utxo_byte: bigint): bigint;
132
- /**
133
- * encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
134
- * @param {Uint8Array} bytes
135
- * @returns {TransactionMetadatum}
136
- */
137
- export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
138
- /**
139
- * decodes from chunks of bytes in a list to a byte vector if that is the metadata format, otherwise returns None
140
- * @param {TransactionMetadatum} metadata
141
- * @returns {Uint8Array | undefined}
142
- */
143
- export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array | undefined;
144
- /**
145
- * @param {TransactionHash} tx_body_hash
146
- * @param {PrivateKey} sk
147
- * @returns {Vkeywitness}
148
- */
149
- export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
150
- /**
151
134
  * Converts JSON to Metadata according to MetadataJsonSchema
152
135
  * @param {string} json
153
136
  * @param {MetadataJsonSchema} schema
@@ -162,6 +145,11 @@ export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonS
162
145
  */
163
146
  export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
164
147
  /**
148
+ * @param {Redeemers} redeemers
149
+ * @returns {ExUnits}
150
+ */
151
+ export function compute_total_ex_units(redeemers: Redeemers): ExUnits;
152
+ /**
165
153
  * @param {TransactionHash} tx_body_hash
166
154
  * @param {ByronAddress} addr
167
155
  * @param {LegacyDaedalusPrivateKey} key
@@ -176,6 +164,18 @@ export function make_daedalus_bootstrap_witness(tx_body_hash: TransactionHash, a
176
164
  */
177
165
  export function make_icarus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: Bip32PrivateKey): BootstrapWitness;
178
166
  /**
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
175
+ * @returns {bigint}
176
+ */
177
+ export function min_ada_required(output: TransactionOutput, coins_per_utxo_byte: bigint): bigint;
178
+ /**
179
179
  * @param {string} json
180
180
  * @param {CardanoNodePlutusDatumSchema} schema
181
181
  * @returns {PlutusData}
@@ -189,58 +189,51 @@ 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 AuxiliaryDataKind {
193
- Shelley = 0,
194
- ShelleyMA = 1,
195
- Conway = 2,
192
+ export enum RedeemersKind {
193
+ ArrLegacyRedeemer = 0,
194
+ MapRedeemerKeyToRedeemerVal = 1,
196
195
  }
197
196
  /**
197
+ * Which version of the CIP25 spec to use. See CIP25 for details.
198
+ * This will change how things are encoded but for the most part contains
199
+ * the same information.
198
200
  */
199
- export enum VoterKind {
200
- ConstitutionalCommitteeHotKeyHash = 0,
201
- ConstitutionalCommitteeHotScriptHash = 1,
202
- DRepKeyHash = 2,
203
- DRepScriptHash = 3,
204
- StakingPoolKeyHash = 4,
205
- }
201
+ export enum CIP25Version {
206
202
  /**
203
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
207
204
  */
208
- export enum DelegationDistributionKind {
209
- Weighted = 0,
210
- Legacy = 1,
211
- }
205
+ V1 = 0,
212
206
  /**
207
+ * Second version of CIP25. Supports any type of asset names.
213
208
  */
214
- export enum DatumOptionKind {
215
- Hash = 0,
216
- Datum = 1,
209
+ V2 = 1,
217
210
  }
218
211
  /**
219
212
  */
220
- export enum NonceKind {
221
- Identity = 0,
222
- Hash = 1,
213
+ export enum Language {
214
+ PlutusV1 = 0,
215
+ PlutusV2 = 1,
216
+ PlutusV3 = 2,
223
217
  }
224
218
  /**
225
219
  */
226
- export enum ChunkableStringKind {
227
- Single = 0,
228
- Chunked = 1,
220
+ export enum DelegationDistributionKind {
221
+ Weighted = 0,
222
+ Legacy = 1,
229
223
  }
230
224
  /**
231
- * Which version of the CIP25 spec to use. See CIP25 for details.
232
- * This will change how things are encoded but for the most part contains
233
- * the same information.
234
225
  */
235
- export enum CIP25Version {
236
- /**
237
- * Initial version of CIP25 with only string (utf8) asset names allowed.
238
- */
239
- V1 = 0,
226
+ export enum RelayKind {
227
+ SingleHostAddr = 0,
228
+ SingleHostName = 1,
229
+ MultiHostName = 2,
230
+ }
240
231
  /**
241
- * Second version of CIP25. Supports any type of asset names.
242
232
  */
243
- V2 = 1,
233
+ export enum AuxiliaryDataKind {
234
+ Shelley = 0,
235
+ ShelleyMA = 1,
236
+ Conway = 2,
244
237
  }
245
238
  /**
246
239
  */
@@ -272,120 +265,45 @@ export enum CertificateKind {
272
265
  }
273
266
  /**
274
267
  */
275
- export enum TransactionOutputKind {
276
- AlonzoFormatTxOut = 0,
277
- ConwayFormatTxOut = 1,
278
- }
279
- /**
280
- * Careful: this enum doesn't include the network ID part of the header
281
- * ex: base address isn't 0b0000_0000 but instead 0b0000
282
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
283
- */
284
- export enum AddressHeaderKind {
285
- BasePaymentKeyStakeKey = 0,
286
- BasePaymentScriptStakeKey = 1,
287
- BasePaymentKeyStakeScript = 2,
288
- BasePaymentScriptStakeScript = 3,
289
- PointerKey = 4,
290
- PointerScript = 5,
291
- EnterpriseKey = 6,
292
- EnterpriseScript = 7,
293
- Byron = 8,
294
- RewardKey = 14,
295
- RewardScript = 15,
296
- }
297
- /**
298
- */
299
268
  export enum StakeDistributionKind {
300
269
  SingleKey = 0,
301
270
  BootstrapEra = 1,
302
271
  }
303
272
  /**
304
273
  */
305
- export enum DRepKind {
306
- Key = 0,
307
- Script = 1,
308
- AlwaysAbstain = 2,
309
- AlwaysNoConfidence = 3,
310
- }
311
- /**
312
- */
313
- export enum NativeScriptKind {
314
- ScriptPubkey = 0,
315
- ScriptAll = 1,
316
- ScriptAny = 2,
317
- ScriptNOfK = 3,
318
- ScriptInvalidBefore = 4,
319
- ScriptInvalidHereafter = 5,
320
- }
321
- /**
322
- */
323
- export enum CoinSelectionStrategyCIP2 {
324
- /**
325
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
326
- */
327
- LargestFirst = 0,
328
- /**
329
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
330
- */
331
- RandomImprove = 1,
332
- /**
333
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
334
- */
335
- LargestFirstMultiAsset = 2,
336
- /**
337
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
338
- */
339
- RandomImproveMultiAsset = 3,
340
- }
341
- /**
342
- */
343
- export enum TransactionMetadatumKind {
344
- Map = 0,
345
- List = 1,
346
- Int = 2,
347
- Bytes = 3,
348
- Text = 4,
274
+ export enum Vote {
275
+ No = 0,
276
+ Yes = 1,
277
+ Abstain = 2,
349
278
  }
350
279
  /**
351
280
  */
352
- export enum RedeemerTag {
353
- Spend = 0,
354
- Mint = 1,
355
- Cert = 2,
356
- Reward = 3,
357
- Voting = 4,
358
- Proposing = 5,
281
+ export enum NonceKind {
282
+ Identity = 0,
283
+ Hash = 1,
359
284
  }
360
285
  /**
361
286
  */
362
- export enum AddressKind {
363
- Base = 0,
364
- Ptr = 1,
365
- Enterprise = 2,
366
- Reward = 3,
367
- Byron = 4,
287
+ export enum ChunkableStringKind {
288
+ Single = 0,
289
+ Chunked = 1,
368
290
  }
369
291
  /**
370
292
  */
371
- export enum Vote {
372
- No = 0,
373
- Yes = 1,
374
- Abstain = 2,
293
+ export enum DatumOptionKind {
294
+ Hash = 0,
295
+ Datum = 1,
375
296
  }
376
297
  /**
377
298
  */
378
- export enum MetadataJsonSchema {
379
- NoConversions = 0,
380
- BasicConversions = 1,
381
- DetailedSchema = 2,
299
+ export enum ChangeSelectionAlgo {
300
+ Default = 0,
382
301
  }
383
302
  /**
384
303
  */
385
- export enum RelayKind {
386
- SingleHostAddr = 0,
387
- SingleHostName = 1,
388
- MultiHostName = 2,
304
+ export enum CredentialKind {
305
+ PubKey = 0,
306
+ Script = 1,
389
307
  }
390
308
  /**
391
309
  * JSON <-> PlutusData conversion schemas.
@@ -441,18 +359,12 @@ export enum CardanoNodePlutusDatumSchema {
441
359
  }
442
360
  /**
443
361
  */
444
- export enum SpendingDataKind {
445
- SpendingDataPubKey = 0,
446
- SpendingDataScript = 1,
447
- SpendingDataRedeem = 2,
448
- }
449
- /**
450
- */
451
- export enum ScriptKind {
452
- Native = 0,
453
- PlutusV1 = 1,
454
- PlutusV2 = 2,
455
- PlutusV3 = 3,
362
+ export enum TransactionMetadatumKind {
363
+ Map = 0,
364
+ List = 1,
365
+ Int = 2,
366
+ Bytes = 3,
367
+ Text = 4,
456
368
  }
457
369
  /**
458
370
  */
@@ -466,6 +378,61 @@ export enum GovActionKind {
466
378
  InfoAction = 6,
467
379
  }
468
380
  /**
381
+ * Careful: this enum doesn't include the network ID part of the header
382
+ * ex: base address isn't 0b0000_0000 but instead 0b0000
383
+ * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
384
+ */
385
+ export enum AddressHeaderKind {
386
+ BasePaymentKeyStakeKey = 0,
387
+ BasePaymentScriptStakeKey = 1,
388
+ BasePaymentKeyStakeScript = 2,
389
+ BasePaymentScriptStakeScript = 3,
390
+ PointerKey = 4,
391
+ PointerScript = 5,
392
+ EnterpriseKey = 6,
393
+ EnterpriseScript = 7,
394
+ Byron = 8,
395
+ RewardKey = 14,
396
+ RewardScript = 15,
397
+ }
398
+ /**
399
+ */
400
+ export enum CoinSelectionStrategyCIP2 {
401
+ /**
402
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
403
+ */
404
+ LargestFirst = 0,
405
+ /**
406
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
407
+ */
408
+ RandomImprove = 1,
409
+ /**
410
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
411
+ */
412
+ LargestFirstMultiAsset = 2,
413
+ /**
414
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
415
+ */
416
+ RandomImproveMultiAsset = 3,
417
+ }
418
+ /**
419
+ */
420
+ export enum AddressKind {
421
+ Base = 0,
422
+ Ptr = 1,
423
+ Enterprise = 2,
424
+ Reward = 3,
425
+ Byron = 4,
426
+ }
427
+ /**
428
+ */
429
+ export enum DRepKind {
430
+ Key = 0,
431
+ Script = 1,
432
+ AlwaysAbstain = 2,
433
+ AlwaysNoConfidence = 3,
434
+ }
435
+ /**
469
436
  */
470
437
  export enum PlutusDataKind {
471
438
  ConstrPlutusData = 0,
@@ -476,27 +443,60 @@ export enum PlutusDataKind {
476
443
  }
477
444
  /**
478
445
  */
479
- export enum RedeemersKind {
480
- ArrLegacyRedeemer = 0,
481
- MapRedeemerKeyToRedeemerVal = 1,
446
+ export enum MetadataJsonSchema {
447
+ NoConversions = 0,
448
+ BasicConversions = 1,
449
+ DetailedSchema = 2,
482
450
  }
483
451
  /**
484
452
  */
485
- export enum CredentialKind {
486
- PubKey = 0,
487
- Script = 1,
453
+ export enum ScriptKind {
454
+ Native = 0,
455
+ PlutusV1 = 1,
456
+ PlutusV2 = 2,
457
+ PlutusV3 = 3,
488
458
  }
489
459
  /**
490
460
  */
491
- export enum ChangeSelectionAlgo {
492
- Default = 0,
461
+ export enum NativeScriptKind {
462
+ ScriptPubkey = 0,
463
+ ScriptAll = 1,
464
+ ScriptAny = 2,
465
+ ScriptNOfK = 3,
466
+ ScriptInvalidBefore = 4,
467
+ ScriptInvalidHereafter = 5,
493
468
  }
494
469
  /**
495
470
  */
496
- export enum Language {
497
- PlutusV1 = 0,
498
- PlutusV2 = 1,
499
- PlutusV3 = 2,
471
+ export enum TransactionOutputKind {
472
+ AlonzoFormatTxOut = 0,
473
+ ConwayFormatTxOut = 1,
474
+ }
475
+ /**
476
+ */
477
+ export enum SpendingDataKind {
478
+ SpendingDataPubKey = 0,
479
+ SpendingDataScript = 1,
480
+ SpendingDataRedeem = 2,
481
+ }
482
+ /**
483
+ */
484
+ export enum RedeemerTag {
485
+ Spend = 0,
486
+ Mint = 1,
487
+ Cert = 2,
488
+ Reward = 3,
489
+ Voting = 4,
490
+ Proposing = 5,
491
+ }
492
+ /**
493
+ */
494
+ export enum VoterKind {
495
+ ConstitutionalCommitteeHotKeyHash = 0,
496
+ ConstitutionalCommitteeHotScriptHash = 1,
497
+ DRepKeyHash = 2,
498
+ DRepScriptHash = 3,
499
+ StakingPoolKeyHash = 4,
500
500
  }
501
501
  /**
502
502
  */
@@ -1072,111 +1072,111 @@ 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}
1075
+ * * Serialize this type to CBOR bytes
1076
+ * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
1077
+ * * If created from scratch the CBOR will be canonical.
1078
+ *
1079
+ * @returns {Uint8Array}
1086
1080
  */
1087
- to_str(): string;
1081
+ to_cbor_bytes(): Uint8Array;
1088
1082
  /**
1089
1083
  *
1090
- * * Direct raw bytes without any CBOR structure
1084
+ * * Serialize this type to CBOR bytes using canonical CBOR encodings
1091
1085
  *
1092
1086
  * @returns {Uint8Array}
1093
1087
  */
1094
- to_raw_bytes(): Uint8Array;
1088
+ to_canonical_cbor_bytes(): Uint8Array;
1095
1089
  /**
1096
1090
  *
1097
- * * Parse from the direct raw bytes, without any CBOR structure
1091
+ * * Create this type from CBOR bytes
1098
1092
  *
1099
- * @param {Uint8Array} bytes
1093
+ * @param {Uint8Array} cbor_bytes
1100
1094
  * @returns {AssetName}
1101
1095
  */
1102
- static from_raw_bytes(bytes: Uint8Array): AssetName;
1096
+ static from_cbor_bytes(cbor_bytes: Uint8Array): AssetName;
1103
1097
  /**
1104
1098
  *
1105
- * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1099
+ * * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
1100
+ * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
1101
+ * * If created from scratch the CBOR will be canonical.
1106
1102
  *
1107
1103
  * @returns {string}
1108
1104
  */
1109
- to_hex(): string;
1105
+ to_cbor_hex(): string;
1110
1106
  /**
1111
1107
  *
1112
- * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1108
+ * * Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
1113
1109
  *
1114
- * @param {string} input
1115
- * @returns {AssetName}
1110
+ * @returns {string}
1116
1111
  */
1117
- static from_hex(input: string): AssetName;
1112
+ to_canonical_cbor_hex(): string;
1118
1113
  /**
1119
1114
  *
1120
- * * Serialize this type to CBOR bytes
1121
- * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
1122
- * * If created from scratch the CBOR will be canonical.
1115
+ * * Create this type from the CBOR bytes encoded as a hex string.
1116
+ * * This is useful for interfacing with CIP30
1123
1117
  *
1124
- * @returns {Uint8Array}
1118
+ * @param {string} cbor_bytes
1119
+ * @returns {AssetName}
1125
1120
  */
1126
- to_cbor_bytes(): Uint8Array;
1121
+ static from_cbor_hex(cbor_bytes: string): AssetName;
1127
1122
  /**
1128
- *
1129
- * * Serialize this type to CBOR bytes using canonical CBOR encodings
1130
- *
1131
- * @returns {Uint8Array}
1123
+ * @returns {string}
1132
1124
  */
1133
- to_canonical_cbor_bytes(): Uint8Array;
1125
+ to_json(): string;
1126
+ /**
1127
+ * @returns {any}
1128
+ */
1129
+ to_js_value(): any;
1130
+ /**
1131
+ * @param {string} json
1132
+ * @returns {AssetName}
1133
+ */
1134
+ static from_json(json: string): AssetName;
1134
1135
  /**
1135
1136
  *
1136
- * * Create this type from CBOR bytes
1137
- *
1138
- * @param {Uint8Array} cbor_bytes
1137
+ * * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
1138
+ *
1139
+ * @param {string} utf8_str
1139
1140
  * @returns {AssetName}
1140
1141
  */
1141
- static from_cbor_bytes(cbor_bytes: Uint8Array): AssetName;
1142
+ static from_str(utf8_str: string): AssetName;
1142
1143
  /**
1143
1144
  *
1144
- * * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
1145
- * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
1146
- * * If created from scratch the CBOR will be canonical.
1147
- *
1145
+ * * AssetName as a utf8 string if it's possible. Will error if the asset is not utf8
1146
+ *
1148
1147
  * @returns {string}
1149
1148
  */
1150
- to_cbor_hex(): string;
1149
+ to_str(): string;
1151
1150
  /**
1152
1151
  *
1153
- * * Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
1152
+ * * Direct raw bytes without any CBOR structure
1154
1153
  *
1155
- * @returns {string}
1154
+ * @returns {Uint8Array}
1156
1155
  */
1157
- to_canonical_cbor_hex(): string;
1156
+ to_raw_bytes(): Uint8Array;
1158
1157
  /**
1159
1158
  *
1160
- * * Create this type from the CBOR bytes encoded as a hex string.
1161
- * * This is useful for interfacing with CIP30
1159
+ * * Parse from the direct raw bytes, without any CBOR structure
1162
1160
  *
1163
- * @param {string} cbor_bytes
1161
+ * @param {Uint8Array} bytes
1164
1162
  * @returns {AssetName}
1165
1163
  */
1166
- static from_cbor_hex(cbor_bytes: string): AssetName;
1164
+ static from_raw_bytes(bytes: Uint8Array): AssetName;
1167
1165
  /**
1166
+ *
1167
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1168
+ *
1168
1169
  * @returns {string}
1169
1170
  */
1170
- to_json(): string;
1171
- /**
1172
- * @returns {any}
1173
- */
1174
- to_js_value(): any;
1171
+ to_hex(): string;
1175
1172
  /**
1176
- * @param {string} json
1173
+ *
1174
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1175
+ *
1176
+ * @param {string} input
1177
1177
  * @returns {AssetName}
1178
1178
  */
1179
- static from_json(json: string): AssetName;
1179
+ static from_hex(input: string): AssetName;
1180
1180
  }
1181
1181
  /**
1182
1182
  */
@@ -1286,6 +1286,54 @@ export class AuthCommitteeHotCert {
1286
1286
  export class AuxiliaryData {
1287
1287
  free(): void;
1288
1288
  /**
1289
+ * @returns {AuxiliaryData}
1290
+ */
1291
+ static new(): AuxiliaryData;
1292
+ /**
1293
+ * @returns {Metadata | undefined}
1294
+ */
1295
+ metadata(): Metadata | undefined;
1296
+ /**
1297
+ * @returns {NativeScriptList | undefined}
1298
+ */
1299
+ native_scripts(): NativeScriptList | undefined;
1300
+ /**
1301
+ * @returns {PlutusV1ScriptList | undefined}
1302
+ */
1303
+ plutus_v1_scripts(): PlutusV1ScriptList | undefined;
1304
+ /**
1305
+ * @returns {PlutusV2ScriptList | undefined}
1306
+ */
1307
+ plutus_v2_scripts(): PlutusV2ScriptList | undefined;
1308
+ /**
1309
+ * Warning: overwrites any conflicting metadatum labels present
1310
+ * @param {Metadata} other
1311
+ */
1312
+ add_metadata(other: Metadata): void;
1313
+ /**
1314
+ * Warning: does not check for duplicates and may migrate eras
1315
+ * @param {NativeScriptList} scripts
1316
+ */
1317
+ add_native_scripts(scripts: NativeScriptList): void;
1318
+ /**
1319
+ * Warning: does not check for duplicates and may migrate eras
1320
+ * @param {PlutusV1ScriptList} scripts
1321
+ */
1322
+ add_plutus_v1_scripts(scripts: PlutusV1ScriptList): void;
1323
+ /**
1324
+ * Warning: does not check for duplicates and may migrate eras
1325
+ * @param {PlutusV2ScriptList} scripts
1326
+ */
1327
+ add_plutus_v2_scripts(scripts: PlutusV2ScriptList): void;
1328
+ /**
1329
+ * Adds everything present in other to self
1330
+ * May change the era the aux data is in if necessary
1331
+ * Warning: overwrites any metadatum labels present
1332
+ * also does not check for duplicates in scripts
1333
+ * @param {AuxiliaryData} other
1334
+ */
1335
+ add(other: AuxiliaryData): void;
1336
+ /**
1289
1337
  *
1290
1338
  * * Serialize this type to CBOR bytes
1291
1339
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -1378,54 +1426,6 @@ export class AuxiliaryData {
1378
1426
  * @returns {ConwayFormatAuxData | undefined}
1379
1427
  */
1380
1428
  as_conway(): ConwayFormatAuxData | undefined;
1381
- /**
1382
- * @returns {AuxiliaryData}
1383
- */
1384
- static new(): AuxiliaryData;
1385
- /**
1386
- * @returns {Metadata | undefined}
1387
- */
1388
- metadata(): Metadata | undefined;
1389
- /**
1390
- * @returns {NativeScriptList | undefined}
1391
- */
1392
- native_scripts(): NativeScriptList | undefined;
1393
- /**
1394
- * @returns {PlutusV1ScriptList | undefined}
1395
- */
1396
- plutus_v1_scripts(): PlutusV1ScriptList | undefined;
1397
- /**
1398
- * @returns {PlutusV2ScriptList | undefined}
1399
- */
1400
- plutus_v2_scripts(): PlutusV2ScriptList | undefined;
1401
- /**
1402
- * Warning: overwrites any conflicting metadatum labels present
1403
- * @param {Metadata} other
1404
- */
1405
- add_metadata(other: Metadata): void;
1406
- /**
1407
- * Warning: does not check for duplicates and may migrate eras
1408
- * @param {NativeScriptList} scripts
1409
- */
1410
- add_native_scripts(scripts: NativeScriptList): void;
1411
- /**
1412
- * Warning: does not check for duplicates and may migrate eras
1413
- * @param {PlutusV1ScriptList} scripts
1414
- */
1415
- add_plutus_v1_scripts(scripts: PlutusV1ScriptList): void;
1416
- /**
1417
- * Warning: does not check for duplicates and may migrate eras
1418
- * @param {PlutusV2ScriptList} scripts
1419
- */
1420
- add_plutus_v2_scripts(scripts: PlutusV2ScriptList): void;
1421
- /**
1422
- * Adds everything present in other to self
1423
- * May change the era the aux data is in if necessary
1424
- * Warning: overwrites any metadatum labels present
1425
- * also does not check for duplicates in scripts
1426
- * @param {AuxiliaryData} other
1427
- */
1428
- add(other: AuxiliaryData): void;
1429
1429
  }
1430
1430
  /**
1431
1431
  */
@@ -6796,6 +6796,24 @@ export class MultiHostName {
6796
6796
  export class NativeScript {
6797
6797
  free(): void;
6798
6798
  /**
6799
+ * Returns an array of unique Ed25519KeyHashes
6800
+ * contained within this script recursively on any depth level.
6801
+ * The order of the keys in the result is not determined in any way.
6802
+ * @returns {Ed25519KeyHashList}
6803
+ */
6804
+ get_required_signers(): Ed25519KeyHashList;
6805
+ /**
6806
+ * @returns {ScriptHash}
6807
+ */
6808
+ hash(): ScriptHash;
6809
+ /**
6810
+ * @param {bigint | undefined} lower_bound
6811
+ * @param {bigint | undefined} upper_bound
6812
+ * @param {Ed25519KeyHashList} key_hashes
6813
+ * @returns {boolean}
6814
+ */
6815
+ verify(lower_bound: bigint | undefined, upper_bound: bigint | undefined, key_hashes: Ed25519KeyHashList): boolean;
6816
+ /**
6799
6817
  *
6800
6818
  * * Serialize this type to CBOR bytes
6801
6819
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -6918,24 +6936,6 @@ export class NativeScript {
6918
6936
  * @returns {ScriptInvalidHereafter | undefined}
6919
6937
  */
6920
6938
  as_script_invalid_hereafter(): ScriptInvalidHereafter | undefined;
6921
- /**
6922
- * Returns an array of unique Ed25519KeyHashes
6923
- * contained within this script recursively on any depth level.
6924
- * The order of the keys in the result is not determined in any way.
6925
- * @returns {Ed25519KeyHashList}
6926
- */
6927
- get_required_signers(): Ed25519KeyHashList;
6928
- /**
6929
- * @returns {ScriptHash}
6930
- */
6931
- hash(): ScriptHash;
6932
- /**
6933
- * @param {bigint | undefined} lower_bound
6934
- * @param {bigint | undefined} upper_bound
6935
- * @param {Ed25519KeyHashList} key_hashes
6936
- * @returns {boolean}
6937
- */
6938
- verify(lower_bound: bigint | undefined, upper_bound: bigint | undefined, key_hashes: Ed25519KeyHashList): boolean;
6939
6939
  }
6940
6940
  /**
6941
6941
  */
@@ -13062,6 +13062,41 @@ export class TransactionMetadatumList {
13062
13062
  export class TransactionOutput {
13063
13063
  free(): void;
13064
13064
  /**
13065
+ * @param {Address} address
13066
+ * @param {Value} amount
13067
+ * @param {DatumOption | undefined} [datum_option]
13068
+ * @param {Script | undefined} [script_reference]
13069
+ * @returns {TransactionOutput}
13070
+ */
13071
+ static new(address: Address, amount: Value, datum_option?: DatumOption, script_reference?: Script): TransactionOutput;
13072
+ /**
13073
+ * @returns {Address}
13074
+ */
13075
+ address(): Address;
13076
+ /**
13077
+ * @returns {Value}
13078
+ */
13079
+ amount(): Value;
13080
+ /**
13081
+ * @param {Value} amount
13082
+ */
13083
+ set_amount(amount: Value): void;
13084
+ /**
13085
+ * @returns {DatumOption | undefined}
13086
+ */
13087
+ datum(): DatumOption | undefined;
13088
+ /**
13089
+ * Get the datum hash from a tx output if present as a hash.
13090
+ * Returns None if there is no datum, or the datum is inlined.
13091
+ * Use TransactionOutput::datum() for inlined datums.
13092
+ * @returns {DatumHash | undefined}
13093
+ */
13094
+ datum_hash(): DatumHash | undefined;
13095
+ /**
13096
+ * @returns {Script | undefined}
13097
+ */
13098
+ script_ref(): Script | undefined;
13099
+ /**
13065
13100
  *
13066
13101
  * * Serialize this type to CBOR bytes
13067
13102
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -13145,41 +13180,6 @@ export class TransactionOutput {
13145
13180
  * @returns {ConwayFormatTxOut | undefined}
13146
13181
  */
13147
13182
  as_conway_format_tx_out(): ConwayFormatTxOut | undefined;
13148
- /**
13149
- * @param {Address} address
13150
- * @param {Value} amount
13151
- * @param {DatumOption | undefined} [datum_option]
13152
- * @param {Script | undefined} [script_reference]
13153
- * @returns {TransactionOutput}
13154
- */
13155
- static new(address: Address, amount: Value, datum_option?: DatumOption, script_reference?: Script): TransactionOutput;
13156
- /**
13157
- * @returns {Address}
13158
- */
13159
- address(): Address;
13160
- /**
13161
- * @returns {Value}
13162
- */
13163
- amount(): Value;
13164
- /**
13165
- * @param {Value} amount
13166
- */
13167
- set_amount(amount: Value): void;
13168
- /**
13169
- * @returns {DatumOption | undefined}
13170
- */
13171
- datum(): DatumOption | undefined;
13172
- /**
13173
- * Get the datum hash from a tx output if present as a hash.
13174
- * Returns None if there is no datum, or the datum is inlined.
13175
- * Use TransactionOutput::datum() for inlined datums.
13176
- * @returns {DatumHash | undefined}
13177
- */
13178
- datum_hash(): DatumHash | undefined;
13179
- /**
13180
- * @returns {Script | undefined}
13181
- */
13182
- script_ref(): Script | undefined;
13183
13183
  }
13184
13184
  /**
13185
13185
  */
@@ -13322,6 +13322,14 @@ export class TransactionUnspentOutput {
13322
13322
  export class TransactionWitnessSet {
13323
13323
  free(): void;
13324
13324
  /**
13325
+ * @param {TransactionWitnessSet} other
13326
+ */
13327
+ add_all_witnesses(other: TransactionWitnessSet): void;
13328
+ /**
13329
+ * @returns {LanguageList}
13330
+ */
13331
+ languages(): LanguageList;
13332
+ /**
13325
13333
  *
13326
13334
  * * Serialize this type to CBOR bytes
13327
13335
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -13451,14 +13459,6 @@ export class TransactionWitnessSet {
13451
13459
  * @returns {TransactionWitnessSet}
13452
13460
  */
13453
13461
  static new(): TransactionWitnessSet;
13454
- /**
13455
- * @param {TransactionWitnessSet} other
13456
- */
13457
- add_all_witnesses(other: TransactionWitnessSet): void;
13458
- /**
13459
- * @returns {LanguageList}
13460
- */
13461
- languages(): LanguageList;
13462
13462
  }
13463
13463
  /**
13464
13464
  * Builder de-duplicates witnesses as they are added