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