Package

sigmastate

utxo

Permalink

package utxo

Visibility
  1. Public
  2. All

Type Members

  1. case class Append[IV <: SType](input: Value[SCollection[IV]], col2: Value[SCollection[IV]]) extends Value[SCollection[IV]] with Transformer[SCollection[IV], SCollection[IV]] with Product with Serializable

    Permalink

    Puts the elements of other collection col2 after the elements of input collection (concatenation of two collections).

  2. trait BooleanTransformer[IV <: SType] extends Value[SBoolean.type] with Transformer[SCollection[IV], SBoolean.type]

    Permalink

    Transforms a collection of values to a boolean (see Exists, ForAll).

  3. trait BooleanTransformerCompanion extends ValueCompanion

    Permalink
  4. case class ByIndex[V <: SType](input: Value[SCollection[V]], index: Value[SInt.type], default: Option[Value[V]] = None) extends Value[V] with Transformer[SCollection[V], V] with NotReadyValue[V] with Product with Serializable

    Permalink

    The element of the collection or default value.

    The element of the collection or default value. If an index is out of bounds (i < 0 || i >= length) then default value is returned.

    V

    the type of elements

    input

    the zero-based indexed collection

    index

    the index of the requested element (zero-based)

    returns

    the element at the given index or default value if index is out or bounds

    Exceptions thrown

    ArrayIndexOutOfBoundsException if index < 0 or length <= index

  5. case class CostTable(operCosts: Map[OperationId, Int]) extends (OperationId) ⇒ Int with Product with Serializable

    Permalink
  6. trait Deserialize[V <: SType] extends Value[V] with NotReadyValue[V]

    Permalink
  7. case class DeserializeContext[V <: SType](id: Byte, tpe: V) extends Value[V] with Deserialize[V] with Product with Serializable

    Permalink

    Extracts context variable as Coll[Byte], deserializes it to script and then executes this script in the current context.

    Extracts context variable as Coll[Byte], deserializes it to script and then executes this script in the current context. The original Coll[Byte] of the script is available as getVar[Coll[Byte]](id)

    V

    result type of the deserialized script.

    id

    identifier of the context variable

    returns

    result of the script execution in the current context

    Since

    2.0

    Exceptions thrown

    InterpreterException if the actual script type doesn't conform to T

  8. case class DeserializeRegister[V <: SType](reg: RegisterId, tpe: V, default: Option[Value[V]] = None) extends Value[V] with Deserialize[V] with Product with Serializable

    Permalink

    Extract register of SELF box as Coll[Byte], deserialize it into Value and inline into executing script.

    Extract register of SELF box as Coll[Byte], deserialize it into Value and inline into executing script. NOTE: it only applicable to SELF box

  9. case class Exists[IV <: SType](input: Value[SCollection[IV]], condition: Value[SFunc]) extends Value[SBoolean.type] with BooleanTransformer[IV] with Product with Serializable

    Permalink

    Tests whether a predicate holds for at least one element of this collection.

    Tests whether a predicate holds for at least one element of this collection.

    input

    the collection to be tested

    condition

    the predicate used to test elements.

    returns

    true if the given condition is satisfied by at least one element of this collection, otherwise false

  10. sealed trait Extract[V <: SType] extends Value[V] with Transformer[SBox.type, V]

    Permalink
  11. case class ExtractAmount(input: Value[SBox.type]) extends Value[SLong.type] with Extract[SLong.type] with NotReadyValueLong with Product with Serializable

    Permalink

    Extracts the monetary value, in Ergo tokens (NanoErg unit of measure) from input Box.

  12. case class ExtractBytes(input: Value[SBox.type]) extends Value[SByteArray] with Extract[SByteArray] with NotReadyValueByteArray with Product with Serializable

    Permalink

    Extracts serialized bytes of this box's content, including proposition bytes.

  13. case class ExtractBytesWithNoRef(input: Value[SBox.type]) extends Value[SByteArray] with Extract[SByteArray] with NotReadyValueByteArray with Product with Serializable

    Permalink

    Extracts serialized bytes of this box's content, excluding transactionId and index of output.

  14. case class ExtractCreationInfo(input: Value[SBox.type]) extends Value[STuple] with Extract[STuple] with NotReadyValue[STuple] with Product with Serializable

    Permalink

    Tuple of height when block got included into the blockchain and transaction identifier with box index in the transaction outputs serialized to the byte array.

    Tuple of height when block got included into the blockchain and transaction identifier with box index in the transaction outputs serialized to the byte array.

    input

    box

  15. case class ExtractId(input: Value[SBox.type]) extends Value[SByteArray] with Extract[SByteArray] with NotReadyValueByteArray with Product with Serializable

    Permalink

    Extracts Blake2b256 hash of this box's content, basically equals to blake2b256(bytes)

  16. case class ExtractRegisterAs[V <: SType](input: Value[SBox.type], registerId: RegisterId, tpe: SOption[V]) extends Value[SOption[V]] with Extract[SOption[V]] with NotReadyValue[SOption[V]] with Product with Serializable

    Permalink

    See Box.getReg()

  17. case class ExtractScriptBytes(input: Value[SBox.type]) extends Value[SByteArray] with Extract[SByteArray] with NotReadyValueByteArray with Product with Serializable

    Permalink

    Extract serialized bytes of guarding script.

    Extract serialized bytes of guarding script. As a reminder, the script should be evaluated to true in order to open this box. (aka spend it in a transaction).

  18. case class Filter[IV <: SType](input: Value[SCollection[IV]], condition: Value[SFunc]) extends Value[SCollection[IV]] with Transformer[SCollection[IV], SCollection[IV]] with Product with Serializable

    Permalink

    Selects all elements of input collection which satisfy the condition.

    Selects all elements of input collection which satisfy the condition.

    input

    the collection to be filtered

    condition

    the predicate used to test elements.

    returns

    a new collection consisting of all elements of this collection that satisfy the given condition. The order of the elements is preserved.

  19. case class Fold[IV <: SType, OV <: SType](input: Value[SCollection[IV]], zero: Value[OV], foldOp: Value[SFunc]) extends Value[OV] with Transformer[SCollection[IV], OV] with Product with Serializable

    Permalink

    Applies a binary function to a start value and all elements of this collection, going left to right.

    Applies a binary function to a start value and all elements of this collection, going left to right.

    OV

    the result type of the binary operator.

    input

    the collection to iterate

    zero

    the start value.

    foldOp

    the binary function.

    returns

    the result of inserting foldOp between consecutive elements of this collection, going left to right with the start value zero on the left:

    foldOp(...foldOp(zero, x_1), x_2, ..., x_n)

    where x_1, ..., x_n are the elements of this collection. Returns zero if this collection is empty.

  20. case class ForAll[IV <: SType](input: Value[SCollection[IV]], condition: Value[SFunc]) extends Value[SBoolean.type] with BooleanTransformer[IV] with Product with Serializable

    Permalink

    Tests whether a predicate holds for all elements of this collection.

    Tests whether a predicate holds for all elements of this collection.

    input

    the collection to be tested

    condition

    the predicate used to test elements.

    returns

    true if this collection is empty or the given condition holds for all elements of this collection, otherwise false.

  21. case class GetVar[V <: SType](varId: Byte, tpe: SOption[V]) extends Value[SOption[V]] with NotReadyValue[SOption[V]] with Product with Serializable

    Permalink

    See special.sigma.Context.getVar() for detailed description.

  22. case class MapCollection[IV <: SType, OV <: SType](input: Value[SCollection[IV]], mapper: Value[SFunc]) extends Value[SCollection[OV]] with Transformer[SCollection[IV], SCollection[OV]] with Product with Serializable

    Permalink

    Builds a new collection by applying a function to all elements of this collection.

    Builds a new collection by applying a function to all elements of this collection.

    IV

    the element type of the input collection.

    OV

    the element type of the returned collection.

    input

    the collection to be mapped

    mapper

    the function to apply to each element.

    returns

    a new collection of type Coll[OV] resulting from applying the given function mapper to each element of this collection and collecting the results.

  23. case class OptionGet[V <: SType](input: Value[SOption[V]]) extends Value[V] with Transformer[SOption[V], V] with Product with Serializable

    Permalink

    Returns the option's value.

    Returns the option's value.

    Exceptions thrown

    java.util.NoSuchElementException if the option is empty.

    Note

    The option must be nonempty.

  24. case class OptionGetOrElse[V <: SType](input: Value[SOption[V]], default: Value[V]) extends Value[V] with Transformer[SOption[V], V] with Product with Serializable

    Permalink

    Returns the option's value if the option is nonempty, otherwise return the result of evaluating default.

    Returns the option's value if the option is nonempty, otherwise return the result of evaluating default. NOTE: the default is evaluated even if the option contains the value i.e. not lazily.

    default

    the default expression.

  25. case class OptionIsDefined[V <: SType](input: Value[SOption[V]]) extends Value[SBoolean.type] with Transformer[SOption[V], SBoolean.type] with Product with Serializable

    Permalink

    Returns false if the option is None, true otherwise.

  26. case class SelectField(input: Value[STuple], fieldIndex: Byte) extends Value[SType] with Transformer[STuple, SType] with NotReadyValue[SType] with Product with Serializable

    Permalink

    Select tuple field by its 1-based index.

    Select tuple field by its 1-based index. E.g. input._1 is transformed to SelectField(input, 1)

  27. case class SigmaPropBytes(input: Value[SSigmaProp.type]) extends Value[SByteArray] with Transformer[SSigmaProp.type, SByteArray] with NotReadyValue[SByteArray] with Product with Serializable

    Permalink

    Extract serialized bytes of a SigmaProp value

  28. case class SigmaPropIsProven(input: Value[SSigmaProp.type]) extends Value[SBoolean.type] with Transformer[SSigmaProp.type, SBoolean.type] with NotReadyValueBoolean with Product with Serializable

    Permalink

    Represents execution of Sigma protocol that validates the given input SigmaProp.

  29. trait SimpleTransformerCompanion extends ValueCompanion

    Permalink
  30. case class SizeOf[V <: SType](input: Value[SCollection[V]]) extends Value[SInt.type] with Transformer[SCollection[V], SInt.type] with NotReadyValueInt with Product with Serializable

    Permalink

    The length of the collection (aka size).

  31. case class Slice[IV <: SType](input: Value[SCollection[IV]], from: Value[SInt.type], until: Value[SInt.type]) extends Value[SCollection[IV]] with Transformer[SCollection[IV], SCollection[IV]] with Product with Serializable

    Permalink

    Selects an interval of elements.

    Selects an interval of elements. The returned collection is made up of all elements x which satisfy the invariant:

    from <= indexOf(x) < until
    from

    the lowest index to include from this collection.

    until

    the lowest index to EXCLUDE from this collection.

  32. trait Transformer[IV <: SType, OV <: SType] extends Value[OV] with NotReadyValue[OV]

    Permalink

    Every operation is a transformer of some kind.

    Every operation is a transformer of some kind. This trait is used merely to simplify implementation and avoid copy-paste.

Value Members

  1. object Append extends ValueCompanion with Serializable

    Permalink
  2. object ByIndex extends ValueCompanion with Serializable

    Permalink
  3. object ComplexityTable

    Permalink
  4. object ComplexityTableStat

    Permalink
  5. object CostTable extends Serializable

    Permalink
  6. object CostTableStat

    Permalink
  7. object DeserializeContext extends ValueCompanion with Serializable

    Permalink
  8. object DeserializeRegister extends ValueCompanion with Serializable

    Permalink
  9. object Exists extends BooleanTransformerCompanion with Serializable

    Permalink
  10. object ExtractAmount extends SimpleTransformerCompanion with Serializable

    Permalink
  11. object ExtractBytes extends SimpleTransformerCompanion with Serializable

    Permalink
  12. object ExtractBytesWithNoRef extends SimpleTransformerCompanion with Serializable

    Permalink
  13. object ExtractCreationInfo extends SimpleTransformerCompanion with Serializable

    Permalink
  14. object ExtractId extends SimpleTransformerCompanion with Serializable

    Permalink
  15. object ExtractRegisterAs extends ValueCompanion with Serializable

    Permalink
  16. object ExtractScriptBytes extends SimpleTransformerCompanion with Serializable

    Permalink
  17. object Filter extends ValueCompanion with Serializable

    Permalink
  18. object Fold extends ValueCompanion with Serializable

    Permalink
  19. object ForAll extends BooleanTransformerCompanion with Serializable

    Permalink
  20. object GetVar extends FixedCostValueCompanion with Serializable

    Permalink
  21. object MapCollection extends ValueCompanion with Serializable

    Permalink
  22. object OptionGet extends SimpleTransformerCompanion with FixedCostValueCompanion with Serializable

    Permalink
  23. object OptionGetOrElse extends ValueCompanion with Serializable

    Permalink
  24. object OptionIsDefined extends SimpleTransformerCompanion with Serializable

    Permalink
  25. object SelectField extends FixedCostValueCompanion with Serializable

    Permalink
  26. object SigmaPropBytes extends PerItemCostValueCompanion with Serializable

    Permalink
  27. object SigmaPropIsProven extends ValueCompanion with Serializable

    Permalink
  28. object SizeOf extends SimpleTransformerCompanion with Serializable

    Permalink
  29. object Slice extends ValueCompanion with Serializable

    Permalink

Ungrouped