Skip to content

Commit 4e9e8d2

Browse files
committed
(refactor) add subfolders for cli modules
1 parent 3d025b8 commit 4e9e8d2

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

File renamed without changes.

cli/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { createPublicClient, createWalletClient, http, parseAbiItem, toHex } fro
99
import { privateKeyToAccount } from "viem/accounts";
1010
import { foundry, sepolia } from "viem/chains";
1111

12-
import { importAbi } from "@/importAbi.js";
12+
import { importAbi } from "@/utils/importAbi.js";
1313
import packageJson from "../package.json" with { type: "json" };
14-
import { b64urlToHex, jwtKid, parseJwt, requestGithubOidcToken } from "@/oidc.js";
14+
import { b64urlToHex, jwtKid, parseJwt, requestGithubOidcToken } from "@/github/oidc.js";
1515

1616
const COMMAND_NAME = "fcf";
1717
const COMMAND_DESCRIPTION = "FCF CLI tool.";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { accessSync, constants, readFileSync } from "node:fs";
22
import { fileURLToPath } from "node:url";
33
import type { Abi } from "viem";
4-
import staticAbi from "./abi/RIK.json" with { type: "json" };
4+
import staticAbi from "../abi/RIK.json" with { type: "json" };
55

66
const CONTRACT_NAME = "RIK";
77
const ABI_PATH = fileURLToPath(new URL(`../../contracts/out/${CONTRACT_NAME}.sol/${CONTRACT_NAME}.json`, import.meta.url));

cli/test/oidc.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test, expect } from "vitest";
2-
import { b64urlToHex, jwtKid, parseJwt } from "@/oidc.js";
2+
import { b64urlToHex, jwtKid, parseJwt } from "@/github/oidc.js";
33

44
test("parses GitHub OIDC payload", () => {
55
// real (but expired) token

0 commit comments

Comments
 (0)