@account-kit/plugingen 4.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/esm/IPlugin.d.ts +474 -0
- package/dist/esm/IPlugin.js +397 -0
- package/dist/esm/IPlugin.js.map +1 -0
- package/dist/esm/cli.d.ts +2 -0
- package/dist/esm/cli.js +40 -0
- package/dist/esm/cli.js.map +1 -0
- package/dist/esm/commands/generate/index.d.ts +14 -0
- package/dist/esm/commands/generate/index.js +179 -0
- package/dist/esm/commands/generate/index.js.map +1 -0
- package/dist/esm/commands/generate/phases/contract-abi-gen.d.ts +2 -0
- package/dist/esm/commands/generate/phases/contract-abi-gen.js +9 -0
- package/dist/esm/commands/generate/phases/contract-abi-gen.js.map +1 -0
- package/dist/esm/commands/generate/phases/contract-addresses-gen.d.ts +2 -0
- package/dist/esm/commands/generate/phases/contract-addresses-gen.js +10 -0
- package/dist/esm/commands/generate/phases/contract-addresses-gen.js.map +1 -0
- package/dist/esm/commands/generate/phases/execution-abi-gen.d.ts +2 -0
- package/dist/esm/commands/generate/phases/execution-abi-gen.js +12 -0
- package/dist/esm/commands/generate/phases/execution-abi-gen.js.map +1 -0
- package/dist/esm/commands/generate/phases/plugin-actions/index.d.ts +2 -0
- package/dist/esm/commands/generate/phases/plugin-actions/index.js +118 -0
- package/dist/esm/commands/generate/phases/plugin-actions/index.js.map +1 -0
- package/dist/esm/commands/generate/phases/plugin-actions/management-actions.d.ts +2 -0
- package/dist/esm/commands/generate/phases/plugin-actions/management-actions.js +105 -0
- package/dist/esm/commands/generate/phases/plugin-actions/management-actions.js.map +1 -0
- package/dist/esm/commands/generate/phases/plugin-actions/read-actions.d.ts +2 -0
- package/dist/esm/commands/generate/phases/plugin-actions/read-actions.js +75 -0
- package/dist/esm/commands/generate/phases/plugin-actions/read-actions.js.map +1 -0
- package/dist/esm/commands/generate/phases/plugin-generator/get-contract-gen.d.ts +2 -0
- package/dist/esm/commands/generate/phases/plugin-generator/get-contract-gen.js +26 -0
- package/dist/esm/commands/generate/phases/plugin-generator/get-contract-gen.js.map +1 -0
- package/dist/esm/commands/generate/phases/plugin-generator/index.d.ts +2 -0
- package/dist/esm/commands/generate/phases/plugin-generator/index.js +20 -0
- package/dist/esm/commands/generate/phases/plugin-generator/index.js.map +1 -0
- package/dist/esm/commands/generate/phases/plugin-generator/meta-gen.d.ts +2 -0
- package/dist/esm/commands/generate/phases/plugin-generator/meta-gen.js +14 -0
- package/dist/esm/commands/generate/phases/plugin-generator/meta-gen.js.map +1 -0
- package/dist/esm/commands/generate/types.d.ts +16 -0
- package/dist/esm/commands/generate/types.js +2 -0
- package/dist/esm/commands/generate/types.js.map +1 -0
- package/dist/esm/commands/generate/utils.d.ts +4 -0
- package/dist/esm/commands/generate/utils.js +16 -0
- package/dist/esm/commands/generate/utils.js.map +1 -0
- package/dist/esm/commands/init.d.ts +5 -0
- package/dist/esm/commands/init.js +76 -0
- package/dist/esm/commands/init.js.map +1 -0
- package/dist/esm/config.d.ts +36 -0
- package/dist/esm/config.js +4 -0
- package/dist/esm/config.js.map +1 -0
- package/dist/esm/errors.d.ts +14 -0
- package/dist/esm/errors.js +37 -0
- package/dist/esm/errors.js.map +1 -0
- package/dist/esm/exports/config.d.ts +1 -0
- package/dist/esm/exports/config.js +2 -0
- package/dist/esm/exports/config.js.map +1 -0
- package/dist/esm/exports/index.d.ts +4 -0
- package/dist/esm/exports/index.js +5 -0
- package/dist/esm/exports/index.js.map +1 -0
- package/dist/esm/exports/types.d.ts +1 -0
- package/dist/esm/exports/types.js +2 -0
- package/dist/esm/exports/types.js.map +1 -0
- package/dist/esm/logger.d.ts +6 -0
- package/dist/esm/logger.js +30 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/types.d.ts +6 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils/findConfig.d.ts +6 -0
- package/dist/esm/utils/findConfig.js +21 -0
- package/dist/esm/utils/findConfig.js.map +1 -0
- package/dist/esm/utils/format.d.ts +1 -0
- package/dist/esm/utils/format.js +10 -0
- package/dist/esm/utils/format.js.map +1 -0
- package/dist/esm/utils/isUsingTypescript.d.ts +1 -0
- package/dist/esm/utils/isUsingTypescript.js +19 -0
- package/dist/esm/utils/isUsingTypescript.js.map +1 -0
- package/dist/esm/utils/loadEnv.d.ts +4 -0
- package/dist/esm/utils/loadEnv.js +59 -0
- package/dist/esm/utils/loadEnv.js.map +1 -0
- package/dist/esm/utils/resolveConfig.d.ts +7 -0
- package/dist/esm/utils/resolveConfig.js +12 -0
- package/dist/esm/utils/resolveConfig.js.map +1 -0
- package/dist/esm/version.d.ts +1 -0
- package/dist/esm/version.js +2 -0
- package/dist/esm/version.js.map +1 -0
- package/dist/types/IPlugin.d.ts +475 -0
- package/dist/types/IPlugin.d.ts.map +1 -0
- package/dist/types/cli.d.ts +3 -0
- package/dist/types/cli.d.ts.map +1 -0
- package/dist/types/commands/generate/index.d.ts +17 -0
- package/dist/types/commands/generate/index.d.ts.map +1 -0
- package/dist/types/commands/generate/phases/contract-abi-gen.d.ts +3 -0
- package/dist/types/commands/generate/phases/contract-abi-gen.d.ts.map +1 -0
- package/dist/types/commands/generate/phases/contract-addresses-gen.d.ts +3 -0
- package/dist/types/commands/generate/phases/contract-addresses-gen.d.ts.map +1 -0
- package/dist/types/commands/generate/phases/execution-abi-gen.d.ts +3 -0
- package/dist/types/commands/generate/phases/execution-abi-gen.d.ts.map +1 -0
- package/dist/types/commands/generate/phases/plugin-actions/index.d.ts +3 -0
- package/dist/types/commands/generate/phases/plugin-actions/index.d.ts.map +1 -0
- package/dist/types/commands/generate/phases/plugin-actions/management-actions.d.ts +3 -0
- package/dist/types/commands/generate/phases/plugin-actions/management-actions.d.ts.map +1 -0
- package/dist/types/commands/generate/phases/plugin-actions/read-actions.d.ts +3 -0
- package/dist/types/commands/generate/phases/plugin-actions/read-actions.d.ts.map +1 -0
- package/dist/types/commands/generate/phases/plugin-generator/get-contract-gen.d.ts +3 -0
- package/dist/types/commands/generate/phases/plugin-generator/get-contract-gen.d.ts.map +1 -0
- package/dist/types/commands/generate/phases/plugin-generator/index.d.ts +3 -0
- package/dist/types/commands/generate/phases/plugin-generator/index.d.ts.map +1 -0
- package/dist/types/commands/generate/phases/plugin-generator/meta-gen.d.ts +3 -0
- package/dist/types/commands/generate/phases/plugin-generator/meta-gen.d.ts.map +1 -0
- package/dist/types/commands/generate/types.d.ts +17 -0
- package/dist/types/commands/generate/types.d.ts.map +1 -0
- package/dist/types/commands/generate/utils.d.ts +5 -0
- package/dist/types/commands/generate/utils.d.ts.map +1 -0
- package/dist/types/commands/init.d.ts +8 -0
- package/dist/types/commands/init.d.ts.map +1 -0
- package/dist/types/config.d.ts +59 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/errors.d.ts +15 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/exports/config.d.ts +2 -0
- package/dist/types/exports/config.d.ts.map +1 -0
- package/dist/types/exports/index.d.ts +5 -0
- package/dist/types/exports/index.d.ts.map +1 -0
- package/dist/types/exports/types.d.ts +2 -0
- package/dist/types/exports/types.d.ts.map +1 -0
- package/dist/types/logger.d.ts +7 -0
- package/dist/types/logger.d.ts.map +1 -0
- package/dist/types/types.d.ts +7 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils/findConfig.d.ts +15 -0
- package/dist/types/utils/findConfig.d.ts.map +1 -0
- package/dist/types/utils/format.d.ts +2 -0
- package/dist/types/utils/format.d.ts.map +1 -0
- package/dist/types/utils/isUsingTypescript.d.ts +2 -0
- package/dist/types/utils/isUsingTypescript.d.ts.map +1 -0
- package/dist/types/utils/loadEnv.d.ts +5 -0
- package/dist/types/utils/loadEnv.d.ts.map +1 -0
- package/dist/types/utils/resolveConfig.d.ts +15 -0
- package/dist/types/utils/resolveConfig.d.ts.map +1 -0
- package/dist/types/version.d.ts +2 -0
- package/dist/types/version.d.ts.map +1 -0
- package/package.json +83 -0
- package/src/IPlugin.ts +396 -0
- package/src/cli.ts +44 -0
- package/src/commands/generate/index.ts +270 -0
- package/src/commands/generate/phases/contract-abi-gen.ts +12 -0
- package/src/commands/generate/phases/contract-addresses-gen.ts +18 -0
- package/src/commands/generate/phases/execution-abi-gen.ts +20 -0
- package/src/commands/generate/phases/plugin-actions/index.ts +151 -0
- package/src/commands/generate/phases/plugin-actions/management-actions.ts +141 -0
- package/src/commands/generate/phases/plugin-actions/read-actions.ts +97 -0
- package/src/commands/generate/phases/plugin-generator/get-contract-gen.ts +30 -0
- package/src/commands/generate/phases/plugin-generator/index.ts +27 -0
- package/src/commands/generate/phases/plugin-generator/meta-gen.ts +17 -0
- package/src/commands/generate/types.ts +18 -0
- package/src/commands/generate/utils.ts +26 -0
- package/src/commands/init.ts +93 -0
- package/src/config.ts +79 -0
- package/src/errors.ts +58 -0
- package/src/exports/config.ts +1 -0
- package/src/exports/index.ts +7 -0
- package/src/exports/types.ts +1 -0
- package/src/logger.ts +36 -0
- package/src/types.ts +11 -0
- package/src/utils/findConfig.ts +37 -0
- package/src/utils/format.ts +11 -0
- package/src/utils/isUsingTypescript.ts +22 -0
- package/src/utils/loadEnv.ts +91 -0
- package/src/utils/resolveConfig.ts +25 -0
- package/src/version.ts +3 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { parse } from "dotenv";
|
|
2
|
+
import { expand } from "dotenv-expand";
|
|
3
|
+
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
4
|
+
import { dirname, join } from "node:path";
|
|
5
|
+
export function loadEnv(config = {}) {
|
|
6
|
+
const mode = config.mode;
|
|
7
|
+
if (mode === "local") {
|
|
8
|
+
throw new Error(`"local" cannot be used as a mode name because it conflicts with the .local postfix for .env files.`);
|
|
9
|
+
}
|
|
10
|
+
const envFiles = [
|
|
11
|
+
".env",
|
|
12
|
+
".env.local",
|
|
13
|
+
...(mode
|
|
14
|
+
? [
|
|
15
|
+
`.env.${mode}`,
|
|
16
|
+
`.env.${mode}.local`,
|
|
17
|
+
]
|
|
18
|
+
: []),
|
|
19
|
+
];
|
|
20
|
+
const envDir = config.envDir ?? process.cwd();
|
|
21
|
+
const parsed = Object.fromEntries(envFiles.flatMap((file) => {
|
|
22
|
+
const path = lookupFile(envDir, [file], {
|
|
23
|
+
pathOnly: true,
|
|
24
|
+
rootDir: envDir,
|
|
25
|
+
});
|
|
26
|
+
if (!path)
|
|
27
|
+
return [];
|
|
28
|
+
return Object.entries(parse(readFileSync(path)));
|
|
29
|
+
}));
|
|
30
|
+
try {
|
|
31
|
+
expand({ parsed });
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
if (error.message.includes("split")) {
|
|
35
|
+
throw new Error("dotenv-expand failed to expand env vars. Maybe you need to escape `$`?");
|
|
36
|
+
}
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
return parsed;
|
|
40
|
+
}
|
|
41
|
+
function lookupFile(dir, formats, options) {
|
|
42
|
+
for (const format of formats) {
|
|
43
|
+
const fullPath = join(dir, format);
|
|
44
|
+
if (existsSync(fullPath) && statSync(fullPath).isFile()) {
|
|
45
|
+
const result = options?.pathOnly
|
|
46
|
+
? fullPath
|
|
47
|
+
: readFileSync(fullPath, "utf-8");
|
|
48
|
+
if (!options?.predicate || options.predicate(result)) {
|
|
49
|
+
return result;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const parentDir = dirname(dir);
|
|
54
|
+
if (parentDir !== dir &&
|
|
55
|
+
(!options?.rootDir || parentDir.startsWith(options?.rootDir)))
|
|
56
|
+
return lookupFile(parentDir, formats, options);
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=loadEnv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadEnv.js","sourceRoot":"","sources":["../../../src/utils/loadEnv.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAG1C,MAAM,UAAU,OAAO,CACrB,SAGI,EAAE;IAEN,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IACzB,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CACb,oGAAoG,CACrG,CAAC;IACJ,CAAC;IAED,MAAM,QAAQ,GAAG;QACK,MAAM;QACR,YAAY;QAC9B,GAAG,CAAC,IAAI;YACN,CAAC,CAAC;gBACmB,QAAQ,IAAI,EAAE;gBACR,QAAQ,IAAI,QAAQ;aAC5C;YACH,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAC9C,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAC/B,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YACtC,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,MAAM;SAChB,CAAC,CAAC;QACH,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC,CACH,CAAC;IAEF,IAAI,CAAC;QAEH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IACrB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAGf,IAAK,KAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/C,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,UAAU,CACjB,GAAW,EACX,OAAiB,EACjB,OAIC;IAED,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACnC,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;YACxD,MAAM,MAAM,GAAG,OAAO,EAAE,QAAQ;gBAC9B,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YACpC,IAAI,CAAC,OAAO,EAAE,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;gBACrD,OAAO,MAAM,CAAC;YAChB,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/B,IACE,SAAS,KAAK,GAAG;QACjB,CAAC,CAAC,OAAO,EAAE,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAE7D,OAAO,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAEjD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["// https://github.com/wevm/wagmi/blob/main/packages/cli/src/utils/loadEnv.ts\nimport { parse } from \"dotenv\";\nimport { expand } from \"dotenv-expand\";\n\nimport { existsSync, readFileSync, statSync } from \"node:fs\";\nimport { dirname, join } from \"node:path\";\n\n// https://github.com/vitejs/vite/blob/main/packages/vite/src/node/env.ts#L7\nexport function loadEnv(\n config: {\n mode?: string;\n envDir?: string;\n } = {}\n): Record<string, string> {\n const mode = config.mode;\n if (mode === \"local\") {\n throw new Error(\n `\"local\" cannot be used as a mode name because it conflicts with the .local postfix for .env files.`\n );\n }\n\n const envFiles = [\n /** default file */ \".env\",\n /** local file */ \".env.local\",\n ...(mode\n ? [\n /** mode file */ `.env.${mode}`,\n /** mode local file */ `.env.${mode}.local`,\n ]\n : []),\n ];\n\n const envDir = config.envDir ?? process.cwd();\n const parsed = Object.fromEntries(\n envFiles.flatMap((file) => {\n const path = lookupFile(envDir, [file], {\n pathOnly: true,\n rootDir: envDir,\n });\n if (!path) return [];\n return Object.entries(parse(readFileSync(path)));\n })\n );\n\n try {\n // let environment variables use each other\n expand({ parsed });\n } catch (error) {\n // custom error handling until https://github.com/motdotla/dotenv-expand/issues/65 is fixed upstream\n // check for message \"TypeError: Cannot read properties of undefined (reading 'split')\"\n if ((error as Error).message.includes(\"split\")) {\n throw new Error(\n \"dotenv-expand failed to expand env vars. Maybe you need to escape `$`?\"\n );\n }\n throw error;\n }\n\n return parsed;\n}\n\nfunction lookupFile(\n dir: string,\n formats: string[],\n options?: {\n pathOnly?: boolean;\n rootDir?: string;\n predicate?: (file: string) => boolean;\n }\n): string | undefined {\n for (const format of formats) {\n const fullPath = join(dir, format);\n if (existsSync(fullPath) && statSync(fullPath).isFile()) {\n const result = options?.pathOnly\n ? fullPath\n : readFileSync(fullPath, \"utf-8\");\n if (!options?.predicate || options.predicate(result)) {\n return result;\n }\n }\n }\n\n const parentDir = dirname(dir);\n if (\n parentDir !== dir &&\n (!options?.rootDir || parentDir.startsWith(options?.rootDir))\n )\n return lookupFile(parentDir, formats, options);\n\n return undefined;\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Config } from "../config";
|
|
2
|
+
import type { MaybeArray } from "../types";
|
|
3
|
+
type ResolveConfigParameters = {
|
|
4
|
+
configPath: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function resolveConfig(parameters: ResolveConfigParameters): Promise<MaybeArray<Config>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { bundleRequire } from "bundle-require";
|
|
2
|
+
export async function resolveConfig(parameters) {
|
|
3
|
+
const { configPath } = parameters;
|
|
4
|
+
const res = await bundleRequire({ filepath: configPath });
|
|
5
|
+
let config = res.mod.default;
|
|
6
|
+
if (config.default)
|
|
7
|
+
config = config.default;
|
|
8
|
+
if (typeof config !== "function")
|
|
9
|
+
return config;
|
|
10
|
+
return await config();
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=resolveConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveConfig.js","sourceRoot":"","sources":["../../../src/utils/resolveConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAe/C,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,UAAmC;IAEnC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;IAClC,MAAM,GAAG,GAAG,MAAM,aAAa,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;IAC1D,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC;IAC7B,IAAI,MAAM,CAAC,OAAO;QAAE,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC;IAC5C,IAAI,OAAO,MAAM,KAAK,UAAU;QAAE,OAAO,MAAM,CAAC;IAChD,OAAO,MAAM,MAAM,EAAE,CAAC;AACxB,CAAC","sourcesContent":["import { bundleRequire } from \"bundle-require\";\nimport type { Config } from \"../config\";\nimport type { MaybeArray } from \"../types\";\n\ntype ResolveConfigParameters = {\n /** Path to config file */\n configPath: string;\n};\n\n/**\n * Bundles and returns config object from path.\n *\n * @param parameters - Parameters to resolve config\n * @returns an array of the config objects\n */\nexport async function resolveConfig(\n parameters: ResolveConfigParameters\n): Promise<MaybeArray<Config>> {\n const { configPath } = parameters;\n const res = await bundleRequire({ filepath: configPath });\n let config = res.mod.default;\n if (config.default) config = config.default;\n if (typeof config !== \"function\") return config;\n return await config();\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION = "4.0.0-alpha.0";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.0.0-alpha.0\";\n"]}
|
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
export declare const IPluginAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "onInstall";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "data";
|
|
6
|
+
readonly type: "bytes";
|
|
7
|
+
readonly internalType: "bytes";
|
|
8
|
+
}];
|
|
9
|
+
readonly outputs: readonly [];
|
|
10
|
+
readonly stateMutability: "nonpayable";
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "onUninstall";
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly name: "data";
|
|
16
|
+
readonly type: "bytes";
|
|
17
|
+
readonly internalType: "bytes";
|
|
18
|
+
}];
|
|
19
|
+
readonly outputs: readonly [];
|
|
20
|
+
readonly stateMutability: "nonpayable";
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
readonly name: "pluginManifest";
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly name: "";
|
|
27
|
+
readonly type: "tuple";
|
|
28
|
+
readonly internalType: "struct PluginManifest";
|
|
29
|
+
readonly components: readonly [{
|
|
30
|
+
readonly name: "interfaceIds";
|
|
31
|
+
readonly type: "bytes4[]";
|
|
32
|
+
readonly internalType: "bytes4[]";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "dependencyInterfaceIds";
|
|
35
|
+
readonly type: "bytes4[]";
|
|
36
|
+
readonly internalType: "bytes4[]";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "executionFunctions";
|
|
39
|
+
readonly type: "bytes4[]";
|
|
40
|
+
readonly internalType: "bytes4[]";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "permittedExecutionSelectors";
|
|
43
|
+
readonly type: "bytes4[]";
|
|
44
|
+
readonly internalType: "bytes4[]";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "permitAnyExternalAddress";
|
|
47
|
+
readonly type: "bool";
|
|
48
|
+
readonly internalType: "bool";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "canSpendNativeToken";
|
|
51
|
+
readonly type: "bool";
|
|
52
|
+
readonly internalType: "bool";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "permittedExternalCalls";
|
|
55
|
+
readonly type: "tuple[]";
|
|
56
|
+
readonly internalType: "struct ManifestExternalCallPermission[]";
|
|
57
|
+
readonly components: readonly [{
|
|
58
|
+
readonly name: "externalAddress";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "permitAnySelector";
|
|
63
|
+
readonly type: "bool";
|
|
64
|
+
readonly internalType: "bool";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "selectors";
|
|
67
|
+
readonly type: "bytes4[]";
|
|
68
|
+
readonly internalType: "bytes4[]";
|
|
69
|
+
}];
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "userOpValidationFunctions";
|
|
72
|
+
readonly type: "tuple[]";
|
|
73
|
+
readonly internalType: "struct ManifestAssociatedFunction[]";
|
|
74
|
+
readonly components: readonly [{
|
|
75
|
+
readonly name: "executionSelector";
|
|
76
|
+
readonly type: "bytes4";
|
|
77
|
+
readonly internalType: "bytes4";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "associatedFunction";
|
|
80
|
+
readonly type: "tuple";
|
|
81
|
+
readonly internalType: "struct ManifestFunction";
|
|
82
|
+
readonly components: readonly [{
|
|
83
|
+
readonly name: "functionType";
|
|
84
|
+
readonly type: "uint8";
|
|
85
|
+
readonly internalType: "enum ManifestAssociatedFunctionType";
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "functionId";
|
|
88
|
+
readonly type: "uint8";
|
|
89
|
+
readonly internalType: "uint8";
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "dependencyIndex";
|
|
92
|
+
readonly type: "uint256";
|
|
93
|
+
readonly internalType: "uint256";
|
|
94
|
+
}];
|
|
95
|
+
}];
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "runtimeValidationFunctions";
|
|
98
|
+
readonly type: "tuple[]";
|
|
99
|
+
readonly internalType: "struct ManifestAssociatedFunction[]";
|
|
100
|
+
readonly components: readonly [{
|
|
101
|
+
readonly name: "executionSelector";
|
|
102
|
+
readonly type: "bytes4";
|
|
103
|
+
readonly internalType: "bytes4";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "associatedFunction";
|
|
106
|
+
readonly type: "tuple";
|
|
107
|
+
readonly internalType: "struct ManifestFunction";
|
|
108
|
+
readonly components: readonly [{
|
|
109
|
+
readonly name: "functionType";
|
|
110
|
+
readonly type: "uint8";
|
|
111
|
+
readonly internalType: "enum ManifestAssociatedFunctionType";
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "functionId";
|
|
114
|
+
readonly type: "uint8";
|
|
115
|
+
readonly internalType: "uint8";
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "dependencyIndex";
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
}];
|
|
121
|
+
}];
|
|
122
|
+
}, {
|
|
123
|
+
readonly name: "preUserOpValidationHooks";
|
|
124
|
+
readonly type: "tuple[]";
|
|
125
|
+
readonly internalType: "struct ManifestAssociatedFunction[]";
|
|
126
|
+
readonly components: readonly [{
|
|
127
|
+
readonly name: "executionSelector";
|
|
128
|
+
readonly type: "bytes4";
|
|
129
|
+
readonly internalType: "bytes4";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "associatedFunction";
|
|
132
|
+
readonly type: "tuple";
|
|
133
|
+
readonly internalType: "struct ManifestFunction";
|
|
134
|
+
readonly components: readonly [{
|
|
135
|
+
readonly name: "functionType";
|
|
136
|
+
readonly type: "uint8";
|
|
137
|
+
readonly internalType: "enum ManifestAssociatedFunctionType";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "functionId";
|
|
140
|
+
readonly type: "uint8";
|
|
141
|
+
readonly internalType: "uint8";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "dependencyIndex";
|
|
144
|
+
readonly type: "uint256";
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
}];
|
|
147
|
+
}];
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "preRuntimeValidationHooks";
|
|
150
|
+
readonly type: "tuple[]";
|
|
151
|
+
readonly internalType: "struct ManifestAssociatedFunction[]";
|
|
152
|
+
readonly components: readonly [{
|
|
153
|
+
readonly name: "executionSelector";
|
|
154
|
+
readonly type: "bytes4";
|
|
155
|
+
readonly internalType: "bytes4";
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "associatedFunction";
|
|
158
|
+
readonly type: "tuple";
|
|
159
|
+
readonly internalType: "struct ManifestFunction";
|
|
160
|
+
readonly components: readonly [{
|
|
161
|
+
readonly name: "functionType";
|
|
162
|
+
readonly type: "uint8";
|
|
163
|
+
readonly internalType: "enum ManifestAssociatedFunctionType";
|
|
164
|
+
}, {
|
|
165
|
+
readonly name: "functionId";
|
|
166
|
+
readonly type: "uint8";
|
|
167
|
+
readonly internalType: "uint8";
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "dependencyIndex";
|
|
170
|
+
readonly type: "uint256";
|
|
171
|
+
readonly internalType: "uint256";
|
|
172
|
+
}];
|
|
173
|
+
}];
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "executionHooks";
|
|
176
|
+
readonly type: "tuple[]";
|
|
177
|
+
readonly internalType: "struct ManifestExecutionHook[]";
|
|
178
|
+
readonly components: readonly [{
|
|
179
|
+
readonly name: "executionSelector";
|
|
180
|
+
readonly type: "bytes4";
|
|
181
|
+
readonly internalType: "bytes4";
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "preExecHook";
|
|
184
|
+
readonly type: "tuple";
|
|
185
|
+
readonly internalType: "struct ManifestFunction";
|
|
186
|
+
readonly components: readonly [{
|
|
187
|
+
readonly name: "functionType";
|
|
188
|
+
readonly type: "uint8";
|
|
189
|
+
readonly internalType: "enum ManifestAssociatedFunctionType";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "functionId";
|
|
192
|
+
readonly type: "uint8";
|
|
193
|
+
readonly internalType: "uint8";
|
|
194
|
+
}, {
|
|
195
|
+
readonly name: "dependencyIndex";
|
|
196
|
+
readonly type: "uint256";
|
|
197
|
+
readonly internalType: "uint256";
|
|
198
|
+
}];
|
|
199
|
+
}, {
|
|
200
|
+
readonly name: "postExecHook";
|
|
201
|
+
readonly type: "tuple";
|
|
202
|
+
readonly internalType: "struct ManifestFunction";
|
|
203
|
+
readonly components: readonly [{
|
|
204
|
+
readonly name: "functionType";
|
|
205
|
+
readonly type: "uint8";
|
|
206
|
+
readonly internalType: "enum ManifestAssociatedFunctionType";
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "functionId";
|
|
209
|
+
readonly type: "uint8";
|
|
210
|
+
readonly internalType: "uint8";
|
|
211
|
+
}, {
|
|
212
|
+
readonly name: "dependencyIndex";
|
|
213
|
+
readonly type: "uint256";
|
|
214
|
+
readonly internalType: "uint256";
|
|
215
|
+
}];
|
|
216
|
+
}];
|
|
217
|
+
}];
|
|
218
|
+
}];
|
|
219
|
+
readonly stateMutability: "pure";
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
readonly name: "pluginMetadata";
|
|
223
|
+
readonly inputs: readonly [];
|
|
224
|
+
readonly outputs: readonly [{
|
|
225
|
+
readonly name: "";
|
|
226
|
+
readonly type: "tuple";
|
|
227
|
+
readonly internalType: "struct PluginMetadata";
|
|
228
|
+
readonly components: readonly [{
|
|
229
|
+
readonly name: "name";
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly internalType: "string";
|
|
232
|
+
}, {
|
|
233
|
+
readonly name: "version";
|
|
234
|
+
readonly type: "string";
|
|
235
|
+
readonly internalType: "string";
|
|
236
|
+
}, {
|
|
237
|
+
readonly name: "author";
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly internalType: "string";
|
|
240
|
+
}, {
|
|
241
|
+
readonly name: "permissionDescriptors";
|
|
242
|
+
readonly type: "tuple[]";
|
|
243
|
+
readonly internalType: "struct SelectorPermission[]";
|
|
244
|
+
readonly components: readonly [{
|
|
245
|
+
readonly name: "functionSelector";
|
|
246
|
+
readonly type: "bytes4";
|
|
247
|
+
readonly internalType: "bytes4";
|
|
248
|
+
}, {
|
|
249
|
+
readonly name: "permissionDescription";
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
readonly internalType: "string";
|
|
252
|
+
}];
|
|
253
|
+
}];
|
|
254
|
+
}];
|
|
255
|
+
readonly stateMutability: "pure";
|
|
256
|
+
}, {
|
|
257
|
+
readonly type: "function";
|
|
258
|
+
readonly name: "postExecutionHook";
|
|
259
|
+
readonly inputs: readonly [{
|
|
260
|
+
readonly name: "functionId";
|
|
261
|
+
readonly type: "uint8";
|
|
262
|
+
readonly internalType: "uint8";
|
|
263
|
+
}, {
|
|
264
|
+
readonly name: "preExecHookData";
|
|
265
|
+
readonly type: "bytes";
|
|
266
|
+
readonly internalType: "bytes";
|
|
267
|
+
}];
|
|
268
|
+
readonly outputs: readonly [];
|
|
269
|
+
readonly stateMutability: "nonpayable";
|
|
270
|
+
}, {
|
|
271
|
+
readonly type: "function";
|
|
272
|
+
readonly name: "preExecutionHook";
|
|
273
|
+
readonly inputs: readonly [{
|
|
274
|
+
readonly name: "functionId";
|
|
275
|
+
readonly type: "uint8";
|
|
276
|
+
readonly internalType: "uint8";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "sender";
|
|
279
|
+
readonly type: "address";
|
|
280
|
+
readonly internalType: "address";
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "value";
|
|
283
|
+
readonly type: "uint256";
|
|
284
|
+
readonly internalType: "uint256";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "data";
|
|
287
|
+
readonly type: "bytes";
|
|
288
|
+
readonly internalType: "bytes";
|
|
289
|
+
}];
|
|
290
|
+
readonly outputs: readonly [{
|
|
291
|
+
readonly name: "";
|
|
292
|
+
readonly type: "bytes";
|
|
293
|
+
readonly internalType: "bytes";
|
|
294
|
+
}];
|
|
295
|
+
readonly stateMutability: "nonpayable";
|
|
296
|
+
}, {
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
readonly name: "preRuntimeValidationHook";
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly name: "functionId";
|
|
301
|
+
readonly type: "uint8";
|
|
302
|
+
readonly internalType: "uint8";
|
|
303
|
+
}, {
|
|
304
|
+
readonly name: "sender";
|
|
305
|
+
readonly type: "address";
|
|
306
|
+
readonly internalType: "address";
|
|
307
|
+
}, {
|
|
308
|
+
readonly name: "value";
|
|
309
|
+
readonly type: "uint256";
|
|
310
|
+
readonly internalType: "uint256";
|
|
311
|
+
}, {
|
|
312
|
+
readonly name: "data";
|
|
313
|
+
readonly type: "bytes";
|
|
314
|
+
readonly internalType: "bytes";
|
|
315
|
+
}];
|
|
316
|
+
readonly outputs: readonly [];
|
|
317
|
+
readonly stateMutability: "nonpayable";
|
|
318
|
+
}, {
|
|
319
|
+
readonly type: "function";
|
|
320
|
+
readonly name: "preUserOpValidationHook";
|
|
321
|
+
readonly inputs: readonly [{
|
|
322
|
+
readonly name: "functionId";
|
|
323
|
+
readonly type: "uint8";
|
|
324
|
+
readonly internalType: "uint8";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "userOp";
|
|
327
|
+
readonly type: "tuple";
|
|
328
|
+
readonly internalType: "struct UserOperation";
|
|
329
|
+
readonly components: readonly [{
|
|
330
|
+
readonly name: "sender";
|
|
331
|
+
readonly type: "address";
|
|
332
|
+
readonly internalType: "address";
|
|
333
|
+
}, {
|
|
334
|
+
readonly name: "nonce";
|
|
335
|
+
readonly type: "uint256";
|
|
336
|
+
readonly internalType: "uint256";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "initCode";
|
|
339
|
+
readonly type: "bytes";
|
|
340
|
+
readonly internalType: "bytes";
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "callData";
|
|
343
|
+
readonly type: "bytes";
|
|
344
|
+
readonly internalType: "bytes";
|
|
345
|
+
}, {
|
|
346
|
+
readonly name: "callGasLimit";
|
|
347
|
+
readonly type: "uint256";
|
|
348
|
+
readonly internalType: "uint256";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "verificationGasLimit";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
}, {
|
|
354
|
+
readonly name: "preVerificationGas";
|
|
355
|
+
readonly type: "uint256";
|
|
356
|
+
readonly internalType: "uint256";
|
|
357
|
+
}, {
|
|
358
|
+
readonly name: "maxFeePerGas";
|
|
359
|
+
readonly type: "uint256";
|
|
360
|
+
readonly internalType: "uint256";
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "maxPriorityFeePerGas";
|
|
363
|
+
readonly type: "uint256";
|
|
364
|
+
readonly internalType: "uint256";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "paymasterAndData";
|
|
367
|
+
readonly type: "bytes";
|
|
368
|
+
readonly internalType: "bytes";
|
|
369
|
+
}, {
|
|
370
|
+
readonly name: "signature";
|
|
371
|
+
readonly type: "bytes";
|
|
372
|
+
readonly internalType: "bytes";
|
|
373
|
+
}];
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "userOpHash";
|
|
376
|
+
readonly type: "bytes32";
|
|
377
|
+
readonly internalType: "bytes32";
|
|
378
|
+
}];
|
|
379
|
+
readonly outputs: readonly [{
|
|
380
|
+
readonly name: "";
|
|
381
|
+
readonly type: "uint256";
|
|
382
|
+
readonly internalType: "uint256";
|
|
383
|
+
}];
|
|
384
|
+
readonly stateMutability: "nonpayable";
|
|
385
|
+
}, {
|
|
386
|
+
readonly type: "function";
|
|
387
|
+
readonly name: "runtimeValidationFunction";
|
|
388
|
+
readonly inputs: readonly [{
|
|
389
|
+
readonly name: "functionId";
|
|
390
|
+
readonly type: "uint8";
|
|
391
|
+
readonly internalType: "uint8";
|
|
392
|
+
}, {
|
|
393
|
+
readonly name: "sender";
|
|
394
|
+
readonly type: "address";
|
|
395
|
+
readonly internalType: "address";
|
|
396
|
+
}, {
|
|
397
|
+
readonly name: "value";
|
|
398
|
+
readonly type: "uint256";
|
|
399
|
+
readonly internalType: "uint256";
|
|
400
|
+
}, {
|
|
401
|
+
readonly name: "data";
|
|
402
|
+
readonly type: "bytes";
|
|
403
|
+
readonly internalType: "bytes";
|
|
404
|
+
}];
|
|
405
|
+
readonly outputs: readonly [];
|
|
406
|
+
readonly stateMutability: "nonpayable";
|
|
407
|
+
}, {
|
|
408
|
+
readonly type: "function";
|
|
409
|
+
readonly name: "userOpValidationFunction";
|
|
410
|
+
readonly inputs: readonly [{
|
|
411
|
+
readonly name: "functionId";
|
|
412
|
+
readonly type: "uint8";
|
|
413
|
+
readonly internalType: "uint8";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "userOp";
|
|
416
|
+
readonly type: "tuple";
|
|
417
|
+
readonly internalType: "struct UserOperation";
|
|
418
|
+
readonly components: readonly [{
|
|
419
|
+
readonly name: "sender";
|
|
420
|
+
readonly type: "address";
|
|
421
|
+
readonly internalType: "address";
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "nonce";
|
|
424
|
+
readonly type: "uint256";
|
|
425
|
+
readonly internalType: "uint256";
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "initCode";
|
|
428
|
+
readonly type: "bytes";
|
|
429
|
+
readonly internalType: "bytes";
|
|
430
|
+
}, {
|
|
431
|
+
readonly name: "callData";
|
|
432
|
+
readonly type: "bytes";
|
|
433
|
+
readonly internalType: "bytes";
|
|
434
|
+
}, {
|
|
435
|
+
readonly name: "callGasLimit";
|
|
436
|
+
readonly type: "uint256";
|
|
437
|
+
readonly internalType: "uint256";
|
|
438
|
+
}, {
|
|
439
|
+
readonly name: "verificationGasLimit";
|
|
440
|
+
readonly type: "uint256";
|
|
441
|
+
readonly internalType: "uint256";
|
|
442
|
+
}, {
|
|
443
|
+
readonly name: "preVerificationGas";
|
|
444
|
+
readonly type: "uint256";
|
|
445
|
+
readonly internalType: "uint256";
|
|
446
|
+
}, {
|
|
447
|
+
readonly name: "maxFeePerGas";
|
|
448
|
+
readonly type: "uint256";
|
|
449
|
+
readonly internalType: "uint256";
|
|
450
|
+
}, {
|
|
451
|
+
readonly name: "maxPriorityFeePerGas";
|
|
452
|
+
readonly type: "uint256";
|
|
453
|
+
readonly internalType: "uint256";
|
|
454
|
+
}, {
|
|
455
|
+
readonly name: "paymasterAndData";
|
|
456
|
+
readonly type: "bytes";
|
|
457
|
+
readonly internalType: "bytes";
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "signature";
|
|
460
|
+
readonly type: "bytes";
|
|
461
|
+
readonly internalType: "bytes";
|
|
462
|
+
}];
|
|
463
|
+
}, {
|
|
464
|
+
readonly name: "userOpHash";
|
|
465
|
+
readonly type: "bytes32";
|
|
466
|
+
readonly internalType: "bytes32";
|
|
467
|
+
}];
|
|
468
|
+
readonly outputs: readonly [{
|
|
469
|
+
readonly name: "";
|
|
470
|
+
readonly type: "uint256";
|
|
471
|
+
readonly internalType: "uint256";
|
|
472
|
+
}];
|
|
473
|
+
readonly stateMutability: "nonpayable";
|
|
474
|
+
}];
|
|
475
|
+
//# sourceMappingURL=IPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPlugin.d.ts","sourceRoot":"","sources":["../../src/IPlugin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2Yb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
declare const GenerateSchema: z.ZodObject<{
|
|
3
|
+
/** Path to config file */
|
|
4
|
+
config: z.ZodOptional<z.ZodString>;
|
|
5
|
+
/** Directory to search for config file */
|
|
6
|
+
root: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
config?: string | undefined;
|
|
9
|
+
root?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
config?: string | undefined;
|
|
12
|
+
root?: string | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
export type GenerateOptions = z.infer<typeof GenerateSchema>;
|
|
15
|
+
export declare function generate(options?: GenerateOptions): Promise<void>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/index.ts"],"names":[],"mappings":"AAaA,OAAO,CAAC,MAAM,KAAK,CAAC;AAepB,QAAA,MAAM,cAAc;IAClB,0BAA0B;;IAE1B,0CAA0C;;;;;;;;EAE1C,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,wBAAsB,QAAQ,CAAC,OAAO,GAAE,eAAoB,iBA4F3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-abi-gen.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/phases/contract-abi-gen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,mBAAmB,EAAE,KAQjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-addresses-gen.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/phases/contract-addresses-gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,yBAAyB,EAAE,KAavC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-abi-gen.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/phases/execution-abi-gen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,oBAAoB,EAAE,KAelC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/generate/phases/plugin-actions/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKzC,eAAO,MAAM,qBAAqB,EAAE,KA8InC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"management-actions.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/generate/phases/plugin-actions/management-actions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAc,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,yBAAyB,EAAE,KA+FvC,CAAC"}
|