Versions in this module Expand all Collapse all v0 v0.0.2 Nov 24, 2019 v0.0.1 Nov 19, 2019 Changes in this version + const AssemblerDefaultVersion + const EvalMaxArgs + const EvalMaxScratchSize + const EvalMaxVersion + const MaxStackDepth + var AccountFieldNames = []string + var GlobalFieldDocs map[string]string + var GlobalFieldNames []string + var GlobalFieldTypes []StackType + var OpGroupList = []OpGroup + var OpSpecs = []OpSpec + var TxnFieldDocs map[string]string + var TxnFieldNames []string + var TxnFieldTypes []StackType + var TxnTypeNames = []string + func AssembleString(text string) ([]byte, error) + func Check(program []byte, params EvalParams) (cost int, err error) + func Disassemble(program []byte) (text string, err error) + func Eval(program []byte, params EvalParams) (pass bool, err error) + func HashProgram(program []byte) crypto.Digest + func OpCost(opName string) int + func OpDoc(opName string) string + func OpDocExtra(opName string) string + func OpImmediateNote(opName string) string + func OpSize(opName string) int + func TypeNameDescription(typeName string) string + type EvalParams struct + FirstValidTimeStamp uint64 + GroupIndex int + Logger logging.Logger + Proto *config.ConsensusParams + Trace io.Writer + Txn *transactions.SignedTxn + TxnGroup []transactions.SignedTxnWithAD + type GlobalField int + const GroupSize + const MaxTxnLife + const MinBalance + const MinTxnFee + const ZeroAddress + func (i GlobalField) String() string + type Msg struct + Data []byte + ProgramHash crypto.Digest + func (msg Msg) ToBeHashed() (protocol.HashID, []byte) + type OpGroup struct + GroupName string + Ops []string + type OpSpec struct + Args []StackType + Name string + Opcode byte + Returns []StackType + type OpStream struct + Out bytes.Buffer + Trace io.Writer + Version uint64 + func (ops *OpStream) Arg(val uint64) error + func (ops *OpStream) Assemble(fin io.Reader) error + func (ops *OpStream) ByteLiteral(val []byte) error + func (ops *OpStream) Bytec(constIndex uint) error + func (ops *OpStream) Bytes() (program []byte, err error) + func (ops *OpStream) Global(val uint64) error + func (ops *OpStream) Gtxn(gid, val uint64) error + func (ops *OpStream) Intc(constIndex uint) error + func (ops *OpStream) ReferToLabel(sourceLine, pc int, label string) + func (ops *OpStream) SetLabelHere(label string) error + func (ops *OpStream) Txn(val uint64) error + func (ops *OpStream) Uint(val uint64) error + type PanicError struct + PanicValue interface{} + StackTrace string + func (pe PanicError) Error() string + type Program []byte + func (lsl Program) ToBeHashed() (protocol.HashID, []byte) + type StackType byte + const StackAny + const StackBytes + const StackNone + const StackUint64 + func (st StackType) String() string + type TxnField int + const Amount + const AssetAmount + const AssetCloseTo + const AssetReceiver + const AssetSender + const CloseRemainderTo + const Fee + const FirstValid + const FirstValidTime + const GroupIndex + const LastValid + const Lease + const Note + const Receiver + const SelectionPK + const Sender + const TxID + const Type + const TypeEnum + const VoteFirst + const VoteKeyDilution + const VoteLast + const VotePK + const XferAsset + func (i TxnField) String() string + type Writer interface + Write func([]byte) (int, error) + WriteByte func(c byte) error