Skip to content

Helper Node.js Library to extract ABIs of Smart Contracts.

License

Notifications You must be signed in to change notification settings

cagrigit-hub/abi_extractor

Repository files navigation

ABI EXTRACTOR

Lightweight small package for Ethereum developers to extract, and import their ABIs more easily.

Usage Example

import { ABIExtractor } from "@cakitomakito/extract_abi";

// for example your ABIs in ../builded_contracts/artifacts/contracts folder (as hardhat build).
// so when you call the extractor you need to pass the path to the folder = ../builded_contracts
// and then the name of the folder where the ABIs are = artifacts
const abiExtractor = new ABIExtractor("../builded_contracts", "artifacts");

const path = abiExtractor.getPath();

const lockABI = abiExtractor.getABI("Lock");

console.log(path);
console.log(lockABI)

About

Helper Node.js Library to extract ABIs of Smart Contracts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published