Skip to content

Create Publication

We are looking for publications that demonstrate building dApps or smart contracts!
See the full list of Gitcoin bounties that are eligible for rewards.

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

PersistSourceMapInput

Defined in

src/types/debugging.ts:55

Properties

_fileName

Private _fileName: string

Defined in

src/types/debugging.ts:52


_rawTeal

Private Optional _rawTeal: string

Defined in

src/types/debugging.ts:53


appName

appName: string

Defined in

src/types/debugging.ts:50


compiledTeal

Optional compiledTeal: CompiledTeal

Defined in

src/types/debugging.ts:51

Accessors

fileName

get fileName(): string

Returns

string

Defined in

src/types/debugging.ts:80


rawTeal

get rawTeal(): string

Returns

string

Defined in

src/types/debugging.ts:70

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

src/types/debugging.ts:90


fromCompiledTeal

fromCompiledTeal(compiledTeal, appName, fileName): PersistSourceMapInput

Parameters
Name Type
compiledTeal CompiledTeal
appName string
fileName string
Returns

PersistSourceMapInput

Defined in

src/types/debugging.ts:66


fromRawTeal

fromRawTeal(rawTeal, appName, fileName): PersistSourceMapInput

Parameters
Name Type
rawTeal string
appName string
fileName string
Returns

PersistSourceMapInput

Defined in

src/types/debugging.ts:62