A default implementation of AvlTree interface.
A default implementation of AvlTree interface.
AvlTree for detailed descriptions
A default implementation of BigInt interface.
A default implementation of BigInt interface.
BigInt for detailed descriptions
A default implementation of CostModel interface.
A default implementation of CostModel interface.
CostModel for detailed descriptions
A default implementation of GroupElement interface.
A default implementation of GroupElement interface.
GroupElement for detailed descriptions
A default implementation of Header interface.
A default implementation of Header interface.
Header for detailed descriptions
A default implementation of PreHeader interface.
A default implementation of PreHeader interface.
PreHeader for detailed descriptions
A default implementation of SigmaProp interface.
A default implementation of SigmaProp interface.
SigmaProp for detailed descriptions
IR context to be used by script development tools to compile ErgoScript into ErgoTree bytecode.
A default implementation of Box interface.
A default implementation of Box interface.
Box for detailed descriptions
A default implementation of Context interface.
A default implementation of Context interface.
Context for detailed descriptions
A default implementation of SigmaDslBuilder interface.
A default implementation of SigmaDslBuilder interface.
SigmaDslBuilder for detailed descriptions
This is a slice in IRContext cake which implements evaluation of graphs.
IR context to be used by blockchain nodes to validate transactions.
Type-class to give types a capability to build a Size structure.
Interface implmented by wrappers to provide access to the underlying wrapped value.
This class represents context variable and register value of a functional type A => B.
This class represents context variable and register value of a functional type A => B.
When variable or register is accessed using getVar[A => B](id).get
or
box.getReg[A => B].get an instance of this class is returned.
It internally transforms a given tree
into executable function.
This it similar to what happens during validation of propositions in the input boxes:
- size check of underlying ErgoTree against limits
- construction of calcF
and costF
graphs, both are stored together with resulting function.
- check the types of calcF
graph to be compatible with expected types A and B
If anything goes wrong, this operation fails and if it is used in the script, the script also fails.
When f is obtained as val f = getVar[Int => Int](id).get
then any application f(x)
involves size estimation
using underlying costF(x)
.
The primary reference to global Coll operations.
The primary reference to global Coll operations. Can be used to create collections from Array etc.
CollBuilder
Default singleton instance of Global object, which implements global ErgoTree functions.
The primary reference to Global instance of SigmaDsl.
The primary reference to Global instance of SigmaDsl.
Besides operations of SigmaDslBuilder class, this instance also contains methods,
which are not available in Dsl code, and which are not in SigmaDslBuilder interface.
For example methods like Box
, toErgoBox
are available here, but not available in Dsl.
SigmaDslBuilder
Constructor of tuple value with more than 2 items.
Constructor of tuple value with more than 2 items. Such long tuples are represented as Coll[Any]. This representaion of tuples is different from representation of pairs (x, y), where Tuple2 type is used instead of Coll.
Implicit conversions between Dsl type and the type wrapped by the corresponding type Dsl type.
Implicit conversions between Dsl type and the type wrapped by the corresponding type Dsl type. Here BigInt is Dsl type and BigInteger is wrapped type.
special.sigma.CBigInt