Searches recursively and returns path of file in a given directory. Throws error if multiple files with same name are found (in directory or sub-directory)
directory name
name of file to search in directory
if file does not exist & warning message is passed, then console log warning, and return. throws error otherwise
returns program TEAL code.
filename in /assets. Must end with .teal OR .py
smart contract template parameters, used to set hardcoded values in .py smart contract. (used only when compiling PyTEAL to TEAL)
only show logs on console when set as true. By default this value is true
Loads, validates and returns asset definitions from the assets/asa.yaml file
map of string => account. AccountMap is the SDK account type, used in builder. RuntimeAccountMap is for AccountStore used in runtime (where we use maps instead of arrays in sdk structures).
Reads the directory recursively and returns all paths
name of directory
Override & validate ASA definition in asa.yaml using custom params passed via deployASA
accounts by name
source asset definition (in asa.yaml)
custom asset def params (passed during ASA deployment)
overriden asset definition. If custom params are empty, return source asa def
Validate and parse each field of asset definition. metadataHash
, if provided as a Buffer
will be transformed into Uint8Array.
asset definition
source of assetDef: asa.yaml file OR function deployASA
parsed asa definition
Description: Returns a list of Opcodes object after reading text from given TEAL file
: TEAL code as string
: execution mode of TEAL code (Stateless or Application)
Parses, overrides and validates asset defs map. Filaname parameter is used to indicate an ASA definition source when reporting errors.
asset definitions to validate
map of string => account. AccountMap is the SDK account type, used in builder. RuntimeAccountMap is for AccountStore used in runtime (where we use maps instead of arrays in sdk structures).
asa filename
Validates asset definitions and checks if opt-in acc names are present in network
AccountMap is the SDK account type, used in builder. RuntimeAccountMap is for AccountStore used in runtime (where we use maps instead of arrays in sdk structures).
asset definition
Generated using TypeDoc
Check if given transaction is asset deletion