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