@anastasia-labs/cardano-multiplatform-lib-nodejs 6.0.0-4 → 6.0.0-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -189,98 +189,23 @@ export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNod
|
|
|
189
189
|
export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
|
|
190
190
|
/**
|
|
191
191
|
*/
|
|
192
|
-
export enum TransactionMetadatumKind {
|
|
193
|
-
Map = 0,
|
|
194
|
-
List = 1,
|
|
195
|
-
Int = 2,
|
|
196
|
-
Bytes = 3,
|
|
197
|
-
Text = 4,
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
*/
|
|
201
|
-
export enum CertificateKind {
|
|
202
|
-
StakeRegistration = 0,
|
|
203
|
-
StakeDeregistration = 1,
|
|
204
|
-
StakeDelegation = 2,
|
|
205
|
-
PoolRegistration = 3,
|
|
206
|
-
PoolRetirement = 4,
|
|
207
|
-
RegCert = 5,
|
|
208
|
-
UnregCert = 6,
|
|
209
|
-
VoteDelegCert = 7,
|
|
210
|
-
StakeVoteDelegCert = 8,
|
|
211
|
-
StakeRegDelegCert = 9,
|
|
212
|
-
VoteRegDelegCert = 10,
|
|
213
|
-
StakeVoteRegDelegCert = 11,
|
|
214
|
-
AuthCommitteeHotCert = 12,
|
|
215
|
-
ResignCommitteeColdCert = 13,
|
|
216
|
-
RegDrepCert = 14,
|
|
217
|
-
UnregDrepCert = 15,
|
|
218
|
-
UpdateDrepCert = 16,
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
*/
|
|
222
|
-
export enum NonceKind {
|
|
223
|
-
Identity = 0,
|
|
224
|
-
Hash = 1,
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
*/
|
|
228
|
-
export enum Vote {
|
|
229
|
-
No = 0,
|
|
230
|
-
Yes = 1,
|
|
231
|
-
Abstain = 2,
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
*/
|
|
235
|
-
export enum Language {
|
|
236
|
-
PlutusV1 = 0,
|
|
237
|
-
PlutusV2 = 1,
|
|
238
|
-
PlutusV3 = 2,
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
*/
|
|
242
|
-
export enum DatumOptionKind {
|
|
243
|
-
Hash = 0,
|
|
244
|
-
Datum = 1,
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
*/
|
|
248
192
|
export enum ChangeSelectionAlgo {
|
|
249
193
|
Default = 0,
|
|
250
194
|
}
|
|
251
195
|
/**
|
|
252
196
|
*/
|
|
253
|
-
export enum
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
Cert = 2,
|
|
257
|
-
Reward = 3,
|
|
258
|
-
Voting = 4,
|
|
259
|
-
Proposing = 5,
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
*/
|
|
263
|
-
export enum DRepKind {
|
|
264
|
-
Key = 0,
|
|
265
|
-
Script = 1,
|
|
266
|
-
AlwaysAbstain = 2,
|
|
267
|
-
AlwaysNoConfidence = 3,
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
*/
|
|
271
|
-
export enum RelayKind {
|
|
272
|
-
SingleHostAddr = 0,
|
|
273
|
-
SingleHostName = 1,
|
|
274
|
-
MultiHostName = 2,
|
|
197
|
+
export enum TransactionOutputKind {
|
|
198
|
+
AlonzoFormatTxOut = 0,
|
|
199
|
+
ConwayFormatTxOut = 1,
|
|
275
200
|
}
|
|
276
201
|
/**
|
|
277
202
|
*/
|
|
278
|
-
export enum
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
203
|
+
export enum AddressKind {
|
|
204
|
+
Base = 0,
|
|
205
|
+
Ptr = 1,
|
|
206
|
+
Enterprise = 2,
|
|
207
|
+
Reward = 3,
|
|
208
|
+
Byron = 4,
|
|
284
209
|
}
|
|
285
210
|
/**
|
|
286
211
|
* Careful: this enum doesn't include the network ID part of the header
|
|
@@ -302,71 +227,56 @@ export enum AddressHeaderKind {
|
|
|
302
227
|
}
|
|
303
228
|
/**
|
|
304
229
|
*/
|
|
305
|
-
export enum
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
SingleKey = 0,
|
|
313
|
-
BootstrapEra = 1,
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
*/
|
|
317
|
-
export enum AddressKind {
|
|
318
|
-
Base = 0,
|
|
319
|
-
Ptr = 1,
|
|
320
|
-
Enterprise = 2,
|
|
321
|
-
Reward = 3,
|
|
322
|
-
Byron = 4,
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
*/
|
|
326
|
-
export enum SpendingDataKind {
|
|
327
|
-
SpendingDataPubKey = 0,
|
|
328
|
-
SpendingDataScript = 1,
|
|
329
|
-
SpendingDataRedeem = 2,
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
*/
|
|
333
|
-
export enum ScriptKind {
|
|
334
|
-
Native = 0,
|
|
335
|
-
PlutusV1 = 1,
|
|
336
|
-
PlutusV2 = 2,
|
|
337
|
-
PlutusV3 = 3,
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
*/
|
|
341
|
-
export enum ChunkableStringKind {
|
|
342
|
-
Single = 0,
|
|
343
|
-
Chunked = 1,
|
|
230
|
+
export enum NativeScriptKind {
|
|
231
|
+
ScriptPubkey = 0,
|
|
232
|
+
ScriptAll = 1,
|
|
233
|
+
ScriptAny = 2,
|
|
234
|
+
ScriptNOfK = 3,
|
|
235
|
+
ScriptInvalidBefore = 4,
|
|
236
|
+
ScriptInvalidHereafter = 5,
|
|
344
237
|
}
|
|
345
238
|
/**
|
|
346
239
|
*/
|
|
347
|
-
export enum
|
|
348
|
-
|
|
349
|
-
|
|
240
|
+
export enum AuxiliaryDataKind {
|
|
241
|
+
Shelley = 0,
|
|
242
|
+
ShelleyMA = 1,
|
|
243
|
+
Conway = 2,
|
|
350
244
|
}
|
|
351
245
|
/**
|
|
352
246
|
*/
|
|
353
|
-
export enum
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
247
|
+
export enum CertificateKind {
|
|
248
|
+
StakeRegistration = 0,
|
|
249
|
+
StakeDeregistration = 1,
|
|
250
|
+
StakeDelegation = 2,
|
|
251
|
+
PoolRegistration = 3,
|
|
252
|
+
PoolRetirement = 4,
|
|
253
|
+
RegCert = 5,
|
|
254
|
+
UnregCert = 6,
|
|
255
|
+
VoteDelegCert = 7,
|
|
256
|
+
StakeVoteDelegCert = 8,
|
|
257
|
+
StakeRegDelegCert = 9,
|
|
258
|
+
VoteRegDelegCert = 10,
|
|
259
|
+
StakeVoteRegDelegCert = 11,
|
|
260
|
+
AuthCommitteeHotCert = 12,
|
|
261
|
+
ResignCommitteeColdCert = 13,
|
|
262
|
+
RegDrepCert = 14,
|
|
263
|
+
UnregDrepCert = 15,
|
|
264
|
+
UpdateDrepCert = 16,
|
|
357
265
|
}
|
|
358
266
|
/**
|
|
359
267
|
*/
|
|
360
|
-
export enum
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
268
|
+
export enum PlutusDataKind {
|
|
269
|
+
ConstrPlutusData = 0,
|
|
270
|
+
Map = 1,
|
|
271
|
+
List = 2,
|
|
272
|
+
Integer = 3,
|
|
273
|
+
Bytes = 4,
|
|
364
274
|
}
|
|
365
275
|
/**
|
|
366
276
|
*/
|
|
367
|
-
export enum
|
|
368
|
-
|
|
369
|
-
|
|
277
|
+
export enum DelegationDistributionKind {
|
|
278
|
+
Weighted = 0,
|
|
279
|
+
Legacy = 1,
|
|
370
280
|
}
|
|
371
281
|
/**
|
|
372
282
|
* JSON <-> PlutusData conversion schemas.
|
|
@@ -422,55 +332,115 @@ export enum CardanoNodePlutusDatumSchema {
|
|
|
422
332
|
}
|
|
423
333
|
/**
|
|
424
334
|
*/
|
|
425
|
-
export enum
|
|
335
|
+
export enum DatumOptionKind {
|
|
336
|
+
Hash = 0,
|
|
337
|
+
Datum = 1,
|
|
338
|
+
}
|
|
426
339
|
/**
|
|
427
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
428
340
|
*/
|
|
429
|
-
|
|
341
|
+
export enum DRepKind {
|
|
342
|
+
Key = 0,
|
|
343
|
+
Script = 1,
|
|
344
|
+
AlwaysAbstain = 2,
|
|
345
|
+
AlwaysNoConfidence = 3,
|
|
346
|
+
}
|
|
430
347
|
/**
|
|
431
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
432
348
|
*/
|
|
433
|
-
|
|
349
|
+
export enum NonceKind {
|
|
350
|
+
Identity = 0,
|
|
351
|
+
Hash = 1,
|
|
352
|
+
}
|
|
434
353
|
/**
|
|
435
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
436
354
|
*/
|
|
437
|
-
|
|
355
|
+
export enum ByronAddrType {
|
|
356
|
+
PublicKey = 0,
|
|
357
|
+
Script = 1,
|
|
358
|
+
Redeem = 2,
|
|
359
|
+
}
|
|
438
360
|
/**
|
|
439
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
440
361
|
*/
|
|
441
|
-
|
|
362
|
+
export enum Language {
|
|
363
|
+
PlutusV1 = 0,
|
|
364
|
+
PlutusV2 = 1,
|
|
365
|
+
PlutusV3 = 2,
|
|
442
366
|
}
|
|
443
367
|
/**
|
|
444
368
|
*/
|
|
445
|
-
export enum
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
ScriptAny = 2,
|
|
449
|
-
ScriptNOfK = 3,
|
|
450
|
-
ScriptInvalidBefore = 4,
|
|
451
|
-
ScriptInvalidHereafter = 5,
|
|
369
|
+
export enum StakeDistributionKind {
|
|
370
|
+
SingleKey = 0,
|
|
371
|
+
BootstrapEra = 1,
|
|
452
372
|
}
|
|
453
373
|
/**
|
|
454
374
|
*/
|
|
455
|
-
export enum
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
DRepScriptHash = 3,
|
|
460
|
-
StakingPoolKeyHash = 4,
|
|
375
|
+
export enum MetadataJsonSchema {
|
|
376
|
+
NoConversions = 0,
|
|
377
|
+
BasicConversions = 1,
|
|
378
|
+
DetailedSchema = 2,
|
|
461
379
|
}
|
|
462
380
|
/**
|
|
463
381
|
*/
|
|
464
|
-
export enum
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
382
|
+
export enum TransactionMetadatumKind {
|
|
383
|
+
Map = 0,
|
|
384
|
+
List = 1,
|
|
385
|
+
Int = 2,
|
|
386
|
+
Bytes = 3,
|
|
387
|
+
Text = 4,
|
|
468
388
|
}
|
|
469
389
|
/**
|
|
470
390
|
*/
|
|
471
|
-
export enum
|
|
472
|
-
|
|
473
|
-
|
|
391
|
+
export enum RedeemersKind {
|
|
392
|
+
ArrLegacyRedeemer = 0,
|
|
393
|
+
MapRedeemerKeyToRedeemerVal = 1,
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
*/
|
|
397
|
+
export enum ChunkableStringKind {
|
|
398
|
+
Single = 0,
|
|
399
|
+
Chunked = 1,
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
*/
|
|
403
|
+
export enum RelayKind {
|
|
404
|
+
SingleHostAddr = 0,
|
|
405
|
+
SingleHostName = 1,
|
|
406
|
+
MultiHostName = 2,
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
*/
|
|
410
|
+
export enum RedeemerTag {
|
|
411
|
+
Spend = 0,
|
|
412
|
+
Mint = 1,
|
|
413
|
+
Cert = 2,
|
|
414
|
+
Reward = 3,
|
|
415
|
+
Voting = 4,
|
|
416
|
+
Proposing = 5,
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
*/
|
|
420
|
+
export enum SpendingDataKind {
|
|
421
|
+
SpendingDataPubKey = 0,
|
|
422
|
+
SpendingDataScript = 1,
|
|
423
|
+
SpendingDataRedeem = 2,
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
*/
|
|
427
|
+
export enum CoinSelectionStrategyCIP2 {
|
|
428
|
+
/**
|
|
429
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
430
|
+
*/
|
|
431
|
+
LargestFirst = 0,
|
|
432
|
+
/**
|
|
433
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
434
|
+
*/
|
|
435
|
+
RandomImprove = 1,
|
|
436
|
+
/**
|
|
437
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
438
|
+
*/
|
|
439
|
+
LargestFirstMultiAsset = 2,
|
|
440
|
+
/**
|
|
441
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
442
|
+
*/
|
|
443
|
+
RandomImproveMultiAsset = 3,
|
|
474
444
|
}
|
|
475
445
|
/**
|
|
476
446
|
*/
|
|
@@ -484,6 +454,13 @@ export enum GovActionKind {
|
|
|
484
454
|
InfoAction = 6,
|
|
485
455
|
}
|
|
486
456
|
/**
|
|
457
|
+
*/
|
|
458
|
+
export enum Vote {
|
|
459
|
+
No = 0,
|
|
460
|
+
Yes = 1,
|
|
461
|
+
Abstain = 2,
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
487
464
|
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
488
465
|
* This will change how things are encoded but for the most part contains
|
|
489
466
|
* the same information.
|
|
@@ -500,6 +477,29 @@ export enum CIP25Version {
|
|
|
500
477
|
}
|
|
501
478
|
/**
|
|
502
479
|
*/
|
|
480
|
+
export enum ScriptKind {
|
|
481
|
+
Native = 0,
|
|
482
|
+
PlutusV1 = 1,
|
|
483
|
+
PlutusV2 = 2,
|
|
484
|
+
PlutusV3 = 3,
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
*/
|
|
488
|
+
export enum CredentialKind {
|
|
489
|
+
PubKey = 0,
|
|
490
|
+
Script = 1,
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
*/
|
|
494
|
+
export enum VoterKind {
|
|
495
|
+
ConstitutionalCommitteeHotKeyHash = 0,
|
|
496
|
+
ConstitutionalCommitteeHotScriptHash = 1,
|
|
497
|
+
DRepKeyHash = 2,
|
|
498
|
+
DRepScriptHash = 3,
|
|
499
|
+
StakingPoolKeyHash = 4,
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
*/
|
|
503
503
|
export class AddrAttributes {
|
|
504
504
|
free(): void;
|
|
505
505
|
/**
|
|
@@ -767,37 +767,13 @@ function getArrayU64FromWasm0(ptr, len) {
|
|
|
767
767
|
}
|
|
768
768
|
/**
|
|
769
769
|
*/
|
|
770
|
-
module.exports.TransactionMetadatumKind = Object.freeze({ Map:0,"0":"Map",List:1,"1":"List",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
771
|
-
/**
|
|
772
|
-
*/
|
|
773
|
-
module.exports.CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",RegCert:5,"5":"RegCert",UnregCert:6,"6":"UnregCert",VoteDelegCert:7,"7":"VoteDelegCert",StakeVoteDelegCert:8,"8":"StakeVoteDelegCert",StakeRegDelegCert:9,"9":"StakeRegDelegCert",VoteRegDelegCert:10,"10":"VoteRegDelegCert",StakeVoteRegDelegCert:11,"11":"StakeVoteRegDelegCert",AuthCommitteeHotCert:12,"12":"AuthCommitteeHotCert",ResignCommitteeColdCert:13,"13":"ResignCommitteeColdCert",RegDrepCert:14,"14":"RegDrepCert",UnregDrepCert:15,"15":"UnregDrepCert",UpdateDrepCert:16,"16":"UpdateDrepCert", });
|
|
774
|
-
/**
|
|
775
|
-
*/
|
|
776
|
-
module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
|
|
777
|
-
/**
|
|
778
|
-
*/
|
|
779
|
-
module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
780
|
-
/**
|
|
781
|
-
*/
|
|
782
|
-
module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
783
|
-
/**
|
|
784
|
-
*/
|
|
785
|
-
module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
|
|
786
|
-
/**
|
|
787
|
-
*/
|
|
788
770
|
module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
|
|
789
771
|
/**
|
|
790
772
|
*/
|
|
791
|
-
module.exports.
|
|
792
|
-
/**
|
|
793
|
-
*/
|
|
794
|
-
module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
795
|
-
/**
|
|
796
|
-
*/
|
|
797
|
-
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
773
|
+
module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
|
|
798
774
|
/**
|
|
799
775
|
*/
|
|
800
|
-
module.exports.
|
|
776
|
+
module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Ptr:1,"1":"Ptr",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron", });
|
|
801
777
|
/**
|
|
802
778
|
* Careful: this enum doesn't include the network ID part of the header
|
|
803
779
|
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
@@ -806,34 +782,19 @@ module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPl
|
|
|
806
782
|
module.exports.AddressHeaderKind = Object.freeze({ BasePaymentKeyStakeKey:0,"0":"BasePaymentKeyStakeKey",BasePaymentScriptStakeKey:1,"1":"BasePaymentScriptStakeKey",BasePaymentKeyStakeScript:2,"2":"BasePaymentKeyStakeScript",BasePaymentScriptStakeScript:3,"3":"BasePaymentScriptStakeScript",PointerKey:4,"4":"PointerKey",PointerScript:5,"5":"PointerScript",EnterpriseKey:6,"6":"EnterpriseKey",EnterpriseScript:7,"7":"EnterpriseScript",Byron:8,"8":"Byron",RewardKey:14,"14":"RewardKey",RewardScript:15,"15":"RewardScript", });
|
|
807
783
|
/**
|
|
808
784
|
*/
|
|
809
|
-
module.exports.
|
|
810
|
-
/**
|
|
811
|
-
*/
|
|
812
|
-
module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
|
|
813
|
-
/**
|
|
814
|
-
*/
|
|
815
|
-
module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Ptr:1,"1":"Ptr",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron", });
|
|
816
|
-
/**
|
|
817
|
-
*/
|
|
818
|
-
module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
|
|
819
|
-
/**
|
|
820
|
-
*/
|
|
821
|
-
module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
|
|
822
|
-
/**
|
|
823
|
-
*/
|
|
824
|
-
module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
|
|
785
|
+
module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",ScriptInvalidBefore:4,"4":"ScriptInvalidBefore",ScriptInvalidHereafter:5,"5":"ScriptInvalidHereafter", });
|
|
825
786
|
/**
|
|
826
787
|
*/
|
|
827
|
-
module.exports.
|
|
788
|
+
module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
|
|
828
789
|
/**
|
|
829
790
|
*/
|
|
830
|
-
module.exports.
|
|
791
|
+
module.exports.CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",RegCert:5,"5":"RegCert",UnregCert:6,"6":"UnregCert",VoteDelegCert:7,"7":"VoteDelegCert",StakeVoteDelegCert:8,"8":"StakeVoteDelegCert",StakeRegDelegCert:9,"9":"StakeRegDelegCert",VoteRegDelegCert:10,"10":"VoteRegDelegCert",StakeVoteRegDelegCert:11,"11":"StakeVoteRegDelegCert",AuthCommitteeHotCert:12,"12":"AuthCommitteeHotCert",ResignCommitteeColdCert:13,"13":"ResignCommitteeColdCert",RegDrepCert:14,"14":"RegDrepCert",UnregDrepCert:15,"15":"UnregDrepCert",UpdateDrepCert:16,"16":"UpdateDrepCert", });
|
|
831
792
|
/**
|
|
832
793
|
*/
|
|
833
|
-
module.exports.
|
|
794
|
+
module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
834
795
|
/**
|
|
835
796
|
*/
|
|
836
|
-
module.exports.
|
|
797
|
+
module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
|
|
837
798
|
/**
|
|
838
799
|
* JSON <-> PlutusData conversion schemas.
|
|
839
800
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -887,6 +848,45 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
887
848
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
888
849
|
/**
|
|
889
850
|
*/
|
|
851
|
+
module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
|
|
852
|
+
/**
|
|
853
|
+
*/
|
|
854
|
+
module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
855
|
+
/**
|
|
856
|
+
*/
|
|
857
|
+
module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
|
|
858
|
+
/**
|
|
859
|
+
*/
|
|
860
|
+
module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
|
|
861
|
+
/**
|
|
862
|
+
*/
|
|
863
|
+
module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
864
|
+
/**
|
|
865
|
+
*/
|
|
866
|
+
module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
|
|
867
|
+
/**
|
|
868
|
+
*/
|
|
869
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
870
|
+
/**
|
|
871
|
+
*/
|
|
872
|
+
module.exports.TransactionMetadatumKind = Object.freeze({ Map:0,"0":"Map",List:1,"1":"List",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
873
|
+
/**
|
|
874
|
+
*/
|
|
875
|
+
module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
|
|
876
|
+
/**
|
|
877
|
+
*/
|
|
878
|
+
module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
|
|
879
|
+
/**
|
|
880
|
+
*/
|
|
881
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
882
|
+
/**
|
|
883
|
+
*/
|
|
884
|
+
module.exports.RedeemerTag = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Voting:4,"4":"Voting",Proposing:5,"5":"Proposing", });
|
|
885
|
+
/**
|
|
886
|
+
*/
|
|
887
|
+
module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
|
|
888
|
+
/**
|
|
889
|
+
*/
|
|
890
890
|
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
891
891
|
/**
|
|
892
892
|
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
@@ -906,19 +906,10 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
906
906
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
907
907
|
/**
|
|
908
908
|
*/
|
|
909
|
-
module.exports.
|
|
910
|
-
/**
|
|
911
|
-
*/
|
|
912
|
-
module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
913
|
-
/**
|
|
914
|
-
*/
|
|
915
|
-
module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
|
|
916
|
-
/**
|
|
917
|
-
*/
|
|
918
|
-
module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
|
|
909
|
+
module.exports.GovActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidence:3,"3":"NoConfidence",UpdateCommittee:4,"4":"UpdateCommittee",NewConstitution:5,"5":"NewConstitution",InfoAction:6,"6":"InfoAction", });
|
|
919
910
|
/**
|
|
920
911
|
*/
|
|
921
|
-
module.exports.
|
|
912
|
+
module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
922
913
|
/**
|
|
923
914
|
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
924
915
|
* This will change how things are encoded but for the most part contains
|
|
@@ -933,6 +924,15 @@ V1:0,"0":"V1",
|
|
|
933
924
|
* Second version of CIP25. Supports any type of asset names.
|
|
934
925
|
*/
|
|
935
926
|
V2:1,"1":"V2", });
|
|
927
|
+
/**
|
|
928
|
+
*/
|
|
929
|
+
module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
|
|
930
|
+
/**
|
|
931
|
+
*/
|
|
932
|
+
module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
|
|
933
|
+
/**
|
|
934
|
+
*/
|
|
935
|
+
module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
936
936
|
|
|
937
937
|
const AddrAttributesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
938
938
|
? { register: () => {}, unregister: () => {} }
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anastasia-labs/cardano-multiplatform-lib-nodejs",
|
|
3
3
|
"description": "Multiplatform WASM SDK containing the most common CML crates for Cardano blockchain functionality",
|
|
4
|
-
"version": "6.0.0-
|
|
4
|
+
"version": "6.0.0-6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|