Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DryrunSource

DryrunSource is TEAL source text that gets uploaded, compiled, and inserted into transactions or application state.

Hierarchy

Index

Constructors

  • new DryrunSource(fieldName: string, source: string, txnIndex: number | bigint, appIndex: number | bigint): DryrunSource
  • Creates a new DryrunSource object.

    Parameters

    • fieldName: string

      FieldName is what kind of sources this is. If lsig then it goes into the transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the Approval Program or Clear State Program of application[this.AppIndex].

    • source: string
    • txnIndex: number | bigint
    • appIndex: number | bigint

    Returns DryrunSource

Properties

appIndex: number | bigint
attribute_map: Record<string, string>
fieldName: string

FieldName is what kind of sources this is. If lsig then it goes into the transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the Approval Program or Clear State Program of application[this.AppIndex].

source: string
txnIndex: number | bigint

Methods

  • get_obj_for_encoding(binary?: boolean): Record<string, any>
  • Get an object ready for encoding to either JSON or msgpack.

    Parameters

    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc