@anastasia-labs/cardano-multiplatform-lib-nodejs 5.3.1-4 → 5.3.1-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.
|
@@ -184,25 +184,9 @@ export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNod
|
|
|
184
184
|
export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
|
|
185
185
|
/**
|
|
186
186
|
*/
|
|
187
|
-
export enum
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
PlutusV3 = 2,
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
194
|
-
* This will change how things are encoded but for the most part contains
|
|
195
|
-
* the same information.
|
|
196
|
-
*/
|
|
197
|
-
export enum CIP25Version {
|
|
198
|
-
/**
|
|
199
|
-
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
200
|
-
*/
|
|
201
|
-
V1 = 0,
|
|
202
|
-
/**
|
|
203
|
-
* Second version of CIP25. Supports any type of asset names.
|
|
204
|
-
*/
|
|
205
|
-
V2 = 1,
|
|
187
|
+
export enum StakeDistributionKind {
|
|
188
|
+
SingleKey = 0,
|
|
189
|
+
BootstrapEra = 1,
|
|
206
190
|
}
|
|
207
191
|
/**
|
|
208
192
|
*/
|
|
@@ -215,8 +199,28 @@ export enum VoterKind {
|
|
|
215
199
|
}
|
|
216
200
|
/**
|
|
217
201
|
*/
|
|
218
|
-
export enum
|
|
219
|
-
|
|
202
|
+
export enum MetadataJsonSchema {
|
|
203
|
+
NoConversions = 0,
|
|
204
|
+
BasicConversions = 1,
|
|
205
|
+
DetailedSchema = 2,
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Careful: this enum doesn't include the network ID part of the header
|
|
209
|
+
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
210
|
+
* Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
|
|
211
|
+
*/
|
|
212
|
+
export enum AddressHeaderKind {
|
|
213
|
+
BasePaymentKeyStakeKey = 0,
|
|
214
|
+
BasePaymentScriptStakeKey = 1,
|
|
215
|
+
BasePaymentKeyStakeScript = 2,
|
|
216
|
+
BasePaymentScriptStakeScript = 3,
|
|
217
|
+
PointerKey = 4,
|
|
218
|
+
PointerScript = 5,
|
|
219
|
+
EnterpriseKey = 6,
|
|
220
|
+
EnterpriseScript = 7,
|
|
221
|
+
Byron = 8,
|
|
222
|
+
RewardKey = 14,
|
|
223
|
+
RewardScript = 15,
|
|
220
224
|
}
|
|
221
225
|
/**
|
|
222
226
|
*/
|
|
@@ -240,9 +244,68 @@ export enum CoinSelectionStrategyCIP2 {
|
|
|
240
244
|
}
|
|
241
245
|
/**
|
|
242
246
|
*/
|
|
243
|
-
export enum
|
|
244
|
-
|
|
245
|
-
|
|
247
|
+
export enum NativeScriptKind {
|
|
248
|
+
ScriptPubkey = 0,
|
|
249
|
+
ScriptAll = 1,
|
|
250
|
+
ScriptAny = 2,
|
|
251
|
+
ScriptNOfK = 3,
|
|
252
|
+
ScriptInvalidBefore = 4,
|
|
253
|
+
ScriptInvalidHereafter = 5,
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
*/
|
|
257
|
+
export enum TransactionMetadatumKind {
|
|
258
|
+
Map = 0,
|
|
259
|
+
List = 1,
|
|
260
|
+
Int = 2,
|
|
261
|
+
Bytes = 3,
|
|
262
|
+
Text = 4,
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
*/
|
|
266
|
+
export enum CertificateKind {
|
|
267
|
+
StakeRegistration = 0,
|
|
268
|
+
StakeDeregistration = 1,
|
|
269
|
+
StakeDelegation = 2,
|
|
270
|
+
PoolRegistration = 3,
|
|
271
|
+
PoolRetirement = 4,
|
|
272
|
+
RegCert = 5,
|
|
273
|
+
UnregCert = 6,
|
|
274
|
+
VoteDelegCert = 7,
|
|
275
|
+
StakeVoteDelegCert = 8,
|
|
276
|
+
StakeRegDelegCert = 9,
|
|
277
|
+
VoteRegDelegCert = 10,
|
|
278
|
+
StakeVoteRegDelegCert = 11,
|
|
279
|
+
AuthCommitteeHotCert = 12,
|
|
280
|
+
ResignCommitteeColdCert = 13,
|
|
281
|
+
RegDrepCert = 14,
|
|
282
|
+
UnregDrepCert = 15,
|
|
283
|
+
UpdateDrepCert = 16,
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
287
|
+
* This will change how things are encoded but for the most part contains
|
|
288
|
+
* the same information.
|
|
289
|
+
*/
|
|
290
|
+
export enum CIP25Version {
|
|
291
|
+
/**
|
|
292
|
+
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
293
|
+
*/
|
|
294
|
+
V1 = 0,
|
|
295
|
+
/**
|
|
296
|
+
* Second version of CIP25. Supports any type of asset names.
|
|
297
|
+
*/
|
|
298
|
+
V2 = 1,
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
*/
|
|
302
|
+
export enum RedeemerTag {
|
|
303
|
+
Spend = 0,
|
|
304
|
+
Mint = 1,
|
|
305
|
+
Cert = 2,
|
|
306
|
+
Reward = 3,
|
|
307
|
+
Voting = 4,
|
|
308
|
+
Proposing = 5,
|
|
246
309
|
}
|
|
247
310
|
/**
|
|
248
311
|
* JSON <-> PlutusData conversion schemas.
|
|
@@ -298,80 +361,43 @@ export enum CardanoNodePlutusDatumSchema {
|
|
|
298
361
|
}
|
|
299
362
|
/**
|
|
300
363
|
*/
|
|
301
|
-
export enum
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
MultiHostName = 2,
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
*/
|
|
308
|
-
export enum CertificateKind {
|
|
309
|
-
StakeRegistration = 0,
|
|
310
|
-
StakeDeregistration = 1,
|
|
311
|
-
StakeDelegation = 2,
|
|
312
|
-
PoolRegistration = 3,
|
|
313
|
-
PoolRetirement = 4,
|
|
314
|
-
RegCert = 5,
|
|
315
|
-
UnregCert = 6,
|
|
316
|
-
VoteDelegCert = 7,
|
|
317
|
-
StakeVoteDelegCert = 8,
|
|
318
|
-
StakeRegDelegCert = 9,
|
|
319
|
-
VoteRegDelegCert = 10,
|
|
320
|
-
StakeVoteRegDelegCert = 11,
|
|
321
|
-
AuthCommitteeHotCert = 12,
|
|
322
|
-
ResignCommitteeColdCert = 13,
|
|
323
|
-
RegDrepCert = 14,
|
|
324
|
-
UnregDrepCert = 15,
|
|
325
|
-
UpdateDrepCert = 16,
|
|
364
|
+
export enum CredentialKind {
|
|
365
|
+
PubKey = 0,
|
|
366
|
+
Script = 1,
|
|
326
367
|
}
|
|
327
368
|
/**
|
|
328
369
|
*/
|
|
329
|
-
export enum
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
PlutusV2 = 2,
|
|
333
|
-
PlutusV3 = 3,
|
|
370
|
+
export enum DatumOptionKind {
|
|
371
|
+
Hash = 0,
|
|
372
|
+
Datum = 1,
|
|
334
373
|
}
|
|
335
374
|
/**
|
|
336
375
|
*/
|
|
337
|
-
export enum
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
376
|
+
export enum DRepKind {
|
|
377
|
+
Key = 0,
|
|
378
|
+
Script = 1,
|
|
379
|
+
AlwaysAbstain = 2,
|
|
380
|
+
AlwaysNoConfidence = 3,
|
|
341
381
|
}
|
|
342
382
|
/**
|
|
343
383
|
*/
|
|
344
|
-
export enum
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
ScriptNOfK = 3,
|
|
349
|
-
ScriptInvalidBefore = 4,
|
|
350
|
-
ScriptInvalidHereafter = 5,
|
|
384
|
+
export enum Language {
|
|
385
|
+
PlutusV1 = 0,
|
|
386
|
+
PlutusV2 = 1,
|
|
387
|
+
PlutusV3 = 2,
|
|
351
388
|
}
|
|
352
389
|
/**
|
|
353
390
|
*/
|
|
354
|
-
export enum
|
|
355
|
-
|
|
391
|
+
export enum ByronAddrType {
|
|
392
|
+
PublicKey = 0,
|
|
356
393
|
Script = 1,
|
|
394
|
+
Redeem = 2,
|
|
357
395
|
}
|
|
358
396
|
/**
|
|
359
|
-
* Careful: this enum doesn't include the network ID part of the header
|
|
360
|
-
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
361
|
-
* Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
|
|
362
397
|
*/
|
|
363
|
-
export enum
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
BasePaymentKeyStakeScript = 2,
|
|
367
|
-
BasePaymentScriptStakeScript = 3,
|
|
368
|
-
PointerKey = 4,
|
|
369
|
-
PointerScript = 5,
|
|
370
|
-
EnterpriseKey = 6,
|
|
371
|
-
EnterpriseScript = 7,
|
|
372
|
-
Byron = 8,
|
|
373
|
-
RewardKey = 14,
|
|
374
|
-
RewardScript = 15,
|
|
398
|
+
export enum ChunkableStringKind {
|
|
399
|
+
Single = 0,
|
|
400
|
+
Chunked = 1,
|
|
375
401
|
}
|
|
376
402
|
/**
|
|
377
403
|
*/
|
|
@@ -382,9 +408,10 @@ export enum AuxiliaryDataKind {
|
|
|
382
408
|
}
|
|
383
409
|
/**
|
|
384
410
|
*/
|
|
385
|
-
export enum
|
|
386
|
-
|
|
387
|
-
|
|
411
|
+
export enum SpendingDataKind {
|
|
412
|
+
SpendingDataPubKey = 0,
|
|
413
|
+
SpendingDataScript = 1,
|
|
414
|
+
SpendingDataRedeem = 2,
|
|
388
415
|
}
|
|
389
416
|
/**
|
|
390
417
|
*/
|
|
@@ -394,84 +421,66 @@ export enum TransactionOutputKind {
|
|
|
394
421
|
}
|
|
395
422
|
/**
|
|
396
423
|
*/
|
|
397
|
-
export enum
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
*/
|
|
403
|
-
export enum PlutusDataKind {
|
|
404
|
-
ConstrPlutusData = 0,
|
|
405
|
-
Map = 1,
|
|
406
|
-
List = 2,
|
|
407
|
-
Integer = 3,
|
|
408
|
-
Bytes = 4,
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
*/
|
|
412
|
-
export enum ChunkableStringKind {
|
|
413
|
-
Single = 0,
|
|
414
|
-
Chunked = 1,
|
|
424
|
+
export enum NonceKind {
|
|
425
|
+
Identity = 0,
|
|
426
|
+
Hash = 1,
|
|
415
427
|
}
|
|
416
428
|
/**
|
|
417
429
|
*/
|
|
418
|
-
export enum
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
SpendingDataRedeem = 2,
|
|
430
|
+
export enum DelegationDistributionKind {
|
|
431
|
+
Weighted = 0,
|
|
432
|
+
Legacy = 1,
|
|
422
433
|
}
|
|
423
434
|
/**
|
|
424
435
|
*/
|
|
425
|
-
export enum
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
AlwaysAbstain = 2,
|
|
429
|
-
AlwaysNoConfidence = 3,
|
|
436
|
+
export enum RedeemersKind {
|
|
437
|
+
ArrLegacyRedeemer = 0,
|
|
438
|
+
MapRedeemerKeyToRedeemerVal = 1,
|
|
430
439
|
}
|
|
431
440
|
/**
|
|
432
441
|
*/
|
|
433
|
-
export enum
|
|
434
|
-
|
|
435
|
-
BasicConversions = 1,
|
|
436
|
-
DetailedSchema = 2,
|
|
442
|
+
export enum ChangeSelectionAlgo {
|
|
443
|
+
Default = 0,
|
|
437
444
|
}
|
|
438
445
|
/**
|
|
439
446
|
*/
|
|
440
|
-
export enum
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
Voting = 4,
|
|
446
|
-
Proposing = 5,
|
|
447
|
+
export enum ScriptKind {
|
|
448
|
+
Native = 0,
|
|
449
|
+
PlutusV1 = 1,
|
|
450
|
+
PlutusV2 = 2,
|
|
451
|
+
PlutusV3 = 3,
|
|
447
452
|
}
|
|
448
453
|
/**
|
|
449
454
|
*/
|
|
450
|
-
export enum
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
455
|
+
export enum Vote {
|
|
456
|
+
No = 0,
|
|
457
|
+
Yes = 1,
|
|
458
|
+
Abstain = 2,
|
|
454
459
|
}
|
|
455
460
|
/**
|
|
456
461
|
*/
|
|
457
|
-
export enum
|
|
458
|
-
|
|
459
|
-
|
|
462
|
+
export enum PlutusDataKind {
|
|
463
|
+
ConstrPlutusData = 0,
|
|
464
|
+
Map = 1,
|
|
465
|
+
List = 2,
|
|
466
|
+
Integer = 3,
|
|
467
|
+
Bytes = 4,
|
|
460
468
|
}
|
|
461
469
|
/**
|
|
462
470
|
*/
|
|
463
|
-
export enum
|
|
464
|
-
|
|
465
|
-
|
|
471
|
+
export enum RelayKind {
|
|
472
|
+
SingleHostAddr = 0,
|
|
473
|
+
SingleHostName = 1,
|
|
474
|
+
MultiHostName = 2,
|
|
466
475
|
}
|
|
467
476
|
/**
|
|
468
477
|
*/
|
|
469
|
-
export enum
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
478
|
+
export enum AddressKind {
|
|
479
|
+
Base = 0,
|
|
480
|
+
Ptr = 1,
|
|
481
|
+
Enterprise = 2,
|
|
482
|
+
Reward = 3,
|
|
483
|
+
Byron = 4,
|
|
475
484
|
}
|
|
476
485
|
/**
|
|
477
486
|
*/
|
|
@@ -486,15 +495,6 @@ export enum GovActionKind {
|
|
|
486
495
|
}
|
|
487
496
|
/**
|
|
488
497
|
*/
|
|
489
|
-
export enum AddressKind {
|
|
490
|
-
Base = 0,
|
|
491
|
-
Ptr = 1,
|
|
492
|
-
Enterprise = 2,
|
|
493
|
-
Reward = 3,
|
|
494
|
-
Byron = 4,
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
*/
|
|
498
498
|
export class AddrAttributes {
|
|
499
499
|
free(): void;
|
|
500
500
|
/**
|
|
@@ -763,27 +763,19 @@ function getArrayU64FromWasm0(ptr, len) {
|
|
|
763
763
|
}
|
|
764
764
|
/**
|
|
765
765
|
*/
|
|
766
|
-
module.exports.
|
|
767
|
-
/**
|
|
768
|
-
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
769
|
-
* This will change how things are encoded but for the most part contains
|
|
770
|
-
* the same information.
|
|
771
|
-
*/
|
|
772
|
-
module.exports.CIP25Version = Object.freeze({
|
|
773
|
-
/**
|
|
774
|
-
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
775
|
-
*/
|
|
776
|
-
V1:0,"0":"V1",
|
|
766
|
+
module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
|
|
777
767
|
/**
|
|
778
|
-
* Second version of CIP25. Supports any type of asset names.
|
|
779
768
|
*/
|
|
780
|
-
|
|
769
|
+
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", });
|
|
781
770
|
/**
|
|
782
771
|
*/
|
|
783
|
-
module.exports.
|
|
772
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
784
773
|
/**
|
|
774
|
+
* Careful: this enum doesn't include the network ID part of the header
|
|
775
|
+
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
776
|
+
* Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
|
|
785
777
|
*/
|
|
786
|
-
module.exports.
|
|
778
|
+
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", });
|
|
787
779
|
/**
|
|
788
780
|
*/
|
|
789
781
|
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -805,7 +797,30 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
805
797
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
806
798
|
/**
|
|
807
799
|
*/
|
|
808
|
-
module.exports.
|
|
800
|
+
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", });
|
|
801
|
+
/**
|
|
802
|
+
*/
|
|
803
|
+
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", });
|
|
804
|
+
/**
|
|
805
|
+
*/
|
|
806
|
+
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", });
|
|
807
|
+
/**
|
|
808
|
+
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
809
|
+
* This will change how things are encoded but for the most part contains
|
|
810
|
+
* the same information.
|
|
811
|
+
*/
|
|
812
|
+
module.exports.CIP25Version = Object.freeze({
|
|
813
|
+
/**
|
|
814
|
+
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
815
|
+
*/
|
|
816
|
+
V1:0,"0":"V1",
|
|
817
|
+
/**
|
|
818
|
+
* Second version of CIP25. Supports any type of asset names.
|
|
819
|
+
*/
|
|
820
|
+
V2:1,"1":"V2", });
|
|
821
|
+
/**
|
|
822
|
+
*/
|
|
823
|
+
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", });
|
|
809
824
|
/**
|
|
810
825
|
* JSON <-> PlutusData conversion schemas.
|
|
811
826
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -859,76 +874,61 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
859
874
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
860
875
|
/**
|
|
861
876
|
*/
|
|
862
|
-
module.exports.
|
|
863
|
-
/**
|
|
864
|
-
*/
|
|
865
|
-
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", });
|
|
877
|
+
module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
|
|
866
878
|
/**
|
|
867
879
|
*/
|
|
868
|
-
module.exports.
|
|
880
|
+
module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
|
|
869
881
|
/**
|
|
870
882
|
*/
|
|
871
|
-
module.exports.
|
|
883
|
+
module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
872
884
|
/**
|
|
873
885
|
*/
|
|
874
|
-
module.exports.
|
|
886
|
+
module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
875
887
|
/**
|
|
876
888
|
*/
|
|
877
|
-
module.exports.
|
|
889
|
+
module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
|
|
878
890
|
/**
|
|
879
|
-
* Careful: this enum doesn't include the network ID part of the header
|
|
880
|
-
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
881
|
-
* Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
|
|
882
891
|
*/
|
|
883
|
-
module.exports.
|
|
892
|
+
module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
|
|
884
893
|
/**
|
|
885
894
|
*/
|
|
886
895
|
module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
|
|
887
896
|
/**
|
|
888
897
|
*/
|
|
889
|
-
module.exports.
|
|
898
|
+
module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
|
|
890
899
|
/**
|
|
891
900
|
*/
|
|
892
901
|
module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
|
|
893
902
|
/**
|
|
894
903
|
*/
|
|
895
|
-
module.exports.
|
|
896
|
-
/**
|
|
897
|
-
*/
|
|
898
|
-
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", });
|
|
899
|
-
/**
|
|
900
|
-
*/
|
|
901
|
-
module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
|
|
904
|
+
module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
|
|
902
905
|
/**
|
|
903
906
|
*/
|
|
904
|
-
module.exports.
|
|
907
|
+
module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
|
|
905
908
|
/**
|
|
906
909
|
*/
|
|
907
|
-
module.exports.
|
|
910
|
+
module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
|
|
908
911
|
/**
|
|
909
912
|
*/
|
|
910
|
-
module.exports.
|
|
913
|
+
module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
|
|
911
914
|
/**
|
|
912
915
|
*/
|
|
913
|
-
module.exports.
|
|
916
|
+
module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
|
|
914
917
|
/**
|
|
915
918
|
*/
|
|
916
|
-
module.exports.
|
|
919
|
+
module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
917
920
|
/**
|
|
918
921
|
*/
|
|
919
|
-
module.exports.
|
|
922
|
+
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", });
|
|
920
923
|
/**
|
|
921
924
|
*/
|
|
922
|
-
module.exports.
|
|
925
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
923
926
|
/**
|
|
924
927
|
*/
|
|
925
|
-
module.exports.
|
|
928
|
+
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", });
|
|
926
929
|
/**
|
|
927
930
|
*/
|
|
928
931
|
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", });
|
|
929
|
-
/**
|
|
930
|
-
*/
|
|
931
|
-
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", });
|
|
932
932
|
|
|
933
933
|
const AddrAttributesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
934
934
|
? { 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": "5.3.1-
|
|
4
|
+
"version": "5.3.1-6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|