types debugging.PersistSourceMapInput
@algorandfoundation/algokit-utils / types/debugging / PersistSourceMapInput
Class: PersistSourceMapInput¶
types/debugging.PersistSourceMapInput
Class representing a debugger source maps input for persistence.
Note: rawTeal and compiledTeal are mutually exclusive. Only one of them should be provided.
Table of contents¶
Constructors¶
Properties¶
Accessors¶
Methods¶
Constructors¶
constructor¶
• new PersistSourceMapInput(appName, fileName, rawTeal?, compiledTeal?): PersistSourceMapInput
Parameters¶
| Name | Type |
|---|---|
appName |
string |
fileName |
string |
rawTeal? |
string |
compiledTeal? |
CompiledTeal |
Returns¶
Defined in¶
Properties¶
_fileName¶
• Private _fileName: string
Defined in¶
_rawTeal¶
• Private Optional _rawTeal: string
Defined in¶
appName¶
• appName: string
Defined in¶
compiledTeal¶
• Optional compiledTeal: CompiledTeal
Defined in¶
Accessors¶
fileName¶
• get fileName(): string
Get the file name
Returns¶
string
Defined in¶
rawTeal¶
• get rawTeal(): string
Get the underlying raw teal
Returns¶
string
Defined in¶
Methods¶
stripTealExtension¶
▸ stripTealExtension(fileName): string
Strips the '.teal' extension from a filename, if present.
Parameters¶
| Name | Type | Description |
|---|---|---|
fileName |
string |
The filename to strip the extension from. |
Returns¶
string
The filename without the '.teal' extension.
Defined in¶
fromCompiledTeal¶
▸ fromCompiledTeal(compiledTeal, appName, fileName): PersistSourceMapInput
Returns debugger source maps input from compiled TEAL code.
Parameters¶
| Name | Type | Description |
|---|---|---|
compiledTeal |
CompiledTeal |
The compiled TEAL code |
appName |
string |
The name of the app |
fileName |
string |
The name of the file to persist to |
Returns¶
The persist source map input
Defined in¶
fromRawTeal¶
▸ fromRawTeal(rawTeal, appName, fileName): PersistSourceMapInput
Returns debugger source maps input from raw TEAL code.
Parameters¶
| Name | Type | Description |
|---|---|---|
rawTeal |
string |
The raw TEAL code |
appName |
string |
The name of the app |
fileName |
string |
The name of the file to persist to |
Returns¶
The persist source map input