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
| Parameter | Type |
|---|---|
artifact | Artifact |
Returns
Methods
fromSource()
ts
static fromSource(sourceCode): CashScript;Defined in: packages/templates-dev/src/helpers/cashscript.ts:13
Parameters
| Parameter | Type |
|---|---|
sourceCode | string |
Returns
fromFile()
ts
static fromFile(filePath): CashScript;Defined in: packages/templates-dev/src/helpers/cashscript.ts:18
Parameters
| Parameter | Type |
|---|---|
filePath | string |
Returns
fromArtifact()
ts
static fromArtifact(artifact): CashScript;Defined in: packages/templates-dev/src/helpers/cashscript.ts:23
Parameters
| Parameter | Type |
|---|---|
artifact | Artifact |
Returns
toScripts()
ts
toScripts(opts): Record<string, TemplateScriptAny>;Defined in: packages/templates-dev/src/helpers/cashscript.ts:33
Parameters
| Parameter | Type |
|---|---|
opts | CashScriptOpts |
Returns
Record<string, TemplateScriptAny>
Properties
| Property | Type | Defined in |
|---|---|---|
artifact | Artifact | packages/templates-dev/src/helpers/cashscript.ts:27 |