Skip to main content

Class: ContractsConfig

Contract configuration.

Exports

Constructors

Properties

Methods

Constructors

constructor

new ContractsConfig()

Properties

import_dirs

import_dirs: string[]

Paths to search for imports.

Defined in

submodules/cubist-node-sdk/src/config.ts:142


root_dir

root_dir: string

Root directory for contracts.

Defined in

submodules/cubist-node-sdk/src/config.ts:138


targets

targets: Map<Target, TargetConfig>

Target chain.

Defined in

submodules/cubist-node-sdk/src/config.ts:140

Methods

relative_to_root

relative_to_root(p): string

Paths relative to the root directory.

Throws

if the path is not within the root directory.

Parameters

NameTypeDescription
pstringpath to resolve relative to the root.

Returns

string

resolved path.

Defined in

submodules/cubist-node-sdk/src/config.ts:148