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