Skip to content

Documentation / @cashconnect-js/templates-dev / helpers/cashscript

CashScriptOpts

ts
type CashScriptOpts = object;

Defined in: packages/templates-dev/src/helpers/cashscript.ts:8

Properties

debug

ts
debug: boolean;

Defined in: packages/templates-dev/src/helpers/cashscript.ts:9


CashScript

Defined in: packages/templates-dev/src/helpers/cashscript.ts:12

Constructors

Constructor

ts
new CashScript(artifact): CashScript;

Defined in: packages/templates-dev/src/helpers/cashscript.ts:29

Parameters
ParameterType
artifactArtifact
Returns

CashScript

Methods

fromSource()

ts
static fromSource(sourceCode): CashScript;

Defined in: packages/templates-dev/src/helpers/cashscript.ts:13

Parameters
ParameterType
sourceCodestring
Returns

CashScript

fromFile()

ts
static fromFile(filePath): CashScript;

Defined in: packages/templates-dev/src/helpers/cashscript.ts:18

Parameters
ParameterType
filePathstring
Returns

CashScript

fromArtifact()

ts
static fromArtifact(artifact): CashScript;

Defined in: packages/templates-dev/src/helpers/cashscript.ts:23

Parameters
ParameterType
artifactArtifact
Returns

CashScript

toScripts()

ts
toScripts(opts): Record<string, TemplateScriptAny>;

Defined in: packages/templates-dev/src/helpers/cashscript.ts:33

Parameters
ParameterType
optsCashScriptOpts
Returns

Record<string, TemplateScriptAny>

Properties

PropertyTypeDefined in
artifactArtifactpackages/templates-dev/src/helpers/cashscript.ts:27