Skip to content

Commit 6ce5fe5

Browse files
authored
update default universe plumbing and tidy builtin handling (#7754)
1 parent 4cd40a1 commit 6ce5fe5

81 files changed

Lines changed: 1319 additions & 687 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
({cpu: 292356
2-
| mem: 606})
1+
evaluation failure
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
(program
2-
1.0.0
3-
(con
4-
bytestring
5-
#83edc0ce742bb09957613e44150205679d3f61a467b25cc758a3b033c2f0d68584803b9dc05b3b0b9cbd66
6-
)
7-
)
1+
evaluation failure
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
({cpu: 292356
2-
| mem: 606})
1+
evaluation failure
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
(program
2-
1.0.0
3-
(con
4-
bytestring
5-
#220a8102b3ce9fb0d233d92e63ac51d819e1786b42c2401dcee02d9d85ce5eb341f6e0673a15d84cabb09f
6-
)
7-
)
1+
evaluation failure
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
({cpu: 292271
2-
| mem: 606})
1+
evaluation failure
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
(program
2-
1.0.0
3-
(con
4-
bytestring
5-
#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000
6-
)
7-
)
1+
evaluation failure
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
({cpu: 292271
2-
| mem: 606})
1+
evaluation failure
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
(program
2-
1.0.0
3-
(con
4-
bytestring
5-
#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000
6-
)
7-
)
1+
evaluation failure

plutus-core/plutus-core.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ library
264264
PlutusCore.Core.Type
265265
PlutusCore.Crypto.Utils
266266
PlutusCore.Default.Universe
267+
PlutusCore.Default.Universe.Cardano
267268
PlutusCore.Eq
268269
PlutusCore.Parser.Builtin
269270
PlutusCore.Parser.ParserCommon

plutus-core/plutus-core/src/PlutusCore/Bitwise.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module PlutusCore.Bitwise
2222
, countSetBits
2323
, findFirstSetBit
2424
, IntegerToByteStringError (..)
25+
, maximumInputLength
2526
, maximumOutputLength
2627
) where
2728

@@ -77,6 +78,10 @@ CPU time increases smoothly for inputs up to about 8K then increases sharply, be
7778
about 14K). This restriction may be removed once a more efficient implementation becomes available.-}
7879
{- NB: if we do relax the length restriction then we will need two variants of integerToByteString in
7980
Plutus Core so that we can continue to support the current behaviour for old scripts.-}
81+
maximumInputLength :: Integer
82+
maximumInputLength = 4096
83+
{-# INLINE maximumInputLength #-}
84+
8085
maximumOutputLength :: Integer
8186
maximumOutputLength = 8192
8287
{-# INLINE maximumOutputLength #-}

0 commit comments

Comments
 (0)