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