@anastasia-labs/cardano-multiplatform-lib-nodejs 5.3.1-1 → 5.3.1-3
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.
- package/README.md +4 -4
- package/cardano_multiplatform_lib.d.ts +1031 -543
- package/cardano_multiplatform_lib.js +2468 -1516
- package/cardano_multiplatform_lib_bg.wasm +0 -0
- package/package.json +3 -3
|
@@ -97,6 +97,12 @@ export function calc_script_data_hash_from_witness(witnesses: TransactionWitness
|
|
|
97
97
|
*/
|
|
98
98
|
export function compute_total_ex_units(redeemers: Redeemers): ExUnits;
|
|
99
99
|
/**
|
|
100
|
+
* @param {TransactionHash} tx_body_hash
|
|
101
|
+
* @param {PrivateKey} sk
|
|
102
|
+
* @returns {Vkeywitness}
|
|
103
|
+
*/
|
|
104
|
+
export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
|
|
105
|
+
/**
|
|
100
106
|
* encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
|
|
101
107
|
* @param {Uint8Array} bytes
|
|
102
108
|
* @returns {TransactionMetadatum}
|
|
@@ -131,26 +137,6 @@ export function min_no_script_fee(tx: Transaction, linear_fee: LinearFee): bigin
|
|
|
131
137
|
*/
|
|
132
138
|
export function min_fee(tx: Transaction, linear_fee: LinearFee, ex_unit_prices: ExUnitPrices): bigint;
|
|
133
139
|
/**
|
|
134
|
-
* Converts JSON to Metadata according to MetadataJsonSchema
|
|
135
|
-
* @param {string} json
|
|
136
|
-
* @param {MetadataJsonSchema} schema
|
|
137
|
-
* @returns {TransactionMetadatum}
|
|
138
|
-
*/
|
|
139
|
-
export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonSchema): TransactionMetadatum;
|
|
140
|
-
/**
|
|
141
|
-
* Converts Metadata to JSON according to MetadataJsonSchema
|
|
142
|
-
* @param {TransactionMetadatum} metadatum
|
|
143
|
-
* @param {MetadataJsonSchema} schema
|
|
144
|
-
* @returns {string}
|
|
145
|
-
*/
|
|
146
|
-
export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
|
|
147
|
-
/**
|
|
148
|
-
* @param {TransactionHash} tx_body_hash
|
|
149
|
-
* @param {PrivateKey} sk
|
|
150
|
-
* @returns {Vkeywitness}
|
|
151
|
-
*/
|
|
152
|
-
export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
|
|
153
|
-
/**
|
|
154
140
|
* @param {TransactionBody} txbody
|
|
155
141
|
* @param {bigint} pool_deposit
|
|
156
142
|
* @param {bigint} key_deposit
|
|
@@ -165,11 +151,19 @@ export function get_implicit_input(txbody: TransactionBody, pool_deposit: bigint
|
|
|
165
151
|
*/
|
|
166
152
|
export function get_deposit(txbody: TransactionBody, pool_deposit: bigint, key_deposit: bigint): bigint;
|
|
167
153
|
/**
|
|
168
|
-
*
|
|
169
|
-
* @param {
|
|
170
|
-
* @
|
|
154
|
+
* Converts JSON to Metadata according to MetadataJsonSchema
|
|
155
|
+
* @param {string} json
|
|
156
|
+
* @param {MetadataJsonSchema} schema
|
|
157
|
+
* @returns {TransactionMetadatum}
|
|
171
158
|
*/
|
|
172
|
-
export function
|
|
159
|
+
export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonSchema): TransactionMetadatum;
|
|
160
|
+
/**
|
|
161
|
+
* Converts Metadata to JSON according to MetadataJsonSchema
|
|
162
|
+
* @param {TransactionMetadatum} metadatum
|
|
163
|
+
* @param {MetadataJsonSchema} schema
|
|
164
|
+
* @returns {string}
|
|
165
|
+
*/
|
|
166
|
+
export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
|
|
173
167
|
/**
|
|
174
168
|
* @param {string} json
|
|
175
169
|
* @param {CardanoNodePlutusDatumSchema} schema
|
|
@@ -183,21 +177,11 @@ export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNod
|
|
|
183
177
|
*/
|
|
184
178
|
export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
|
|
185
179
|
/**
|
|
180
|
+
* @param {TransactionOutput} output
|
|
181
|
+
* @param {bigint} coins_per_utxo_byte
|
|
182
|
+
* @returns {bigint}
|
|
186
183
|
*/
|
|
187
|
-
export
|
|
188
|
-
ScriptPubkey = 0,
|
|
189
|
-
ScriptAll = 1,
|
|
190
|
-
ScriptAny = 2,
|
|
191
|
-
ScriptNOfK = 3,
|
|
192
|
-
ScriptInvalidBefore = 4,
|
|
193
|
-
ScriptInvalidHereafter = 5,
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
*/
|
|
197
|
-
export enum DelegationDistributionKind {
|
|
198
|
-
Weighted = 0,
|
|
199
|
-
Legacy = 1,
|
|
200
|
-
}
|
|
184
|
+
export function min_ada_required(output: TransactionOutput, coins_per_utxo_byte: bigint): bigint;
|
|
201
185
|
/**
|
|
202
186
|
*/
|
|
203
187
|
export enum TransactionMetadatumKind {
|
|
@@ -209,24 +193,13 @@ export enum TransactionMetadatumKind {
|
|
|
209
193
|
}
|
|
210
194
|
/**
|
|
211
195
|
*/
|
|
212
|
-
export enum
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
*/
|
|
221
|
-
export enum NonceKind {
|
|
222
|
-
Identity = 0,
|
|
223
|
-
Hash = 1,
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
*/
|
|
227
|
-
export enum ChunkableStringKind {
|
|
228
|
-
Single = 0,
|
|
229
|
-
Chunked = 1,
|
|
196
|
+
export enum NativeScriptKind {
|
|
197
|
+
ScriptPubkey = 0,
|
|
198
|
+
ScriptAll = 1,
|
|
199
|
+
ScriptAny = 2,
|
|
200
|
+
ScriptNOfK = 3,
|
|
201
|
+
ScriptInvalidBefore = 4,
|
|
202
|
+
ScriptInvalidHereafter = 5,
|
|
230
203
|
}
|
|
231
204
|
/**
|
|
232
205
|
* JSON <-> PlutusData conversion schemas.
|
|
@@ -282,13 +255,9 @@ export enum CardanoNodePlutusDatumSchema {
|
|
|
282
255
|
}
|
|
283
256
|
/**
|
|
284
257
|
*/
|
|
285
|
-
export enum
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
Cert = 2,
|
|
289
|
-
Reward = 3,
|
|
290
|
-
Voting = 4,
|
|
291
|
-
Proposing = 5,
|
|
258
|
+
export enum NonceKind {
|
|
259
|
+
Identity = 0,
|
|
260
|
+
Hash = 1,
|
|
292
261
|
}
|
|
293
262
|
/**
|
|
294
263
|
*/
|
|
@@ -297,6 +266,54 @@ export enum RedeemersKind {
|
|
|
297
266
|
MapRedeemerKeyToRedeemerVal = 1,
|
|
298
267
|
}
|
|
299
268
|
/**
|
|
269
|
+
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
270
|
+
* This will change how things are encoded but for the most part contains
|
|
271
|
+
* the same information.
|
|
272
|
+
*/
|
|
273
|
+
export enum CIP25Version {
|
|
274
|
+
/**
|
|
275
|
+
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
276
|
+
*/
|
|
277
|
+
V1 = 0,
|
|
278
|
+
/**
|
|
279
|
+
* Second version of CIP25. Supports any type of asset names.
|
|
280
|
+
*/
|
|
281
|
+
V2 = 1,
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
*/
|
|
285
|
+
export enum Vote {
|
|
286
|
+
No = 0,
|
|
287
|
+
Yes = 1,
|
|
288
|
+
Abstain = 2,
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
*/
|
|
292
|
+
export enum ByronAddrType {
|
|
293
|
+
PublicKey = 0,
|
|
294
|
+
Script = 1,
|
|
295
|
+
Redeem = 2,
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
*/
|
|
299
|
+
export enum CredentialKind {
|
|
300
|
+
PubKey = 0,
|
|
301
|
+
Script = 1,
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
*/
|
|
305
|
+
export enum TransactionOutputKind {
|
|
306
|
+
AlonzoFormatTxOut = 0,
|
|
307
|
+
ConwayFormatTxOut = 1,
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
*/
|
|
311
|
+
export enum RelayKind {
|
|
312
|
+
SingleHostAddr = 0,
|
|
313
|
+
SingleHostName = 1,
|
|
314
|
+
MultiHostName = 2,
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
300
317
|
* Careful: this enum doesn't include the network ID part of the header
|
|
301
318
|
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
302
319
|
* Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
|
|
@@ -316,75 +333,88 @@ export enum AddressHeaderKind {
|
|
|
316
333
|
}
|
|
317
334
|
/**
|
|
318
335
|
*/
|
|
319
|
-
export enum
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
336
|
+
export enum MetadataJsonSchema {
|
|
337
|
+
NoConversions = 0,
|
|
338
|
+
BasicConversions = 1,
|
|
339
|
+
DetailedSchema = 2,
|
|
323
340
|
}
|
|
324
341
|
/**
|
|
325
342
|
*/
|
|
326
|
-
export enum
|
|
327
|
-
|
|
343
|
+
export enum SpendingDataKind {
|
|
344
|
+
SpendingDataPubKey = 0,
|
|
345
|
+
SpendingDataScript = 1,
|
|
346
|
+
SpendingDataRedeem = 2,
|
|
328
347
|
}
|
|
329
348
|
/**
|
|
330
349
|
*/
|
|
331
|
-
export enum
|
|
332
|
-
|
|
333
|
-
|
|
350
|
+
export enum RedeemerTag {
|
|
351
|
+
Spend = 0,
|
|
352
|
+
Mint = 1,
|
|
353
|
+
Cert = 2,
|
|
354
|
+
Reward = 3,
|
|
355
|
+
Voting = 4,
|
|
356
|
+
Proposing = 5,
|
|
334
357
|
}
|
|
335
358
|
/**
|
|
336
|
-
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
337
|
-
* This will change how things are encoded but for the most part contains
|
|
338
|
-
* the same information.
|
|
339
|
-
*/
|
|
340
|
-
export enum CIP25Version {
|
|
341
|
-
/**
|
|
342
|
-
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
343
359
|
*/
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
*/
|
|
348
|
-
V2 = 1,
|
|
360
|
+
export enum StakeDistributionKind {
|
|
361
|
+
SingleKey = 0,
|
|
362
|
+
BootstrapEra = 1,
|
|
349
363
|
}
|
|
350
364
|
/**
|
|
351
365
|
*/
|
|
352
|
-
export enum
|
|
353
|
-
|
|
354
|
-
|
|
366
|
+
export enum ScriptKind {
|
|
367
|
+
Native = 0,
|
|
368
|
+
PlutusV1 = 1,
|
|
369
|
+
PlutusV2 = 2,
|
|
370
|
+
PlutusV3 = 3,
|
|
355
371
|
}
|
|
356
372
|
/**
|
|
357
373
|
*/
|
|
358
|
-
export enum
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
LargestFirst = 0,
|
|
374
|
+
export enum DatumOptionKind {
|
|
375
|
+
Hash = 0,
|
|
376
|
+
Datum = 1,
|
|
377
|
+
}
|
|
363
378
|
/**
|
|
364
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
365
379
|
*/
|
|
366
|
-
|
|
380
|
+
export enum DRepKind {
|
|
381
|
+
Key = 0,
|
|
382
|
+
Script = 1,
|
|
383
|
+
AlwaysAbstain = 2,
|
|
384
|
+
AlwaysNoConfidence = 3,
|
|
385
|
+
}
|
|
367
386
|
/**
|
|
368
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
369
387
|
*/
|
|
370
|
-
|
|
388
|
+
export enum AddressKind {
|
|
389
|
+
Base = 0,
|
|
390
|
+
Ptr = 1,
|
|
391
|
+
Enterprise = 2,
|
|
392
|
+
Reward = 3,
|
|
393
|
+
Byron = 4,
|
|
394
|
+
}
|
|
371
395
|
/**
|
|
372
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
373
396
|
*/
|
|
374
|
-
|
|
397
|
+
export enum GovActionKind {
|
|
398
|
+
ParameterChangeAction = 0,
|
|
399
|
+
HardForkInitiationAction = 1,
|
|
400
|
+
TreasuryWithdrawalsAction = 2,
|
|
401
|
+
NoConfidence = 3,
|
|
402
|
+
UpdateCommittee = 4,
|
|
403
|
+
NewConstitution = 5,
|
|
404
|
+
InfoAction = 6,
|
|
375
405
|
}
|
|
376
406
|
/**
|
|
377
407
|
*/
|
|
378
|
-
export enum
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
Abstain = 2,
|
|
408
|
+
export enum DelegationDistributionKind {
|
|
409
|
+
Weighted = 0,
|
|
410
|
+
Legacy = 1,
|
|
382
411
|
}
|
|
383
412
|
/**
|
|
384
413
|
*/
|
|
385
|
-
export enum
|
|
386
|
-
|
|
387
|
-
|
|
414
|
+
export enum Language {
|
|
415
|
+
PlutusV1 = 0,
|
|
416
|
+
PlutusV2 = 1,
|
|
417
|
+
PlutusV3 = 2,
|
|
388
418
|
}
|
|
389
419
|
/**
|
|
390
420
|
*/
|
|
@@ -409,89 +439,59 @@ export enum CertificateKind {
|
|
|
409
439
|
}
|
|
410
440
|
/**
|
|
411
441
|
*/
|
|
412
|
-
export enum
|
|
413
|
-
|
|
414
|
-
BasicConversions = 1,
|
|
415
|
-
DetailedSchema = 2,
|
|
416
|
-
}
|
|
417
|
-
/**
|
|
418
|
-
*/
|
|
419
|
-
export enum AddressKind {
|
|
420
|
-
Base = 0,
|
|
421
|
-
Ptr = 1,
|
|
422
|
-
Enterprise = 2,
|
|
423
|
-
Reward = 3,
|
|
424
|
-
Byron = 4,
|
|
425
|
-
}
|
|
426
|
-
/**
|
|
427
|
-
*/
|
|
428
|
-
export enum DRepKind {
|
|
429
|
-
Key = 0,
|
|
430
|
-
Script = 1,
|
|
431
|
-
AlwaysAbstain = 2,
|
|
432
|
-
AlwaysNoConfidence = 3,
|
|
442
|
+
export enum ChangeSelectionAlgo {
|
|
443
|
+
Default = 0,
|
|
433
444
|
}
|
|
434
445
|
/**
|
|
435
446
|
*/
|
|
436
|
-
export enum
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
447
|
+
export enum VoterKind {
|
|
448
|
+
ConstitutionalCommitteeHotKeyHash = 0,
|
|
449
|
+
ConstitutionalCommitteeHotScriptHash = 1,
|
|
450
|
+
DRepKeyHash = 2,
|
|
451
|
+
DRepScriptHash = 3,
|
|
452
|
+
StakingPoolKeyHash = 4,
|
|
440
453
|
}
|
|
441
454
|
/**
|
|
442
455
|
*/
|
|
443
|
-
export enum
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
456
|
+
export enum PlutusDataKind {
|
|
457
|
+
ConstrPlutusData = 0,
|
|
458
|
+
Map = 1,
|
|
459
|
+
List = 2,
|
|
460
|
+
Integer = 3,
|
|
461
|
+
Bytes = 4,
|
|
447
462
|
}
|
|
448
463
|
/**
|
|
449
464
|
*/
|
|
450
|
-
export enum
|
|
451
|
-
PlutusV1 = 0,
|
|
452
|
-
PlutusV2 = 1,
|
|
453
|
-
PlutusV3 = 2,
|
|
454
|
-
}
|
|
465
|
+
export enum CoinSelectionStrategyCIP2 {
|
|
455
466
|
/**
|
|
467
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
456
468
|
*/
|
|
457
|
-
|
|
458
|
-
SpendingDataPubKey = 0,
|
|
459
|
-
SpendingDataScript = 1,
|
|
460
|
-
SpendingDataRedeem = 2,
|
|
461
|
-
}
|
|
469
|
+
LargestFirst = 0,
|
|
462
470
|
/**
|
|
471
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
463
472
|
*/
|
|
464
|
-
|
|
465
|
-
Native = 0,
|
|
466
|
-
PlutusV1 = 1,
|
|
467
|
-
PlutusV2 = 2,
|
|
468
|
-
PlutusV3 = 3,
|
|
469
|
-
}
|
|
473
|
+
RandomImprove = 1,
|
|
470
474
|
/**
|
|
475
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
471
476
|
*/
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
477
|
+
LargestFirstMultiAsset = 2,
|
|
478
|
+
/**
|
|
479
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
480
|
+
*/
|
|
481
|
+
RandomImproveMultiAsset = 3,
|
|
475
482
|
}
|
|
476
483
|
/**
|
|
477
484
|
*/
|
|
478
|
-
export enum
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
NoConfidence = 3,
|
|
483
|
-
UpdateCommittee = 4,
|
|
484
|
-
NewConstitution = 5,
|
|
485
|
-
InfoAction = 6,
|
|
485
|
+
export enum AuxiliaryDataKind {
|
|
486
|
+
Shelley = 0,
|
|
487
|
+
ShelleyMA = 1,
|
|
488
|
+
Conway = 2,
|
|
486
489
|
}
|
|
487
490
|
/**
|
|
488
491
|
*/
|
|
489
|
-
export enum
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
DRepKeyHash = 2,
|
|
493
|
-
DRepScriptHash = 3,
|
|
494
|
-
StakingPoolKeyHash = 4,
|
|
492
|
+
export enum ChunkableStringKind {
|
|
493
|
+
Single = 0,
|
|
494
|
+
Chunked = 1,
|
|
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
|
-
*
|
|
821
|
-
*
|
|
812
|
+
*
|
|
813
|
+
* * Direct raw bytes without any CBOR structure
|
|
814
|
+
*
|
|
815
|
+
* @returns {Uint8Array}
|
|
822
816
|
*/
|
|
823
|
-
|
|
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,46 +993,50 @@ 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
|
-
*
|
|
1003
|
-
*
|
|
1006
|
+
*
|
|
1007
|
+
* * Direct raw bytes without any CBOR structure
|
|
1008
|
+
*
|
|
1009
|
+
* @returns {Uint8Array}
|
|
1004
1010
|
*/
|
|
1005
|
-
|
|
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;
|
|
1011
|
-
}
|
|
1012
1020
|
/**
|
|
1021
|
+
*
|
|
1022
|
+
* * Direct raw bytes without any CBOR structure, as a hex-encoded string
|
|
1023
|
+
*
|
|
1024
|
+
* @returns {string}
|
|
1013
1025
|
*/
|
|
1014
|
-
|
|
1015
|
-
free(): void;
|
|
1026
|
+
to_hex(): string;
|
|
1016
1027
|
/**
|
|
1017
1028
|
*
|
|
1018
|
-
*
|
|
1019
|
-
*
|
|
1020
|
-
* @param {
|
|
1021
|
-
* @returns {
|
|
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;
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1022
1037
|
*/
|
|
1023
|
-
|
|
1038
|
+
export class AssetName {
|
|
1039
|
+
free(): void;
|
|
1024
1040
|
/**
|
|
1025
1041
|
*
|
|
1026
1042
|
* * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
|
|
@@ -1038,6 +1054,36 @@ export class AssetName {
|
|
|
1038
1054
|
to_str(): string;
|
|
1039
1055
|
/**
|
|
1040
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;
|
|
1085
|
+
/**
|
|
1086
|
+
*
|
|
1041
1087
|
* * Serialize this type to CBOR bytes
|
|
1042
1088
|
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
1043
1089
|
* * If created from scratch the CBOR will be canonical.
|
|
@@ -1084,10 +1130,6 @@ export class AssetName {
|
|
|
1084
1130
|
* @returns {AssetName}
|
|
1085
1131
|
*/
|
|
1086
1132
|
static from_json(json: string): AssetName;
|
|
1087
|
-
/**
|
|
1088
|
-
* @returns {Uint8Array}
|
|
1089
|
-
*/
|
|
1090
|
-
get(): Uint8Array;
|
|
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 {
|
|
1329
|
+
* @param {ShelleyMAFormatAuxData} shelley_ma
|
|
1288
1330
|
* @returns {AuxiliaryData}
|
|
1289
1331
|
*/
|
|
1290
|
-
static
|
|
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 {
|
|
1347
|
+
* @returns {ShelleyMAFormatAuxData | undefined}
|
|
1306
1348
|
*/
|
|
1307
|
-
|
|
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
|
-
*
|
|
1337
|
-
*
|
|
1370
|
+
*
|
|
1371
|
+
* * Direct raw bytes without any CBOR structure
|
|
1372
|
+
*
|
|
1373
|
+
* @returns {Uint8Array}
|
|
1338
1374
|
*/
|
|
1339
|
-
|
|
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
|
-
*
|
|
1710
|
-
*
|
|
1755
|
+
*
|
|
1756
|
+
* * Direct raw bytes without any CBOR structure
|
|
1757
|
+
*
|
|
1758
|
+
* @returns {Uint8Array}
|
|
1711
1759
|
*/
|
|
1712
|
-
|
|
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
|
-
*
|
|
1743
|
-
*
|
|
1800
|
+
*
|
|
1801
|
+
* * Direct raw bytes without any CBOR structure
|
|
1802
|
+
*
|
|
1803
|
+
* @returns {Uint8Array}
|
|
1744
1804
|
*/
|
|
1745
|
-
|
|
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.
|
|
@@ -1824,11 +1906,7 @@ export class BootstrapWitness {
|
|
|
1824
1906
|
* @param {AddrAttributes} attributes
|
|
1825
1907
|
* @returns {BootstrapWitness}
|
|
1826
1908
|
*/
|
|
1827
|
-
static new(public_key: PublicKey, signature: Ed25519Signature, chain_code: Uint8Array, attributes: AddrAttributes): BootstrapWitness;
|
|
1828
|
-
/**
|
|
1829
|
-
* @returns {AddressContent}
|
|
1830
|
-
*/
|
|
1831
|
-
to_address(): AddressContent;
|
|
1909
|
+
static new(public_key: PublicKey, signature: Ed25519Signature, chain_code: Uint8Array, attributes: AddrAttributes): BootstrapWitness;
|
|
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
|
-
*
|
|
1961
|
-
*
|
|
2030
|
+
*
|
|
2031
|
+
* * Direct raw bytes without any CBOR structure
|
|
2032
|
+
*
|
|
2033
|
+
* @returns {Uint8Array}
|
|
1962
2034
|
*/
|
|
1963
|
-
|
|
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}
|
|
3237
|
+
* @param {bigint} deposit
|
|
3144
3238
|
* @returns {Certificate}
|
|
3145
3239
|
*/
|
|
3146
|
-
static new_reg_cert(stake_credential: Credential,
|
|
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}
|
|
3244
|
+
* @param {bigint} deposit
|
|
3150
3245
|
* @returns {Certificate}
|
|
3151
3246
|
*/
|
|
3152
|
-
static new_unreg_cert(stake_credential: Credential,
|
|
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}
|
|
3267
|
+
* @param {bigint} deposit
|
|
3170
3268
|
* @returns {Certificate}
|
|
3171
3269
|
*/
|
|
3172
|
-
static new_stake_reg_deleg_cert(stake_credential: Credential, pool: Ed25519KeyHash,
|
|
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}
|
|
3275
|
+
* @param {bigint} deposit
|
|
3177
3276
|
* @returns {Certificate}
|
|
3178
3277
|
*/
|
|
3179
|
-
static new_vote_reg_deleg_cert(stake_credential: Credential, d_rep: DRep,
|
|
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}
|
|
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,
|
|
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}
|
|
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,
|
|
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}
|
|
3309
|
+
* @param {bigint} deposit
|
|
3210
3310
|
* @returns {Certificate}
|
|
3211
3311
|
*/
|
|
3212
|
-
static new_unreg_drep_cert(drep_credential: Credential,
|
|
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]
|
|
@@ -3809,6 +3909,63 @@ export class Credential {
|
|
|
3809
3909
|
}
|
|
3810
3910
|
/**
|
|
3811
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;
|
|
3949
|
+
/**
|
|
3950
|
+
* @returns {string}
|
|
3951
|
+
*/
|
|
3952
|
+
to_json(): string;
|
|
3953
|
+
/**
|
|
3954
|
+
* @returns {any}
|
|
3955
|
+
*/
|
|
3956
|
+
to_js_value(): any;
|
|
3957
|
+
/**
|
|
3958
|
+
* @param {string} json
|
|
3959
|
+
* @returns {DNSName}
|
|
3960
|
+
*/
|
|
3961
|
+
static from_json(json: string): DNSName;
|
|
3962
|
+
/**
|
|
3963
|
+
* @returns {string}
|
|
3964
|
+
*/
|
|
3965
|
+
get(): string;
|
|
3966
|
+
}
|
|
3967
|
+
/**
|
|
3968
|
+
*/
|
|
3812
3969
|
export class DRep {
|
|
3813
3970
|
free(): void;
|
|
3814
3971
|
/**
|
|
@@ -4002,33 +4159,45 @@ export class DRepVotingThresholds {
|
|
|
4002
4159
|
export class DatumHash {
|
|
4003
4160
|
free(): void;
|
|
4004
4161
|
/**
|
|
4005
|
-
* @returns {Uint8Array}
|
|
4006
|
-
*/
|
|
4007
|
-
to_raw_bytes(): Uint8Array;
|
|
4008
|
-
/**
|
|
4009
4162
|
* @param {string} prefix
|
|
4010
4163
|
* @returns {string}
|
|
4011
4164
|
*/
|
|
4012
4165
|
to_bech32(prefix: string): string;
|
|
4013
4166
|
/**
|
|
4014
|
-
* @returns {string}
|
|
4015
|
-
*/
|
|
4016
|
-
to_hex(): string;
|
|
4017
|
-
/**
|
|
4018
4167
|
* @param {string} bech32_str
|
|
4019
4168
|
* @returns {DatumHash}
|
|
4020
4169
|
*/
|
|
4021
4170
|
static from_bech32(bech32_str: string): DatumHash;
|
|
4022
4171
|
/**
|
|
4023
|
-
*
|
|
4024
|
-
*
|
|
4172
|
+
*
|
|
4173
|
+
* * Direct raw bytes without any CBOR structure
|
|
4174
|
+
*
|
|
4175
|
+
* @returns {Uint8Array}
|
|
4025
4176
|
*/
|
|
4026
|
-
|
|
4177
|
+
to_raw_bytes(): Uint8Array;
|
|
4027
4178
|
/**
|
|
4179
|
+
*
|
|
4180
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
4181
|
+
*
|
|
4028
4182
|
* @param {Uint8Array} bytes
|
|
4029
4183
|
* @returns {DatumHash}
|
|
4030
4184
|
*/
|
|
4031
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;
|
|
4032
4201
|
}
|
|
4033
4202
|
/**
|
|
4034
4203
|
*/
|
|
@@ -4107,93 +4276,48 @@ export class DatumOption {
|
|
|
4107
4276
|
}
|
|
4108
4277
|
/**
|
|
4109
4278
|
*/
|
|
4110
|
-
export class
|
|
4279
|
+
export class Ed25519KeyHash {
|
|
4111
4280
|
free(): void;
|
|
4112
4281
|
/**
|
|
4113
|
-
*
|
|
4114
|
-
*
|
|
4115
|
-
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
4116
|
-
* * If created from scratch the CBOR will be canonical.
|
|
4117
|
-
*
|
|
4118
|
-
* @returns {Uint8Array}
|
|
4119
|
-
*/
|
|
4120
|
-
to_cbor_bytes(): Uint8Array;
|
|
4121
|
-
/**
|
|
4122
|
-
*
|
|
4123
|
-
* * Create this type from CBOR bytes
|
|
4124
|
-
*
|
|
4125
|
-
* @param {Uint8Array} cbor_bytes
|
|
4126
|
-
* @returns {DnsName}
|
|
4282
|
+
* @param {string} prefix
|
|
4283
|
+
* @returns {string}
|
|
4127
4284
|
*/
|
|
4128
|
-
|
|
4285
|
+
to_bech32(prefix: string): string;
|
|
4129
4286
|
/**
|
|
4130
|
-
*
|
|
4131
|
-
*
|
|
4132
|
-
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
4133
|
-
* * If created from scratch the CBOR will be canonical.
|
|
4134
|
-
*
|
|
4135
|
-
* @returns {string}
|
|
4287
|
+
* @param {string} bech32_str
|
|
4288
|
+
* @returns {Ed25519KeyHash}
|
|
4136
4289
|
*/
|
|
4137
|
-
|
|
4290
|
+
static from_bech32(bech32_str: string): Ed25519KeyHash;
|
|
4138
4291
|
/**
|
|
4139
4292
|
*
|
|
4140
|
-
* *
|
|
4141
|
-
* * This is useful for interfacing with CIP30
|
|
4293
|
+
* * Direct raw bytes without any CBOR structure
|
|
4142
4294
|
*
|
|
4143
|
-
* @param {string} cbor_bytes
|
|
4144
|
-
* @returns {DnsName}
|
|
4145
|
-
*/
|
|
4146
|
-
static from_cbor_hex(cbor_bytes: string): DnsName;
|
|
4147
|
-
/**
|
|
4148
|
-
* @returns {string}
|
|
4149
|
-
*/
|
|
4150
|
-
to_json(): string;
|
|
4151
|
-
/**
|
|
4152
|
-
* @returns {any}
|
|
4153
|
-
*/
|
|
4154
|
-
to_js_value(): any;
|
|
4155
|
-
/**
|
|
4156
|
-
* @param {string} json
|
|
4157
|
-
* @returns {DnsName}
|
|
4158
|
-
*/
|
|
4159
|
-
static from_json(json: string): DnsName;
|
|
4160
|
-
/**
|
|
4161
|
-
* @returns {string}
|
|
4162
|
-
*/
|
|
4163
|
-
get(): string;
|
|
4164
|
-
}
|
|
4165
|
-
/**
|
|
4166
|
-
*/
|
|
4167
|
-
export class Ed25519KeyHash {
|
|
4168
|
-
free(): void;
|
|
4169
|
-
/**
|
|
4170
4295
|
* @returns {Uint8Array}
|
|
4171
4296
|
*/
|
|
4172
4297
|
to_raw_bytes(): Uint8Array;
|
|
4173
4298
|
/**
|
|
4174
|
-
*
|
|
4175
|
-
*
|
|
4299
|
+
*
|
|
4300
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
4301
|
+
*
|
|
4302
|
+
* @param {Uint8Array} bytes
|
|
4303
|
+
* @returns {Ed25519KeyHash}
|
|
4176
4304
|
*/
|
|
4177
|
-
|
|
4305
|
+
static from_raw_bytes(bytes: Uint8Array): Ed25519KeyHash;
|
|
4178
4306
|
/**
|
|
4307
|
+
*
|
|
4308
|
+
* * Direct raw bytes without any CBOR structure, as a hex-encoded string
|
|
4309
|
+
*
|
|
4179
4310
|
* @returns {string}
|
|
4180
4311
|
*/
|
|
4181
4312
|
to_hex(): string;
|
|
4182
4313
|
/**
|
|
4183
|
-
*
|
|
4184
|
-
*
|
|
4185
|
-
|
|
4186
|
-
static from_bech32(bech32_str: string): Ed25519KeyHash;
|
|
4187
|
-
/**
|
|
4314
|
+
*
|
|
4315
|
+
* * Parse from a hex string of the direct raw bytes, without any CBOR structure
|
|
4316
|
+
*
|
|
4188
4317
|
* @param {string} input
|
|
4189
4318
|
* @returns {Ed25519KeyHash}
|
|
4190
4319
|
*/
|
|
4191
4320
|
static from_hex(input: string): Ed25519KeyHash;
|
|
4192
|
-
/**
|
|
4193
|
-
* @param {Uint8Array} bytes
|
|
4194
|
-
* @returns {Ed25519KeyHash}
|
|
4195
|
-
*/
|
|
4196
|
-
static from_raw_bytes(bytes: Uint8Array): Ed25519KeyHash;
|
|
4197
4321
|
}
|
|
4198
4322
|
/**
|
|
4199
4323
|
*/
|
|
@@ -4222,32 +4346,44 @@ export class Ed25519KeyHashList {
|
|
|
4222
4346
|
export class Ed25519Signature {
|
|
4223
4347
|
free(): void;
|
|
4224
4348
|
/**
|
|
4225
|
-
* @returns {Uint8Array}
|
|
4226
|
-
*/
|
|
4227
|
-
to_raw_bytes(): Uint8Array;
|
|
4228
|
-
/**
|
|
4229
4349
|
* @returns {string}
|
|
4230
4350
|
*/
|
|
4231
4351
|
to_bech32(): string;
|
|
4232
4352
|
/**
|
|
4233
|
-
* @returns {string}
|
|
4234
|
-
*/
|
|
4235
|
-
to_hex(): string;
|
|
4236
|
-
/**
|
|
4237
4353
|
* @param {string} bech32_str
|
|
4238
4354
|
* @returns {Ed25519Signature}
|
|
4239
4355
|
*/
|
|
4240
4356
|
static from_bech32(bech32_str: string): Ed25519Signature;
|
|
4241
4357
|
/**
|
|
4242
|
-
*
|
|
4243
|
-
*
|
|
4358
|
+
*
|
|
4359
|
+
* * Direct raw bytes without any CBOR structure
|
|
4360
|
+
*
|
|
4361
|
+
* @returns {Uint8Array}
|
|
4244
4362
|
*/
|
|
4245
|
-
|
|
4363
|
+
to_raw_bytes(): Uint8Array;
|
|
4246
4364
|
/**
|
|
4365
|
+
*
|
|
4366
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
4367
|
+
*
|
|
4247
4368
|
* @param {Uint8Array} bytes
|
|
4248
4369
|
* @returns {Ed25519Signature}
|
|
4249
4370
|
*/
|
|
4250
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;
|
|
4251
4387
|
}
|
|
4252
4388
|
/**
|
|
4253
4389
|
*/
|
|
@@ -4443,72 +4579,100 @@ export class FilesDetailsList {
|
|
|
4443
4579
|
export class GenesisDelegateHash {
|
|
4444
4580
|
free(): void;
|
|
4445
4581
|
/**
|
|
4446
|
-
* @returns {Uint8Array}
|
|
4447
|
-
*/
|
|
4448
|
-
to_raw_bytes(): Uint8Array;
|
|
4449
|
-
/**
|
|
4450
4582
|
* @param {string} prefix
|
|
4451
4583
|
* @returns {string}
|
|
4452
4584
|
*/
|
|
4453
4585
|
to_bech32(prefix: string): string;
|
|
4454
4586
|
/**
|
|
4455
|
-
* @returns {string}
|
|
4456
|
-
*/
|
|
4457
|
-
to_hex(): string;
|
|
4458
|
-
/**
|
|
4459
4587
|
* @param {string} bech32_str
|
|
4460
4588
|
* @returns {GenesisDelegateHash}
|
|
4461
4589
|
*/
|
|
4462
4590
|
static from_bech32(bech32_str: string): GenesisDelegateHash;
|
|
4463
4591
|
/**
|
|
4592
|
+
*
|
|
4593
|
+
* * Direct raw bytes without any CBOR structure
|
|
4594
|
+
*
|
|
4595
|
+
* @returns {Uint8Array}
|
|
4596
|
+
*/
|
|
4597
|
+
to_raw_bytes(): Uint8Array;
|
|
4598
|
+
/**
|
|
4599
|
+
*
|
|
4600
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
4601
|
+
*
|
|
4602
|
+
* @param {Uint8Array} bytes
|
|
4603
|
+
* @returns {GenesisDelegateHash}
|
|
4604
|
+
*/
|
|
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
|
+
*
|
|
4464
4617
|
* @param {string} input
|
|
4465
4618
|
* @returns {GenesisDelegateHash}
|
|
4466
4619
|
*/
|
|
4467
4620
|
static from_hex(input: string): GenesisDelegateHash;
|
|
4468
|
-
/**
|
|
4469
|
-
* @param {Uint8Array} bytes
|
|
4470
|
-
* @returns {GenesisDelegateHash}
|
|
4471
|
-
*/
|
|
4472
|
-
static from_raw_bytes(bytes: Uint8Array): GenesisDelegateHash;
|
|
4473
4621
|
}
|
|
4474
4622
|
/**
|
|
4475
4623
|
*/
|
|
4476
4624
|
export class GenesisHash {
|
|
4477
4625
|
free(): void;
|
|
4478
4626
|
/**
|
|
4479
|
-
* @returns {Uint8Array}
|
|
4480
|
-
*/
|
|
4481
|
-
to_raw_bytes(): Uint8Array;
|
|
4482
|
-
/**
|
|
4483
4627
|
* @param {string} prefix
|
|
4484
4628
|
* @returns {string}
|
|
4485
4629
|
*/
|
|
4486
4630
|
to_bech32(prefix: string): string;
|
|
4487
4631
|
/**
|
|
4488
|
-
* @returns {string}
|
|
4489
|
-
*/
|
|
4490
|
-
to_hex(): string;
|
|
4491
|
-
/**
|
|
4492
4632
|
* @param {string} bech32_str
|
|
4493
4633
|
* @returns {GenesisHash}
|
|
4494
4634
|
*/
|
|
4495
4635
|
static from_bech32(bech32_str: string): GenesisHash;
|
|
4496
4636
|
/**
|
|
4497
|
-
*
|
|
4498
|
-
*
|
|
4637
|
+
*
|
|
4638
|
+
* * Direct raw bytes without any CBOR structure
|
|
4639
|
+
*
|
|
4640
|
+
* @returns {Uint8Array}
|
|
4499
4641
|
*/
|
|
4500
|
-
|
|
4642
|
+
to_raw_bytes(): Uint8Array;
|
|
4501
4643
|
/**
|
|
4644
|
+
*
|
|
4645
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
4646
|
+
*
|
|
4502
4647
|
* @param {Uint8Array} bytes
|
|
4503
4648
|
* @returns {GenesisHash}
|
|
4504
4649
|
*/
|
|
4505
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;
|
|
4506
4666
|
}
|
|
4507
4667
|
/**
|
|
4508
4668
|
*/
|
|
4509
4669
|
export class GovAction {
|
|
4510
4670
|
free(): void;
|
|
4511
4671
|
/**
|
|
4672
|
+
* @returns {ScriptHash | undefined}
|
|
4673
|
+
*/
|
|
4674
|
+
script_hash(): ScriptHash | undefined;
|
|
4675
|
+
/**
|
|
4512
4676
|
*
|
|
4513
4677
|
* * Serialize this type to CBOR bytes
|
|
4514
4678
|
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
@@ -4557,12 +4721,12 @@ export class GovAction {
|
|
|
4557
4721
|
*/
|
|
4558
4722
|
static from_json(json: string): GovAction;
|
|
4559
4723
|
/**
|
|
4560
|
-
* @param {GovActionId | undefined}
|
|
4561
|
-
* @param {ProtocolParamUpdate}
|
|
4724
|
+
* @param {GovActionId | undefined} action_id
|
|
4725
|
+
* @param {ProtocolParamUpdate} update
|
|
4562
4726
|
* @param {ScriptHash | undefined} [policy_hash]
|
|
4563
4727
|
* @returns {GovAction}
|
|
4564
4728
|
*/
|
|
4565
|
-
static new_parameter_change_action(
|
|
4729
|
+
static new_parameter_change_action(action_id: GovActionId | undefined, update: ProtocolParamUpdate, policy_hash?: ScriptHash): GovAction;
|
|
4566
4730
|
/**
|
|
4567
4731
|
* @param {GovActionId | undefined} action_id
|
|
4568
4732
|
* @param {ProtocolVersion} version
|
|
@@ -5254,33 +5418,45 @@ export class KESSignature {
|
|
|
5254
5418
|
export class KESVkey {
|
|
5255
5419
|
free(): void;
|
|
5256
5420
|
/**
|
|
5257
|
-
* @returns {Uint8Array}
|
|
5258
|
-
*/
|
|
5259
|
-
to_raw_bytes(): Uint8Array;
|
|
5260
|
-
/**
|
|
5261
5421
|
* @param {string} prefix
|
|
5262
5422
|
* @returns {string}
|
|
5263
5423
|
*/
|
|
5264
5424
|
to_bech32(prefix: string): string;
|
|
5265
5425
|
/**
|
|
5266
|
-
* @returns {string}
|
|
5267
|
-
*/
|
|
5268
|
-
to_hex(): string;
|
|
5269
|
-
/**
|
|
5270
5426
|
* @param {string} bech32_str
|
|
5271
5427
|
* @returns {KESVkey}
|
|
5272
5428
|
*/
|
|
5273
5429
|
static from_bech32(bech32_str: string): KESVkey;
|
|
5274
5430
|
/**
|
|
5275
|
-
*
|
|
5276
|
-
*
|
|
5431
|
+
*
|
|
5432
|
+
* * Direct raw bytes without any CBOR structure
|
|
5433
|
+
*
|
|
5434
|
+
* @returns {Uint8Array}
|
|
5277
5435
|
*/
|
|
5278
|
-
|
|
5436
|
+
to_raw_bytes(): Uint8Array;
|
|
5279
5437
|
/**
|
|
5438
|
+
*
|
|
5439
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
5440
|
+
*
|
|
5280
5441
|
* @param {Uint8Array} bytes
|
|
5281
5442
|
* @returns {KESVkey}
|
|
5282
5443
|
*/
|
|
5283
5444
|
static from_raw_bytes(bytes: Uint8Array): KESVkey;
|
|
5445
|
+
/**
|
|
5446
|
+
*
|
|
5447
|
+
* * Direct raw bytes without any CBOR structure, as a hex-encoded string
|
|
5448
|
+
*
|
|
5449
|
+
* @returns {string}
|
|
5450
|
+
*/
|
|
5451
|
+
to_hex(): string;
|
|
5452
|
+
/**
|
|
5453
|
+
*
|
|
5454
|
+
* * Parse from a hex string of the direct raw bytes, without any CBOR structure
|
|
5455
|
+
*
|
|
5456
|
+
* @param {string} input
|
|
5457
|
+
* @returns {KESVkey}
|
|
5458
|
+
*/
|
|
5459
|
+
static from_hex(input: string): KESVkey;
|
|
5284
5460
|
}
|
|
5285
5461
|
/**
|
|
5286
5462
|
*/
|
|
@@ -6070,14 +6246,15 @@ export class MultiHostName {
|
|
|
6070
6246
|
*/
|
|
6071
6247
|
static from_json(json: string): MultiHostName;
|
|
6072
6248
|
/**
|
|
6073
|
-
* @returns {
|
|
6249
|
+
* @returns {DNSName}
|
|
6074
6250
|
*/
|
|
6075
|
-
dns_name():
|
|
6251
|
+
dns_name(): DNSName;
|
|
6076
6252
|
/**
|
|
6077
|
-
*
|
|
6253
|
+
* * `dns_name` - A SRV DNS record
|
|
6254
|
+
* @param {DNSName} dns_name
|
|
6078
6255
|
* @returns {MultiHostName}
|
|
6079
6256
|
*/
|
|
6080
|
-
static new(dns_name:
|
|
6257
|
+
static new(dns_name: DNSName): MultiHostName;
|
|
6081
6258
|
}
|
|
6082
6259
|
/**
|
|
6083
6260
|
*/
|
|
@@ -6171,11 +6348,13 @@ export class NativeScript {
|
|
|
6171
6348
|
*/
|
|
6172
6349
|
static new_script_n_of_k(n: bigint, native_scripts: NativeScriptList): NativeScript;
|
|
6173
6350
|
/**
|
|
6351
|
+
* Timelock validity intervals are half-open intervals [a, b). This field specifies the left (included) endpoint a.
|
|
6174
6352
|
* @param {bigint} before
|
|
6175
6353
|
* @returns {NativeScript}
|
|
6176
6354
|
*/
|
|
6177
6355
|
static new_script_invalid_before(before: bigint): NativeScript;
|
|
6178
6356
|
/**
|
|
6357
|
+
* Timelock validity intervals are half-open intervals [a, b). This field specifies the right (excluded) endpoint b.
|
|
6179
6358
|
* @param {bigint} after
|
|
6180
6359
|
* @returns {NativeScript}
|
|
6181
6360
|
*/
|
|
@@ -6567,33 +6746,45 @@ export class Nonce {
|
|
|
6567
6746
|
export class NonceHash {
|
|
6568
6747
|
free(): void;
|
|
6569
6748
|
/**
|
|
6570
|
-
* @returns {Uint8Array}
|
|
6571
|
-
*/
|
|
6572
|
-
to_raw_bytes(): Uint8Array;
|
|
6573
|
-
/**
|
|
6574
6749
|
* @param {string} prefix
|
|
6575
6750
|
* @returns {string}
|
|
6576
6751
|
*/
|
|
6577
6752
|
to_bech32(prefix: string): string;
|
|
6578
6753
|
/**
|
|
6579
|
-
* @returns {string}
|
|
6580
|
-
*/
|
|
6581
|
-
to_hex(): string;
|
|
6582
|
-
/**
|
|
6583
6754
|
* @param {string} bech32_str
|
|
6584
6755
|
* @returns {NonceHash}
|
|
6585
6756
|
*/
|
|
6586
6757
|
static from_bech32(bech32_str: string): NonceHash;
|
|
6587
6758
|
/**
|
|
6588
|
-
*
|
|
6589
|
-
*
|
|
6759
|
+
*
|
|
6760
|
+
* * Direct raw bytes without any CBOR structure
|
|
6761
|
+
*
|
|
6762
|
+
* @returns {Uint8Array}
|
|
6590
6763
|
*/
|
|
6591
|
-
|
|
6764
|
+
to_raw_bytes(): Uint8Array;
|
|
6592
6765
|
/**
|
|
6766
|
+
*
|
|
6767
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
6768
|
+
*
|
|
6593
6769
|
* @param {Uint8Array} bytes
|
|
6594
6770
|
* @returns {NonceHash}
|
|
6595
6771
|
*/
|
|
6596
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;
|
|
6597
6788
|
}
|
|
6598
6789
|
/**
|
|
6599
6790
|
*/
|
|
@@ -6727,22 +6918,22 @@ export class ParameterChangeAction {
|
|
|
6727
6918
|
/**
|
|
6728
6919
|
* @returns {GovActionId | undefined}
|
|
6729
6920
|
*/
|
|
6730
|
-
|
|
6921
|
+
action_id(): GovActionId | undefined;
|
|
6731
6922
|
/**
|
|
6732
6923
|
* @returns {ProtocolParamUpdate}
|
|
6733
6924
|
*/
|
|
6734
|
-
|
|
6925
|
+
update(): ProtocolParamUpdate;
|
|
6735
6926
|
/**
|
|
6736
6927
|
* @returns {ScriptHash | undefined}
|
|
6737
6928
|
*/
|
|
6738
6929
|
policy_hash(): ScriptHash | undefined;
|
|
6739
6930
|
/**
|
|
6740
|
-
* @param {GovActionId | undefined}
|
|
6741
|
-
* @param {ProtocolParamUpdate}
|
|
6931
|
+
* @param {GovActionId | undefined} action_id
|
|
6932
|
+
* @param {ProtocolParamUpdate} update
|
|
6742
6933
|
* @param {ScriptHash | undefined} [policy_hash]
|
|
6743
6934
|
* @returns {ParameterChangeAction}
|
|
6744
6935
|
*/
|
|
6745
|
-
static new(
|
|
6936
|
+
static new(action_id: GovActionId | undefined, update: ProtocolParamUpdate, policy_hash?: ScriptHash): ParameterChangeAction;
|
|
6746
6937
|
}
|
|
6747
6938
|
/**
|
|
6748
6939
|
* A partial Plutus witness
|
|
@@ -7037,6 +7228,36 @@ export class PlutusV1Script {
|
|
|
7037
7228
|
hash(): ScriptHash;
|
|
7038
7229
|
/**
|
|
7039
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
|
+
/**
|
|
7260
|
+
*
|
|
7040
7261
|
* * Serialize this type to CBOR bytes
|
|
7041
7262
|
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
7042
7263
|
* * If created from scratch the CBOR will be canonical.
|
|
@@ -7083,10 +7304,6 @@ export class PlutusV1Script {
|
|
|
7083
7304
|
* @returns {PlutusV1Script}
|
|
7084
7305
|
*/
|
|
7085
7306
|
static from_json(json: string): PlutusV1Script;
|
|
7086
|
-
/**
|
|
7087
|
-
* @returns {Uint8Array}
|
|
7088
|
-
*/
|
|
7089
|
-
get(): Uint8Array;
|
|
7090
7307
|
}
|
|
7091
7308
|
/**
|
|
7092
7309
|
*/
|
|
@@ -7120,6 +7337,36 @@ export class PlutusV2Script {
|
|
|
7120
7337
|
hash(): ScriptHash;
|
|
7121
7338
|
/**
|
|
7122
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
|
+
/**
|
|
7369
|
+
*
|
|
7123
7370
|
* * Serialize this type to CBOR bytes
|
|
7124
7371
|
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
7125
7372
|
* * If created from scratch the CBOR will be canonical.
|
|
@@ -7166,10 +7413,6 @@ export class PlutusV2Script {
|
|
|
7166
7413
|
* @returns {PlutusV2Script}
|
|
7167
7414
|
*/
|
|
7168
7415
|
static from_json(json: string): PlutusV2Script;
|
|
7169
|
-
/**
|
|
7170
|
-
* @returns {Uint8Array}
|
|
7171
|
-
*/
|
|
7172
|
-
get(): Uint8Array;
|
|
7173
7416
|
}
|
|
7174
7417
|
/**
|
|
7175
7418
|
*/
|
|
@@ -7198,6 +7441,40 @@ export class PlutusV2ScriptList {
|
|
|
7198
7441
|
export class PlutusV3Script {
|
|
7199
7442
|
free(): void;
|
|
7200
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
|
+
/**
|
|
7201
7478
|
*
|
|
7202
7479
|
* * Serialize this type to CBOR bytes
|
|
7203
7480
|
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
@@ -7245,10 +7522,6 @@ export class PlutusV3Script {
|
|
|
7245
7522
|
* @returns {PlutusV3Script}
|
|
7246
7523
|
*/
|
|
7247
7524
|
static from_json(json: string): PlutusV3Script;
|
|
7248
|
-
/**
|
|
7249
|
-
* @returns {Uint8Array}
|
|
7250
|
-
*/
|
|
7251
|
-
get(): Uint8Array;
|
|
7252
7525
|
}
|
|
7253
7526
|
/**
|
|
7254
7527
|
*/
|
|
@@ -7404,33 +7677,45 @@ export class PoolMetadata {
|
|
|
7404
7677
|
export class PoolMetadataHash {
|
|
7405
7678
|
free(): void;
|
|
7406
7679
|
/**
|
|
7407
|
-
* @returns {Uint8Array}
|
|
7408
|
-
*/
|
|
7409
|
-
to_raw_bytes(): Uint8Array;
|
|
7410
|
-
/**
|
|
7411
7680
|
* @param {string} prefix
|
|
7412
7681
|
* @returns {string}
|
|
7413
7682
|
*/
|
|
7414
7683
|
to_bech32(prefix: string): string;
|
|
7415
7684
|
/**
|
|
7416
|
-
* @returns {string}
|
|
7417
|
-
*/
|
|
7418
|
-
to_hex(): string;
|
|
7419
|
-
/**
|
|
7420
7685
|
* @param {string} bech32_str
|
|
7421
7686
|
* @returns {PoolMetadataHash}
|
|
7422
7687
|
*/
|
|
7423
7688
|
static from_bech32(bech32_str: string): PoolMetadataHash;
|
|
7424
7689
|
/**
|
|
7425
|
-
*
|
|
7426
|
-
*
|
|
7690
|
+
*
|
|
7691
|
+
* * Direct raw bytes without any CBOR structure
|
|
7692
|
+
*
|
|
7693
|
+
* @returns {Uint8Array}
|
|
7427
7694
|
*/
|
|
7428
|
-
|
|
7695
|
+
to_raw_bytes(): Uint8Array;
|
|
7429
7696
|
/**
|
|
7697
|
+
*
|
|
7698
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
7699
|
+
*
|
|
7430
7700
|
* @param {Uint8Array} bytes
|
|
7431
7701
|
* @returns {PoolMetadataHash}
|
|
7432
7702
|
*/
|
|
7433
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;
|
|
7434
7719
|
}
|
|
7435
7720
|
/**
|
|
7436
7721
|
*/
|
|
@@ -7800,6 +8085,51 @@ export class PrivateKey {
|
|
|
7800
8085
|
}
|
|
7801
8086
|
/**
|
|
7802
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
|
+
*/
|
|
7803
8133
|
export class ProposalProcedure {
|
|
7804
8134
|
free(): void;
|
|
7805
8135
|
/**
|
|
@@ -8501,11 +8831,19 @@ export class RedeemerSetBuilder {
|
|
|
8501
8831
|
/**
|
|
8502
8832
|
* @param {WithdrawalBuilderResult} result
|
|
8503
8833
|
*/
|
|
8504
|
-
add_reward(result: WithdrawalBuilderResult): void;
|
|
8834
|
+
add_reward(result: WithdrawalBuilderResult): void;
|
|
8835
|
+
/**
|
|
8836
|
+
* @param {CertificateBuilderResult} result
|
|
8837
|
+
*/
|
|
8838
|
+
add_cert(result: CertificateBuilderResult): void;
|
|
8839
|
+
/**
|
|
8840
|
+
* @param {ProposalBuilderResult} result
|
|
8841
|
+
*/
|
|
8842
|
+
add_proposal(result: ProposalBuilderResult): void;
|
|
8505
8843
|
/**
|
|
8506
|
-
* @param {
|
|
8844
|
+
* @param {VoteBuilderResult} result
|
|
8507
8845
|
*/
|
|
8508
|
-
|
|
8846
|
+
add_vote(result: VoteBuilderResult): void;
|
|
8509
8847
|
/**
|
|
8510
8848
|
* @param {boolean} default_to_dummy_exunits
|
|
8511
8849
|
* @returns {Redeemers}
|
|
@@ -8733,13 +9071,13 @@ export class RegCert {
|
|
|
8733
9071
|
/**
|
|
8734
9072
|
* @returns {bigint}
|
|
8735
9073
|
*/
|
|
8736
|
-
|
|
9074
|
+
deposit(): bigint;
|
|
8737
9075
|
/**
|
|
8738
9076
|
* @param {Credential} stake_credential
|
|
8739
|
-
* @param {bigint}
|
|
9077
|
+
* @param {bigint} deposit
|
|
8740
9078
|
* @returns {RegCert}
|
|
8741
9079
|
*/
|
|
8742
|
-
static new(stake_credential: Credential,
|
|
9080
|
+
static new(stake_credential: Credential, deposit: bigint): RegCert;
|
|
8743
9081
|
}
|
|
8744
9082
|
/**
|
|
8745
9083
|
*/
|
|
@@ -8800,18 +9138,18 @@ export class RegDrepCert {
|
|
|
8800
9138
|
/**
|
|
8801
9139
|
* @returns {bigint}
|
|
8802
9140
|
*/
|
|
8803
|
-
|
|
9141
|
+
deposit(): bigint;
|
|
8804
9142
|
/**
|
|
8805
9143
|
* @returns {Anchor | undefined}
|
|
8806
9144
|
*/
|
|
8807
9145
|
anchor(): Anchor | undefined;
|
|
8808
9146
|
/**
|
|
8809
9147
|
* @param {Credential} drep_credential
|
|
8810
|
-
* @param {bigint}
|
|
9148
|
+
* @param {bigint} deposit
|
|
8811
9149
|
* @param {Anchor | undefined} [anchor]
|
|
8812
9150
|
* @returns {RegDrepCert}
|
|
8813
9151
|
*/
|
|
8814
|
-
static new(drep_credential: Credential,
|
|
9152
|
+
static new(drep_credential: Credential, deposit: bigint, anchor?: Anchor): RegDrepCert;
|
|
8815
9153
|
}
|
|
8816
9154
|
/**
|
|
8817
9155
|
*/
|
|
@@ -8874,15 +9212,15 @@ export class Relay {
|
|
|
8874
9212
|
static new_single_host_addr(port?: number, ipv4?: Ipv4, ipv6?: Ipv6): Relay;
|
|
8875
9213
|
/**
|
|
8876
9214
|
* @param {number | undefined} port
|
|
8877
|
-
* @param {
|
|
9215
|
+
* @param {DNSName} dns_name
|
|
8878
9216
|
* @returns {Relay}
|
|
8879
9217
|
*/
|
|
8880
|
-
static new_single_host_name(port: number | undefined, dns_name:
|
|
9218
|
+
static new_single_host_name(port: number | undefined, dns_name: DNSName): Relay;
|
|
8881
9219
|
/**
|
|
8882
|
-
* @param {
|
|
9220
|
+
* @param {DNSName} dns_name
|
|
8883
9221
|
* @returns {Relay}
|
|
8884
9222
|
*/
|
|
8885
|
-
static new_multi_host_name(dns_name:
|
|
9223
|
+
static new_multi_host_name(dns_name: DNSName): Relay;
|
|
8886
9224
|
/**
|
|
8887
9225
|
* @returns {RelayKind}
|
|
8888
9226
|
*/
|
|
@@ -9323,66 +9661,90 @@ export class ScriptAny {
|
|
|
9323
9661
|
export class ScriptDataHash {
|
|
9324
9662
|
free(): void;
|
|
9325
9663
|
/**
|
|
9326
|
-
* @returns {Uint8Array}
|
|
9327
|
-
*/
|
|
9328
|
-
to_raw_bytes(): Uint8Array;
|
|
9329
|
-
/**
|
|
9330
9664
|
* @param {string} prefix
|
|
9331
9665
|
* @returns {string}
|
|
9332
9666
|
*/
|
|
9333
9667
|
to_bech32(prefix: string): string;
|
|
9334
9668
|
/**
|
|
9335
|
-
* @returns {string}
|
|
9336
|
-
*/
|
|
9337
|
-
to_hex(): string;
|
|
9338
|
-
/**
|
|
9339
9669
|
* @param {string} bech32_str
|
|
9340
9670
|
* @returns {ScriptDataHash}
|
|
9341
9671
|
*/
|
|
9342
9672
|
static from_bech32(bech32_str: string): ScriptDataHash;
|
|
9343
9673
|
/**
|
|
9344
|
-
*
|
|
9345
|
-
*
|
|
9674
|
+
*
|
|
9675
|
+
* * Direct raw bytes without any CBOR structure
|
|
9676
|
+
*
|
|
9677
|
+
* @returns {Uint8Array}
|
|
9346
9678
|
*/
|
|
9347
|
-
|
|
9679
|
+
to_raw_bytes(): Uint8Array;
|
|
9348
9680
|
/**
|
|
9681
|
+
*
|
|
9682
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
9683
|
+
*
|
|
9349
9684
|
* @param {Uint8Array} bytes
|
|
9350
9685
|
* @returns {ScriptDataHash}
|
|
9351
9686
|
*/
|
|
9352
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;
|
|
9353
9703
|
}
|
|
9354
9704
|
/**
|
|
9355
9705
|
*/
|
|
9356
9706
|
export class ScriptHash {
|
|
9357
9707
|
free(): void;
|
|
9358
9708
|
/**
|
|
9359
|
-
* @returns {Uint8Array}
|
|
9360
|
-
*/
|
|
9361
|
-
to_raw_bytes(): Uint8Array;
|
|
9362
|
-
/**
|
|
9363
9709
|
* @param {string} prefix
|
|
9364
9710
|
* @returns {string}
|
|
9365
9711
|
*/
|
|
9366
9712
|
to_bech32(prefix: string): string;
|
|
9367
9713
|
/**
|
|
9368
|
-
* @returns {string}
|
|
9369
|
-
*/
|
|
9370
|
-
to_hex(): string;
|
|
9371
|
-
/**
|
|
9372
9714
|
* @param {string} bech32_str
|
|
9373
9715
|
* @returns {ScriptHash}
|
|
9374
9716
|
*/
|
|
9375
9717
|
static from_bech32(bech32_str: string): ScriptHash;
|
|
9376
9718
|
/**
|
|
9377
|
-
*
|
|
9378
|
-
*
|
|
9719
|
+
*
|
|
9720
|
+
* * Direct raw bytes without any CBOR structure
|
|
9721
|
+
*
|
|
9722
|
+
* @returns {Uint8Array}
|
|
9379
9723
|
*/
|
|
9380
|
-
|
|
9724
|
+
to_raw_bytes(): Uint8Array;
|
|
9381
9725
|
/**
|
|
9726
|
+
*
|
|
9727
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
9728
|
+
*
|
|
9382
9729
|
* @param {Uint8Array} bytes
|
|
9383
9730
|
* @returns {ScriptHash}
|
|
9384
9731
|
*/
|
|
9385
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;
|
|
9386
9748
|
}
|
|
9387
9749
|
/**
|
|
9388
9750
|
*/
|
|
@@ -9639,7 +10001,7 @@ export class ScriptPubkey {
|
|
|
9639
10001
|
}
|
|
9640
10002
|
/**
|
|
9641
10003
|
*/
|
|
9642
|
-
export class
|
|
10004
|
+
export class ShelleyMAFormatAuxData {
|
|
9643
10005
|
free(): void;
|
|
9644
10006
|
/**
|
|
9645
10007
|
*
|
|
@@ -9655,9 +10017,9 @@ export class ShelleyMaFormatAuxData {
|
|
|
9655
10017
|
* * Create this type from CBOR bytes
|
|
9656
10018
|
*
|
|
9657
10019
|
* @param {Uint8Array} cbor_bytes
|
|
9658
|
-
* @returns {
|
|
10020
|
+
* @returns {ShelleyMAFormatAuxData}
|
|
9659
10021
|
*/
|
|
9660
|
-
static from_cbor_bytes(cbor_bytes: Uint8Array):
|
|
10022
|
+
static from_cbor_bytes(cbor_bytes: Uint8Array): ShelleyMAFormatAuxData;
|
|
9661
10023
|
/**
|
|
9662
10024
|
*
|
|
9663
10025
|
* * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
|
|
@@ -9673,9 +10035,9 @@ export class ShelleyMaFormatAuxData {
|
|
|
9673
10035
|
* * This is useful for interfacing with CIP30
|
|
9674
10036
|
*
|
|
9675
10037
|
* @param {string} cbor_bytes
|
|
9676
|
-
* @returns {
|
|
10038
|
+
* @returns {ShelleyMAFormatAuxData}
|
|
9677
10039
|
*/
|
|
9678
|
-
static from_cbor_hex(cbor_bytes: string):
|
|
10040
|
+
static from_cbor_hex(cbor_bytes: string): ShelleyMAFormatAuxData;
|
|
9679
10041
|
/**
|
|
9680
10042
|
* @returns {string}
|
|
9681
10043
|
*/
|
|
@@ -9686,9 +10048,9 @@ export class ShelleyMaFormatAuxData {
|
|
|
9686
10048
|
to_js_value(): any;
|
|
9687
10049
|
/**
|
|
9688
10050
|
* @param {string} json
|
|
9689
|
-
* @returns {
|
|
10051
|
+
* @returns {ShelleyMAFormatAuxData}
|
|
9690
10052
|
*/
|
|
9691
|
-
static from_json(json: string):
|
|
10053
|
+
static from_json(json: string): ShelleyMAFormatAuxData;
|
|
9692
10054
|
/**
|
|
9693
10055
|
* @returns {Metadata}
|
|
9694
10056
|
*/
|
|
@@ -9700,9 +10062,9 @@ export class ShelleyMaFormatAuxData {
|
|
|
9700
10062
|
/**
|
|
9701
10063
|
* @param {Metadata} transaction_metadata
|
|
9702
10064
|
* @param {NativeScriptList} auxiliary_scripts
|
|
9703
|
-
* @returns {
|
|
10065
|
+
* @returns {ShelleyMAFormatAuxData}
|
|
9704
10066
|
*/
|
|
9705
|
-
static new(transaction_metadata: Metadata, auxiliary_scripts: NativeScriptList):
|
|
10067
|
+
static new(transaction_metadata: Metadata, auxiliary_scripts: NativeScriptList): ShelleyMAFormatAuxData;
|
|
9706
10068
|
}
|
|
9707
10069
|
/**
|
|
9708
10070
|
*/
|
|
@@ -9927,15 +10289,16 @@ export class SingleHostName {
|
|
|
9927
10289
|
*/
|
|
9928
10290
|
port(): number | undefined;
|
|
9929
10291
|
/**
|
|
9930
|
-
* @returns {
|
|
10292
|
+
* @returns {DNSName}
|
|
9931
10293
|
*/
|
|
9932
|
-
dns_name():
|
|
10294
|
+
dns_name(): DNSName;
|
|
9933
10295
|
/**
|
|
10296
|
+
* * `dns_name` - An A or AAAA DNS record
|
|
9934
10297
|
* @param {number | undefined} port
|
|
9935
|
-
* @param {
|
|
10298
|
+
* @param {DNSName} dns_name
|
|
9936
10299
|
* @returns {SingleHostName}
|
|
9937
10300
|
*/
|
|
9938
|
-
static new(port: number | undefined, dns_name:
|
|
10301
|
+
static new(port: number | undefined, dns_name: DNSName): SingleHostName;
|
|
9939
10302
|
}
|
|
9940
10303
|
/**
|
|
9941
10304
|
*/
|
|
@@ -10391,14 +10754,14 @@ export class StakeRegDelegCert {
|
|
|
10391
10754
|
/**
|
|
10392
10755
|
* @returns {bigint}
|
|
10393
10756
|
*/
|
|
10394
|
-
|
|
10757
|
+
deposit(): bigint;
|
|
10395
10758
|
/**
|
|
10396
10759
|
* @param {Credential} stake_credential
|
|
10397
10760
|
* @param {Ed25519KeyHash} pool
|
|
10398
|
-
* @param {bigint}
|
|
10761
|
+
* @param {bigint} deposit
|
|
10399
10762
|
* @returns {StakeRegDelegCert}
|
|
10400
10763
|
*/
|
|
10401
|
-
static new(stake_credential: Credential, pool: Ed25519KeyHash,
|
|
10764
|
+
static new(stake_credential: Credential, pool: Ed25519KeyHash, deposit: bigint): StakeRegDelegCert;
|
|
10402
10765
|
}
|
|
10403
10766
|
/**
|
|
10404
10767
|
*/
|
|
@@ -10601,49 +10964,61 @@ export class StakeVoteRegDelegCert {
|
|
|
10601
10964
|
/**
|
|
10602
10965
|
* @returns {bigint}
|
|
10603
10966
|
*/
|
|
10604
|
-
|
|
10967
|
+
deposit(): bigint;
|
|
10605
10968
|
/**
|
|
10606
10969
|
* @param {Credential} stake_credential
|
|
10607
10970
|
* @param {Ed25519KeyHash} pool
|
|
10608
10971
|
* @param {DRep} d_rep
|
|
10609
|
-
* @param {bigint}
|
|
10972
|
+
* @param {bigint} deposit
|
|
10610
10973
|
* @returns {StakeVoteRegDelegCert}
|
|
10611
10974
|
*/
|
|
10612
|
-
static new(stake_credential: Credential, pool: Ed25519KeyHash, d_rep: DRep,
|
|
10975
|
+
static new(stake_credential: Credential, pool: Ed25519KeyHash, d_rep: DRep, deposit: bigint): StakeVoteRegDelegCert;
|
|
10613
10976
|
}
|
|
10614
10977
|
/**
|
|
10615
10978
|
*/
|
|
10616
10979
|
export class StakeholderId {
|
|
10617
10980
|
free(): void;
|
|
10618
10981
|
/**
|
|
10619
|
-
* @returns {Uint8Array}
|
|
10620
|
-
*/
|
|
10621
|
-
to_raw_bytes(): Uint8Array;
|
|
10622
|
-
/**
|
|
10623
10982
|
* @param {string} prefix
|
|
10624
10983
|
* @returns {string}
|
|
10625
10984
|
*/
|
|
10626
10985
|
to_bech32(prefix: string): string;
|
|
10627
10986
|
/**
|
|
10628
|
-
* @returns {string}
|
|
10629
|
-
*/
|
|
10630
|
-
to_hex(): string;
|
|
10631
|
-
/**
|
|
10632
10987
|
* @param {string} bech32_str
|
|
10633
10988
|
* @returns {StakeholderId}
|
|
10634
10989
|
*/
|
|
10635
10990
|
static from_bech32(bech32_str: string): StakeholderId;
|
|
10636
10991
|
/**
|
|
10637
|
-
*
|
|
10638
|
-
*
|
|
10992
|
+
*
|
|
10993
|
+
* * Direct raw bytes without any CBOR structure
|
|
10994
|
+
*
|
|
10995
|
+
* @returns {Uint8Array}
|
|
10639
10996
|
*/
|
|
10640
|
-
|
|
10997
|
+
to_raw_bytes(): Uint8Array;
|
|
10641
10998
|
/**
|
|
10999
|
+
*
|
|
11000
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
11001
|
+
*
|
|
10642
11002
|
* @param {Uint8Array} bytes
|
|
10643
11003
|
* @returns {StakeholderId}
|
|
10644
11004
|
*/
|
|
10645
11005
|
static from_raw_bytes(bytes: Uint8Array): StakeholderId;
|
|
10646
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
|
+
/**
|
|
10647
11022
|
* @param {Bip32PublicKey} pubk
|
|
10648
11023
|
* @returns {StakeholderId}
|
|
10649
11024
|
*/
|
|
@@ -11017,6 +11392,14 @@ export class TransactionBuilder {
|
|
|
11017
11392
|
*/
|
|
11018
11393
|
add_cert(result: CertificateBuilderResult): void;
|
|
11019
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
|
+
/**
|
|
11020
11403
|
* @returns {MapRewardAccountToCoin | undefined}
|
|
11021
11404
|
*/
|
|
11022
11405
|
get_withdrawals(): MapRewardAccountToCoin | undefined;
|
|
@@ -11231,33 +11614,45 @@ export class TransactionBuilderConfigBuilder {
|
|
|
11231
11614
|
export class TransactionHash {
|
|
11232
11615
|
free(): void;
|
|
11233
11616
|
/**
|
|
11234
|
-
* @returns {Uint8Array}
|
|
11235
|
-
*/
|
|
11236
|
-
to_raw_bytes(): Uint8Array;
|
|
11237
|
-
/**
|
|
11238
11617
|
* @param {string} prefix
|
|
11239
11618
|
* @returns {string}
|
|
11240
11619
|
*/
|
|
11241
11620
|
to_bech32(prefix: string): string;
|
|
11242
11621
|
/**
|
|
11243
|
-
* @returns {string}
|
|
11244
|
-
*/
|
|
11245
|
-
to_hex(): string;
|
|
11246
|
-
/**
|
|
11247
11622
|
* @param {string} bech32_str
|
|
11248
11623
|
* @returns {TransactionHash}
|
|
11249
11624
|
*/
|
|
11250
11625
|
static from_bech32(bech32_str: string): TransactionHash;
|
|
11251
11626
|
/**
|
|
11252
|
-
*
|
|
11253
|
-
*
|
|
11627
|
+
*
|
|
11628
|
+
* * Direct raw bytes without any CBOR structure
|
|
11629
|
+
*
|
|
11630
|
+
* @returns {Uint8Array}
|
|
11254
11631
|
*/
|
|
11255
|
-
|
|
11632
|
+
to_raw_bytes(): Uint8Array;
|
|
11256
11633
|
/**
|
|
11634
|
+
*
|
|
11635
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
11636
|
+
*
|
|
11257
11637
|
* @param {Uint8Array} bytes
|
|
11258
11638
|
* @returns {TransactionHash}
|
|
11259
11639
|
*/
|
|
11260
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;
|
|
11261
11656
|
}
|
|
11262
11657
|
/**
|
|
11263
11658
|
*/
|
|
@@ -11705,6 +12100,14 @@ export class TransactionUnspentOutput {
|
|
|
11705
12100
|
* @returns {TransactionUnspentOutput}
|
|
11706
12101
|
*/
|
|
11707
12102
|
static new(input: TransactionInput, output: TransactionOutput): TransactionUnspentOutput;
|
|
12103
|
+
/**
|
|
12104
|
+
* @returns {TransactionInput}
|
|
12105
|
+
*/
|
|
12106
|
+
input(): TransactionInput;
|
|
12107
|
+
/**
|
|
12108
|
+
* @returns {TransactionOutput}
|
|
12109
|
+
*/
|
|
12110
|
+
output(): TransactionOutput;
|
|
11708
12111
|
}
|
|
11709
12112
|
/**
|
|
11710
12113
|
*/
|
|
@@ -12159,13 +12562,13 @@ export class UnregCert {
|
|
|
12159
12562
|
/**
|
|
12160
12563
|
* @returns {bigint}
|
|
12161
12564
|
*/
|
|
12162
|
-
|
|
12565
|
+
deposit(): bigint;
|
|
12163
12566
|
/**
|
|
12164
12567
|
* @param {Credential} stake_credential
|
|
12165
|
-
* @param {bigint}
|
|
12568
|
+
* @param {bigint} deposit
|
|
12166
12569
|
* @returns {UnregCert}
|
|
12167
12570
|
*/
|
|
12168
|
-
static new(stake_credential: Credential,
|
|
12571
|
+
static new(stake_credential: Credential, deposit: bigint): UnregCert;
|
|
12169
12572
|
}
|
|
12170
12573
|
/**
|
|
12171
12574
|
*/
|
|
@@ -12226,13 +12629,13 @@ export class UnregDrepCert {
|
|
|
12226
12629
|
/**
|
|
12227
12630
|
* @returns {bigint}
|
|
12228
12631
|
*/
|
|
12229
|
-
|
|
12632
|
+
deposit(): bigint;
|
|
12230
12633
|
/**
|
|
12231
12634
|
* @param {Credential} drep_credential
|
|
12232
|
-
* @param {bigint}
|
|
12635
|
+
* @param {bigint} deposit
|
|
12233
12636
|
* @returns {UnregDrepCert}
|
|
12234
12637
|
*/
|
|
12235
|
-
static new(drep_credential: Credential,
|
|
12638
|
+
static new(drep_credential: Credential, deposit: bigint): UnregDrepCert;
|
|
12236
12639
|
}
|
|
12237
12640
|
/**
|
|
12238
12641
|
* Redeemer without the tag of index
|
|
@@ -12521,66 +12924,90 @@ export class VRFCert {
|
|
|
12521
12924
|
export class VRFKeyHash {
|
|
12522
12925
|
free(): void;
|
|
12523
12926
|
/**
|
|
12524
|
-
* @returns {Uint8Array}
|
|
12525
|
-
*/
|
|
12526
|
-
to_raw_bytes(): Uint8Array;
|
|
12527
|
-
/**
|
|
12528
12927
|
* @param {string} prefix
|
|
12529
12928
|
* @returns {string}
|
|
12530
12929
|
*/
|
|
12531
12930
|
to_bech32(prefix: string): string;
|
|
12532
12931
|
/**
|
|
12533
|
-
* @returns {string}
|
|
12534
|
-
*/
|
|
12535
|
-
to_hex(): string;
|
|
12536
|
-
/**
|
|
12537
12932
|
* @param {string} bech32_str
|
|
12538
12933
|
* @returns {VRFKeyHash}
|
|
12539
12934
|
*/
|
|
12540
12935
|
static from_bech32(bech32_str: string): VRFKeyHash;
|
|
12541
12936
|
/**
|
|
12542
|
-
*
|
|
12543
|
-
*
|
|
12937
|
+
*
|
|
12938
|
+
* * Direct raw bytes without any CBOR structure
|
|
12939
|
+
*
|
|
12940
|
+
* @returns {Uint8Array}
|
|
12544
12941
|
*/
|
|
12545
|
-
|
|
12942
|
+
to_raw_bytes(): Uint8Array;
|
|
12546
12943
|
/**
|
|
12944
|
+
*
|
|
12945
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
12946
|
+
*
|
|
12547
12947
|
* @param {Uint8Array} bytes
|
|
12548
12948
|
* @returns {VRFKeyHash}
|
|
12549
12949
|
*/
|
|
12550
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;
|
|
12551
12966
|
}
|
|
12552
12967
|
/**
|
|
12553
12968
|
*/
|
|
12554
12969
|
export class VRFVkey {
|
|
12555
12970
|
free(): void;
|
|
12556
12971
|
/**
|
|
12557
|
-
* @returns {Uint8Array}
|
|
12558
|
-
*/
|
|
12559
|
-
to_raw_bytes(): Uint8Array;
|
|
12560
|
-
/**
|
|
12561
12972
|
* @param {string} prefix
|
|
12562
12973
|
* @returns {string}
|
|
12563
12974
|
*/
|
|
12564
12975
|
to_bech32(prefix: string): string;
|
|
12565
12976
|
/**
|
|
12566
|
-
* @returns {string}
|
|
12567
|
-
*/
|
|
12568
|
-
to_hex(): string;
|
|
12569
|
-
/**
|
|
12570
12977
|
* @param {string} bech32_str
|
|
12571
12978
|
* @returns {VRFVkey}
|
|
12572
12979
|
*/
|
|
12573
12980
|
static from_bech32(bech32_str: string): VRFVkey;
|
|
12574
12981
|
/**
|
|
12575
|
-
*
|
|
12576
|
-
*
|
|
12982
|
+
*
|
|
12983
|
+
* * Direct raw bytes without any CBOR structure
|
|
12984
|
+
*
|
|
12985
|
+
* @returns {Uint8Array}
|
|
12577
12986
|
*/
|
|
12578
|
-
|
|
12987
|
+
to_raw_bytes(): Uint8Array;
|
|
12579
12988
|
/**
|
|
12989
|
+
*
|
|
12990
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
12991
|
+
*
|
|
12580
12992
|
* @param {Uint8Array} bytes
|
|
12581
12993
|
* @returns {VRFVkey}
|
|
12582
12994
|
*/
|
|
12583
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;
|
|
12584
13011
|
}
|
|
12585
13012
|
/**
|
|
12586
13013
|
*/
|
|
@@ -12776,6 +13203,59 @@ export class VkeywitnessList {
|
|
|
12776
13203
|
}
|
|
12777
13204
|
/**
|
|
12778
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
|
+
*/
|
|
12779
13259
|
export class VoteDelegCert {
|
|
12780
13260
|
free(): void;
|
|
12781
13261
|
/**
|
|
@@ -12904,20 +13384,28 @@ export class VoteRegDelegCert {
|
|
|
12904
13384
|
/**
|
|
12905
13385
|
* @returns {bigint}
|
|
12906
13386
|
*/
|
|
12907
|
-
|
|
13387
|
+
deposit(): bigint;
|
|
12908
13388
|
/**
|
|
12909
13389
|
* @param {Credential} stake_credential
|
|
12910
13390
|
* @param {DRep} d_rep
|
|
12911
|
-
* @param {bigint}
|
|
13391
|
+
* @param {bigint} deposit
|
|
12912
13392
|
* @returns {VoteRegDelegCert}
|
|
12913
13393
|
*/
|
|
12914
|
-
static new(stake_credential: Credential, d_rep: DRep,
|
|
13394
|
+
static new(stake_credential: Credential, d_rep: DRep, deposit: bigint): VoteRegDelegCert;
|
|
12915
13395
|
}
|
|
12916
13396
|
/**
|
|
12917
13397
|
*/
|
|
12918
13398
|
export class Voter {
|
|
12919
13399
|
free(): void;
|
|
12920
13400
|
/**
|
|
13401
|
+
* @returns {Ed25519KeyHash | undefined}
|
|
13402
|
+
*/
|
|
13403
|
+
key_hash(): Ed25519KeyHash | undefined;
|
|
13404
|
+
/**
|
|
13405
|
+
* @returns {ScriptHash | undefined}
|
|
13406
|
+
*/
|
|
13407
|
+
script_hash(): ScriptHash | undefined;
|
|
13408
|
+
/**
|
|
12921
13409
|
*
|
|
12922
13410
|
* * Serialize this type to CBOR bytes
|
|
12923
13411
|
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|