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