@anastasia-labs/cardano-multiplatform-lib-nodejs 5.3.1-2 → 5.3.1-4

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,74 +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
- *
21
- * * Min fee for JUST the script
22
- *
23
- * @param {Transaction} tx
24
- * @param {ExUnitPrices} ex_unit_prices
25
- * @returns {bigint}
26
- */
27
- export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): bigint;
28
- /**
29
- * @param {Transaction} tx
30
- * @param {LinearFee} linear_fee
31
- * @returns {bigint}
32
- */
33
- export function min_no_script_fee(tx: Transaction, linear_fee: LinearFee): bigint;
34
- /**
35
- * @param {Transaction} tx
36
- * @param {LinearFee} linear_fee
37
- * @param {ExUnitPrices} ex_unit_prices
38
- * @returns {bigint}
39
- */
40
- export function min_fee(tx: Transaction, linear_fee: LinearFee, ex_unit_prices: ExUnitPrices): bigint;
41
- /**
42
- * encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
43
- * @param {Uint8Array} bytes
44
- * @returns {TransactionMetadatum}
45
- */
46
- export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
47
- /**
48
- * decodes from chunks of bytes in a list to a byte vector if that is the metadata format, otherwise returns None
49
- * @param {TransactionMetadatum} metadata
50
- * @returns {Uint8Array | undefined}
51
- */
52
- export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array | undefined;
53
- /**
54
- * @param {TransactionHash} tx_body_hash
55
- * @param {PrivateKey} sk
56
- * @returns {Vkeywitness}
57
- */
58
- export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
59
- /**
60
- * Converts JSON to Metadata according to MetadataJsonSchema
61
- * @param {string} json
62
- * @param {MetadataJsonSchema} schema
63
- * @returns {TransactionMetadatum}
64
- */
65
- export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonSchema): TransactionMetadatum;
66
- /**
67
- * Converts Metadata to JSON according to MetadataJsonSchema
68
- * @param {TransactionMetadatum} metadatum
69
- * @param {MetadataJsonSchema} schema
70
- * @returns {string}
71
- */
72
- export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
73
- /**
74
- * @param {TransactionHash} tx_body_hash
75
- * @param {ByronAddress} addr
76
- * @param {LegacyDaedalusPrivateKey} key
77
- * @returns {BootstrapWitness}
78
- */
79
- export function make_daedalus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: LegacyDaedalusPrivateKey): BootstrapWitness;
80
- /**
81
- * @param {TransactionHash} tx_body_hash
82
- * @param {ByronAddress} addr
83
- * @param {Bip32PrivateKey} key
84
- * @returns {BootstrapWitness}
85
- */
86
- export function make_icarus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: Bip32PrivateKey): BootstrapWitness;
87
- /**
88
20
  * @param {AuxiliaryData} auxiliary_data
89
21
  * @returns {AuxiliaryDataHash}
90
22
  */
@@ -146,18 +78,6 @@ export function calc_script_data_hash(redeemers: Redeemers, datums: PlutusDataLi
146
78
  */
147
79
  export function calc_script_data_hash_from_witness(witnesses: TransactionWitnessSet, cost_models: CostModels): ScriptDataHash | undefined;
148
80
  /**
149
- * @param {string} json
150
- * @param {CardanoNodePlutusDatumSchema} schema
151
- * @returns {PlutusData}
152
- */
153
- export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNodePlutusDatumSchema): PlutusData;
154
- /**
155
- * @param {PlutusData} datum
156
- * @param {CardanoNodePlutusDatumSchema} schema
157
- * @returns {string}
158
- */
159
- export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
160
- /**
161
81
  * @param {TransactionBody} txbody
162
82
  * @param {bigint} pool_deposit
163
83
  * @param {bigint} key_deposit
@@ -172,22 +92,102 @@ export function get_implicit_input(txbody: TransactionBody, pool_deposit: bigint
172
92
  */
173
93
  export function get_deposit(txbody: TransactionBody, pool_deposit: bigint, key_deposit: bigint): bigint;
174
94
  /**
175
- * @param {TransactionOutput} output
176
- * @param {bigint} coins_per_utxo_byte
95
+ *
96
+ * * Min fee for JUST the script
97
+ *
98
+ * @param {Transaction} tx
99
+ * @param {ExUnitPrices} ex_unit_prices
177
100
  * @returns {bigint}
178
101
  */
179
- export function min_ada_required(output: TransactionOutput, coins_per_utxo_byte: bigint): bigint;
102
+ export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): bigint;
103
+ /**
104
+ * @param {Transaction} tx
105
+ * @param {LinearFee} linear_fee
106
+ * @returns {bigint}
107
+ */
108
+ export function min_no_script_fee(tx: Transaction, linear_fee: LinearFee): bigint;
109
+ /**
110
+ * @param {Transaction} tx
111
+ * @param {LinearFee} linear_fee
112
+ * @param {ExUnitPrices} ex_unit_prices
113
+ * @returns {bigint}
114
+ */
115
+ export function min_fee(tx: Transaction, linear_fee: LinearFee, ex_unit_prices: ExUnitPrices): bigint;
116
+ /**
117
+ * Converts JSON to Metadata according to MetadataJsonSchema
118
+ * @param {string} json
119
+ * @param {MetadataJsonSchema} schema
120
+ * @returns {TransactionMetadatum}
121
+ */
122
+ export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonSchema): TransactionMetadatum;
123
+ /**
124
+ * Converts Metadata to JSON according to MetadataJsonSchema
125
+ * @param {TransactionMetadatum} metadatum
126
+ * @param {MetadataJsonSchema} schema
127
+ * @returns {string}
128
+ */
129
+ export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
180
130
  /**
181
131
  * @param {Redeemers} redeemers
182
132
  * @returns {ExUnits}
183
133
  */
184
134
  export function compute_total_ex_units(redeemers: Redeemers): ExUnits;
185
135
  /**
136
+ * @param {TransactionHash} tx_body_hash
137
+ * @param {ByronAddress} addr
138
+ * @param {LegacyDaedalusPrivateKey} key
139
+ * @returns {BootstrapWitness}
186
140
  */
187
- export enum MetadataJsonSchema {
188
- NoConversions = 0,
189
- BasicConversions = 1,
190
- DetailedSchema = 2,
141
+ export function make_daedalus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: LegacyDaedalusPrivateKey): BootstrapWitness;
142
+ /**
143
+ * @param {TransactionHash} tx_body_hash
144
+ * @param {ByronAddress} addr
145
+ * @param {Bip32PrivateKey} key
146
+ * @returns {BootstrapWitness}
147
+ */
148
+ export function make_icarus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: Bip32PrivateKey): BootstrapWitness;
149
+ /**
150
+ * @param {TransactionHash} tx_body_hash
151
+ * @param {PrivateKey} sk
152
+ * @returns {Vkeywitness}
153
+ */
154
+ export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
155
+ /**
156
+ * @param {TransactionOutput} output
157
+ * @param {bigint} coins_per_utxo_byte
158
+ * @returns {bigint}
159
+ */
160
+ export function min_ada_required(output: TransactionOutput, coins_per_utxo_byte: bigint): bigint;
161
+ /**
162
+ * encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
163
+ * @param {Uint8Array} bytes
164
+ * @returns {TransactionMetadatum}
165
+ */
166
+ export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
167
+ /**
168
+ * decodes from chunks of bytes in a list to a byte vector if that is the metadata format, otherwise returns None
169
+ * @param {TransactionMetadatum} metadata
170
+ * @returns {Uint8Array | undefined}
171
+ */
172
+ export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array | undefined;
173
+ /**
174
+ * @param {string} json
175
+ * @param {CardanoNodePlutusDatumSchema} schema
176
+ * @returns {PlutusData}
177
+ */
178
+ export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNodePlutusDatumSchema): PlutusData;
179
+ /**
180
+ * @param {PlutusData} datum
181
+ * @param {CardanoNodePlutusDatumSchema} schema
182
+ * @returns {string}
183
+ */
184
+ export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
185
+ /**
186
+ */
187
+ export enum Language {
188
+ PlutusV1 = 0,
189
+ PlutusV2 = 1,
190
+ PlutusV3 = 2,
191
191
  }
192
192
  /**
193
193
  * Which version of the CIP25 spec to use. See CIP25 for details.
@@ -205,6 +205,46 @@ export enum CIP25Version {
205
205
  V2 = 1,
206
206
  }
207
207
  /**
208
+ */
209
+ export enum VoterKind {
210
+ ConstitutionalCommitteeHotKeyHash = 0,
211
+ ConstitutionalCommitteeHotScriptHash = 1,
212
+ DRepKeyHash = 2,
213
+ DRepScriptHash = 3,
214
+ StakingPoolKeyHash = 4,
215
+ }
216
+ /**
217
+ */
218
+ export enum ChangeSelectionAlgo {
219
+ Default = 0,
220
+ }
221
+ /**
222
+ */
223
+ export enum CoinSelectionStrategyCIP2 {
224
+ /**
225
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
226
+ */
227
+ LargestFirst = 0,
228
+ /**
229
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
230
+ */
231
+ RandomImprove = 1,
232
+ /**
233
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
234
+ */
235
+ LargestFirstMultiAsset = 2,
236
+ /**
237
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
238
+ */
239
+ RandomImproveMultiAsset = 3,
240
+ }
241
+ /**
242
+ */
243
+ export enum DelegationDistributionKind {
244
+ Weighted = 0,
245
+ Legacy = 1,
246
+ }
247
+ /**
208
248
  * JSON <-> PlutusData conversion schemas.
209
249
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
210
250
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -258,108 +298,10 @@ export enum CardanoNodePlutusDatumSchema {
258
298
  }
259
299
  /**
260
300
  */
261
- export enum ByronAddrType {
262
- PublicKey = 0,
263
- Script = 1,
264
- Redeem = 2,
265
- }
266
- /**
267
- */
268
- export enum DRepKind {
269
- Key = 0,
270
- Script = 1,
271
- AlwaysAbstain = 2,
272
- AlwaysNoConfidence = 3,
273
- }
274
- /**
275
- */
276
- export enum ChangeSelectionAlgo {
277
- Default = 0,
278
- }
279
- /**
280
- */
281
- export enum AddressKind {
282
- Base = 0,
283
- Ptr = 1,
284
- Enterprise = 2,
285
- Reward = 3,
286
- Byron = 4,
287
- }
288
- /**
289
- */
290
- export enum DatumOptionKind {
291
- Hash = 0,
292
- Datum = 1,
293
- }
294
- /**
295
- */
296
- export enum ChunkableStringKind {
297
- Single = 0,
298
- Chunked = 1,
299
- }
300
- /**
301
- */
302
- export enum DelegationDistributionKind {
303
- Weighted = 0,
304
- Legacy = 1,
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 ScriptKind {
320
- Native = 0,
321
- PlutusV1 = 1,
322
- PlutusV2 = 2,
323
- PlutusV3 = 3,
324
- }
325
- /**
326
- */
327
- export enum AuxiliaryDataKind {
328
- Shelley = 0,
329
- ShelleyMA = 1,
330
- Conway = 2,
331
- }
332
- /**
333
- */
334
- export enum NonceKind {
335
- Identity = 0,
336
- Hash = 1,
337
- }
338
- /**
339
- */
340
- export enum SpendingDataKind {
341
- SpendingDataPubKey = 0,
342
- SpendingDataScript = 1,
343
- SpendingDataRedeem = 2,
344
- }
345
- /**
346
- */
347
- export enum RedeemersKind {
348
- ArrLegacyRedeemer = 0,
349
- MapRedeemerKeyToRedeemerVal = 1,
350
- }
351
- /**
352
- */
353
- export enum Language {
354
- PlutusV1 = 0,
355
- PlutusV2 = 1,
356
- PlutusV3 = 2,
357
- }
358
- /**
359
- */
360
- export enum CredentialKind {
361
- PubKey = 0,
362
- Script = 1,
301
+ export enum RelayKind {
302
+ SingleHostAddr = 0,
303
+ SingleHostName = 1,
304
+ MultiHostName = 2,
363
305
  }
364
306
  /**
365
307
  */
@@ -384,38 +326,34 @@ export enum CertificateKind {
384
326
  }
385
327
  /**
386
328
  */
387
- export enum TransactionOutputKind {
388
- AlonzoFormatTxOut = 0,
389
- ConwayFormatTxOut = 1,
390
- }
391
- /**
392
- */
393
- export enum CoinSelectionStrategyCIP2 {
394
- /**
395
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
396
- */
397
- LargestFirst = 0,
398
- /**
399
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
400
- */
401
- RandomImprove = 1,
329
+ export enum ScriptKind {
330
+ Native = 0,
331
+ PlutusV1 = 1,
332
+ PlutusV2 = 2,
333
+ PlutusV3 = 3,
334
+ }
402
335
  /**
403
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
404
336
  */
405
- LargestFirstMultiAsset = 2,
337
+ export enum Vote {
338
+ No = 0,
339
+ Yes = 1,
340
+ Abstain = 2,
341
+ }
406
342
  /**
407
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
408
343
  */
409
- RandomImproveMultiAsset = 3,
344
+ export enum NativeScriptKind {
345
+ ScriptPubkey = 0,
346
+ ScriptAll = 1,
347
+ ScriptAny = 2,
348
+ ScriptNOfK = 3,
349
+ ScriptInvalidBefore = 4,
350
+ ScriptInvalidHereafter = 5,
410
351
  }
411
352
  /**
412
353
  */
413
- export enum VoterKind {
414
- ConstitutionalCommitteeHotKeyHash = 0,
415
- ConstitutionalCommitteeHotScriptHash = 1,
416
- DRepKeyHash = 2,
417
- DRepScriptHash = 3,
418
- StakingPoolKeyHash = 4,
354
+ export enum CredentialKind {
355
+ PubKey = 0,
356
+ Script = 1,
419
357
  }
420
358
  /**
421
359
  * Careful: this enum doesn't include the network ID part of the header
@@ -437,13 +375,28 @@ export enum AddressHeaderKind {
437
375
  }
438
376
  /**
439
377
  */
440
- export enum RedeemerTag {
441
- Spend = 0,
442
- Mint = 1,
443
- Cert = 2,
444
- Reward = 3,
445
- Voting = 4,
446
- Proposing = 5,
378
+ export enum AuxiliaryDataKind {
379
+ Shelley = 0,
380
+ ShelleyMA = 1,
381
+ Conway = 2,
382
+ }
383
+ /**
384
+ */
385
+ export enum RedeemersKind {
386
+ ArrLegacyRedeemer = 0,
387
+ MapRedeemerKeyToRedeemerVal = 1,
388
+ }
389
+ /**
390
+ */
391
+ export enum TransactionOutputKind {
392
+ AlonzoFormatTxOut = 0,
393
+ ConwayFormatTxOut = 1,
394
+ }
395
+ /**
396
+ */
397
+ export enum DatumOptionKind {
398
+ Hash = 0,
399
+ Datum = 1,
447
400
  }
448
401
  /**
449
402
  */
@@ -456,19 +409,48 @@ export enum PlutusDataKind {
456
409
  }
457
410
  /**
458
411
  */
459
- export enum TransactionMetadatumKind {
460
- Map = 0,
461
- List = 1,
462
- Int = 2,
463
- Bytes = 3,
464
- Text = 4,
412
+ export enum ChunkableStringKind {
413
+ Single = 0,
414
+ Chunked = 1,
465
415
  }
466
416
  /**
467
417
  */
468
- export enum RelayKind {
469
- SingleHostAddr = 0,
470
- SingleHostName = 1,
471
- MultiHostName = 2,
418
+ export enum SpendingDataKind {
419
+ SpendingDataPubKey = 0,
420
+ SpendingDataScript = 1,
421
+ SpendingDataRedeem = 2,
422
+ }
423
+ /**
424
+ */
425
+ export enum DRepKind {
426
+ Key = 0,
427
+ Script = 1,
428
+ AlwaysAbstain = 2,
429
+ AlwaysNoConfidence = 3,
430
+ }
431
+ /**
432
+ */
433
+ export enum MetadataJsonSchema {
434
+ NoConversions = 0,
435
+ BasicConversions = 1,
436
+ DetailedSchema = 2,
437
+ }
438
+ /**
439
+ */
440
+ export enum RedeemerTag {
441
+ Spend = 0,
442
+ Mint = 1,
443
+ Cert = 2,
444
+ Reward = 3,
445
+ Voting = 4,
446
+ Proposing = 5,
447
+ }
448
+ /**
449
+ */
450
+ export enum ByronAddrType {
451
+ PublicKey = 0,
452
+ Script = 1,
453
+ Redeem = 2,
472
454
  }
473
455
  /**
474
456
  */
@@ -478,20 +460,38 @@ export enum StakeDistributionKind {
478
460
  }
479
461
  /**
480
462
  */
481
- export enum Vote {
482
- No = 0,
483
- Yes = 1,
484
- Abstain = 2,
463
+ export enum NonceKind {
464
+ Identity = 0,
465
+ Hash = 1,
485
466
  }
486
467
  /**
487
468
  */
488
- export enum NativeScriptKind {
489
- ScriptPubkey = 0,
490
- ScriptAll = 1,
491
- ScriptAny = 2,
492
- ScriptNOfK = 3,
493
- ScriptInvalidBefore = 4,
494
- ScriptInvalidHereafter = 5,
469
+ export enum TransactionMetadatumKind {
470
+ Map = 0,
471
+ List = 1,
472
+ Int = 2,
473
+ Bytes = 3,
474
+ Text = 4,
475
+ }
476
+ /**
477
+ */
478
+ export enum GovActionKind {
479
+ ParameterChangeAction = 0,
480
+ HardForkInitiationAction = 1,
481
+ TreasuryWithdrawalsAction = 2,
482
+ NoConfidence = 3,
483
+ UpdateCommittee = 4,
484
+ NewConstitution = 5,
485
+ InfoAction = 6,
486
+ }
487
+ /**
488
+ */
489
+ export enum AddressKind {
490
+ Base = 0,
491
+ Ptr = 1,
492
+ Enterprise = 2,
493
+ Reward = 3,
494
+ Byron = 4,
495
495
  }
496
496
  /**
497
497
  */
@@ -799,34 +799,46 @@ export class AddressContent {
799
799
  export class AddressId {
800
800
  free(): void;
801
801
  /**
802
- * @returns {Uint8Array}
803
- */
804
- to_raw_bytes(): Uint8Array;
805
- /**
806
802
  * @param {string} prefix
807
803
  * @returns {string}
808
804
  */
809
805
  to_bech32(prefix: string): string;
810
806
  /**
811
- * @returns {string}
812
- */
813
- to_hex(): string;
814
- /**
815
807
  * @param {string} bech32_str
816
808
  * @returns {AddressId}
817
809
  */
818
810
  static from_bech32(bech32_str: string): AddressId;
819
811
  /**
820
- * @param {string} input
821
- * @returns {AddressId}
812
+ *
813
+ * * Direct raw bytes without any CBOR structure
814
+ *
815
+ * @returns {Uint8Array}
822
816
  */
823
- static from_hex(input: string): AddressId;
817
+ to_raw_bytes(): Uint8Array;
824
818
  /**
819
+ *
820
+ * * Parse from the direct raw bytes, without any CBOR structure
821
+ *
825
822
  * @param {Uint8Array} bytes
826
823
  * @returns {AddressId}
827
824
  */
828
825
  static from_raw_bytes(bytes: Uint8Array): AddressId;
829
826
  /**
827
+ *
828
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
829
+ *
830
+ * @returns {string}
831
+ */
832
+ to_hex(): string;
833
+ /**
834
+ *
835
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
836
+ *
837
+ * @param {string} input
838
+ * @returns {AddressId}
839
+ */
840
+ static from_hex(input: string): AddressId;
841
+ /**
830
842
  * @param {ByronAddrType} addr_type
831
843
  * @param {SpendingData} spending_data
832
844
  * @param {AddrAttributes} attrs
@@ -981,38 +993,95 @@ export class Anchor {
981
993
  export class AnchorDocHash {
982
994
  free(): void;
983
995
  /**
984
- * @returns {Uint8Array}
985
- */
986
- to_raw_bytes(): Uint8Array;
987
- /**
988
996
  * @param {string} prefix
989
997
  * @returns {string}
990
998
  */
991
999
  to_bech32(prefix: string): string;
992
1000
  /**
993
- * @returns {string}
994
- */
995
- to_hex(): string;
996
- /**
997
1001
  * @param {string} bech32_str
998
1002
  * @returns {AnchorDocHash}
999
1003
  */
1000
1004
  static from_bech32(bech32_str: string): AnchorDocHash;
1001
1005
  /**
1002
- * @param {string} input
1003
- * @returns {AnchorDocHash}
1006
+ *
1007
+ * * Direct raw bytes without any CBOR structure
1008
+ *
1009
+ * @returns {Uint8Array}
1004
1010
  */
1005
- static from_hex(input: string): AnchorDocHash;
1011
+ to_raw_bytes(): Uint8Array;
1006
1012
  /**
1013
+ *
1014
+ * * Parse from the direct raw bytes, without any CBOR structure
1015
+ *
1007
1016
  * @param {Uint8Array} bytes
1008
1017
  * @returns {AnchorDocHash}
1009
1018
  */
1010
1019
  static from_raw_bytes(bytes: Uint8Array): AnchorDocHash;
1020
+ /**
1021
+ *
1022
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1023
+ *
1024
+ * @returns {string}
1025
+ */
1026
+ to_hex(): string;
1027
+ /**
1028
+ *
1029
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1030
+ *
1031
+ * @param {string} input
1032
+ * @returns {AnchorDocHash}
1033
+ */
1034
+ static from_hex(input: string): AnchorDocHash;
1011
1035
  }
1012
1036
  /**
1013
1037
  */
1014
- export class AssetName {
1015
- free(): void;
1038
+ export class AssetName {
1039
+ free(): void;
1040
+ /**
1041
+ *
1042
+ * * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
1043
+ *
1044
+ * @param {string} utf8_str
1045
+ * @returns {AssetName}
1046
+ */
1047
+ static from_str(utf8_str: string): AssetName;
1048
+ /**
1049
+ *
1050
+ * * AssetName as a utf8 string if it's possible. Will error if the asset is not utf8
1051
+ *
1052
+ * @returns {string}
1053
+ */
1054
+ to_str(): string;
1055
+ /**
1056
+ *
1057
+ * * Direct raw bytes without any CBOR structure
1058
+ *
1059
+ * @returns {Uint8Array}
1060
+ */
1061
+ to_raw_bytes(): Uint8Array;
1062
+ /**
1063
+ *
1064
+ * * Parse from the direct raw bytes, without any CBOR structure
1065
+ *
1066
+ * @param {Uint8Array} bytes
1067
+ * @returns {AssetName}
1068
+ */
1069
+ static from_raw_bytes(bytes: Uint8Array): AssetName;
1070
+ /**
1071
+ *
1072
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1073
+ *
1074
+ * @returns {string}
1075
+ */
1076
+ to_hex(): string;
1077
+ /**
1078
+ *
1079
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1080
+ *
1081
+ * @param {string} input
1082
+ * @returns {AssetName}
1083
+ */
1084
+ static from_hex(input: string): AssetName;
1016
1085
  /**
1017
1086
  *
1018
1087
  * * Serialize this type to CBOR bytes
@@ -1061,33 +1130,6 @@ export class AssetName {
1061
1130
  * @returns {AssetName}
1062
1131
  */
1063
1132
  static from_json(json: string): AssetName;
1064
- /**
1065
- * @returns {Uint8Array}
1066
- */
1067
- get(): Uint8Array;
1068
- /**
1069
- *
1070
- * * Create an AssetName from raw bytes. 64 byte maximum.
1071
- *
1072
- * @param {Uint8Array} bytes
1073
- * @returns {AssetName}
1074
- */
1075
- static from_bytes(bytes: Uint8Array): AssetName;
1076
- /**
1077
- *
1078
- * * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
1079
- *
1080
- * @param {string} utf8_str
1081
- * @returns {AssetName}
1082
- */
1083
- static from_str(utf8_str: string): AssetName;
1084
- /**
1085
- *
1086
- * * AssetName as a utf8 string if it's possible. Will error if the asset is not utf8
1087
- *
1088
- * @returns {string}
1089
- */
1090
- to_str(): string;
1091
1133
  }
1092
1134
  /**
1093
1135
  */
@@ -1284,10 +1326,10 @@ export class AuxiliaryData {
1284
1326
  */
1285
1327
  static new_shelley(shelley: Metadata): AuxiliaryData;
1286
1328
  /**
1287
- * @param {ShelleyMaFormatAuxData} shelley_m_a
1329
+ * @param {ShelleyMAFormatAuxData} shelley_ma
1288
1330
  * @returns {AuxiliaryData}
1289
1331
  */
1290
- static new_shelley_m_a(shelley_m_a: ShelleyMaFormatAuxData): AuxiliaryData;
1332
+ static new_shelley_ma(shelley_ma: ShelleyMAFormatAuxData): AuxiliaryData;
1291
1333
  /**
1292
1334
  * @param {ConwayFormatAuxData} conway
1293
1335
  * @returns {AuxiliaryData}
@@ -1302,9 +1344,9 @@ export class AuxiliaryData {
1302
1344
  */
1303
1345
  as_shelley(): Metadata | undefined;
1304
1346
  /**
1305
- * @returns {ShelleyMaFormatAuxData | undefined}
1347
+ * @returns {ShelleyMAFormatAuxData | undefined}
1306
1348
  */
1307
- as_shelley_m_a(): ShelleyMaFormatAuxData | undefined;
1349
+ as_shelley_ma(): ShelleyMAFormatAuxData | undefined;
1308
1350
  /**
1309
1351
  * @returns {ConwayFormatAuxData | undefined}
1310
1352
  */
@@ -1315,33 +1357,45 @@ export class AuxiliaryData {
1315
1357
  export class AuxiliaryDataHash {
1316
1358
  free(): void;
1317
1359
  /**
1318
- * @returns {Uint8Array}
1319
- */
1320
- to_raw_bytes(): Uint8Array;
1321
- /**
1322
1360
  * @param {string} prefix
1323
1361
  * @returns {string}
1324
1362
  */
1325
1363
  to_bech32(prefix: string): string;
1326
1364
  /**
1327
- * @returns {string}
1328
- */
1329
- to_hex(): string;
1330
- /**
1331
1365
  * @param {string} bech32_str
1332
1366
  * @returns {AuxiliaryDataHash}
1333
1367
  */
1334
1368
  static from_bech32(bech32_str: string): AuxiliaryDataHash;
1335
1369
  /**
1336
- * @param {string} input
1337
- * @returns {AuxiliaryDataHash}
1370
+ *
1371
+ * * Direct raw bytes without any CBOR structure
1372
+ *
1373
+ * @returns {Uint8Array}
1338
1374
  */
1339
- static from_hex(input: string): AuxiliaryDataHash;
1375
+ to_raw_bytes(): Uint8Array;
1340
1376
  /**
1377
+ *
1378
+ * * Parse from the direct raw bytes, without any CBOR structure
1379
+ *
1341
1380
  * @param {Uint8Array} bytes
1342
1381
  * @returns {AuxiliaryDataHash}
1343
1382
  */
1344
1383
  static from_raw_bytes(bytes: Uint8Array): AuxiliaryDataHash;
1384
+ /**
1385
+ *
1386
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1387
+ *
1388
+ * @returns {string}
1389
+ */
1390
+ to_hex(): string;
1391
+ /**
1392
+ *
1393
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1394
+ *
1395
+ * @param {string} input
1396
+ * @returns {AuxiliaryDataHash}
1397
+ */
1398
+ static from_hex(input: string): AuxiliaryDataHash;
1345
1399
  }
1346
1400
  /**
1347
1401
  */
@@ -1688,72 +1742,100 @@ export class Block {
1688
1742
  export class BlockBodyHash {
1689
1743
  free(): void;
1690
1744
  /**
1691
- * @returns {Uint8Array}
1692
- */
1693
- to_raw_bytes(): Uint8Array;
1694
- /**
1695
1745
  * @param {string} prefix
1696
1746
  * @returns {string}
1697
1747
  */
1698
1748
  to_bech32(prefix: string): string;
1699
1749
  /**
1700
- * @returns {string}
1701
- */
1702
- to_hex(): string;
1703
- /**
1704
1750
  * @param {string} bech32_str
1705
1751
  * @returns {BlockBodyHash}
1706
1752
  */
1707
1753
  static from_bech32(bech32_str: string): BlockBodyHash;
1708
1754
  /**
1709
- * @param {string} input
1710
- * @returns {BlockBodyHash}
1755
+ *
1756
+ * * Direct raw bytes without any CBOR structure
1757
+ *
1758
+ * @returns {Uint8Array}
1711
1759
  */
1712
- static from_hex(input: string): BlockBodyHash;
1760
+ to_raw_bytes(): Uint8Array;
1713
1761
  /**
1762
+ *
1763
+ * * Parse from the direct raw bytes, without any CBOR structure
1764
+ *
1714
1765
  * @param {Uint8Array} bytes
1715
1766
  * @returns {BlockBodyHash}
1716
1767
  */
1717
1768
  static from_raw_bytes(bytes: Uint8Array): BlockBodyHash;
1769
+ /**
1770
+ *
1771
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1772
+ *
1773
+ * @returns {string}
1774
+ */
1775
+ to_hex(): string;
1776
+ /**
1777
+ *
1778
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1779
+ *
1780
+ * @param {string} input
1781
+ * @returns {BlockBodyHash}
1782
+ */
1783
+ static from_hex(input: string): BlockBodyHash;
1718
1784
  }
1719
1785
  /**
1720
1786
  */
1721
1787
  export class BlockHeaderHash {
1722
1788
  free(): void;
1723
1789
  /**
1724
- * @returns {Uint8Array}
1725
- */
1726
- to_raw_bytes(): Uint8Array;
1727
- /**
1728
1790
  * @param {string} prefix
1729
1791
  * @returns {string}
1730
1792
  */
1731
1793
  to_bech32(prefix: string): string;
1732
1794
  /**
1733
- * @returns {string}
1734
- */
1735
- to_hex(): string;
1736
- /**
1737
1795
  * @param {string} bech32_str
1738
1796
  * @returns {BlockHeaderHash}
1739
1797
  */
1740
1798
  static from_bech32(bech32_str: string): BlockHeaderHash;
1741
1799
  /**
1742
- * @param {string} input
1743
- * @returns {BlockHeaderHash}
1800
+ *
1801
+ * * Direct raw bytes without any CBOR structure
1802
+ *
1803
+ * @returns {Uint8Array}
1744
1804
  */
1745
- static from_hex(input: string): BlockHeaderHash;
1805
+ to_raw_bytes(): Uint8Array;
1746
1806
  /**
1807
+ *
1808
+ * * Parse from the direct raw bytes, without any CBOR structure
1809
+ *
1747
1810
  * @param {Uint8Array} bytes
1748
1811
  * @returns {BlockHeaderHash}
1749
1812
  */
1750
1813
  static from_raw_bytes(bytes: Uint8Array): BlockHeaderHash;
1814
+ /**
1815
+ *
1816
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1817
+ *
1818
+ * @returns {string}
1819
+ */
1820
+ to_hex(): string;
1821
+ /**
1822
+ *
1823
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1824
+ *
1825
+ * @param {string} input
1826
+ * @returns {BlockHeaderHash}
1827
+ */
1828
+ static from_hex(input: string): BlockHeaderHash;
1751
1829
  }
1752
1830
  /**
1753
1831
  */
1754
1832
  export class BootstrapWitness {
1755
1833
  free(): void;
1756
1834
  /**
1835
+ * @returns {AddressContent}
1836
+ */
1837
+ to_address(): AddressContent;
1838
+ /**
1757
1839
  *
1758
1840
  * * Serialize this type to CBOR bytes
1759
1841
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -1825,10 +1907,6 @@ export class BootstrapWitness {
1825
1907
  * @returns {BootstrapWitness}
1826
1908
  */
1827
1909
  static new(public_key: PublicKey, signature: Ed25519Signature, chain_code: Uint8Array, attributes: AddrAttributes): BootstrapWitness;
1828
- /**
1829
- * @returns {AddressContent}
1830
- */
1831
- to_address(): AddressContent;
1832
1910
  }
1833
1911
  /**
1834
1912
  */
@@ -1939,33 +2017,45 @@ export class ByronAddress {
1939
2017
  export class ByronScript {
1940
2018
  free(): void;
1941
2019
  /**
1942
- * @returns {Uint8Array}
1943
- */
1944
- to_raw_bytes(): Uint8Array;
1945
- /**
1946
2020
  * @param {string} prefix
1947
2021
  * @returns {string}
1948
2022
  */
1949
2023
  to_bech32(prefix: string): string;
1950
2024
  /**
1951
- * @returns {string}
1952
- */
1953
- to_hex(): string;
1954
- /**
1955
2025
  * @param {string} bech32_str
1956
2026
  * @returns {ByronScript}
1957
2027
  */
1958
2028
  static from_bech32(bech32_str: string): ByronScript;
1959
2029
  /**
1960
- * @param {string} input
1961
- * @returns {ByronScript}
2030
+ *
2031
+ * * Direct raw bytes without any CBOR structure
2032
+ *
2033
+ * @returns {Uint8Array}
1962
2034
  */
1963
- static from_hex(input: string): ByronScript;
2035
+ to_raw_bytes(): Uint8Array;
1964
2036
  /**
2037
+ *
2038
+ * * Parse from the direct raw bytes, without any CBOR structure
2039
+ *
1965
2040
  * @param {Uint8Array} bytes
1966
2041
  * @returns {ByronScript}
1967
2042
  */
1968
2043
  static from_raw_bytes(bytes: Uint8Array): ByronScript;
2044
+ /**
2045
+ *
2046
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
2047
+ *
2048
+ * @returns {string}
2049
+ */
2050
+ to_hex(): string;
2051
+ /**
2052
+ *
2053
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
2054
+ *
2055
+ * @param {string} input
2056
+ * @returns {ByronScript}
2057
+ */
2058
+ static from_hex(input: string): ByronScript;
1969
2059
  }
1970
2060
  /**
1971
2061
  */
@@ -3112,16 +3202,19 @@ export class Certificate {
3112
3202
  */
3113
3203
  static from_json(json: string): Certificate;
3114
3204
  /**
3205
+ * Will be deprecated in the next era. Use RegCert instead which takes an explicit deposit amount, as that can change.
3115
3206
  * @param {Credential} stake_credential
3116
3207
  * @returns {Certificate}
3117
3208
  */
3118
3209
  static new_stake_registration(stake_credential: Credential): Certificate;
3119
3210
  /**
3211
+ * Will be deprecated in the next era. Use UnregCert instead which takes an explicit deposit amount, as that can change.
3120
3212
  * @param {Credential} stake_credential
3121
3213
  * @returns {Certificate}
3122
3214
  */
3123
3215
  static new_stake_deregistration(stake_credential: Credential): Certificate;
3124
3216
  /**
3217
+ * Delegate to a take pool only
3125
3218
  * @param {Credential} stake_credential
3126
3219
  * @param {Ed25519KeyHash} pool
3127
3220
  * @returns {Certificate}
@@ -3139,24 +3232,28 @@ export class Certificate {
3139
3232
  */
3140
3233
  static new_pool_retirement(pool: Ed25519KeyHash, epoch: bigint): Certificate;
3141
3234
  /**
3235
+ * Registers a stake credential.
3142
3236
  * @param {Credential} stake_credential
3143
- * @param {bigint} coin
3237
+ * @param {bigint} deposit
3144
3238
  * @returns {Certificate}
3145
3239
  */
3146
- static new_reg_cert(stake_credential: Credential, coin: bigint): Certificate;
3240
+ static new_reg_cert(stake_credential: Credential, deposit: bigint): Certificate;
3147
3241
  /**
3242
+ * Unregisters a stake credential.
3148
3243
  * @param {Credential} stake_credential
3149
- * @param {bigint} coin
3244
+ * @param {bigint} deposit
3150
3245
  * @returns {Certificate}
3151
3246
  */
3152
- static new_unreg_cert(stake_credential: Credential, coin: bigint): Certificate;
3247
+ static new_unreg_cert(stake_credential: Credential, deposit: bigint): Certificate;
3153
3248
  /**
3249
+ * Delegate to a DRep for voting only
3154
3250
  * @param {Credential} stake_credential
3155
3251
  * @param {DRep} d_rep
3156
3252
  * @returns {Certificate}
3157
3253
  */
3158
3254
  static new_vote_deleg_cert(stake_credential: Credential, d_rep: DRep): Certificate;
3159
3255
  /**
3256
+ * Delegate to a stake pool and a DRep
3160
3257
  * @param {Credential} stake_credential
3161
3258
  * @param {Ed25519KeyHash} pool
3162
3259
  * @param {DRep} d_rep
@@ -3164,27 +3261,30 @@ export class Certificate {
3164
3261
  */
3165
3262
  static new_stake_vote_deleg_cert(stake_credential: Credential, pool: Ed25519KeyHash, d_rep: DRep): Certificate;
3166
3263
  /**
3264
+ * Register a stake credential and delegate to a pool in a single cert
3167
3265
  * @param {Credential} stake_credential
3168
3266
  * @param {Ed25519KeyHash} pool
3169
- * @param {bigint} coin
3267
+ * @param {bigint} deposit
3170
3268
  * @returns {Certificate}
3171
3269
  */
3172
- static new_stake_reg_deleg_cert(stake_credential: Credential, pool: Ed25519KeyHash, coin: bigint): Certificate;
3270
+ static new_stake_reg_deleg_cert(stake_credential: Credential, pool: Ed25519KeyHash, deposit: bigint): Certificate;
3173
3271
  /**
3272
+ * Register a stake credential and delegate to a DRep in a single cert
3174
3273
  * @param {Credential} stake_credential
3175
3274
  * @param {DRep} d_rep
3176
- * @param {bigint} coin
3275
+ * @param {bigint} deposit
3177
3276
  * @returns {Certificate}
3178
3277
  */
3179
- static new_vote_reg_deleg_cert(stake_credential: Credential, d_rep: DRep, coin: bigint): Certificate;
3278
+ static new_vote_reg_deleg_cert(stake_credential: Credential, d_rep: DRep, deposit: bigint): Certificate;
3180
3279
  /**
3280
+ * Register a stake credential and delegate to a pool and a DRep in a single cert
3181
3281
  * @param {Credential} stake_credential
3182
3282
  * @param {Ed25519KeyHash} pool
3183
3283
  * @param {DRep} d_rep
3184
- * @param {bigint} coin
3284
+ * @param {bigint} deposit
3185
3285
  * @returns {Certificate}
3186
3286
  */
3187
- static new_stake_vote_reg_deleg_cert(stake_credential: Credential, pool: Ed25519KeyHash, d_rep: DRep, coin: bigint): Certificate;
3287
+ static new_stake_vote_reg_deleg_cert(stake_credential: Credential, pool: Ed25519KeyHash, d_rep: DRep, deposit: bigint): Certificate;
3188
3288
  /**
3189
3289
  * @param {Credential} committee_cold_credential
3190
3290
  * @param {Credential} committee_hot_credential
@@ -3199,17 +3299,17 @@ export class Certificate {
3199
3299
  static new_resign_committee_cold_cert(committee_cold_credential: Credential, anchor?: Anchor): Certificate;
3200
3300
  /**
3201
3301
  * @param {Credential} drep_credential
3202
- * @param {bigint} coin
3302
+ * @param {bigint} deposit
3203
3303
  * @param {Anchor | undefined} [anchor]
3204
3304
  * @returns {Certificate}
3205
3305
  */
3206
- static new_reg_drep_cert(drep_credential: Credential, coin: bigint, anchor?: Anchor): Certificate;
3306
+ static new_reg_drep_cert(drep_credential: Credential, deposit: bigint, anchor?: Anchor): Certificate;
3207
3307
  /**
3208
3308
  * @param {Credential} drep_credential
3209
- * @param {bigint} coin
3309
+ * @param {bigint} deposit
3210
3310
  * @returns {Certificate}
3211
3311
  */
3212
- static new_unreg_drep_cert(drep_credential: Credential, coin: bigint): Certificate;
3312
+ static new_unreg_drep_cert(drep_credential: Credential, deposit: bigint): Certificate;
3213
3313
  /**
3214
3314
  * @param {Credential} drep_credential
3215
3315
  * @param {Anchor | undefined} [anchor]
@@ -3705,33 +3805,9 @@ export class CostModels {
3705
3805
  */
3706
3806
  static from_json(json: string): CostModels;
3707
3807
  /**
3708
- * @param {IntList} plutus_v1
3709
- */
3710
- set_plutus_v1(plutus_v1: IntList): void;
3711
- /**
3712
- * @returns {IntList | undefined}
3713
- */
3714
- plutus_v1(): IntList | undefined;
3715
- /**
3716
- * @param {IntList} plutus_v2
3808
+ * @returns {MapU64ToArrI64}
3717
3809
  */
3718
- set_plutus_v2(plutus_v2: IntList): void;
3719
- /**
3720
- * @returns {IntList | undefined}
3721
- */
3722
- plutus_v2(): IntList | undefined;
3723
- /**
3724
- * @param {IntList} plutus_v3
3725
- */
3726
- set_plutus_v3(plutus_v3: IntList): void;
3727
- /**
3728
- * @returns {IntList | undefined}
3729
- */
3730
- plutus_v3(): IntList | undefined;
3731
- /**
3732
- * @returns {CostModels}
3733
- */
3734
- static new(): CostModels;
3810
+ inner(): MapU64ToArrI64;
3735
3811
  }
3736
3812
  /**
3737
3813
  */
@@ -3794,7 +3870,82 @@ export class Credential {
3794
3870
  * @param {string} cbor_bytes
3795
3871
  * @returns {Credential}
3796
3872
  */
3797
- static from_cbor_hex(cbor_bytes: string): Credential;
3873
+ static from_cbor_hex(cbor_bytes: string): Credential;
3874
+ /**
3875
+ * @returns {string}
3876
+ */
3877
+ to_json(): string;
3878
+ /**
3879
+ * @returns {any}
3880
+ */
3881
+ to_js_value(): any;
3882
+ /**
3883
+ * @param {string} json
3884
+ * @returns {Credential}
3885
+ */
3886
+ static from_json(json: string): Credential;
3887
+ /**
3888
+ * @param {Ed25519KeyHash} hash
3889
+ * @returns {Credential}
3890
+ */
3891
+ static new_pub_key(hash: Ed25519KeyHash): Credential;
3892
+ /**
3893
+ * @param {ScriptHash} hash
3894
+ * @returns {Credential}
3895
+ */
3896
+ static new_script(hash: ScriptHash): Credential;
3897
+ /**
3898
+ * @returns {CredentialKind}
3899
+ */
3900
+ kind(): CredentialKind;
3901
+ /**
3902
+ * @returns {Ed25519KeyHash | undefined}
3903
+ */
3904
+ as_pub_key(): Ed25519KeyHash | undefined;
3905
+ /**
3906
+ * @returns {ScriptHash | undefined}
3907
+ */
3908
+ as_script(): ScriptHash | undefined;
3909
+ }
3910
+ /**
3911
+ */
3912
+ export class DNSName {
3913
+ free(): void;
3914
+ /**
3915
+ *
3916
+ * * Serialize this type to CBOR bytes
3917
+ * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
3918
+ * * If created from scratch the CBOR will be canonical.
3919
+ *
3920
+ * @returns {Uint8Array}
3921
+ */
3922
+ to_cbor_bytes(): Uint8Array;
3923
+ /**
3924
+ *
3925
+ * * Create this type from CBOR bytes
3926
+ *
3927
+ * @param {Uint8Array} cbor_bytes
3928
+ * @returns {DNSName}
3929
+ */
3930
+ static from_cbor_bytes(cbor_bytes: Uint8Array): DNSName;
3931
+ /**
3932
+ *
3933
+ * * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
3934
+ * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
3935
+ * * If created from scratch the CBOR will be canonical.
3936
+ *
3937
+ * @returns {string}
3938
+ */
3939
+ to_cbor_hex(): string;
3940
+ /**
3941
+ *
3942
+ * * Create this type from the CBOR bytes encoded as a hex string.
3943
+ * * This is useful for interfacing with CIP30
3944
+ *
3945
+ * @param {string} cbor_bytes
3946
+ * @returns {DNSName}
3947
+ */
3948
+ static from_cbor_hex(cbor_bytes: string): DNSName;
3798
3949
  /**
3799
3950
  * @returns {string}
3800
3951
  */
@@ -3805,31 +3956,13 @@ export class Credential {
3805
3956
  to_js_value(): any;
3806
3957
  /**
3807
3958
  * @param {string} json
3808
- * @returns {Credential}
3809
- */
3810
- static from_json(json: string): Credential;
3811
- /**
3812
- * @param {Ed25519KeyHash} hash
3813
- * @returns {Credential}
3814
- */
3815
- static new_pub_key(hash: Ed25519KeyHash): Credential;
3816
- /**
3817
- * @param {ScriptHash} hash
3818
- * @returns {Credential}
3819
- */
3820
- static new_script(hash: ScriptHash): Credential;
3821
- /**
3822
- * @returns {CredentialKind}
3959
+ * @returns {DNSName}
3823
3960
  */
3824
- kind(): CredentialKind;
3825
- /**
3826
- * @returns {Ed25519KeyHash | undefined}
3827
- */
3828
- as_pub_key(): Ed25519KeyHash | undefined;
3961
+ static from_json(json: string): DNSName;
3829
3962
  /**
3830
- * @returns {ScriptHash | undefined}
3963
+ * @returns {string}
3831
3964
  */
3832
- as_script(): ScriptHash | undefined;
3965
+ get(): string;
3833
3966
  }
3834
3967
  /**
3835
3968
  */
@@ -4026,33 +4159,45 @@ export class DRepVotingThresholds {
4026
4159
  export class DatumHash {
4027
4160
  free(): void;
4028
4161
  /**
4029
- * @returns {Uint8Array}
4030
- */
4031
- to_raw_bytes(): Uint8Array;
4032
- /**
4033
4162
  * @param {string} prefix
4034
4163
  * @returns {string}
4035
4164
  */
4036
4165
  to_bech32(prefix: string): string;
4037
4166
  /**
4038
- * @returns {string}
4039
- */
4040
- to_hex(): string;
4041
- /**
4042
4167
  * @param {string} bech32_str
4043
4168
  * @returns {DatumHash}
4044
4169
  */
4045
4170
  static from_bech32(bech32_str: string): DatumHash;
4046
4171
  /**
4047
- * @param {string} input
4048
- * @returns {DatumHash}
4172
+ *
4173
+ * * Direct raw bytes without any CBOR structure
4174
+ *
4175
+ * @returns {Uint8Array}
4049
4176
  */
4050
- static from_hex(input: string): DatumHash;
4177
+ to_raw_bytes(): Uint8Array;
4051
4178
  /**
4179
+ *
4180
+ * * Parse from the direct raw bytes, without any CBOR structure
4181
+ *
4052
4182
  * @param {Uint8Array} bytes
4053
4183
  * @returns {DatumHash}
4054
4184
  */
4055
4185
  static from_raw_bytes(bytes: Uint8Array): DatumHash;
4186
+ /**
4187
+ *
4188
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
4189
+ *
4190
+ * @returns {string}
4191
+ */
4192
+ to_hex(): string;
4193
+ /**
4194
+ *
4195
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
4196
+ *
4197
+ * @param {string} input
4198
+ * @returns {DatumHash}
4199
+ */
4200
+ static from_hex(input: string): DatumHash;
4056
4201
  }
4057
4202
  /**
4058
4203
  */
@@ -4131,93 +4276,48 @@ export class DatumOption {
4131
4276
  }
4132
4277
  /**
4133
4278
  */
4134
- export class DnsName {
4279
+ export class Ed25519KeyHash {
4135
4280
  free(): void;
4136
4281
  /**
4137
- *
4138
- * * Serialize this type to CBOR bytes
4139
- * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
4140
- * * If created from scratch the CBOR will be canonical.
4141
- *
4142
- * @returns {Uint8Array}
4143
- */
4144
- to_cbor_bytes(): Uint8Array;
4145
- /**
4146
- *
4147
- * * Create this type from CBOR bytes
4148
- *
4149
- * @param {Uint8Array} cbor_bytes
4150
- * @returns {DnsName}
4282
+ * @param {string} prefix
4283
+ * @returns {string}
4151
4284
  */
4152
- static from_cbor_bytes(cbor_bytes: Uint8Array): DnsName;
4285
+ to_bech32(prefix: string): string;
4153
4286
  /**
4154
- *
4155
- * * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
4156
- * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
4157
- * * If created from scratch the CBOR will be canonical.
4158
- *
4159
- * @returns {string}
4287
+ * @param {string} bech32_str
4288
+ * @returns {Ed25519KeyHash}
4160
4289
  */
4161
- to_cbor_hex(): string;
4290
+ static from_bech32(bech32_str: string): Ed25519KeyHash;
4162
4291
  /**
4163
4292
  *
4164
- * * Create this type from the CBOR bytes encoded as a hex string.
4165
- * * This is useful for interfacing with CIP30
4293
+ * * Direct raw bytes without any CBOR structure
4166
4294
  *
4167
- * @param {string} cbor_bytes
4168
- * @returns {DnsName}
4169
- */
4170
- static from_cbor_hex(cbor_bytes: string): DnsName;
4171
- /**
4172
- * @returns {string}
4173
- */
4174
- to_json(): string;
4175
- /**
4176
- * @returns {any}
4177
- */
4178
- to_js_value(): any;
4179
- /**
4180
- * @param {string} json
4181
- * @returns {DnsName}
4182
- */
4183
- static from_json(json: string): DnsName;
4184
- /**
4185
- * @returns {string}
4186
- */
4187
- get(): string;
4188
- }
4189
- /**
4190
- */
4191
- export class Ed25519KeyHash {
4192
- free(): void;
4193
- /**
4194
4295
  * @returns {Uint8Array}
4195
4296
  */
4196
4297
  to_raw_bytes(): Uint8Array;
4197
4298
  /**
4198
- * @param {string} prefix
4199
- * @returns {string}
4299
+ *
4300
+ * * Parse from the direct raw bytes, without any CBOR structure
4301
+ *
4302
+ * @param {Uint8Array} bytes
4303
+ * @returns {Ed25519KeyHash}
4200
4304
  */
4201
- to_bech32(prefix: string): string;
4305
+ static from_raw_bytes(bytes: Uint8Array): Ed25519KeyHash;
4202
4306
  /**
4307
+ *
4308
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
4309
+ *
4203
4310
  * @returns {string}
4204
4311
  */
4205
4312
  to_hex(): string;
4206
4313
  /**
4207
- * @param {string} bech32_str
4208
- * @returns {Ed25519KeyHash}
4209
- */
4210
- static from_bech32(bech32_str: string): Ed25519KeyHash;
4211
- /**
4314
+ *
4315
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
4316
+ *
4212
4317
  * @param {string} input
4213
4318
  * @returns {Ed25519KeyHash}
4214
4319
  */
4215
4320
  static from_hex(input: string): Ed25519KeyHash;
4216
- /**
4217
- * @param {Uint8Array} bytes
4218
- * @returns {Ed25519KeyHash}
4219
- */
4220
- static from_raw_bytes(bytes: Uint8Array): Ed25519KeyHash;
4221
4321
  }
4222
4322
  /**
4223
4323
  */
@@ -4246,32 +4346,44 @@ export class Ed25519KeyHashList {
4246
4346
  export class Ed25519Signature {
4247
4347
  free(): void;
4248
4348
  /**
4249
- * @returns {Uint8Array}
4250
- */
4251
- to_raw_bytes(): Uint8Array;
4252
- /**
4253
4349
  * @returns {string}
4254
4350
  */
4255
4351
  to_bech32(): string;
4256
4352
  /**
4257
- * @returns {string}
4258
- */
4259
- to_hex(): string;
4260
- /**
4261
4353
  * @param {string} bech32_str
4262
4354
  * @returns {Ed25519Signature}
4263
4355
  */
4264
4356
  static from_bech32(bech32_str: string): Ed25519Signature;
4265
4357
  /**
4266
- * @param {string} input
4267
- * @returns {Ed25519Signature}
4358
+ *
4359
+ * * Direct raw bytes without any CBOR structure
4360
+ *
4361
+ * @returns {Uint8Array}
4268
4362
  */
4269
- static from_hex(input: string): Ed25519Signature;
4363
+ to_raw_bytes(): Uint8Array;
4270
4364
  /**
4365
+ *
4366
+ * * Parse from the direct raw bytes, without any CBOR structure
4367
+ *
4271
4368
  * @param {Uint8Array} bytes
4272
4369
  * @returns {Ed25519Signature}
4273
4370
  */
4274
4371
  static from_raw_bytes(bytes: Uint8Array): Ed25519Signature;
4372
+ /**
4373
+ *
4374
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
4375
+ *
4376
+ * @returns {string}
4377
+ */
4378
+ to_hex(): string;
4379
+ /**
4380
+ *
4381
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
4382
+ *
4383
+ * @param {string} input
4384
+ * @returns {Ed25519Signature}
4385
+ */
4386
+ static from_hex(input: string): Ed25519Signature;
4275
4387
  }
4276
4388
  /**
4277
4389
  */
@@ -4373,6 +4485,11 @@ export class ExUnitPrices {
4373
4485
  export class ExUnits {
4374
4486
  free(): void;
4375
4487
  /**
4488
+ * @param {ExUnits} other
4489
+ * @returns {ExUnits}
4490
+ */
4491
+ checked_add(other: ExUnits): ExUnits;
4492
+ /**
4376
4493
  *
4377
4494
  * * Serialize this type to CBOR bytes
4378
4495
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -4434,11 +4551,6 @@ export class ExUnits {
4434
4551
  * @returns {ExUnits}
4435
4552
  */
4436
4553
  static new(mem: bigint, steps: bigint): ExUnits;
4437
- /**
4438
- * @param {ExUnits} other
4439
- * @returns {ExUnits}
4440
- */
4441
- checked_add(other: ExUnits): ExUnits;
4442
4554
  }
4443
4555
  /**
4444
4556
  */
@@ -4467,72 +4579,100 @@ export class FilesDetailsList {
4467
4579
  export class GenesisDelegateHash {
4468
4580
  free(): void;
4469
4581
  /**
4470
- * @returns {Uint8Array}
4471
- */
4472
- to_raw_bytes(): Uint8Array;
4473
- /**
4474
4582
  * @param {string} prefix
4475
4583
  * @returns {string}
4476
4584
  */
4477
4585
  to_bech32(prefix: string): string;
4478
4586
  /**
4479
- * @returns {string}
4480
- */
4481
- to_hex(): string;
4482
- /**
4483
4587
  * @param {string} bech32_str
4484
4588
  * @returns {GenesisDelegateHash}
4485
4589
  */
4486
4590
  static from_bech32(bech32_str: string): GenesisDelegateHash;
4487
4591
  /**
4488
- * @param {string} input
4489
- * @returns {GenesisDelegateHash}
4592
+ *
4593
+ * * Direct raw bytes without any CBOR structure
4594
+ *
4595
+ * @returns {Uint8Array}
4490
4596
  */
4491
- static from_hex(input: string): GenesisDelegateHash;
4597
+ to_raw_bytes(): Uint8Array;
4492
4598
  /**
4599
+ *
4600
+ * * Parse from the direct raw bytes, without any CBOR structure
4601
+ *
4493
4602
  * @param {Uint8Array} bytes
4494
4603
  * @returns {GenesisDelegateHash}
4495
4604
  */
4496
4605
  static from_raw_bytes(bytes: Uint8Array): GenesisDelegateHash;
4606
+ /**
4607
+ *
4608
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
4609
+ *
4610
+ * @returns {string}
4611
+ */
4612
+ to_hex(): string;
4613
+ /**
4614
+ *
4615
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
4616
+ *
4617
+ * @param {string} input
4618
+ * @returns {GenesisDelegateHash}
4619
+ */
4620
+ static from_hex(input: string): GenesisDelegateHash;
4497
4621
  }
4498
4622
  /**
4499
4623
  */
4500
4624
  export class GenesisHash {
4501
4625
  free(): void;
4502
4626
  /**
4503
- * @returns {Uint8Array}
4504
- */
4505
- to_raw_bytes(): Uint8Array;
4506
- /**
4507
4627
  * @param {string} prefix
4508
4628
  * @returns {string}
4509
4629
  */
4510
4630
  to_bech32(prefix: string): string;
4511
4631
  /**
4512
- * @returns {string}
4513
- */
4514
- to_hex(): string;
4515
- /**
4516
4632
  * @param {string} bech32_str
4517
4633
  * @returns {GenesisHash}
4518
4634
  */
4519
4635
  static from_bech32(bech32_str: string): GenesisHash;
4520
4636
  /**
4521
- * @param {string} input
4522
- * @returns {GenesisHash}
4637
+ *
4638
+ * * Direct raw bytes without any CBOR structure
4639
+ *
4640
+ * @returns {Uint8Array}
4523
4641
  */
4524
- static from_hex(input: string): GenesisHash;
4642
+ to_raw_bytes(): Uint8Array;
4525
4643
  /**
4644
+ *
4645
+ * * Parse from the direct raw bytes, without any CBOR structure
4646
+ *
4526
4647
  * @param {Uint8Array} bytes
4527
4648
  * @returns {GenesisHash}
4528
4649
  */
4529
4650
  static from_raw_bytes(bytes: Uint8Array): GenesisHash;
4651
+ /**
4652
+ *
4653
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
4654
+ *
4655
+ * @returns {string}
4656
+ */
4657
+ to_hex(): string;
4658
+ /**
4659
+ *
4660
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
4661
+ *
4662
+ * @param {string} input
4663
+ * @returns {GenesisHash}
4664
+ */
4665
+ static from_hex(input: string): GenesisHash;
4530
4666
  }
4531
4667
  /**
4532
4668
  */
4533
4669
  export class GovAction {
4534
4670
  free(): void;
4535
4671
  /**
4672
+ * @returns {ScriptHash | undefined}
4673
+ */
4674
+ script_hash(): ScriptHash | undefined;
4675
+ /**
4536
4676
  *
4537
4677
  * * Serialize this type to CBOR bytes
4538
4678
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -4581,12 +4721,12 @@ export class GovAction {
4581
4721
  */
4582
4722
  static from_json(json: string): GovAction;
4583
4723
  /**
4584
- * @param {GovActionId | undefined} gov_action_id
4585
- * @param {ProtocolParamUpdate} protocol_param_update
4724
+ * @param {GovActionId | undefined} action_id
4725
+ * @param {ProtocolParamUpdate} update
4586
4726
  * @param {ScriptHash | undefined} [policy_hash]
4587
4727
  * @returns {GovAction}
4588
4728
  */
4589
- static new_parameter_change_action(gov_action_id: GovActionId | undefined, protocol_param_update: ProtocolParamUpdate, policy_hash?: ScriptHash): GovAction;
4729
+ static new_parameter_change_action(action_id: GovActionId | undefined, update: ProtocolParamUpdate, policy_hash?: ScriptHash): GovAction;
4590
4730
  /**
4591
4731
  * @param {GovActionId | undefined} action_id
4592
4732
  * @param {ProtocolVersion} version
@@ -5278,33 +5418,45 @@ export class KESSignature {
5278
5418
  export class KESVkey {
5279
5419
  free(): void;
5280
5420
  /**
5421
+ * @param {string} prefix
5422
+ * @returns {string}
5423
+ */
5424
+ to_bech32(prefix: string): string;
5425
+ /**
5426
+ * @param {string} bech32_str
5427
+ * @returns {KESVkey}
5428
+ */
5429
+ static from_bech32(bech32_str: string): KESVkey;
5430
+ /**
5431
+ *
5432
+ * * Direct raw bytes without any CBOR structure
5433
+ *
5281
5434
  * @returns {Uint8Array}
5282
5435
  */
5283
5436
  to_raw_bytes(): Uint8Array;
5284
5437
  /**
5285
- * @param {string} prefix
5286
- * @returns {string}
5438
+ *
5439
+ * * Parse from the direct raw bytes, without any CBOR structure
5440
+ *
5441
+ * @param {Uint8Array} bytes
5442
+ * @returns {KESVkey}
5287
5443
  */
5288
- to_bech32(prefix: string): string;
5444
+ static from_raw_bytes(bytes: Uint8Array): KESVkey;
5289
5445
  /**
5446
+ *
5447
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
5448
+ *
5290
5449
  * @returns {string}
5291
5450
  */
5292
5451
  to_hex(): string;
5293
5452
  /**
5294
- * @param {string} bech32_str
5295
- * @returns {KESVkey}
5296
- */
5297
- static from_bech32(bech32_str: string): KESVkey;
5298
- /**
5453
+ *
5454
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
5455
+ *
5299
5456
  * @param {string} input
5300
5457
  * @returns {KESVkey}
5301
5458
  */
5302
5459
  static from_hex(input: string): KESVkey;
5303
- /**
5304
- * @param {Uint8Array} bytes
5305
- * @returns {KESVkey}
5306
- */
5307
- static from_raw_bytes(bytes: Uint8Array): KESVkey;
5308
5460
  }
5309
5461
  /**
5310
5462
  */
@@ -5771,6 +5923,38 @@ export class MapTransactionMetadatumToTransactionMetadatum {
5771
5923
  }
5772
5924
  /**
5773
5925
  */
5926
+ export class MapU64ToArrI64 {
5927
+ free(): void;
5928
+ /**
5929
+ * @param {bigint} key
5930
+ * @returns {BigInt64Array | undefined}
5931
+ */
5932
+ get(key: bigint): BigInt64Array | undefined;
5933
+ /**
5934
+ * @param {bigint} key
5935
+ * @param {BigInt64Array} value
5936
+ * @returns {BigInt64Array | undefined}
5937
+ */
5938
+ insert(key: bigint, value: BigInt64Array): BigInt64Array | undefined;
5939
+ /**
5940
+ * @returns {MapU64ToArrI64}
5941
+ */
5942
+ static new(): MapU64ToArrI64;
5943
+ /**
5944
+ * @returns {number}
5945
+ */
5946
+ len(): number;
5947
+ /**
5948
+ * @returns {boolean}
5949
+ */
5950
+ is_empty(): boolean;
5951
+ /**
5952
+ * @returns {BigUint64Array}
5953
+ */
5954
+ keys(): BigUint64Array;
5955
+ }
5956
+ /**
5957
+ */
5774
5958
  export class Metadata {
5775
5959
  free(): void;
5776
5960
  /**
@@ -6062,14 +6246,15 @@ export class MultiHostName {
6062
6246
  */
6063
6247
  static from_json(json: string): MultiHostName;
6064
6248
  /**
6065
- * @returns {DnsName}
6249
+ * @returns {DNSName}
6066
6250
  */
6067
- dns_name(): DnsName;
6251
+ dns_name(): DNSName;
6068
6252
  /**
6069
- * @param {DnsName} dns_name
6253
+ * * `dns_name` - A SRV DNS record
6254
+ * @param {DNSName} dns_name
6070
6255
  * @returns {MultiHostName}
6071
6256
  */
6072
- static new(dns_name: DnsName): MultiHostName;
6257
+ static new(dns_name: DNSName): MultiHostName;
6073
6258
  }
6074
6259
  /**
6075
6260
  */
@@ -6163,11 +6348,13 @@ export class NativeScript {
6163
6348
  */
6164
6349
  static new_script_n_of_k(n: bigint, native_scripts: NativeScriptList): NativeScript;
6165
6350
  /**
6351
+ * Timelock validity intervals are half-open intervals [a, b). This field specifies the left (included) endpoint a.
6166
6352
  * @param {bigint} before
6167
6353
  * @returns {NativeScript}
6168
6354
  */
6169
6355
  static new_script_invalid_before(before: bigint): NativeScript;
6170
6356
  /**
6357
+ * Timelock validity intervals are half-open intervals [a, b). This field specifies the right (excluded) endpoint b.
6171
6358
  * @param {bigint} after
6172
6359
  * @returns {NativeScript}
6173
6360
  */
@@ -6559,33 +6746,45 @@ export class Nonce {
6559
6746
  export class NonceHash {
6560
6747
  free(): void;
6561
6748
  /**
6562
- * @returns {Uint8Array}
6563
- */
6564
- to_raw_bytes(): Uint8Array;
6565
- /**
6566
6749
  * @param {string} prefix
6567
6750
  * @returns {string}
6568
6751
  */
6569
6752
  to_bech32(prefix: string): string;
6570
6753
  /**
6571
- * @returns {string}
6572
- */
6573
- to_hex(): string;
6574
- /**
6575
6754
  * @param {string} bech32_str
6576
6755
  * @returns {NonceHash}
6577
6756
  */
6578
6757
  static from_bech32(bech32_str: string): NonceHash;
6579
6758
  /**
6580
- * @param {string} input
6581
- * @returns {NonceHash}
6759
+ *
6760
+ * * Direct raw bytes without any CBOR structure
6761
+ *
6762
+ * @returns {Uint8Array}
6582
6763
  */
6583
- static from_hex(input: string): NonceHash;
6764
+ to_raw_bytes(): Uint8Array;
6584
6765
  /**
6766
+ *
6767
+ * * Parse from the direct raw bytes, without any CBOR structure
6768
+ *
6585
6769
  * @param {Uint8Array} bytes
6586
6770
  * @returns {NonceHash}
6587
6771
  */
6588
6772
  static from_raw_bytes(bytes: Uint8Array): NonceHash;
6773
+ /**
6774
+ *
6775
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
6776
+ *
6777
+ * @returns {string}
6778
+ */
6779
+ to_hex(): string;
6780
+ /**
6781
+ *
6782
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
6783
+ *
6784
+ * @param {string} input
6785
+ * @returns {NonceHash}
6786
+ */
6787
+ static from_hex(input: string): NonceHash;
6589
6788
  }
6590
6789
  /**
6591
6790
  */
@@ -6719,22 +6918,22 @@ export class ParameterChangeAction {
6719
6918
  /**
6720
6919
  * @returns {GovActionId | undefined}
6721
6920
  */
6722
- gov_action_id(): GovActionId | undefined;
6921
+ action_id(): GovActionId | undefined;
6723
6922
  /**
6724
6923
  * @returns {ProtocolParamUpdate}
6725
6924
  */
6726
- protocol_param_update(): ProtocolParamUpdate;
6925
+ update(): ProtocolParamUpdate;
6727
6926
  /**
6728
6927
  * @returns {ScriptHash | undefined}
6729
6928
  */
6730
6929
  policy_hash(): ScriptHash | undefined;
6731
6930
  /**
6732
- * @param {GovActionId | undefined} gov_action_id
6733
- * @param {ProtocolParamUpdate} protocol_param_update
6931
+ * @param {GovActionId | undefined} action_id
6932
+ * @param {ProtocolParamUpdate} update
6734
6933
  * @param {ScriptHash | undefined} [policy_hash]
6735
6934
  * @returns {ParameterChangeAction}
6736
6935
  */
6737
- static new(gov_action_id: GovActionId | undefined, protocol_param_update: ProtocolParamUpdate, policy_hash?: ScriptHash): ParameterChangeAction;
6936
+ static new(action_id: GovActionId | undefined, update: ProtocolParamUpdate, policy_hash?: ScriptHash): ParameterChangeAction;
6738
6937
  }
6739
6938
  /**
6740
6939
  * A partial Plutus witness
@@ -7024,6 +7223,40 @@ export class PlutusScriptWitness {
7024
7223
  export class PlutusV1Script {
7025
7224
  free(): void;
7026
7225
  /**
7226
+ * @returns {ScriptHash}
7227
+ */
7228
+ hash(): ScriptHash;
7229
+ /**
7230
+ *
7231
+ * * Direct raw bytes without any CBOR structure
7232
+ *
7233
+ * @returns {Uint8Array}
7234
+ */
7235
+ to_raw_bytes(): Uint8Array;
7236
+ /**
7237
+ *
7238
+ * * Parse from the direct raw bytes, without any CBOR structure
7239
+ *
7240
+ * @param {Uint8Array} bytes
7241
+ * @returns {PlutusV1Script}
7242
+ */
7243
+ static from_raw_bytes(bytes: Uint8Array): PlutusV1Script;
7244
+ /**
7245
+ *
7246
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
7247
+ *
7248
+ * @returns {string}
7249
+ */
7250
+ to_hex(): string;
7251
+ /**
7252
+ *
7253
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
7254
+ *
7255
+ * @param {string} input
7256
+ * @returns {PlutusV1Script}
7257
+ */
7258
+ static from_hex(input: string): PlutusV1Script;
7259
+ /**
7027
7260
  *
7028
7261
  * * Serialize this type to CBOR bytes
7029
7262
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -7071,14 +7304,6 @@ export class PlutusV1Script {
7071
7304
  * @returns {PlutusV1Script}
7072
7305
  */
7073
7306
  static from_json(json: string): PlutusV1Script;
7074
- /**
7075
- * @returns {Uint8Array}
7076
- */
7077
- get(): Uint8Array;
7078
- /**
7079
- * @returns {ScriptHash}
7080
- */
7081
- hash(): ScriptHash;
7082
7307
  }
7083
7308
  /**
7084
7309
  */
@@ -7107,6 +7332,40 @@ export class PlutusV1ScriptList {
7107
7332
  export class PlutusV2Script {
7108
7333
  free(): void;
7109
7334
  /**
7335
+ * @returns {ScriptHash}
7336
+ */
7337
+ hash(): ScriptHash;
7338
+ /**
7339
+ *
7340
+ * * Direct raw bytes without any CBOR structure
7341
+ *
7342
+ * @returns {Uint8Array}
7343
+ */
7344
+ to_raw_bytes(): Uint8Array;
7345
+ /**
7346
+ *
7347
+ * * Parse from the direct raw bytes, without any CBOR structure
7348
+ *
7349
+ * @param {Uint8Array} bytes
7350
+ * @returns {PlutusV2Script}
7351
+ */
7352
+ static from_raw_bytes(bytes: Uint8Array): PlutusV2Script;
7353
+ /**
7354
+ *
7355
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
7356
+ *
7357
+ * @returns {string}
7358
+ */
7359
+ to_hex(): string;
7360
+ /**
7361
+ *
7362
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
7363
+ *
7364
+ * @param {string} input
7365
+ * @returns {PlutusV2Script}
7366
+ */
7367
+ static from_hex(input: string): PlutusV2Script;
7368
+ /**
7110
7369
  *
7111
7370
  * * Serialize this type to CBOR bytes
7112
7371
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -7154,14 +7413,6 @@ export class PlutusV2Script {
7154
7413
  * @returns {PlutusV2Script}
7155
7414
  */
7156
7415
  static from_json(json: string): PlutusV2Script;
7157
- /**
7158
- * @returns {Uint8Array}
7159
- */
7160
- get(): Uint8Array;
7161
- /**
7162
- * @returns {ScriptHash}
7163
- */
7164
- hash(): ScriptHash;
7165
7416
  }
7166
7417
  /**
7167
7418
  */
@@ -7190,6 +7441,40 @@ export class PlutusV2ScriptList {
7190
7441
  export class PlutusV3Script {
7191
7442
  free(): void;
7192
7443
  /**
7444
+ * @returns {ScriptHash}
7445
+ */
7446
+ hash(): ScriptHash;
7447
+ /**
7448
+ *
7449
+ * * Direct raw bytes without any CBOR structure
7450
+ *
7451
+ * @returns {Uint8Array}
7452
+ */
7453
+ to_raw_bytes(): Uint8Array;
7454
+ /**
7455
+ *
7456
+ * * Parse from the direct raw bytes, without any CBOR structure
7457
+ *
7458
+ * @param {Uint8Array} bytes
7459
+ * @returns {PlutusV3Script}
7460
+ */
7461
+ static from_raw_bytes(bytes: Uint8Array): PlutusV3Script;
7462
+ /**
7463
+ *
7464
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
7465
+ *
7466
+ * @returns {string}
7467
+ */
7468
+ to_hex(): string;
7469
+ /**
7470
+ *
7471
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
7472
+ *
7473
+ * @param {string} input
7474
+ * @returns {PlutusV3Script}
7475
+ */
7476
+ static from_hex(input: string): PlutusV3Script;
7477
+ /**
7193
7478
  *
7194
7479
  * * Serialize this type to CBOR bytes
7195
7480
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -7237,10 +7522,6 @@ export class PlutusV3Script {
7237
7522
  * @returns {PlutusV3Script}
7238
7523
  */
7239
7524
  static from_json(json: string): PlutusV3Script;
7240
- /**
7241
- * @returns {Uint8Array}
7242
- */
7243
- get(): Uint8Array;
7244
7525
  }
7245
7526
  /**
7246
7527
  */
@@ -7396,33 +7677,45 @@ export class PoolMetadata {
7396
7677
  export class PoolMetadataHash {
7397
7678
  free(): void;
7398
7679
  /**
7399
- * @returns {Uint8Array}
7400
- */
7401
- to_raw_bytes(): Uint8Array;
7402
- /**
7403
7680
  * @param {string} prefix
7404
7681
  * @returns {string}
7405
7682
  */
7406
7683
  to_bech32(prefix: string): string;
7407
7684
  /**
7408
- * @returns {string}
7409
- */
7410
- to_hex(): string;
7411
- /**
7412
7685
  * @param {string} bech32_str
7413
7686
  * @returns {PoolMetadataHash}
7414
7687
  */
7415
7688
  static from_bech32(bech32_str: string): PoolMetadataHash;
7416
7689
  /**
7417
- * @param {string} input
7418
- * @returns {PoolMetadataHash}
7690
+ *
7691
+ * * Direct raw bytes without any CBOR structure
7692
+ *
7693
+ * @returns {Uint8Array}
7419
7694
  */
7420
- static from_hex(input: string): PoolMetadataHash;
7695
+ to_raw_bytes(): Uint8Array;
7421
7696
  /**
7697
+ *
7698
+ * * Parse from the direct raw bytes, without any CBOR structure
7699
+ *
7422
7700
  * @param {Uint8Array} bytes
7423
7701
  * @returns {PoolMetadataHash}
7424
7702
  */
7425
7703
  static from_raw_bytes(bytes: Uint8Array): PoolMetadataHash;
7704
+ /**
7705
+ *
7706
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
7707
+ *
7708
+ * @returns {string}
7709
+ */
7710
+ to_hex(): string;
7711
+ /**
7712
+ *
7713
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
7714
+ *
7715
+ * @param {string} input
7716
+ * @returns {PoolMetadataHash}
7717
+ */
7718
+ static from_hex(input: string): PoolMetadataHash;
7426
7719
  }
7427
7720
  /**
7428
7721
  */
@@ -7792,6 +8085,51 @@ export class PrivateKey {
7792
8085
  }
7793
8086
  /**
7794
8087
  */
8088
+ export class ProposalBuilder {
8089
+ free(): void;
8090
+ /**
8091
+ * @returns {ProposalBuilder}
8092
+ */
8093
+ static new(): ProposalBuilder;
8094
+ /**
8095
+ * @param {ProposalProcedure} proposal
8096
+ * @returns {ProposalBuilder}
8097
+ */
8098
+ with_proposal(proposal: ProposalProcedure): ProposalBuilder;
8099
+ /**
8100
+ * @param {ProposalProcedure} proposal
8101
+ * @param {NativeScript} native_script
8102
+ * @param {NativeScriptWitnessInfo} witness_info
8103
+ * @returns {ProposalBuilder}
8104
+ */
8105
+ with_native_script_proposal(proposal: ProposalProcedure, native_script: NativeScript, witness_info: NativeScriptWitnessInfo): ProposalBuilder;
8106
+ /**
8107
+ * @param {ProposalProcedure} proposal
8108
+ * @param {PartialPlutusWitness} partial_witness
8109
+ * @param {Ed25519KeyHashList} required_signers
8110
+ * @param {PlutusData} datum
8111
+ * @returns {ProposalBuilder}
8112
+ */
8113
+ with_plutus_proposal(proposal: ProposalProcedure, partial_witness: PartialPlutusWitness, required_signers: Ed25519KeyHashList, datum: PlutusData): ProposalBuilder;
8114
+ /**
8115
+ * @param {ProposalProcedure} proposal
8116
+ * @param {PartialPlutusWitness} partial_witness
8117
+ * @param {Ed25519KeyHashList} required_signers
8118
+ * @returns {ProposalBuilder}
8119
+ */
8120
+ with_plutus_proposal_inline_datum(proposal: ProposalProcedure, partial_witness: PartialPlutusWitness, required_signers: Ed25519KeyHashList): ProposalBuilder;
8121
+ /**
8122
+ * @returns {ProposalBuilderResult}
8123
+ */
8124
+ build(): ProposalBuilderResult;
8125
+ }
8126
+ /**
8127
+ */
8128
+ export class ProposalBuilderResult {
8129
+ free(): void;
8130
+ }
8131
+ /**
8132
+ */
7795
8133
  export class ProposalProcedure {
7796
8134
  free(): void;
7797
8135
  /**
@@ -8499,6 +8837,14 @@ export class RedeemerSetBuilder {
8499
8837
  */
8500
8838
  add_cert(result: CertificateBuilderResult): void;
8501
8839
  /**
8840
+ * @param {ProposalBuilderResult} result
8841
+ */
8842
+ add_proposal(result: ProposalBuilderResult): void;
8843
+ /**
8844
+ * @param {VoteBuilderResult} result
8845
+ */
8846
+ add_vote(result: VoteBuilderResult): void;
8847
+ /**
8502
8848
  * @param {boolean} default_to_dummy_exunits
8503
8849
  * @returns {Redeemers}
8504
8850
  */
@@ -8592,6 +8938,10 @@ export class RedeemerWitnessKey {
8592
8938
  export class Redeemers {
8593
8939
  free(): void;
8594
8940
  /**
8941
+ * @returns {LegacyRedeemerList}
8942
+ */
8943
+ to_flat_format(): LegacyRedeemerList;
8944
+ /**
8595
8945
  *
8596
8946
  * * Serialize this type to CBOR bytes
8597
8947
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
@@ -8661,10 +9011,6 @@ export class Redeemers {
8661
9011
  * @returns {MapRedeemerKeyToRedeemerVal | undefined}
8662
9012
  */
8663
9013
  as_map_redeemer_key_to_redeemer_val(): MapRedeemerKeyToRedeemerVal | undefined;
8664
- /**
8665
- * @returns {LegacyRedeemerList}
8666
- */
8667
- to_flat_format(): LegacyRedeemerList;
8668
9014
  }
8669
9015
  /**
8670
9016
  */
@@ -8725,13 +9071,13 @@ export class RegCert {
8725
9071
  /**
8726
9072
  * @returns {bigint}
8727
9073
  */
8728
- coin(): bigint;
9074
+ deposit(): bigint;
8729
9075
  /**
8730
9076
  * @param {Credential} stake_credential
8731
- * @param {bigint} coin
9077
+ * @param {bigint} deposit
8732
9078
  * @returns {RegCert}
8733
9079
  */
8734
- static new(stake_credential: Credential, coin: bigint): RegCert;
9080
+ static new(stake_credential: Credential, deposit: bigint): RegCert;
8735
9081
  }
8736
9082
  /**
8737
9083
  */
@@ -8792,18 +9138,18 @@ export class RegDrepCert {
8792
9138
  /**
8793
9139
  * @returns {bigint}
8794
9140
  */
8795
- coin(): bigint;
9141
+ deposit(): bigint;
8796
9142
  /**
8797
9143
  * @returns {Anchor | undefined}
8798
9144
  */
8799
9145
  anchor(): Anchor | undefined;
8800
9146
  /**
8801
9147
  * @param {Credential} drep_credential
8802
- * @param {bigint} coin
9148
+ * @param {bigint} deposit
8803
9149
  * @param {Anchor | undefined} [anchor]
8804
9150
  * @returns {RegDrepCert}
8805
9151
  */
8806
- static new(drep_credential: Credential, coin: bigint, anchor?: Anchor): RegDrepCert;
9152
+ static new(drep_credential: Credential, deposit: bigint, anchor?: Anchor): RegDrepCert;
8807
9153
  }
8808
9154
  /**
8809
9155
  */
@@ -8866,15 +9212,15 @@ export class Relay {
8866
9212
  static new_single_host_addr(port?: number, ipv4?: Ipv4, ipv6?: Ipv6): Relay;
8867
9213
  /**
8868
9214
  * @param {number | undefined} port
8869
- * @param {DnsName} dns_name
9215
+ * @param {DNSName} dns_name
8870
9216
  * @returns {Relay}
8871
9217
  */
8872
- static new_single_host_name(port: number | undefined, dns_name: DnsName): Relay;
9218
+ static new_single_host_name(port: number | undefined, dns_name: DNSName): Relay;
8873
9219
  /**
8874
- * @param {DnsName} dns_name
9220
+ * @param {DNSName} dns_name
8875
9221
  * @returns {Relay}
8876
9222
  */
8877
- static new_multi_host_name(dns_name: DnsName): Relay;
9223
+ static new_multi_host_name(dns_name: DNSName): Relay;
8878
9224
  /**
8879
9225
  * @returns {RelayKind}
8880
9226
  */
@@ -9087,8 +9433,16 @@ export class RewardAddress {
9087
9433
  }
9088
9434
  /**
9089
9435
  */
9090
- export class Script {
9091
- free(): void;
9436
+ export class Script {
9437
+ free(): void;
9438
+ /**
9439
+ * @returns {ScriptHash}
9440
+ */
9441
+ hash(): ScriptHash;
9442
+ /**
9443
+ * @returns {Language | undefined}
9444
+ */
9445
+ language(): Language | undefined;
9092
9446
  /**
9093
9447
  *
9094
9448
  * * Serialize this type to CBOR bytes
@@ -9177,14 +9531,6 @@ export class Script {
9177
9531
  * @returns {PlutusV3Script | undefined}
9178
9532
  */
9179
9533
  as_plutus_v3(): PlutusV3Script | undefined;
9180
- /**
9181
- * @returns {ScriptHash}
9182
- */
9183
- hash(): ScriptHash;
9184
- /**
9185
- * @returns {Language | undefined}
9186
- */
9187
- language(): Language | undefined;
9188
9534
  }
9189
9535
  /**
9190
9536
  */
@@ -9315,66 +9661,90 @@ export class ScriptAny {
9315
9661
  export class ScriptDataHash {
9316
9662
  free(): void;
9317
9663
  /**
9318
- * @returns {Uint8Array}
9319
- */
9320
- to_raw_bytes(): Uint8Array;
9321
- /**
9322
9664
  * @param {string} prefix
9323
9665
  * @returns {string}
9324
9666
  */
9325
9667
  to_bech32(prefix: string): string;
9326
9668
  /**
9327
- * @returns {string}
9328
- */
9329
- to_hex(): string;
9330
- /**
9331
9669
  * @param {string} bech32_str
9332
9670
  * @returns {ScriptDataHash}
9333
9671
  */
9334
9672
  static from_bech32(bech32_str: string): ScriptDataHash;
9335
9673
  /**
9336
- * @param {string} input
9337
- * @returns {ScriptDataHash}
9674
+ *
9675
+ * * Direct raw bytes without any CBOR structure
9676
+ *
9677
+ * @returns {Uint8Array}
9338
9678
  */
9339
- static from_hex(input: string): ScriptDataHash;
9679
+ to_raw_bytes(): Uint8Array;
9340
9680
  /**
9681
+ *
9682
+ * * Parse from the direct raw bytes, without any CBOR structure
9683
+ *
9341
9684
  * @param {Uint8Array} bytes
9342
9685
  * @returns {ScriptDataHash}
9343
9686
  */
9344
9687
  static from_raw_bytes(bytes: Uint8Array): ScriptDataHash;
9688
+ /**
9689
+ *
9690
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
9691
+ *
9692
+ * @returns {string}
9693
+ */
9694
+ to_hex(): string;
9695
+ /**
9696
+ *
9697
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
9698
+ *
9699
+ * @param {string} input
9700
+ * @returns {ScriptDataHash}
9701
+ */
9702
+ static from_hex(input: string): ScriptDataHash;
9345
9703
  }
9346
9704
  /**
9347
9705
  */
9348
9706
  export class ScriptHash {
9349
9707
  free(): void;
9350
9708
  /**
9351
- * @returns {Uint8Array}
9352
- */
9353
- to_raw_bytes(): Uint8Array;
9354
- /**
9355
9709
  * @param {string} prefix
9356
9710
  * @returns {string}
9357
9711
  */
9358
9712
  to_bech32(prefix: string): string;
9359
9713
  /**
9360
- * @returns {string}
9361
- */
9362
- to_hex(): string;
9363
- /**
9364
9714
  * @param {string} bech32_str
9365
9715
  * @returns {ScriptHash}
9366
9716
  */
9367
9717
  static from_bech32(bech32_str: string): ScriptHash;
9368
9718
  /**
9369
- * @param {string} input
9370
- * @returns {ScriptHash}
9719
+ *
9720
+ * * Direct raw bytes without any CBOR structure
9721
+ *
9722
+ * @returns {Uint8Array}
9371
9723
  */
9372
- static from_hex(input: string): ScriptHash;
9724
+ to_raw_bytes(): Uint8Array;
9373
9725
  /**
9726
+ *
9727
+ * * Parse from the direct raw bytes, without any CBOR structure
9728
+ *
9374
9729
  * @param {Uint8Array} bytes
9375
9730
  * @returns {ScriptHash}
9376
9731
  */
9377
9732
  static from_raw_bytes(bytes: Uint8Array): ScriptHash;
9733
+ /**
9734
+ *
9735
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
9736
+ *
9737
+ * @returns {string}
9738
+ */
9739
+ to_hex(): string;
9740
+ /**
9741
+ *
9742
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
9743
+ *
9744
+ * @param {string} input
9745
+ * @returns {ScriptHash}
9746
+ */
9747
+ static from_hex(input: string): ScriptHash;
9378
9748
  }
9379
9749
  /**
9380
9750
  */
@@ -9631,7 +10001,7 @@ export class ScriptPubkey {
9631
10001
  }
9632
10002
  /**
9633
10003
  */
9634
- export class ShelleyMaFormatAuxData {
10004
+ export class ShelleyMAFormatAuxData {
9635
10005
  free(): void;
9636
10006
  /**
9637
10007
  *
@@ -9647,9 +10017,9 @@ export class ShelleyMaFormatAuxData {
9647
10017
  * * Create this type from CBOR bytes
9648
10018
  *
9649
10019
  * @param {Uint8Array} cbor_bytes
9650
- * @returns {ShelleyMaFormatAuxData}
10020
+ * @returns {ShelleyMAFormatAuxData}
9651
10021
  */
9652
- static from_cbor_bytes(cbor_bytes: Uint8Array): ShelleyMaFormatAuxData;
10022
+ static from_cbor_bytes(cbor_bytes: Uint8Array): ShelleyMAFormatAuxData;
9653
10023
  /**
9654
10024
  *
9655
10025
  * * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
@@ -9665,9 +10035,9 @@ export class ShelleyMaFormatAuxData {
9665
10035
  * * This is useful for interfacing with CIP30
9666
10036
  *
9667
10037
  * @param {string} cbor_bytes
9668
- * @returns {ShelleyMaFormatAuxData}
10038
+ * @returns {ShelleyMAFormatAuxData}
9669
10039
  */
9670
- static from_cbor_hex(cbor_bytes: string): ShelleyMaFormatAuxData;
10040
+ static from_cbor_hex(cbor_bytes: string): ShelleyMAFormatAuxData;
9671
10041
  /**
9672
10042
  * @returns {string}
9673
10043
  */
@@ -9678,9 +10048,9 @@ export class ShelleyMaFormatAuxData {
9678
10048
  to_js_value(): any;
9679
10049
  /**
9680
10050
  * @param {string} json
9681
- * @returns {ShelleyMaFormatAuxData}
10051
+ * @returns {ShelleyMAFormatAuxData}
9682
10052
  */
9683
- static from_json(json: string): ShelleyMaFormatAuxData;
10053
+ static from_json(json: string): ShelleyMAFormatAuxData;
9684
10054
  /**
9685
10055
  * @returns {Metadata}
9686
10056
  */
@@ -9692,9 +10062,9 @@ export class ShelleyMaFormatAuxData {
9692
10062
  /**
9693
10063
  * @param {Metadata} transaction_metadata
9694
10064
  * @param {NativeScriptList} auxiliary_scripts
9695
- * @returns {ShelleyMaFormatAuxData}
10065
+ * @returns {ShelleyMAFormatAuxData}
9696
10066
  */
9697
- static new(transaction_metadata: Metadata, auxiliary_scripts: NativeScriptList): ShelleyMaFormatAuxData;
10067
+ static new(transaction_metadata: Metadata, auxiliary_scripts: NativeScriptList): ShelleyMAFormatAuxData;
9698
10068
  }
9699
10069
  /**
9700
10070
  */
@@ -9919,15 +10289,16 @@ export class SingleHostName {
9919
10289
  */
9920
10290
  port(): number | undefined;
9921
10291
  /**
9922
- * @returns {DnsName}
10292
+ * @returns {DNSName}
9923
10293
  */
9924
- dns_name(): DnsName;
10294
+ dns_name(): DNSName;
9925
10295
  /**
10296
+ * * `dns_name` - An A or AAAA DNS record
9926
10297
  * @param {number | undefined} port
9927
- * @param {DnsName} dns_name
10298
+ * @param {DNSName} dns_name
9928
10299
  * @returns {SingleHostName}
9929
10300
  */
9930
- static new(port: number | undefined, dns_name: DnsName): SingleHostName;
10301
+ static new(port: number | undefined, dns_name: DNSName): SingleHostName;
9931
10302
  }
9932
10303
  /**
9933
10304
  */
@@ -10383,14 +10754,14 @@ export class StakeRegDelegCert {
10383
10754
  /**
10384
10755
  * @returns {bigint}
10385
10756
  */
10386
- coin(): bigint;
10757
+ deposit(): bigint;
10387
10758
  /**
10388
10759
  * @param {Credential} stake_credential
10389
10760
  * @param {Ed25519KeyHash} pool
10390
- * @param {bigint} coin
10761
+ * @param {bigint} deposit
10391
10762
  * @returns {StakeRegDelegCert}
10392
10763
  */
10393
- static new(stake_credential: Credential, pool: Ed25519KeyHash, coin: bigint): StakeRegDelegCert;
10764
+ static new(stake_credential: Credential, pool: Ed25519KeyHash, deposit: bigint): StakeRegDelegCert;
10394
10765
  }
10395
10766
  /**
10396
10767
  */
@@ -10593,49 +10964,61 @@ export class StakeVoteRegDelegCert {
10593
10964
  /**
10594
10965
  * @returns {bigint}
10595
10966
  */
10596
- coin(): bigint;
10967
+ deposit(): bigint;
10597
10968
  /**
10598
10969
  * @param {Credential} stake_credential
10599
10970
  * @param {Ed25519KeyHash} pool
10600
10971
  * @param {DRep} d_rep
10601
- * @param {bigint} coin
10972
+ * @param {bigint} deposit
10602
10973
  * @returns {StakeVoteRegDelegCert}
10603
10974
  */
10604
- static new(stake_credential: Credential, pool: Ed25519KeyHash, d_rep: DRep, coin: bigint): StakeVoteRegDelegCert;
10975
+ static new(stake_credential: Credential, pool: Ed25519KeyHash, d_rep: DRep, deposit: bigint): StakeVoteRegDelegCert;
10605
10976
  }
10606
10977
  /**
10607
10978
  */
10608
10979
  export class StakeholderId {
10609
10980
  free(): void;
10610
10981
  /**
10611
- * @returns {Uint8Array}
10612
- */
10613
- to_raw_bytes(): Uint8Array;
10614
- /**
10615
10982
  * @param {string} prefix
10616
10983
  * @returns {string}
10617
10984
  */
10618
10985
  to_bech32(prefix: string): string;
10619
10986
  /**
10620
- * @returns {string}
10621
- */
10622
- to_hex(): string;
10623
- /**
10624
10987
  * @param {string} bech32_str
10625
10988
  * @returns {StakeholderId}
10626
10989
  */
10627
10990
  static from_bech32(bech32_str: string): StakeholderId;
10628
10991
  /**
10629
- * @param {string} input
10630
- * @returns {StakeholderId}
10992
+ *
10993
+ * * Direct raw bytes without any CBOR structure
10994
+ *
10995
+ * @returns {Uint8Array}
10631
10996
  */
10632
- static from_hex(input: string): StakeholderId;
10997
+ to_raw_bytes(): Uint8Array;
10633
10998
  /**
10999
+ *
11000
+ * * Parse from the direct raw bytes, without any CBOR structure
11001
+ *
10634
11002
  * @param {Uint8Array} bytes
10635
11003
  * @returns {StakeholderId}
10636
11004
  */
10637
11005
  static from_raw_bytes(bytes: Uint8Array): StakeholderId;
10638
11006
  /**
11007
+ *
11008
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
11009
+ *
11010
+ * @returns {string}
11011
+ */
11012
+ to_hex(): string;
11013
+ /**
11014
+ *
11015
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
11016
+ *
11017
+ * @param {string} input
11018
+ * @returns {StakeholderId}
11019
+ */
11020
+ static from_hex(input: string): StakeholderId;
11021
+ /**
10639
11022
  * @param {Bip32PublicKey} pubk
10640
11023
  * @returns {StakeholderId}
10641
11024
  */
@@ -11009,6 +11392,14 @@ export class TransactionBuilder {
11009
11392
  */
11010
11393
  add_cert(result: CertificateBuilderResult): void;
11011
11394
  /**
11395
+ * @param {ProposalBuilderResult} result
11396
+ */
11397
+ add_proposal(result: ProposalBuilderResult): void;
11398
+ /**
11399
+ * @param {VoteBuilderResult} result
11400
+ */
11401
+ add_vote(result: VoteBuilderResult): void;
11402
+ /**
11012
11403
  * @returns {MapRewardAccountToCoin | undefined}
11013
11404
  */
11014
11405
  get_withdrawals(): MapRewardAccountToCoin | undefined;
@@ -11223,33 +11614,45 @@ export class TransactionBuilderConfigBuilder {
11223
11614
  export class TransactionHash {
11224
11615
  free(): void;
11225
11616
  /**
11226
- * @returns {Uint8Array}
11227
- */
11228
- to_raw_bytes(): Uint8Array;
11229
- /**
11230
11617
  * @param {string} prefix
11231
11618
  * @returns {string}
11232
11619
  */
11233
11620
  to_bech32(prefix: string): string;
11234
11621
  /**
11235
- * @returns {string}
11236
- */
11237
- to_hex(): string;
11238
- /**
11239
11622
  * @param {string} bech32_str
11240
11623
  * @returns {TransactionHash}
11241
11624
  */
11242
11625
  static from_bech32(bech32_str: string): TransactionHash;
11243
11626
  /**
11244
- * @param {string} input
11245
- * @returns {TransactionHash}
11627
+ *
11628
+ * * Direct raw bytes without any CBOR structure
11629
+ *
11630
+ * @returns {Uint8Array}
11246
11631
  */
11247
- static from_hex(input: string): TransactionHash;
11632
+ to_raw_bytes(): Uint8Array;
11248
11633
  /**
11634
+ *
11635
+ * * Parse from the direct raw bytes, without any CBOR structure
11636
+ *
11249
11637
  * @param {Uint8Array} bytes
11250
11638
  * @returns {TransactionHash}
11251
11639
  */
11252
11640
  static from_raw_bytes(bytes: Uint8Array): TransactionHash;
11641
+ /**
11642
+ *
11643
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
11644
+ *
11645
+ * @returns {string}
11646
+ */
11647
+ to_hex(): string;
11648
+ /**
11649
+ *
11650
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
11651
+ *
11652
+ * @param {string} input
11653
+ * @returns {TransactionHash}
11654
+ */
11655
+ static from_hex(input: string): TransactionHash;
11253
11656
  }
11254
11657
  /**
11255
11658
  */
@@ -11697,6 +12100,14 @@ export class TransactionUnspentOutput {
11697
12100
  * @returns {TransactionUnspentOutput}
11698
12101
  */
11699
12102
  static new(input: TransactionInput, output: TransactionOutput): TransactionUnspentOutput;
12103
+ /**
12104
+ * @returns {TransactionInput}
12105
+ */
12106
+ input(): TransactionInput;
12107
+ /**
12108
+ * @returns {TransactionOutput}
12109
+ */
12110
+ output(): TransactionOutput;
11700
12111
  }
11701
12112
  /**
11702
12113
  */
@@ -12151,13 +12562,13 @@ export class UnregCert {
12151
12562
  /**
12152
12563
  * @returns {bigint}
12153
12564
  */
12154
- coin(): bigint;
12565
+ deposit(): bigint;
12155
12566
  /**
12156
12567
  * @param {Credential} stake_credential
12157
- * @param {bigint} coin
12568
+ * @param {bigint} deposit
12158
12569
  * @returns {UnregCert}
12159
12570
  */
12160
- static new(stake_credential: Credential, coin: bigint): UnregCert;
12571
+ static new(stake_credential: Credential, deposit: bigint): UnregCert;
12161
12572
  }
12162
12573
  /**
12163
12574
  */
@@ -12218,13 +12629,13 @@ export class UnregDrepCert {
12218
12629
  /**
12219
12630
  * @returns {bigint}
12220
12631
  */
12221
- coin(): bigint;
12632
+ deposit(): bigint;
12222
12633
  /**
12223
12634
  * @param {Credential} drep_credential
12224
- * @param {bigint} coin
12635
+ * @param {bigint} deposit
12225
12636
  * @returns {UnregDrepCert}
12226
12637
  */
12227
- static new(drep_credential: Credential, coin: bigint): UnregDrepCert;
12638
+ static new(drep_credential: Credential, deposit: bigint): UnregDrepCert;
12228
12639
  }
12229
12640
  /**
12230
12641
  * Redeemer without the tag of index
@@ -12513,66 +12924,90 @@ export class VRFCert {
12513
12924
  export class VRFKeyHash {
12514
12925
  free(): void;
12515
12926
  /**
12516
- * @returns {Uint8Array}
12517
- */
12518
- to_raw_bytes(): Uint8Array;
12519
- /**
12520
12927
  * @param {string} prefix
12521
12928
  * @returns {string}
12522
12929
  */
12523
12930
  to_bech32(prefix: string): string;
12524
12931
  /**
12525
- * @returns {string}
12526
- */
12527
- to_hex(): string;
12528
- /**
12529
12932
  * @param {string} bech32_str
12530
12933
  * @returns {VRFKeyHash}
12531
12934
  */
12532
12935
  static from_bech32(bech32_str: string): VRFKeyHash;
12533
12936
  /**
12534
- * @param {string} input
12535
- * @returns {VRFKeyHash}
12937
+ *
12938
+ * * Direct raw bytes without any CBOR structure
12939
+ *
12940
+ * @returns {Uint8Array}
12536
12941
  */
12537
- static from_hex(input: string): VRFKeyHash;
12942
+ to_raw_bytes(): Uint8Array;
12538
12943
  /**
12944
+ *
12945
+ * * Parse from the direct raw bytes, without any CBOR structure
12946
+ *
12539
12947
  * @param {Uint8Array} bytes
12540
12948
  * @returns {VRFKeyHash}
12541
12949
  */
12542
12950
  static from_raw_bytes(bytes: Uint8Array): VRFKeyHash;
12951
+ /**
12952
+ *
12953
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
12954
+ *
12955
+ * @returns {string}
12956
+ */
12957
+ to_hex(): string;
12958
+ /**
12959
+ *
12960
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
12961
+ *
12962
+ * @param {string} input
12963
+ * @returns {VRFKeyHash}
12964
+ */
12965
+ static from_hex(input: string): VRFKeyHash;
12543
12966
  }
12544
12967
  /**
12545
12968
  */
12546
12969
  export class VRFVkey {
12547
12970
  free(): void;
12548
12971
  /**
12549
- * @returns {Uint8Array}
12550
- */
12551
- to_raw_bytes(): Uint8Array;
12552
- /**
12553
12972
  * @param {string} prefix
12554
12973
  * @returns {string}
12555
12974
  */
12556
12975
  to_bech32(prefix: string): string;
12557
12976
  /**
12558
- * @returns {string}
12559
- */
12560
- to_hex(): string;
12561
- /**
12562
12977
  * @param {string} bech32_str
12563
12978
  * @returns {VRFVkey}
12564
12979
  */
12565
12980
  static from_bech32(bech32_str: string): VRFVkey;
12566
12981
  /**
12567
- * @param {string} input
12568
- * @returns {VRFVkey}
12982
+ *
12983
+ * * Direct raw bytes without any CBOR structure
12984
+ *
12985
+ * @returns {Uint8Array}
12569
12986
  */
12570
- static from_hex(input: string): VRFVkey;
12987
+ to_raw_bytes(): Uint8Array;
12571
12988
  /**
12989
+ *
12990
+ * * Parse from the direct raw bytes, without any CBOR structure
12991
+ *
12572
12992
  * @param {Uint8Array} bytes
12573
12993
  * @returns {VRFVkey}
12574
12994
  */
12575
12995
  static from_raw_bytes(bytes: Uint8Array): VRFVkey;
12996
+ /**
12997
+ *
12998
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
12999
+ *
13000
+ * @returns {string}
13001
+ */
13002
+ to_hex(): string;
13003
+ /**
13004
+ *
13005
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
13006
+ *
13007
+ * @param {string} input
13008
+ * @returns {VRFVkey}
13009
+ */
13010
+ static from_hex(input: string): VRFVkey;
12576
13011
  }
12577
13012
  /**
12578
13013
  */
@@ -12768,6 +13203,59 @@ export class VkeywitnessList {
12768
13203
  }
12769
13204
  /**
12770
13205
  */
13206
+ export class VoteBuilder {
13207
+ free(): void;
13208
+ /**
13209
+ * @returns {VoteBuilder}
13210
+ */
13211
+ static new(): VoteBuilder;
13212
+ /**
13213
+ * @param {Voter} voter
13214
+ * @param {GovActionId} gov_action_id
13215
+ * @param {VotingProcedure} procedure
13216
+ * @returns {VoteBuilder}
13217
+ */
13218
+ with_vote(voter: Voter, gov_action_id: GovActionId, procedure: VotingProcedure): VoteBuilder;
13219
+ /**
13220
+ * @param {Voter} voter
13221
+ * @param {GovActionId} gov_action_id
13222
+ * @param {VotingProcedure} procedure
13223
+ * @param {NativeScript} native_script
13224
+ * @param {NativeScriptWitnessInfo} witness_info
13225
+ * @returns {VoteBuilder}
13226
+ */
13227
+ with_native_script_vote(voter: Voter, gov_action_id: GovActionId, procedure: VotingProcedure, native_script: NativeScript, witness_info: NativeScriptWitnessInfo): VoteBuilder;
13228
+ /**
13229
+ * @param {Voter} voter
13230
+ * @param {GovActionId} gov_action_id
13231
+ * @param {VotingProcedure} procedure
13232
+ * @param {PartialPlutusWitness} partial_witness
13233
+ * @param {Ed25519KeyHashList} required_signers
13234
+ * @param {PlutusData} datum
13235
+ * @returns {VoteBuilder}
13236
+ */
13237
+ with_plutus_vote(voter: Voter, gov_action_id: GovActionId, procedure: VotingProcedure, partial_witness: PartialPlutusWitness, required_signers: Ed25519KeyHashList, datum: PlutusData): VoteBuilder;
13238
+ /**
13239
+ * @param {Voter} voter
13240
+ * @param {GovActionId} gov_action_id
13241
+ * @param {VotingProcedure} procedure
13242
+ * @param {PartialPlutusWitness} partial_witness
13243
+ * @param {Ed25519KeyHashList} required_signers
13244
+ * @returns {VoteBuilder}
13245
+ */
13246
+ with_plutus_vote_inline_datum(voter: Voter, gov_action_id: GovActionId, procedure: VotingProcedure, partial_witness: PartialPlutusWitness, required_signers: Ed25519KeyHashList): VoteBuilder;
13247
+ /**
13248
+ * @returns {VoteBuilderResult}
13249
+ */
13250
+ build(): VoteBuilderResult;
13251
+ }
13252
+ /**
13253
+ */
13254
+ export class VoteBuilderResult {
13255
+ free(): void;
13256
+ }
13257
+ /**
13258
+ */
12771
13259
  export class VoteDelegCert {
12772
13260
  free(): void;
12773
13261
  /**
@@ -12896,20 +13384,28 @@ export class VoteRegDelegCert {
12896
13384
  /**
12897
13385
  * @returns {bigint}
12898
13386
  */
12899
- coin(): bigint;
13387
+ deposit(): bigint;
12900
13388
  /**
12901
13389
  * @param {Credential} stake_credential
12902
13390
  * @param {DRep} d_rep
12903
- * @param {bigint} coin
13391
+ * @param {bigint} deposit
12904
13392
  * @returns {VoteRegDelegCert}
12905
13393
  */
12906
- static new(stake_credential: Credential, d_rep: DRep, coin: bigint): VoteRegDelegCert;
13394
+ static new(stake_credential: Credential, d_rep: DRep, deposit: bigint): VoteRegDelegCert;
12907
13395
  }
12908
13396
  /**
12909
13397
  */
12910
13398
  export class Voter {
12911
13399
  free(): void;
12912
13400
  /**
13401
+ * @returns {Ed25519KeyHash | undefined}
13402
+ */
13403
+ key_hash(): Ed25519KeyHash | undefined;
13404
+ /**
13405
+ * @returns {ScriptHash | undefined}
13406
+ */
13407
+ script_hash(): ScriptHash | undefined;
13408
+ /**
12913
13409
  *
12914
13410
  * * Serialize this type to CBOR bytes
12915
13411
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.