Skip to content

Commit

Permalink
ergotree-version: fixes after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
aslesarenko committed Oct 3, 2023
1 parent b43dfe1 commit 484622b
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import sigmastate.crypto.DLogProtocol.{ProveDlog, ProveDlogProp}
import sigmastate.exceptions.SigmaException
import sigmastate.serialization._
import sigmastate.utxo.{DeserializeContext, Slice}
import sigma.Coll
import sigma.{Coll, VersionContext}
import sigma.ast.{SInt, SSigmaProp}
import sigmastate.Values.ErgoTree.{ZeroHeader, setVersionBits}

import scala.util.Try

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import sigma.ast.{SBox, SInt, SLong, SSigmaProp}
import sigmastate.crypto.DLogProtocol.ProveDlog
import sigmastate.crypto.CryptoConstants
import sigmastate.serialization.ErgoTreeSerializer.DefaultSerializer
import sigmastate.SCollection.SByteArray
import sigmastate.Values.ErgoTree.{HeaderType, ZeroHeader}
import sigmastate.Values.{ErgoTree, FalseSigmaProp, IntArrayConstant, IntConstant, LongConstant, SigmaPropConstant, SigmaPropValue, TrueSigmaProp, Value}
import sigmastate.utxo._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package sigmastate.serialization

import org.ergoplatform.validation.ValidationRules.{CheckDeserializedScriptIsSigmaProp, CheckHeaderSizeBit, CheckPositionLimit}
import org.ergoplatform.validation.{SigmaValidationSettings, ValidationException}
import sigmastate.{SType}
import sigmastate.Values.{Constant, ErgoTree, UnparsedErgoTree}
import sigmastate.lang.DeserializationSigmaBuilder
import sigmastate.lang.Terms.ValueOps
Expand All @@ -15,10 +14,6 @@ import sigma.VersionContext
import sigma.ast.SType
import sigmastate.exceptions.{ReaderPositionLimitExceeded, SerializerException}

import java.util
import sigmastate.exceptions.{ReaderPositionLimitExceeded, SerializerException}


/**
* Rationale for soft-forkable ErgoTree serialization.
* There are 2 points:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import sigmastate.AvlTreeData
import sigmastate.Values.{ErgoTree, EvaluatedValue}
import sigmastate.eval.{CSigmaProp, IRContext, CAnyValue}
import sigmastate.helpers.{ContextEnrichingTestProvingInterpreter, ErgoLikeContextTesting, ErgoLikeTestInterpreter, CompilerTestingCommons}
import sigmastate.eval.{CAnyValue, CSigmaProp, Evaluation, IRContext}
import sigmastate.eval.{CAnyValue, CSigmaProp, IRContext}
import sigmastate.helpers.{CompilerTestingCommons, ContextEnrichingTestProvingInterpreter, ErgoLikeContextTesting, ErgoLikeTestInterpreter}
import sigmastate.helpers.TestingHelpers._
import sigmastate.lang.Terms.ValueOps
Expand Down
4 changes: 2 additions & 2 deletions sc/shared/src/test/scala/sigma/SigmaDslSpecification.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import sigma.util.Extensions._
import sigmastate.utils.Extensions._
import sigma.ast.SCollection._
import sigmastate.Values.IntConstant
import sigmastate.SCollection._
import sigmastate.Values.ErgoTree.{HeaderType, ZeroHeader}
import sigmastate.Values.{IntConstant, _}
import sigmastate._
Expand All @@ -32,10 +31,11 @@ import sigmastate.lang.Terms.{MethodCall, PropertyCall}
import sigmastate.utxo._
import sigma._
import sigma.Extensions._
import sigma.ast.{SAvlTree, SBigInt, SBoolean, SBox, SByte, SCollection, SCollectionType, SContext, SGroupElement, SHeader, SInt, SLong, SOption, SPair, SShort, SSigmaProp, STuple, SType, STypeVar}
import sigmastate.helpers.TestingHelpers._
import sigmastate.interpreter._
import sigmastate.lang.Terms.{Apply, MethodCall, PropertyCall}
import sigmastate.serialization.OpCodes.OpCode
import sigmastate.serialization.ValueCodes.OpCode
import sigmastate.utils.Extensions._
import sigmastate.utils.Helpers
import sigmastate.utils.Helpers._
Expand Down
1 change: 0 additions & 1 deletion sc/shared/src/test/scala/sigma/SigmaDslTesting.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import sigma.util.BenchmarkUtil
import sigma.util.CollectionUtil._
import sigma.util.Extensions._
import sigma.util.StringUtil.StringUtilExtensions
import sigmastate.SType.AnyOps
import sigmastate.Values.ErgoTree.ZeroHeader
import sigma.ast.SType.AnyOps
import sigmastate.Values.{ByteArrayConstant, Constant, ConstantNode, ErgoTree, IntConstant, SValue}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import org.ergoplatform._
import org.ergoplatform.validation.ValidationRules._
import org.ergoplatform.validation._
import org.scalatest.BeforeAndAfterAll
import sigma.ast.{SBoolean, SCollection, SContext, SFunc, SGlobal, SInt}
import sigma.ast.SPrimType.MaxPrimTypeCode
import sigmastate.Values.ErgoTree.EmptyConstants
import sigmastate.SPrimType.MaxPrimTypeCode
import sigma.ast._
import sigma.{Colls, SigmaTestingData}
import sigmastate.Values.ErgoTree.{EmptyConstants, HeaderType, ZeroHeader, setSizeBit}
import sigmastate.Values.{ByteArrayConstant, ErgoTree, IntConstant, NotReadyValueInt, UnparsedErgoTree, ValueCompanion}
import sigmastate.exceptions.{InterpreterException, SerializerException}
Expand All @@ -17,13 +16,11 @@ import sigmastate.interpreter.ErgoTreeEvaluator.DataEnv
import sigmastate.interpreter.Interpreter.{ScriptNameProp, emptyEnv}
import sigmastate.interpreter.{ContextExtension, ErgoTreeEvaluator, ProverResult}
import sigmastate.lang.Terms._
import sigmastate.serialization.ValueCodes.LastConstantCode
import sigmastate.serialization.SigmaSerializer.startReader
import sigmastate.serialization.ValueCodes.{LastConstantCode, OpCode}
import sigmastate.serialization._
import sigmastate.utils.Helpers._
import sigmastate.utxo.DeserializeContext
import sigma.{Colls, SigmaTestingData}
import sigmastate.serialization.ValueCodes.OpCode

class SoftForkabilitySpecification extends SigmaTestingData
with CompilerTestingCommons
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package sigmastate.serialization

import java.math.BigInteger
import org.ergoplatform.ErgoBox
import org.ergoplatform.validation.ValidationException
import org.ergoplatform.validation.ValidationRules.CheckDeserializedScriptIsSigmaProp
import sigmastate.Values.ErgoTree.HeaderType
import sigma.ast.SInt
import sigma.data.CBigInt
import sigmastate.Values.ErgoTree.HeaderType
import sigmastate.Values.{BigIntConstant, ByteConstant, ConstantPlaceholder, ErgoTree, IntConstant, ShortConstant, SigmaPropValue, UnparsedErgoTree}
import sigmastate._
import sigmastate.eval.IRContext
import sigmastate.exceptions.{ReaderPositionLimitExceeded, SerializerException}
import sigmastate.eval.{CBigInt, IRContext}
import sigmastate.exceptions.{ReaderPositionLimitExceeded, SerializerException}
import sigmastate.helpers.CompilerTestingCommons
import sigmastate.serialization.ErgoTreeSerializer.DefaultSerializer
import sigmastate.utxo.{DeserializeContext, DeserializeRegister}

import java.math.BigInteger

class ErgoTreeSerializerSpecification extends SerializationSpecification
with CompilerTestingCommons with CompilerCrossVersionProps {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import sigmastate.serialization.{SerializationSpecification, SigmaSerializer}
import sigma.ContractsTestkit
import sigma.ast.{SByte, SInt, SType}
import sigma.data.CBigInt
import sigmastate.Values.ErgoTree.setConstantSegregation

import java.math.BigInteger

Expand Down

0 comments on commit 484622b

Please sign in to comment.