@lucid-evolution/utils 0.1.35 → 0.1.37

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.
package/dist/index.js CHANGED
@@ -109,6 +109,47 @@ var applyDoubleCborEncoding = (script) => {
109
109
  return toHex(encode(fromHex(script)));
110
110
  }
111
111
  };
112
+ function datumJsonToCbor(json) {
113
+ const convert = (json2) => {
114
+ if (!isNaN(json2.int)) {
115
+ const plutusBigInt = CML.BigInteger.from_str(json2.int.toString());
116
+ return CML.PlutusData.new_integer(plutusBigInt);
117
+ } else if (json2.bytes || !isNaN(Number(json2.bytes))) {
118
+ return CML.PlutusData.new_bytes(fromHex(json2.bytes));
119
+ } else if (json2.list) {
120
+ const l = CML.PlutusDataList.new();
121
+ json2.list.forEach((v) => {
122
+ l.add(convert(v));
123
+ });
124
+ return CML.PlutusData.new_list(l);
125
+ } else if (json2.map && json2.map.length > 0 && typeof json2.map[0] === "object") {
126
+ const m = CML.PlutusMap.new();
127
+ json2.map.forEach(({ k, v }) => {
128
+ m.set(convert(k), convert(v));
129
+ });
130
+ return CML.PlutusData.new_map(m);
131
+ } else if (json2.map && typeof json2.map === "function") {
132
+ const l = CML.PlutusDataList.new();
133
+ Object.values(json2).forEach((value) => {
134
+ l.add(convert(value));
135
+ });
136
+ return CML.PlutusData.new_list(l);
137
+ } else if (!isNaN(json2.constructor)) {
138
+ const l = CML.PlutusDataList.new();
139
+ json2.fields.forEach((v) => {
140
+ l.add(convert(v));
141
+ });
142
+ const bigInt = CML.BigInteger.from_str(
143
+ json2.constructor.toString()
144
+ ).as_u64();
145
+ return CML.PlutusData.new_constr_plutus_data(
146
+ CML.ConstrPlutusData.new(bigInt, l)
147
+ );
148
+ }
149
+ throw new Error("Unsupported type");
150
+ };
151
+ return convert(json).to_cbor_hex();
152
+ }
112
153
 
113
154
  // src/scripts.ts
114
155
  import { Data } from "@lucid-evolution/plutus";
@@ -201,6 +242,11 @@ function fromScriptRef(scriptRef) {
201
242
  type: "PlutusV2",
202
243
  script: scriptRef.as_plutus_v2().to_cbor_hex()
203
244
  };
245
+ case 3:
246
+ return {
247
+ type: "PlutusV3",
248
+ script: scriptRef.as_plutus_v3().to_cbor_hex()
249
+ };
204
250
  default:
205
251
  throw new Error("No variant matched.");
206
252
  }
@@ -428,349 +474,602 @@ var PROTOCOL_PARAMETERS_DEFAULT = {
428
474
  maxCollateralInputs: 3,
429
475
  costModels: {
430
476
  PlutusV1: {
431
- "addInteger-cpu-arguments-intercept": 205665,
432
- "addInteger-cpu-arguments-slope": 812,
433
- "addInteger-memory-arguments-intercept": 1,
434
- "addInteger-memory-arguments-slope": 1,
435
- "appendByteString-cpu-arguments-intercept": 1e3,
436
- "appendByteString-cpu-arguments-slope": 571,
437
- "appendByteString-memory-arguments-intercept": 0,
438
- "appendByteString-memory-arguments-slope": 1,
439
- "appendString-cpu-arguments-intercept": 1e3,
440
- "appendString-cpu-arguments-slope": 24177,
441
- "appendString-memory-arguments-intercept": 4,
442
- "appendString-memory-arguments-slope": 1,
443
- "bData-cpu-arguments": 1e3,
444
- "bData-memory-arguments": 32,
445
- "blake2b_256-cpu-arguments-intercept": 117366,
446
- "blake2b_256-cpu-arguments-slope": 10475,
447
- "blake2b_256-memory-arguments": 4,
448
- "cekApplyCost-exBudgetCPU": 23e3,
449
- "cekApplyCost-exBudgetMemory": 100,
450
- "cekBuiltinCost-exBudgetCPU": 23e3,
451
- "cekBuiltinCost-exBudgetMemory": 100,
452
- "cekConstCost-exBudgetCPU": 23e3,
453
- "cekConstCost-exBudgetMemory": 100,
454
- "cekDelayCost-exBudgetCPU": 23e3,
455
- "cekDelayCost-exBudgetMemory": 100,
456
- "cekForceCost-exBudgetCPU": 23e3,
457
- "cekForceCost-exBudgetMemory": 100,
458
- "cekLamCost-exBudgetCPU": 23e3,
459
- "cekLamCost-exBudgetMemory": 100,
460
- "cekStartupCost-exBudgetCPU": 100,
461
- "cekStartupCost-exBudgetMemory": 100,
462
- "cekVarCost-exBudgetCPU": 23e3,
463
- "cekVarCost-exBudgetMemory": 100,
464
- "chooseData-cpu-arguments": 19537,
465
- "chooseData-memory-arguments": 32,
466
- "chooseList-cpu-arguments": 175354,
467
- "chooseList-memory-arguments": 32,
468
- "chooseUnit-cpu-arguments": 46417,
469
- "chooseUnit-memory-arguments": 4,
470
- "consByteString-cpu-arguments-intercept": 221973,
471
- "consByteString-cpu-arguments-slope": 511,
472
- "consByteString-memory-arguments-intercept": 0,
473
- "consByteString-memory-arguments-slope": 1,
474
- "constrData-cpu-arguments": 89141,
475
- "constrData-memory-arguments": 32,
476
- "decodeUtf8-cpu-arguments-intercept": 497525,
477
- "decodeUtf8-cpu-arguments-slope": 14068,
478
- "decodeUtf8-memory-arguments-intercept": 4,
479
- "decodeUtf8-memory-arguments-slope": 2,
480
- "divideInteger-cpu-arguments-constant": 196500,
481
- "divideInteger-cpu-arguments-model-arguments-intercept": 453240,
482
- "divideInteger-cpu-arguments-model-arguments-slope": 220,
483
- "divideInteger-memory-arguments-intercept": 0,
484
- "divideInteger-memory-arguments-minimum": 1,
485
- "divideInteger-memory-arguments-slope": 1,
486
- "encodeUtf8-cpu-arguments-intercept": 1e3,
487
- "encodeUtf8-cpu-arguments-slope": 28662,
488
- "encodeUtf8-memory-arguments-intercept": 4,
489
- "encodeUtf8-memory-arguments-slope": 2,
490
- "equalsByteString-cpu-arguments-constant": 245e3,
491
- "equalsByteString-cpu-arguments-intercept": 216773,
492
- "equalsByteString-cpu-arguments-slope": 62,
493
- "equalsByteString-memory-arguments": 1,
494
- "equalsData-cpu-arguments-intercept": 1060367,
495
- "equalsData-cpu-arguments-slope": 12586,
496
- "equalsData-memory-arguments": 1,
497
- "equalsInteger-cpu-arguments-intercept": 208512,
498
- "equalsInteger-cpu-arguments-slope": 421,
499
- "equalsInteger-memory-arguments": 1,
500
- "equalsString-cpu-arguments-constant": 187e3,
501
- "equalsString-cpu-arguments-intercept": 1e3,
502
- "equalsString-cpu-arguments-slope": 52998,
503
- "equalsString-memory-arguments": 1,
504
- "fstPair-cpu-arguments": 80436,
505
- "fstPair-memory-arguments": 32,
506
- "headList-cpu-arguments": 43249,
507
- "headList-memory-arguments": 32,
508
- "iData-cpu-arguments": 1e3,
509
- "iData-memory-arguments": 32,
510
- "ifThenElse-cpu-arguments": 80556,
511
- "ifThenElse-memory-arguments": 1,
512
- "indexByteString-cpu-arguments": 57667,
513
- "indexByteString-memory-arguments": 4,
514
- "lengthOfByteString-cpu-arguments": 1e3,
515
- "lengthOfByteString-memory-arguments": 10,
516
- "lessThanByteString-cpu-arguments-intercept": 197145,
517
- "lessThanByteString-cpu-arguments-slope": 156,
518
- "lessThanByteString-memory-arguments": 1,
519
- "lessThanEqualsByteString-cpu-arguments-intercept": 197145,
520
- "lessThanEqualsByteString-cpu-arguments-slope": 156,
521
- "lessThanEqualsByteString-memory-arguments": 1,
522
- "lessThanEqualsInteger-cpu-arguments-intercept": 204924,
523
- "lessThanEqualsInteger-cpu-arguments-slope": 473,
524
- "lessThanEqualsInteger-memory-arguments": 1,
525
- "lessThanInteger-cpu-arguments-intercept": 208896,
526
- "lessThanInteger-cpu-arguments-slope": 511,
527
- "lessThanInteger-memory-arguments": 1,
528
- "listData-cpu-arguments": 52467,
529
- "listData-memory-arguments": 32,
530
- "mapData-cpu-arguments": 64832,
531
- "mapData-memory-arguments": 32,
532
- "mkCons-cpu-arguments": 65493,
533
- "mkCons-memory-arguments": 32,
534
- "mkNilData-cpu-arguments": 22558,
535
- "mkNilData-memory-arguments": 32,
536
- "mkNilPairData-cpu-arguments": 16563,
537
- "mkNilPairData-memory-arguments": 32,
538
- "mkPairData-cpu-arguments": 76511,
539
- "mkPairData-memory-arguments": 32,
540
- "modInteger-cpu-arguments-constant": 196500,
541
- "modInteger-cpu-arguments-model-arguments-intercept": 453240,
542
- "modInteger-cpu-arguments-model-arguments-slope": 220,
543
- "modInteger-memory-arguments-intercept": 0,
544
- "modInteger-memory-arguments-minimum": 1,
545
- "modInteger-memory-arguments-slope": 1,
546
- "multiplyInteger-cpu-arguments-intercept": 69522,
547
- "multiplyInteger-cpu-arguments-slope": 11687,
548
- "multiplyInteger-memory-arguments-intercept": 0,
549
- "multiplyInteger-memory-arguments-slope": 1,
550
- "nullList-cpu-arguments": 60091,
551
- "nullList-memory-arguments": 32,
552
- "quotientInteger-cpu-arguments-constant": 196500,
553
- "quotientInteger-cpu-arguments-model-arguments-intercept": 453240,
554
- "quotientInteger-cpu-arguments-model-arguments-slope": 220,
555
- "quotientInteger-memory-arguments-intercept": 0,
556
- "quotientInteger-memory-arguments-minimum": 1,
557
- "quotientInteger-memory-arguments-slope": 1,
558
- "remainderInteger-cpu-arguments-constant": 196500,
559
- "remainderInteger-cpu-arguments-model-arguments-intercept": 453240,
560
- "remainderInteger-cpu-arguments-model-arguments-slope": 220,
561
- "remainderInteger-memory-arguments-intercept": 0,
562
- "remainderInteger-memory-arguments-minimum": 1,
563
- "remainderInteger-memory-arguments-slope": 1,
564
- "sha2_256-cpu-arguments-intercept": 806990,
565
- "sha2_256-cpu-arguments-slope": 30482,
566
- "sha2_256-memory-arguments": 4,
567
- "sha3_256-cpu-arguments-intercept": 1927926,
568
- "sha3_256-cpu-arguments-slope": 82523,
569
- "sha3_256-memory-arguments": 4,
570
- "sliceByteString-cpu-arguments-intercept": 265318,
571
- "sliceByteString-cpu-arguments-slope": 0,
572
- "sliceByteString-memory-arguments-intercept": 4,
573
- "sliceByteString-memory-arguments-slope": 0,
574
- "sndPair-cpu-arguments": 85931,
575
- "sndPair-memory-arguments": 32,
576
- "subtractInteger-cpu-arguments-intercept": 205665,
577
- "subtractInteger-cpu-arguments-slope": 812,
578
- "subtractInteger-memory-arguments-intercept": 1,
579
- "subtractInteger-memory-arguments-slope": 1,
580
- "tailList-cpu-arguments": 41182,
581
- "tailList-memory-arguments": 32,
582
- "trace-cpu-arguments": 212342,
583
- "trace-memory-arguments": 32,
584
- "unBData-cpu-arguments": 31220,
585
- "unBData-memory-arguments": 32,
586
- "unConstrData-cpu-arguments": 32696,
587
- "unConstrData-memory-arguments": 32,
588
- "unIData-cpu-arguments": 43357,
589
- "unIData-memory-arguments": 32,
590
- "unListData-cpu-arguments": 32247,
591
- "unListData-memory-arguments": 32,
592
- "unMapData-cpu-arguments": 38314,
593
- "unMapData-memory-arguments": 32,
594
- "verifyEd25519Signature-cpu-arguments-intercept": 9462713,
595
- "verifyEd25519Signature-cpu-arguments-slope": 1021,
596
- "verifyEd25519Signature-memory-arguments": 10
477
+ "0": 100788,
478
+ "1": 420,
479
+ "2": 1,
480
+ "3": 1,
481
+ "4": 1e3,
482
+ "5": 173,
483
+ "6": 0,
484
+ "7": 1,
485
+ "8": 1e3,
486
+ "9": 59957,
487
+ "10": 4,
488
+ "11": 1,
489
+ "12": 11183,
490
+ "13": 32,
491
+ "14": 201305,
492
+ "15": 8356,
493
+ "16": 4,
494
+ "17": 16e3,
495
+ "18": 100,
496
+ "19": 16e3,
497
+ "20": 100,
498
+ "21": 16e3,
499
+ "22": 100,
500
+ "23": 16e3,
501
+ "24": 100,
502
+ "25": 16e3,
503
+ "26": 100,
504
+ "27": 16e3,
505
+ "28": 100,
506
+ "29": 100,
507
+ "30": 100,
508
+ "31": 16e3,
509
+ "32": 100,
510
+ "33": 94375,
511
+ "34": 32,
512
+ "35": 132994,
513
+ "36": 32,
514
+ "37": 61462,
515
+ "38": 4,
516
+ "39": 72010,
517
+ "40": 178,
518
+ "41": 0,
519
+ "42": 1,
520
+ "43": 22151,
521
+ "44": 32,
522
+ "45": 91189,
523
+ "46": 769,
524
+ "47": 4,
525
+ "48": 2,
526
+ "49": 85848,
527
+ "50": 228465,
528
+ "51": 122,
529
+ "52": 0,
530
+ "53": 1,
531
+ "54": 1,
532
+ "55": 1e3,
533
+ "56": 42921,
534
+ "57": 4,
535
+ "58": 2,
536
+ "59": 24548,
537
+ "60": 29498,
538
+ "61": 38,
539
+ "62": 1,
540
+ "63": 898148,
541
+ "64": 27279,
542
+ "65": 1,
543
+ "66": 51775,
544
+ "67": 558,
545
+ "68": 1,
546
+ "69": 39184,
547
+ "70": 1e3,
548
+ "71": 60594,
549
+ "72": 1,
550
+ "73": 141895,
551
+ "74": 32,
552
+ "75": 83150,
553
+ "76": 32,
554
+ "77": 15299,
555
+ "78": 32,
556
+ "79": 76049,
557
+ "80": 1,
558
+ "81": 13169,
559
+ "82": 4,
560
+ "83": 22100,
561
+ "84": 10,
562
+ "85": 28999,
563
+ "86": 74,
564
+ "87": 1,
565
+ "88": 28999,
566
+ "89": 74,
567
+ "90": 1,
568
+ "91": 43285,
569
+ "92": 552,
570
+ "93": 1,
571
+ "94": 44749,
572
+ "95": 541,
573
+ "96": 1,
574
+ "97": 33852,
575
+ "98": 32,
576
+ "99": 68246,
577
+ "100": 32,
578
+ "101": 72362,
579
+ "102": 32,
580
+ "103": 7243,
581
+ "104": 32,
582
+ "105": 7391,
583
+ "106": 32,
584
+ "107": 11546,
585
+ "108": 32,
586
+ "109": 85848,
587
+ "110": 228465,
588
+ "111": 122,
589
+ "112": 0,
590
+ "113": 1,
591
+ "114": 1,
592
+ "115": 90434,
593
+ "116": 519,
594
+ "117": 0,
595
+ "118": 1,
596
+ "119": 74433,
597
+ "120": 32,
598
+ "121": 85848,
599
+ "122": 228465,
600
+ "123": 122,
601
+ "124": 0,
602
+ "125": 1,
603
+ "126": 1,
604
+ "127": 85848,
605
+ "128": 228465,
606
+ "129": 122,
607
+ "130": 0,
608
+ "131": 1,
609
+ "132": 1,
610
+ "133": 270652,
611
+ "134": 22588,
612
+ "135": 4,
613
+ "136": 1457325,
614
+ "137": 64566,
615
+ "138": 4,
616
+ "139": 20467,
617
+ "140": 1,
618
+ "141": 4,
619
+ "142": 0,
620
+ "143": 141992,
621
+ "144": 32,
622
+ "145": 100788,
623
+ "146": 420,
624
+ "147": 1,
625
+ "148": 1,
626
+ "149": 81663,
627
+ "150": 32,
628
+ "151": 59498,
629
+ "152": 32,
630
+ "153": 20142,
631
+ "154": 32,
632
+ "155": 24588,
633
+ "156": 32,
634
+ "157": 20744,
635
+ "158": 32,
636
+ "159": 25933,
637
+ "160": 32,
638
+ "161": 24623,
639
+ "162": 32,
640
+ "163": 53384111,
641
+ "164": 14333,
642
+ "165": 10
597
643
  },
598
644
  PlutusV2: {
599
- "addInteger-cpu-arguments-intercept": 205665,
600
- "addInteger-cpu-arguments-slope": 812,
601
- "addInteger-memory-arguments-intercept": 1,
602
- "addInteger-memory-arguments-slope": 1,
603
- "appendByteString-cpu-arguments-intercept": 1e3,
604
- "appendByteString-cpu-arguments-slope": 571,
605
- "appendByteString-memory-arguments-intercept": 0,
606
- "appendByteString-memory-arguments-slope": 1,
607
- "appendString-cpu-arguments-intercept": 1e3,
608
- "appendString-cpu-arguments-slope": 24177,
609
- "appendString-memory-arguments-intercept": 4,
610
- "appendString-memory-arguments-slope": 1,
611
- "bData-cpu-arguments": 1e3,
612
- "bData-memory-arguments": 32,
613
- "blake2b_256-cpu-arguments-intercept": 117366,
614
- "blake2b_256-cpu-arguments-slope": 10475,
615
- "blake2b_256-memory-arguments": 4,
616
- "cekApplyCost-exBudgetCPU": 23e3,
617
- "cekApplyCost-exBudgetMemory": 100,
618
- "cekBuiltinCost-exBudgetCPU": 23e3,
619
- "cekBuiltinCost-exBudgetMemory": 100,
620
- "cekConstCost-exBudgetCPU": 23e3,
621
- "cekConstCost-exBudgetMemory": 100,
622
- "cekDelayCost-exBudgetCPU": 23e3,
623
- "cekDelayCost-exBudgetMemory": 100,
624
- "cekForceCost-exBudgetCPU": 23e3,
625
- "cekForceCost-exBudgetMemory": 100,
626
- "cekLamCost-exBudgetCPU": 23e3,
627
- "cekLamCost-exBudgetMemory": 100,
628
- "cekStartupCost-exBudgetCPU": 100,
629
- "cekStartupCost-exBudgetMemory": 100,
630
- "cekVarCost-exBudgetCPU": 23e3,
631
- "cekVarCost-exBudgetMemory": 100,
632
- "chooseData-cpu-arguments": 19537,
633
- "chooseData-memory-arguments": 32,
634
- "chooseList-cpu-arguments": 175354,
635
- "chooseList-memory-arguments": 32,
636
- "chooseUnit-cpu-arguments": 46417,
637
- "chooseUnit-memory-arguments": 4,
638
- "consByteString-cpu-arguments-intercept": 221973,
639
- "consByteString-cpu-arguments-slope": 511,
640
- "consByteString-memory-arguments-intercept": 0,
641
- "consByteString-memory-arguments-slope": 1,
642
- "constrData-cpu-arguments": 89141,
643
- "constrData-memory-arguments": 32,
644
- "decodeUtf8-cpu-arguments-intercept": 497525,
645
- "decodeUtf8-cpu-arguments-slope": 14068,
646
- "decodeUtf8-memory-arguments-intercept": 4,
647
- "decodeUtf8-memory-arguments-slope": 2,
648
- "divideInteger-cpu-arguments-constant": 196500,
649
- "divideInteger-cpu-arguments-model-arguments-intercept": 453240,
650
- "divideInteger-cpu-arguments-model-arguments-slope": 220,
651
- "divideInteger-memory-arguments-intercept": 0,
652
- "divideInteger-memory-arguments-minimum": 1,
653
- "divideInteger-memory-arguments-slope": 1,
654
- "encodeUtf8-cpu-arguments-intercept": 1e3,
655
- "encodeUtf8-cpu-arguments-slope": 28662,
656
- "encodeUtf8-memory-arguments-intercept": 4,
657
- "encodeUtf8-memory-arguments-slope": 2,
658
- "equalsByteString-cpu-arguments-constant": 245e3,
659
- "equalsByteString-cpu-arguments-intercept": 216773,
660
- "equalsByteString-cpu-arguments-slope": 62,
661
- "equalsByteString-memory-arguments": 1,
662
- "equalsData-cpu-arguments-intercept": 1060367,
663
- "equalsData-cpu-arguments-slope": 12586,
664
- "equalsData-memory-arguments": 1,
665
- "equalsInteger-cpu-arguments-intercept": 208512,
666
- "equalsInteger-cpu-arguments-slope": 421,
667
- "equalsInteger-memory-arguments": 1,
668
- "equalsString-cpu-arguments-constant": 187e3,
669
- "equalsString-cpu-arguments-intercept": 1e3,
670
- "equalsString-cpu-arguments-slope": 52998,
671
- "equalsString-memory-arguments": 1,
672
- "fstPair-cpu-arguments": 80436,
673
- "fstPair-memory-arguments": 32,
674
- "headList-cpu-arguments": 43249,
675
- "headList-memory-arguments": 32,
676
- "iData-cpu-arguments": 1e3,
677
- "iData-memory-arguments": 32,
678
- "ifThenElse-cpu-arguments": 80556,
679
- "ifThenElse-memory-arguments": 1,
680
- "indexByteString-cpu-arguments": 57667,
681
- "indexByteString-memory-arguments": 4,
682
- "lengthOfByteString-cpu-arguments": 1e3,
683
- "lengthOfByteString-memory-arguments": 10,
684
- "lessThanByteString-cpu-arguments-intercept": 197145,
685
- "lessThanByteString-cpu-arguments-slope": 156,
686
- "lessThanByteString-memory-arguments": 1,
687
- "lessThanEqualsByteString-cpu-arguments-intercept": 197145,
688
- "lessThanEqualsByteString-cpu-arguments-slope": 156,
689
- "lessThanEqualsByteString-memory-arguments": 1,
690
- "lessThanEqualsInteger-cpu-arguments-intercept": 204924,
691
- "lessThanEqualsInteger-cpu-arguments-slope": 473,
692
- "lessThanEqualsInteger-memory-arguments": 1,
693
- "lessThanInteger-cpu-arguments-intercept": 208896,
694
- "lessThanInteger-cpu-arguments-slope": 511,
695
- "lessThanInteger-memory-arguments": 1,
696
- "listData-cpu-arguments": 52467,
697
- "listData-memory-arguments": 32,
698
- "mapData-cpu-arguments": 64832,
699
- "mapData-memory-arguments": 32,
700
- "mkCons-cpu-arguments": 65493,
701
- "mkCons-memory-arguments": 32,
702
- "mkNilData-cpu-arguments": 22558,
703
- "mkNilData-memory-arguments": 32,
704
- "mkNilPairData-cpu-arguments": 16563,
705
- "mkNilPairData-memory-arguments": 32,
706
- "mkPairData-cpu-arguments": 76511,
707
- "mkPairData-memory-arguments": 32,
708
- "modInteger-cpu-arguments-constant": 196500,
709
- "modInteger-cpu-arguments-model-arguments-intercept": 453240,
710
- "modInteger-cpu-arguments-model-arguments-slope": 220,
711
- "modInteger-memory-arguments-intercept": 0,
712
- "modInteger-memory-arguments-minimum": 1,
713
- "modInteger-memory-arguments-slope": 1,
714
- "multiplyInteger-cpu-arguments-intercept": 69522,
715
- "multiplyInteger-cpu-arguments-slope": 11687,
716
- "multiplyInteger-memory-arguments-intercept": 0,
717
- "multiplyInteger-memory-arguments-slope": 1,
718
- "nullList-cpu-arguments": 60091,
719
- "nullList-memory-arguments": 32,
720
- "quotientInteger-cpu-arguments-constant": 196500,
721
- "quotientInteger-cpu-arguments-model-arguments-intercept": 453240,
722
- "quotientInteger-cpu-arguments-model-arguments-slope": 220,
723
- "quotientInteger-memory-arguments-intercept": 0,
724
- "quotientInteger-memory-arguments-minimum": 1,
725
- "quotientInteger-memory-arguments-slope": 1,
726
- "remainderInteger-cpu-arguments-constant": 196500,
727
- "remainderInteger-cpu-arguments-model-arguments-intercept": 453240,
728
- "remainderInteger-cpu-arguments-model-arguments-slope": 220,
729
- "remainderInteger-memory-arguments-intercept": 0,
730
- "remainderInteger-memory-arguments-minimum": 1,
731
- "remainderInteger-memory-arguments-slope": 1,
732
- "serialiseData-cpu-arguments-intercept": 1159724,
733
- "serialiseData-cpu-arguments-slope": 392670,
734
- "serialiseData-memory-arguments-intercept": 0,
735
- "serialiseData-memory-arguments-slope": 2,
736
- "sha2_256-cpu-arguments-intercept": 806990,
737
- "sha2_256-cpu-arguments-slope": 30482,
738
- "sha2_256-memory-arguments": 4,
739
- "sha3_256-cpu-arguments-intercept": 1927926,
740
- "sha3_256-cpu-arguments-slope": 82523,
741
- "sha3_256-memory-arguments": 4,
742
- "sliceByteString-cpu-arguments-intercept": 265318,
743
- "sliceByteString-cpu-arguments-slope": 0,
744
- "sliceByteString-memory-arguments-intercept": 4,
745
- "sliceByteString-memory-arguments-slope": 0,
746
- "sndPair-cpu-arguments": 85931,
747
- "sndPair-memory-arguments": 32,
748
- "subtractInteger-cpu-arguments-intercept": 205665,
749
- "subtractInteger-cpu-arguments-slope": 812,
750
- "subtractInteger-memory-arguments-intercept": 1,
751
- "subtractInteger-memory-arguments-slope": 1,
752
- "tailList-cpu-arguments": 41182,
753
- "tailList-memory-arguments": 32,
754
- "trace-cpu-arguments": 212342,
755
- "trace-memory-arguments": 32,
756
- "unBData-cpu-arguments": 31220,
757
- "unBData-memory-arguments": 32,
758
- "unConstrData-cpu-arguments": 32696,
759
- "unConstrData-memory-arguments": 32,
760
- "unIData-cpu-arguments": 43357,
761
- "unIData-memory-arguments": 32,
762
- "unListData-cpu-arguments": 32247,
763
- "unListData-memory-arguments": 32,
764
- "unMapData-cpu-arguments": 38314,
765
- "unMapData-memory-arguments": 32,
766
- "verifyEcdsaSecp256k1Signature-cpu-arguments": 35892428,
767
- "verifyEcdsaSecp256k1Signature-memory-arguments": 10,
768
- "verifyEd25519Signature-cpu-arguments-intercept": 57996947,
769
- "verifyEd25519Signature-cpu-arguments-slope": 18975,
770
- "verifyEd25519Signature-memory-arguments": 10,
771
- "verifySchnorrSecp256k1Signature-cpu-arguments-intercept": 38887044,
772
- "verifySchnorrSecp256k1Signature-cpu-arguments-slope": 32947,
773
- "verifySchnorrSecp256k1Signature-memory-arguments": 10
645
+ "0": 100788,
646
+ "1": 420,
647
+ "2": 1,
648
+ "3": 1,
649
+ "4": 1e3,
650
+ "5": 173,
651
+ "6": 0,
652
+ "7": 1,
653
+ "8": 1e3,
654
+ "9": 59957,
655
+ "10": 4,
656
+ "11": 1,
657
+ "12": 11183,
658
+ "13": 32,
659
+ "14": 201305,
660
+ "15": 8356,
661
+ "16": 4,
662
+ "17": 16e3,
663
+ "18": 100,
664
+ "19": 16e3,
665
+ "20": 100,
666
+ "21": 16e3,
667
+ "22": 100,
668
+ "23": 16e3,
669
+ "24": 100,
670
+ "25": 16e3,
671
+ "26": 100,
672
+ "27": 16e3,
673
+ "28": 100,
674
+ "29": 100,
675
+ "30": 100,
676
+ "31": 16e3,
677
+ "32": 100,
678
+ "33": 94375,
679
+ "34": 32,
680
+ "35": 132994,
681
+ "36": 32,
682
+ "37": 61462,
683
+ "38": 4,
684
+ "39": 72010,
685
+ "40": 178,
686
+ "41": 0,
687
+ "42": 1,
688
+ "43": 22151,
689
+ "44": 32,
690
+ "45": 91189,
691
+ "46": 769,
692
+ "47": 4,
693
+ "48": 2,
694
+ "49": 85848,
695
+ "50": 228465,
696
+ "51": 122,
697
+ "52": 0,
698
+ "53": 1,
699
+ "54": 1,
700
+ "55": 1e3,
701
+ "56": 42921,
702
+ "57": 4,
703
+ "58": 2,
704
+ "59": 24548,
705
+ "60": 29498,
706
+ "61": 38,
707
+ "62": 1,
708
+ "63": 898148,
709
+ "64": 27279,
710
+ "65": 1,
711
+ "66": 51775,
712
+ "67": 558,
713
+ "68": 1,
714
+ "69": 39184,
715
+ "70": 1e3,
716
+ "71": 60594,
717
+ "72": 1,
718
+ "73": 141895,
719
+ "74": 32,
720
+ "75": 83150,
721
+ "76": 32,
722
+ "77": 15299,
723
+ "78": 32,
724
+ "79": 76049,
725
+ "80": 1,
726
+ "81": 13169,
727
+ "82": 4,
728
+ "83": 22100,
729
+ "84": 10,
730
+ "85": 28999,
731
+ "86": 74,
732
+ "87": 1,
733
+ "88": 28999,
734
+ "89": 74,
735
+ "90": 1,
736
+ "91": 43285,
737
+ "92": 552,
738
+ "93": 1,
739
+ "94": 44749,
740
+ "95": 541,
741
+ "96": 1,
742
+ "97": 33852,
743
+ "98": 32,
744
+ "99": 68246,
745
+ "100": 32,
746
+ "101": 72362,
747
+ "102": 32,
748
+ "103": 7243,
749
+ "104": 32,
750
+ "105": 7391,
751
+ "106": 32,
752
+ "107": 11546,
753
+ "108": 32,
754
+ "109": 85848,
755
+ "110": 228465,
756
+ "111": 122,
757
+ "112": 0,
758
+ "113": 1,
759
+ "114": 1,
760
+ "115": 90434,
761
+ "116": 519,
762
+ "117": 0,
763
+ "118": 1,
764
+ "119": 74433,
765
+ "120": 32,
766
+ "121": 85848,
767
+ "122": 228465,
768
+ "123": 122,
769
+ "124": 0,
770
+ "125": 1,
771
+ "126": 1,
772
+ "127": 85848,
773
+ "128": 228465,
774
+ "129": 122,
775
+ "130": 0,
776
+ "131": 1,
777
+ "132": 1,
778
+ "133": 955506,
779
+ "134": 213312,
780
+ "135": 0,
781
+ "136": 2,
782
+ "137": 270652,
783
+ "138": 22588,
784
+ "139": 4,
785
+ "140": 1457325,
786
+ "141": 64566,
787
+ "142": 4,
788
+ "143": 20467,
789
+ "144": 1,
790
+ "145": 4,
791
+ "146": 0,
792
+ "147": 141992,
793
+ "148": 32,
794
+ "149": 100788,
795
+ "150": 420,
796
+ "151": 1,
797
+ "152": 1,
798
+ "153": 81663,
799
+ "154": 32,
800
+ "155": 59498,
801
+ "156": 32,
802
+ "157": 20142,
803
+ "158": 32,
804
+ "159": 24588,
805
+ "160": 32,
806
+ "161": 20744,
807
+ "162": 32,
808
+ "163": 25933,
809
+ "164": 32,
810
+ "165": 24623,
811
+ "166": 32,
812
+ "167": 43053543,
813
+ "168": 10,
814
+ "169": 53384111,
815
+ "170": 14333,
816
+ "171": 10,
817
+ "172": 43574283,
818
+ "173": 26308,
819
+ "174": 10
820
+ },
821
+ PlutusV3: {
822
+ "0": 100788,
823
+ "1": 420,
824
+ "2": 1,
825
+ "3": 1,
826
+ "4": 1e3,
827
+ "5": 173,
828
+ "6": 0,
829
+ "7": 1,
830
+ "8": 1e3,
831
+ "9": 59957,
832
+ "10": 4,
833
+ "11": 1,
834
+ "12": 11183,
835
+ "13": 32,
836
+ "14": 201305,
837
+ "15": 8356,
838
+ "16": 4,
839
+ "17": 16e3,
840
+ "18": 100,
841
+ "19": 16e3,
842
+ "20": 100,
843
+ "21": 16e3,
844
+ "22": 100,
845
+ "23": 16e3,
846
+ "24": 100,
847
+ "25": 16e3,
848
+ "26": 100,
849
+ "27": 16e3,
850
+ "28": 100,
851
+ "29": 100,
852
+ "30": 100,
853
+ "31": 16e3,
854
+ "32": 100,
855
+ "33": 94375,
856
+ "34": 32,
857
+ "35": 132994,
858
+ "36": 32,
859
+ "37": 61462,
860
+ "38": 4,
861
+ "39": 72010,
862
+ "40": 178,
863
+ "41": 0,
864
+ "42": 1,
865
+ "43": 22151,
866
+ "44": 32,
867
+ "45": 91189,
868
+ "46": 769,
869
+ "47": 4,
870
+ "48": 2,
871
+ "49": 85848,
872
+ "50": 123203,
873
+ "51": 7305,
874
+ "52": -900,
875
+ "53": 1716,
876
+ "54": 549,
877
+ "55": 57,
878
+ "56": 85848,
879
+ "57": 0,
880
+ "58": 1,
881
+ "59": 1,
882
+ "60": 1e3,
883
+ "61": 42921,
884
+ "62": 4,
885
+ "63": 2,
886
+ "64": 24548,
887
+ "65": 29498,
888
+ "66": 38,
889
+ "67": 1,
890
+ "68": 898148,
891
+ "69": 27279,
892
+ "70": 1,
893
+ "71": 51775,
894
+ "72": 558,
895
+ "73": 1,
896
+ "74": 39184,
897
+ "75": 1e3,
898
+ "76": 60594,
899
+ "77": 1,
900
+ "78": 141895,
901
+ "79": 32,
902
+ "80": 83150,
903
+ "81": 32,
904
+ "82": 15299,
905
+ "83": 32,
906
+ "84": 76049,
907
+ "85": 1,
908
+ "86": 13169,
909
+ "87": 4,
910
+ "88": 22100,
911
+ "89": 10,
912
+ "90": 28999,
913
+ "91": 74,
914
+ "92": 1,
915
+ "93": 28999,
916
+ "94": 74,
917
+ "95": 1,
918
+ "96": 43285,
919
+ "97": 552,
920
+ "98": 1,
921
+ "99": 44749,
922
+ "100": 541,
923
+ "101": 1,
924
+ "102": 33852,
925
+ "103": 32,
926
+ "104": 68246,
927
+ "105": 32,
928
+ "106": 72362,
929
+ "107": 32,
930
+ "108": 7243,
931
+ "109": 32,
932
+ "110": 7391,
933
+ "111": 32,
934
+ "112": 11546,
935
+ "113": 32,
936
+ "114": 85848,
937
+ "115": 123203,
938
+ "116": 7305,
939
+ "117": -900,
940
+ "118": 1716,
941
+ "119": 549,
942
+ "120": 57,
943
+ "121": 85848,
944
+ "122": 0,
945
+ "123": 1,
946
+ "124": 90434,
947
+ "125": 519,
948
+ "126": 0,
949
+ "127": 1,
950
+ "128": 74433,
951
+ "129": 32,
952
+ "130": 85848,
953
+ "131": 123203,
954
+ "132": 7305,
955
+ "133": -900,
956
+ "134": 1716,
957
+ "135": 549,
958
+ "136": 57,
959
+ "137": 85848,
960
+ "138": 0,
961
+ "139": 1,
962
+ "140": 1,
963
+ "141": 85848,
964
+ "142": 123203,
965
+ "143": 7305,
966
+ "144": -900,
967
+ "145": 1716,
968
+ "146": 549,
969
+ "147": 57,
970
+ "148": 85848,
971
+ "149": 0,
972
+ "150": 1,
973
+ "151": 955506,
974
+ "152": 213312,
975
+ "153": 0,
976
+ "154": 2,
977
+ "155": 270652,
978
+ "156": 22588,
979
+ "157": 4,
980
+ "158": 1457325,
981
+ "159": 64566,
982
+ "160": 4,
983
+ "161": 20467,
984
+ "162": 1,
985
+ "163": 4,
986
+ "164": 0,
987
+ "165": 141992,
988
+ "166": 32,
989
+ "167": 100788,
990
+ "168": 420,
991
+ "169": 1,
992
+ "170": 1,
993
+ "171": 81663,
994
+ "172": 32,
995
+ "173": 59498,
996
+ "174": 32,
997
+ "175": 20142,
998
+ "176": 32,
999
+ "177": 24588,
1000
+ "178": 32,
1001
+ "179": 20744,
1002
+ "180": 32,
1003
+ "181": 25933,
1004
+ "182": 32,
1005
+ "183": 24623,
1006
+ "184": 32,
1007
+ "185": 43053543,
1008
+ "186": 10,
1009
+ "187": 53384111,
1010
+ "188": 14333,
1011
+ "189": 10,
1012
+ "190": 43574283,
1013
+ "191": 26308,
1014
+ "192": 10,
1015
+ "193": 16e3,
1016
+ "194": 100,
1017
+ "195": 16e3,
1018
+ "196": 100,
1019
+ "197": 962335,
1020
+ "198": 18,
1021
+ "199": 2780678,
1022
+ "200": 6,
1023
+ "201": 442008,
1024
+ "202": 1,
1025
+ "203": 52538055,
1026
+ "204": 3756,
1027
+ "205": 18,
1028
+ "206": 267929,
1029
+ "207": 18,
1030
+ "208": 76433006,
1031
+ "209": 8868,
1032
+ "210": 18,
1033
+ "211": 52948122,
1034
+ "212": 18,
1035
+ "213": 1995836,
1036
+ "214": 36,
1037
+ "215": 3227919,
1038
+ "216": 12,
1039
+ "217": 901022,
1040
+ "218": 1,
1041
+ "219": 166917843,
1042
+ "220": 4307,
1043
+ "221": 36,
1044
+ "222": 284546,
1045
+ "223": 36,
1046
+ "224": 158221314,
1047
+ "225": 26549,
1048
+ "226": 36,
1049
+ "227": 74698472,
1050
+ "228": 36,
1051
+ "229": 333849714,
1052
+ "230": 1,
1053
+ "231": 254006273,
1054
+ "232": 72,
1055
+ "233": 2174038,
1056
+ "234": 72,
1057
+ "235": 2261318,
1058
+ "236": 64571,
1059
+ "237": 4,
1060
+ "238": 207616,
1061
+ "239": 8310,
1062
+ "240": 4,
1063
+ "241": 1293828,
1064
+ "242": 28716,
1065
+ "243": 63,
1066
+ "244": 0,
1067
+ "245": 1,
1068
+ "246": 1006041,
1069
+ "247": 43623,
1070
+ "248": 251,
1071
+ "249": 0,
1072
+ "250": 1
774
1073
  }
775
1074
  }
776
1075
  };
@@ -1169,6 +1468,7 @@ export {
1169
1468
  createCostModels,
1170
1469
  credentialToAddress,
1171
1470
  credentialToRewardAddress,
1471
+ datumJsonToCbor,
1172
1472
  datumToHash,
1173
1473
  fromLabel,
1174
1474
  fromScriptRef,