Options
All
  • Public
  • Public/Protected
  • All
Menu

Class App

An expression related to applications.

Hierarchy

Index

Constructors

constructor

Properties

args

args: Expr[]

field

field: AppField

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

Static globalDel

  • Delete a key from the global state of the current application.

    Parameters

    • key: Expr

      The key to delete from the global application state. Must evaluate to bytes.

    Returns App

Static globalGet

  • Read from the global state of the current application.

    Parameters

    • key: Expr

      The key to read from the global application state. Must evaluate to bytes.

    Returns App

Static globalGetEx

  • Read from the global state of an application.

    Parameters

    • app: Expr

      An index into Txn.ForeignApps that corresponds to the application to read from. Must evaluate to uint64.

    • key: Expr

      The key to read from the global application state. Must evaluate to bytes.

    Returns MaybeValue

Static globalPut

  • Write to the global state of the current application.

    Parameters

    • key: Expr

      The key to write in the global application state. Must evaluate to bytes.

    • value: Expr

      The value to write in the global application state. Can evaluate to any type.

    Returns App

Static id

  • Get the ID of the current running application.

    This is the same as :any:Global.currentApplicationId().

    Returns Global

Static localDel

  • Delete a key from an account's local state for the current application.

    Parameters

    • account: Expr

      An index into Txn.Accounts that corresponds to the account from which the key should be deleted. Must evaluate to uint64.

    • key: Expr

      The key to delete from the account's local state. Must evaluate to bytes.

    Returns App

Static localGet

  • Read from an account's local state for the current application.

    Parameters

    • account: Expr

      An index into Txn.Accounts that corresponds to the account to read from. Must evaluate to uint64.

    • key: Expr

      The key to read from the account's local state. Must evaluate to bytes.

    Returns App

Static localGetEx

  • Read from an account's local state for an application.

    Parameters

    • account: Expr

      An index into Txn.Accounts that corresponds to the account to read from. Must evaluate to uint64.

    • app: Expr

      The ID of the application being checked. Must evaluate to uint64.

    • key: Expr

      The key to read from the account's local state. Must evaluate to bytes.

    Returns MaybeValue

Static localPut

  • Write to an account's local state for the current application.

    Parameters

    • account: Expr

      An index into Txn.Accounts that corresponds to the account to write to. Must evaluate to uint64.

    • key: Expr

      The key to write in the account's local state. Must evaluate to bytes.

    • value: Expr

      The value to write in the account's local state. Can evaluate to any type.

    Returns App

Static optedIn

  • Check if an account has opted in for an application.

    Parameters

    • account: Expr

      An index into Txn.Accounts that corresponds to the account to check. Must evaluate to uint64.

    • app: Expr

      The ID of the application being checked. Must evaluate to uint64.

    Returns App

Generated using TypeDoc