Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PyCompileOp

Index

Constructors

Methods

  • compilePyTeal(filename: string, scInitParam?: string): string
  • Description: returns TEAL code using pyTeal compiler

    Parameters

    • filename: string

      : python filename in assets folder

    • Optional scInitParam: string

      : Smart contract initialization parameters.

    Returns string

  • ensurePyTEALCompiled(filename: string, scTmplParams?: SCParams, logs?: boolean): string
  • Returns TEAL code from pyteal file (pyTEAL --> TEAL)

    Parameters

    • filename: string

      : name of the PyTeal code in /assets directory. Examples : [ gold.py, asa.py] MUST have .py extension

    • Optional scTmplParams: SCParams
    • logs: boolean = true

      only show logs on console when set as true. By default this value is true

    Returns string

  • Parses scTmplParams and returns ReplaceParams and stringify object

    Parameters

    • Optional scTmplParams: SCParams

      smart contract template parameters

    • logs: boolean = true

      only show logs on console when set as true. By default this value is true

    Returns [ReplaceParams, undefined | string]

  • replaceTempValues(program: string, replaceParams: ReplaceParams): string

Generated using TypeDoc