Skip to content

创建文章

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:82

Properties

_fileName

Private _fileName: string

Defined in

src/types/debugging.ts:79


_rawTeal

Private Optional _rawTeal: string

Defined in

src/types/debugging.ts:80


appName

appName: string

Defined in

src/types/debugging.ts:77


compiledTeal

Optional compiledTeal: CompiledTeal

Defined in

src/types/debugging.ts:78

Accessors

fileName

get fileName(): string

Get the file name

Returns

string

Defined in

src/types/debugging.ts:123


rawTeal

get rawTeal(): string

Get the underlying raw teal

Returns

string

Defined in

src/types/debugging.ts:112

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:133


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

PersistSourceMapInput

The persist source map input

Defined in

src/types/debugging.ts:107


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

PersistSourceMapInput

The persist source map input

Defined in

src/types/debugging.ts:96