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