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