You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Ideally, this should be an append-only list. Before adding more versions here, be sure to add backwards-compatible support for old Store/World versions.
Copy file name to clipboardexpand all lines: packages/cli/src/utils/getContractArtifact.ts
+16-9
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,21 @@ import { LibraryPlaceholder } from "../deploy/common";
3
3
import{findPlaceholders}from"./findPlaceholders";
4
4
import{z}from"zod";
5
5
import{AbiasabiSchema}from"abitype/zod";
6
+
import{createRequire}from"node:module";
7
+
import{findUp}from"find-up";
6
8
7
9
exporttypeGetContractArtifactOptions={
10
+
/**
11
+
* Path to `package.json` where `artifactPath`s are resolved relative to.
12
+
*
13
+
* Defaults to nearest `package.json` relative to `process.cwd()`.
14
+
*/
15
+
packageJsonPath?: string;
8
16
/**
9
17
* Import path to contract's forge/solc JSON artifact with the contract's compiled bytecode.
10
18
*
11
-
* This path is resolved using node's contract resolution, so this supports both relative file paths (`../path/to/MyModule.json`) as well as JS import paths
* This path is resolved using node's module resolutionrelative to `configPath`, so this supports both
20
+
* relative file paths (`../path/to/MyModule.json`) as well as JS import paths (`@latticexyz/world-contracts/out/CallWithSignatureModule.sol/CallWithSignatureModule.json`).
0 commit comments