diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/AddressFromPublicKeyBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/AddressFromPublicKeyBenchmark.scala index 44d9a0be37..68618a626f 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/AddressFromPublicKeyBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/AddressFromPublicKeyBenchmark.scala @@ -29,7 +29,7 @@ class AddressFromPublicKeyBenchmark { @State(Scope.Benchmark) class PkSt extends EthHelpers { val ds = DirectiveSet(V6, Account, Expression).fold(null, identity) - val ctx = lazyContexts((ds, true, true)).value().evaluationContext(EnvironmentFunctionsBenchmark.environment) + val ctx = lazyContexts((ds, true, true, true)).value().evaluationContext(EnvironmentFunctionsBenchmark.environment) val wavesPk = ByteStr(curve25519.generateKeypair._2) val exprWaves = TestCompiler(V6).compileExpression(s"addressFromPublicKey(base58'$wavesPk')").expr.asInstanceOf[EXPR] diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/BigIntOpsBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/BigIntOpsBenchmark.scala index 0ae875124d..f955faae68 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/BigIntOpsBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/BigIntOpsBenchmark.scala @@ -186,7 +186,7 @@ class BigIntOpsBenchmark { @State(Scope.Benchmark) class BigIntOpsSt { val ds = DirectiveSet(StdLibVersion.VersionDic.all.max, Account, Expression).fold(null, identity) - val ctx = lazyContexts((ds, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) + val ctx = lazyContexts((ds, true, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) val max = CONST_BIGINT(PureContext.BigIntMax) val prevMax = CONST_BIGINT(PureContext.BigIntMax - 1) diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/BigIntToStringBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/BigIntToStringBenchmark.scala index 200dfbb3e6..320fb3a205 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/BigIntToStringBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/BigIntToStringBenchmark.scala @@ -27,7 +27,7 @@ class BigIntToStringBenchmark { @State(Scope.Benchmark) class BigIntToStringSt { val ds = DirectiveSet(V5, Account, Expression).fold(null, identity) - val ctx = lazyContexts((ds, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) + val ctx = lazyContexts((ds, true, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) val expr = FUNCTION_CALL( Native(BIGINT_TO_STRING), diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/FoldBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/FoldBenchmark.scala index dcea787f8d..8613c9f7b0 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/FoldBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/FoldBenchmark.scala @@ -46,7 +46,7 @@ class FoldBenchmark { @State(Scope.Benchmark) class FoldSt { val ds = DirectiveSet(V5, Account, Expression).fold(null, identity) - val ctx = lazyContexts((ds, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) + val ctx = lazyContexts((ds, true, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) val function = "func f(acc: Boolean, elem: ByteVector) = acc && sigVerify(elem, base58'', base58'')" diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/FractionIntBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/FractionIntBenchmark.scala index 05457b8df3..331d3507fb 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/FractionIntBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/FractionIntBenchmark.scala @@ -41,7 +41,7 @@ class FractionIntBenchmark { @State(Scope.Benchmark) class St { val ds = DirectiveSet(V6, Account, Expression).fold(null, identity) - val ctx = lazyContexts((ds, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) + val ctx = lazyContexts((ds, true, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) val max = Long.MaxValue val maxSqrt = 3037000499L diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/PowBigIntBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/PowBigIntBenchmark.scala index b3781478b6..26d3adbf25 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/PowBigIntBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/PowBigIntBenchmark.scala @@ -51,7 +51,7 @@ class PowBigIntBenchmark { @State(Scope.Benchmark) class PowBigIntSt { val ds = DirectiveSet(V5, Account, Expression).fold(null, identity) - val ctx = lazyContexts((ds, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) + val ctx = lazyContexts((ds, true, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) val max = PureContext.BigIntMax val min = PureContext.BigIntMin diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/PowIntBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/PowIntBenchmark.scala index eba1402213..b04bd2e5c8 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/PowIntBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/PowIntBenchmark.scala @@ -52,7 +52,7 @@ class PowIntBenchmark { @State(Scope.Benchmark) class PowIntSt { val ds = DirectiveSet(V5, Account, Expression).fold(null, identity) - val ctx = lazyContexts((ds, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) + val ctx = lazyContexts((ds, true, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) val max = Long.MaxValue diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/PureFunctionsRebenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/PureFunctionsRebenchmark.scala index 9a777dc665..dacd2a3d09 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/PureFunctionsRebenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/PureFunctionsRebenchmark.scala @@ -218,7 +218,7 @@ class PureFunctionsRebenchmark { object PureFunctionsRebenchmark { val context: EvaluationContext[Environment, Id] = - lazyContexts((DirectiveSet(V5, Account, Expression).explicitGet(), true, true))() + lazyContexts((DirectiveSet(V5, Account, Expression).explicitGet(), true, true, true))() .evaluationContext(Common.emptyBlockchainEnvironment()) val eval: EXPR => (Log[Id], Int, Either[ExecutionError, EVALUATED]) = diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/SqrtCbrtBigIntBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/SqrtCbrtBigIntBenchmark.scala index 326a88dd01..43b26d101e 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/SqrtCbrtBigIntBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/SqrtCbrtBigIntBenchmark.scala @@ -33,7 +33,7 @@ class SqrtCbrtBigIntBenchmark { @State(Scope.Benchmark) class SqrtBigIntSt { val ds = DirectiveSet(V5, Account, Expression).fold(null, identity) - val ctx = lazyContexts((ds, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) + val ctx = lazyContexts((ds, true, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) val max = PureContext.BigIntMax val min = PureContext.BigIntMin diff --git a/benchmark/src/test/scala/com/wavesplatform/lang/v1/SqrtIntBenchmark.scala b/benchmark/src/test/scala/com/wavesplatform/lang/v1/SqrtIntBenchmark.scala index b2b6b332a0..fffd9e8a3e 100644 --- a/benchmark/src/test/scala/com/wavesplatform/lang/v1/SqrtIntBenchmark.scala +++ b/benchmark/src/test/scala/com/wavesplatform/lang/v1/SqrtIntBenchmark.scala @@ -28,7 +28,7 @@ class SqrtIntBenchmark { @State(Scope.Benchmark) class SqrtIntSt { val ds = DirectiveSet(V5, Account, Expression).fold(null, identity) - val ctx = lazyContexts((ds, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) + val ctx = lazyContexts((ds, true, true, true)).value().evaluationContext(Common.emptyBlockchainEnvironment()) val expr1 = compile(s"pow(${Long.MaxValue}, 0, 5, 1, 8, DOWN)") val expr2 = compile(s"pow(${Long.MaxValue}, 8, 5, 1, 8, DOWN)")