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