Skip to content

Commit

Permalink
ci: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Mar 20, 2024
1 parent 71f93b4 commit b6456f2
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 1,426 deletions.
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

11 changes: 0 additions & 11 deletions build/esbuild-build.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
import { execSync } from "child_process";
import { config } from "dotenv";
import esbuild from "esbuild";
import extraRpcs from "../lib/chainlist/constants/extraRpcs";

const typescriptEntries = ["static/scripts/onboarding/onboarding.ts"];
const cssEntries = ["static/styles/onboarding/onboarding.css"];
export const entries = [...typescriptEntries, ...cssEntries];

const allNetworkUrls: Record<string, string[]> = {};
// this flattens all the rpcs into a single object, with key names that match the networkIds. The arrays are just of URLs per network ID.

Object.keys(extraRpcs).forEach((networkId) => {
const officialUrls = extraRpcs[networkId].rpcs.filter((rpc) => typeof rpc === "string");
const extraUrls: string[] = extraRpcs[networkId].rpcs.filter((rpc) => rpc.url !== undefined).map((rpc) => rpc.url);
allNetworkUrls[networkId] = [...officialUrls, ...extraUrls];
});

export const esBuildContext: esbuild.BuildOptions = {
sourcemap: true,
entryPoints: entries,
Expand All @@ -31,7 +21,6 @@ export const esBuildContext: esbuild.BuildOptions = {
},
outdir: "static/out",
define: createEnvDefines(["SUPABASE_URL", "SUPABASE_ANON_KEY", "FRONTEND_URL"], {
extraRpcs: allNetworkUrls,
commitHash: execSync(`git rev-parse --short HEAD`).toString().trim(),
}),
};
Expand Down
1 change: 0 additions & 1 deletion lib/chainlist
Submodule chainlist deleted from 805928
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@
"@octokit/core": "^5.1.0",
"@octokit/plugin-create-or-update-text-file": "^4.0.1",
"@octokit/rest": "^20.0.2",
"@sinclair/typebox": "^0.32.15",
"@supabase/supabase-js": "2.39.7",
"@types/libsodium-wrappers": "^0.7.13",
"@ubiquibot/configuration": "1.1.0",
"@uniswap/permit2-sdk": "^1.2.0",
"axios": "^1.6.8",
"dotenv": "^16.4.4",
"ethers": "^5.7.2",
"libsodium-wrappers": "^0.7.13",
Expand Down
1 change: 0 additions & 1 deletion static/scripts/onboarding/abis/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from "./erc20Abi";
export * from "./permit2Abi";
Loading

0 comments on commit b6456f2

Please sign in to comment.