@anastasia-labs/cardano-multiplatform-lib-browser 6.0.0-1 → 6.0.0-3
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,43 +189,66 @@ 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
|
-
|
|
192
|
+
export enum ScriptKind {
|
|
193
|
+
Native = 0,
|
|
194
|
+
PlutusV1 = 1,
|
|
195
|
+
PlutusV2 = 2,
|
|
196
|
+
PlutusV3 = 3,
|
|
195
197
|
}
|
|
196
198
|
/**
|
|
197
199
|
*/
|
|
198
|
-
export enum
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
Integer = 3,
|
|
203
|
-
Bytes = 4,
|
|
200
|
+
export enum SpendingDataKind {
|
|
201
|
+
SpendingDataPubKey = 0,
|
|
202
|
+
SpendingDataScript = 1,
|
|
203
|
+
SpendingDataRedeem = 2,
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
206
|
*/
|
|
207
|
-
export enum
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
export enum StakeDistributionKind {
|
|
208
|
+
SingleKey = 0,
|
|
209
|
+
BootstrapEra = 1,
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
*/
|
|
213
|
-
export enum
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
export enum ChunkableStringKind {
|
|
214
|
+
Single = 0,
|
|
215
|
+
Chunked = 1,
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
218
|
*/
|
|
219
|
-
export enum
|
|
220
|
-
|
|
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,
|
|
221
237
|
}
|
|
222
238
|
/**
|
|
223
239
|
*/
|
|
224
|
-
export enum
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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,
|
|
229
252
|
}
|
|
230
253
|
/**
|
|
231
254
|
*/
|
|
@@ -239,12 +262,100 @@ export enum RedeemerTag {
|
|
|
239
262
|
}
|
|
240
263
|
/**
|
|
241
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
|
+
*/
|
|
242
292
|
export enum Vote {
|
|
243
293
|
No = 0,
|
|
244
294
|
Yes = 1,
|
|
245
295
|
Abstain = 2,
|
|
246
296
|
}
|
|
247
297
|
/**
|
|
298
|
+
*/
|
|
299
|
+
export enum CoinSelectionStrategyCIP2 {
|
|
300
|
+
/**
|
|
301
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
302
|
+
*/
|
|
303
|
+
LargestFirst = 0,
|
|
304
|
+
/**
|
|
305
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
306
|
+
*/
|
|
307
|
+
RandomImprove = 1,
|
|
308
|
+
/**
|
|
309
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
310
|
+
*/
|
|
311
|
+
LargestFirstMultiAsset = 2,
|
|
312
|
+
/**
|
|
313
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
314
|
+
*/
|
|
315
|
+
RandomImproveMultiAsset = 3,
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
*/
|
|
319
|
+
export enum NonceKind {
|
|
320
|
+
Identity = 0,
|
|
321
|
+
Hash = 1,
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
*/
|
|
325
|
+
export enum ChangeSelectionAlgo {
|
|
326
|
+
Default = 0,
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
*/
|
|
330
|
+
export enum TransactionMetadatumKind {
|
|
331
|
+
Map = 0,
|
|
332
|
+
List = 1,
|
|
333
|
+
Int = 2,
|
|
334
|
+
Bytes = 3,
|
|
335
|
+
Text = 4,
|
|
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
|
+
/**
|
|
248
359
|
* JSON <-> PlutusData conversion schemas.
|
|
249
360
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
250
361
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -298,66 +409,39 @@ export enum CardanoNodePlutusDatumSchema {
|
|
|
298
409
|
}
|
|
299
410
|
/**
|
|
300
411
|
*/
|
|
301
|
-
export enum
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
*/
|
|
307
|
-
export enum RedeemersKind {
|
|
308
|
-
ArrLegacyRedeemer = 0,
|
|
309
|
-
MapRedeemerKeyToRedeemerVal = 1,
|
|
412
|
+
export enum DelegationDistributionKind {
|
|
413
|
+
Weighted = 0,
|
|
414
|
+
Legacy = 1,
|
|
310
415
|
}
|
|
311
416
|
/**
|
|
417
|
+
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
418
|
+
* This will change how things are encoded but for the most part contains
|
|
419
|
+
* the same information.
|
|
312
420
|
*/
|
|
313
|
-
export enum
|
|
314
|
-
Base = 0,
|
|
315
|
-
Ptr = 1,
|
|
316
|
-
Enterprise = 2,
|
|
317
|
-
Reward = 3,
|
|
318
|
-
Byron = 4,
|
|
319
|
-
}
|
|
421
|
+
export enum CIP25Version {
|
|
320
422
|
/**
|
|
423
|
+
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
321
424
|
*/
|
|
322
|
-
|
|
323
|
-
StakeRegistration = 0,
|
|
324
|
-
StakeDeregistration = 1,
|
|
325
|
-
StakeDelegation = 2,
|
|
326
|
-
PoolRegistration = 3,
|
|
327
|
-
PoolRetirement = 4,
|
|
328
|
-
RegCert = 5,
|
|
329
|
-
UnregCert = 6,
|
|
330
|
-
VoteDelegCert = 7,
|
|
331
|
-
StakeVoteDelegCert = 8,
|
|
332
|
-
StakeRegDelegCert = 9,
|
|
333
|
-
VoteRegDelegCert = 10,
|
|
334
|
-
StakeVoteRegDelegCert = 11,
|
|
335
|
-
AuthCommitteeHotCert = 12,
|
|
336
|
-
ResignCommitteeColdCert = 13,
|
|
337
|
-
RegDrepCert = 14,
|
|
338
|
-
UnregDrepCert = 15,
|
|
339
|
-
UpdateDrepCert = 16,
|
|
340
|
-
}
|
|
425
|
+
V1 = 0,
|
|
341
426
|
/**
|
|
427
|
+
* Second version of CIP25. Supports any type of asset names.
|
|
342
428
|
*/
|
|
343
|
-
|
|
344
|
-
ConstitutionalCommitteeHotKeyHash = 0,
|
|
345
|
-
ConstitutionalCommitteeHotScriptHash = 1,
|
|
346
|
-
DRepKeyHash = 2,
|
|
347
|
-
DRepScriptHash = 3,
|
|
348
|
-
StakingPoolKeyHash = 4,
|
|
429
|
+
V2 = 1,
|
|
349
430
|
}
|
|
350
431
|
/**
|
|
351
432
|
*/
|
|
352
|
-
export enum
|
|
353
|
-
|
|
354
|
-
|
|
433
|
+
export enum CredentialKind {
|
|
434
|
+
PubKey = 0,
|
|
435
|
+
Script = 1,
|
|
355
436
|
}
|
|
356
437
|
/**
|
|
357
438
|
*/
|
|
358
|
-
export enum
|
|
359
|
-
|
|
360
|
-
|
|
439
|
+
export enum PlutusDataKind {
|
|
440
|
+
ConstrPlutusData = 0,
|
|
441
|
+
Map = 1,
|
|
442
|
+
List = 2,
|
|
443
|
+
Integer = 3,
|
|
444
|
+
Bytes = 4,
|
|
361
445
|
}
|
|
362
446
|
/**
|
|
363
447
|
*/
|
|
@@ -368,68 +452,9 @@ export enum ByronAddrType {
|
|
|
368
452
|
}
|
|
369
453
|
/**
|
|
370
454
|
*/
|
|
371
|
-
export enum
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
*/
|
|
377
|
-
export enum AuxiliaryDataKind {
|
|
378
|
-
Shelley = 0,
|
|
379
|
-
ShelleyMA = 1,
|
|
380
|
-
Conway = 2,
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
*/
|
|
384
|
-
export enum GovActionKind {
|
|
385
|
-
ParameterChangeAction = 0,
|
|
386
|
-
HardForkInitiationAction = 1,
|
|
387
|
-
TreasuryWithdrawalsAction = 2,
|
|
388
|
-
NoConfidence = 3,
|
|
389
|
-
UpdateCommittee = 4,
|
|
390
|
-
NewConstitution = 5,
|
|
391
|
-
InfoAction = 6,
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
*/
|
|
395
|
-
export enum TransactionMetadatumKind {
|
|
396
|
-
Map = 0,
|
|
397
|
-
List = 1,
|
|
398
|
-
Int = 2,
|
|
399
|
-
Bytes = 3,
|
|
400
|
-
Text = 4,
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
*/
|
|
404
|
-
export enum NativeScriptKind {
|
|
405
|
-
ScriptPubkey = 0,
|
|
406
|
-
ScriptAll = 1,
|
|
407
|
-
ScriptAny = 2,
|
|
408
|
-
ScriptNOfK = 3,
|
|
409
|
-
ScriptInvalidBefore = 4,
|
|
410
|
-
ScriptInvalidHereafter = 5,
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
*/
|
|
414
|
-
export enum Language {
|
|
415
|
-
PlutusV1 = 0,
|
|
416
|
-
PlutusV2 = 1,
|
|
417
|
-
PlutusV3 = 2,
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
*/
|
|
421
|
-
export enum DRepKind {
|
|
422
|
-
Key = 0,
|
|
423
|
-
Script = 1,
|
|
424
|
-
AlwaysAbstain = 2,
|
|
425
|
-
AlwaysNoConfidence = 3,
|
|
426
|
-
}
|
|
427
|
-
/**
|
|
428
|
-
*/
|
|
429
|
-
export enum MetadataJsonSchema {
|
|
430
|
-
NoConversions = 0,
|
|
431
|
-
BasicConversions = 1,
|
|
432
|
-
DetailedSchema = 2,
|
|
455
|
+
export enum RedeemersKind {
|
|
456
|
+
ArrLegacyRedeemer = 0,
|
|
457
|
+
MapRedeemerKeyToRedeemerVal = 1,
|
|
433
458
|
}
|
|
434
459
|
/**
|
|
435
460
|
* Careful: this enum doesn't include the network ID part of the header
|
|
@@ -451,52 +476,27 @@ export enum AddressHeaderKind {
|
|
|
451
476
|
}
|
|
452
477
|
/**
|
|
453
478
|
*/
|
|
479
|
+
export enum NativeScriptKind {
|
|
480
|
+
ScriptPubkey = 0,
|
|
481
|
+
ScriptAll = 1,
|
|
482
|
+
ScriptAny = 2,
|
|
483
|
+
ScriptNOfK = 3,
|
|
484
|
+
ScriptInvalidBefore = 4,
|
|
485
|
+
ScriptInvalidHereafter = 5,
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
*/
|
|
454
489
|
export enum RelayKind {
|
|
455
490
|
SingleHostAddr = 0,
|
|
456
491
|
SingleHostName = 1,
|
|
457
492
|
MultiHostName = 2,
|
|
458
493
|
}
|
|
459
494
|
/**
|
|
460
|
-
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
461
|
-
* This will change how things are encoded but for the most part contains
|
|
462
|
-
* the same information.
|
|
463
|
-
*/
|
|
464
|
-
export enum CIP25Version {
|
|
465
|
-
/**
|
|
466
|
-
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
467
|
-
*/
|
|
468
|
-
V1 = 0,
|
|
469
|
-
/**
|
|
470
|
-
* Second version of CIP25. Supports any type of asset names.
|
|
471
|
-
*/
|
|
472
|
-
V2 = 1,
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
*/
|
|
476
|
-
export enum CoinSelectionStrategyCIP2 {
|
|
477
|
-
/**
|
|
478
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
479
|
-
*/
|
|
480
|
-
LargestFirst = 0,
|
|
481
|
-
/**
|
|
482
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
483
|
-
*/
|
|
484
|
-
RandomImprove = 1,
|
|
485
|
-
/**
|
|
486
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
487
495
|
*/
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
RandomImproveMultiAsset = 3,
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
*/
|
|
496
|
-
export enum SpendingDataKind {
|
|
497
|
-
SpendingDataPubKey = 0,
|
|
498
|
-
SpendingDataScript = 1,
|
|
499
|
-
SpendingDataRedeem = 2,
|
|
496
|
+
export enum MetadataJsonSchema {
|
|
497
|
+
NoConversions = 0,
|
|
498
|
+
BasicConversions = 1,
|
|
499
|
+
DetailedSchema = 2,
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
502
|
*/
|
|
@@ -771,29 +771,78 @@ function getArrayU64FromWasm0(ptr, len) {
|
|
|
771
771
|
}
|
|
772
772
|
/**
|
|
773
773
|
*/
|
|
774
|
-
export const
|
|
774
|
+
export const ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
|
|
775
775
|
/**
|
|
776
776
|
*/
|
|
777
|
-
export const
|
|
777
|
+
export const SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
|
|
778
778
|
/**
|
|
779
779
|
*/
|
|
780
|
-
export const
|
|
780
|
+
export const StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
|
|
781
781
|
/**
|
|
782
782
|
*/
|
|
783
|
-
export const
|
|
783
|
+
export const ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
|
|
784
784
|
/**
|
|
785
785
|
*/
|
|
786
|
-
export const
|
|
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
787
|
/**
|
|
788
788
|
*/
|
|
789
|
-
export const
|
|
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", });
|
|
790
793
|
/**
|
|
791
794
|
*/
|
|
792
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", });
|
|
793
796
|
/**
|
|
794
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
|
+
*/
|
|
795
807
|
export const Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
796
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",
|
|
823
|
+
/**
|
|
824
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
825
|
+
*/
|
|
826
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
827
|
+
/**
|
|
828
|
+
*/
|
|
829
|
+
export const NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
|
|
830
|
+
/**
|
|
831
|
+
*/
|
|
832
|
+
export const ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
|
|
833
|
+
/**
|
|
834
|
+
*/
|
|
835
|
+
export const TransactionMetadatumKind = Object.freeze({ Map:0,"0":"Map",List:1,"1":"List",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
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
|
+
/**
|
|
797
846
|
* JSON <-> PlutusData conversion schemas.
|
|
798
847
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
799
848
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -846,52 +895,33 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
846
895
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
847
896
|
/**
|
|
848
897
|
*/
|
|
849
|
-
export const
|
|
850
|
-
/**
|
|
851
|
-
*/
|
|
852
|
-
export const RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
|
|
898
|
+
export const DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
|
|
853
899
|
/**
|
|
900
|
+
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
901
|
+
* This will change how things are encoded but for the most part contains
|
|
902
|
+
* the same information.
|
|
854
903
|
*/
|
|
855
|
-
export const
|
|
904
|
+
export const CIP25Version = Object.freeze({
|
|
856
905
|
/**
|
|
906
|
+
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
857
907
|
*/
|
|
858
|
-
|
|
908
|
+
V1:0,"0":"V1",
|
|
859
909
|
/**
|
|
910
|
+
* Second version of CIP25. Supports any type of asset names.
|
|
860
911
|
*/
|
|
861
|
-
|
|
912
|
+
V2:1,"1":"V2", });
|
|
862
913
|
/**
|
|
863
914
|
*/
|
|
864
|
-
export const
|
|
915
|
+
export const CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
|
|
865
916
|
/**
|
|
866
917
|
*/
|
|
867
|
-
export const
|
|
918
|
+
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", });
|
|
868
919
|
/**
|
|
869
920
|
*/
|
|
870
921
|
export const ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
|
|
871
922
|
/**
|
|
872
923
|
*/
|
|
873
|
-
export const
|
|
874
|
-
/**
|
|
875
|
-
*/
|
|
876
|
-
export const AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
|
|
877
|
-
/**
|
|
878
|
-
*/
|
|
879
|
-
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", });
|
|
880
|
-
/**
|
|
881
|
-
*/
|
|
882
|
-
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", });
|
|
883
|
-
/**
|
|
884
|
-
*/
|
|
885
|
-
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", });
|
|
886
|
-
/**
|
|
887
|
-
*/
|
|
888
|
-
export const Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
889
|
-
/**
|
|
890
|
-
*/
|
|
891
|
-
export const DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
892
|
-
/**
|
|
893
|
-
*/
|
|
894
|
-
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
924
|
+
export const RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
|
|
895
925
|
/**
|
|
896
926
|
* Careful: this enum doesn't include the network ID part of the header
|
|
897
927
|
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
@@ -900,43 +930,13 @@ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConvers
|
|
|
900
930
|
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", });
|
|
901
931
|
/**
|
|
902
932
|
*/
|
|
903
|
-
export const
|
|
904
|
-
/**
|
|
905
|
-
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
906
|
-
* This will change how things are encoded but for the most part contains
|
|
907
|
-
* the same information.
|
|
908
|
-
*/
|
|
909
|
-
export const CIP25Version = Object.freeze({
|
|
910
|
-
/**
|
|
911
|
-
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
912
|
-
*/
|
|
913
|
-
V1:0,"0":"V1",
|
|
914
|
-
/**
|
|
915
|
-
* Second version of CIP25. Supports any type of asset names.
|
|
916
|
-
*/
|
|
917
|
-
V2:1,"1":"V2", });
|
|
918
|
-
/**
|
|
919
|
-
*/
|
|
920
|
-
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
921
|
-
/**
|
|
922
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
923
|
-
*/
|
|
924
|
-
LargestFirst:0,"0":"LargestFirst",
|
|
925
|
-
/**
|
|
926
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
927
|
-
*/
|
|
928
|
-
RandomImprove:1,"1":"RandomImprove",
|
|
929
|
-
/**
|
|
930
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
931
|
-
*/
|
|
932
|
-
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
933
|
+
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", });
|
|
933
934
|
/**
|
|
934
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
935
935
|
*/
|
|
936
|
-
|
|
936
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
937
937
|
/**
|
|
938
938
|
*/
|
|
939
|
-
export const
|
|
939
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
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-3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|