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