@anastasia-labs/cardano-multiplatform-lib-browser 6.0.0-3 → 6.0.0-6
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,130 +189,16 @@ 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
|
-
PlutusV3 = 3,
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
*/
|
|
200
|
-
export enum SpendingDataKind {
|
|
201
|
-
SpendingDataPubKey = 0,
|
|
202
|
-
SpendingDataScript = 1,
|
|
203
|
-
SpendingDataRedeem = 2,
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
*/
|
|
207
|
-
export enum StakeDistributionKind {
|
|
208
|
-
SingleKey = 0,
|
|
209
|
-
BootstrapEra = 1,
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
*/
|
|
213
|
-
export enum ChunkableStringKind {
|
|
214
|
-
Single = 0,
|
|
215
|
-
Chunked = 1,
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
*/
|
|
219
|
-
export enum CertificateKind {
|
|
220
|
-
StakeRegistration = 0,
|
|
221
|
-
StakeDeregistration = 1,
|
|
222
|
-
StakeDelegation = 2,
|
|
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,
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
*/
|
|
240
|
-
export enum Language {
|
|
241
|
-
PlutusV1 = 0,
|
|
242
|
-
PlutusV2 = 1,
|
|
243
|
-
PlutusV3 = 2,
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
*/
|
|
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
|
-
export enum AuxiliaryDataKind {
|
|
277
|
-
Shelley = 0,
|
|
278
|
-
ShelleyMA = 1,
|
|
279
|
-
Conway = 2,
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
*/
|
|
283
|
-
export enum VoterKind {
|
|
284
|
-
ConstitutionalCommitteeHotKeyHash = 0,
|
|
285
|
-
ConstitutionalCommitteeHotScriptHash = 1,
|
|
286
|
-
DRepKeyHash = 2,
|
|
287
|
-
DRepScriptHash = 3,
|
|
288
|
-
StakingPoolKeyHash = 4,
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
*/
|
|
292
|
-
export enum Vote {
|
|
293
|
-
No = 0,
|
|
294
|
-
Yes = 1,
|
|
295
|
-
Abstain = 2,
|
|
192
|
+
export enum MetadataJsonSchema {
|
|
193
|
+
NoConversions = 0,
|
|
194
|
+
BasicConversions = 1,
|
|
195
|
+
DetailedSchema = 2,
|
|
296
196
|
}
|
|
297
197
|
/**
|
|
298
198
|
*/
|
|
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,
|
|
199
|
+
export enum DelegationDistributionKind {
|
|
200
|
+
Weighted = 0,
|
|
201
|
+
Legacy = 1,
|
|
316
202
|
}
|
|
317
203
|
/**
|
|
318
204
|
*/
|
|
@@ -321,41 +207,6 @@ export enum NonceKind {
|
|
|
321
207
|
Hash = 1,
|
|
322
208
|
}
|
|
323
209
|
/**
|
|
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,
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
*/
|
|
339
|
-
export enum AddressKind {
|
|
340
|
-
Base = 0,
|
|
341
|
-
Ptr = 1,
|
|
342
|
-
Enterprise = 2,
|
|
343
|
-
Reward = 3,
|
|
344
|
-
Byron = 4,
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
*/
|
|
348
|
-
export enum DatumOptionKind {
|
|
349
|
-
Hash = 0,
|
|
350
|
-
Datum = 1,
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
*/
|
|
354
|
-
export enum TransactionOutputKind {
|
|
355
|
-
AlonzoFormatTxOut = 0,
|
|
356
|
-
ConwayFormatTxOut = 1,
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
210
|
* JSON <-> PlutusData conversion schemas.
|
|
360
211
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
361
212
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -409,39 +260,47 @@ export enum CardanoNodePlutusDatumSchema {
|
|
|
409
260
|
}
|
|
410
261
|
/**
|
|
411
262
|
*/
|
|
412
|
-
export enum
|
|
413
|
-
Weighted = 0,
|
|
414
|
-
Legacy = 1,
|
|
415
|
-
}
|
|
263
|
+
export enum CoinSelectionStrategyCIP2 {
|
|
416
264
|
/**
|
|
417
|
-
*
|
|
418
|
-
* This will change how things are encoded but for the most part contains
|
|
419
|
-
* the same information.
|
|
265
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
420
266
|
*/
|
|
421
|
-
|
|
267
|
+
LargestFirst = 0,
|
|
422
268
|
/**
|
|
423
|
-
*
|
|
269
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
424
270
|
*/
|
|
425
|
-
|
|
271
|
+
RandomImprove = 1,
|
|
426
272
|
/**
|
|
427
|
-
*
|
|
273
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
428
274
|
*/
|
|
429
|
-
|
|
275
|
+
LargestFirstMultiAsset = 2,
|
|
276
|
+
/**
|
|
277
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
278
|
+
*/
|
|
279
|
+
RandomImproveMultiAsset = 3,
|
|
430
280
|
}
|
|
431
281
|
/**
|
|
432
282
|
*/
|
|
433
|
-
export enum
|
|
434
|
-
|
|
435
|
-
|
|
283
|
+
export enum VoterKind {
|
|
284
|
+
ConstitutionalCommitteeHotKeyHash = 0,
|
|
285
|
+
ConstitutionalCommitteeHotScriptHash = 1,
|
|
286
|
+
DRepKeyHash = 2,
|
|
287
|
+
DRepScriptHash = 3,
|
|
288
|
+
StakingPoolKeyHash = 4,
|
|
436
289
|
}
|
|
437
290
|
/**
|
|
438
291
|
*/
|
|
439
|
-
export enum
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
292
|
+
export enum ChunkableStringKind {
|
|
293
|
+
Single = 0,
|
|
294
|
+
Chunked = 1,
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
*/
|
|
298
|
+
export enum AddressKind {
|
|
299
|
+
Base = 0,
|
|
300
|
+
Ptr = 1,
|
|
301
|
+
Enterprise = 2,
|
|
302
|
+
Reward = 3,
|
|
303
|
+
Byron = 4,
|
|
445
304
|
}
|
|
446
305
|
/**
|
|
447
306
|
*/
|
|
@@ -452,9 +311,10 @@ export enum ByronAddrType {
|
|
|
452
311
|
}
|
|
453
312
|
/**
|
|
454
313
|
*/
|
|
455
|
-
export enum
|
|
456
|
-
|
|
457
|
-
|
|
314
|
+
export enum Language {
|
|
315
|
+
PlutusV1 = 0,
|
|
316
|
+
PlutusV2 = 1,
|
|
317
|
+
PlutusV3 = 2,
|
|
458
318
|
}
|
|
459
319
|
/**
|
|
460
320
|
* Careful: this enum doesn't include the network ID part of the header
|
|
@@ -476,6 +336,118 @@ export enum AddressHeaderKind {
|
|
|
476
336
|
}
|
|
477
337
|
/**
|
|
478
338
|
*/
|
|
339
|
+
export enum GovActionKind {
|
|
340
|
+
ParameterChangeAction = 0,
|
|
341
|
+
HardForkInitiationAction = 1,
|
|
342
|
+
TreasuryWithdrawalsAction = 2,
|
|
343
|
+
NoConfidence = 3,
|
|
344
|
+
UpdateCommittee = 4,
|
|
345
|
+
NewConstitution = 5,
|
|
346
|
+
InfoAction = 6,
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
*/
|
|
350
|
+
export enum RedeemersKind {
|
|
351
|
+
ArrLegacyRedeemer = 0,
|
|
352
|
+
MapRedeemerKeyToRedeemerVal = 1,
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
356
|
+
* This will change how things are encoded but for the most part contains
|
|
357
|
+
* the same information.
|
|
358
|
+
*/
|
|
359
|
+
export enum CIP25Version {
|
|
360
|
+
/**
|
|
361
|
+
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
362
|
+
*/
|
|
363
|
+
V1 = 0,
|
|
364
|
+
/**
|
|
365
|
+
* Second version of CIP25. Supports any type of asset names.
|
|
366
|
+
*/
|
|
367
|
+
V2 = 1,
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
*/
|
|
371
|
+
export enum Vote {
|
|
372
|
+
No = 0,
|
|
373
|
+
Yes = 1,
|
|
374
|
+
Abstain = 2,
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
*/
|
|
378
|
+
export enum ScriptKind {
|
|
379
|
+
Native = 0,
|
|
380
|
+
PlutusV1 = 1,
|
|
381
|
+
PlutusV2 = 2,
|
|
382
|
+
PlutusV3 = 3,
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
*/
|
|
386
|
+
export enum AuxiliaryDataKind {
|
|
387
|
+
Shelley = 0,
|
|
388
|
+
ShelleyMA = 1,
|
|
389
|
+
Conway = 2,
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
*/
|
|
393
|
+
export enum RedeemerTag {
|
|
394
|
+
Spend = 0,
|
|
395
|
+
Mint = 1,
|
|
396
|
+
Cert = 2,
|
|
397
|
+
Reward = 3,
|
|
398
|
+
Voting = 4,
|
|
399
|
+
Proposing = 5,
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
*/
|
|
403
|
+
export enum CertificateKind {
|
|
404
|
+
StakeRegistration = 0,
|
|
405
|
+
StakeDeregistration = 1,
|
|
406
|
+
StakeDelegation = 2,
|
|
407
|
+
PoolRegistration = 3,
|
|
408
|
+
PoolRetirement = 4,
|
|
409
|
+
RegCert = 5,
|
|
410
|
+
UnregCert = 6,
|
|
411
|
+
VoteDelegCert = 7,
|
|
412
|
+
StakeVoteDelegCert = 8,
|
|
413
|
+
StakeRegDelegCert = 9,
|
|
414
|
+
VoteRegDelegCert = 10,
|
|
415
|
+
StakeVoteRegDelegCert = 11,
|
|
416
|
+
AuthCommitteeHotCert = 12,
|
|
417
|
+
ResignCommitteeColdCert = 13,
|
|
418
|
+
RegDrepCert = 14,
|
|
419
|
+
UnregDrepCert = 15,
|
|
420
|
+
UpdateDrepCert = 16,
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
*/
|
|
424
|
+
export enum RelayKind {
|
|
425
|
+
SingleHostAddr = 0,
|
|
426
|
+
SingleHostName = 1,
|
|
427
|
+
MultiHostName = 2,
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
*/
|
|
431
|
+
export enum DatumOptionKind {
|
|
432
|
+
Hash = 0,
|
|
433
|
+
Datum = 1,
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
*/
|
|
437
|
+
export enum PlutusDataKind {
|
|
438
|
+
ConstrPlutusData = 0,
|
|
439
|
+
Map = 1,
|
|
440
|
+
List = 2,
|
|
441
|
+
Integer = 3,
|
|
442
|
+
Bytes = 4,
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
*/
|
|
446
|
+
export enum ChangeSelectionAlgo {
|
|
447
|
+
Default = 0,
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
*/
|
|
479
451
|
export enum NativeScriptKind {
|
|
480
452
|
ScriptPubkey = 0,
|
|
481
453
|
ScriptAll = 1,
|
|
@@ -486,17 +458,45 @@ export enum NativeScriptKind {
|
|
|
486
458
|
}
|
|
487
459
|
/**
|
|
488
460
|
*/
|
|
489
|
-
export enum
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
MultiHostName = 2,
|
|
461
|
+
export enum TransactionOutputKind {
|
|
462
|
+
AlonzoFormatTxOut = 0,
|
|
463
|
+
ConwayFormatTxOut = 1,
|
|
493
464
|
}
|
|
494
465
|
/**
|
|
495
466
|
*/
|
|
496
|
-
export enum
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
467
|
+
export enum CredentialKind {
|
|
468
|
+
PubKey = 0,
|
|
469
|
+
Script = 1,
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
*/
|
|
473
|
+
export enum TransactionMetadatumKind {
|
|
474
|
+
Map = 0,
|
|
475
|
+
List = 1,
|
|
476
|
+
Int = 2,
|
|
477
|
+
Bytes = 3,
|
|
478
|
+
Text = 4,
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
*/
|
|
482
|
+
export enum StakeDistributionKind {
|
|
483
|
+
SingleKey = 0,
|
|
484
|
+
BootstrapEra = 1,
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
*/
|
|
488
|
+
export enum DRepKind {
|
|
489
|
+
Key = 0,
|
|
490
|
+
Script = 1,
|
|
491
|
+
AlwaysAbstain = 2,
|
|
492
|
+
AlwaysNoConfidence = 3,
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
*/
|
|
496
|
+
export enum SpendingDataKind {
|
|
497
|
+
SpendingDataPubKey = 0,
|
|
498
|
+
SpendingDataScript = 1,
|
|
499
|
+
SpendingDataRedeem = 2,
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
502
|
*/
|
|
@@ -771,78 +771,14 @@ 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 StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
|
|
781
|
-
/**
|
|
782
|
-
*/
|
|
783
|
-
export const ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
|
|
784
|
-
/**
|
|
785
|
-
*/
|
|
786
|
-
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", });
|
|
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 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
|
-
export const AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
|
|
802
|
-
/**
|
|
803
|
-
*/
|
|
804
|
-
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", });
|
|
805
|
-
/**
|
|
806
|
-
*/
|
|
807
|
-
export const Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
808
|
-
/**
|
|
809
|
-
*/
|
|
810
|
-
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
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",
|
|
774
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
823
775
|
/**
|
|
824
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
825
776
|
*/
|
|
826
|
-
|
|
777
|
+
export const DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
|
|
827
778
|
/**
|
|
828
779
|
*/
|
|
829
780
|
export const NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
|
|
830
781
|
/**
|
|
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", });
|
|
836
|
-
/**
|
|
837
|
-
*/
|
|
838
|
-
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", });
|
|
839
|
-
/**
|
|
840
|
-
*/
|
|
841
|
-
export const DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
|
|
842
|
-
/**
|
|
843
|
-
*/
|
|
844
|
-
export const TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
|
|
845
|
-
/**
|
|
846
782
|
* JSON <-> PlutusData conversion schemas.
|
|
847
783
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
848
784
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -895,7 +831,50 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
895
831
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
896
832
|
/**
|
|
897
833
|
*/
|
|
898
|
-
export const
|
|
834
|
+
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
835
|
+
/**
|
|
836
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
837
|
+
*/
|
|
838
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
839
|
+
/**
|
|
840
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
841
|
+
*/
|
|
842
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
843
|
+
/**
|
|
844
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
845
|
+
*/
|
|
846
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
847
|
+
/**
|
|
848
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
849
|
+
*/
|
|
850
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
851
|
+
/**
|
|
852
|
+
*/
|
|
853
|
+
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", });
|
|
854
|
+
/**
|
|
855
|
+
*/
|
|
856
|
+
export const ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
|
|
857
|
+
/**
|
|
858
|
+
*/
|
|
859
|
+
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", });
|
|
860
|
+
/**
|
|
861
|
+
*/
|
|
862
|
+
export const ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
|
|
863
|
+
/**
|
|
864
|
+
*/
|
|
865
|
+
export const Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
866
|
+
/**
|
|
867
|
+
* Careful: this enum doesn't include the network ID part of the header
|
|
868
|
+
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
869
|
+
* Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
|
|
870
|
+
*/
|
|
871
|
+
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", });
|
|
872
|
+
/**
|
|
873
|
+
*/
|
|
874
|
+
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", });
|
|
875
|
+
/**
|
|
876
|
+
*/
|
|
877
|
+
export const RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
|
|
899
878
|
/**
|
|
900
879
|
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
901
880
|
* This will change how things are encoded but for the most part contains
|
|
@@ -912,31 +891,52 @@ V1:0,"0":"V1",
|
|
|
912
891
|
V2:1,"1":"V2", });
|
|
913
892
|
/**
|
|
914
893
|
*/
|
|
915
|
-
export const
|
|
894
|
+
export const Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
916
895
|
/**
|
|
917
896
|
*/
|
|
918
|
-
export const
|
|
897
|
+
export const ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
|
|
919
898
|
/**
|
|
920
899
|
*/
|
|
921
|
-
export const
|
|
900
|
+
export const AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
|
|
922
901
|
/**
|
|
923
902
|
*/
|
|
924
|
-
export const
|
|
903
|
+
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", });
|
|
925
904
|
/**
|
|
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
905
|
*/
|
|
930
|
-
export const
|
|
906
|
+
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", });
|
|
907
|
+
/**
|
|
908
|
+
*/
|
|
909
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
910
|
+
/**
|
|
911
|
+
*/
|
|
912
|
+
export const DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
|
|
913
|
+
/**
|
|
914
|
+
*/
|
|
915
|
+
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", });
|
|
916
|
+
/**
|
|
917
|
+
*/
|
|
918
|
+
export const ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
|
|
931
919
|
/**
|
|
932
920
|
*/
|
|
933
921
|
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", });
|
|
934
922
|
/**
|
|
935
923
|
*/
|
|
936
|
-
export const
|
|
924
|
+
export const TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
|
|
937
925
|
/**
|
|
938
926
|
*/
|
|
939
|
-
export const
|
|
927
|
+
export const CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
|
|
928
|
+
/**
|
|
929
|
+
*/
|
|
930
|
+
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", });
|
|
931
|
+
/**
|
|
932
|
+
*/
|
|
933
|
+
export const StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
|
|
934
|
+
/**
|
|
935
|
+
*/
|
|
936
|
+
export const DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
937
|
+
/**
|
|
938
|
+
*/
|
|
939
|
+
export const SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
|
|
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-6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|