Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Nonce

A meta expression only used to change the hash of a TEAL program.

Hierarchy

Index

Constructors

constructor

  • new Nonce(base: string, nonce: string, child: Expr): Nonce
  • Create a new Nonce.

    The Nonce expression behaves exactly like the child expression passed into it, except it uses the provided nonce string to alter its structure in a way that does not affect execution.

    Parameters

    • base: string

      The base of the nonce. Must be one of utf8, base16, base32, or base64.

    • nonce: string

      An arbitrary nonce string that conforms to base.

    • child: Expr

      The expression to wrap.

    Returns Nonce

Properties

child

child: Expr

nonceBytes

nonceBytes: Bytes

seq

seq: Seq

Methods

And

  • Take the logical And of this expression and another one.

    This expression must evaluate to uint64.

    This is the same as using And() with two arguments.

    Parameters

    Returns Expr

Or

  • Take the logical Or of this expression and another one.

    This expression must evaluate to uint64.

    This is the same as using Or() with two arguments.

    Parameters

    Returns Expr

add

and

eq

ge

gt

invert

le

lt

mod

mul

ne

or

sub

teal

toString

  • toString(): string

truediv

typeOf

xor

Generated using TypeDoc