Logic class

Constructors

Logic()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

evalMaxVersion int
Retrieves max supported version of TEAL evaluator
no setter
langSpec LangSpec?
getter/setter pair
logicSigVersion int
Retrieves TEAL supported version
no setter

Static Methods

checkProgram({required Uint8List program, required List<Uint8List>? arguments}) bool
Perform basic program validation; instruction count and program cost
getUVarint(Uint8List buffer, int bufferOffset) VarintResult
Given a varint, get the integer value
loadLangSpec() → void
putUVarint(int value) Uint8List
Varints are a method of serializing integers using one or more bytes. Smaller numbers take a smaller number of bytes. Each byte in a varint, except the last byte, has the most significant bit (msb) set – this indicates that there are further bytes to come. The lower 7 bits of each byte are used to store the two's complement representation of the number in groups of 7 bits, least significant group first. https://developers.google.com/protocol-buffers/docs/encoding
readByteConstBlock(Uint8List program, int pc) ByteConstBlock
readIntConstBlock(Uint8List program, int pc) IntConstBlock
readProgram({required Uint8List program, required List<Uint8List> arguments}) ProgramData
Performs basic program validation: instruction count and program cost
readPushByteOp(Uint8List program, int pc) ByteConstBlock
readPushIntOp(Uint8List program, int pc) IntConstBlock

Constants

BYTECBLOCK_OPCODE → const int
INTCBLOCK_OPCODE → const int
MAX_COST → const int
MAX_LENGTH → const int
PUSHBYTES_OPCODE → const int
PUSHINT_OPCODE → const int