Skip to content

fromPath

fromPath(contractPath): Provider

Defined in: src/ZkConfig.ts:126

Create a ZK config provider that loads from the local filesystem.

This provider reads compiled contract artifacts from disk. Use this in Node.js environments (tests, scripts, backend services).

Parameters

contractPath

string

Path to the compiled contract directory

Returns

Provider

A ZK config provider instance

Example

const zkConfig = Midday.ZkConfig.fromPath('./contracts/my-contract');

Since

0.3.0