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