Skip to content

Instantly share code, notes, and snippets.

@doomsower
doomsower / get-abis.ts
Created December 14, 2023 11:56
Script to update abis
import { ethers } from "ethers";
import fs from "fs";
import path from "path";
// Define the callback function type
type ProcessJsonCallback = (json: any, path: string) => void;
// Function to process a JSON file
const processJsonFile = (filePath: string, callback: ProcessJsonCallback) => {
try {